OSDN Git Service

asprintf.c: Change comment to note that -1 is returned upon error.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --with-newlib                    Configuring with newlib"
23 ac_help="$ac_help
24   --enable-maintainer-mode enable make rules and dependencies not useful
25                           (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27   --enable-shared[=PKGS]  build shared libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-static[=PKGS]  build static libraries [default=yes]"
30 ac_help="$ac_help
31   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35   --disable-libtool-lock  avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
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-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-cheaders=MODEL       construct "C" header files for g++ [default=c_std]"
50 ac_help="$ac_help
51   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
52 ac_help="$ac_help
53   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
54 ac_help="$ac_help
55   --enable-long-long      turns on 'long long' [default=yes]"
56 ac_help="$ac_help
57   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
58 ac_help="$ac_help
59   --enable-libunwind-exceptions  force use of libunwind for exceptions"
60 ac_help="$ac_help
61   --enable-concept-checks use Boost-derived template checks [default=no]"
62 ac_help="$ac_help
63   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
64                                   [default=]"
65 ac_help="$ac_help
66   --enable-debug          build extra debug library [default=no]"
67 ac_help="$ac_help
68   --enable-debug-flags=FLAGS    pass compiler FLAGS when building debug
69                         library;[default=none]"
70 ac_help="$ac_help
71   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
72 ac_help="$ac_help
73   --with-gxx-include-dir  the installation directory for include files"
74 ac_help="$ac_help
75   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
76
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
80 build=NONE
81 cache_file=./config.cache
82 exec_prefix=NONE
83 host=NONE
84 no_create=
85 nonopt=NONE
86 no_recursion=
87 prefix=NONE
88 program_prefix=NONE
89 program_suffix=NONE
90 program_transform_name=s,x,x,
91 silent=
92 site=
93 srcdir=
94 target=NONE
95 verbose=
96 x_includes=NONE
97 x_libraries=NONE
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
110
111 # Initialize some other variables.
112 subdirs=
113 MFLAGS= MAKEFLAGS=
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
116 ac_max_here_lines=12
117
118 ac_prev=
119 for ac_option
120 do
121
122   # If the previous option needs an argument, assign it.
123   if test -n "$ac_prev"; then
124     eval "$ac_prev=\$ac_option"
125     ac_prev=
126     continue
127   fi
128
129   case "$ac_option" in
130   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131   *) ac_optarg= ;;
132   esac
133
134   # Accept the important Cygnus configure options, so we can diagnose typos.
135
136   case "$ac_option" in
137
138   -bindir | --bindir | --bindi | --bind | --bin | --bi)
139     ac_prev=bindir ;;
140   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141     bindir="$ac_optarg" ;;
142
143   -build | --build | --buil | --bui | --bu)
144     ac_prev=build ;;
145   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146     build="$ac_optarg" ;;
147
148   -cache-file | --cache-file | --cache-fil | --cache-fi \
149   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150     ac_prev=cache_file ;;
151   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153     cache_file="$ac_optarg" ;;
154
155   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156     ac_prev=datadir ;;
157   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158   | --da=*)
159     datadir="$ac_optarg" ;;
160
161   -disable-* | --disable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     eval "enable_${ac_feature}=no" ;;
169
170   -enable-* | --enable-*)
171     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172     # Reject names that are not valid shell variable names.
173     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175     fi
176     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177     case "$ac_option" in
178       *=*) ;;
179       *) ac_optarg=yes ;;
180     esac
181     eval "enable_${ac_feature}='$ac_optarg'" ;;
182
183   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185   | --exec | --exe | --ex)
186     ac_prev=exec_prefix ;;
187   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189   | --exec=* | --exe=* | --ex=*)
190     exec_prefix="$ac_optarg" ;;
191
192   -gas | --gas | --ga | --g)
193     # Obsolete; use --with-gas.
194     with_gas=yes ;;
195
196   -help | --help | --hel | --he)
197     # Omit some internal or obsolete options to make the list less imposing.
198     # This message is too long to be a string in the A/UX 3.1 sh.
199     cat << EOF
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
202 Configuration:
203   --cache-file=FILE       cache test results in FILE
204   --help                  print this message
205   --no-create             do not create output files
206   --quiet, --silent       do not print \`checking...' messages
207   --version               print the version of autoconf that created configure
208 Directory and file names:
209   --prefix=PREFIX         install architecture-independent files in PREFIX
210                           [$ac_default_prefix]
211   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
212                           [same as prefix]
213   --bindir=DIR            user executables in DIR [EPREFIX/bin]
214   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
215   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
216   --datadir=DIR           read-only architecture-independent data in DIR
217                           [PREFIX/share]
218   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
219   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
220                           [PREFIX/com]
221   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
222   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
223   --includedir=DIR        C header files in DIR [PREFIX/include]
224   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
225   --infodir=DIR           info documentation in DIR [PREFIX/info]
226   --mandir=DIR            man documentation in DIR [PREFIX/man]
227   --srcdir=DIR            find the sources in DIR [configure dir or ..]
228   --program-prefix=PREFIX prepend PREFIX to installed program names
229   --program-suffix=SUFFIX append SUFFIX to installed program names
230   --program-transform-name=PROGRAM
231                           run sed PROGRAM on installed program names
232 EOF
233     cat << EOF
234 Host type:
235   --build=BUILD           configure for building on BUILD [BUILD=HOST]
236   --host=HOST             configure for HOST [guessed]
237   --target=TARGET         configure for TARGET [TARGET=HOST]
238 Features and packages:
239   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
240   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
241   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
242   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
243   --x-includes=DIR        X include files are in DIR
244   --x-libraries=DIR       X library files are in DIR
245 EOF
246     if test -n "$ac_help"; then
247       echo "--enable and --with options recognized:$ac_help"
248     fi
249     exit 0 ;;
250
251   -host | --host | --hos | --ho)
252     ac_prev=host ;;
253   -host=* | --host=* | --hos=* | --ho=*)
254     host="$ac_optarg" ;;
255
256   -includedir | --includedir | --includedi | --included | --include \
257   | --includ | --inclu | --incl | --inc)
258     ac_prev=includedir ;;
259   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260   | --includ=* | --inclu=* | --incl=* | --inc=*)
261     includedir="$ac_optarg" ;;
262
263   -infodir | --infodir | --infodi | --infod | --info | --inf)
264     ac_prev=infodir ;;
265   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266     infodir="$ac_optarg" ;;
267
268   -libdir | --libdir | --libdi | --libd)
269     ac_prev=libdir ;;
270   -libdir=* | --libdir=* | --libdi=* | --libd=*)
271     libdir="$ac_optarg" ;;
272
273   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274   | --libexe | --libex | --libe)
275     ac_prev=libexecdir ;;
276   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277   | --libexe=* | --libex=* | --libe=*)
278     libexecdir="$ac_optarg" ;;
279
280   -localstatedir | --localstatedir | --localstatedi | --localstated \
281   | --localstate | --localstat | --localsta | --localst \
282   | --locals | --local | --loca | --loc | --lo)
283     ac_prev=localstatedir ;;
284   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287     localstatedir="$ac_optarg" ;;
288
289   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290     ac_prev=mandir ;;
291   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292     mandir="$ac_optarg" ;;
293
294   -nfp | --nfp | --nf)
295     # Obsolete; use --without-fp.
296     with_fp=no ;;
297
298   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299   | --no-cr | --no-c)
300     no_create=yes ;;
301
302   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304     no_recursion=yes ;;
305
306   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308   | --oldin | --oldi | --old | --ol | --o)
309     ac_prev=oldincludedir ;;
310   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313     oldincludedir="$ac_optarg" ;;
314
315   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316     ac_prev=prefix ;;
317   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318     prefix="$ac_optarg" ;;
319
320   -program-prefix | --program-prefix | --program-prefi | --program-pref \
321   | --program-pre | --program-pr | --program-p)
322     ac_prev=program_prefix ;;
323   -program-prefix=* | --program-prefix=* | --program-prefi=* \
324   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325     program_prefix="$ac_optarg" ;;
326
327   -program-suffix | --program-suffix | --program-suffi | --program-suff \
328   | --program-suf | --program-su | --program-s)
329     ac_prev=program_suffix ;;
330   -program-suffix=* | --program-suffix=* | --program-suffi=* \
331   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332     program_suffix="$ac_optarg" ;;
333
334   -program-transform-name | --program-transform-name \
335   | --program-transform-nam | --program-transform-na \
336   | --program-transform-n | --program-transform- \
337   | --program-transform | --program-transfor \
338   | --program-transfo | --program-transf \
339   | --program-trans | --program-tran \
340   | --progr-tra | --program-tr | --program-t)
341     ac_prev=program_transform_name ;;
342   -program-transform-name=* | --program-transform-name=* \
343   | --program-transform-nam=* | --program-transform-na=* \
344   | --program-transform-n=* | --program-transform-=* \
345   | --program-transform=* | --program-transfor=* \
346   | --program-transfo=* | --program-transf=* \
347   | --program-trans=* | --program-tran=* \
348   | --progr-tra=* | --program-tr=* | --program-t=*)
349     program_transform_name="$ac_optarg" ;;
350
351   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352   | -silent | --silent | --silen | --sile | --sil)
353     silent=yes ;;
354
355   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356     ac_prev=sbindir ;;
357   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358   | --sbi=* | --sb=*)
359     sbindir="$ac_optarg" ;;
360
361   -sharedstatedir | --sharedstatedir | --sharedstatedi \
362   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363   | --sharedst | --shareds | --shared | --share | --shar \
364   | --sha | --sh)
365     ac_prev=sharedstatedir ;;
366   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369   | --sha=* | --sh=*)
370     sharedstatedir="$ac_optarg" ;;
371
372   -site | --site | --sit)
373     ac_prev=site ;;
374   -site=* | --site=* | --sit=*)
375     site="$ac_optarg" ;;
376
377   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378     ac_prev=srcdir ;;
379   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380     srcdir="$ac_optarg" ;;
381
382   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383   | --syscon | --sysco | --sysc | --sys | --sy)
384     ac_prev=sysconfdir ;;
385   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387     sysconfdir="$ac_optarg" ;;
388
389   -target | --target | --targe | --targ | --tar | --ta | --t)
390     ac_prev=target ;;
391   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392     target="$ac_optarg" ;;
393
394   -v | -verbose | --verbose | --verbos | --verbo | --verb)
395     verbose=yes ;;
396
397   -version | --version | --versio | --versi | --vers)
398     echo "configure generated by autoconf version 2.13"
399     exit 0 ;;
400
401   -with-* | --with-*)
402     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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     case "$ac_option" in
409       *=*) ;;
410       *) ac_optarg=yes ;;
411     esac
412     eval "with_${ac_package}='$ac_optarg'" ;;
413
414   -without-* | --without-*)
415     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416     # Reject names that are not valid shell variable names.
417     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419     fi
420     ac_package=`echo $ac_package| sed 's/-/_/g'`
421     eval "with_${ac_package}=no" ;;
422
423   --x)
424     # Obsolete; use --with-x.
425     with_x=yes ;;
426
427   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428   | --x-incl | --x-inc | --x-in | --x-i)
429     ac_prev=x_includes ;;
430   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432     x_includes="$ac_optarg" ;;
433
434   -x-libraries | --x-libraries | --x-librarie | --x-librari \
435   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436     ac_prev=x_libraries ;;
437   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439     x_libraries="$ac_optarg" ;;
440
441   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442     ;;
443
444   *)
445     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446       echo "configure: warning: $ac_option: invalid host type" 1>&2
447     fi
448     if test "x$nonopt" != xNONE; then
449       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450     fi
451     nonopt="$ac_option"
452     ;;
453
454   esac
455 done
456
457 if test -n "$ac_prev"; then
458   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 fi
460
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462
463 # File descriptor usage:
464 # 0 standard input
465 # 1 file creation
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
472   exec 6>/dev/null
473 else
474   exec 6>&1
475 fi
476 exec 5>./config.log
477
478 echo "\
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
481 " 1>&5
482
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
485 ac_configure_args=
486 for ac_arg
487 do
488   case "$ac_arg" in
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c) ;;
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496   esac
497 done
498
499 # NLS nuisances.
500 # Only set these to C if already set.  These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
508
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
513
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=src/ios.cc
517
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520   ac_srcdir_defaulted=yes
521   # Try the directory containing this script, then its parent.
522   ac_prog=$0
523   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525   srcdir=$ac_confdir
526   if test ! -r $srcdir/$ac_unique_file; then
527     srcdir=..
528   fi
529 else
530   ac_srcdir_defaulted=no
531 fi
532 if test ! -r $srcdir/$ac_unique_file; then
533   if test "$ac_srcdir_defaulted" = yes; then
534     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535   else
536     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537   fi
538 fi
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543   if test "x$prefix" != xNONE; then
544     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545   else
546     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547   fi
548 fi
549 for ac_site_file in $CONFIG_SITE; do
550   if test -r "$ac_site_file"; then
551     echo "loading site script $ac_site_file"
552     . "$ac_site_file"
553   fi
554 done
555
556 if test -r "$cache_file"; then
557   echo "loading cache $cache_file"
558   . $cache_file
559 else
560   echo "creating cache $cache_file"
561   > $cache_file
562 fi
563
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
570
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576     ac_n= ac_c='
577 ' ac_t='        '
578   else
579     ac_n=-n ac_c= ac_t=
580   fi
581 else
582   ac_n= ac_c='\c' ac_t=
583 fi
584
585
586
587 # This works around the fact that libtool configuration may change LD
588 # for this particular configuration, but some shells, instead of
589 # keeping the changes in LD private, export them just because LD is
590 # exported.  Only used at the end of this file.
591 ORIGINAL_LD_FOR_MULTILIBS=$LD
592
593 PACKAGE=libstdc++
594
595 # For libtool versioning info, format is CURRENT:REVISION:AGE
596 libtool_VERSION=6:0:0
597
598
599
600       # Check whether --enable-multilib or --disable-multilib was given.
601 if test "${enable_multilib+set}" = set; then
602   enableval="$enable_multilib"
603   case "${enableval}" in
604     yes) multilib=yes ;;
605     no)  multilib=no ;;
606     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
607    esac
608 else
609   multilib=yes
610 fi
611
612   # When building with srcdir == objdir, links to the source files will
613   # be created in directories within the target_subdir.  We have to
614   # adjust toplevel_srcdir accordingly, so that configure finds
615   # install-sh and other auxiliary files that live in the top-level
616   # source directory.
617   if test "${srcdir}" = "."; then
618     if test -z "${with_target_subdir}"; then
619       toprel=".."
620     else
621       if test "${with_target_subdir}" != "."; then
622         toprel="${with_multisrctop}../.."
623       else
624         toprel="${with_multisrctop}.."
625       fi
626     fi
627   else
628     toprel=".."
629   fi
630   ac_aux_dir=
631 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
632   if test -f $ac_dir/install-sh; then
633     ac_aux_dir=$ac_dir
634     ac_install_sh="$ac_aux_dir/install-sh -c"
635     break
636   elif test -f $ac_dir/install.sh; then
637     ac_aux_dir=$ac_dir
638     ac_install_sh="$ac_aux_dir/install.sh -c"
639     break
640   fi
641 done
642 if test -z "$ac_aux_dir"; then
643   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
644 fi
645 ac_config_guess=$ac_aux_dir/config.guess
646 ac_config_sub=$ac_aux_dir/config.sub
647 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
648
649   toplevel_srcdir=\${top_srcdir}/$toprel
650   
651
652
653 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
654 #
655 # You will slowly go insane if you do not grok the following fact:  when
656 # building v3 as part of the compiler, the top-level /target/ becomes the
657 # library's /host/.  `configure' then causes --target to default to --host,
658 # exactly like any other package using autoconf.  Therefore, 'target' and
659 # 'host' will always be the same.  This makes sense both for native and
660 # cross compilers, just think about it for a little while.  :-)
661 #
662 # Also, if v3 is being configured as part of a cross compiler, the top-level
663 # configure script will pass the "real" host as $with_cross_host.
664 #
665 # In AC 2.13 AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
666
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 #
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 #    same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 #    as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
679
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
686
687
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 fi
692
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
695
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699   case $nonopt in
700   NONE)
701     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703     fi ;;
704   *) host_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
713
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720   case $nonopt in
721   NONE) target_alias=$host_alias ;;
722   *) target_alias=$nonopt ;;
723   esac ;;
724 esac
725
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
731
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
734
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738   case $nonopt in
739   NONE) build_alias=$host_alias ;;
740   *) build_alias=$nonopt ;;
741   esac ;;
742 esac
743
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
749
750 test "$host_alias" != "$target_alias" &&
751   test "$program_prefix$program_suffix$program_transform_name" = \
752     NONENONEs,x,x, &&
753   program_prefix=${target_alias}-
754
755
756 # Runs configure.host, finds CC, CXX and assorted other critical bits.
757 # Must run this before the GLIBCPP_ENABLE_* macros below.
758 if test $host != $build; then
759   ac_tool_prefix=${host_alias}-
760 else
761   ac_tool_prefix=
762 fi
763
764 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
765 echo "configure:766: checking for Cygwin environment" >&5
766 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
767   echo $ac_n "(cached) $ac_c" 1>&6
768 else
769   cat > conftest.$ac_ext <<EOF
770 #line 771 "configure"
771 #include "confdefs.h"
772
773 int main() {
774
775 #ifndef __CYGWIN__
776 #define __CYGWIN__ __CYGWIN32__
777 #endif
778 return __CYGWIN__;
779 ; return 0; }
780 EOF
781 if { (eval echo configure:782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
782   rm -rf conftest*
783   ac_cv_cygwin=yes
784 else
785   echo "configure: failed program was:" >&5
786   cat conftest.$ac_ext >&5
787   rm -rf conftest*
788   ac_cv_cygwin=no
789 fi
790 rm -f conftest*
791 rm -f conftest*
792 fi
793
794 echo "$ac_t""$ac_cv_cygwin" 1>&6
795 CYGWIN=
796 test "$ac_cv_cygwin" = yes && CYGWIN=yes
797 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
798 echo "configure:799: checking for mingw32 environment" >&5
799 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
800   echo $ac_n "(cached) $ac_c" 1>&6
801 else
802   cat > conftest.$ac_ext <<EOF
803 #line 804 "configure"
804 #include "confdefs.h"
805
806 int main() {
807 return __MINGW32__;
808 ; return 0; }
809 EOF
810 if { (eval echo configure:811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
811   rm -rf conftest*
812   ac_cv_mingw32=yes
813 else
814   echo "configure: failed program was:" >&5
815   cat conftest.$ac_ext >&5
816   rm -rf conftest*
817   ac_cv_mingw32=no
818 fi
819 rm -f conftest*
820 rm -f conftest*
821 fi
822
823 echo "$ac_t""$ac_cv_mingw32" 1>&6
824 MINGW32=
825 test "$ac_cv_mingw32" = yes && MINGW32=yes
826
827   # Export build and source directories.
828   # These need to be absolute paths, yet at the same time need to
829   # canonicalize only relative paths, because then amd will not unmount
830   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
831   glibcpp_builddir=`${PWDCMD-pwd}`
832   case $srcdir in
833   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
834   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
835   esac
836   
837   
838
839     
840
841   for ac_prog in gawk mawk nawk awk
842 do
843 # Extract the first word of "$ac_prog", so it can be a program name with args.
844 set dummy $ac_prog; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
848   echo $ac_n "(cached) $ac_c" 1>&6
849 else
850   if test -n "$AWK"; then
851   ac_cv_prog_AWK="$AWK" # Let the user override the test.
852 else
853   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
854   ac_dummy="$PATH"
855   for ac_dir in $ac_dummy; do
856     test -z "$ac_dir" && ac_dir=.
857     if test -f $ac_dir/$ac_word; then
858       ac_cv_prog_AWK="$ac_prog"
859       break
860     fi
861   done
862   IFS="$ac_save_ifs"
863 fi
864 fi
865 AWK="$ac_cv_prog_AWK"
866 if test -n "$AWK"; then
867   echo "$ac_t""$AWK" 1>&6
868 else
869   echo "$ac_t""no" 1>&6
870 fi
871
872 test -n "$AWK" && break
873 done
874
875   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
876   # be 'cp -p' if linking isn't available.  Uncomment the next line to
877   # force a particular method.
878   #ac_cv_prog_LN_S='cp -p'
879   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
880 echo "configure:881: checking whether ln -s works" >&5
881 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
882   echo $ac_n "(cached) $ac_c" 1>&6
883 else
884   rm -f conftestdata
885 if ln -s X conftestdata 2>/dev/null
886 then
887   rm -f conftestdata
888   ac_cv_prog_LN_S="ln -s"
889 else
890   ac_cv_prog_LN_S=ln
891 fi
892 fi
893 LN_S="$ac_cv_prog_LN_S"
894 if test "$ac_cv_prog_LN_S" = "ln -s"; then
895   echo "$ac_t""yes" 1>&6
896 else
897   echo "$ac_t""no" 1>&6
898 fi
899
900
901   # We use these options to decide which functions to include.
902   # Check whether --with-target-subdir or --without-target-subdir was given.
903 if test "${with_target_subdir+set}" = set; then
904   withval="$with_target_subdir"
905   :
906 fi
907
908   # Check whether --with-cross-host or --without-cross-host was given.
909 if test "${with_cross_host+set}" = set; then
910   withval="$with_cross_host"
911   :
912 fi
913
914
915   # Check whether --with-newlib or --without-newlib was given.
916 if test "${with_newlib+set}" = set; then
917   withval="$with_newlib"
918   :
919 fi
920
921
922   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
923   
924
925   # Never versions of autoconf add an underscore to these functions.
926   # Prevent future problems ...
927   
928   
929   
930   
931
932   # AC_PROG_CC
933   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
934   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
935   # are probably using a cross compiler, which will not be able to fully
936   # link an executable.  This is addressed in later versions of autoconf.
937
938   
939
940       
941   # Extract the first word of "gcc", so it can be a program name with args.
942 set dummy gcc; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946   echo $ac_n "(cached) $ac_c" 1>&6
947 else
948   if test -n "$CC"; then
949   ac_cv_prog_CC="$CC" # Let the user override the test.
950 else
951   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
952   ac_dummy="$PATH"
953   for ac_dir in $ac_dummy; do
954     test -z "$ac_dir" && ac_dir=.
955     if test -f $ac_dir/$ac_word; then
956       ac_cv_prog_CC="gcc"
957       break
958     fi
959   done
960   IFS="$ac_save_ifs"
961 fi
962 fi
963 CC="$ac_cv_prog_CC"
964 if test -n "$CC"; then
965   echo "$ac_t""$CC" 1>&6
966 else
967   echo "$ac_t""no" 1>&6
968 fi
969
970   if test -z "$CC"; then
971     # Extract the first word of "cc", so it can be a program name with args.
972 set dummy cc; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976   echo $ac_n "(cached) $ac_c" 1>&6
977 else
978   if test -n "$CC"; then
979   ac_cv_prog_CC="$CC" # Let the user override the test.
980 else
981   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
982   ac_prog_rejected=no
983   ac_dummy="$PATH"
984   for ac_dir in $ac_dummy; do
985     test -z "$ac_dir" && ac_dir=.
986     if test -f $ac_dir/$ac_word; then
987       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
988         ac_prog_rejected=yes
989         continue
990       fi
991       ac_cv_prog_CC="cc"
992       break
993     fi
994   done
995   IFS="$ac_save_ifs"
996 if test $ac_prog_rejected = yes; then
997   # We found a bogon in the path, so make sure we never use it.
998   set dummy $ac_cv_prog_CC
999   shift
1000   if test $# -gt 0; then
1001     # We chose a different compiler from the bogus one.
1002     # However, it has the same basename, so the bogon will be chosen
1003     # first if we set CC to just the basename; use the full file name.
1004     shift
1005     set dummy "$ac_dir/$ac_word" "$@"
1006     shift
1007     ac_cv_prog_CC="$@"
1008   fi
1009 fi
1010 fi
1011 fi
1012 CC="$ac_cv_prog_CC"
1013 if test -n "$CC"; then
1014   echo "$ac_t""$CC" 1>&6
1015 else
1016   echo "$ac_t""no" 1>&6
1017 fi
1018
1019     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1020   fi
1021
1022   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether we are using GNU C" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1025   echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027   cat > conftest.c <<EOF
1028 #ifdef __GNUC__
1029   yes;
1030 #endif
1031 EOF
1032 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1033   ac_cv_prog_gcc=yes
1034 else
1035   ac_cv_prog_gcc=no
1036 fi
1037 fi
1038
1039 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1040
1041   if test $ac_cv_prog_gcc = yes; then
1042     GCC=yes
1043           ac_test_CFLAGS="${CFLAGS+set}"
1044     ac_save_CFLAGS="$CFLAGS"
1045     CFLAGS=
1046     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1047 echo "configure:1048: checking whether ${CC-cc} accepts -g" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1049   echo $ac_n "(cached) $ac_c" 1>&6
1050 else
1051   echo 'void f(){}' > conftest.c
1052 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1053   ac_cv_prog_cc_g=yes
1054 else
1055   ac_cv_prog_cc_g=no
1056 fi
1057 rm -f conftest*
1058
1059 fi
1060
1061 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1062     if test "$ac_test_CFLAGS" = set; then
1063       CFLAGS="$ac_save_CFLAGS"
1064     elif test $ac_cv_prog_cc_g = yes; then
1065       CFLAGS="-g -O2"
1066     else
1067       CFLAGS="-O2"
1068     fi
1069   else
1070     GCC=
1071     test "${CFLAGS+set}" = set || CFLAGS="-g"
1072   fi
1073   
1074
1075   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1076   # will try to link in libstdc++.
1077   
1078
1079       
1080   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1081   # flags that come in CXX while configuring libstdc++.  They're different
1082   # from those used for all other target libraries.  If CXX is set in
1083   # the environment, respect that here.
1084   glibcpp_CXX=$CXX
1085   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1086 do
1087 # Extract the first word of "$ac_prog", so it can be a program name with args.
1088 set dummy $ac_prog; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1092   echo $ac_n "(cached) $ac_c" 1>&6
1093 else
1094   if test -n "$glibcpp_CXX"; then
1095   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1096 else
1097   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1098   ac_dummy="$PATH"
1099   for ac_dir in $ac_dummy; do
1100     test -z "$ac_dir" && ac_dir=.
1101     if test -f $ac_dir/$ac_word; then
1102       ac_cv_prog_glibcpp_CXX="$ac_prog"
1103       break
1104     fi
1105   done
1106   IFS="$ac_save_ifs"
1107 fi
1108 fi
1109 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1110 if test -n "$glibcpp_CXX"; then
1111   echo "$ac_t""$glibcpp_CXX" 1>&6
1112 else
1113   echo "$ac_t""no" 1>&6
1114 fi
1115
1116 test -n "$glibcpp_CXX" && break
1117 done
1118 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1119
1120   
1121   CXX=$glibcpp_CXX
1122   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1123
1124   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C++" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1127   echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129   cat > conftest.C <<EOF
1130 #ifdef __GNUC__
1131   yes;
1132 #endif
1133 EOF
1134 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135   ac_cv_prog_gxx=yes
1136 else
1137   ac_cv_prog_gxx=no
1138 fi
1139 fi
1140
1141 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1142
1143   if test $ac_cv_prog_gxx = yes; then
1144     GXX=yes
1145                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1146     ac_save_CXXFLAGS="$CXXFLAGS"
1147     CXXFLAGS=
1148     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CXX-g++} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1151   echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153   echo 'void f(){}' > conftest.cc
1154 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1155   ac_cv_prog_cxx_g=yes
1156 else
1157   ac_cv_prog_cxx_g=no
1158 fi
1159 rm -f conftest*
1160
1161 fi
1162
1163 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1164     if test "$ac_test_CXXFLAGS" = set; then
1165       CXXFLAGS="$ac_save_CXXFLAGS"
1166     elif test $ac_cv_prog_cxx_g = yes; then
1167       CXXFLAGS="-g -O2"
1168     else
1169       CXXFLAGS="-O2"
1170     fi
1171   else
1172     GXX=
1173     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1174   fi
1175   
1176
1177   # For directory versioning (e.g., headers) and other variables.
1178   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1179 echo "configure:1180: checking for GCC version number" >&5
1180   gcc_version=`$glibcpp_CXX -dumpversion`
1181   echo "$ac_t""$gcc_version" 1>&6
1182
1183   # For some reason, gettext needs this.
1184   
1185         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1186 echo "configure:1187: checking for strerror in -lcposix" >&5
1187 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1189   echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191   ac_save_LIBS="$LIBS"
1192 LIBS="-lcposix  $LIBS"
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1196 /* Override any gcc2 internal prototype to avoid an error.  */
1197 /* We use char because int might match the return type of a gcc2
1198     builtin and then its argument prototype would still apply.  */
1199 char strerror();
1200
1201 int main() {
1202 strerror()
1203 ; return 0; }
1204 EOF
1205 if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1206   rm -rf conftest*
1207   eval "ac_cv_lib_$ac_lib_var=yes"
1208 else
1209   echo "configure: failed program was:" >&5
1210   cat conftest.$ac_ext >&5
1211   rm -rf conftest*
1212   eval "ac_cv_lib_$ac_lib_var=no"
1213 fi
1214 rm -f conftest*
1215 LIBS="$ac_save_LIBS"
1216
1217 fi
1218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1219   echo "$ac_t""yes" 1>&6
1220   LIBS="$LIBS -lcposix"
1221 else
1222   echo "$ac_t""no" 1>&6
1223 fi
1224
1225   
1226
1227
1228   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1229 set dummy ${ac_tool_prefix}as; ac_word=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1233   echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235   if test -n "$AS"; then
1236   ac_cv_prog_AS="$AS" # Let the user override the test.
1237 else
1238   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1239   ac_dummy="$PATH"
1240   for ac_dir in $ac_dummy; do
1241     test -z "$ac_dir" && ac_dir=.
1242     if test -f $ac_dir/$ac_word; then
1243       ac_cv_prog_AS="${ac_tool_prefix}as"
1244       break
1245     fi
1246   done
1247   IFS="$ac_save_ifs"
1248   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1249 fi
1250 fi
1251 AS="$ac_cv_prog_AS"
1252 if test -n "$AS"; then
1253   echo "$ac_t""$AS" 1>&6
1254 else
1255   echo "$ac_t""no" 1>&6
1256 fi
1257
1258
1259
1260   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1261 set dummy ${ac_tool_prefix}ar; ac_word=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1265   echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267   if test -n "$AR"; then
1268   ac_cv_prog_AR="$AR" # Let the user override the test.
1269 else
1270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1271   ac_dummy="$PATH"
1272   for ac_dir in $ac_dummy; do
1273     test -z "$ac_dir" && ac_dir=.
1274     if test -f $ac_dir/$ac_word; then
1275       ac_cv_prog_AR="${ac_tool_prefix}ar"
1276       break
1277     fi
1278   done
1279   IFS="$ac_save_ifs"
1280   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1281 fi
1282 fi
1283 AR="$ac_cv_prog_AR"
1284 if test -n "$AR"; then
1285   echo "$ac_t""$AR" 1>&6
1286 else
1287   echo "$ac_t""no" 1>&6
1288 fi
1289
1290
1291
1292   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1297   echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299   if test -n "$RANLIB"; then
1300   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1301 else
1302   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1303   ac_dummy="$PATH"
1304   for ac_dir in $ac_dummy; do
1305     test -z "$ac_dir" && ac_dir=.
1306     if test -f $ac_dir/$ac_word; then
1307       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1308       break
1309     fi
1310   done
1311   IFS="$ac_save_ifs"
1312 fi
1313 fi
1314 RANLIB="$ac_cv_prog_RANLIB"
1315 if test -n "$RANLIB"; then
1316   echo "$ac_t""$RANLIB" 1>&6
1317 else
1318   echo "$ac_t""no" 1>&6
1319 fi
1320
1321
1322 if test -z "$ac_cv_prog_RANLIB"; then
1323 if test -n "$ac_tool_prefix"; then
1324   # Extract the first word of "ranlib", so it can be a program name with args.
1325 set dummy ranlib; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1329   echo $ac_n "(cached) $ac_c" 1>&6
1330 else
1331   if test -n "$RANLIB"; then
1332   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1333 else
1334   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1335   ac_dummy="$PATH"
1336   for ac_dir in $ac_dummy; do
1337     test -z "$ac_dir" && ac_dir=.
1338     if test -f $ac_dir/$ac_word; then
1339       ac_cv_prog_RANLIB="ranlib"
1340       break
1341     fi
1342   done
1343   IFS="$ac_save_ifs"
1344   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1345 fi
1346 fi
1347 RANLIB="$ac_cv_prog_RANLIB"
1348 if test -n "$RANLIB"; then
1349   echo "$ac_t""$RANLIB" 1>&6
1350 else
1351   echo "$ac_t""no" 1>&6
1352 fi
1353
1354 else
1355   RANLIB="ranlib-not-found-in-path-error"
1356 fi
1357 fi
1358
1359   # Find a good install program.  We prefer a C program (faster),
1360 # so one script is as good as another.  But avoid the broken or
1361 # incompatible versions:
1362 # SysV /etc/install, /usr/sbin/install
1363 # SunOS /usr/etc/install
1364 # IRIX /sbin/install
1365 # AIX /bin/install
1366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1369 # ./install, which can be erroneously created by make from ./install.sh.
1370 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1371 echo "configure:1372: checking for a BSD compatible install" >&5
1372 if test -z "$INSTALL"; then
1373 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1374   echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1377   for ac_dir in $PATH; do
1378     # Account for people who put trailing slashes in PATH elements.
1379     case "$ac_dir/" in
1380     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1381     *)
1382       # OSF1 and SCO ODT 3.0 have their own names for install.
1383       # Don't use installbsd from OSF since it installs stuff as root
1384       # by default.
1385       for ac_prog in ginstall scoinst install; do
1386         if test -f $ac_dir/$ac_prog; then
1387           if test $ac_prog = install &&
1388             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1389             # AIX install.  It has an incompatible calling convention.
1390             :
1391           else
1392             ac_cv_path_install="$ac_dir/$ac_prog -c"
1393             break 2
1394           fi
1395         fi
1396       done
1397       ;;
1398     esac
1399   done
1400   IFS="$ac_save_IFS"
1401
1402 fi
1403   if test "${ac_cv_path_install+set}" = set; then
1404     INSTALL="$ac_cv_path_install"
1405   else
1406     # As a last resort, use the slow shell script.  We don't cache a
1407     # path for INSTALL within a source directory, because that will
1408     # break other packages using the cache if that directory is
1409     # removed, or if the path is relative.
1410     INSTALL="$ac_install_sh"
1411   fi
1412 fi
1413 echo "$ac_t""$INSTALL" 1>&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423
1424   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether to enable maintainer-specific portions of Makefiles" >&5
1426     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1427 if test "${enable_maintainer_mode+set}" = set; then
1428   enableval="$enable_maintainer_mode"
1429   USE_MAINTAINER_MODE=$enableval
1430 else
1431   USE_MAINTAINER_MODE=no
1432 fi
1433
1434   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1435   
1436
1437 if test $USE_MAINTAINER_MODE = yes; then
1438   MAINTAINER_MODE_TRUE=
1439   MAINTAINER_MODE_FALSE='#'
1440 else
1441   MAINTAINER_MODE_TRUE='#'
1442   MAINTAINER_MODE_FALSE=
1443 fi
1444   MAINT=$MAINTAINER_MODE_TRUE
1445   
1446
1447
1448   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1449   # at least currently, we never actually build a program, so we never
1450   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1451   # fails, because we are probably configuring with a cross compiler
1452   # which can't create executables.  So we include AC_EXEEXT to keep
1453   # automake happy, but we don't execute it, since we don't care about
1454   # the result.
1455   if false; then
1456     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1457     # to nothing, so nothing would remain between `then' and `fi' if it
1458     # were not for the `:' below.
1459     :
1460     
1461
1462 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1463 echo "configure:1464: checking for executable suffix" >&5
1464 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1465   echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1468   ac_cv_exeext=.exe
1469 else
1470   rm -f conftest*
1471   echo 'int main () { return 0; }' > conftest.$ac_ext
1472   ac_cv_exeext=
1473   if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1474     for file in conftest.*; do
1475       case $file in
1476       *.c | *.o | *.obj) ;;
1477       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1478       esac
1479     done
1480   else
1481     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1482   fi
1483   rm -f conftest*
1484   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1485 fi
1486 fi
1487
1488 EXEEXT=""
1489 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1490 echo "$ac_t""${ac_cv_exeext}" 1>&6
1491 ac_exeext=$EXEEXT
1492
1493   fi
1494
1495   case ${glibcpp_basedir} in
1496     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1497     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1498   esac
1499
1500   # Find platform-specific directories containing configuration info.  In
1501   # addition to possibly modifying the same flags, it also sets up symlinks.
1502   
1503   . ${glibcpp_basedir}/configure.host
1504   echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1505   echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1506
1507
1508
1509 am__api_version="1.4"
1510 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1511 echo "configure:1512: checking whether build environment is sane" >&5
1512 # Just in case
1513 sleep 1
1514 echo timestamp > conftestfile
1515 # Do `set' in a subshell so we don't clobber the current shell's
1516 # arguments.  Must try -L first in case configure is actually a
1517 # symlink; some systems play weird games with the mod time of symlinks
1518 # (eg FreeBSD returns the mod time of the symlink's containing
1519 # directory).
1520 if (
1521    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1522    if test "$*" = "X"; then
1523       # -L didn't work.
1524       set X `ls -t $srcdir/configure conftestfile`
1525    fi
1526    if test "$*" != "X $srcdir/configure conftestfile" \
1527       && test "$*" != "X conftestfile $srcdir/configure"; then
1528
1529       # If neither matched, then we have a broken ls.  This can happen
1530       # if, for instance, CONFIG_SHELL is bash and it inherits a
1531       # broken ls alias from the environment.  This has actually
1532       # happened.  Such a system could not be considered "sane".
1533       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1534 alias in your environment" 1>&2; exit 1; }
1535    fi
1536
1537    test "$2" = conftestfile
1538    )
1539 then
1540    # Ok.
1541    :
1542 else
1543    { echo "configure: error: newly created file is older than distributed files!
1544 Check your system clock" 1>&2; exit 1; }
1545 fi
1546 rm -f conftest*
1547 echo "$ac_t""yes" 1>&6
1548 if test "$program_transform_name" = s,x,x,; then
1549   program_transform_name=
1550 else
1551   # Double any \ or $.  echo might interpret backslashes.
1552   cat <<\EOF_SED > conftestsed
1553 s,\\,\\\\,g; s,\$,$$,g
1554 EOF_SED
1555   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1556   rm -f conftestsed
1557 fi
1558 test "$program_prefix" != NONE &&
1559   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1560 # Use a double $ so make ignores it.
1561 test "$program_suffix" != NONE &&
1562   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1563
1564 # sed with no file args requires a program.
1565 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1566
1567 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1568 echo "configure:1569: checking whether ${MAKE-make} sets \${MAKE}" >&5
1569 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1571   echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573   cat > conftestmake <<\EOF
1574 all:
1575         @echo 'ac_maketemp="${MAKE}"'
1576 EOF
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580   eval ac_cv_prog_make_${ac_make}_set=yes
1581 else
1582   eval ac_cv_prog_make_${ac_make}_set=no
1583 fi
1584 rm -f conftestmake
1585 fi
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587   echo "$ac_t""yes" 1>&6
1588   SET_MAKE=
1589 else
1590   echo "$ac_t""no" 1>&6
1591   SET_MAKE="MAKE=${MAKE-make}"
1592 fi
1593
1594
1595 PACKAGE=$PACKAGE
1596
1597 VERSION=$gcc_version
1598
1599 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1600   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1601 fi
1602 cat >> confdefs.h <<EOF
1603 #define PACKAGE "$PACKAGE"
1604 EOF
1605
1606 cat >> confdefs.h <<EOF
1607 #define VERSION "$VERSION"
1608 EOF
1609
1610
1611
1612 missing_dir=`cd $ac_aux_dir && pwd`
1613 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1614 echo "configure:1615: checking for working aclocal-${am__api_version}" >&5
1615 # Run test in a subshell; some versions of sh will print an error if
1616 # an executable is not found, even if stderr is redirected.
1617 # Redirect stdin to placate older versions of autoconf.  Sigh.
1618 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1619    ACLOCAL=aclocal-${am__api_version}
1620    echo "$ac_t""found" 1>&6
1621 else
1622    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1623    echo "$ac_t""missing" 1>&6
1624 fi
1625
1626 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1627 echo "configure:1628: checking for working autoconf" >&5
1628 # Run test in a subshell; some versions of sh will print an error if
1629 # an executable is not found, even if stderr is redirected.
1630 # Redirect stdin to placate older versions of autoconf.  Sigh.
1631 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1632    AUTOCONF=autoconf
1633    echo "$ac_t""found" 1>&6
1634 else
1635    AUTOCONF="$missing_dir/missing autoconf"
1636    echo "$ac_t""missing" 1>&6
1637 fi
1638
1639 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1640 echo "configure:1641: checking for working automake-${am__api_version}" >&5
1641 # Run test in a subshell; some versions of sh will print an error if
1642 # an executable is not found, even if stderr is redirected.
1643 # Redirect stdin to placate older versions of autoconf.  Sigh.
1644 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1645    AUTOMAKE=automake-${am__api_version}
1646    echo "$ac_t""found" 1>&6
1647 else
1648    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1649    echo "$ac_t""missing" 1>&6
1650 fi
1651
1652 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1653 echo "configure:1654: checking for working autoheader" >&5
1654 # Run test in a subshell; some versions of sh will print an error if
1655 # an executable is not found, even if stderr is redirected.
1656 # Redirect stdin to placate older versions of autoconf.  Sigh.
1657 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1658    AUTOHEADER=autoheader
1659    echo "$ac_t""found" 1>&6
1660 else
1661    AUTOHEADER="$missing_dir/missing autoheader"
1662    echo "$ac_t""missing" 1>&6
1663 fi
1664
1665 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working makeinfo" >&5
1667 # Run test in a subshell; some versions of sh will print an error if
1668 # an executable is not found, even if stderr is redirected.
1669 # Redirect stdin to placate older versions of autoconf.  Sigh.
1670 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1671    MAKEINFO=makeinfo
1672    echo "$ac_t""found" 1>&6
1673 else
1674    MAKEINFO="$missing_dir/missing makeinfo"
1675    echo "$ac_t""missing" 1>&6
1676 fi
1677
1678
1679
1680
1681
1682
1683
1684 # Check whether --enable-shared or --disable-shared was given.
1685 if test "${enable_shared+set}" = set; then
1686   enableval="$enable_shared"
1687   p=${PACKAGE-default}
1688 case $enableval in
1689 yes) enable_shared=yes ;;
1690 no) enable_shared=no ;;
1691 *)
1692   enable_shared=no
1693   # Look at the argument we got.  We use all the common list separators.
1694   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1695   for pkg in $enableval; do
1696     if test "X$pkg" = "X$p"; then
1697       enable_shared=yes
1698     fi
1699   done
1700   IFS="$ac_save_ifs"
1701   ;;
1702 esac
1703 else
1704   enable_shared=yes
1705 fi
1706
1707 # Check whether --enable-static or --disable-static was given.
1708 if test "${enable_static+set}" = set; then
1709   enableval="$enable_static"
1710   p=${PACKAGE-default}
1711 case $enableval in
1712 yes) enable_static=yes ;;
1713 no) enable_static=no ;;
1714 *)
1715   enable_static=no
1716   # Look at the argument we got.  We use all the common list separators.
1717   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1718   for pkg in $enableval; do
1719     if test "X$pkg" = "X$p"; then
1720       enable_static=yes
1721     fi
1722   done
1723   IFS="$ac_save_ifs"
1724   ;;
1725 esac
1726 else
1727   enable_static=yes
1728 fi
1729
1730 # Check whether --enable-fast-install or --disable-fast-install was given.
1731 if test "${enable_fast_install+set}" = set; then
1732   enableval="$enable_fast_install"
1733   p=${PACKAGE-default}
1734 case $enableval in
1735 yes) enable_fast_install=yes ;;
1736 no) enable_fast_install=no ;;
1737 *)
1738   enable_fast_install=no
1739   # Look at the argument we got.  We use all the common list separators.
1740   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1741   for pkg in $enableval; do
1742     if test "X$pkg" = "X$p"; then
1743       enable_fast_install=yes
1744     fi
1745   done
1746   IFS="$ac_save_ifs"
1747   ;;
1748 esac
1749 else
1750   enable_fast_install=yes
1751 fi
1752
1753 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1754 if test "${with_gnu_ld+set}" = set; then
1755   withval="$with_gnu_ld"
1756   test "$withval" = no || with_gnu_ld=yes
1757 else
1758   with_gnu_ld=no
1759 fi
1760
1761 ac_prog=ld
1762 if test "$GCC" = yes; then
1763   # Check if gcc -print-prog-name=ld gives a path.
1764   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1765 echo "configure:1766: checking for ld used by GCC" >&5
1766   case $host in
1767   *-*-mingw*)
1768     # gcc leaves a trailing carriage return which upsets mingw
1769     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1770   *)
1771     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1772   esac
1773   case $ac_prog in
1774     # Accept absolute paths.
1775     [\\/]* | [A-Za-z]:[\\/]*)
1776       re_direlt='/[^/][^/]*/\.\./'
1777       # Canonicalize the path of ld
1778       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1779       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1780         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1781       done
1782       test -z "$LD" && LD="$ac_prog"
1783       ;;
1784   "")
1785     # If it fails, then pretend we aren't using GCC.
1786     ac_prog=ld
1787     ;;
1788   *)
1789     # If it is relative, then search for the first ld in PATH.
1790     with_gnu_ld=unknown
1791     ;;
1792   esac
1793 elif test "$with_gnu_ld" = yes; then
1794   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1795 echo "configure:1796: checking for GNU ld" >&5
1796 else
1797   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1798 echo "configure:1799: checking for non-GNU ld" >&5
1799 fi
1800 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1801   echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803   if test -z "$LD"; then
1804   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1805   for ac_dir in $PATH; do
1806     test -z "$ac_dir" && ac_dir=.
1807     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1808       lt_cv_path_LD="$ac_dir/$ac_prog"
1809       # Check to see if the program is GNU ld.  I'd rather use --version,
1810       # but apparently some GNU ld's only accept -v.
1811       # Break only if it was the GNU/non-GNU ld that we prefer.
1812       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1813         test "$with_gnu_ld" != no && break
1814       else
1815         test "$with_gnu_ld" != yes && break
1816       fi
1817     fi
1818   done
1819   IFS="$ac_save_ifs"
1820 else
1821   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1822 fi
1823 fi
1824
1825 LD="$lt_cv_path_LD"
1826 if test -n "$LD"; then
1827   echo "$ac_t""$LD" 1>&6
1828 else
1829   echo "$ac_t""no" 1>&6
1830 fi
1831 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1832 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1833 echo "configure:1834: checking if the linker ($LD) is GNU ld" >&5
1834 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1835   echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1838 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1839   lt_cv_prog_gnu_ld=yes
1840 else
1841   lt_cv_prog_gnu_ld=no
1842 fi
1843 fi
1844
1845 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1846 with_gnu_ld=$lt_cv_prog_gnu_ld
1847
1848
1849 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $LD option to reload object files" >&5
1851 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1852   echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854   lt_cv_ld_reload_flag='-r'
1855 fi
1856
1857 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1858 reload_flag=$lt_cv_ld_reload_flag
1859 test -n "$reload_flag" && reload_flag=" $reload_flag"
1860
1861 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1862 echo "configure:1863: checking for BSD-compatible nm" >&5
1863 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1864   echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866   if test -n "$NM"; then
1867   # Let the user override the test.
1868   lt_cv_path_NM="$NM"
1869 else
1870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1871   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1872     test -z "$ac_dir" && ac_dir=.
1873     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1874     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1875       # Check to see if the nm accepts a BSD-compat flag.
1876       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1877       #   nm: unknown option "B" ignored
1878       # Tru64's nm complains that /dev/null is an invalid object file
1879       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1880         lt_cv_path_NM="$tmp_nm -B"
1881         break
1882       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1883         lt_cv_path_NM="$tmp_nm -p"
1884         break
1885       else
1886         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1887         continue # so that we can try to find one that supports BSD flags
1888       fi
1889     fi
1890   done
1891   IFS="$ac_save_ifs"
1892   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1893 fi
1894 fi
1895
1896 NM="$lt_cv_path_NM"
1897 echo "$ac_t""$NM" 1>&6
1898
1899 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1900 echo "configure:1901: checking how to recognise dependant libraries" >&5
1901 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1902   echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904   lt_cv_file_magic_cmd='$MAGIC_CMD'
1905 lt_cv_file_magic_test_file=
1906 lt_cv_deplibs_check_method='unknown'
1907 # Need to set the preceding variable on all platforms that support
1908 # interlibrary dependencies.
1909 # 'none' -- dependencies not supported.
1910 # `unknown' -- same as none, but documents that we really don't know.
1911 # 'pass_all' -- all dependencies passed with no checks.
1912 # 'test_compile' -- check by making test program.
1913 # 'file_magic [regex]' -- check by looking for files in library path
1914 # which responds to the $file_magic_cmd with a given egrep regex.
1915 # If you have `file' or equivalent on your system and you're not sure
1916 # whether `pass_all' will *always* work, you probably want this one.
1917
1918 case $host_os in
1919 aix*)
1920   lt_cv_deplibs_check_method=pass_all
1921   ;;
1922
1923 beos*)
1924   lt_cv_deplibs_check_method=pass_all
1925   ;;
1926
1927 bsdi4*)
1928   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1929   lt_cv_file_magic_cmd='/usr/bin/file -L'
1930   lt_cv_file_magic_test_file=/shlib/libc.so
1931   ;;
1932
1933 cygwin* | mingw* |pw32*)
1934   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1935   lt_cv_file_magic_cmd='$OBJDUMP -f'
1936   ;;
1937
1938 darwin* | rhapsody*)
1939   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1940   lt_cv_file_magic_cmd='/usr/bin/file -L'
1941   case "$host_os" in
1942   rhapsody* | darwin1.012)
1943     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1944     ;;
1945   *) # Darwin 1.3 on
1946     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1947     ;;
1948   esac
1949   ;;
1950
1951 freebsd* )
1952   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1953     case $host_cpu in
1954     i*86 )
1955       # Not sure whether the presence of OpenBSD here was a mistake.
1956       # Let's accept both of them until this is cleared up.
1957       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1958       lt_cv_file_magic_cmd=/usr/bin/file
1959       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1960       ;;
1961     esac
1962   else
1963     lt_cv_deplibs_check_method=pass_all
1964   fi
1965   ;;
1966
1967 gnu*)
1968   lt_cv_deplibs_check_method=pass_all
1969   ;;
1970
1971 hpux10.20*|hpux11*)
1972   case $host_cpu in
1973   hppa*)
1974     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1975     lt_cv_file_magic_cmd=/usr/bin/file
1976     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1977     ;;
1978   ia64*)
1979     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1980     lt_cv_file_magic_cmd=/usr/bin/file
1981     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1982     ;;
1983   esac
1984   ;;
1985
1986 irix5* | irix6*)
1987   case $host_os in
1988   irix5*)
1989     # this will be overridden with pass_all, but let us keep it just in case
1990     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1991     ;;
1992   *)
1993     case $LD in
1994     *-32|*"-32 ") libmagic=32-bit;;
1995     *-n32|*"-n32 ") libmagic=N32;;
1996     *-64|*"-64 ") libmagic=64-bit;;
1997     *) libmagic=never-match;;
1998     esac
1999     # this will be overridden with pass_all, but let us keep it just in case
2000     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2001     ;;
2002   esac
2003   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2004   lt_cv_deplibs_check_method=pass_all
2005   ;;
2006
2007 # This must be Linux ELF.
2008 linux-gnu*)
2009   case $host_cpu in
2010   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2011     lt_cv_deplibs_check_method=pass_all ;;
2012   *)
2013     # glibc up to 2.1.1 does not perform some relocations on ARM
2014     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2015   esac
2016   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2017   ;;
2018
2019 netbsd*)
2020   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2021     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2022   else
2023     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2024   fi
2025   ;;
2026
2027 newsos6)
2028   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2029   lt_cv_file_magic_cmd=/usr/bin/file
2030   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2031   ;;
2032
2033 osf3* | osf4* | osf5*)
2034   # this will be overridden with pass_all, but let us keep it just in case
2035   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2036   lt_cv_file_magic_test_file=/shlib/libc.so
2037   lt_cv_deplibs_check_method=pass_all
2038   ;;
2039
2040 sco3.2v5*)
2041   lt_cv_deplibs_check_method=pass_all
2042   ;;
2043
2044 solaris*)
2045   lt_cv_deplibs_check_method=pass_all
2046   lt_cv_file_magic_test_file=/lib/libc.so
2047   ;;
2048
2049 sysv5uw[78]* | sysv4*uw2*)
2050   lt_cv_deplibs_check_method=pass_all
2051   ;;
2052
2053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2054   case $host_vendor in
2055   ncr)
2056     lt_cv_deplibs_check_method=pass_all
2057     ;;
2058   motorola)
2059     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]'
2060     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2061     ;;
2062   esac
2063   ;;
2064 esac
2065
2066 fi
2067
2068 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2069 file_magic_cmd=$lt_cv_file_magic_cmd
2070 deplibs_check_method=$lt_cv_deplibs_check_method
2071
2072 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2073 echo "configure:2074: checking for object suffix" >&5
2074 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2075   echo $ac_n "(cached) $ac_c" 1>&6
2076 else
2077   rm -f conftest*
2078 echo 'int i = 1;' > conftest.$ac_ext
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080   for ac_file in conftest.*; do
2081     case $ac_file in
2082     *.c) ;;
2083     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2084     esac
2085   done
2086 else
2087   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2088 fi
2089 rm -f conftest*
2090 fi
2091
2092 echo "$ac_t""$ac_cv_objext" 1>&6
2093 OBJEXT=$ac_cv_objext
2094 ac_objext=$ac_cv_objext
2095
2096 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2097
2098 # Only perform the check for file, if the check method requires it
2099 case $deplibs_check_method in
2100 file_magic*)
2101   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2102     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2103 echo "configure:2104: checking for ${ac_tool_prefix}file" >&5
2104 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2105   echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107   case $MAGIC_CMD in
2108   /*)
2109   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2110   ;;
2111   ?:/*)
2112   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2113   ;;
2114   *)
2115   ac_save_MAGIC_CMD="$MAGIC_CMD"
2116   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2117   ac_dummy="/usr/bin:$PATH"
2118   for ac_dir in $ac_dummy; do
2119     test -z "$ac_dir" && ac_dir=.
2120     if test -f $ac_dir/${ac_tool_prefix}file; then
2121       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2122       if test -n "$file_magic_test_file"; then
2123         case $deplibs_check_method in
2124         "file_magic "*)
2125           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2126           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2127           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2128             egrep "$file_magic_regex" > /dev/null; then
2129             :
2130           else
2131             cat <<EOF 1>&2
2132
2133 *** Warning: the command libtool uses to detect shared libraries,
2134 *** $file_magic_cmd, produces output that libtool cannot recognize.
2135 *** The result is that libtool may fail to recognize shared libraries
2136 *** as such.  This will affect the creation of libtool libraries that
2137 *** depend on shared libraries, but programs linked with such libtool
2138 *** libraries will work regardless of this problem.  Nevertheless, you
2139 *** may want to report the problem to your system manager and/or to
2140 *** bug-libtool@gnu.org
2141
2142 EOF
2143           fi ;;
2144         esac
2145       fi
2146       break
2147     fi
2148   done
2149   IFS="$ac_save_ifs"
2150   MAGIC_CMD="$ac_save_MAGIC_CMD"
2151   ;;
2152 esac
2153 fi
2154
2155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2156 if test -n "$MAGIC_CMD"; then
2157   echo "$ac_t""$MAGIC_CMD" 1>&6
2158 else
2159   echo "$ac_t""no" 1>&6
2160 fi
2161
2162 if test -z "$lt_cv_path_MAGIC_CMD"; then
2163   if test -n "$ac_tool_prefix"; then
2164     echo $ac_n "checking for file""... $ac_c" 1>&6
2165 echo "configure:2166: checking for file" >&5
2166 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2167   echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169   case $MAGIC_CMD in
2170   /*)
2171   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2172   ;;
2173   ?:/*)
2174   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2175   ;;
2176   *)
2177   ac_save_MAGIC_CMD="$MAGIC_CMD"
2178   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2179   ac_dummy="/usr/bin:$PATH"
2180   for ac_dir in $ac_dummy; do
2181     test -z "$ac_dir" && ac_dir=.
2182     if test -f $ac_dir/file; then
2183       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2184       if test -n "$file_magic_test_file"; then
2185         case $deplibs_check_method in
2186         "file_magic "*)
2187           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2188           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2189           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2190             egrep "$file_magic_regex" > /dev/null; then
2191             :
2192           else
2193             cat <<EOF 1>&2
2194
2195 *** Warning: the command libtool uses to detect shared libraries,
2196 *** $file_magic_cmd, produces output that libtool cannot recognize.
2197 *** The result is that libtool may fail to recognize shared libraries
2198 *** as such.  This will affect the creation of libtool libraries that
2199 *** depend on shared libraries, but programs linked with such libtool
2200 *** libraries will work regardless of this problem.  Nevertheless, you
2201 *** may want to report the problem to your system manager and/or to
2202 *** bug-libtool@gnu.org
2203
2204 EOF
2205           fi ;;
2206         esac
2207       fi
2208       break
2209     fi
2210   done
2211   IFS="$ac_save_ifs"
2212   MAGIC_CMD="$ac_save_MAGIC_CMD"
2213   ;;
2214 esac
2215 fi
2216
2217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2218 if test -n "$MAGIC_CMD"; then
2219   echo "$ac_t""$MAGIC_CMD" 1>&6
2220 else
2221   echo "$ac_t""no" 1>&6
2222 fi
2223
2224   else
2225     MAGIC_CMD=:
2226   fi
2227 fi
2228
2229   fi
2230   ;;
2231 esac
2232
2233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2238   echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240   if test -n "$RANLIB"; then
2241   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2242 else
2243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2244   ac_dummy="$PATH"
2245   for ac_dir in $ac_dummy; do
2246     test -z "$ac_dir" && ac_dir=.
2247     if test -f $ac_dir/$ac_word; then
2248       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2249       break
2250     fi
2251   done
2252   IFS="$ac_save_ifs"
2253 fi
2254 fi
2255 RANLIB="$ac_cv_prog_RANLIB"
2256 if test -n "$RANLIB"; then
2257   echo "$ac_t""$RANLIB" 1>&6
2258 else
2259   echo "$ac_t""no" 1>&6
2260 fi
2261
2262
2263 if test -z "$ac_cv_prog_RANLIB"; then
2264 if test -n "$ac_tool_prefix"; then
2265   # Extract the first word of "ranlib", so it can be a program name with args.
2266 set dummy ranlib; ac_word=$2
2267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2268 echo "configure:2269: checking for $ac_word" >&5
2269 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2270   echo $ac_n "(cached) $ac_c" 1>&6
2271 else
2272   if test -n "$RANLIB"; then
2273   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2274 else
2275   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2276   ac_dummy="$PATH"
2277   for ac_dir in $ac_dummy; do
2278     test -z "$ac_dir" && ac_dir=.
2279     if test -f $ac_dir/$ac_word; then
2280       ac_cv_prog_RANLIB="ranlib"
2281       break
2282     fi
2283   done
2284   IFS="$ac_save_ifs"
2285   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2286 fi
2287 fi
2288 RANLIB="$ac_cv_prog_RANLIB"
2289 if test -n "$RANLIB"; then
2290   echo "$ac_t""$RANLIB" 1>&6
2291 else
2292   echo "$ac_t""no" 1>&6
2293 fi
2294
2295 else
2296   RANLIB=":"
2297 fi
2298 fi
2299
2300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2301 set dummy ${ac_tool_prefix}strip; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2305   echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307   if test -n "$STRIP"; then
2308   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2309 else
2310   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2311   ac_dummy="$PATH"
2312   for ac_dir in $ac_dummy; do
2313     test -z "$ac_dir" && ac_dir=.
2314     if test -f $ac_dir/$ac_word; then
2315       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2316       break
2317     fi
2318   done
2319   IFS="$ac_save_ifs"
2320 fi
2321 fi
2322 STRIP="$ac_cv_prog_STRIP"
2323 if test -n "$STRIP"; then
2324   echo "$ac_t""$STRIP" 1>&6
2325 else
2326   echo "$ac_t""no" 1>&6
2327 fi
2328
2329
2330 if test -z "$ac_cv_prog_STRIP"; then
2331 if test -n "$ac_tool_prefix"; then
2332   # Extract the first word of "strip", so it can be a program name with args.
2333 set dummy strip; ac_word=$2
2334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2335 echo "configure:2336: checking for $ac_word" >&5
2336 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2337   echo $ac_n "(cached) $ac_c" 1>&6
2338 else
2339   if test -n "$STRIP"; then
2340   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341 else
2342   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2343   ac_dummy="$PATH"
2344   for ac_dir in $ac_dummy; do
2345     test -z "$ac_dir" && ac_dir=.
2346     if test -f $ac_dir/$ac_word; then
2347       ac_cv_prog_STRIP="strip"
2348       break
2349     fi
2350   done
2351   IFS="$ac_save_ifs"
2352   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2353 fi
2354 fi
2355 STRIP="$ac_cv_prog_STRIP"
2356 if test -n "$STRIP"; then
2357   echo "$ac_t""$STRIP" 1>&6
2358 else
2359   echo "$ac_t""no" 1>&6
2360 fi
2361
2362 else
2363   STRIP=":"
2364 fi
2365 fi
2366
2367
2368 # Check for any special flags to pass to ltconfig.
2369 libtool_flags="--cache-file=$cache_file"
2370 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2371 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2372 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2373 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2374 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2375 libtool_flags="$libtool_flags --enable-dlopen"
2376
2377 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2378 if test "${enable_libtool_lock+set}" = set; then
2379   enableval="$enable_libtool_lock"
2380   :
2381 fi
2382
2383 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2384 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2385
2386 # Check whether --with-pic or --without-pic was given.
2387 if test "${with_pic+set}" = set; then
2388   withval="$with_pic"
2389   pic_mode="$withval"
2390 else
2391   pic_mode=default
2392 fi
2393
2394 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2395 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2396
2397 # Some flags need to be propagated to the compiler or linker for good
2398 # libtool support.
2399 case $host in
2400 *-*-irix6*)
2401   # Find out which ABI we are using.
2402   echo '#line 2403 "configure"' > conftest.$ac_ext
2403   if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2404    if test "$lt_cv_prog_gnu_ld" = yes; then
2405     case `/usr/bin/file conftest.$ac_objext` in
2406     *32-bit*)
2407       LD="${LD-ld} -melf32bsmip"
2408       ;;
2409     *N32*)
2410       LD="${LD-ld} -melf32bmipn32"
2411       ;;
2412     *64-bit*)
2413       LD="${LD-ld} -melf64bmip"
2414       ;;
2415     esac
2416    else
2417     case `/usr/bin/file conftest.$ac_objext` in
2418     *32-bit*)
2419       LD="${LD-ld} -32"
2420       ;;
2421     *N32*)
2422       LD="${LD-ld} -n32"
2423       ;;
2424     *64-bit*)
2425       LD="${LD-ld} -64"
2426       ;;
2427     esac
2428    fi
2429   fi
2430   rm -rf conftest*
2431   ;;
2432
2433 ia64-*-hpux*)
2434   # Find out which ABI we are using.
2435   echo 'int i;' > conftest.$ac_ext
2436   if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2437     case "`/usr/bin/file conftest.o`" in
2438     *ELF-32*)
2439       HPUX_IA64_MODE="32"
2440       ;;
2441     *ELF-64*)
2442       HPUX_IA64_MODE="64"
2443       ;;
2444     esac
2445   fi
2446   rm -rf conftest*
2447   ;;
2448
2449 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2450   # Find out which ABI we are using.
2451   echo 'int i;' > conftest.$ac_ext
2452   if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453     case "`/usr/bin/file conftest.o`" in
2454     *32-bit*)
2455       case $host in
2456         x86_64-*linux*)
2457           LD="${LD-ld} -m elf_i386"
2458           ;;
2459         ppc64-*linux*)
2460           LD="${LD-ld} -m elf32ppclinux"
2461           ;;
2462         s390x-*linux*)
2463           LD="${LD-ld} -m elf_s390"
2464           ;;
2465         sparc64-*linux*)
2466           LD="${LD-ld} -m elf32_sparc"
2467           ;;
2468       esac
2469       ;;
2470     *64-bit*)
2471       case $host in
2472         x86_64-*linux*)
2473           LD="${LD-ld} -m elf_x86_64"
2474           ;;
2475         ppc*-*linux*|powerpc*-*linux*)
2476           LD="${LD-ld} -m elf64ppc"
2477           ;;
2478         s390*-*linux*)
2479           LD="${LD-ld} -m elf64_s390"
2480           ;;
2481         sparc*-*linux*)
2482           LD="${LD-ld} -m elf64_sparc"
2483           ;;
2484       esac
2485       ;;
2486     esac
2487   fi
2488   rm -rf conftest*
2489   ;;
2490
2491 *-*-sco3.2v5*)
2492   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2493   SAVE_CFLAGS="$CFLAGS"
2494   CFLAGS="$CFLAGS -belf"
2495   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2496 echo "configure:2497: checking whether the C compiler needs -belf" >&5
2497 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2498   echo $ac_n "(cached) $ac_c" 1>&6
2499 else
2500   
2501      ac_ext=c
2502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling=$ac_cv_prog_cc_cross
2507
2508      cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511
2512 int main() {
2513
2514 ; return 0; }
2515 EOF
2516 if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517   rm -rf conftest*
2518   lt_cv_cc_needs_belf=yes
2519 else
2520   echo "configure: failed program was:" >&5
2521   cat conftest.$ac_ext >&5
2522   rm -rf conftest*
2523   lt_cv_cc_needs_belf=no
2524 fi
2525 rm -f conftest*
2526      ac_ext=c
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cc_cross
2532
2533 fi
2534
2535 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2536   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2537     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2538     CFLAGS="$SAVE_CFLAGS"
2539   fi
2540   ;;
2541
2542
2543 esac
2544
2545 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2546 echo "configure:2547: checking how to run the C++ preprocessor" >&5
2547 if test -z "$CXXCPP"; then
2548 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2549   echo $ac_n "(cached) $ac_c" 1>&6
2550 else
2551   ac_ext=C
2552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CXXCPP $CPPFLAGS'
2554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cxx_cross
2557   CXXCPP="${CXX-g++} -E"
2558   cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 #include <stdlib.h>
2562 EOF
2563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2564 { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2566 if test -z "$ac_err"; then
2567   :
2568 else
2569   echo "$ac_err" >&5
2570   echo "configure: failed program was:" >&5
2571   cat conftest.$ac_ext >&5
2572   rm -rf conftest*
2573   CXXCPP=/lib/cpp
2574 fi
2575 rm -f conftest*
2576   ac_cv_prog_CXXCPP="$CXXCPP"
2577 ac_ext=c
2578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2582 cross_compiling=$ac_cv_prog_cc_cross
2583 fi
2584 fi
2585 CXXCPP="$ac_cv_prog_CXXCPP"
2586 echo "$ac_t""$CXXCPP" 1>&6
2587
2588
2589 # Save cache, so that ltconfig can load it
2590 cat > confcache <<\EOF
2591 # This file is a shell script that caches the results of configure
2592 # tests run on this system so they can be shared between configure
2593 # scripts and configure runs.  It is not useful on other systems.
2594 # If it contains results you don't want to keep, you may remove or edit it.
2595 #
2596 # By default, configure uses ./config.cache as the cache file,
2597 # creating it if it does not exist already.  You can give configure
2598 # the --cache-file=FILE option to use a different cache file; that is
2599 # what configure does when it calls configure scripts in
2600 # subdirectories, so they share the cache.
2601 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2602 # config.status only pays attention to the cache file if you give it the
2603 # --recheck option to rerun configure.
2604 #
2605 EOF
2606 # The following way of writing the cache mishandles newlines in values,
2607 # but we know of no workaround that is simple, portable, and efficient.
2608 # So, don't put newlines in cache variables' values.
2609 # Ultrix sh set writes to stderr and can't be redirected directly,
2610 # and sets the high bit in the cache file unless we assign to the vars.
2611 (set) 2>&1 |
2612   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2613   *ac_space=\ *)
2614     # `set' does not quote correctly, so add quotes (double-quote substitution
2615     # turns \\\\ into \\, and sed turns \\ into \).
2616     sed -n \
2617       -e "s/'/'\\\\''/g" \
2618       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2619     ;;
2620   *)
2621     # `set' quotes correctly as required by POSIX, so do not add quotes.
2622     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2623     ;;
2624   esac >> confcache
2625 if cmp -s $cache_file confcache; then
2626   :
2627 else
2628   if test -w $cache_file; then
2629     echo "updating cache $cache_file"
2630     cat confcache > $cache_file
2631   else
2632     echo "not updating unwritable cache $cache_file"
2633   fi
2634 fi
2635 rm -f confcache
2636
2637
2638 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2639 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2640 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2641 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2642 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2643 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2644 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2645 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2646 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2647 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2648
2649 # Reload cache, that may have been modified by ltconfig
2650 if test -r "$cache_file"; then
2651   echo "loading cache $cache_file"
2652   . $cache_file
2653 else
2654   echo "creating cache $cache_file"
2655   > $cache_file
2656 fi
2657
2658
2659 # This can be used to rebuild libtool when needed
2660 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2661
2662 # Always use our own libtool.
2663 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2664
2665 # Redirect the config.log output again, so that the ltconfig log is not
2666 # clobbered by the next message.
2667 exec 5>>./config.log
2668
2669
2670
2671 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2672 lt_save_CC="$CC"
2673 lt_save_CFLAGS="$CFLAGS"
2674 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2675 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2676 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2677 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2678 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2679 deplibs_check_method="$deplibs_check_method" \
2680 file_magic_cmd="$file_magic_cmd" \
2681 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2682 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2683 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2684 CC="$lt_save_CC"
2685 CFLAGS="$lt_save_CFLAGS"
2686
2687 # Redirect the config.log output again, so that the ltconfig log is not
2688 # clobbered by the next message.
2689 exec 5>>./config.log
2690
2691   
2692
2693   
2694          
2695          
2696
2697
2698
2699 # Check for c++ or library specific bits that don't require linking.
2700 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2701 echo "configure:2702: checking for GNU make" >&5
2702 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2703   echo $ac_n "(cached) $ac_c" 1>&6
2704 else
2705   _cv_gnu_make_command='' ;
2706           for a in "${MAKE-make}" make gmake gnumake ; do
2707                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2708                   then
2709                           _cv_gnu_make_command=$a ;
2710                           break;
2711                   fi
2712           done ;
2713   
2714 fi
2715
2716 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2717   if test  "x$_cv_gnu_make_command" != "x"  ; then
2718           ifGNUmake='' ;
2719   else
2720           ifGNUmake='#' ;
2721   fi
2722   
2723
2724 #GLIBCPP_CHECK_COMPILER_VERSION
2725
2726   ac_test_CXXFLAGS="${CXXFLAGS+set}"
2727   ac_save_CXXFLAGS="$CXXFLAGS"
2728   CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2729
2730   echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2731 echo "configure:2732: checking for compiler that seems to compile .gch files" >&5
2732   if test x${glibcpp_pch_comp+set} != xset; then
2733     if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2734   echo $ac_n "(cached) $ac_c" 1>&6
2735 else
2736   
2737       
2738       ac_ext=C
2739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2740 ac_cpp='$CXXCPP $CPPFLAGS'
2741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2743 cross_compiling=$ac_cv_prog_cxx_cross
2744
2745       cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 #include <math.h>
2749                      
2750 int main() {
2751  (0);
2752 ; return 0; }
2753 EOF
2754 if { (eval echo configure:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2755   rm -rf conftest*
2756   glibcpp_pch_comp=yes
2757 else
2758   echo "configure: failed program was:" >&5
2759   cat conftest.$ac_ext >&5
2760   rm -rf conftest*
2761   glibcpp_pch_comp=no
2762 fi
2763 rm -f conftest*
2764       ac_ext=c
2765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2769 cross_compiling=$ac_cv_prog_cc_cross
2770
2771     
2772 fi
2773
2774   fi
2775   echo "$ac_t""$glibcpp_pch_comp" 1>&6
2776
2777   CXXFLAGS="$ac_save_CXXFLAGS"
2778   
2779
2780 if test "$glibcpp_pch_comp" = yes; then
2781   GLIBCPP_BUILD_PCH_TRUE=
2782   GLIBCPP_BUILD_PCH_FALSE='#'
2783 else
2784   GLIBCPP_BUILD_PCH_TRUE='#'
2785   GLIBCPP_BUILD_PCH_FALSE=
2786 fi
2787
2788
2789 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2790 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2791 echo "configure:2792: checking how to run the C preprocessor" >&5
2792 # On Suns, sometimes $CPP names a directory.
2793 if test -n "$CPP" && test -d "$CPP"; then
2794   CPP=
2795 fi
2796 if test -z "$CPP"; then
2797 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2798   echo $ac_n "(cached) $ac_c" 1>&6
2799 else
2800     # This must be in double quotes, not single quotes, because CPP may get
2801   # substituted into the Makefile and "${CC-cc}" will confuse make.
2802   CPP="${CC-cc} -E"
2803   # On the NeXT, cc -E runs the code through the compiler's parser,
2804   # not just through cpp.
2805   cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <assert.h>
2809 Syntax Error
2810 EOF
2811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2812 { (eval echo configure:2813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2814 if test -z "$ac_err"; then
2815   :
2816 else
2817   echo "$ac_err" >&5
2818   echo "configure: failed program was:" >&5
2819   cat conftest.$ac_ext >&5
2820   rm -rf conftest*
2821   CPP="${CC-cc} -E -traditional-cpp"
2822   cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 #include <assert.h>
2826 Syntax Error
2827 EOF
2828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2832   :
2833 else
2834   echo "$ac_err" >&5
2835   echo "configure: failed program was:" >&5
2836   cat conftest.$ac_ext >&5
2837   rm -rf conftest*
2838   CPP="${CC-cc} -nologo -E"
2839   cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #include <assert.h>
2843 Syntax Error
2844 EOF
2845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2846 { (eval echo configure:2847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2848 if test -z "$ac_err"; then
2849   :
2850 else
2851   echo "$ac_err" >&5
2852   echo "configure: failed program was:" >&5
2853   cat conftest.$ac_ext >&5
2854   rm -rf conftest*
2855   CPP=/lib/cpp
2856 fi
2857 rm -f conftest*
2858 fi
2859 rm -f conftest*
2860 fi
2861 rm -f conftest*
2862   ac_cv_prog_CPP="$CPP"
2863 fi
2864   CPP="$ac_cv_prog_CPP"
2865 else
2866   ac_cv_prog_CPP="$CPP"
2867 fi
2868 echo "$ac_t""$CPP" 1>&6
2869
2870
2871   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2872 echo "configure:2873: checking for cstdio to use" >&5
2873   # Check whether --enable-cstdio or --disable-cstdio was given.
2874 if test "${enable_cstdio+set}" = set; then
2875   enableval="$enable_cstdio"
2876   if test x$enable_cstdio = xno; then
2877      enable_cstdio=stdio
2878   fi
2879 else
2880   enable_cstdio=stdio
2881 fi
2882
2883
2884   enable_cstdio_flag=$enable_cstdio
2885
2886     case x${enable_cstdio_flag} in
2887     xlibio)
2888       CSTDIO_H=config/io/c_io_libio.h
2889       BASIC_FILE_H=config/io/basic_file_libio.h
2890       BASIC_FILE_CC=config/io/basic_file_libio.cc
2891       echo "$ac_t""libio" 1>&6
2892
2893       # see if we are on a system with libio native (ie, linux)
2894       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2895 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2896 echo "configure:2897: checking for libio.h" >&5
2897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2898   echo $ac_n "(cached) $ac_c" 1>&6
2899 else
2900   cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2903 #include <libio.h>
2904 EOF
2905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2906 { (eval echo configure:2907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2908 if test -z "$ac_err"; then
2909   rm -rf conftest*
2910   eval "ac_cv_header_$ac_safe=yes"
2911 else
2912   echo "$ac_err" >&5
2913   echo "configure: failed program was:" >&5
2914   cat conftest.$ac_ext >&5
2915   rm -rf conftest*
2916   eval "ac_cv_header_$ac_safe=no"
2917 fi
2918 rm -f conftest*
2919 fi
2920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2921   echo "$ac_t""yes" 1>&6
2922   has_libio=yes
2923 else
2924   echo "$ac_t""no" 1>&6
2925 has_libio=no
2926 fi
2927
2928
2929       # Need to check and see what version of glibc is being used. If
2930       # it's not glibc-2.2 or higher, then we'll need to go ahead and
2931       # compile most of libio for linux systems.
2932       if test x$has_libio = x"yes"; then
2933         case "$target" in
2934           *-*-linux*)
2935               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2936 echo "configure:2937: checking for glibc version >= 2.2" >&5
2937               cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2940
2941             #include <features.h>
2942               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2943                     ok
2944               #endif
2945               
2946 EOF
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948   egrep "ok" >/dev/null 2>&1; then
2949   rm -rf conftest*
2950   glibc_satisfactory=yes
2951 else
2952   rm -rf conftest*
2953   glibc_satisfactory=no
2954 fi
2955 rm -f conftest*
2956
2957               echo "$ac_t""$glibc_satisfactory" 1>&6
2958             ;;
2959         esac
2960
2961         # XXX at the moment, admit defeat and force the recompilation
2962         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2963         glibc_satisfactory=no
2964
2965         if test x$glibc_satisfactory = x"yes"; then
2966            need_libio=no
2967            need_wlibio=no
2968         else
2969            need_libio=yes
2970            # bkoz XXX need to add checks to enable this
2971            # pme XXX here's a first pass at such a check
2972            if test x$enable_c_mbchar != xno; then
2973               need_wlibio=yes
2974            else
2975               need_wlibio=no
2976            fi
2977         fi
2978
2979       else
2980          # Using libio, but <libio.h> doesn't exist on the target system. . .
2981          need_libio=yes
2982          # bkoz XXX need to add checks to enable this
2983          # pme XXX here's a first pass at such a check
2984          if test x$enable_c_mbchar != xno; then
2985              need_wlibio=yes
2986          else
2987              need_wlibio=no
2988          fi
2989       fi
2990       ;;
2991     xstdio | x | xno | xnone | xyes)
2992       # default
2993       CSTDIO_H=config/io/c_io_stdio.h
2994       BASIC_FILE_H=config/io/basic_file_stdio.h
2995       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2996       echo "$ac_t""stdio" 1>&6
2997
2998       # We're not using stdio.
2999       need_libio=no
3000       need_wlibio=no
3001       ;;
3002     *)
3003       echo "$enable_cstdio is an unknown io package" 1>&2
3004       exit 1
3005       ;;
3006   esac
3007   
3008   
3009   
3010
3011   # 2000-08-04 bkoz hack
3012   CCODECVT_C=config/io/c_io_libio_codecvt.c
3013   
3014   # 2000-08-04 bkoz hack
3015
3016   
3017
3018 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3019   GLIBCPP_BUILD_LIBIO_TRUE=
3020   GLIBCPP_BUILD_LIBIO_FALSE='#'
3021 else
3022   GLIBCPP_BUILD_LIBIO_TRUE='#'
3023   GLIBCPP_BUILD_LIBIO_FALSE=
3024 fi
3025   
3026
3027 if test "$need_libio" = yes; then
3028   GLIBCPP_NEED_LIBIO_TRUE=
3029   GLIBCPP_NEED_LIBIO_FALSE='#'
3030 else
3031   GLIBCPP_NEED_LIBIO_TRUE='#'
3032   GLIBCPP_NEED_LIBIO_FALSE=
3033 fi
3034   
3035
3036 if test "$need_wlibio" = yes; then
3037   GLIBCPP_NEED_WLIBIO_TRUE=
3038   GLIBCPP_NEED_WLIBIO_FALSE='#'
3039 else
3040   GLIBCPP_NEED_WLIBIO_TRUE='#'
3041   GLIBCPP_NEED_WLIBIO_FALSE=
3042 fi
3043   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3044     libio_la=../libio/libio.la
3045   else
3046     libio_la=
3047   fi
3048   
3049
3050
3051   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3052 echo "configure:3053: checking for clocale to use" >&5
3053   # Check whether --enable-clocale or --disable-clocale was given.
3054 if test "${enable_clocale+set}" = set; then
3055   enableval="$enable_clocale"
3056   if test x$enable_clocale = xno; then
3057      enable_clocale=no
3058   fi
3059 else
3060   enable_clocale=no
3061 fi
3062
3063
3064   enable_clocale_flag=$enable_clocale
3065
3066       if test x$enable_clocale_flag = xno; then
3067     case x${target_os} in
3068       xlinux* | xgnu*)
3069         cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072
3073         #include <features.h>
3074         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3075           _GLIBCPP_ok
3076         #endif
3077         
3078 EOF
3079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3080   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3081   rm -rf conftest*
3082   enable_clocale_flag=gnu
3083 else
3084   rm -rf conftest*
3085   enable_clocale_flag=generic
3086 fi
3087 rm -f conftest*
3088
3089
3090         # Test for bugs early in glibc-2.2.x series
3091         if test x$enable_clocale_flag = xgnu; then
3092           if test "$cross_compiling" = yes; then
3093   enable_clocale_flag=generic
3094 else
3095   cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098
3099           #define _GNU_SOURCE 1
3100           #include <locale.h>
3101           #include <string.h>
3102           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3103           extern __typeof(newlocale) __newlocale;
3104           extern __typeof(duplocale) __duplocale;
3105           extern __typeof(strcoll_l) __strcoll_l;
3106           #endif
3107           int main()
3108           {
3109             const char __one[] = "Äuglein Augmen";
3110             const char __two[] = "Äuglein";
3111             int i;
3112             int j;
3113             __locale_t  loc;
3114             __locale_t  loc_dup;
3115             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3116             loc_dup = __duplocale(loc);
3117             i = __strcoll_l(__one, __two, loc);
3118             j = __strcoll_l(__one, __two, loc_dup);
3119             return 0;
3120           }
3121           
3122 EOF
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3124 then
3125   enable_clocale_flag=gnu
3126 else
3127   echo "configure: failed program was:" >&5
3128   cat conftest.$ac_ext >&5
3129   rm -fr conftest*
3130   enable_clocale_flag=generic
3131 fi
3132 rm -fr conftest*
3133 fi
3134
3135         fi
3136
3137         # ... at some point put __strxfrm_l tests in as well.
3138         ;;
3139       *)
3140         enable_clocale_flag=generic
3141         ;;
3142     esac
3143   fi
3144
3145     # Check whether --enable-nls or --disable-nls was given.
3146 if test "${enable_nls+set}" = set; then
3147   enableval="$enable_nls"
3148   :
3149 else
3150   enable_nls=yes
3151 fi
3152
3153   USE_NLS=no
3154
3155     case x${enable_clocale_flag} in
3156     xgeneric)
3157       echo "$ac_t""generic" 1>&6
3158
3159       CLOCALE_H=config/locale/generic/c_locale.h
3160       CLOCALE_CC=config/locale/generic/c_locale.cc
3161       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3162       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3163       CCOLLATE_CC=config/locale/generic/collate_members.cc
3164       CCTYPE_CC=config/locale/generic/ctype_members.cc
3165       CMESSAGES_H=config/locale/generic/messages_members.h
3166       CMESSAGES_CC=config/locale/generic/messages_members.cc
3167       CMONEY_CC=config/locale/generic/monetary_members.cc
3168       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3169       CTIME_H=config/locale/generic/time_members.h
3170       CTIME_CC=config/locale/generic/time_members.cc
3171       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3172       ;;
3173     xgnu)
3174       echo "$ac_t""gnu" 1>&6
3175
3176       # Declare intention to use gettext, and add support for specific
3177       # languages.
3178       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3179       ALL_LINGUAS="de fr"
3180
3181       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3182       # Extract the first word of "msgfmt", so it can be a program name with args.
3183 set dummy msgfmt; ac_word=$2
3184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_word" >&5
3186 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3187   echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3189   if test -n "$check_msgfmt"; then
3190   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3191 else
3192   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3193   ac_dummy="$PATH"
3194   for ac_dir in $ac_dummy; do
3195     test -z "$ac_dir" && ac_dir=.
3196     if test -f $ac_dir/$ac_word; then
3197       ac_cv_prog_check_msgfmt="yes"
3198       break
3199     fi
3200   done
3201   IFS="$ac_save_ifs"
3202   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3203 fi
3204 fi
3205 check_msgfmt="$ac_cv_prog_check_msgfmt"
3206 if test -n "$check_msgfmt"; then
3207   echo "$ac_t""$check_msgfmt" 1>&6
3208 else
3209   echo "$ac_t""no" 1>&6
3210 fi
3211
3212       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3213         USE_NLS=yes
3214       fi
3215       # Export the build objects.
3216       for ling in $ALL_LINGUAS; do \
3217         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3218         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3219       done
3220       
3221       
3222
3223       CLOCALE_H=config/locale/gnu/c_locale.h
3224       CLOCALE_CC=config/locale/gnu/c_locale.cc
3225       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3226       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3227       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3228       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3229       CMESSAGES_H=config/locale/gnu/messages_members.h
3230       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3231       CMONEY_CC=config/locale/gnu/monetary_members.cc
3232       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3233       CTIME_H=config/locale/gnu/time_members.h
3234       CTIME_CC=config/locale/gnu/time_members.cc
3235       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3236       ;;
3237     xieee_1003.1-2001)
3238       echo "$ac_t""IEEE 1003.1" 1>&6
3239
3240       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3241       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3242       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3243       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3244       CCOLLATE_CC=config/locale/generic/collate_members.cc
3245       CCTYPE_CC=config/locale/generic/ctype_members.cc
3246       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3247       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3248       CMONEY_CC=config/locale/generic/monetary_members.cc
3249       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3250       CTIME_H=config/locale/generic/time_members.h
3251       CTIME_CC=config/locale/generic/time_members.cc
3252       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3253       ;;
3254     *)
3255       echo "$enable_clocale is an unknown locale package" 1>&2
3256       exit 1
3257       ;;
3258   esac
3259
3260   # This is where the testsuite looks for locale catalogs, using the
3261   # -DLOCALEDIR define during testsuite compilation.
3262   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3263   
3264
3265   # A standalone libintl (e.g., GNU libintl) may be in use.
3266   if test $USE_NLS = yes; then
3267     for ac_hdr in libintl.h
3268 do
3269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_hdr" >&5
3272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3273   echo $ac_n "(cached) $ac_c" 1>&6
3274 else
3275   cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 #include <$ac_hdr>
3279 EOF
3280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3284   rm -rf conftest*
3285   eval "ac_cv_header_$ac_safe=yes"
3286 else
3287   echo "$ac_err" >&5
3288   echo "configure: failed program was:" >&5
3289   cat conftest.$ac_ext >&5
3290   rm -rf conftest*
3291   eval "ac_cv_header_$ac_safe=no"
3292 fi
3293 rm -f conftest*
3294 fi
3295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3296   echo "$ac_t""yes" 1>&6
3297     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3298   cat >> confdefs.h <<EOF
3299 #define $ac_tr_hdr 1
3300 EOF
3301  
3302 else
3303   echo "$ac_t""no" 1>&6
3304 USE_NLS=no
3305 fi
3306 done
3307
3308     
3309 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3310 echo "configure:3311: checking for library containing gettext" >&5
3311 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3312   echo $ac_n "(cached) $ac_c" 1>&6
3313 else
3314   ac_func_search_save_LIBS="$LIBS"
3315 ac_cv_search_gettext="no"
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* Override any gcc2 internal prototype to avoid an error.  */
3320 /* We use char because int might match the return type of a gcc2
3321     builtin and then its argument prototype would still apply.  */
3322 char gettext();
3323
3324 int main() {
3325 gettext()
3326 ; return 0; }
3327 EOF
3328 if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3329   rm -rf conftest*
3330   ac_cv_search_gettext="none required"
3331 else
3332   echo "configure: failed program was:" >&5
3333   cat conftest.$ac_ext >&5
3334 fi
3335 rm -f conftest*
3336 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3337 LIBS="-l$i  $ac_func_search_save_LIBS"
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* Override any gcc2 internal prototype to avoid an error.  */
3342 /* We use char because int might match the return type of a gcc2
3343     builtin and then its argument prototype would still apply.  */
3344 char gettext();
3345
3346 int main() {
3347 gettext()
3348 ; return 0; }
3349 EOF
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351   rm -rf conftest*
3352   ac_cv_search_gettext="-l$i"
3353 break
3354 else
3355   echo "configure: failed program was:" >&5
3356   cat conftest.$ac_ext >&5
3357 fi
3358 rm -f conftest*
3359 done
3360 LIBS="$ac_func_search_save_LIBS"
3361 fi
3362
3363 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3364 if test "$ac_cv_search_gettext" != "no"; then
3365   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3366   
3367 else :
3368   USE_NLS=no
3369 fi
3370   fi
3371   if test $USE_NLS = yes; then
3372     cat >> confdefs.h <<\EOF
3373 #define _GLIBCPP_USE_NLS 1
3374 EOF
3375
3376   fi
3377
3378   
3379   
3380   
3381   
3382   
3383   
3384   
3385   
3386   
3387   
3388   
3389   
3390   
3391   
3392
3393 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3394 echo "configure:3395: checking for c header strategy to use" >&5
3395 # Check whether --enable-cheaders or --disable-cheaders was given.
3396 if test "${enable_cheaders+set}" = set; then
3397   enableval="$enable_cheaders"
3398   
3399   case "$enableval" in
3400    c)
3401         enable_cheaders=c
3402         ;;
3403    c_std)
3404         enable_cheaders=c_std
3405         ;;
3406    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3407         ;;
3408   esac
3409 else
3410   enable_cheaders=c_std
3411 fi
3412
3413   echo "$ac_t""$enable_cheaders" 1>&6
3414
3415     case "$enable_cheaders" in
3416     c_std)
3417         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3418         ;;
3419     c)
3420         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3421         ;;
3422   esac
3423
3424   
3425   
3426
3427 if test "$enable_cheaders" = c; then
3428   GLIBCPP_C_HEADERS_C_TRUE=
3429   GLIBCPP_C_HEADERS_C_FALSE='#'
3430 else
3431   GLIBCPP_C_HEADERS_C_TRUE='#'
3432   GLIBCPP_C_HEADERS_C_FALSE=
3433 fi
3434   
3435
3436 if test "$enable_cheaders" = c_std; then
3437   GLIBCPP_C_HEADERS_C_STD_TRUE=
3438   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3439 else
3440   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3441   GLIBCPP_C_HEADERS_C_STD_FALSE=
3442 fi
3443   
3444
3445 if test "$c_compatibility" = yes; then
3446   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3447   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3448 else
3449   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3450   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3451 fi
3452
3453 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3454 if test "${enable_c_mbchar+set}" = set; then
3455   enableval="$enable_c_mbchar"
3456   case "$enableval" in
3457  yes) enable_c_mbchar=yes ;;
3458  no)  enable_c_mbchar=no ;;
3459  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3460  esac
3461 else
3462   enable_c_mbchar=yes
3463 fi
3464
3465   
3466   # Check whether --enable-c99 or --disable-c99 was given.
3467 if test "${enable_c99+set}" = set; then
3468   enableval="$enable_c99"
3469     case "$enableval" in
3470    yes) enable_c99=yes ;;
3471    no)  enable_c99=no ;;
3472    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3473    esac
3474 else
3475   enable_c99=yes
3476 fi
3477
3478   
3479   ac_ext=C
3480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3481 ac_cpp='$CXXCPP $CPPFLAGS'
3482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3484 cross_compiling=$ac_cv_prog_cxx_cross
3485
3486
3487   # Check for the existence of <math.h> functions used if C99 is enabled.
3488   ac_c99_math=yes;
3489   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3490 echo "configure:3491: checking for ISO C99 support in <math.h>" >&5
3491   cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <math.h>
3495 int main() {
3496 fpclassify(0.0);
3497 ; return 0; }
3498 EOF
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500   :
3501 else
3502   echo "configure: failed program was:" >&5
3503   cat conftest.$ac_ext >&5
3504   rm -rf conftest*
3505   ac_c99_math=no
3506 fi
3507 rm -f conftest*
3508   cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <math.h>
3512 int main() {
3513 isfinite(0.0);
3514 ; return 0; }
3515 EOF
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517   :
3518 else
3519   echo "configure: failed program was:" >&5
3520   cat conftest.$ac_ext >&5
3521   rm -rf conftest*
3522   ac_c99_math=no
3523 fi
3524 rm -f conftest*
3525   cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <math.h>
3529 int main() {
3530 isinf(0.0);
3531 ; return 0; }
3532 EOF
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534   :
3535 else
3536   echo "configure: failed program was:" >&5
3537   cat conftest.$ac_ext >&5
3538   rm -rf conftest*
3539   ac_c99_math=no
3540 fi
3541 rm -f conftest*
3542   cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <math.h>
3546 int main() {
3547 isnan(0.0);
3548 ; return 0; }
3549 EOF
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551   :
3552 else
3553   echo "configure: failed program was:" >&5
3554   cat conftest.$ac_ext >&5
3555   rm -rf conftest*
3556   ac_c99_math=no
3557 fi
3558 rm -f conftest*
3559   cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <math.h>
3563 int main() {
3564 isnormal(0.0);
3565 ; return 0; }
3566 EOF
3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568   :
3569 else
3570   echo "configure: failed program was:" >&5
3571   cat conftest.$ac_ext >&5
3572   rm -rf conftest*
3573   ac_c99_math=no
3574 fi
3575 rm -f conftest*
3576   cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <math.h>
3580 int main() {
3581 signbit(0.0);
3582 ; return 0; }
3583 EOF
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585   :
3586 else
3587   echo "configure: failed program was:" >&5
3588   cat conftest.$ac_ext >&5
3589   rm -rf conftest*
3590   ac_c99_math=no
3591 fi
3592 rm -f conftest*
3593   cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <math.h>
3597 int main() {
3598 isgreater(0.0,0.0);
3599 ; return 0; }
3600 EOF
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602   :
3603 else
3604   echo "configure: failed program was:" >&5
3605   cat conftest.$ac_ext >&5
3606   rm -rf conftest*
3607   ac_c99_math=no
3608 fi
3609 rm -f conftest*
3610   cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <math.h>
3614 int main() {
3615 isgreaterequal(0.0,0.0);
3616 ; return 0; }
3617 EOF
3618 if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619   :
3620 else
3621   echo "configure: failed program was:" >&5
3622   cat conftest.$ac_ext >&5
3623   rm -rf conftest*
3624   ac_c99_math=no
3625 fi
3626 rm -f conftest*
3627   cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 #include <math.h>
3631 int main() {
3632 isless(0.0,0.0);
3633 ; return 0; }
3634 EOF
3635 if { (eval echo configure:3636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3636   :
3637 else
3638   echo "configure: failed program was:" >&5
3639   cat conftest.$ac_ext >&5
3640   rm -rf conftest*
3641   ac_c99_math=no
3642 fi
3643 rm -f conftest*
3644   cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 #include <math.h>
3648 int main() {
3649 islessequal(0.0,0.0);
3650 ; return 0; }
3651 EOF
3652 if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3653   :
3654 else
3655   echo "configure: failed program was:" >&5
3656   cat conftest.$ac_ext >&5
3657   rm -rf conftest*
3658   ac_c99_math=no
3659 fi
3660 rm -f conftest*
3661   cat > conftest.$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3664 #include <math.h>
3665 int main() {
3666 islessgreater(0.0,0.0);
3667 ; return 0; }
3668 EOF
3669 if { (eval echo configure:3670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3670   :
3671 else
3672   echo "configure: failed program was:" >&5
3673   cat conftest.$ac_ext >&5
3674   rm -rf conftest*
3675   ac_c99_math=no
3676 fi
3677 rm -f conftest*
3678   cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 #include <math.h>
3682 int main() {
3683 isunordered(0.0,0.0);
3684 ; return 0; }
3685 EOF
3686 if { (eval echo configure:3687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3687   :
3688 else
3689   echo "configure: failed program was:" >&5
3690   cat conftest.$ac_ext >&5
3691   rm -rf conftest*
3692   ac_c99_math=no
3693 fi
3694 rm -f conftest*
3695   echo "$ac_t""$ac_c99_math" 1>&6
3696
3697   # Check for the existence in <stdio.h> of vscanf, et. al.
3698   ac_c99_stdio=yes;
3699   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3700 echo "configure:3701: checking for ISO C99 support in <stdio.h>" >&5
3701   cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 #include <stdio.h>
3705 int main() {
3706 snprintf("12", 0, "%i");
3707 ; return 0; }
3708 EOF
3709 if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3710   :
3711 else
3712   echo "configure: failed program was:" >&5
3713   cat conftest.$ac_ext >&5
3714   rm -rf conftest*
3715   ac_c99_stdio=no
3716 fi
3717 rm -f conftest*
3718   cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <stdio.h>
3722                   #include <stdarg.h>
3723                   void foo(char* fmt, ...)
3724                   {va_list args; va_start(args, fmt);
3725                   vfscanf(stderr, "%i", args);}
3726 int main() {
3727
3728 ; return 0; }
3729 EOF
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3731   :
3732 else
3733   echo "configure: failed program was:" >&5
3734   cat conftest.$ac_ext >&5
3735   rm -rf conftest*
3736   ac_c99_stdio=no
3737 fi
3738 rm -f conftest*
3739   cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <stdio.h>
3743                   #include <stdarg.h>
3744                   void foo(char* fmt, ...)
3745                   {va_list args; va_start(args, fmt);
3746                   vscanf("%i", args);}
3747 int main() {
3748
3749 ; return 0; }
3750 EOF
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752   :
3753 else
3754   echo "configure: failed program was:" >&5
3755   cat conftest.$ac_ext >&5
3756   rm -rf conftest*
3757   ac_c99_stdio=no
3758 fi
3759 rm -f conftest*
3760   cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <stdio.h>
3764                   #include <stdarg.h>
3765                   void foo(char* fmt, ...)
3766                   {va_list args; va_start(args, fmt);
3767                   vsnprintf(fmt, 0, "%i", args);}
3768 int main() {
3769
3770 ; return 0; }
3771 EOF
3772 if { (eval echo configure:3773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3773   :
3774 else
3775   echo "configure: failed program was:" >&5
3776   cat conftest.$ac_ext >&5
3777   rm -rf conftest*
3778   ac_c99_stdio=no
3779 fi
3780 rm -f conftest*
3781   cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 #include <stdio.h>
3785                   #include <stdarg.h>
3786                   void foo(char* fmt, ...)
3787                   {va_list args; va_start(args, fmt);
3788                   vsscanf(fmt, "%i", args);}
3789 int main() {
3790
3791 ; return 0; }
3792 EOF
3793 if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794   :
3795 else
3796   echo "configure: failed program was:" >&5
3797   cat conftest.$ac_ext >&5
3798   rm -rf conftest*
3799   ac_c99_stdio=no
3800 fi
3801 rm -f conftest*
3802   echo "$ac_t""$ac_c99_stdio" 1>&6
3803
3804   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3805   ac_c99_stdlib=yes;
3806   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3807 echo "configure:3808: checking for lldiv_t declaration" >&5
3808   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3809   echo $ac_n "(cached) $ac_c" 1>&6
3810 else
3811   
3812   cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <stdlib.h>
3816 int main() {
3817  lldiv_t mydivt;
3818 ; return 0; }
3819 EOF
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3821   rm -rf conftest*
3822   ac_c99_lldiv_t=yes
3823 else
3824   echo "configure: failed program was:" >&5
3825   cat conftest.$ac_ext >&5
3826   rm -rf conftest*
3827   ac_c99_lldiv_t=no
3828 fi
3829 rm -f conftest*
3830   
3831 fi
3832
3833   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3834
3835   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3836 echo "configure:3837: checking for ISO C99 support in <stdlib.h>" >&5
3837   cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <stdlib.h>
3841 int main() {
3842 char* tmp; strtof("gnu", &tmp);
3843 ; return 0; }
3844 EOF
3845 if { (eval echo configure:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3846   :
3847 else
3848   echo "configure: failed program was:" >&5
3849   cat conftest.$ac_ext >&5
3850   rm -rf conftest*
3851   ac_c99_stdlib=no
3852 fi
3853 rm -f conftest*
3854   cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 #include <stdlib.h>
3858 int main() {
3859 char* tmp; strtold("gnu", &tmp);
3860 ; return 0; }
3861 EOF
3862 if { (eval echo configure:3863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863   :
3864 else
3865   echo "configure: failed program was:" >&5
3866   cat conftest.$ac_ext >&5
3867   rm -rf conftest*
3868   ac_c99_stdlib=no
3869 fi
3870 rm -f conftest*
3871   cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <stdlib.h>
3875 int main() {
3876 llabs(10);
3877 ; return 0; }
3878 EOF
3879 if { (eval echo configure:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880   :
3881 else
3882   echo "configure: failed program was:" >&5
3883   cat conftest.$ac_ext >&5
3884   rm -rf conftest*
3885   ac_c99_stdlib=no
3886 fi
3887 rm -f conftest*
3888   cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 #include <stdlib.h>
3892 int main() {
3893 lldiv(10,1);
3894 ; return 0; }
3895 EOF
3896 if { (eval echo configure:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3897   :
3898 else
3899   echo "configure: failed program was:" >&5
3900   cat conftest.$ac_ext >&5
3901   rm -rf conftest*
3902   ac_c99_stdlib=no
3903 fi
3904 rm -f conftest*
3905   cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 #include <stdlib.h>
3909 int main() {
3910 atoll("10");
3911 ; return 0; }
3912 EOF
3913 if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3914   :
3915 else
3916   echo "configure: failed program was:" >&5
3917   cat conftest.$ac_ext >&5
3918   rm -rf conftest*
3919   ac_c99_stdlib=no
3920 fi
3921 rm -f conftest*
3922   cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <stdlib.h>
3926 int main() {
3927 _Exit(0);
3928 ; return 0; }
3929 EOF
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3931   :
3932 else
3933   echo "configure: failed program was:" >&5
3934   cat conftest.$ac_ext >&5
3935   rm -rf conftest*
3936   ac_c99_stdlib=no
3937 fi
3938 rm -f conftest*
3939   if test x"$ac_c99_lldiv_t" = x"no"; then
3940     ac_c99_stdlib=no;
3941   fi;
3942   echo "$ac_t""$ac_c99_stdlib" 1>&6
3943
3944   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3945   # XXX the wchar.h checks should be rolled into the general C99 bits.
3946   ac_c99_wchar=yes;
3947   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3948 echo "configure:3949: checking for additional ISO C99 support in <wchar.h>" >&5
3949   cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 #include <wchar.h>
3953 int main() {
3954 wcstold(L"10.0", NULL);
3955 ; return 0; }
3956 EOF
3957 if { (eval echo configure:3958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958   :
3959 else
3960   echo "configure: failed program was:" >&5
3961   cat conftest.$ac_ext >&5
3962   rm -rf conftest*
3963   ac_c99_wchar=no
3964 fi
3965 rm -f conftest*
3966   cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 #include <wchar.h>
3970 int main() {
3971 wcstoll(L"10", NULL, 10);
3972 ; return 0; }
3973 EOF
3974 if { (eval echo configure:3975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3975   :
3976 else
3977   echo "configure: failed program was:" >&5
3978   cat conftest.$ac_ext >&5
3979   rm -rf conftest*
3980   ac_c99_wchar=no
3981 fi
3982 rm -f conftest*
3983   cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 #include <wchar.h>
3987 int main() {
3988 wcstoull(L"10", NULL, 10);
3989 ; return 0; }
3990 EOF
3991 if { (eval echo configure:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992   :
3993 else
3994   echo "configure: failed program was:" >&5
3995   cat conftest.$ac_ext >&5
3996   rm -rf conftest*
3997   ac_c99_wchar=no
3998 fi
3999 rm -f conftest*
4000   echo "$ac_t""$ac_c99_wchar" 1>&6
4001
4002   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
4003 echo "configure:4004: checking for enabled ISO C99 support" >&5
4004   if test x"$ac_c99_math" = x"no" ||
4005      test x"$ac_c99_stdio" = x"no" ||
4006      test x"$ac_c99_stdlib" = x"no" ||
4007      test x"$ac_c99_wchar" = x"no"; then
4008     enable_c99=no;
4009   fi;
4010   echo "$ac_t""$enable_c99" 1>&6
4011
4012   # Option parsed, now set things appropriately
4013   if test x"$enable_c99" = x"yes"; then
4014     cat >> confdefs.h <<\EOF
4015 #define _GLIBCPP_USE_C99 1
4016 EOF
4017
4018   fi
4019
4020   ac_ext=c
4021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4025 cross_compiling=$ac_cv_prog_cc_cross
4026
4027
4028   
4029   # Check whether --enable-long-long or --disable-long-long was given.
4030 if test "${enable_long_long+set}" = set; then
4031   enableval="$enable_long_long"
4032     case "$enableval" in
4033    yes) enable_long_long=yes ;;
4034    no)  enable_long_long=no ;;
4035    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4036    esac
4037 else
4038   enable_long_long=yes
4039 fi
4040
4041   
4042   ac_ext=C
4043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4044 ac_cpp='$CXXCPP $CPPFLAGS'
4045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4047 cross_compiling=$ac_cv_prog_cxx_cross
4048
4049
4050   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4051 echo "configure:4052: checking for enabled long long I/O support" >&5
4052   # iostreams require strtoll, strtoull to compile
4053   cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <stdlib.h>
4057 int main() {
4058 char* tmp; strtoll("gnu", &tmp, 10);
4059 ; return 0; }
4060 EOF
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062   :
4063 else
4064   echo "configure: failed program was:" >&5
4065   cat conftest.$ac_ext >&5
4066   rm -rf conftest*
4067   enable_long_long=no
4068 fi
4069 rm -f conftest*
4070   cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 #include <stdlib.h>
4074 int main() {
4075 char* tmp; strtoull("gnu", &tmp, 10);
4076 ; return 0; }
4077 EOF
4078 if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4079   :
4080 else
4081   echo "configure: failed program was:" >&5
4082   cat conftest.$ac_ext >&5
4083   rm -rf conftest*
4084   enable_long_long=no
4085 fi
4086 rm -f conftest*
4087
4088   # Option parsed, now set things appropriately
4089   if test x"$enable_long_long" = xyes; then
4090     cat >> confdefs.h <<\EOF
4091 #define _GLIBCPP_USE_LONG_LONG 1
4092 EOF
4093
4094   fi
4095   echo "$ac_t""$enable_long_long" 1>&6
4096
4097   ac_ext=c
4098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4102 cross_compiling=$ac_cv_prog_cc_cross
4103
4104
4105
4106   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4107 echo "configure:4108: checking for thread model used by GCC" >&5
4108   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4109   echo "$ac_t""$target_thread_file" 1>&6
4110
4111   if test $target_thread_file != single; then
4112     cat >> confdefs.h <<\EOF
4113 #define HAVE_GTHR_DEFAULT 1
4114 EOF
4115
4116     cat >> confdefs.h <<\EOF
4117 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4118 EOF
4119
4120   fi
4121
4122   glibcpp_thread_h=gthr-$target_thread_file.h
4123   
4124
4125
4126   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4127 echo "configure:4128: checking for exception model to use" >&5
4128   
4129   ac_ext=C
4130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4131 ac_cpp='$CXXCPP $CPPFLAGS'
4132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4134 cross_compiling=$ac_cv_prog_cxx_cross
4135
4136   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4137 if test "${enable_sjlj_exceptions+set}" = set; then
4138   enableval="$enable_sjlj_exceptions"
4139   :
4140 else
4141                        cat > conftest.$ac_ext << EOF
4142 #line 4143 "configure"
4143 struct S { ~S(); };
4144 void bar();
4145 void foo()
4146 {
4147   S s;
4148   bar();
4149 }
4150 EOF
4151    old_CXXFLAGS="$CXXFLAGS"
4152    CXXFLAGS=-S
4153    if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4154      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4155        enable_sjlj_exceptions=yes
4156      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4157        enable_sjlj_exceptions=no
4158      fi
4159    fi
4160    CXXFLAGS="$old_CXXFLAGS"
4161    rm -f conftest*
4162 fi
4163
4164    if test x$enable_sjlj_exceptions = xyes; then
4165      cat >> confdefs.h <<\EOF
4166 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4167 EOF
4168
4169      ac_exception_model_name=sjlj
4170    elif test x$enable_sjlj_exceptions = xno; then
4171      ac_exception_model_name="call frame"
4172    else
4173      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4174    fi
4175    ac_ext=c
4176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4180 cross_compiling=$ac_cv_prog_cc_cross
4181
4182    echo "$ac_t""$ac_exception_model_name" 1>&6
4183
4184
4185   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4186 echo "configure:4187: checking for use of libunwind" >&5
4187   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4188 if test "${enable_libunwind_exceptions+set}" = set; then
4189   enableval="$enable_libunwind_exceptions"
4190   use_libunwind_exceptions=$enableval
4191 else
4192   use_libunwind_exceptions=no
4193 fi
4194
4195   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4196     if test x"$use_libunwind_exceptions" = xyes; then
4197     LIBUNWIND_FLAG="-lunwind"
4198   else
4199     LIBUNWIND_FLAG=""
4200   fi
4201   
4202
4203 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4204 if test "${enable_concept_checks+set}" = set; then
4205   enableval="$enable_concept_checks"
4206   case "$enableval" in
4207  yes) enable_concept_checks=yes ;;
4208  no)  enable_concept_checks=no ;;
4209  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4210  esac
4211 else
4212   enable_concept_checks=no
4213 fi
4214 if test x"$enable_concept_checks" = xyes; then
4215   cat >> confdefs.h <<\EOF
4216 #define _GLIBCPP_CONCEPT_CHECKS 1
4217 EOF
4218
4219 fi
4220
4221 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4222 echo "configure:4223: checking for extra compiler flags for building" >&5
4223 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4224 if test "${enable_cxx_flags+set}" = set; then
4225   enableval="$enable_cxx_flags"
4226   case "x$enable_cxx_flags" in
4227   xyes)
4228     { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4229   xno | xnone | x)
4230     enable_cxx_flags='' ;;
4231   *)
4232     enable_cxx_flags="$enableval" ;;
4233 esac
4234 else
4235   enable_cxx_flags=
4236 fi
4237
4238
4239 if test -n "$enable_cxx_flags"; then
4240   for f in $enable_cxx_flags; do
4241     case "$f" in
4242       -fhonor-std)  ;;
4243       -*)  ;;
4244       *)   # and we're trying to pass /what/ exactly?
4245            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4246     esac
4247   done
4248 fi
4249 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4250 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4251
4252
4253 # Check whether --enable-debug or --disable-debug was given.
4254 if test "${enable_debug+set}" = set; then
4255   enableval="$enable_debug"
4256   case "${enableval}" in
4257  yes) enable_debug=yes ;;
4258  no)  enable_debug=no ;;
4259  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4260  esac
4261 else
4262   enable_debug=no
4263 fi
4264 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4265 echo "configure:4266: checking for additional debug build" >&5
4266 echo "$ac_t""$enable_debug" 1>&6
4267
4268
4269 if test "$enable_debug" = yes; then
4270   GLIBCPP_BUILD_DEBUG_TRUE=
4271   GLIBCPP_BUILD_DEBUG_FALSE='#'
4272 else
4273   GLIBCPP_BUILD_DEBUG_TRUE='#'
4274   GLIBCPP_BUILD_DEBUG_FALSE=
4275 fi
4276
4277 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4278 if test "${enable_debug_flags+set}" = set; then
4279   enableval="$enable_debug_flags"
4280   case "${enableval}" in
4281  none)  ;;
4282  -*) enable_debug_flags="${enableval}" ;;
4283  *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4284  esac
4285 else
4286   enable_debug_flags=none
4287 fi
4288
4289 case x"$enable_debug" in
4290     xyes)
4291         case "$enable_debug_flags" in
4292           none)
4293             DEBUG_FLAGS="-g3 -O0";;
4294           -*) #valid input
4295             DEBUG_FLAGS="${enableval}"
4296         esac
4297         ;;
4298     xno)
4299         DEBUG_FLAGS=""
4300         ;;
4301 esac
4302
4303
4304 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4305 echo "configure:4306: checking for debug build flags" >&5
4306 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4307
4308
4309 # No surprises, no surprises...
4310 if test $ATOMICITYH = cpu/generic ; then
4311   echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4312   if test $target_thread_file = single; then
4313     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4314     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4315   else
4316     echo "configure: warning: They will be faked using a mutex." 1>&2
4317     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4318   fi
4319 fi
4320
4321
4322 if test x"$build" != x"$host"; then
4323
4324   # We are being configured with some form of cross compiler.
4325   GLIBCPP_IS_CROSS_COMPILING=1
4326
4327   # This lets us hard-code the functionality we know we'll have in the cross
4328   # target environment.  "Let" is a sugar-coated word placed on an especially
4329   # dull and tedious hack, actually.
4330   #
4331   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4332   # that involve linking, can't be used:
4333   #    "cannot open sim-crt0.o"
4334   #    "cannot open crt0.o"
4335   # etc.  All this is because there currently exists no unified, consistent
4336   # way for top level CC information to be passed down to target directories:
4337   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4338   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4339   # crosses can be removed.
4340
4341   # If Canadian cross, then don't pick up tools from the build directory.
4342   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4343   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4344     && test x"$build" != x"$target"; then
4345     CANADIAN=yes
4346   else
4347     CANADIAN=no
4348   fi
4349
4350   # Construct crosses by hand, eliminating bits that need ld...
4351   # GLIBCPP_CHECK_COMPILER_FEATURES
4352   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4353   # GLIBCPP_CHECK_MATH_SUPPORT
4354
4355   case "${host}" in
4356     *-freebsd*)
4357       os_include_dir="os/bsd/freebsd"
4358       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4359         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4360         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4361         sys/time.h unistd.h
4362 do
4363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4365 echo "configure:4366: checking for $ac_hdr" >&5
4366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4367   echo $ac_n "(cached) $ac_c" 1>&6
4368 else
4369   cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 #include <$ac_hdr>
4373 EOF
4374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4375 { (eval echo configure:4376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4377 if test -z "$ac_err"; then
4378   rm -rf conftest*
4379   eval "ac_cv_header_$ac_safe=yes"
4380 else
4381   echo "$ac_err" >&5
4382   echo "configure: failed program was:" >&5
4383   cat conftest.$ac_ext >&5
4384   rm -rf conftest*
4385   eval "ac_cv_header_$ac_safe=no"
4386 fi
4387 rm -f conftest*
4388 fi
4389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4390   echo "$ac_t""yes" 1>&6
4391     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4392   cat >> confdefs.h <<EOF
4393 #define $ac_tr_hdr 1
4394 EOF
4395  
4396 else
4397   echo "$ac_t""no" 1>&6
4398 fi
4399 done
4400
4401       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4402        
4403       
4404   # If we're not using GNU ld, then there's no point in even trying these
4405   # tests.  Check for that first.  We should have already tested for gld
4406   # by now (in libtool), but require it now just to be safe...
4407   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4408   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4409   
4410
4411   # The name set by libtool depends on the version of libtool.  Shame on us
4412   # for depending on an impl detail, but c'est la vie.  Older versions used
4413   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4414   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4415   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4416   # set (hence we're using an older libtool), then set it.
4417   if test x${with_gnu_ld+set} != xset; then
4418     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4419       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4420       with_gnu_ld=no
4421     else
4422       with_gnu_ld=$ac_cv_prog_gnu_ld
4423     fi
4424   fi
4425
4426   # Start by getting the version number.  I think the libtool test already
4427   # does some of this, but throws away the result.
4428   
4429   ldver=`$LD --version 2>/dev/null | head -1 | \
4430          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4431   
4432   glibcpp_gnu_ld_version=`echo $ldver | \
4433          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4434
4435   # Set --gc-sections.
4436   if test "$with_gnu_ld" = "notbroken"; then
4437     # GNU ld it is!  Joy and bunny rabbits!
4438
4439     # All these tests are for C++; save the language and the compiler flags.
4440     # Need to do this so that g++ won't try to link in libstdc++
4441     ac_test_CFLAGS="${CFLAGS+set}"
4442     ac_save_CFLAGS="$CFLAGS"
4443     CFLAGS='-x c++  -Wl,--gc-sections'
4444
4445     # Check for -Wl,--gc-sections
4446     # XXX This test is broken at the moment, as symbols required for
4447     # linking are now in libsupc++ (not built yet.....). In addition,
4448     # this test has cored on solaris in the past. In addition,
4449     # --gc-sections doesn't really work at the moment (keeps on discarding
4450     # used sections, first .eh_frame and now some of the glibc sections for
4451     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4452     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4453 echo "configure:4454: checking for ld that supports -Wl,--gc-sections" >&5
4454     if test "$cross_compiling" = yes; then
4455   ac_sectionLDflags=yes
4456 else
4457   cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460
4461      int main(void)
4462      {
4463        try { throw 1; }
4464        catch (...) { };
4465        return 0;
4466      }
4467     
4468 EOF
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4470 then
4471   ac_sectionLDflags=yes
4472 else
4473   echo "configure: failed program was:" >&5
4474   cat conftest.$ac_ext >&5
4475   rm -fr conftest*
4476   ac_sectionLDflags=no
4477 fi
4478 rm -fr conftest*
4479 fi
4480
4481     if test "$ac_test_CFLAGS" = set; then
4482       CFLAGS="$ac_save_CFLAGS"
4483     else
4484       # this is the suspicious part
4485       CFLAGS=''
4486     fi
4487     if test "$ac_sectionLDflags" = "yes"; then
4488       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4489     fi
4490     echo "$ac_t""$ac_sectionLDflags" 1>&6
4491   fi
4492
4493   # Set linker optimization flags.
4494   if test x"$with_gnu_ld" = x"yes"; then
4495     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4496   fi
4497
4498   
4499   
4500
4501       
4502     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4503 echo "configure:4504: checking for main in -lm" >&5
4504 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4506   echo $ac_n "(cached) $ac_c" 1>&6
4507 else
4508   ac_save_LIBS="$LIBS"
4509 LIBS="-lm  $LIBS"
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513
4514 int main() {
4515 main()
4516 ; return 0; }
4517 EOF
4518 if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4519   rm -rf conftest*
4520   eval "ac_cv_lib_$ac_lib_var=yes"
4521 else
4522   echo "configure: failed program was:" >&5
4523   cat conftest.$ac_ext >&5
4524   rm -rf conftest*
4525   eval "ac_cv_lib_$ac_lib_var=no"
4526 fi
4527 rm -f conftest*
4528 LIBS="$ac_save_LIBS"
4529
4530 fi
4531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4532   echo "$ac_t""yes" 1>&6
4533     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4534     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4535   cat >> confdefs.h <<EOF
4536 #define $ac_tr_lib 1
4537 EOF
4538
4539   LIBS="-lm $LIBS"
4540
4541 else
4542   echo "$ac_t""no" 1>&6
4543 fi
4544
4545   for ac_func in nan copysignf
4546 do
4547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_func" >&5
4549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4550   echo $ac_n "(cached) $ac_c" 1>&6
4551 else
4552   cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* System header to define __stub macros and hopefully few prototypes,
4556     which can conflict with char $ac_func(); below.  */
4557 #include <assert.h>
4558 /* Override any gcc2 internal prototype to avoid an error.  */
4559 /* We use char because int might match the return type of a gcc2
4560     builtin and then its argument prototype would still apply.  */
4561 char $ac_func();
4562
4563 int main() {
4564
4565 /* The GNU C library defines this for functions which it implements
4566     to always fail with ENOSYS.  Some functions are actually named
4567     something starting with __ and the normal name is an alias.  */
4568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4569 choke me
4570 #else
4571 $ac_func();
4572 #endif
4573
4574 ; return 0; }
4575 EOF
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4577   rm -rf conftest*
4578   eval "ac_cv_func_$ac_func=yes"
4579 else
4580   echo "configure: failed program was:" >&5
4581   cat conftest.$ac_ext >&5
4582   rm -rf conftest*
4583   eval "ac_cv_func_$ac_func=no"
4584 fi
4585 rm -f conftest*
4586 fi
4587
4588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4589   echo "$ac_t""yes" 1>&6
4590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4591   cat >> confdefs.h <<EOF
4592 #define $ac_tr_func 1
4593 EOF
4594  
4595 else
4596   echo "$ac_t""no" 1>&6
4597 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4598 fi
4599 done
4600
4601
4602     for ac_func in __signbit
4603 do
4604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_func" >&5
4606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4607   echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609   cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613     which can conflict with char $ac_func(); below.  */
4614 #include <assert.h>
4615 /* Override any gcc2 internal prototype to avoid an error.  */
4616 /* We use char because int might match the return type of a gcc2
4617     builtin and then its argument prototype would still apply.  */
4618 char $ac_func();
4619
4620 int main() {
4621
4622 /* The GNU C library defines this for functions which it implements
4623     to always fail with ENOSYS.  Some functions are actually named
4624     something starting with __ and the normal name is an alias.  */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626 choke me
4627 #else
4628 $ac_func();
4629 #endif
4630
4631 ; return 0; }
4632 EOF
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634   rm -rf conftest*
4635   eval "ac_cv_func_$ac_func=yes"
4636 else
4637   echo "configure: failed program was:" >&5
4638   cat conftest.$ac_ext >&5
4639   rm -rf conftest*
4640   eval "ac_cv_func_$ac_func=no"
4641 fi
4642 rm -f conftest*
4643 fi
4644
4645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4646   echo "$ac_t""yes" 1>&6
4647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648   cat >> confdefs.h <<EOF
4649 #define $ac_tr_func 1
4650 EOF
4651  
4652 else
4653   echo "$ac_t""no" 1>&6
4654 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4655 fi
4656 done
4657
4658   for ac_func in __signbitf
4659 do
4660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4661 echo "configure:4662: checking for $ac_func" >&5
4662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4663   echo $ac_n "(cached) $ac_c" 1>&6
4664 else
4665   cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 /* System header to define __stub macros and hopefully few prototypes,
4669     which can conflict with char $ac_func(); below.  */
4670 #include <assert.h>
4671 /* Override any gcc2 internal prototype to avoid an error.  */
4672 /* We use char because int might match the return type of a gcc2
4673     builtin and then its argument prototype would still apply.  */
4674 char $ac_func();
4675
4676 int main() {
4677
4678 /* The GNU C library defines this for functions which it implements
4679     to always fail with ENOSYS.  Some functions are actually named
4680     something starting with __ and the normal name is an alias.  */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4682 choke me
4683 #else
4684 $ac_func();
4685 #endif
4686
4687 ; return 0; }
4688 EOF
4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690   rm -rf conftest*
4691   eval "ac_cv_func_$ac_func=yes"
4692 else
4693   echo "configure: failed program was:" >&5
4694   cat conftest.$ac_ext >&5
4695   rm -rf conftest*
4696   eval "ac_cv_func_$ac_func=no"
4697 fi
4698 rm -f conftest*
4699 fi
4700
4701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4702   echo "$ac_t""yes" 1>&6
4703     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4704   cat >> confdefs.h <<EOF
4705 #define $ac_tr_func 1
4706 EOF
4707  
4708 else
4709   echo "$ac_t""no" 1>&6
4710 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4711 fi
4712 done
4713
4714
4715           if test x$ac_cv_func_copysignl = x"yes"; then
4716     for ac_func in __signbitl
4717 do
4718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721   echo $ac_n "(cached) $ac_c" 1>&6
4722 else
4723   cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727     which can conflict with char $ac_func(); below.  */
4728 #include <assert.h>
4729 /* Override any gcc2 internal prototype to avoid an error.  */
4730 /* We use char because int might match the return type of a gcc2
4731     builtin and then its argument prototype would still apply.  */
4732 char $ac_func();
4733
4734 int main() {
4735
4736 /* The GNU C library defines this for functions which it implements
4737     to always fail with ENOSYS.  Some functions are actually named
4738     something starting with __ and the normal name is an alias.  */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4740 choke me
4741 #else
4742 $ac_func();
4743 #endif
4744
4745 ; return 0; }
4746 EOF
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748   rm -rf conftest*
4749   eval "ac_cv_func_$ac_func=yes"
4750 else
4751   echo "configure: failed program was:" >&5
4752   cat conftest.$ac_ext >&5
4753   rm -rf conftest*
4754   eval "ac_cv_func_$ac_func=no"
4755 fi
4756 rm -f conftest*
4757 fi
4758
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760   echo "$ac_t""yes" 1>&6
4761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762   cat >> confdefs.h <<EOF
4763 #define $ac_tr_func 1
4764 EOF
4765  
4766 else
4767   echo "$ac_t""no" 1>&6
4768 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4769 fi
4770 done
4771
4772   fi
4773
4774   if test -n "$LIBMATHOBJS"; then
4775     need_libmath=yes
4776   fi
4777   
4778   
4779
4780 if test "$need_libmath" = yes; then
4781   GLIBCPP_BUILD_LIBMATH_TRUE=
4782   GLIBCPP_BUILD_LIBMATH_FALSE='#'
4783 else
4784   GLIBCPP_BUILD_LIBMATH_TRUE='#'
4785   GLIBCPP_BUILD_LIBMATH_FALSE=
4786 fi
4787
4788       
4789     enable_wchar_t=no
4790
4791       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4792 echo "configure:4793: checking for mbstate_t" >&5
4793   cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 #include <wchar.h>
4797 int main() {
4798 mbstate_t teststate;
4799 ; return 0; }
4800 EOF
4801 if { (eval echo configure:4802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4802   rm -rf conftest*
4803   have_mbstate_t=yes
4804 else
4805   echo "configure: failed program was:" >&5
4806   cat conftest.$ac_ext >&5
4807   rm -rf conftest*
4808   have_mbstate_t=no
4809 fi
4810 rm -f conftest*
4811   echo "$ac_t""$have_mbstate_t" 1>&6
4812   if test x"$have_mbstate_t" = xyes; then
4813     cat >> confdefs.h <<\EOF
4814 #define HAVE_MBSTATE_T 1
4815 EOF
4816
4817   fi
4818
4819     for ac_hdr in wchar.h
4820 do
4821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4823 echo "configure:4824: checking for $ac_hdr" >&5
4824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4825   echo $ac_n "(cached) $ac_c" 1>&6
4826 else
4827   cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <$ac_hdr>
4831 EOF
4832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4833 { (eval echo configure:4834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4835 if test -z "$ac_err"; then
4836   rm -rf conftest*
4837   eval "ac_cv_header_$ac_safe=yes"
4838 else
4839   echo "$ac_err" >&5
4840   echo "configure: failed program was:" >&5
4841   cat conftest.$ac_ext >&5
4842   rm -rf conftest*
4843   eval "ac_cv_header_$ac_safe=no"
4844 fi
4845 rm -f conftest*
4846 fi
4847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4848   echo "$ac_t""yes" 1>&6
4849     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4850   cat >> confdefs.h <<EOF
4851 #define $ac_tr_hdr 1
4852 EOF
4853  ac_has_wchar_h=yes
4854 else
4855   echo "$ac_t""no" 1>&6
4856 ac_has_wchar_h=no
4857 fi
4858 done
4859
4860   for ac_hdr in wctype.h
4861 do
4862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4864 echo "configure:4865: checking for $ac_hdr" >&5
4865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4866   echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868   cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 #include <$ac_hdr>
4872 EOF
4873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4874 { (eval echo configure:4875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4876 if test -z "$ac_err"; then
4877   rm -rf conftest*
4878   eval "ac_cv_header_$ac_safe=yes"
4879 else
4880   echo "$ac_err" >&5
4881   echo "configure: failed program was:" >&5
4882   cat conftest.$ac_ext >&5
4883   rm -rf conftest*
4884   eval "ac_cv_header_$ac_safe=no"
4885 fi
4886 rm -f conftest*
4887 fi
4888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4889   echo "$ac_t""yes" 1>&6
4890     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4891   cat >> confdefs.h <<EOF
4892 #define $ac_tr_hdr 1
4893 EOF
4894  ac_has_wctype_h=yes
4895 else
4896   echo "$ac_t""no" 1>&6
4897 ac_has_wctype_h=no
4898 fi
4899 done
4900
4901
4902     if test x"$ac_has_wchar_h" = xyes &&
4903      test x"$ac_has_wctype_h" = xyes &&
4904      test x"$enable_c_mbchar" != xno; then
4905
4906             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4907 echo "configure:4908: checking for WCHAR_MIN and WCHAR_MAX" >&5
4908     cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 #include <wchar.h>
4912 int main() {
4913 int i = WCHAR_MIN; int j = WCHAR_MAX;
4914 ; return 0; }
4915 EOF
4916 if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4917   rm -rf conftest*
4918   has_wchar_minmax=yes
4919 else
4920   echo "configure: failed program was:" >&5
4921   cat conftest.$ac_ext >&5
4922   rm -rf conftest*
4923   has_wchar_minmax=no
4924 fi
4925 rm -f conftest*
4926     echo "$ac_t""$has_wchar_minmax" 1>&6
4927
4928             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4929 echo "configure:4930: checking for WEOF" >&5
4930     cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933
4934       #include <wchar.h>
4935       #include <stddef.h>
4936 int main() {
4937 wint_t i = WEOF;
4938 ; return 0; }
4939 EOF
4940 if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941   rm -rf conftest*
4942   has_weof=yes
4943 else
4944   echo "configure: failed program was:" >&5
4945   cat conftest.$ac_ext >&5
4946   rm -rf conftest*
4947   has_weof=no
4948 fi
4949 rm -f conftest*
4950     echo "$ac_t""$has_weof" 1>&6
4951
4952         ac_wfuncs=yes
4953     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4954 do
4955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4956 echo "configure:4957: checking for $ac_func" >&5
4957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4958   echo $ac_n "(cached) $ac_c" 1>&6
4959 else
4960   cat > conftest.$ac_ext <<EOF
4961 #line 4962 "configure"
4962 #include "confdefs.h"
4963 /* System header to define __stub macros and hopefully few prototypes,
4964     which can conflict with char $ac_func(); below.  */
4965 #include <assert.h>
4966 /* Override any gcc2 internal prototype to avoid an error.  */
4967 /* We use char because int might match the return type of a gcc2
4968     builtin and then its argument prototype would still apply.  */
4969 char $ac_func();
4970
4971 int main() {
4972
4973 /* The GNU C library defines this for functions which it implements
4974     to always fail with ENOSYS.  Some functions are actually named
4975     something starting with __ and the normal name is an alias.  */
4976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4977 choke me
4978 #else
4979 $ac_func();
4980 #endif
4981
4982 ; return 0; }
4983 EOF
4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985   rm -rf conftest*
4986   eval "ac_cv_func_$ac_func=yes"
4987 else
4988   echo "configure: failed program was:" >&5
4989   cat conftest.$ac_ext >&5
4990   rm -rf conftest*
4991   eval "ac_cv_func_$ac_func=no"
4992 fi
4993 rm -f conftest*
4994 fi
4995
4996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4997   echo "$ac_t""yes" 1>&6
4998     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4999   cat >> confdefs.h <<EOF
5000 #define $ac_tr_func 1
5001 EOF
5002  
5003 else
5004   echo "$ac_t""no" 1>&6
5005 \
5006     ac_wfuncs=no
5007 fi
5008 done
5009
5010
5011         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5012     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5013     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5014     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5015     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5016     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5017 do
5018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5019 echo "configure:5020: checking for $ac_func" >&5
5020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5021   echo $ac_n "(cached) $ac_c" 1>&6
5022 else
5023   cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027     which can conflict with char $ac_func(); below.  */
5028 #include <assert.h>
5029 /* Override any gcc2 internal prototype to avoid an error.  */
5030 /* We use char because int might match the return type of a gcc2
5031     builtin and then its argument prototype would still apply.  */
5032 char $ac_func();
5033
5034 int main() {
5035
5036 /* The GNU C library defines this for functions which it implements
5037     to always fail with ENOSYS.  Some functions are actually named
5038     something starting with __ and the normal name is an alias.  */
5039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5040 choke me
5041 #else
5042 $ac_func();
5043 #endif
5044
5045 ; return 0; }
5046 EOF
5047 if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048   rm -rf conftest*
5049   eval "ac_cv_func_$ac_func=yes"
5050 else
5051   echo "configure: failed program was:" >&5
5052   cat conftest.$ac_ext >&5
5053   rm -rf conftest*
5054   eval "ac_cv_func_$ac_func=no"
5055 fi
5056 rm -f conftest*
5057 fi
5058
5059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5060   echo "$ac_t""yes" 1>&6
5061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5062   cat >> confdefs.h <<EOF
5063 #define $ac_tr_func 1
5064 EOF
5065  
5066 else
5067   echo "$ac_t""no" 1>&6
5068 \
5069     ac_wfuncs=no
5070 fi
5071 done
5072
5073
5074     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5075 echo "configure:5076: checking for ISO C99 wchar_t support" >&5
5076     if test x"$has_weof" = xyes &&
5077        test x"$has_wchar_minmax" = xyes &&
5078        test x"$ac_wfuncs" = xyes; then
5079       ac_isoC99_wchar_t=yes
5080     else
5081       ac_isoC99_wchar_t=no
5082     fi
5083     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5084
5085             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5086 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5087 echo "configure:5088: checking for iconv.h" >&5
5088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5089   echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091   cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 #include <iconv.h>
5095 EOF
5096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5097 { (eval echo configure:5098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5099 if test -z "$ac_err"; then
5100   rm -rf conftest*
5101   eval "ac_cv_header_$ac_safe=yes"
5102 else
5103   echo "$ac_err" >&5
5104   echo "configure: failed program was:" >&5
5105   cat conftest.$ac_ext >&5
5106   rm -rf conftest*
5107   eval "ac_cv_header_$ac_safe=no"
5108 fi
5109 rm -f conftest*
5110 fi
5111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5112   echo "$ac_t""yes" 1>&6
5113   ac_has_iconv_h=yes
5114 else
5115   echo "$ac_t""no" 1>&6
5116 ac_has_iconv_h=no
5117 fi
5118
5119     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5120 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5121 echo "configure:5122: checking for langinfo.h" >&5
5122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5123   echo $ac_n "(cached) $ac_c" 1>&6
5124 else
5125   cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 #include <langinfo.h>
5129 EOF
5130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5131 { (eval echo configure:5132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5133 if test -z "$ac_err"; then
5134   rm -rf conftest*
5135   eval "ac_cv_header_$ac_safe=yes"
5136 else
5137   echo "$ac_err" >&5
5138   echo "configure: failed program was:" >&5
5139   cat conftest.$ac_ext >&5
5140   rm -rf conftest*
5141   eval "ac_cv_header_$ac_safe=no"
5142 fi
5143 rm -f conftest*
5144 fi
5145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5146   echo "$ac_t""yes" 1>&6
5147   ac_has_langinfo_h=yes
5148 else
5149   echo "$ac_t""no" 1>&6
5150 ac_has_langinfo_h=no
5151 fi
5152
5153
5154         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5155 echo "configure:5156: checking for iconv in -liconv" >&5
5156 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5158   echo $ac_n "(cached) $ac_c" 1>&6
5159 else
5160   ac_save_LIBS="$LIBS"
5161 LIBS="-liconv  $LIBS"
5162 cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5165 /* Override any gcc2 internal prototype to avoid an error.  */
5166 /* We use char because int might match the return type of a gcc2
5167     builtin and then its argument prototype would still apply.  */
5168 char iconv();
5169
5170 int main() {
5171 iconv()
5172 ; return 0; }
5173 EOF
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175   rm -rf conftest*
5176   eval "ac_cv_lib_$ac_lib_var=yes"
5177 else
5178   echo "configure: failed program was:" >&5
5179   cat conftest.$ac_ext >&5
5180   rm -rf conftest*
5181   eval "ac_cv_lib_$ac_lib_var=no"
5182 fi
5183 rm -f conftest*
5184 LIBS="$ac_save_LIBS"
5185
5186 fi
5187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5188   echo "$ac_t""yes" 1>&6
5189   libiconv="-liconv"
5190 else
5191   echo "$ac_t""no" 1>&6
5192 fi
5193
5194     ac_save_LIBS="$LIBS"
5195     LIBS="$LIBS $libiconv"
5196
5197     for ac_func in iconv_open iconv_close iconv nl_langinfo
5198 do
5199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5200 echo "configure:5201: checking for $ac_func" >&5
5201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5202   echo $ac_n "(cached) $ac_c" 1>&6
5203 else
5204   cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 /* System header to define __stub macros and hopefully few prototypes,
5208     which can conflict with char $ac_func(); below.  */
5209 #include <assert.h>
5210 /* Override any gcc2 internal prototype to avoid an error.  */
5211 /* We use char because int might match the return type of a gcc2
5212     builtin and then its argument prototype would still apply.  */
5213 char $ac_func();
5214
5215 int main() {
5216
5217 /* The GNU C library defines this for functions which it implements
5218     to always fail with ENOSYS.  Some functions are actually named
5219     something starting with __ and the normal name is an alias.  */
5220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5221 choke me
5222 #else
5223 $ac_func();
5224 #endif
5225
5226 ; return 0; }
5227 EOF
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5229   rm -rf conftest*
5230   eval "ac_cv_func_$ac_func=yes"
5231 else
5232   echo "configure: failed program was:" >&5
5233   cat conftest.$ac_ext >&5
5234   rm -rf conftest*
5235   eval "ac_cv_func_$ac_func=no"
5236 fi
5237 rm -f conftest*
5238 fi
5239
5240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5241   echo "$ac_t""yes" 1>&6
5242     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5243   cat >> confdefs.h <<EOF
5244 #define $ac_tr_func 1
5245 EOF
5246  \
5247     ac_XPG2funcs=yes
5248 else
5249   echo "$ac_t""no" 1>&6
5250 ac_XPG2funcs=no
5251 fi
5252 done
5253
5254
5255     LIBS="$ac_save_LIBS"
5256
5257     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5258 echo "configure:5259: checking for XPG2 wchar_t support" >&5
5259     if test x"$ac_has_iconv_h" = xyes &&
5260        test x"$ac_has_langinfo_h" = xyes &&
5261        test x"$ac_XPG2funcs" = xyes; then
5262       ac_XPG2_wchar_t=yes
5263     else
5264       ac_XPG2_wchar_t=no
5265     fi
5266     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5267
5268             if test x"$ac_isoC99_wchar_t" = xyes && 
5269         test x"$ac_XPG2_wchar_t" = xyes; then
5270       cat >> confdefs.h <<\EOF
5271 #define _GLIBCPP_USE_WCHAR_T 1
5272 EOF
5273
5274       enable_wchar_t=yes
5275     fi
5276   fi
5277   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5278 echo "configure:5279: checking for enabled wchar_t specializations" >&5
5279   echo "$ac_t""$enable_wchar_t" 1>&6    
5280   
5281
5282 if test "$enable_wchar_t" = yes; then
5283   GLIBCPP_TEST_WCHAR_T_TRUE=
5284   GLIBCPP_TEST_WCHAR_T_FALSE='#'
5285 else
5286   GLIBCPP_TEST_WCHAR_T_TRUE='#'
5287   GLIBCPP_TEST_WCHAR_T_FALSE=
5288 fi      
5289
5290       cat >> confdefs.h <<\EOF
5291 #define HAVE_LC_MESSAGES 1
5292 EOF
5293
5294       cat >> confdefs.h <<\EOF
5295 #define HAVE_DRAND48 1
5296 EOF
5297
5298       cat >> confdefs.h <<\EOF
5299 #define HAVE_GETPAGESIZE 1
5300 EOF
5301
5302       cat >> confdefs.h <<\EOF
5303 #define HAVE_SETENV 1
5304 EOF
5305
5306       cat >> confdefs.h <<\EOF
5307 #define HAVE_SIGSETJMP 1
5308 EOF
5309
5310       cat >> confdefs.h <<\EOF
5311 #define HAVE_COPYSIGN 1
5312 EOF
5313
5314       cat >> confdefs.h <<\EOF
5315 #define HAVE_COPYSIGNF 1
5316 EOF
5317
5318       cat >> confdefs.h <<\EOF
5319 #define HAVE_FINITEF 1
5320 EOF
5321
5322       cat >> confdefs.h <<\EOF
5323 #define HAVE_FINITE 1
5324 EOF
5325
5326       cat >> confdefs.h <<\EOF
5327 #define HAVE_FREXPF 1
5328 EOF
5329
5330       cat >> confdefs.h <<\EOF
5331 #define HAVE_HYPOT 1
5332 EOF
5333
5334       cat >> confdefs.h <<\EOF
5335 #define HAVE_HYPOTF 1
5336 EOF
5337
5338       cat >> confdefs.h <<\EOF
5339 #define HAVE_ISINF 1
5340 EOF
5341
5342       cat >> confdefs.h <<\EOF
5343 #define HAVE_ISNAN 1
5344 EOF
5345
5346       cat >> confdefs.h <<\EOF
5347 #define HAVE_ISNANF 1
5348 EOF
5349
5350
5351       cat >> confdefs.h <<\EOF
5352 #define HAVE_MMAP 1
5353 EOF
5354
5355       cat >> confdefs.h <<\EOF
5356 #define HAVE_ACOSF 1
5357 EOF
5358
5359       cat >> confdefs.h <<\EOF
5360 #define HAVE_ASINF 1
5361 EOF
5362
5363       cat >> confdefs.h <<\EOF
5364 #define HAVE_ATAN2F 1
5365 EOF
5366
5367       cat >> confdefs.h <<\EOF
5368 #define HAVE_ATANF 1
5369 EOF
5370
5371       cat >> confdefs.h <<\EOF
5372 #define HAVE_CEILF 1
5373 EOF
5374
5375       cat >> confdefs.h <<\EOF
5376 #define HAVE_COPYSIGN 1
5377 EOF
5378
5379       cat >> confdefs.h <<\EOF
5380 #define HAVE_COPYSIGNF 1
5381 EOF
5382
5383       cat >> confdefs.h <<\EOF
5384 #define HAVE_COSF 1
5385 EOF
5386
5387       cat >> confdefs.h <<\EOF
5388 #define HAVE_COSHF 1
5389 EOF
5390
5391       cat >> confdefs.h <<\EOF
5392 #define HAVE_EXPF 1
5393 EOF
5394
5395       cat >> confdefs.h <<\EOF
5396 #define HAVE_FABSF 1
5397 EOF
5398
5399       cat >> confdefs.h <<\EOF
5400 #define HAVE_FLOORF 1
5401 EOF
5402
5403       cat >> confdefs.h <<\EOF
5404 #define HAVE_FMODF 1
5405 EOF
5406
5407       cat >> confdefs.h <<\EOF
5408 #define HAVE_FREXPF 1
5409 EOF
5410
5411       cat >> confdefs.h <<\EOF
5412 #define HAVE_LDEXPF 1
5413 EOF
5414
5415       cat >> confdefs.h <<\EOF
5416 #define HAVE_LOG10F 1
5417 EOF
5418
5419       cat >> confdefs.h <<\EOF
5420 #define HAVE_LOGF 1
5421 EOF
5422
5423       cat >> confdefs.h <<\EOF
5424 #define HAVE_MODFF 1
5425 EOF
5426
5427       cat >> confdefs.h <<\EOF
5428 #define HAVE_POWF 1
5429 EOF
5430
5431       cat >> confdefs.h <<\EOF
5432 #define HAVE_SINF 1
5433 EOF
5434
5435       cat >> confdefs.h <<\EOF
5436 #define HAVE_SINHF 1
5437 EOF
5438
5439       cat >> confdefs.h <<\EOF
5440 #define HAVE_SQRTF 1
5441 EOF
5442
5443       cat >> confdefs.h <<\EOF
5444 #define HAVE_TANF 1
5445 EOF
5446
5447       cat >> confdefs.h <<\EOF
5448 #define HAVE_TANHF 1
5449 EOF
5450
5451       if test x"long_double_math_on_this_cpu" = x"yes"; then
5452         cat >> confdefs.h <<\EOF
5453 #define HAVE_FINITEL 1
5454 EOF
5455
5456         cat >> confdefs.h <<\EOF
5457 #define HAVE_ISINFL 1
5458 EOF
5459
5460         cat >> confdefs.h <<\EOF
5461 #define HAVE_ISNANL 1
5462 EOF
5463
5464       fi
5465       ;;
5466     *-hpux*)
5467       os_include_dir="os/hpux"
5468       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5469         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5470         fp.h locale.h float.h inttypes.h
5471 do
5472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5474 echo "configure:5475: checking for $ac_hdr" >&5
5475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5476   echo $ac_n "(cached) $ac_c" 1>&6
5477 else
5478   cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 #include <$ac_hdr>
5482 EOF
5483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5484 { (eval echo configure:5485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5486 if test -z "$ac_err"; then
5487   rm -rf conftest*
5488   eval "ac_cv_header_$ac_safe=yes"
5489 else
5490   echo "$ac_err" >&5
5491   echo "configure: failed program was:" >&5
5492   cat conftest.$ac_ext >&5
5493   rm -rf conftest*
5494   eval "ac_cv_header_$ac_safe=no"
5495 fi
5496 rm -f conftest*
5497 fi
5498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5499   echo "$ac_t""yes" 1>&6
5500     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5501   cat >> confdefs.h <<EOF
5502 #define $ac_tr_hdr 1
5503 EOF
5504  
5505 else
5506   echo "$ac_t""no" 1>&6
5507 fi
5508 done
5509
5510       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5511       
5512       
5513   # If we're not using GNU ld, then there's no point in even trying these
5514   # tests.  Check for that first.  We should have already tested for gld
5515   # by now (in libtool), but require it now just to be safe...
5516   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5517   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5518   
5519
5520   # The name set by libtool depends on the version of libtool.  Shame on us
5521   # for depending on an impl detail, but c'est la vie.  Older versions used
5522   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5523   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5524   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5525   # set (hence we're using an older libtool), then set it.
5526   if test x${with_gnu_ld+set} != xset; then
5527     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5528       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5529       with_gnu_ld=no
5530     else
5531       with_gnu_ld=$ac_cv_prog_gnu_ld
5532     fi
5533   fi
5534
5535   # Start by getting the version number.  I think the libtool test already
5536   # does some of this, but throws away the result.
5537   
5538   ldver=`$LD --version 2>/dev/null | head -1 | \
5539          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5540   
5541   glibcpp_gnu_ld_version=`echo $ldver | \
5542          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5543
5544   # Set --gc-sections.
5545   if test "$with_gnu_ld" = "notbroken"; then
5546     # GNU ld it is!  Joy and bunny rabbits!
5547
5548     # All these tests are for C++; save the language and the compiler flags.
5549     # Need to do this so that g++ won't try to link in libstdc++
5550     ac_test_CFLAGS="${CFLAGS+set}"
5551     ac_save_CFLAGS="$CFLAGS"
5552     CFLAGS='-x c++  -Wl,--gc-sections'
5553
5554     # Check for -Wl,--gc-sections
5555     # XXX This test is broken at the moment, as symbols required for
5556     # linking are now in libsupc++ (not built yet.....). In addition,
5557     # this test has cored on solaris in the past. In addition,
5558     # --gc-sections doesn't really work at the moment (keeps on discarding
5559     # used sections, first .eh_frame and now some of the glibc sections for
5560     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5561     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5562 echo "configure:5563: checking for ld that supports -Wl,--gc-sections" >&5
5563     if test "$cross_compiling" = yes; then
5564   ac_sectionLDflags=yes
5565 else
5566   cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5569
5570      int main(void)
5571      {
5572        try { throw 1; }
5573        catch (...) { };
5574        return 0;
5575      }
5576     
5577 EOF
5578 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5579 then
5580   ac_sectionLDflags=yes
5581 else
5582   echo "configure: failed program was:" >&5
5583   cat conftest.$ac_ext >&5
5584   rm -fr conftest*
5585   ac_sectionLDflags=no
5586 fi
5587 rm -fr conftest*
5588 fi
5589
5590     if test "$ac_test_CFLAGS" = set; then
5591       CFLAGS="$ac_save_CFLAGS"
5592     else
5593       # this is the suspicious part
5594       CFLAGS=''
5595     fi
5596     if test "$ac_sectionLDflags" = "yes"; then
5597       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5598     fi
5599     echo "$ac_t""$ac_sectionLDflags" 1>&6
5600   fi
5601
5602   # Set linker optimization flags.
5603   if test x"$with_gnu_ld" = x"yes"; then
5604     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5605   fi
5606
5607   
5608   
5609
5610       
5611     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5612 echo "configure:5613: checking for main in -lm" >&5
5613 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5615   echo $ac_n "(cached) $ac_c" 1>&6
5616 else
5617   ac_save_LIBS="$LIBS"
5618 LIBS="-lm  $LIBS"
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622
5623 int main() {
5624 main()
5625 ; return 0; }
5626 EOF
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628   rm -rf conftest*
5629   eval "ac_cv_lib_$ac_lib_var=yes"
5630 else
5631   echo "configure: failed program was:" >&5
5632   cat conftest.$ac_ext >&5
5633   rm -rf conftest*
5634   eval "ac_cv_lib_$ac_lib_var=no"
5635 fi
5636 rm -f conftest*
5637 LIBS="$ac_save_LIBS"
5638
5639 fi
5640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5641   echo "$ac_t""yes" 1>&6
5642     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5643     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5644   cat >> confdefs.h <<EOF
5645 #define $ac_tr_lib 1
5646 EOF
5647
5648   LIBS="-lm $LIBS"
5649
5650 else
5651   echo "$ac_t""no" 1>&6
5652 fi
5653
5654   for ac_func in nan copysignf
5655 do
5656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5657 echo "configure:5658: checking for $ac_func" >&5
5658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5659   echo $ac_n "(cached) $ac_c" 1>&6
5660 else
5661   cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 /* System header to define __stub macros and hopefully few prototypes,
5665     which can conflict with char $ac_func(); below.  */
5666 #include <assert.h>
5667 /* Override any gcc2 internal prototype to avoid an error.  */
5668 /* We use char because int might match the return type of a gcc2
5669     builtin and then its argument prototype would still apply.  */
5670 char $ac_func();
5671
5672 int main() {
5673
5674 /* The GNU C library defines this for functions which it implements
5675     to always fail with ENOSYS.  Some functions are actually named
5676     something starting with __ and the normal name is an alias.  */
5677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5678 choke me
5679 #else
5680 $ac_func();
5681 #endif
5682
5683 ; return 0; }
5684 EOF
5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5686   rm -rf conftest*
5687   eval "ac_cv_func_$ac_func=yes"
5688 else
5689   echo "configure: failed program was:" >&5
5690   cat conftest.$ac_ext >&5
5691   rm -rf conftest*
5692   eval "ac_cv_func_$ac_func=no"
5693 fi
5694 rm -f conftest*
5695 fi
5696
5697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5698   echo "$ac_t""yes" 1>&6
5699     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5700   cat >> confdefs.h <<EOF
5701 #define $ac_tr_func 1
5702 EOF
5703  
5704 else
5705   echo "$ac_t""no" 1>&6
5706 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5707 fi
5708 done
5709
5710
5711     for ac_func in __signbit
5712 do
5713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_func" >&5
5715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5716   echo $ac_n "(cached) $ac_c" 1>&6
5717 else
5718   cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* System header to define __stub macros and hopefully few prototypes,
5722     which can conflict with char $ac_func(); below.  */
5723 #include <assert.h>
5724 /* Override any gcc2 internal prototype to avoid an error.  */
5725 /* We use char because int might match the return type of a gcc2
5726     builtin and then its argument prototype would still apply.  */
5727 char $ac_func();
5728
5729 int main() {
5730
5731 /* The GNU C library defines this for functions which it implements
5732     to always fail with ENOSYS.  Some functions are actually named
5733     something starting with __ and the normal name is an alias.  */
5734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5735 choke me
5736 #else
5737 $ac_func();
5738 #endif
5739
5740 ; return 0; }
5741 EOF
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743   rm -rf conftest*
5744   eval "ac_cv_func_$ac_func=yes"
5745 else
5746   echo "configure: failed program was:" >&5
5747   cat conftest.$ac_ext >&5
5748   rm -rf conftest*
5749   eval "ac_cv_func_$ac_func=no"
5750 fi
5751 rm -f conftest*
5752 fi
5753
5754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5755   echo "$ac_t""yes" 1>&6
5756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5757   cat >> confdefs.h <<EOF
5758 #define $ac_tr_func 1
5759 EOF
5760  
5761 else
5762   echo "$ac_t""no" 1>&6
5763 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5764 fi
5765 done
5766
5767   for ac_func in __signbitf
5768 do
5769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5770 echo "configure:5771: checking for $ac_func" >&5
5771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5772   echo $ac_n "(cached) $ac_c" 1>&6
5773 else
5774   cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* System header to define __stub macros and hopefully few prototypes,
5778     which can conflict with char $ac_func(); below.  */
5779 #include <assert.h>
5780 /* Override any gcc2 internal prototype to avoid an error.  */
5781 /* We use char because int might match the return type of a gcc2
5782     builtin and then its argument prototype would still apply.  */
5783 char $ac_func();
5784
5785 int main() {
5786
5787 /* The GNU C library defines this for functions which it implements
5788     to always fail with ENOSYS.  Some functions are actually named
5789     something starting with __ and the normal name is an alias.  */
5790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791 choke me
5792 #else
5793 $ac_func();
5794 #endif
5795
5796 ; return 0; }
5797 EOF
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5799   rm -rf conftest*
5800   eval "ac_cv_func_$ac_func=yes"
5801 else
5802   echo "configure: failed program was:" >&5
5803   cat conftest.$ac_ext >&5
5804   rm -rf conftest*
5805   eval "ac_cv_func_$ac_func=no"
5806 fi
5807 rm -f conftest*
5808 fi
5809
5810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5811   echo "$ac_t""yes" 1>&6
5812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813   cat >> confdefs.h <<EOF
5814 #define $ac_tr_func 1
5815 EOF
5816  
5817 else
5818   echo "$ac_t""no" 1>&6
5819 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5820 fi
5821 done
5822
5823
5824           if test x$ac_cv_func_copysignl = x"yes"; then
5825     for ac_func in __signbitl
5826 do
5827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5828 echo "configure:5829: checking for $ac_func" >&5
5829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5830   echo $ac_n "(cached) $ac_c" 1>&6
5831 else
5832   cat > conftest.$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 /* System header to define __stub macros and hopefully few prototypes,
5836     which can conflict with char $ac_func(); below.  */
5837 #include <assert.h>
5838 /* Override any gcc2 internal prototype to avoid an error.  */
5839 /* We use char because int might match the return type of a gcc2
5840     builtin and then its argument prototype would still apply.  */
5841 char $ac_func();
5842
5843 int main() {
5844
5845 /* The GNU C library defines this for functions which it implements
5846     to always fail with ENOSYS.  Some functions are actually named
5847     something starting with __ and the normal name is an alias.  */
5848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5849 choke me
5850 #else
5851 $ac_func();
5852 #endif
5853
5854 ; return 0; }
5855 EOF
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857   rm -rf conftest*
5858   eval "ac_cv_func_$ac_func=yes"
5859 else
5860   echo "configure: failed program was:" >&5
5861   cat conftest.$ac_ext >&5
5862   rm -rf conftest*
5863   eval "ac_cv_func_$ac_func=no"
5864 fi
5865 rm -f conftest*
5866 fi
5867
5868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5869   echo "$ac_t""yes" 1>&6
5870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5871   cat >> confdefs.h <<EOF
5872 #define $ac_tr_func 1
5873 EOF
5874  
5875 else
5876   echo "$ac_t""no" 1>&6
5877 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5878 fi
5879 done
5880
5881   fi
5882
5883   if test -n "$LIBMATHOBJS"; then
5884     need_libmath=yes
5885   fi
5886   
5887   
5888
5889 if test "$need_libmath" = yes; then
5890   GLIBCPP_BUILD_LIBMATH_TRUE=
5891   GLIBCPP_BUILD_LIBMATH_FALSE='#'
5892 else
5893   GLIBCPP_BUILD_LIBMATH_TRUE='#'
5894   GLIBCPP_BUILD_LIBMATH_FALSE=
5895 fi
5896
5897       
5898     enable_wchar_t=no
5899
5900       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5901 echo "configure:5902: checking for mbstate_t" >&5
5902   cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 #include <wchar.h>
5906 int main() {
5907 mbstate_t teststate;
5908 ; return 0; }
5909 EOF
5910 if { (eval echo configure:5911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5911   rm -rf conftest*
5912   have_mbstate_t=yes
5913 else
5914   echo "configure: failed program was:" >&5
5915   cat conftest.$ac_ext >&5
5916   rm -rf conftest*
5917   have_mbstate_t=no
5918 fi
5919 rm -f conftest*
5920   echo "$ac_t""$have_mbstate_t" 1>&6
5921   if test x"$have_mbstate_t" = xyes; then
5922     cat >> confdefs.h <<\EOF
5923 #define HAVE_MBSTATE_T 1
5924 EOF
5925
5926   fi
5927
5928     for ac_hdr in wchar.h
5929 do
5930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5932 echo "configure:5933: checking for $ac_hdr" >&5
5933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5934   echo $ac_n "(cached) $ac_c" 1>&6
5935 else
5936   cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 #include <$ac_hdr>
5940 EOF
5941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5942 { (eval echo configure:5943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5944 if test -z "$ac_err"; then
5945   rm -rf conftest*
5946   eval "ac_cv_header_$ac_safe=yes"
5947 else
5948   echo "$ac_err" >&5
5949   echo "configure: failed program was:" >&5
5950   cat conftest.$ac_ext >&5
5951   rm -rf conftest*
5952   eval "ac_cv_header_$ac_safe=no"
5953 fi
5954 rm -f conftest*
5955 fi
5956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5957   echo "$ac_t""yes" 1>&6
5958     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5959   cat >> confdefs.h <<EOF
5960 #define $ac_tr_hdr 1
5961 EOF
5962  ac_has_wchar_h=yes
5963 else
5964   echo "$ac_t""no" 1>&6
5965 ac_has_wchar_h=no
5966 fi
5967 done
5968
5969   for ac_hdr in wctype.h
5970 do
5971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_hdr" >&5
5974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5975   echo $ac_n "(cached) $ac_c" 1>&6
5976 else
5977   cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 #include <$ac_hdr>
5981 EOF
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then
5986   rm -rf conftest*
5987   eval "ac_cv_header_$ac_safe=yes"
5988 else
5989   echo "$ac_err" >&5
5990   echo "configure: failed program was:" >&5
5991   cat conftest.$ac_ext >&5
5992   rm -rf conftest*
5993   eval "ac_cv_header_$ac_safe=no"
5994 fi
5995 rm -f conftest*
5996 fi
5997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5998   echo "$ac_t""yes" 1>&6
5999     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6000   cat >> confdefs.h <<EOF
6001 #define $ac_tr_hdr 1
6002 EOF
6003  ac_has_wctype_h=yes
6004 else
6005   echo "$ac_t""no" 1>&6
6006 ac_has_wctype_h=no
6007 fi
6008 done
6009
6010
6011     if test x"$ac_has_wchar_h" = xyes &&
6012      test x"$ac_has_wctype_h" = xyes &&
6013      test x"$enable_c_mbchar" != xno; then
6014
6015             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6016 echo "configure:6017: checking for WCHAR_MIN and WCHAR_MAX" >&5
6017     cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6020 #include <wchar.h>
6021 int main() {
6022 int i = WCHAR_MIN; int j = WCHAR_MAX;
6023 ; return 0; }
6024 EOF
6025 if { (eval echo configure:6026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6026   rm -rf conftest*
6027   has_wchar_minmax=yes
6028 else
6029   echo "configure: failed program was:" >&5
6030   cat conftest.$ac_ext >&5
6031   rm -rf conftest*
6032   has_wchar_minmax=no
6033 fi
6034 rm -f conftest*
6035     echo "$ac_t""$has_wchar_minmax" 1>&6
6036
6037             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6038 echo "configure:6039: checking for WEOF" >&5
6039     cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042
6043       #include <wchar.h>
6044       #include <stddef.h>
6045 int main() {
6046 wint_t i = WEOF;
6047 ; return 0; }
6048 EOF
6049 if { (eval echo configure:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6050   rm -rf conftest*
6051   has_weof=yes
6052 else
6053   echo "configure: failed program was:" >&5
6054   cat conftest.$ac_ext >&5
6055   rm -rf conftest*
6056   has_weof=no
6057 fi
6058 rm -f conftest*
6059     echo "$ac_t""$has_weof" 1>&6
6060
6061         ac_wfuncs=yes
6062     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6063 do
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067   echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069   cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073     which can conflict with char $ac_func(); below.  */
6074 #include <assert.h>
6075 /* Override any gcc2 internal prototype to avoid an error.  */
6076 /* We use char because int might match the return type of a gcc2
6077     builtin and then its argument prototype would still apply.  */
6078 char $ac_func();
6079
6080 int main() {
6081
6082 /* The GNU C library defines this for functions which it implements
6083     to always fail with ENOSYS.  Some functions are actually named
6084     something starting with __ and the normal name is an alias.  */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6086 choke me
6087 #else
6088 $ac_func();
6089 #endif
6090
6091 ; return 0; }
6092 EOF
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094   rm -rf conftest*
6095   eval "ac_cv_func_$ac_func=yes"
6096 else
6097   echo "configure: failed program was:" >&5
6098   cat conftest.$ac_ext >&5
6099   rm -rf conftest*
6100   eval "ac_cv_func_$ac_func=no"
6101 fi
6102 rm -f conftest*
6103 fi
6104
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106   echo "$ac_t""yes" 1>&6
6107     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108   cat >> confdefs.h <<EOF
6109 #define $ac_tr_func 1
6110 EOF
6111  
6112 else
6113   echo "$ac_t""no" 1>&6
6114 \
6115     ac_wfuncs=no
6116 fi
6117 done
6118
6119
6120         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6121     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6122     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6123     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6124     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6125     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6126 do
6127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6128 echo "configure:6129: checking for $ac_func" >&5
6129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6130   echo $ac_n "(cached) $ac_c" 1>&6
6131 else
6132   cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* System header to define __stub macros and hopefully few prototypes,
6136     which can conflict with char $ac_func(); below.  */
6137 #include <assert.h>
6138 /* Override any gcc2 internal prototype to avoid an error.  */
6139 /* We use char because int might match the return type of a gcc2
6140     builtin and then its argument prototype would still apply.  */
6141 char $ac_func();
6142
6143 int main() {
6144
6145 /* The GNU C library defines this for functions which it implements
6146     to always fail with ENOSYS.  Some functions are actually named
6147     something starting with __ and the normal name is an alias.  */
6148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6149 choke me
6150 #else
6151 $ac_func();
6152 #endif
6153
6154 ; return 0; }
6155 EOF
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157   rm -rf conftest*
6158   eval "ac_cv_func_$ac_func=yes"
6159 else
6160   echo "configure: failed program was:" >&5
6161   cat conftest.$ac_ext >&5
6162   rm -rf conftest*
6163   eval "ac_cv_func_$ac_func=no"
6164 fi
6165 rm -f conftest*
6166 fi
6167
6168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6169   echo "$ac_t""yes" 1>&6
6170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6171   cat >> confdefs.h <<EOF
6172 #define $ac_tr_func 1
6173 EOF
6174  
6175 else
6176   echo "$ac_t""no" 1>&6
6177 \
6178     ac_wfuncs=no
6179 fi
6180 done
6181
6182
6183     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6184 echo "configure:6185: checking for ISO C99 wchar_t support" >&5
6185     if test x"$has_weof" = xyes &&
6186        test x"$has_wchar_minmax" = xyes &&
6187        test x"$ac_wfuncs" = xyes; then
6188       ac_isoC99_wchar_t=yes
6189     else
6190       ac_isoC99_wchar_t=no
6191     fi
6192     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6193
6194             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6195 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6196 echo "configure:6197: checking for iconv.h" >&5
6197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6198   echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200   cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 #include <iconv.h>
6204 EOF
6205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6206 { (eval echo configure:6207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6208 if test -z "$ac_err"; then
6209   rm -rf conftest*
6210   eval "ac_cv_header_$ac_safe=yes"
6211 else
6212   echo "$ac_err" >&5
6213   echo "configure: failed program was:" >&5
6214   cat conftest.$ac_ext >&5
6215   rm -rf conftest*
6216   eval "ac_cv_header_$ac_safe=no"
6217 fi
6218 rm -f conftest*
6219 fi
6220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6221   echo "$ac_t""yes" 1>&6
6222   ac_has_iconv_h=yes
6223 else
6224   echo "$ac_t""no" 1>&6
6225 ac_has_iconv_h=no
6226 fi
6227
6228     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6229 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6230 echo "configure:6231: checking for langinfo.h" >&5
6231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6232   echo $ac_n "(cached) $ac_c" 1>&6
6233 else
6234   cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 #include <langinfo.h>
6238 EOF
6239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6240 { (eval echo configure:6241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6242 if test -z "$ac_err"; then
6243   rm -rf conftest*
6244   eval "ac_cv_header_$ac_safe=yes"
6245 else
6246   echo "$ac_err" >&5
6247   echo "configure: failed program was:" >&5
6248   cat conftest.$ac_ext >&5
6249   rm -rf conftest*
6250   eval "ac_cv_header_$ac_safe=no"
6251 fi
6252 rm -f conftest*
6253 fi
6254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6255   echo "$ac_t""yes" 1>&6
6256   ac_has_langinfo_h=yes
6257 else
6258   echo "$ac_t""no" 1>&6
6259 ac_has_langinfo_h=no
6260 fi
6261
6262
6263         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6264 echo "configure:6265: checking for iconv in -liconv" >&5
6265 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6267   echo $ac_n "(cached) $ac_c" 1>&6
6268 else
6269   ac_save_LIBS="$LIBS"
6270 LIBS="-liconv  $LIBS"
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* Override any gcc2 internal prototype to avoid an error.  */
6275 /* We use char because int might match the return type of a gcc2
6276     builtin and then its argument prototype would still apply.  */
6277 char iconv();
6278
6279 int main() {
6280 iconv()
6281 ; return 0; }
6282 EOF
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284   rm -rf conftest*
6285   eval "ac_cv_lib_$ac_lib_var=yes"
6286 else
6287   echo "configure: failed program was:" >&5
6288   cat conftest.$ac_ext >&5
6289   rm -rf conftest*
6290   eval "ac_cv_lib_$ac_lib_var=no"
6291 fi
6292 rm -f conftest*
6293 LIBS="$ac_save_LIBS"
6294
6295 fi
6296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6297   echo "$ac_t""yes" 1>&6
6298   libiconv="-liconv"
6299 else
6300   echo "$ac_t""no" 1>&6
6301 fi
6302
6303     ac_save_LIBS="$LIBS"
6304     LIBS="$LIBS $libiconv"
6305
6306     for ac_func in iconv_open iconv_close iconv nl_langinfo
6307 do
6308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6309 echo "configure:6310: checking for $ac_func" >&5
6310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6311   echo $ac_n "(cached) $ac_c" 1>&6
6312 else
6313   cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 /* System header to define __stub macros and hopefully few prototypes,
6317     which can conflict with char $ac_func(); below.  */
6318 #include <assert.h>
6319 /* Override any gcc2 internal prototype to avoid an error.  */
6320 /* We use char because int might match the return type of a gcc2
6321     builtin and then its argument prototype would still apply.  */
6322 char $ac_func();
6323
6324 int main() {
6325
6326 /* The GNU C library defines this for functions which it implements
6327     to always fail with ENOSYS.  Some functions are actually named
6328     something starting with __ and the normal name is an alias.  */
6329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6330 choke me
6331 #else
6332 $ac_func();
6333 #endif
6334
6335 ; return 0; }
6336 EOF
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338   rm -rf conftest*
6339   eval "ac_cv_func_$ac_func=yes"
6340 else
6341   echo "configure: failed program was:" >&5
6342   cat conftest.$ac_ext >&5
6343   rm -rf conftest*
6344   eval "ac_cv_func_$ac_func=no"
6345 fi
6346 rm -f conftest*
6347 fi
6348
6349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6350   echo "$ac_t""yes" 1>&6
6351     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6352   cat >> confdefs.h <<EOF
6353 #define $ac_tr_func 1
6354 EOF
6355  \
6356     ac_XPG2funcs=yes
6357 else
6358   echo "$ac_t""no" 1>&6
6359 ac_XPG2funcs=no
6360 fi
6361 done
6362
6363
6364     LIBS="$ac_save_LIBS"
6365
6366     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6367 echo "configure:6368: checking for XPG2 wchar_t support" >&5
6368     if test x"$ac_has_iconv_h" = xyes &&
6369        test x"$ac_has_langinfo_h" = xyes &&
6370        test x"$ac_XPG2funcs" = xyes; then
6371       ac_XPG2_wchar_t=yes
6372     else
6373       ac_XPG2_wchar_t=no
6374     fi
6375     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6376
6377             if test x"$ac_isoC99_wchar_t" = xyes && 
6378         test x"$ac_XPG2_wchar_t" = xyes; then
6379       cat >> confdefs.h <<\EOF
6380 #define _GLIBCPP_USE_WCHAR_T 1
6381 EOF
6382
6383       enable_wchar_t=yes
6384     fi
6385   fi
6386   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6387 echo "configure:6388: checking for enabled wchar_t specializations" >&5
6388   echo "$ac_t""$enable_wchar_t" 1>&6    
6389   
6390
6391 if test "$enable_wchar_t" = yes; then
6392   GLIBCPP_TEST_WCHAR_T_TRUE=
6393   GLIBCPP_TEST_WCHAR_T_FALSE='#'
6394 else
6395   GLIBCPP_TEST_WCHAR_T_TRUE='#'
6396   GLIBCPP_TEST_WCHAR_T_FALSE=
6397 fi      
6398
6399       cat >> confdefs.h <<\EOF
6400 #define HAVE_COPYSIGN 1
6401 EOF
6402
6403       cat >> confdefs.h <<\EOF
6404 #define HAVE_COPYSIGNF 1
6405 EOF
6406
6407       cat >> confdefs.h <<\EOF
6408 #define HAVE_FREXPF 1
6409 EOF
6410
6411       cat >> confdefs.h <<\EOF
6412 #define HAVE_HYPOT 1
6413 EOF
6414
6415       case "$target" in
6416         *-hpux10*)
6417           cat >> confdefs.h <<\EOF
6418 #define HAVE_FINITE 1
6419 EOF
6420
6421           cat >> confdefs.h <<\EOF
6422 #define HAVE_FINITEF 1
6423 EOF
6424
6425           cat >> confdefs.h <<\EOF
6426 #define HAVE_ISINF 1
6427 EOF
6428
6429           cat >> confdefs.h <<\EOF
6430 #define HAVE_ISINFF 1
6431 EOF
6432
6433           cat >> confdefs.h <<\EOF
6434 #define HAVE_ISNAN 1
6435 EOF
6436
6437           cat >> confdefs.h <<\EOF
6438 #define HAVE_ISNANF 1
6439 EOF
6440
6441           ;;
6442       esac
6443       ;;
6444     *-linux*)
6445       os_include_dir="os/gnu-linux"
6446       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6447         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6448         fp.h locale.h float.h inttypes.h
6449 do
6450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6452 echo "configure:6453: checking for $ac_hdr" >&5
6453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6454   echo $ac_n "(cached) $ac_c" 1>&6
6455 else
6456   cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6459 #include <$ac_hdr>
6460 EOF
6461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6462 { (eval echo configure:6463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6464 if test -z "$ac_err"; then
6465   rm -rf conftest*
6466   eval "ac_cv_header_$ac_safe=yes"
6467 else
6468   echo "$ac_err" >&5
6469   echo "configure: failed program was:" >&5
6470   cat conftest.$ac_ext >&5
6471   rm -rf conftest*
6472   eval "ac_cv_header_$ac_safe=no"
6473 fi
6474 rm -f conftest*
6475 fi
6476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6477   echo "$ac_t""yes" 1>&6
6478     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6479   cat >> confdefs.h <<EOF
6480 #define $ac_tr_hdr 1
6481 EOF
6482  
6483 else
6484   echo "$ac_t""no" 1>&6
6485 fi
6486 done
6487
6488       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6489       
6490       
6491   # If we're not using GNU ld, then there's no point in even trying these
6492   # tests.  Check for that first.  We should have already tested for gld
6493   # by now (in libtool), but require it now just to be safe...
6494   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6495   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6496   
6497
6498   # The name set by libtool depends on the version of libtool.  Shame on us
6499   # for depending on an impl detail, but c'est la vie.  Older versions used
6500   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6501   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6502   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6503   # set (hence we're using an older libtool), then set it.
6504   if test x${with_gnu_ld+set} != xset; then
6505     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6506       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6507       with_gnu_ld=no
6508     else
6509       with_gnu_ld=$ac_cv_prog_gnu_ld
6510     fi
6511   fi
6512
6513   # Start by getting the version number.  I think the libtool test already
6514   # does some of this, but throws away the result.
6515   
6516   ldver=`$LD --version 2>/dev/null | head -1 | \
6517          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6518   
6519   glibcpp_gnu_ld_version=`echo $ldver | \
6520          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6521
6522   # Set --gc-sections.
6523   if test "$with_gnu_ld" = "notbroken"; then
6524     # GNU ld it is!  Joy and bunny rabbits!
6525
6526     # All these tests are for C++; save the language and the compiler flags.
6527     # Need to do this so that g++ won't try to link in libstdc++
6528     ac_test_CFLAGS="${CFLAGS+set}"
6529     ac_save_CFLAGS="$CFLAGS"
6530     CFLAGS='-x c++  -Wl,--gc-sections'
6531
6532     # Check for -Wl,--gc-sections
6533     # XXX This test is broken at the moment, as symbols required for
6534     # linking are now in libsupc++ (not built yet.....). In addition,
6535     # this test has cored on solaris in the past. In addition,
6536     # --gc-sections doesn't really work at the moment (keeps on discarding
6537     # used sections, first .eh_frame and now some of the glibc sections for
6538     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6539     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6540 echo "configure:6541: checking for ld that supports -Wl,--gc-sections" >&5
6541     if test "$cross_compiling" = yes; then
6542   ac_sectionLDflags=yes
6543 else
6544   cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547
6548      int main(void)
6549      {
6550        try { throw 1; }
6551        catch (...) { };
6552        return 0;
6553      }
6554     
6555 EOF
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6557 then
6558   ac_sectionLDflags=yes
6559 else
6560   echo "configure: failed program was:" >&5
6561   cat conftest.$ac_ext >&5
6562   rm -fr conftest*
6563   ac_sectionLDflags=no
6564 fi
6565 rm -fr conftest*
6566 fi
6567
6568     if test "$ac_test_CFLAGS" = set; then
6569       CFLAGS="$ac_save_CFLAGS"
6570     else
6571       # this is the suspicious part
6572       CFLAGS=''
6573     fi
6574     if test "$ac_sectionLDflags" = "yes"; then
6575       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6576     fi
6577     echo "$ac_t""$ac_sectionLDflags" 1>&6
6578   fi
6579
6580   # Set linker optimization flags.
6581   if test x"$with_gnu_ld" = x"yes"; then
6582     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6583   fi
6584
6585   
6586   
6587
6588       
6589     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6590 echo "configure:6591: checking for main in -lm" >&5
6591 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6593   echo $ac_n "(cached) $ac_c" 1>&6
6594 else
6595   ac_save_LIBS="$LIBS"
6596 LIBS="-lm  $LIBS"
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600
6601 int main() {
6602 main()
6603 ; return 0; }
6604 EOF
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606   rm -rf conftest*
6607   eval "ac_cv_lib_$ac_lib_var=yes"
6608 else
6609   echo "configure: failed program was:" >&5
6610   cat conftest.$ac_ext >&5
6611   rm -rf conftest*
6612   eval "ac_cv_lib_$ac_lib_var=no"
6613 fi
6614 rm -f conftest*
6615 LIBS="$ac_save_LIBS"
6616
6617 fi
6618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6619   echo "$ac_t""yes" 1>&6
6620     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6621     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6622   cat >> confdefs.h <<EOF
6623 #define $ac_tr_lib 1
6624 EOF
6625
6626   LIBS="-lm $LIBS"
6627
6628 else
6629   echo "$ac_t""no" 1>&6
6630 fi
6631
6632   for ac_func in nan copysignf
6633 do
6634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6635 echo "configure:6636: checking for $ac_func" >&5
6636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6637   echo $ac_n "(cached) $ac_c" 1>&6
6638 else
6639   cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 /* System header to define __stub macros and hopefully few prototypes,
6643     which can conflict with char $ac_func(); below.  */
6644 #include <assert.h>
6645 /* Override any gcc2 internal prototype to avoid an error.  */
6646 /* We use char because int might match the return type of a gcc2
6647     builtin and then its argument prototype would still apply.  */
6648 char $ac_func();
6649
6650 int main() {
6651
6652 /* The GNU C library defines this for functions which it implements
6653     to always fail with ENOSYS.  Some functions are actually named
6654     something starting with __ and the normal name is an alias.  */
6655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6656 choke me
6657 #else
6658 $ac_func();
6659 #endif
6660
6661 ; return 0; }
6662 EOF
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664   rm -rf conftest*
6665   eval "ac_cv_func_$ac_func=yes"
6666 else
6667   echo "configure: failed program was:" >&5
6668   cat conftest.$ac_ext >&5
6669   rm -rf conftest*
6670   eval "ac_cv_func_$ac_func=no"
6671 fi
6672 rm -f conftest*
6673 fi
6674
6675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6676   echo "$ac_t""yes" 1>&6
6677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6678   cat >> confdefs.h <<EOF
6679 #define $ac_tr_func 1
6680 EOF
6681  
6682 else
6683   echo "$ac_t""no" 1>&6
6684 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6685 fi
6686 done
6687
6688
6689     for ac_func in __signbit
6690 do
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694   echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696   cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700     which can conflict with char $ac_func(); below.  */
6701 #include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error.  */
6703 /* We use char because int might match the return type of a gcc2
6704     builtin and then its argument prototype would still apply.  */
6705 char $ac_func();
6706
6707 int main() {
6708
6709 /* The GNU C library defines this for functions which it implements
6710     to always fail with ENOSYS.  Some functions are actually named
6711     something starting with __ and the normal name is an alias.  */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 choke me
6714 #else
6715 $ac_func();
6716 #endif
6717
6718 ; return 0; }
6719 EOF
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721   rm -rf conftest*
6722   eval "ac_cv_func_$ac_func=yes"
6723 else
6724   echo "configure: failed program was:" >&5
6725   cat conftest.$ac_ext >&5
6726   rm -rf conftest*
6727   eval "ac_cv_func_$ac_func=no"
6728 fi
6729 rm -f conftest*
6730 fi
6731
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733   echo "$ac_t""yes" 1>&6
6734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735   cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6737 EOF
6738  
6739 else
6740   echo "$ac_t""no" 1>&6
6741 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6742 fi
6743 done
6744
6745   for ac_func in __signbitf
6746 do
6747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6748 echo "configure:6749: checking for $ac_func" >&5
6749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6750   echo $ac_n "(cached) $ac_c" 1>&6
6751 else
6752   cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6755 /* System header to define __stub macros and hopefully few prototypes,
6756     which can conflict with char $ac_func(); below.  */
6757 #include <assert.h>
6758 /* Override any gcc2 internal prototype to avoid an error.  */
6759 /* We use char because int might match the return type of a gcc2
6760     builtin and then its argument prototype would still apply.  */
6761 char $ac_func();
6762
6763 int main() {
6764
6765 /* The GNU C library defines this for functions which it implements
6766     to always fail with ENOSYS.  Some functions are actually named
6767     something starting with __ and the normal name is an alias.  */
6768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6769 choke me
6770 #else
6771 $ac_func();
6772 #endif
6773
6774 ; return 0; }
6775 EOF
6776 if { (eval echo configure:6777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6777   rm -rf conftest*
6778   eval "ac_cv_func_$ac_func=yes"
6779 else
6780   echo "configure: failed program was:" >&5
6781   cat conftest.$ac_ext >&5
6782   rm -rf conftest*
6783   eval "ac_cv_func_$ac_func=no"
6784 fi
6785 rm -f conftest*
6786 fi
6787
6788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6789   echo "$ac_t""yes" 1>&6
6790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6791   cat >> confdefs.h <<EOF
6792 #define $ac_tr_func 1
6793 EOF
6794  
6795 else
6796   echo "$ac_t""no" 1>&6
6797 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6798 fi
6799 done
6800
6801
6802           if test x$ac_cv_func_copysignl = x"yes"; then
6803     for ac_func in __signbitl
6804 do
6805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6806 echo "configure:6807: checking for $ac_func" >&5
6807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6808   echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810   cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* System header to define __stub macros and hopefully few prototypes,
6814     which can conflict with char $ac_func(); below.  */
6815 #include <assert.h>
6816 /* Override any gcc2 internal prototype to avoid an error.  */
6817 /* We use char because int might match the return type of a gcc2
6818     builtin and then its argument prototype would still apply.  */
6819 char $ac_func();
6820
6821 int main() {
6822
6823 /* The GNU C library defines this for functions which it implements
6824     to always fail with ENOSYS.  Some functions are actually named
6825     something starting with __ and the normal name is an alias.  */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 choke me
6828 #else
6829 $ac_func();
6830 #endif
6831
6832 ; return 0; }
6833 EOF
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835   rm -rf conftest*
6836   eval "ac_cv_func_$ac_func=yes"
6837 else
6838   echo "configure: failed program was:" >&5
6839   cat conftest.$ac_ext >&5
6840   rm -rf conftest*
6841   eval "ac_cv_func_$ac_func=no"
6842 fi
6843 rm -f conftest*
6844 fi
6845
6846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6847   echo "$ac_t""yes" 1>&6
6848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6849   cat >> confdefs.h <<EOF
6850 #define $ac_tr_func 1
6851 EOF
6852  
6853 else
6854   echo "$ac_t""no" 1>&6
6855 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6856 fi
6857 done
6858
6859   fi
6860
6861   if test -n "$LIBMATHOBJS"; then
6862     need_libmath=yes
6863   fi
6864   
6865   
6866
6867 if test "$need_libmath" = yes; then
6868   GLIBCPP_BUILD_LIBMATH_TRUE=
6869   GLIBCPP_BUILD_LIBMATH_FALSE='#'
6870 else
6871   GLIBCPP_BUILD_LIBMATH_TRUE='#'
6872   GLIBCPP_BUILD_LIBMATH_FALSE=
6873 fi
6874
6875       
6876     enable_wchar_t=no
6877
6878       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6879 echo "configure:6880: checking for mbstate_t" >&5
6880   cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 #include <wchar.h>
6884 int main() {
6885 mbstate_t teststate;
6886 ; return 0; }
6887 EOF
6888 if { (eval echo configure:6889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6889   rm -rf conftest*
6890   have_mbstate_t=yes
6891 else
6892   echo "configure: failed program was:" >&5
6893   cat conftest.$ac_ext >&5
6894   rm -rf conftest*
6895   have_mbstate_t=no
6896 fi
6897 rm -f conftest*
6898   echo "$ac_t""$have_mbstate_t" 1>&6
6899   if test x"$have_mbstate_t" = xyes; then
6900     cat >> confdefs.h <<\EOF
6901 #define HAVE_MBSTATE_T 1
6902 EOF
6903
6904   fi
6905
6906     for ac_hdr in wchar.h
6907 do
6908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_hdr" >&5
6911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6912   echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914   cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 #include <$ac_hdr>
6918 EOF
6919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6920 { (eval echo configure:6921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6922 if test -z "$ac_err"; then
6923   rm -rf conftest*
6924   eval "ac_cv_header_$ac_safe=yes"
6925 else
6926   echo "$ac_err" >&5
6927   echo "configure: failed program was:" >&5
6928   cat conftest.$ac_ext >&5
6929   rm -rf conftest*
6930   eval "ac_cv_header_$ac_safe=no"
6931 fi
6932 rm -f conftest*
6933 fi
6934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6935   echo "$ac_t""yes" 1>&6
6936     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6937   cat >> confdefs.h <<EOF
6938 #define $ac_tr_hdr 1
6939 EOF
6940  ac_has_wchar_h=yes
6941 else
6942   echo "$ac_t""no" 1>&6
6943 ac_has_wchar_h=no
6944 fi
6945 done
6946
6947   for ac_hdr in wctype.h
6948 do
6949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6951 echo "configure:6952: checking for $ac_hdr" >&5
6952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6953   echo $ac_n "(cached) $ac_c" 1>&6
6954 else
6955   cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 #include <$ac_hdr>
6959 EOF
6960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6961 { (eval echo configure:6962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6963 if test -z "$ac_err"; then
6964   rm -rf conftest*
6965   eval "ac_cv_header_$ac_safe=yes"
6966 else
6967   echo "$ac_err" >&5
6968   echo "configure: failed program was:" >&5
6969   cat conftest.$ac_ext >&5
6970   rm -rf conftest*
6971   eval "ac_cv_header_$ac_safe=no"
6972 fi
6973 rm -f conftest*
6974 fi
6975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6976   echo "$ac_t""yes" 1>&6
6977     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6978   cat >> confdefs.h <<EOF
6979 #define $ac_tr_hdr 1
6980 EOF
6981  ac_has_wctype_h=yes
6982 else
6983   echo "$ac_t""no" 1>&6
6984 ac_has_wctype_h=no
6985 fi
6986 done
6987
6988
6989     if test x"$ac_has_wchar_h" = xyes &&
6990      test x"$ac_has_wctype_h" = xyes &&
6991      test x"$enable_c_mbchar" != xno; then
6992
6993             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6994 echo "configure:6995: checking for WCHAR_MIN and WCHAR_MAX" >&5
6995     cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998 #include <wchar.h>
6999 int main() {
7000 int i = WCHAR_MIN; int j = WCHAR_MAX;
7001 ; return 0; }
7002 EOF
7003 if { (eval echo configure:7004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7004   rm -rf conftest*
7005   has_wchar_minmax=yes
7006 else
7007   echo "configure: failed program was:" >&5
7008   cat conftest.$ac_ext >&5
7009   rm -rf conftest*
7010   has_wchar_minmax=no
7011 fi
7012 rm -f conftest*
7013     echo "$ac_t""$has_wchar_minmax" 1>&6
7014
7015             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7016 echo "configure:7017: checking for WEOF" >&5
7017     cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020
7021       #include <wchar.h>
7022       #include <stddef.h>
7023 int main() {
7024 wint_t i = WEOF;
7025 ; return 0; }
7026 EOF
7027 if { (eval echo configure:7028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7028   rm -rf conftest*
7029   has_weof=yes
7030 else
7031   echo "configure: failed program was:" >&5
7032   cat conftest.$ac_ext >&5
7033   rm -rf conftest*
7034   has_weof=no
7035 fi
7036 rm -f conftest*
7037     echo "$ac_t""$has_weof" 1>&6
7038
7039         ac_wfuncs=yes
7040     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7041 do
7042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7043 echo "configure:7044: checking for $ac_func" >&5
7044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7045   echo $ac_n "(cached) $ac_c" 1>&6
7046 else
7047   cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051     which can conflict with char $ac_func(); below.  */
7052 #include <assert.h>
7053 /* Override any gcc2 internal prototype to avoid an error.  */
7054 /* We use char because int might match the return type of a gcc2
7055     builtin and then its argument prototype would still apply.  */
7056 char $ac_func();
7057
7058 int main() {
7059
7060 /* The GNU C library defines this for functions which it implements
7061     to always fail with ENOSYS.  Some functions are actually named
7062     something starting with __ and the normal name is an alias.  */
7063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7064 choke me
7065 #else
7066 $ac_func();
7067 #endif
7068
7069 ; return 0; }
7070 EOF
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7072   rm -rf conftest*
7073   eval "ac_cv_func_$ac_func=yes"
7074 else
7075   echo "configure: failed program was:" >&5
7076   cat conftest.$ac_ext >&5
7077   rm -rf conftest*
7078   eval "ac_cv_func_$ac_func=no"
7079 fi
7080 rm -f conftest*
7081 fi
7082
7083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7084   echo "$ac_t""yes" 1>&6
7085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7086   cat >> confdefs.h <<EOF
7087 #define $ac_tr_func 1
7088 EOF
7089  
7090 else
7091   echo "$ac_t""no" 1>&6
7092 \
7093     ac_wfuncs=no
7094 fi
7095 done
7096
7097
7098         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7099     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7100     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7101     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7102     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7103     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7104 do
7105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7106 echo "configure:7107: checking for $ac_func" >&5
7107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7108   echo $ac_n "(cached) $ac_c" 1>&6
7109 else
7110   cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* System header to define __stub macros and hopefully few prototypes,
7114     which can conflict with char $ac_func(); below.  */
7115 #include <assert.h>
7116 /* Override any gcc2 internal prototype to avoid an error.  */
7117 /* We use char because int might match the return type of a gcc2
7118     builtin and then its argument prototype would still apply.  */
7119 char $ac_func();
7120
7121 int main() {
7122
7123 /* The GNU C library defines this for functions which it implements
7124     to always fail with ENOSYS.  Some functions are actually named
7125     something starting with __ and the normal name is an alias.  */
7126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7127 choke me
7128 #else
7129 $ac_func();
7130 #endif
7131
7132 ; return 0; }
7133 EOF
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7135   rm -rf conftest*
7136   eval "ac_cv_func_$ac_func=yes"
7137 else
7138   echo "configure: failed program was:" >&5
7139   cat conftest.$ac_ext >&5
7140   rm -rf conftest*
7141   eval "ac_cv_func_$ac_func=no"
7142 fi
7143 rm -f conftest*
7144 fi
7145
7146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147   echo "$ac_t""yes" 1>&6
7148     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149   cat >> confdefs.h <<EOF
7150 #define $ac_tr_func 1
7151 EOF
7152  
7153 else
7154   echo "$ac_t""no" 1>&6
7155 \
7156     ac_wfuncs=no
7157 fi
7158 done
7159
7160
7161     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7162 echo "configure:7163: checking for ISO C99 wchar_t support" >&5
7163     if test x"$has_weof" = xyes &&
7164        test x"$has_wchar_minmax" = xyes &&
7165        test x"$ac_wfuncs" = xyes; then
7166       ac_isoC99_wchar_t=yes
7167     else
7168       ac_isoC99_wchar_t=no
7169     fi
7170     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7171
7172             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7173 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7174 echo "configure:7175: checking for iconv.h" >&5
7175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7176   echo $ac_n "(cached) $ac_c" 1>&6
7177 else
7178   cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 #include <iconv.h>
7182 EOF
7183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7184 { (eval echo configure:7185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7186 if test -z "$ac_err"; then
7187   rm -rf conftest*
7188   eval "ac_cv_header_$ac_safe=yes"
7189 else
7190   echo "$ac_err" >&5
7191   echo "configure: failed program was:" >&5
7192   cat conftest.$ac_ext >&5
7193   rm -rf conftest*
7194   eval "ac_cv_header_$ac_safe=no"
7195 fi
7196 rm -f conftest*
7197 fi
7198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7199   echo "$ac_t""yes" 1>&6
7200   ac_has_iconv_h=yes
7201 else
7202   echo "$ac_t""no" 1>&6
7203 ac_has_iconv_h=no
7204 fi
7205
7206     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7207 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7208 echo "configure:7209: checking for langinfo.h" >&5
7209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7210   echo $ac_n "(cached) $ac_c" 1>&6
7211 else
7212   cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 #include <langinfo.h>
7216 EOF
7217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7218 { (eval echo configure:7219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7220 if test -z "$ac_err"; then
7221   rm -rf conftest*
7222   eval "ac_cv_header_$ac_safe=yes"
7223 else
7224   echo "$ac_err" >&5
7225   echo "configure: failed program was:" >&5
7226   cat conftest.$ac_ext >&5
7227   rm -rf conftest*
7228   eval "ac_cv_header_$ac_safe=no"
7229 fi
7230 rm -f conftest*
7231 fi
7232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7233   echo "$ac_t""yes" 1>&6
7234   ac_has_langinfo_h=yes
7235 else
7236   echo "$ac_t""no" 1>&6
7237 ac_has_langinfo_h=no
7238 fi
7239
7240
7241         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7242 echo "configure:7243: checking for iconv in -liconv" >&5
7243 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7245   echo $ac_n "(cached) $ac_c" 1>&6
7246 else
7247   ac_save_LIBS="$LIBS"
7248 LIBS="-liconv  $LIBS"
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* Override any gcc2 internal prototype to avoid an error.  */
7253 /* We use char because int might match the return type of a gcc2
7254     builtin and then its argument prototype would still apply.  */
7255 char iconv();
7256
7257 int main() {
7258 iconv()
7259 ; return 0; }
7260 EOF
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7262   rm -rf conftest*
7263   eval "ac_cv_lib_$ac_lib_var=yes"
7264 else
7265   echo "configure: failed program was:" >&5
7266   cat conftest.$ac_ext >&5
7267   rm -rf conftest*
7268   eval "ac_cv_lib_$ac_lib_var=no"
7269 fi
7270 rm -f conftest*
7271 LIBS="$ac_save_LIBS"
7272
7273 fi
7274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7275   echo "$ac_t""yes" 1>&6
7276   libiconv="-liconv"
7277 else
7278   echo "$ac_t""no" 1>&6
7279 fi
7280
7281     ac_save_LIBS="$LIBS"
7282     LIBS="$LIBS $libiconv"
7283
7284     for ac_func in iconv_open iconv_close iconv nl_langinfo
7285 do
7286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_func" >&5
7288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7289   echo $ac_n "(cached) $ac_c" 1>&6
7290 else
7291   cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 /* System header to define __stub macros and hopefully few prototypes,
7295     which can conflict with char $ac_func(); below.  */
7296 #include <assert.h>
7297 /* Override any gcc2 internal prototype to avoid an error.  */
7298 /* We use char because int might match the return type of a gcc2
7299     builtin and then its argument prototype would still apply.  */
7300 char $ac_func();
7301
7302 int main() {
7303
7304 /* The GNU C library defines this for functions which it implements
7305     to always fail with ENOSYS.  Some functions are actually named
7306     something starting with __ and the normal name is an alias.  */
7307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7308 choke me
7309 #else
7310 $ac_func();
7311 #endif
7312
7313 ; return 0; }
7314 EOF
7315 if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7316   rm -rf conftest*
7317   eval "ac_cv_func_$ac_func=yes"
7318 else
7319   echo "configure: failed program was:" >&5
7320   cat conftest.$ac_ext >&5
7321   rm -rf conftest*
7322   eval "ac_cv_func_$ac_func=no"
7323 fi
7324 rm -f conftest*
7325 fi
7326
7327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7328   echo "$ac_t""yes" 1>&6
7329     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7330   cat >> confdefs.h <<EOF
7331 #define $ac_tr_func 1
7332 EOF
7333  \
7334     ac_XPG2funcs=yes
7335 else
7336   echo "$ac_t""no" 1>&6
7337 ac_XPG2funcs=no
7338 fi
7339 done
7340
7341
7342     LIBS="$ac_save_LIBS"
7343
7344     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7345 echo "configure:7346: checking for XPG2 wchar_t support" >&5
7346     if test x"$ac_has_iconv_h" = xyes &&
7347        test x"$ac_has_langinfo_h" = xyes &&
7348        test x"$ac_XPG2funcs" = xyes; then
7349       ac_XPG2_wchar_t=yes
7350     else
7351       ac_XPG2_wchar_t=no
7352     fi
7353     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7354
7355             if test x"$ac_isoC99_wchar_t" = xyes && 
7356         test x"$ac_XPG2_wchar_t" = xyes; then
7357       cat >> confdefs.h <<\EOF
7358 #define _GLIBCPP_USE_WCHAR_T 1
7359 EOF
7360
7361       enable_wchar_t=yes
7362     fi
7363   fi
7364   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7365 echo "configure:7366: checking for enabled wchar_t specializations" >&5
7366   echo "$ac_t""$enable_wchar_t" 1>&6    
7367   
7368
7369 if test "$enable_wchar_t" = yes; then
7370   GLIBCPP_TEST_WCHAR_T_TRUE=
7371   GLIBCPP_TEST_WCHAR_T_FALSE='#'
7372 else
7373   GLIBCPP_TEST_WCHAR_T_TRUE='#'
7374   GLIBCPP_TEST_WCHAR_T_FALSE=
7375 fi      
7376
7377       cat >> confdefs.h <<\EOF
7378 #define HAVE_COPYSIGN 1
7379 EOF
7380
7381       cat >> confdefs.h <<\EOF
7382 #define HAVE_COPYSIGNF 1
7383 EOF
7384
7385       cat >> confdefs.h <<\EOF
7386 #define HAVE_FINITE 1
7387 EOF
7388
7389       cat >> confdefs.h <<\EOF
7390 #define HAVE_FINITEF 1
7391 EOF
7392
7393       cat >> confdefs.h <<\EOF
7394 #define HAVE_FREXPF 1
7395 EOF
7396
7397       cat >> confdefs.h <<\EOF
7398 #define HAVE_HYPOTF 1
7399 EOF
7400
7401       cat >> confdefs.h <<\EOF
7402 #define HAVE_ISINF 1
7403 EOF
7404
7405       cat >> confdefs.h <<\EOF
7406 #define HAVE_ISINFF 1
7407 EOF
7408
7409       cat >> confdefs.h <<\EOF
7410 #define HAVE_ISNAN 1
7411 EOF
7412
7413       cat >> confdefs.h <<\EOF
7414 #define HAVE_ISNANF 1
7415 EOF
7416
7417       cat >> confdefs.h <<\EOF
7418 #define HAVE_SINCOS 1
7419 EOF
7420
7421       cat >> confdefs.h <<\EOF
7422 #define HAVE_SINCOSF 1
7423 EOF
7424
7425       if test x"long_double_math_on_this_cpu" = x"yes"; then
7426         cat >> confdefs.h <<\EOF
7427 #define HAVE_FINITEL 1
7428 EOF
7429
7430         cat >> confdefs.h <<\EOF
7431 #define HAVE_HYPOTL 1
7432 EOF
7433
7434         cat >> confdefs.h <<\EOF
7435 #define HAVE_ISINFL 1
7436 EOF
7437
7438         cat >> confdefs.h <<\EOF
7439 #define HAVE_ISNANL 1
7440 EOF
7441
7442       fi
7443       ;;
7444     *-mingw32*)
7445       os_include_dir="os/mingw32"
7446       for ac_hdr in sys/types.h locale.h float.h
7447 do
7448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7450 echo "configure:7451: checking for $ac_hdr" >&5
7451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7452   echo $ac_n "(cached) $ac_c" 1>&6
7453 else
7454   cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 #include <$ac_hdr>
7458 EOF
7459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7460 { (eval echo configure:7461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7462 if test -z "$ac_err"; then
7463   rm -rf conftest*
7464   eval "ac_cv_header_$ac_safe=yes"
7465 else
7466   echo "$ac_err" >&5
7467   echo "configure: failed program was:" >&5
7468   cat conftest.$ac_ext >&5
7469   rm -rf conftest*
7470   eval "ac_cv_header_$ac_safe=no"
7471 fi
7472 rm -f conftest*
7473 fi
7474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7475   echo "$ac_t""yes" 1>&6
7476     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7477   cat >> confdefs.h <<EOF
7478 #define $ac_tr_hdr 1
7479 EOF
7480  
7481 else
7482   echo "$ac_t""no" 1>&6
7483 fi
7484 done
7485
7486       
7487   # If we're not using GNU ld, then there's no point in even trying these
7488   # tests.  Check for that first.  We should have already tested for gld
7489   # by now (in libtool), but require it now just to be safe...
7490   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7491   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7492   
7493
7494   # The name set by libtool depends on the version of libtool.  Shame on us
7495   # for depending on an impl detail, but c'est la vie.  Older versions used
7496   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7497   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7498   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7499   # set (hence we're using an older libtool), then set it.
7500   if test x${with_gnu_ld+set} != xset; then
7501     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7502       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7503       with_gnu_ld=no
7504     else
7505       with_gnu_ld=$ac_cv_prog_gnu_ld
7506     fi
7507   fi
7508
7509   # Start by getting the version number.  I think the libtool test already
7510   # does some of this, but throws away the result.
7511   
7512   ldver=`$LD --version 2>/dev/null | head -1 | \
7513          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7514   
7515   glibcpp_gnu_ld_version=`echo $ldver | \
7516          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7517
7518   # Set --gc-sections.
7519   if test "$with_gnu_ld" = "notbroken"; then
7520     # GNU ld it is!  Joy and bunny rabbits!
7521
7522     # All these tests are for C++; save the language and the compiler flags.
7523     # Need to do this so that g++ won't try to link in libstdc++
7524     ac_test_CFLAGS="${CFLAGS+set}"
7525     ac_save_CFLAGS="$CFLAGS"
7526     CFLAGS='-x c++  -Wl,--gc-sections'
7527
7528     # Check for -Wl,--gc-sections
7529     # XXX This test is broken at the moment, as symbols required for
7530     # linking are now in libsupc++ (not built yet.....). In addition,
7531     # this test has cored on solaris in the past. In addition,
7532     # --gc-sections doesn't really work at the moment (keeps on discarding
7533     # used sections, first .eh_frame and now some of the glibc sections for
7534     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7535     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7536 echo "configure:7537: checking for ld that supports -Wl,--gc-sections" >&5
7537     if test "$cross_compiling" = yes; then
7538   ac_sectionLDflags=yes
7539 else
7540   cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7543
7544      int main(void)
7545      {
7546        try { throw 1; }
7547        catch (...) { };
7548        return 0;
7549      }
7550     
7551 EOF
7552 if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7553 then
7554   ac_sectionLDflags=yes
7555 else
7556   echo "configure: failed program was:" >&5
7557   cat conftest.$ac_ext >&5
7558   rm -fr conftest*
7559   ac_sectionLDflags=no
7560 fi
7561 rm -fr conftest*
7562 fi
7563
7564     if test "$ac_test_CFLAGS" = set; then
7565       CFLAGS="$ac_save_CFLAGS"
7566     else
7567       # this is the suspicious part
7568       CFLAGS=''
7569     fi
7570     if test "$ac_sectionLDflags" = "yes"; then
7571       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7572     fi
7573     echo "$ac_t""$ac_sectionLDflags" 1>&6
7574   fi
7575
7576   # Set linker optimization flags.
7577   if test x"$with_gnu_ld" = x"yes"; then
7578     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7579   fi
7580
7581   
7582   
7583
7584       
7585     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7586 echo "configure:7587: checking for main in -lm" >&5
7587 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7589   echo $ac_n "(cached) $ac_c" 1>&6
7590 else
7591   ac_save_LIBS="$LIBS"
7592 LIBS="-lm  $LIBS"
7593 cat > conftest.$ac_ext <<EOF
7594 #line 7595 "configure"
7595 #include "confdefs.h"
7596
7597 int main() {
7598 main()
7599 ; return 0; }
7600 EOF
7601 if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7602   rm -rf conftest*
7603   eval "ac_cv_lib_$ac_lib_var=yes"
7604 else
7605   echo "configure: failed program was:" >&5
7606   cat conftest.$ac_ext >&5
7607   rm -rf conftest*
7608   eval "ac_cv_lib_$ac_lib_var=no"
7609 fi
7610 rm -f conftest*
7611 LIBS="$ac_save_LIBS"
7612
7613 fi
7614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7615   echo "$ac_t""yes" 1>&6
7616     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7617     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7618   cat >> confdefs.h <<EOF
7619 #define $ac_tr_lib 1
7620 EOF
7621
7622   LIBS="-lm $LIBS"
7623
7624 else
7625   echo "$ac_t""no" 1>&6
7626 fi
7627
7628   for ac_func in nan copysignf
7629 do
7630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7631 echo "configure:7632: checking for $ac_func" >&5
7632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7633   echo $ac_n "(cached) $ac_c" 1>&6
7634 else
7635   cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* System header to define __stub macros and hopefully few prototypes,
7639     which can conflict with char $ac_func(); below.  */
7640 #include <assert.h>
7641 /* Override any gcc2 internal prototype to avoid an error.  */
7642 /* We use char because int might match the return type of a gcc2
7643     builtin and then its argument prototype would still apply.  */
7644 char $ac_func();
7645
7646 int main() {
7647
7648 /* The GNU C library defines this for functions which it implements
7649     to always fail with ENOSYS.  Some functions are actually named
7650     something starting with __ and the normal name is an alias.  */
7651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7652 choke me
7653 #else
7654 $ac_func();
7655 #endif
7656
7657 ; return 0; }
7658 EOF
7659 if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7660   rm -rf conftest*
7661   eval "ac_cv_func_$ac_func=yes"
7662 else
7663   echo "configure: failed program was:" >&5
7664   cat conftest.$ac_ext >&5
7665   rm -rf conftest*
7666   eval "ac_cv_func_$ac_func=no"
7667 fi
7668 rm -f conftest*
7669 fi
7670
7671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7672   echo "$ac_t""yes" 1>&6
7673     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7674   cat >> confdefs.h <<EOF
7675 #define $ac_tr_func 1
7676 EOF
7677  
7678 else
7679   echo "$ac_t""no" 1>&6
7680 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7681 fi
7682 done
7683
7684
7685     for ac_func in __signbit
7686 do
7687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7688 echo "configure:7689: checking for $ac_func" >&5
7689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7690   echo $ac_n "(cached) $ac_c" 1>&6
7691 else
7692   cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7695 /* System header to define __stub macros and hopefully few prototypes,
7696     which can conflict with char $ac_func(); below.  */
7697 #include <assert.h>
7698 /* Override any gcc2 internal prototype to avoid an error.  */
7699 /* We use char because int might match the return type of a gcc2
7700     builtin and then its argument prototype would still apply.  */
7701 char $ac_func();
7702
7703 int main() {
7704
7705 /* The GNU C library defines this for functions which it implements
7706     to always fail with ENOSYS.  Some functions are actually named
7707     something starting with __ and the normal name is an alias.  */
7708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7709 choke me
7710 #else
7711 $ac_func();
7712 #endif
7713
7714 ; return 0; }
7715 EOF
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7717   rm -rf conftest*
7718   eval "ac_cv_func_$ac_func=yes"
7719 else
7720   echo "configure: failed program was:" >&5
7721   cat conftest.$ac_ext >&5
7722   rm -rf conftest*
7723   eval "ac_cv_func_$ac_func=no"
7724 fi
7725 rm -f conftest*
7726 fi
7727
7728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7729   echo "$ac_t""yes" 1>&6
7730     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7731   cat >> confdefs.h <<EOF
7732 #define $ac_tr_func 1
7733 EOF
7734  
7735 else
7736   echo "$ac_t""no" 1>&6
7737 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7738 fi
7739 done
7740
7741   for ac_func in __signbitf
7742 do
7743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7744 echo "configure:7745: checking for $ac_func" >&5
7745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7746   echo $ac_n "(cached) $ac_c" 1>&6
7747 else
7748   cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure"
7750 #include "confdefs.h"
7751 /* System header to define __stub macros and hopefully few prototypes,
7752     which can conflict with char $ac_func(); below.  */
7753 #include <assert.h>
7754 /* Override any gcc2 internal prototype to avoid an error.  */
7755 /* We use char because int might match the return type of a gcc2
7756     builtin and then its argument prototype would still apply.  */
7757 char $ac_func();
7758
7759 int main() {
7760
7761 /* The GNU C library defines this for functions which it implements
7762     to always fail with ENOSYS.  Some functions are actually named
7763     something starting with __ and the normal name is an alias.  */
7764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7765 choke me
7766 #else
7767 $ac_func();
7768 #endif
7769
7770 ; return 0; }
7771 EOF
7772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7773   rm -rf conftest*
7774   eval "ac_cv_func_$ac_func=yes"
7775 else
7776   echo "configure: failed program was:" >&5
7777   cat conftest.$ac_ext >&5
7778   rm -rf conftest*
7779   eval "ac_cv_func_$ac_func=no"
7780 fi
7781 rm -f conftest*
7782 fi
7783
7784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7785   echo "$ac_t""yes" 1>&6
7786     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7787   cat >> confdefs.h <<EOF
7788 #define $ac_tr_func 1
7789 EOF
7790  
7791 else
7792   echo "$ac_t""no" 1>&6
7793 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7794 fi
7795 done
7796
7797
7798           if test x$ac_cv_func_copysignl = x"yes"; then
7799     for ac_func in __signbitl
7800 do
7801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7802 echo "configure:7803: checking for $ac_func" >&5
7803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7804   echo $ac_n "(cached) $ac_c" 1>&6
7805 else
7806   cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* System header to define __stub macros and hopefully few prototypes,
7810     which can conflict with char $ac_func(); below.  */
7811 #include <assert.h>
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 /* We use char because int might match the return type of a gcc2
7814     builtin and then its argument prototype would still apply.  */
7815 char $ac_func();
7816
7817 int main() {
7818
7819 /* The GNU C library defines this for functions which it implements
7820     to always fail with ENOSYS.  Some functions are actually named
7821     something starting with __ and the normal name is an alias.  */
7822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7823 choke me
7824 #else
7825 $ac_func();
7826 #endif
7827
7828 ; return 0; }
7829 EOF
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7831   rm -rf conftest*
7832   eval "ac_cv_func_$ac_func=yes"
7833 else
7834   echo "configure: failed program was:" >&5
7835   cat conftest.$ac_ext >&5
7836   rm -rf conftest*
7837   eval "ac_cv_func_$ac_func=no"
7838 fi
7839 rm -f conftest*
7840 fi
7841
7842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7843   echo "$ac_t""yes" 1>&6
7844     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7845   cat >> confdefs.h <<EOF
7846 #define $ac_tr_func 1
7847 EOF
7848  
7849 else
7850   echo "$ac_t""no" 1>&6
7851 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7852 fi
7853 done
7854
7855   fi
7856
7857   if test -n "$LIBMATHOBJS"; then
7858     need_libmath=yes
7859   fi
7860   
7861   
7862
7863 if test "$need_libmath" = yes; then
7864   GLIBCPP_BUILD_LIBMATH_TRUE=
7865   GLIBCPP_BUILD_LIBMATH_FALSE='#'
7866 else
7867   GLIBCPP_BUILD_LIBMATH_TRUE='#'
7868   GLIBCPP_BUILD_LIBMATH_FALSE=
7869 fi
7870
7871       
7872     enable_wchar_t=no
7873
7874       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7875 echo "configure:7876: checking for mbstate_t" >&5
7876   cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <wchar.h>
7880 int main() {
7881 mbstate_t teststate;
7882 ; return 0; }
7883 EOF
7884 if { (eval echo configure:7885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885   rm -rf conftest*
7886   have_mbstate_t=yes
7887 else
7888   echo "configure: failed program was:" >&5
7889   cat conftest.$ac_ext >&5
7890   rm -rf conftest*
7891   have_mbstate_t=no
7892 fi
7893 rm -f conftest*
7894   echo "$ac_t""$have_mbstate_t" 1>&6
7895   if test x"$have_mbstate_t" = xyes; then
7896     cat >> confdefs.h <<\EOF
7897 #define HAVE_MBSTATE_T 1
7898 EOF
7899
7900   fi
7901
7902     for ac_hdr in wchar.h
7903 do
7904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7906 echo "configure:7907: checking for $ac_hdr" >&5
7907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7908   echo $ac_n "(cached) $ac_c" 1>&6
7909 else
7910   cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 #include <$ac_hdr>
7914 EOF
7915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7916 { (eval echo configure:7917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7918 if test -z "$ac_err"; then
7919   rm -rf conftest*
7920   eval "ac_cv_header_$ac_safe=yes"
7921 else
7922   echo "$ac_err" >&5
7923   echo "configure: failed program was:" >&5
7924   cat conftest.$ac_ext >&5
7925   rm -rf conftest*
7926   eval "ac_cv_header_$ac_safe=no"
7927 fi
7928 rm -f conftest*
7929 fi
7930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7931   echo "$ac_t""yes" 1>&6
7932     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7933   cat >> confdefs.h <<EOF
7934 #define $ac_tr_hdr 1
7935 EOF
7936  ac_has_wchar_h=yes
7937 else
7938   echo "$ac_t""no" 1>&6
7939 ac_has_wchar_h=no
7940 fi
7941 done
7942
7943   for ac_hdr in wctype.h
7944 do
7945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7947 echo "configure:7948: checking for $ac_hdr" >&5
7948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7949   echo $ac_n "(cached) $ac_c" 1>&6
7950 else
7951   cat > conftest.$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 #include <$ac_hdr>
7955 EOF
7956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7957 { (eval echo configure:7958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7959 if test -z "$ac_err"; then
7960   rm -rf conftest*
7961   eval "ac_cv_header_$ac_safe=yes"
7962 else
7963   echo "$ac_err" >&5
7964   echo "configure: failed program was:" >&5
7965   cat conftest.$ac_ext >&5
7966   rm -rf conftest*
7967   eval "ac_cv_header_$ac_safe=no"
7968 fi
7969 rm -f conftest*
7970 fi
7971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7972   echo "$ac_t""yes" 1>&6
7973     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7974   cat >> confdefs.h <<EOF
7975 #define $ac_tr_hdr 1
7976 EOF
7977  ac_has_wctype_h=yes
7978 else
7979   echo "$ac_t""no" 1>&6
7980 ac_has_wctype_h=no
7981 fi
7982 done
7983
7984
7985     if test x"$ac_has_wchar_h" = xyes &&
7986      test x"$ac_has_wctype_h" = xyes &&
7987      test x"$enable_c_mbchar" != xno; then
7988
7989             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7990 echo "configure:7991: checking for WCHAR_MIN and WCHAR_MAX" >&5
7991     cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 #include <wchar.h>
7995 int main() {
7996 int i = WCHAR_MIN; int j = WCHAR_MAX;
7997 ; return 0; }
7998 EOF
7999 if { (eval echo configure:8000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8000   rm -rf conftest*
8001   has_wchar_minmax=yes
8002 else
8003   echo "configure: failed program was:" >&5
8004   cat conftest.$ac_ext >&5
8005   rm -rf conftest*
8006   has_wchar_minmax=no
8007 fi
8008 rm -f conftest*
8009     echo "$ac_t""$has_wchar_minmax" 1>&6
8010
8011             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8012 echo "configure:8013: checking for WEOF" >&5
8013     cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016
8017       #include <wchar.h>
8018       #include <stddef.h>
8019 int main() {
8020 wint_t i = WEOF;
8021 ; return 0; }
8022 EOF
8023 if { (eval echo configure:8024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8024   rm -rf conftest*
8025   has_weof=yes
8026 else
8027   echo "configure: failed program was:" >&5
8028   cat conftest.$ac_ext >&5
8029   rm -rf conftest*
8030   has_weof=no
8031 fi
8032 rm -f conftest*
8033     echo "$ac_t""$has_weof" 1>&6
8034
8035         ac_wfuncs=yes
8036     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8037 do
8038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8039 echo "configure:8040: checking for $ac_func" >&5
8040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8041   echo $ac_n "(cached) $ac_c" 1>&6
8042 else
8043   cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* System header to define __stub macros and hopefully few prototypes,
8047     which can conflict with char $ac_func(); below.  */
8048 #include <assert.h>
8049 /* Override any gcc2 internal prototype to avoid an error.  */
8050 /* We use char because int might match the return type of a gcc2
8051     builtin and then its argument prototype would still apply.  */
8052 char $ac_func();
8053
8054 int main() {
8055
8056 /* The GNU C library defines this for functions which it implements
8057     to always fail with ENOSYS.  Some functions are actually named
8058     something starting with __ and the normal name is an alias.  */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 choke me
8061 #else
8062 $ac_func();
8063 #endif
8064
8065 ; return 0; }
8066 EOF
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068   rm -rf conftest*
8069   eval "ac_cv_func_$ac_func=yes"
8070 else
8071   echo "configure: failed program was:" >&5
8072   cat conftest.$ac_ext >&5
8073   rm -rf conftest*
8074   eval "ac_cv_func_$ac_func=no"
8075 fi
8076 rm -f conftest*
8077 fi
8078
8079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8080   echo "$ac_t""yes" 1>&6
8081     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8082   cat >> confdefs.h <<EOF
8083 #define $ac_tr_func 1
8084 EOF
8085  
8086 else
8087   echo "$ac_t""no" 1>&6
8088 \
8089     ac_wfuncs=no
8090 fi
8091 done
8092
8093
8094         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8095     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8096     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8097     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8098     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8099     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8100 do
8101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8102 echo "configure:8103: checking for $ac_func" >&5
8103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8104   echo $ac_n "(cached) $ac_c" 1>&6
8105 else
8106   cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* System header to define __stub macros and hopefully few prototypes,
8110     which can conflict with char $ac_func(); below.  */
8111 #include <assert.h>
8112 /* Override any gcc2 internal prototype to avoid an error.  */
8113 /* We use char because int might match the return type of a gcc2
8114     builtin and then its argument prototype would still apply.  */
8115 char $ac_func();
8116
8117 int main() {
8118
8119 /* The GNU C library defines this for functions which it implements
8120     to always fail with ENOSYS.  Some functions are actually named
8121     something starting with __ and the normal name is an alias.  */
8122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8123 choke me
8124 #else
8125 $ac_func();
8126 #endif
8127
8128 ; return 0; }
8129 EOF
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8131   rm -rf conftest*
8132   eval "ac_cv_func_$ac_func=yes"
8133 else
8134   echo "configure: failed program was:" >&5
8135   cat conftest.$ac_ext >&5
8136   rm -rf conftest*
8137   eval "ac_cv_func_$ac_func=no"
8138 fi
8139 rm -f conftest*
8140 fi
8141
8142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8143   echo "$ac_t""yes" 1>&6
8144     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8145   cat >> confdefs.h <<EOF
8146 #define $ac_tr_func 1
8147 EOF
8148  
8149 else
8150   echo "$ac_t""no" 1>&6
8151 \
8152     ac_wfuncs=no
8153 fi
8154 done
8155
8156
8157     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8158 echo "configure:8159: checking for ISO C99 wchar_t support" >&5
8159     if test x"$has_weof" = xyes &&
8160        test x"$has_wchar_minmax" = xyes &&
8161        test x"$ac_wfuncs" = xyes; then
8162       ac_isoC99_wchar_t=yes
8163     else
8164       ac_isoC99_wchar_t=no
8165     fi
8166     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8167
8168             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8169 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8170 echo "configure:8171: checking for iconv.h" >&5
8171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8172   echo $ac_n "(cached) $ac_c" 1>&6
8173 else
8174   cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 #include <iconv.h>
8178 EOF
8179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8180 { (eval echo configure:8181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8182 if test -z "$ac_err"; then
8183   rm -rf conftest*
8184   eval "ac_cv_header_$ac_safe=yes"
8185 else
8186   echo "$ac_err" >&5
8187   echo "configure: failed program was:" >&5
8188   cat conftest.$ac_ext >&5
8189   rm -rf conftest*
8190   eval "ac_cv_header_$ac_safe=no"
8191 fi
8192 rm -f conftest*
8193 fi
8194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8195   echo "$ac_t""yes" 1>&6
8196   ac_has_iconv_h=yes
8197 else
8198   echo "$ac_t""no" 1>&6
8199 ac_has_iconv_h=no
8200 fi
8201
8202     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8203 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8204 echo "configure:8205: checking for langinfo.h" >&5
8205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8206   echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8208   cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 #include <langinfo.h>
8212 EOF
8213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8214 { (eval echo configure:8215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8216 if test -z "$ac_err"; then
8217   rm -rf conftest*
8218   eval "ac_cv_header_$ac_safe=yes"
8219 else
8220   echo "$ac_err" >&5
8221   echo "configure: failed program was:" >&5
8222   cat conftest.$ac_ext >&5
8223   rm -rf conftest*
8224   eval "ac_cv_header_$ac_safe=no"
8225 fi
8226 rm -f conftest*
8227 fi
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229   echo "$ac_t""yes" 1>&6
8230   ac_has_langinfo_h=yes
8231 else
8232   echo "$ac_t""no" 1>&6
8233 ac_has_langinfo_h=no
8234 fi
8235
8236
8237         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8238 echo "configure:8239: checking for iconv in -liconv" >&5
8239 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8241   echo $ac_n "(cached) $ac_c" 1>&6
8242 else
8243   ac_save_LIBS="$LIBS"
8244 LIBS="-liconv  $LIBS"
8245 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 /* Override any gcc2 internal prototype to avoid an error.  */
8249 /* We use char because int might match the return type of a gcc2
8250     builtin and then its argument prototype would still apply.  */
8251 char iconv();
8252
8253 int main() {
8254 iconv()
8255 ; return 0; }
8256 EOF
8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258   rm -rf conftest*
8259   eval "ac_cv_lib_$ac_lib_var=yes"
8260 else
8261   echo "configure: failed program was:" >&5
8262   cat conftest.$ac_ext >&5
8263   rm -rf conftest*
8264   eval "ac_cv_lib_$ac_lib_var=no"
8265 fi
8266 rm -f conftest*
8267 LIBS="$ac_save_LIBS"
8268
8269 fi
8270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8271   echo "$ac_t""yes" 1>&6
8272   libiconv="-liconv"
8273 else
8274   echo "$ac_t""no" 1>&6
8275 fi
8276
8277     ac_save_LIBS="$LIBS"
8278     LIBS="$LIBS $libiconv"
8279
8280     for ac_func in iconv_open iconv_close iconv nl_langinfo
8281 do
8282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8283 echo "configure:8284: checking for $ac_func" >&5
8284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8285   echo $ac_n "(cached) $ac_c" 1>&6
8286 else
8287   cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290 /* System header to define __stub macros and hopefully few prototypes,
8291     which can conflict with char $ac_func(); below.  */
8292 #include <assert.h>
8293 /* Override any gcc2 internal prototype to avoid an error.  */
8294 /* We use char because int might match the return type of a gcc2
8295     builtin and then its argument prototype would still apply.  */
8296 char $ac_func();
8297
8298 int main() {
8299
8300 /* The GNU C library defines this for functions which it implements
8301     to always fail with ENOSYS.  Some functions are actually named
8302     something starting with __ and the normal name is an alias.  */
8303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8304 choke me
8305 #else
8306 $ac_func();
8307 #endif
8308
8309 ; return 0; }
8310 EOF
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8312   rm -rf conftest*
8313   eval "ac_cv_func_$ac_func=yes"
8314 else
8315   echo "configure: failed program was:" >&5
8316   cat conftest.$ac_ext >&5
8317   rm -rf conftest*
8318   eval "ac_cv_func_$ac_func=no"
8319 fi
8320 rm -f conftest*
8321 fi
8322
8323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8324   echo "$ac_t""yes" 1>&6
8325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8326   cat >> confdefs.h <<EOF
8327 #define $ac_tr_func 1
8328 EOF
8329  \
8330     ac_XPG2funcs=yes
8331 else
8332   echo "$ac_t""no" 1>&6
8333 ac_XPG2funcs=no
8334 fi
8335 done
8336
8337
8338     LIBS="$ac_save_LIBS"
8339
8340     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8341 echo "configure:8342: checking for XPG2 wchar_t support" >&5
8342     if test x"$ac_has_iconv_h" = xyes &&
8343        test x"$ac_has_langinfo_h" = xyes &&
8344        test x"$ac_XPG2funcs" = xyes; then
8345       ac_XPG2_wchar_t=yes
8346     else
8347       ac_XPG2_wchar_t=no
8348     fi
8349     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8350
8351             if test x"$ac_isoC99_wchar_t" = xyes && 
8352         test x"$ac_XPG2_wchar_t" = xyes; then
8353       cat >> confdefs.h <<\EOF
8354 #define _GLIBCPP_USE_WCHAR_T 1
8355 EOF
8356
8357       enable_wchar_t=yes
8358     fi
8359   fi
8360   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8361 echo "configure:8362: checking for enabled wchar_t specializations" >&5
8362   echo "$ac_t""$enable_wchar_t" 1>&6    
8363   
8364
8365 if test "$enable_wchar_t" = yes; then
8366   GLIBCPP_TEST_WCHAR_T_TRUE=
8367   GLIBCPP_TEST_WCHAR_T_FALSE='#'
8368 else
8369   GLIBCPP_TEST_WCHAR_T_TRUE='#'
8370   GLIBCPP_TEST_WCHAR_T_FALSE=
8371 fi      
8372
8373       ;;
8374     *-netbsd*)
8375       os_include_dir="os/bsd/netbsd"
8376       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8377         machine/endian.h machine/param.h sys/machine.h sys/types.h \
8378         fp.h locale.h float.h inttypes.h
8379 do
8380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_hdr" >&5
8383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8384   echo $ac_n "(cached) $ac_c" 1>&6
8385 else
8386   cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 #include <$ac_hdr>
8390 EOF
8391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8392 { (eval echo configure:8393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8394 if test -z "$ac_err"; then
8395   rm -rf conftest*
8396   eval "ac_cv_header_$ac_safe=yes"
8397 else
8398   echo "$ac_err" >&5
8399   echo "configure: failed program was:" >&5
8400   cat conftest.$ac_ext >&5
8401   rm -rf conftest*
8402   eval "ac_cv_header_$ac_safe=no"
8403 fi
8404 rm -f conftest*
8405 fi
8406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8407   echo "$ac_t""yes" 1>&6
8408     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8409   cat >> confdefs.h <<EOF
8410 #define $ac_tr_hdr 1
8411 EOF
8412  
8413 else
8414   echo "$ac_t""no" 1>&6
8415 fi
8416 done
8417
8418       SECTION_FLAGS='-ffunction-sections -fdata-sections'
8419        
8420       
8421   # If we're not using GNU ld, then there's no point in even trying these
8422   # tests.  Check for that first.  We should have already tested for gld
8423   # by now (in libtool), but require it now just to be safe...
8424   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8425   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8426   
8427
8428   # The name set by libtool depends on the version of libtool.  Shame on us
8429   # for depending on an impl detail, but c'est la vie.  Older versions used
8430   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8431   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8432   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8433   # set (hence we're using an older libtool), then set it.
8434   if test x${with_gnu_ld+set} != xset; then
8435     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8436       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8437       with_gnu_ld=no
8438     else
8439       with_gnu_ld=$ac_cv_prog_gnu_ld
8440     fi
8441   fi
8442
8443   # Start by getting the version number.  I think the libtool test already
8444   # does some of this, but throws away the result.
8445   
8446   ldver=`$LD --version 2>/dev/null | head -1 | \
8447          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8448   
8449   glibcpp_gnu_ld_version=`echo $ldver | \
8450          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8451
8452   # Set --gc-sections.
8453   if test "$with_gnu_ld" = "notbroken"; then
8454     # GNU ld it is!  Joy and bunny rabbits!
8455
8456     # All these tests are for C++; save the language and the compiler flags.
8457     # Need to do this so that g++ won't try to link in libstdc++
8458     ac_test_CFLAGS="${CFLAGS+set}"
8459     ac_save_CFLAGS="$CFLAGS"
8460     CFLAGS='-x c++  -Wl,--gc-sections'
8461
8462     # Check for -Wl,--gc-sections
8463     # XXX This test is broken at the moment, as symbols required for
8464     # linking are now in libsupc++ (not built yet.....). In addition,
8465     # this test has cored on solaris in the past. In addition,
8466     # --gc-sections doesn't really work at the moment (keeps on discarding
8467     # used sections, first .eh_frame and now some of the glibc sections for
8468     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8469     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8470 echo "configure:8471: checking for ld that supports -Wl,--gc-sections" >&5
8471     if test "$cross_compiling" = yes; then
8472   ac_sectionLDflags=yes
8473 else
8474   cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477
8478      int main(void)
8479      {
8480        try { throw 1; }
8481        catch (...) { };
8482        return 0;
8483      }
8484     
8485 EOF
8486 if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8487 then
8488   ac_sectionLDflags=yes
8489 else
8490   echo "configure: failed program was:" >&5
8491   cat conftest.$ac_ext >&5
8492   rm -fr conftest*
8493   ac_sectionLDflags=no
8494 fi
8495 rm -fr conftest*
8496 fi
8497
8498     if test "$ac_test_CFLAGS" = set; then
8499       CFLAGS="$ac_save_CFLAGS"
8500     else
8501       # this is the suspicious part
8502       CFLAGS=''
8503     fi
8504     if test "$ac_sectionLDflags" = "yes"; then
8505       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8506     fi
8507     echo "$ac_t""$ac_sectionLDflags" 1>&6
8508   fi
8509
8510   # Set linker optimization flags.
8511   if test x"$with_gnu_ld" = x"yes"; then
8512     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8513   fi
8514
8515   
8516   
8517
8518       
8519     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8520 echo "configure:8521: checking for main in -lm" >&5
8521 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8523   echo $ac_n "(cached) $ac_c" 1>&6
8524 else
8525   ac_save_LIBS="$LIBS"
8526 LIBS="-lm  $LIBS"
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8530
8531 int main() {
8532 main()
8533 ; return 0; }
8534 EOF
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536   rm -rf conftest*
8537   eval "ac_cv_lib_$ac_lib_var=yes"
8538 else
8539   echo "configure: failed program was:" >&5
8540   cat conftest.$ac_ext >&5
8541   rm -rf conftest*
8542   eval "ac_cv_lib_$ac_lib_var=no"
8543 fi
8544 rm -f conftest*
8545 LIBS="$ac_save_LIBS"
8546
8547 fi
8548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8549   echo "$ac_t""yes" 1>&6
8550     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8551     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8552   cat >> confdefs.h <<EOF
8553 #define $ac_tr_lib 1
8554 EOF
8555
8556   LIBS="-lm $LIBS"
8557
8558 else
8559   echo "$ac_t""no" 1>&6
8560 fi
8561
8562   for ac_func in nan copysignf
8563 do
8564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8565 echo "configure:8566: checking for $ac_func" >&5
8566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8567   echo $ac_n "(cached) $ac_c" 1>&6
8568 else
8569   cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572 /* System header to define __stub macros and hopefully few prototypes,
8573     which can conflict with char $ac_func(); below.  */
8574 #include <assert.h>
8575 /* Override any gcc2 internal prototype to avoid an error.  */
8576 /* We use char because int might match the return type of a gcc2
8577     builtin and then its argument prototype would still apply.  */
8578 char $ac_func();
8579
8580 int main() {
8581
8582 /* The GNU C library defines this for functions which it implements
8583     to always fail with ENOSYS.  Some functions are actually named
8584     something starting with __ and the normal name is an alias.  */
8585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8586 choke me
8587 #else
8588 $ac_func();
8589 #endif
8590
8591 ; return 0; }
8592 EOF
8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8594   rm -rf conftest*
8595   eval "ac_cv_func_$ac_func=yes"
8596 else
8597   echo "configure: failed program was:" >&5
8598   cat conftest.$ac_ext >&5
8599   rm -rf conftest*
8600   eval "ac_cv_func_$ac_func=no"
8601 fi
8602 rm -f conftest*
8603 fi
8604
8605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8606   echo "$ac_t""yes" 1>&6
8607     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8608   cat >> confdefs.h <<EOF
8609 #define $ac_tr_func 1
8610 EOF
8611  
8612 else
8613   echo "$ac_t""no" 1>&6
8614 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8615 fi
8616 done
8617
8618
8619     for ac_func in __signbit
8620 do
8621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8622 echo "configure:8623: checking for $ac_func" >&5
8623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8624   echo $ac_n "(cached) $ac_c" 1>&6
8625 else
8626   cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 /* System header to define __stub macros and hopefully few prototypes,
8630     which can conflict with char $ac_func(); below.  */
8631 #include <assert.h>
8632 /* Override any gcc2 internal prototype to avoid an error.  */
8633 /* We use char because int might match the return type of a gcc2
8634     builtin and then its argument prototype would still apply.  */
8635 char $ac_func();
8636
8637 int main() {
8638
8639 /* The GNU C library defines this for functions which it implements
8640     to always fail with ENOSYS.  Some functions are actually named
8641     something starting with __ and the normal name is an alias.  */
8642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8643 choke me
8644 #else
8645 $ac_func();
8646 #endif
8647
8648 ; return 0; }
8649 EOF
8650 if { (eval echo configure:8651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8651   rm -rf conftest*
8652   eval "ac_cv_func_$ac_func=yes"
8653 else
8654   echo "configure: failed program was:" >&5
8655   cat conftest.$ac_ext >&5
8656   rm -rf conftest*
8657   eval "ac_cv_func_$ac_func=no"
8658 fi
8659 rm -f conftest*
8660 fi
8661
8662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8663   echo "$ac_t""yes" 1>&6
8664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8665   cat >> confdefs.h <<EOF
8666 #define $ac_tr_func 1
8667 EOF
8668  
8669 else
8670   echo "$ac_t""no" 1>&6
8671 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8672 fi
8673 done
8674
8675   for ac_func in __signbitf
8676 do
8677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8678 echo "configure:8679: checking for $ac_func" >&5
8679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8680   echo $ac_n "(cached) $ac_c" 1>&6
8681 else
8682   cat > conftest.$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8685 /* System header to define __stub macros and hopefully few prototypes,
8686     which can conflict with char $ac_func(); below.  */
8687 #include <assert.h>
8688 /* Override any gcc2 internal prototype to avoid an error.  */
8689 /* We use char because int might match the return type of a gcc2
8690     builtin and then its argument prototype would still apply.  */
8691 char $ac_func();
8692
8693 int main() {
8694
8695 /* The GNU C library defines this for functions which it implements
8696     to always fail with ENOSYS.  Some functions are actually named
8697     something starting with __ and the normal name is an alias.  */
8698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8699 choke me
8700 #else
8701 $ac_func();
8702 #endif
8703
8704 ; return 0; }
8705 EOF
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8707   rm -rf conftest*
8708   eval "ac_cv_func_$ac_func=yes"
8709 else
8710   echo "configure: failed program was:" >&5
8711   cat conftest.$ac_ext >&5
8712   rm -rf conftest*
8713   eval "ac_cv_func_$ac_func=no"
8714 fi
8715 rm -f conftest*
8716 fi
8717
8718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8719   echo "$ac_t""yes" 1>&6
8720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8721   cat >> confdefs.h <<EOF
8722 #define $ac_tr_func 1
8723 EOF
8724  
8725 else
8726   echo "$ac_t""no" 1>&6
8727 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8728 fi
8729 done
8730
8731
8732           if test x$ac_cv_func_copysignl = x"yes"; then
8733     for ac_func in __signbitl
8734 do
8735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8736 echo "configure:8737: checking for $ac_func" >&5
8737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8738   echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8740   cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 /* System header to define __stub macros and hopefully few prototypes,
8744     which can conflict with char $ac_func(); below.  */
8745 #include <assert.h>
8746 /* Override any gcc2 internal prototype to avoid an error.  */
8747 /* We use char because int might match the return type of a gcc2
8748     builtin and then its argument prototype would still apply.  */
8749 char $ac_func();
8750
8751 int main() {
8752
8753 /* The GNU C library defines this for functions which it implements
8754     to always fail with ENOSYS.  Some functions are actually named
8755     something starting with __ and the normal name is an alias.  */
8756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8757 choke me
8758 #else
8759 $ac_func();
8760 #endif
8761
8762 ; return 0; }
8763 EOF
8764 if { (eval echo configure:8765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8765   rm -rf conftest*
8766   eval "ac_cv_func_$ac_func=yes"
8767 else
8768   echo "configure: failed program was:" >&5
8769   cat conftest.$ac_ext >&5
8770   rm -rf conftest*
8771   eval "ac_cv_func_$ac_func=no"
8772 fi
8773 rm -f conftest*
8774 fi
8775
8776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8777   echo "$ac_t""yes" 1>&6
8778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8779   cat >> confdefs.h <<EOF
8780 #define $ac_tr_func 1
8781 EOF
8782  
8783 else
8784   echo "$ac_t""no" 1>&6
8785 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8786 fi
8787 done
8788
8789   fi
8790
8791   if test -n "$LIBMATHOBJS"; then
8792     need_libmath=yes
8793   fi
8794   
8795   
8796
8797 if test "$need_libmath" = yes; then
8798   GLIBCPP_BUILD_LIBMATH_TRUE=
8799   GLIBCPP_BUILD_LIBMATH_FALSE='#'
8800 else
8801   GLIBCPP_BUILD_LIBMATH_TRUE='#'
8802   GLIBCPP_BUILD_LIBMATH_FALSE=
8803 fi
8804
8805       
8806     enable_wchar_t=no
8807
8808       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8809 echo "configure:8810: checking for mbstate_t" >&5
8810   cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 #include <wchar.h>
8814 int main() {
8815 mbstate_t teststate;
8816 ; return 0; }
8817 EOF
8818 if { (eval echo configure:8819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8819   rm -rf conftest*
8820   have_mbstate_t=yes
8821 else
8822   echo "configure: failed program was:" >&5
8823   cat conftest.$ac_ext >&5
8824   rm -rf conftest*
8825   have_mbstate_t=no
8826 fi
8827 rm -f conftest*
8828   echo "$ac_t""$have_mbstate_t" 1>&6
8829   if test x"$have_mbstate_t" = xyes; then
8830     cat >> confdefs.h <<\EOF
8831 #define HAVE_MBSTATE_T 1
8832 EOF
8833
8834   fi
8835
8836     for ac_hdr in wchar.h
8837 do
8838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8840 echo "configure:8841: checking for $ac_hdr" >&5
8841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8842   echo $ac_n "(cached) $ac_c" 1>&6
8843 else
8844   cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8847 #include <$ac_hdr>
8848 EOF
8849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8850 { (eval echo configure:8851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8852 if test -z "$ac_err"; then
8853   rm -rf conftest*
8854   eval "ac_cv_header_$ac_safe=yes"
8855 else
8856   echo "$ac_err" >&5
8857   echo "configure: failed program was:" >&5
8858   cat conftest.$ac_ext >&5
8859   rm -rf conftest*
8860   eval "ac_cv_header_$ac_safe=no"
8861 fi
8862 rm -f conftest*
8863 fi
8864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8865   echo "$ac_t""yes" 1>&6
8866     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8867   cat >> confdefs.h <<EOF
8868 #define $ac_tr_hdr 1
8869 EOF
8870  ac_has_wchar_h=yes
8871 else
8872   echo "$ac_t""no" 1>&6
8873 ac_has_wchar_h=no
8874 fi
8875 done
8876
8877   for ac_hdr in wctype.h
8878 do
8879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8881 echo "configure:8882: checking for $ac_hdr" >&5
8882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8883   echo $ac_n "(cached) $ac_c" 1>&6
8884 else
8885   cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 #include <$ac_hdr>
8889 EOF
8890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8891 { (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8893 if test -z "$ac_err"; then
8894   rm -rf conftest*
8895   eval "ac_cv_header_$ac_safe=yes"
8896 else
8897   echo "$ac_err" >&5
8898   echo "configure: failed program was:" >&5
8899   cat conftest.$ac_ext >&5
8900   rm -rf conftest*
8901   eval "ac_cv_header_$ac_safe=no"
8902 fi
8903 rm -f conftest*
8904 fi
8905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8906   echo "$ac_t""yes" 1>&6
8907     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8908   cat >> confdefs.h <<EOF
8909 #define $ac_tr_hdr 1
8910 EOF
8911  ac_has_wctype_h=yes
8912 else
8913   echo "$ac_t""no" 1>&6
8914 ac_has_wctype_h=no
8915 fi
8916 done
8917
8918
8919     if test x"$ac_has_wchar_h" = xyes &&
8920      test x"$ac_has_wctype_h" = xyes &&
8921      test x"$enable_c_mbchar" != xno; then
8922
8923             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8924 echo "configure:8925: checking for WCHAR_MIN and WCHAR_MAX" >&5
8925     cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8928 #include <wchar.h>
8929 int main() {
8930 int i = WCHAR_MIN; int j = WCHAR_MAX;
8931 ; return 0; }
8932 EOF
8933 if { (eval echo configure:8934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8934   rm -rf conftest*
8935   has_wchar_minmax=yes
8936 else
8937   echo "configure: failed program was:" >&5
8938   cat conftest.$ac_ext >&5
8939   rm -rf conftest*
8940   has_wchar_minmax=no
8941 fi
8942 rm -f conftest*
8943     echo "$ac_t""$has_wchar_minmax" 1>&6
8944
8945             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8946 echo "configure:8947: checking for WEOF" >&5
8947     cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950
8951       #include <wchar.h>
8952       #include <stddef.h>
8953 int main() {
8954 wint_t i = WEOF;
8955 ; return 0; }
8956 EOF
8957 if { (eval echo configure:8958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8958   rm -rf conftest*
8959   has_weof=yes
8960 else
8961   echo "configure: failed program was:" >&5
8962   cat conftest.$ac_ext >&5
8963   rm -rf conftest*
8964   has_weof=no
8965 fi
8966 rm -f conftest*
8967     echo "$ac_t""$has_weof" 1>&6
8968
8969         ac_wfuncs=yes
8970     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8971 do
8972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8973 echo "configure:8974: checking for $ac_func" >&5
8974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8975   echo $ac_n "(cached) $ac_c" 1>&6
8976 else
8977   cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980 /* System header to define __stub macros and hopefully few prototypes,
8981     which can conflict with char $ac_func(); below.  */
8982 #include <assert.h>
8983 /* Override any gcc2 internal prototype to avoid an error.  */
8984 /* We use char because int might match the return type of a gcc2
8985     builtin and then its argument prototype would still apply.  */
8986 char $ac_func();
8987
8988 int main() {
8989
8990 /* The GNU C library defines this for functions which it implements
8991     to always fail with ENOSYS.  Some functions are actually named
8992     something starting with __ and the normal name is an alias.  */
8993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8994 choke me
8995 #else
8996 $ac_func();
8997 #endif
8998
8999 ; return 0; }
9000 EOF
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9002   rm -rf conftest*
9003   eval "ac_cv_func_$ac_func=yes"
9004 else
9005   echo "configure: failed program was:" >&5
9006   cat conftest.$ac_ext >&5
9007   rm -rf conftest*
9008   eval "ac_cv_func_$ac_func=no"
9009 fi
9010 rm -f conftest*
9011 fi
9012
9013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9014   echo "$ac_t""yes" 1>&6
9015     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9016   cat >> confdefs.h <<EOF
9017 #define $ac_tr_func 1
9018 EOF
9019  
9020 else
9021   echo "$ac_t""no" 1>&6
9022 \
9023     ac_wfuncs=no
9024 fi
9025 done
9026
9027
9028         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9029     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9030     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9031     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9032     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9033     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9034 do
9035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9036 echo "configure:9037: checking for $ac_func" >&5
9037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9038   echo $ac_n "(cached) $ac_c" 1>&6
9039 else
9040   cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 /* System header to define __stub macros and hopefully few prototypes,
9044     which can conflict with char $ac_func(); below.  */
9045 #include <assert.h>
9046 /* Override any gcc2 internal prototype to avoid an error.  */
9047 /* We use char because int might match the return type of a gcc2
9048     builtin and then its argument prototype would still apply.  */
9049 char $ac_func();
9050
9051 int main() {
9052
9053 /* The GNU C library defines this for functions which it implements
9054     to always fail with ENOSYS.  Some functions are actually named
9055     something starting with __ and the normal name is an alias.  */
9056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9057 choke me
9058 #else
9059 $ac_func();
9060 #endif
9061
9062 ; return 0; }
9063 EOF
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9065   rm -rf conftest*
9066   eval "ac_cv_func_$ac_func=yes"
9067 else
9068   echo "configure: failed program was:" >&5
9069   cat conftest.$ac_ext >&5
9070   rm -rf conftest*
9071   eval "ac_cv_func_$ac_func=no"
9072 fi
9073 rm -f conftest*
9074 fi
9075
9076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9077   echo "$ac_t""yes" 1>&6
9078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9079   cat >> confdefs.h <<EOF
9080 #define $ac_tr_func 1
9081 EOF
9082  
9083 else
9084   echo "$ac_t""no" 1>&6
9085 \
9086     ac_wfuncs=no
9087 fi
9088 done
9089
9090
9091     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9092 echo "configure:9093: checking for ISO C99 wchar_t support" >&5
9093     if test x"$has_weof" = xyes &&
9094        test x"$has_wchar_minmax" = xyes &&
9095        test x"$ac_wfuncs" = xyes; then
9096       ac_isoC99_wchar_t=yes
9097     else
9098       ac_isoC99_wchar_t=no
9099     fi
9100     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9101
9102             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9103 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9104 echo "configure:9105: checking for iconv.h" >&5
9105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9106   echo $ac_n "(cached) $ac_c" 1>&6
9107 else
9108   cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9111 #include <iconv.h>
9112 EOF
9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9116 if test -z "$ac_err"; then
9117   rm -rf conftest*
9118   eval "ac_cv_header_$ac_safe=yes"
9119 else
9120   echo "$ac_err" >&5
9121   echo "configure: failed program was:" >&5
9122   cat conftest.$ac_ext >&5
9123   rm -rf conftest*
9124   eval "ac_cv_header_$ac_safe=no"
9125 fi
9126 rm -f conftest*
9127 fi
9128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9129   echo "$ac_t""yes" 1>&6
9130   ac_has_iconv_h=yes
9131 else
9132   echo "$ac_t""no" 1>&6
9133 ac_has_iconv_h=no
9134 fi
9135
9136     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9137 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9138 echo "configure:9139: checking for langinfo.h" >&5
9139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9140   echo $ac_n "(cached) $ac_c" 1>&6
9141 else
9142   cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 #include <langinfo.h>
9146 EOF
9147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9148 { (eval echo configure:9149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9150 if test -z "$ac_err"; then
9151   rm -rf conftest*
9152   eval "ac_cv_header_$ac_safe=yes"
9153 else
9154   echo "$ac_err" >&5
9155   echo "configure: failed program was:" >&5
9156   cat conftest.$ac_ext >&5
9157   rm -rf conftest*
9158   eval "ac_cv_header_$ac_safe=no"
9159 fi
9160 rm -f conftest*
9161 fi
9162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9163   echo "$ac_t""yes" 1>&6
9164   ac_has_langinfo_h=yes
9165 else
9166   echo "$ac_t""no" 1>&6
9167 ac_has_langinfo_h=no
9168 fi
9169
9170
9171         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9172 echo "configure:9173: checking for iconv in -liconv" >&5
9173 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9175   echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9177   ac_save_LIBS="$LIBS"
9178 LIBS="-liconv  $LIBS"
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 /* Override any gcc2 internal prototype to avoid an error.  */
9183 /* We use char because int might match the return type of a gcc2
9184     builtin and then its argument prototype would still apply.  */
9185 char iconv();
9186
9187 int main() {
9188 iconv()
9189 ; return 0; }
9190 EOF
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9192   rm -rf conftest*
9193   eval "ac_cv_lib_$ac_lib_var=yes"
9194 else
9195   echo "configure: failed program was:" >&5
9196   cat conftest.$ac_ext >&5
9197   rm -rf conftest*
9198   eval "ac_cv_lib_$ac_lib_var=no"
9199 fi
9200 rm -f conftest*
9201 LIBS="$ac_save_LIBS"
9202
9203 fi
9204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9205   echo "$ac_t""yes" 1>&6
9206   libiconv="-liconv"
9207 else
9208   echo "$ac_t""no" 1>&6
9209 fi
9210
9211     ac_save_LIBS="$LIBS"
9212     LIBS="$LIBS $libiconv"
9213
9214     for ac_func in iconv_open iconv_close iconv nl_langinfo
9215 do
9216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9217 echo "configure:9218: checking for $ac_func" >&5
9218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9219   echo $ac_n "(cached) $ac_c" 1>&6
9220 else
9221   cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 /* System header to define __stub macros and hopefully few prototypes,
9225     which can conflict with char $ac_func(); below.  */
9226 #include <assert.h>
9227 /* Override any gcc2 internal prototype to avoid an error.  */
9228 /* We use char because int might match the return type of a gcc2
9229     builtin and then its argument prototype would still apply.  */
9230 char $ac_func();
9231
9232 int main() {
9233
9234 /* The GNU C library defines this for functions which it implements
9235     to always fail with ENOSYS.  Some functions are actually named
9236     something starting with __ and the normal name is an alias.  */
9237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9238 choke me
9239 #else
9240 $ac_func();
9241 #endif
9242
9243 ; return 0; }
9244 EOF
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246   rm -rf conftest*
9247   eval "ac_cv_func_$ac_func=yes"
9248 else
9249   echo "configure: failed program was:" >&5
9250   cat conftest.$ac_ext >&5
9251   rm -rf conftest*
9252   eval "ac_cv_func_$ac_func=no"
9253 fi
9254 rm -f conftest*
9255 fi
9256
9257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9258   echo "$ac_t""yes" 1>&6
9259     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9260   cat >> confdefs.h <<EOF
9261 #define $ac_tr_func 1
9262 EOF
9263  \
9264     ac_XPG2funcs=yes
9265 else
9266   echo "$ac_t""no" 1>&6
9267 ac_XPG2funcs=no
9268 fi
9269 done
9270
9271
9272     LIBS="$ac_save_LIBS"
9273
9274     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9275 echo "configure:9276: checking for XPG2 wchar_t support" >&5
9276     if test x"$ac_has_iconv_h" = xyes &&
9277        test x"$ac_has_langinfo_h" = xyes &&
9278        test x"$ac_XPG2funcs" = xyes; then
9279       ac_XPG2_wchar_t=yes
9280     else
9281       ac_XPG2_wchar_t=no
9282     fi
9283     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9284
9285             if test x"$ac_isoC99_wchar_t" = xyes && 
9286         test x"$ac_XPG2_wchar_t" = xyes; then
9287       cat >> confdefs.h <<\EOF
9288 #define _GLIBCPP_USE_WCHAR_T 1
9289 EOF
9290
9291       enable_wchar_t=yes
9292     fi
9293   fi
9294   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9295 echo "configure:9296: checking for enabled wchar_t specializations" >&5
9296   echo "$ac_t""$enable_wchar_t" 1>&6    
9297   
9298
9299 if test "$enable_wchar_t" = yes; then
9300   GLIBCPP_TEST_WCHAR_T_TRUE=
9301   GLIBCPP_TEST_WCHAR_T_FALSE='#'
9302 else
9303   GLIBCPP_TEST_WCHAR_T_TRUE='#'
9304   GLIBCPP_TEST_WCHAR_T_FALSE=
9305 fi      
9306
9307       cat >> confdefs.h <<\EOF
9308 #define HAVE_COPYSIGN 1
9309 EOF
9310
9311       cat >> confdefs.h <<\EOF
9312 #define HAVE_COPYSIGNF 1
9313 EOF
9314
9315       cat >> confdefs.h <<\EOF
9316 #define HAVE_FINITEF 1
9317 EOF
9318
9319       cat >> confdefs.h <<\EOF
9320 #define HAVE_FINITE 1
9321 EOF
9322
9323       cat >> confdefs.h <<\EOF
9324 #define HAVE_FREXPF 1
9325 EOF
9326
9327       cat >> confdefs.h <<\EOF
9328 #define HAVE_HYPOTF 1
9329 EOF
9330
9331       cat >> confdefs.h <<\EOF
9332 #define HAVE_ISINF 1
9333 EOF
9334
9335       cat >> confdefs.h <<\EOF
9336 #define HAVE_ISINFF 1
9337 EOF
9338
9339       cat >> confdefs.h <<\EOF
9340 #define HAVE_ISNAN 1
9341 EOF
9342
9343       cat >> confdefs.h <<\EOF
9344 #define HAVE_ISNANF 1
9345 EOF
9346
9347       if test x"long_double_math_on_this_cpu" = x"yes"; then
9348         cat >> confdefs.h <<\EOF
9349 #define HAVE_FINITEL 1
9350 EOF
9351
9352         cat >> confdefs.h <<\EOF
9353 #define HAVE_ISINFL 1
9354 EOF
9355
9356         cat >> confdefs.h <<\EOF
9357 #define HAVE_ISNANL 1
9358 EOF
9359
9360       fi
9361       ;;
9362     *-qnx6.1* | *-qnx6.2*)
9363       os_include_dir="os/qnx/qnx6.1"
9364       SECTION_FLAGS='-ffunction-sections -fdata-sections'
9365        
9366       
9367   # If we're not using GNU ld, then there's no point in even trying these
9368   # tests.  Check for that first.  We should have already tested for gld
9369   # by now (in libtool), but require it now just to be safe...
9370   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9371   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9372   
9373
9374   # The name set by libtool depends on the version of libtool.  Shame on us
9375   # for depending on an impl detail, but c'est la vie.  Older versions used
9376   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9377   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9378   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9379   # set (hence we're using an older libtool), then set it.
9380   if test x${with_gnu_ld+set} != xset; then
9381     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9382       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9383       with_gnu_ld=no
9384     else
9385       with_gnu_ld=$ac_cv_prog_gnu_ld
9386     fi
9387   fi
9388
9389   # Start by getting the version number.  I think the libtool test already
9390   # does some of this, but throws away the result.
9391   
9392   ldver=`$LD --version 2>/dev/null | head -1 | \
9393          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9394   
9395   glibcpp_gnu_ld_version=`echo $ldver | \
9396          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9397
9398   # Set --gc-sections.
9399   if test "$with_gnu_ld" = "notbroken"; then
9400     # GNU ld it is!  Joy and bunny rabbits!
9401
9402     # All these tests are for C++; save the language and the compiler flags.
9403     # Need to do this so that g++ won't try to link in libstdc++
9404     ac_test_CFLAGS="${CFLAGS+set}"
9405     ac_save_CFLAGS="$CFLAGS"
9406     CFLAGS='-x c++  -Wl,--gc-sections'
9407
9408     # Check for -Wl,--gc-sections
9409     # XXX This test is broken at the moment, as symbols required for
9410     # linking are now in libsupc++ (not built yet.....). In addition,
9411     # this test has cored on solaris in the past. In addition,
9412     # --gc-sections doesn't really work at the moment (keeps on discarding
9413     # used sections, first .eh_frame and now some of the glibc sections for
9414     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9415     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9416 echo "configure:9417: checking for ld that supports -Wl,--gc-sections" >&5
9417     if test "$cross_compiling" = yes; then
9418   ac_sectionLDflags=yes
9419 else
9420   cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423
9424      int main(void)
9425      {
9426        try { throw 1; }
9427        catch (...) { };
9428        return 0;
9429      }
9430     
9431 EOF
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9433 then
9434   ac_sectionLDflags=yes
9435 else
9436   echo "configure: failed program was:" >&5
9437   cat conftest.$ac_ext >&5
9438   rm -fr conftest*
9439   ac_sectionLDflags=no
9440 fi
9441 rm -fr conftest*
9442 fi
9443
9444     if test "$ac_test_CFLAGS" = set; then
9445       CFLAGS="$ac_save_CFLAGS"
9446     else
9447       # this is the suspicious part
9448       CFLAGS=''
9449     fi
9450     if test "$ac_sectionLDflags" = "yes"; then
9451       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9452     fi
9453     echo "$ac_t""$ac_sectionLDflags" 1>&6
9454   fi
9455
9456   # Set linker optimization flags.
9457   if test x"$with_gnu_ld" = x"yes"; then
9458     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9459   fi
9460
9461   
9462   
9463
9464       
9465     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9466 echo "configure:9467: checking for main in -lm" >&5
9467 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9469   echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9471   ac_save_LIBS="$LIBS"
9472 LIBS="-lm  $LIBS"
9473 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9476
9477 int main() {
9478 main()
9479 ; return 0; }
9480 EOF
9481 if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9482   rm -rf conftest*
9483   eval "ac_cv_lib_$ac_lib_var=yes"
9484 else
9485   echo "configure: failed program was:" >&5
9486   cat conftest.$ac_ext >&5
9487   rm -rf conftest*
9488   eval "ac_cv_lib_$ac_lib_var=no"
9489 fi
9490 rm -f conftest*
9491 LIBS="$ac_save_LIBS"
9492
9493 fi
9494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9495   echo "$ac_t""yes" 1>&6
9496     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9497     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9498   cat >> confdefs.h <<EOF
9499 #define $ac_tr_lib 1
9500 EOF
9501
9502   LIBS="-lm $LIBS"
9503
9504 else
9505   echo "$ac_t""no" 1>&6
9506 fi
9507
9508   for ac_func in nan copysignf
9509 do
9510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9511 echo "configure:9512: checking for $ac_func" >&5
9512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9513   echo $ac_n "(cached) $ac_c" 1>&6
9514 else
9515   cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 /* System header to define __stub macros and hopefully few prototypes,
9519     which can conflict with char $ac_func(); below.  */
9520 #include <assert.h>
9521 /* Override any gcc2 internal prototype to avoid an error.  */
9522 /* We use char because int might match the return type of a gcc2
9523     builtin and then its argument prototype would still apply.  */
9524 char $ac_func();
9525
9526 int main() {
9527
9528 /* The GNU C library defines this for functions which it implements
9529     to always fail with ENOSYS.  Some functions are actually named
9530     something starting with __ and the normal name is an alias.  */
9531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9532 choke me
9533 #else
9534 $ac_func();
9535 #endif
9536
9537 ; return 0; }
9538 EOF
9539 if { (eval echo configure:9540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9540   rm -rf conftest*
9541   eval "ac_cv_func_$ac_func=yes"
9542 else
9543   echo "configure: failed program was:" >&5
9544   cat conftest.$ac_ext >&5
9545   rm -rf conftest*
9546   eval "ac_cv_func_$ac_func=no"
9547 fi
9548 rm -f conftest*
9549 fi
9550
9551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9552   echo "$ac_t""yes" 1>&6
9553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9554   cat >> confdefs.h <<EOF
9555 #define $ac_tr_func 1
9556 EOF
9557  
9558 else
9559   echo "$ac_t""no" 1>&6
9560 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9561 fi
9562 done
9563
9564
9565     for ac_func in __signbit
9566 do
9567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9568 echo "configure:9569: checking for $ac_func" >&5
9569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9570   echo $ac_n "(cached) $ac_c" 1>&6
9571 else
9572   cat > conftest.$ac_ext <<EOF
9573 #line 9574 "configure"
9574 #include "confdefs.h"
9575 /* System header to define __stub macros and hopefully few prototypes,
9576     which can conflict with char $ac_func(); below.  */
9577 #include <assert.h>
9578 /* Override any gcc2 internal prototype to avoid an error.  */
9579 /* We use char because int might match the return type of a gcc2
9580     builtin and then its argument prototype would still apply.  */
9581 char $ac_func();
9582
9583 int main() {
9584
9585 /* The GNU C library defines this for functions which it implements
9586     to always fail with ENOSYS.  Some functions are actually named
9587     something starting with __ and the normal name is an alias.  */
9588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9589 choke me
9590 #else
9591 $ac_func();
9592 #endif
9593
9594 ; return 0; }
9595 EOF
9596 if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9597   rm -rf conftest*
9598   eval "ac_cv_func_$ac_func=yes"
9599 else
9600   echo "configure: failed program was:" >&5
9601   cat conftest.$ac_ext >&5
9602   rm -rf conftest*
9603   eval "ac_cv_func_$ac_func=no"
9604 fi
9605 rm -f conftest*
9606 fi
9607
9608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9609   echo "$ac_t""yes" 1>&6
9610     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9611   cat >> confdefs.h <<EOF
9612 #define $ac_tr_func 1
9613 EOF
9614  
9615 else
9616   echo "$ac_t""no" 1>&6
9617 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9618 fi
9619 done
9620
9621   for ac_func in __signbitf
9622 do
9623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9624 echo "configure:9625: checking for $ac_func" >&5
9625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9626   echo $ac_n "(cached) $ac_c" 1>&6
9627 else
9628   cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 /* System header to define __stub macros and hopefully few prototypes,
9632     which can conflict with char $ac_func(); below.  */
9633 #include <assert.h>
9634 /* Override any gcc2 internal prototype to avoid an error.  */
9635 /* We use char because int might match the return type of a gcc2
9636     builtin and then its argument prototype would still apply.  */
9637 char $ac_func();
9638
9639 int main() {
9640
9641 /* The GNU C library defines this for functions which it implements
9642     to always fail with ENOSYS.  Some functions are actually named
9643     something starting with __ and the normal name is an alias.  */
9644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9645 choke me
9646 #else
9647 $ac_func();
9648 #endif
9649
9650 ; return 0; }
9651 EOF
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9653   rm -rf conftest*
9654   eval "ac_cv_func_$ac_func=yes"
9655 else
9656   echo "configure: failed program was:" >&5
9657   cat conftest.$ac_ext >&5
9658   rm -rf conftest*
9659   eval "ac_cv_func_$ac_func=no"
9660 fi
9661 rm -f conftest*
9662 fi
9663
9664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9665   echo "$ac_t""yes" 1>&6
9666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9667   cat >> confdefs.h <<EOF
9668 #define $ac_tr_func 1
9669 EOF
9670  
9671 else
9672   echo "$ac_t""no" 1>&6
9673 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9674 fi
9675 done
9676
9677
9678           if test x$ac_cv_func_copysignl = x"yes"; then
9679     for ac_func in __signbitl
9680 do
9681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9682 echo "configure:9683: checking for $ac_func" >&5
9683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9684   echo $ac_n "(cached) $ac_c" 1>&6
9685 else
9686   cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9689 /* System header to define __stub macros and hopefully few prototypes,
9690     which can conflict with char $ac_func(); below.  */
9691 #include <assert.h>
9692 /* Override any gcc2 internal prototype to avoid an error.  */
9693 /* We use char because int might match the return type of a gcc2
9694     builtin and then its argument prototype would still apply.  */
9695 char $ac_func();
9696
9697 int main() {
9698
9699 /* The GNU C library defines this for functions which it implements
9700     to always fail with ENOSYS.  Some functions are actually named
9701     something starting with __ and the normal name is an alias.  */
9702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9703 choke me
9704 #else
9705 $ac_func();
9706 #endif
9707
9708 ; return 0; }
9709 EOF
9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9711   rm -rf conftest*
9712   eval "ac_cv_func_$ac_func=yes"
9713 else
9714   echo "configure: failed program was:" >&5
9715   cat conftest.$ac_ext >&5
9716   rm -rf conftest*
9717   eval "ac_cv_func_$ac_func=no"
9718 fi
9719 rm -f conftest*
9720 fi
9721
9722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9723   echo "$ac_t""yes" 1>&6
9724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9725   cat >> confdefs.h <<EOF
9726 #define $ac_tr_func 1
9727 EOF
9728  
9729 else
9730   echo "$ac_t""no" 1>&6
9731 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9732 fi
9733 done
9734
9735   fi
9736
9737   if test -n "$LIBMATHOBJS"; then
9738     need_libmath=yes
9739   fi
9740   
9741   
9742
9743 if test "$need_libmath" = yes; then
9744   GLIBCPP_BUILD_LIBMATH_TRUE=
9745   GLIBCPP_BUILD_LIBMATH_FALSE='#'
9746 else
9747   GLIBCPP_BUILD_LIBMATH_TRUE='#'
9748   GLIBCPP_BUILD_LIBMATH_FALSE=
9749 fi
9750
9751       
9752     enable_wchar_t=no
9753
9754       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9755 echo "configure:9756: checking for mbstate_t" >&5
9756   cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9759 #include <wchar.h>
9760 int main() {
9761 mbstate_t teststate;
9762 ; return 0; }
9763 EOF
9764 if { (eval echo configure:9765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9765   rm -rf conftest*
9766   have_mbstate_t=yes
9767 else
9768   echo "configure: failed program was:" >&5
9769   cat conftest.$ac_ext >&5
9770   rm -rf conftest*
9771   have_mbstate_t=no
9772 fi
9773 rm -f conftest*
9774   echo "$ac_t""$have_mbstate_t" 1>&6
9775   if test x"$have_mbstate_t" = xyes; then
9776     cat >> confdefs.h <<\EOF
9777 #define HAVE_MBSTATE_T 1
9778 EOF
9779
9780   fi
9781
9782     for ac_hdr in wchar.h
9783 do
9784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9786 echo "configure:9787: checking for $ac_hdr" >&5
9787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9788   echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9790   cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 #include <$ac_hdr>
9794 EOF
9795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9796 { (eval echo configure:9797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9798 if test -z "$ac_err"; then
9799   rm -rf conftest*
9800   eval "ac_cv_header_$ac_safe=yes"
9801 else
9802   echo "$ac_err" >&5
9803   echo "configure: failed program was:" >&5
9804   cat conftest.$ac_ext >&5
9805   rm -rf conftest*
9806   eval "ac_cv_header_$ac_safe=no"
9807 fi
9808 rm -f conftest*
9809 fi
9810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9811   echo "$ac_t""yes" 1>&6
9812     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9813   cat >> confdefs.h <<EOF
9814 #define $ac_tr_hdr 1
9815 EOF
9816  ac_has_wchar_h=yes
9817 else
9818   echo "$ac_t""no" 1>&6
9819 ac_has_wchar_h=no
9820 fi
9821 done
9822
9823   for ac_hdr in wctype.h
9824 do
9825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9827 echo "configure:9828: checking for $ac_hdr" >&5
9828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9829   echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9831   cat > conftest.$ac_ext <<EOF
9832 #line 9833 "configure"
9833 #include "confdefs.h"
9834 #include <$ac_hdr>
9835 EOF
9836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9837 { (eval echo configure:9838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9839 if test -z "$ac_err"; then
9840   rm -rf conftest*
9841   eval "ac_cv_header_$ac_safe=yes"
9842 else
9843   echo "$ac_err" >&5
9844   echo "configure: failed program was:" >&5
9845   cat conftest.$ac_ext >&5
9846   rm -rf conftest*
9847   eval "ac_cv_header_$ac_safe=no"
9848 fi
9849 rm -f conftest*
9850 fi
9851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9852   echo "$ac_t""yes" 1>&6
9853     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9854   cat >> confdefs.h <<EOF
9855 #define $ac_tr_hdr 1
9856 EOF
9857  ac_has_wctype_h=yes
9858 else
9859   echo "$ac_t""no" 1>&6
9860 ac_has_wctype_h=no
9861 fi
9862 done
9863
9864
9865     if test x"$ac_has_wchar_h" = xyes &&
9866      test x"$ac_has_wctype_h" = xyes &&
9867      test x"$enable_c_mbchar" != xno; then
9868
9869             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9870 echo "configure:9871: checking for WCHAR_MIN and WCHAR_MAX" >&5
9871     cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 #include <wchar.h>
9875 int main() {
9876 int i = WCHAR_MIN; int j = WCHAR_MAX;
9877 ; return 0; }
9878 EOF
9879 if { (eval echo configure:9880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9880   rm -rf conftest*
9881   has_wchar_minmax=yes
9882 else
9883   echo "configure: failed program was:" >&5
9884   cat conftest.$ac_ext >&5
9885   rm -rf conftest*
9886   has_wchar_minmax=no
9887 fi
9888 rm -f conftest*
9889     echo "$ac_t""$has_wchar_minmax" 1>&6
9890
9891             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9892 echo "configure:9893: checking for WEOF" >&5
9893     cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896
9897       #include <wchar.h>
9898       #include <stddef.h>
9899 int main() {
9900 wint_t i = WEOF;
9901 ; return 0; }
9902 EOF
9903 if { (eval echo configure:9904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9904   rm -rf conftest*
9905   has_weof=yes
9906 else
9907   echo "configure: failed program was:" >&5
9908   cat conftest.$ac_ext >&5
9909   rm -rf conftest*
9910   has_weof=no
9911 fi
9912 rm -f conftest*
9913     echo "$ac_t""$has_weof" 1>&6
9914
9915         ac_wfuncs=yes
9916     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9917 do
9918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9919 echo "configure:9920: checking for $ac_func" >&5
9920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9921   echo $ac_n "(cached) $ac_c" 1>&6
9922 else
9923   cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 /* System header to define __stub macros and hopefully few prototypes,
9927     which can conflict with char $ac_func(); below.  */
9928 #include <assert.h>
9929 /* Override any gcc2 internal prototype to avoid an error.  */
9930 /* We use char because int might match the return type of a gcc2
9931     builtin and then its argument prototype would still apply.  */
9932 char $ac_func();
9933
9934 int main() {
9935
9936 /* The GNU C library defines this for functions which it implements
9937     to always fail with ENOSYS.  Some functions are actually named
9938     something starting with __ and the normal name is an alias.  */
9939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9940 choke me
9941 #else
9942 $ac_func();
9943 #endif
9944
9945 ; return 0; }
9946 EOF
9947 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9948   rm -rf conftest*
9949   eval "ac_cv_func_$ac_func=yes"
9950 else
9951   echo "configure: failed program was:" >&5
9952   cat conftest.$ac_ext >&5
9953   rm -rf conftest*
9954   eval "ac_cv_func_$ac_func=no"
9955 fi
9956 rm -f conftest*
9957 fi
9958
9959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9960   echo "$ac_t""yes" 1>&6
9961     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9962   cat >> confdefs.h <<EOF
9963 #define $ac_tr_func 1
9964 EOF
9965  
9966 else
9967   echo "$ac_t""no" 1>&6
9968 \
9969     ac_wfuncs=no
9970 fi
9971 done
9972
9973
9974         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9975     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9976     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9977     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9978     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9979     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9980 do
9981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9982 echo "configure:9983: checking for $ac_func" >&5
9983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9984   echo $ac_n "(cached) $ac_c" 1>&6
9985 else
9986   cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989 /* System header to define __stub macros and hopefully few prototypes,
9990     which can conflict with char $ac_func(); below.  */
9991 #include <assert.h>
9992 /* Override any gcc2 internal prototype to avoid an error.  */
9993 /* We use char because int might match the return type of a gcc2
9994     builtin and then its argument prototype would still apply.  */
9995 char $ac_func();
9996
9997 int main() {
9998
9999 /* The GNU C library defines this for functions which it implements
10000     to always fail with ENOSYS.  Some functions are actually named
10001     something starting with __ and the normal name is an alias.  */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003 choke me
10004 #else
10005 $ac_func();
10006 #endif
10007
10008 ; return 0; }
10009 EOF
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10011   rm -rf conftest*
10012   eval "ac_cv_func_$ac_func=yes"
10013 else
10014   echo "configure: failed program was:" >&5
10015   cat conftest.$ac_ext >&5
10016   rm -rf conftest*
10017   eval "ac_cv_func_$ac_func=no"
10018 fi
10019 rm -f conftest*
10020 fi
10021
10022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10023   echo "$ac_t""yes" 1>&6
10024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10025   cat >> confdefs.h <<EOF
10026 #define $ac_tr_func 1
10027 EOF
10028  
10029 else
10030   echo "$ac_t""no" 1>&6
10031 \
10032     ac_wfuncs=no
10033 fi
10034 done
10035
10036
10037     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
10038 echo "configure:10039: checking for ISO C99 wchar_t support" >&5
10039     if test x"$has_weof" = xyes &&
10040        test x"$has_wchar_minmax" = xyes &&
10041        test x"$ac_wfuncs" = xyes; then
10042       ac_isoC99_wchar_t=yes
10043     else
10044       ac_isoC99_wchar_t=no
10045     fi
10046     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
10047
10048             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
10049 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
10050 echo "configure:10051: checking for iconv.h" >&5
10051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10052   echo $ac_n "(cached) $ac_c" 1>&6
10053 else
10054   cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 #include <iconv.h>
10058 EOF
10059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10060 { (eval echo configure:10061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10062 if test -z "$ac_err"; then
10063   rm -rf conftest*
10064   eval "ac_cv_header_$ac_safe=yes"
10065 else
10066   echo "$ac_err" >&5
10067   echo "configure: failed program was:" >&5
10068   cat conftest.$ac_ext >&5
10069   rm -rf conftest*
10070   eval "ac_cv_header_$ac_safe=no"
10071 fi
10072 rm -f conftest*
10073 fi
10074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10075   echo "$ac_t""yes" 1>&6
10076   ac_has_iconv_h=yes
10077 else
10078   echo "$ac_t""no" 1>&6
10079 ac_has_iconv_h=no
10080 fi
10081
10082     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
10083 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
10084 echo "configure:10085: checking for langinfo.h" >&5
10085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10086   echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10088   cat > conftest.$ac_ext <<EOF
10089 #line 10090 "configure"
10090 #include "confdefs.h"
10091 #include <langinfo.h>
10092 EOF
10093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10094 { (eval echo configure:10095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10096 if test -z "$ac_err"; then
10097   rm -rf conftest*
10098   eval "ac_cv_header_$ac_safe=yes"
10099 else
10100   echo "$ac_err" >&5
10101   echo "configure: failed program was:" >&5
10102   cat conftest.$ac_ext >&5
10103   rm -rf conftest*
10104   eval "ac_cv_header_$ac_safe=no"
10105 fi
10106 rm -f conftest*
10107 fi
10108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10109   echo "$ac_t""yes" 1>&6
10110   ac_has_langinfo_h=yes
10111 else
10112   echo "$ac_t""no" 1>&6
10113 ac_has_langinfo_h=no
10114 fi
10115
10116
10117         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10118 echo "configure:10119: checking for iconv in -liconv" >&5
10119 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10121   echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10123   ac_save_LIBS="$LIBS"
10124 LIBS="-liconv  $LIBS"
10125 cat > conftest.$ac_ext <<EOF
10126 #line 10127 "configure"
10127 #include "confdefs.h"
10128 /* Override any gcc2 internal prototype to avoid an error.  */
10129 /* We use char because int might match the return type of a gcc2
10130     builtin and then its argument prototype would still apply.  */
10131 char iconv();
10132
10133 int main() {
10134 iconv()
10135 ; return 0; }
10136 EOF
10137 if { (eval echo configure:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138   rm -rf conftest*
10139   eval "ac_cv_lib_$ac_lib_var=yes"
10140 else
10141   echo "configure: failed program was:" >&5
10142   cat conftest.$ac_ext >&5
10143   rm -rf conftest*
10144   eval "ac_cv_lib_$ac_lib_var=no"
10145 fi
10146 rm -f conftest*
10147 LIBS="$ac_save_LIBS"
10148
10149 fi
10150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10151   echo "$ac_t""yes" 1>&6
10152   libiconv="-liconv"
10153 else
10154   echo "$ac_t""no" 1>&6
10155 fi
10156
10157     ac_save_LIBS="$LIBS"
10158     LIBS="$LIBS $libiconv"
10159
10160     for ac_func in iconv_open iconv_close iconv nl_langinfo
10161 do
10162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10163 echo "configure:10164: checking for $ac_func" >&5
10164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10165   echo $ac_n "(cached) $ac_c" 1>&6
10166 else
10167   cat > conftest.$ac_ext <<EOF
10168 #line 10169 "configure"
10169 #include "confdefs.h"
10170 /* System header to define __stub macros and hopefully few prototypes,
10171     which can conflict with char $ac_func(); below.  */
10172 #include <assert.h>
10173 /* Override any gcc2 internal prototype to avoid an error.  */
10174 /* We use char because int might match the return type of a gcc2
10175     builtin and then its argument prototype would still apply.  */
10176 char $ac_func();
10177
10178 int main() {
10179
10180 /* The GNU C library defines this for functions which it implements
10181     to always fail with ENOSYS.  Some functions are actually named
10182     something starting with __ and the normal name is an alias.  */
10183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10184 choke me
10185 #else
10186 $ac_func();
10187 #endif
10188
10189 ; return 0; }
10190 EOF
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10192   rm -rf conftest*
10193   eval "ac_cv_func_$ac_func=yes"
10194 else
10195   echo "configure: failed program was:" >&5
10196   cat conftest.$ac_ext >&5
10197   rm -rf conftest*
10198   eval "ac_cv_func_$ac_func=no"
10199 fi
10200 rm -f conftest*
10201 fi
10202
10203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10204   echo "$ac_t""yes" 1>&6
10205     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10206   cat >> confdefs.h <<EOF
10207 #define $ac_tr_func 1
10208 EOF
10209  \
10210     ac_XPG2funcs=yes
10211 else
10212   echo "$ac_t""no" 1>&6
10213 ac_XPG2funcs=no
10214 fi
10215 done
10216
10217
10218     LIBS="$ac_save_LIBS"
10219
10220     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10221 echo "configure:10222: checking for XPG2 wchar_t support" >&5
10222     if test x"$ac_has_iconv_h" = xyes &&
10223        test x"$ac_has_langinfo_h" = xyes &&
10224        test x"$ac_XPG2funcs" = xyes; then
10225       ac_XPG2_wchar_t=yes
10226     else
10227       ac_XPG2_wchar_t=no
10228     fi
10229     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10230
10231             if test x"$ac_isoC99_wchar_t" = xyes && 
10232         test x"$ac_XPG2_wchar_t" = xyes; then
10233       cat >> confdefs.h <<\EOF
10234 #define _GLIBCPP_USE_WCHAR_T 1
10235 EOF
10236
10237       enable_wchar_t=yes
10238     fi
10239   fi
10240   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10241 echo "configure:10242: checking for enabled wchar_t specializations" >&5
10242   echo "$ac_t""$enable_wchar_t" 1>&6    
10243   
10244
10245 if test "$enable_wchar_t" = yes; then
10246   GLIBCPP_TEST_WCHAR_T_TRUE=
10247   GLIBCPP_TEST_WCHAR_T_FALSE='#'
10248 else
10249   GLIBCPP_TEST_WCHAR_T_TRUE='#'
10250   GLIBCPP_TEST_WCHAR_T_FALSE=
10251 fi      
10252
10253       cat >> confdefs.h <<\EOF
10254 #define HAVE_COSF 1
10255 EOF
10256
10257       cat >> confdefs.h <<\EOF
10258 #define HAVE_COSL 1
10259 EOF
10260
10261       cat >> confdefs.h <<\EOF
10262 #define HAVE_COSHF 1
10263 EOF
10264
10265       cat >> confdefs.h <<\EOF
10266 #define HAVE_COSHL 1
10267 EOF
10268
10269       cat >> confdefs.h <<\EOF
10270 #define HAVE_LOGF 1
10271 EOF
10272
10273       cat >> confdefs.h <<\EOF
10274 #define HAVE_LOGL 1
10275 EOF
10276
10277       cat >> confdefs.h <<\EOF
10278 #define HAVE_LOG10F 1
10279 EOF
10280
10281       cat >> confdefs.h <<\EOF
10282 #define HAVE_LOG10L 1
10283 EOF
10284
10285       cat >> confdefs.h <<\EOF
10286 #define HAVE_SINF 1
10287 EOF
10288
10289       cat >> confdefs.h <<\EOF
10290 #define HAVE_SINL 1
10291 EOF
10292
10293       cat >> confdefs.h <<\EOF
10294 #define HAVE_SINHF 1
10295 EOF
10296
10297       cat >> confdefs.h <<\EOF
10298 #define HAVE_SINHL 1
10299 EOF
10300
10301       ;;
10302     *-solaris*)
10303       case "$target" in
10304         *-solaris2.5)
10305           os_include_dir="os/solaris/solaris2.5"
10306           ;;
10307         *-solaris2.6)
10308           os_include_dir="os/solaris/solaris2.6"
10309           ;;
10310         *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10311           os_include_dir="os/solaris/solaris2.7"
10312           ;;
10313       esac
10314       cat >> confdefs.h <<\EOF
10315 #define HAVE_STRTOF 1
10316 EOF
10317
10318       cat >> confdefs.h <<\EOF
10319 #define HAVE_STRTOLD 1
10320 EOF
10321
10322       cat >> confdefs.h <<\EOF
10323 #define HAVE_MMAP 1
10324 EOF
10325  
10326       cat >> confdefs.h <<\EOF
10327 #define HAVE_COPYSIGN 1
10328 EOF
10329
10330       cat >> confdefs.h <<\EOF
10331 #define HAVE_ISNAN 1
10332 EOF
10333
10334       cat >> confdefs.h <<\EOF
10335 #define HAVE_ISNANF 1
10336 EOF
10337
10338       cat >> confdefs.h <<\EOF
10339 #define HAVE_MODFF 1
10340 EOF
10341
10342       cat >> confdefs.h <<\EOF
10343 #define HAVE_HYPOT 1
10344 EOF
10345
10346       ;;
10347     *-windiss*)
10348       os_include_dir="os/windiss"
10349       cat >> confdefs.h <<\EOF
10350 #define HAVE_ACOSF 1
10351 EOF
10352
10353       cat >> confdefs.h <<\EOF
10354 #define HAVE_ASINF 1
10355 EOF
10356
10357       cat >> confdefs.h <<\EOF
10358 #define HAVE_ATAN2F 1
10359 EOF
10360
10361       cat >> confdefs.h <<\EOF
10362 #define HAVE_ATANF 1
10363 EOF
10364
10365       cat >> confdefs.h <<\EOF
10366 #define HAVE_CEILF 1
10367 EOF
10368
10369       cat >> confdefs.h <<\EOF
10370 #define HAVE_COPYSIGN 1
10371 EOF
10372
10373       cat >> confdefs.h <<\EOF
10374 #define HAVE_COPYSIGNF 1
10375 EOF
10376
10377       cat >> confdefs.h <<\EOF
10378 #define HAVE_COSF 1
10379 EOF
10380
10381       cat >> confdefs.h <<\EOF
10382 #define HAVE_COSHF 1
10383 EOF
10384
10385       cat >> confdefs.h <<\EOF
10386 #define HAVE_EXPF 1
10387 EOF
10388
10389       cat >> confdefs.h <<\EOF
10390 #define HAVE_FABSF 1
10391 EOF
10392
10393       cat >> confdefs.h <<\EOF
10394 #define HAVE_FLOORF 1
10395 EOF
10396
10397       cat >> confdefs.h <<\EOF
10398 #define HAVE_FMODF 1
10399 EOF
10400
10401       cat >> confdefs.h <<\EOF
10402 #define HAVE_FREXPF 1
10403 EOF
10404
10405       cat >> confdefs.h <<\EOF
10406 #define HAVE_LDEXPF 1
10407 EOF
10408
10409       cat >> confdefs.h <<\EOF
10410 #define HAVE_LOG10F 1
10411 EOF
10412
10413       cat >> confdefs.h <<\EOF
10414 #define HAVE_LOGF 1
10415 EOF
10416
10417       cat >> confdefs.h <<\EOF
10418 #define HAVE_MODFF 1
10419 EOF
10420
10421       cat >> confdefs.h <<\EOF
10422 #define HAVE_POWF 1
10423 EOF
10424
10425       cat >> confdefs.h <<\EOF
10426 #define HAVE_SINF 1
10427 EOF
10428
10429       cat >> confdefs.h <<\EOF
10430 #define HAVE_SINHF 1
10431 EOF
10432
10433       cat >> confdefs.h <<\EOF
10434 #define HAVE_SQRTF 1
10435 EOF
10436
10437       cat >> confdefs.h <<\EOF
10438 #define HAVE_TANF 1
10439 EOF
10440
10441       cat >> confdefs.h <<\EOF
10442 #define HAVE_TANHF 1
10443 EOF
10444
10445       ;;
10446     *)
10447       if test "x${with_newlib}" = "xyes"; then
10448         os_include_dir="os/newlib"
10449         cat >> confdefs.h <<\EOF
10450 #define HAVE_HYPOT 1
10451 EOF
10452
10453
10454         # GLIBCPP_CHECK_STDLIB_SUPPORT
10455         cat >> confdefs.h <<\EOF
10456 #define HAVE_STRTOF 1
10457 EOF
10458         
10459         cat >> confdefs.h <<\EOF
10460 #define HAVE_STRTOLD 1
10461 EOF
10462         
10463         # AC_FUNC_MMAP
10464         cat >> confdefs.h <<\EOF
10465 #define HAVE_MMAP 1
10466 EOF
10467
10468
10469         cat >> confdefs.h <<\EOF
10470 #define HAVE_ACOSF 1
10471 EOF
10472
10473         cat >> confdefs.h <<\EOF
10474 #define HAVE_ASINF 1
10475 EOF
10476
10477         cat >> confdefs.h <<\EOF
10478 #define HAVE_ATAN2F 1
10479 EOF
10480
10481         cat >> confdefs.h <<\EOF
10482 #define HAVE_ATANF 1
10483 EOF
10484
10485         cat >> confdefs.h <<\EOF
10486 #define HAVE_CEILF 1
10487 EOF
10488
10489         cat >> confdefs.h <<\EOF
10490 #define HAVE_COPYSIGN 1
10491 EOF
10492
10493         cat >> confdefs.h <<\EOF
10494 #define HAVE_COPYSIGNF 1
10495 EOF
10496
10497         cat >> confdefs.h <<\EOF
10498 #define HAVE_COSF 1
10499 EOF
10500
10501         cat >> confdefs.h <<\EOF
10502 #define HAVE_COSHF 1
10503 EOF
10504
10505         cat >> confdefs.h <<\EOF
10506 #define HAVE_EXPF 1
10507 EOF
10508
10509         cat >> confdefs.h <<\EOF
10510 #define HAVE_FABSF 1
10511 EOF
10512
10513         cat >> confdefs.h <<\EOF
10514 #define HAVE_FLOORF 1
10515 EOF
10516
10517         cat >> confdefs.h <<\EOF
10518 #define HAVE_FMODF 1
10519 EOF
10520
10521         cat >> confdefs.h <<\EOF
10522 #define HAVE_FREXPF 1
10523 EOF
10524
10525         cat >> confdefs.h <<\EOF
10526 #define HAVE_LDEXPF 1
10527 EOF
10528
10529         cat >> confdefs.h <<\EOF
10530 #define HAVE_LOG10F 1
10531 EOF
10532
10533         cat >> confdefs.h <<\EOF
10534 #define HAVE_LOGF 1
10535 EOF
10536
10537         cat >> confdefs.h <<\EOF
10538 #define HAVE_MODFF 1
10539 EOF
10540
10541         cat >> confdefs.h <<\EOF
10542 #define HAVE_POWF 1
10543 EOF
10544
10545         cat >> confdefs.h <<\EOF
10546 #define HAVE_SINF 1
10547 EOF
10548
10549         cat >> confdefs.h <<\EOF
10550 #define HAVE_SINHF 1
10551 EOF
10552
10553         cat >> confdefs.h <<\EOF
10554 #define HAVE_SQRTF 1
10555 EOF
10556
10557         cat >> confdefs.h <<\EOF
10558 #define HAVE_TANF 1
10559 EOF
10560
10561         cat >> confdefs.h <<\EOF
10562 #define HAVE_TANHF 1
10563 EOF
10564
10565       else
10566         { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10567       fi 
10568      ;;
10569   esac
10570
10571   # At some point, we should differentiate between architectures
10572   # like x86, which have long double versions, and alpha/powerpc/etc.,
10573   # which don't. For the time being, punt.
10574   if test x"long_double_math_on_this_cpu" = x"yes"; then
10575     cat >> confdefs.h <<\EOF
10576 #define HAVE_ACOSL 1
10577 EOF
10578
10579     cat >> confdefs.h <<\EOF
10580 #define HAVE_ASINL 1
10581 EOF
10582
10583     cat >> confdefs.h <<\EOF
10584 #define HAVE_ATAN2L 1
10585 EOF
10586
10587     cat >> confdefs.h <<\EOF
10588 #define HAVE_ATANL 1
10589 EOF
10590
10591     cat >> confdefs.h <<\EOF
10592 #define HAVE_CEILL 1
10593 EOF
10594
10595     cat >> confdefs.h <<\EOF
10596 #define HAVE_COPYSIGNL 1
10597 EOF
10598
10599     cat >> confdefs.h <<\EOF
10600 #define HAVE_COSL 1
10601 EOF
10602
10603     cat >> confdefs.h <<\EOF
10604 #define HAVE_COSHL 1
10605 EOF
10606
10607     cat >> confdefs.h <<\EOF
10608 #define HAVE_EXPL 1
10609 EOF
10610
10611     cat >> confdefs.h <<\EOF
10612 #define HAVE_FABSL 1
10613 EOF
10614
10615     cat >> confdefs.h <<\EOF
10616 #define HAVE_FLOORL 1
10617 EOF
10618
10619     cat >> confdefs.h <<\EOF
10620 #define HAVE_FMODL 1
10621 EOF
10622
10623     cat >> confdefs.h <<\EOF
10624 #define HAVE_FREXPL 1
10625 EOF
10626
10627     cat >> confdefs.h <<\EOF
10628 #define HAVE_LDEXPL 1
10629 EOF
10630
10631     cat >> confdefs.h <<\EOF
10632 #define HAVE_LOG10L 1
10633 EOF
10634
10635     cat >> confdefs.h <<\EOF
10636 #define HAVE_LOGL 1
10637 EOF
10638
10639     cat >> confdefs.h <<\EOF
10640 #define HAVE_MODFL 1
10641 EOF
10642
10643     cat >> confdefs.h <<\EOF
10644 #define HAVE_POWL 1
10645 EOF
10646
10647     cat >> confdefs.h <<\EOF
10648 #define HAVE_SINCOSL 1
10649 EOF
10650
10651     cat >> confdefs.h <<\EOF
10652 #define HAVE_SINL 1
10653 EOF
10654
10655     cat >> confdefs.h <<\EOF
10656 #define HAVE_SINHL 1
10657 EOF
10658
10659     cat >> confdefs.h <<\EOF
10660 #define HAVE_SQRTL 1
10661 EOF
10662
10663     cat >> confdefs.h <<\EOF
10664 #define HAVE_TANL 1
10665 EOF
10666
10667     cat >> confdefs.h <<\EOF
10668 #define HAVE_TANHL 1
10669 EOF
10670
10671   fi
10672
10673 else
10674
10675   # We are being configured natively. We can do more elaborate tests
10676   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10677   # working.
10678   GLIBCPP_IS_CROSS_COMPILING=0
10679   CANADIAN=no
10680
10681   # Check for available headers.
10682   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10683   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10684   sys/types.h
10685 do
10686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10688 echo "configure:10689: checking for $ac_hdr" >&5
10689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10690   echo $ac_n "(cached) $ac_c" 1>&6
10691 else
10692   cat > conftest.$ac_ext <<EOF
10693 #line 10694 "configure"
10694 #include "confdefs.h"
10695 #include <$ac_hdr>
10696 EOF
10697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10698 { (eval echo configure:10699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10700 if test -z "$ac_err"; then
10701   rm -rf conftest*
10702   eval "ac_cv_header_$ac_safe=yes"
10703 else
10704   echo "$ac_err" >&5
10705   echo "configure: failed program was:" >&5
10706   cat conftest.$ac_ext >&5
10707   rm -rf conftest*
10708   eval "ac_cv_header_$ac_safe=no"
10709 fi
10710 rm -f conftest*
10711 fi
10712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10713   echo "$ac_t""yes" 1>&6
10714     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10715   cat >> confdefs.h <<EOF
10716 #define $ac_tr_hdr 1
10717 EOF
10718  
10719 else
10720   echo "$ac_t""no" 1>&6
10721 fi
10722 done
10723
10724
10725   
10726   # All these tests are for C++; save the language and the compiler flags.
10727   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10728   # found in GLIBCPP_CONFIGURE.
10729   
10730   ac_ext=C
10731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10732 ac_cpp='$CXXCPP $CPPFLAGS'
10733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10735 cross_compiling=$ac_cv_prog_cxx_cross
10736
10737   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10738   ac_save_CXXFLAGS="$CXXFLAGS"
10739
10740   # Check for maintainer-mode bits.
10741   if test x"$USE_MAINTAINER_MODE" = xno; then
10742     WERROR=''
10743   else
10744     WERROR='-Werror'
10745   fi
10746
10747   # Check for -ffunction-sections -fdata-sections
10748   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10749 echo "configure:10750: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10750   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10751   cat > conftest.$ac_ext <<EOF
10752 #line 10753 "configure"
10753 #include "confdefs.h"
10754
10755 int main() {
10756 int foo;
10757   
10758 ; return 0; }
10759 EOF
10760 if { (eval echo configure:10761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10761   rm -rf conftest*
10762   ac_fdsections=yes
10763 else
10764   echo "configure: failed program was:" >&5
10765   cat conftest.$ac_ext >&5
10766   rm -rf conftest*
10767   ac_fdsections=no
10768 fi
10769 rm -f conftest*
10770   if test "$ac_test_CXXFLAGS" = set; then
10771     CXXFLAGS="$ac_save_CXXFLAGS"
10772   else
10773     # this is the suspicious part
10774     CXXFLAGS=''
10775   fi
10776   if test x"$ac_fdsections" = x"yes"; then
10777     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10778   fi
10779   echo "$ac_t""$ac_fdsections" 1>&6
10780
10781   ac_ext=c
10782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10783 ac_cpp='$CPP $CPPFLAGS'
10784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10786 cross_compiling=$ac_cv_prog_cc_cross
10787
10788   
10789   
10790
10791   
10792   # If we're not using GNU ld, then there's no point in even trying these
10793   # tests.  Check for that first.  We should have already tested for gld
10794   # by now (in libtool), but require it now just to be safe...
10795   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10796   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10797   
10798
10799   # The name set by libtool depends on the version of libtool.  Shame on us
10800   # for depending on an impl detail, but c'est la vie.  Older versions used
10801   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10802   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10803   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10804   # set (hence we're using an older libtool), then set it.
10805   if test x${with_gnu_ld+set} != xset; then
10806     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10807       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10808       with_gnu_ld=no
10809     else
10810       with_gnu_ld=$ac_cv_prog_gnu_ld
10811     fi
10812   fi
10813
10814   # Start by getting the version number.  I think the libtool test already
10815   # does some of this, but throws away the result.
10816   
10817   ldver=`$LD --version 2>/dev/null | head -1 | \
10818          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10819   
10820   glibcpp_gnu_ld_version=`echo $ldver | \
10821          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10822
10823   # Set --gc-sections.
10824   if test "$with_gnu_ld" = "notbroken"; then
10825     # GNU ld it is!  Joy and bunny rabbits!
10826
10827     # All these tests are for C++; save the language and the compiler flags.
10828     # Need to do this so that g++ won't try to link in libstdc++
10829     ac_test_CFLAGS="${CFLAGS+set}"
10830     ac_save_CFLAGS="$CFLAGS"
10831     CFLAGS='-x c++  -Wl,--gc-sections'
10832
10833     # Check for -Wl,--gc-sections
10834     # XXX This test is broken at the moment, as symbols required for
10835     # linking are now in libsupc++ (not built yet.....). In addition,
10836     # this test has cored on solaris in the past. In addition,
10837     # --gc-sections doesn't really work at the moment (keeps on discarding
10838     # used sections, first .eh_frame and now some of the glibc sections for
10839     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10840     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10841 echo "configure:10842: checking for ld that supports -Wl,--gc-sections" >&5
10842     if test "$cross_compiling" = yes; then
10843   ac_sectionLDflags=yes
10844 else
10845   cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure"
10847 #include "confdefs.h"
10848
10849      int main(void)
10850      {
10851        try { throw 1; }
10852        catch (...) { };
10853        return 0;
10854      }
10855     
10856 EOF
10857 if { (eval echo configure:10858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10858 then
10859   ac_sectionLDflags=yes
10860 else
10861   echo "configure: failed program was:" >&5
10862   cat conftest.$ac_ext >&5
10863   rm -fr conftest*
10864   ac_sectionLDflags=no
10865 fi
10866 rm -fr conftest*
10867 fi
10868
10869     if test "$ac_test_CFLAGS" = set; then
10870       CFLAGS="$ac_save_CFLAGS"
10871     else
10872       # this is the suspicious part
10873       CFLAGS=''
10874     fi
10875     if test "$ac_sectionLDflags" = "yes"; then
10876       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10877     fi
10878     echo "$ac_t""$ac_sectionLDflags" 1>&6
10879   fi
10880
10881   # Set linker optimization flags.
10882   if test x"$with_gnu_ld" = x"yes"; then
10883     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10884   fi
10885
10886   
10887   
10888
10889   
10890   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10891   ac_save_CXXFLAGS="$CXXFLAGS"
10892   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10893
10894     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10895 echo "configure:10896: checking for sin in -lm" >&5
10896 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10898   echo $ac_n "(cached) $ac_c" 1>&6
10899 else
10900   ac_save_LIBS="$LIBS"
10901 LIBS="-lm  $LIBS"
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 /* Override any gcc2 internal prototype to avoid an error.  */
10906 /* We use char because int might match the return type of a gcc2
10907     builtin and then its argument prototype would still apply.  */
10908 char sin();
10909
10910 int main() {
10911 sin()
10912 ; return 0; }
10913 EOF
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915   rm -rf conftest*
10916   eval "ac_cv_lib_$ac_lib_var=yes"
10917 else
10918   echo "configure: failed program was:" >&5
10919   cat conftest.$ac_ext >&5
10920   rm -rf conftest*
10921   eval "ac_cv_lib_$ac_lib_var=no"
10922 fi
10923 rm -f conftest*
10924 LIBS="$ac_save_LIBS"
10925
10926 fi
10927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10928   echo "$ac_t""yes" 1>&6
10929   libm="-lm"
10930 else
10931   echo "$ac_t""no" 1>&6
10932 fi
10933
10934   ac_save_LIBS="$LIBS"
10935   LIBS="$LIBS $libm"
10936
10937     
10938   
10939   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10940 echo "configure:10941: checking for isinf declaration" >&5
10941   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10942     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10943   echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10945   
10946       
10947       ac_ext=C
10948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10949 ac_cpp='$CXXCPP $CPPFLAGS'
10950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10952 cross_compiling=$ac_cv_prog_cxx_cross
10953
10954       cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 #include <math.h>
10958                       #ifdef HAVE_IEEEFP_H
10959                       #include <ieeefp.h>
10960                       #endif
10961                      
10962 int main() {
10963  isinf(0);
10964 ; return 0; }
10965 EOF
10966 if { (eval echo configure:10967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10967   rm -rf conftest*
10968   glibcpp_cv_func_isinf_use=yes
10969 else
10970   echo "configure: failed program was:" >&5
10971   cat conftest.$ac_ext >&5
10972   rm -rf conftest*
10973   glibcpp_cv_func_isinf_use=no
10974 fi
10975 rm -f conftest*
10976       ac_ext=c
10977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10978 ac_cpp='$CPP $CPPFLAGS'
10979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10981 cross_compiling=$ac_cv_prog_cc_cross
10982
10983     
10984 fi
10985
10986   fi
10987   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10988
10989   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10990     for ac_func in isinf
10991 do
10992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10993 echo "configure:10994: checking for $ac_func" >&5
10994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10995   echo $ac_n "(cached) $ac_c" 1>&6
10996 else
10997   cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 /* System header to define __stub macros and hopefully few prototypes,
11001     which can conflict with char $ac_func(); below.  */
11002 #include <assert.h>
11003 /* Override any gcc2 internal prototype to avoid an error.  */
11004 /* We use char because int might match the return type of a gcc2
11005     builtin and then its argument prototype would still apply.  */
11006 char $ac_func();
11007
11008 int main() {
11009
11010 /* The GNU C library defines this for functions which it implements
11011     to always fail with ENOSYS.  Some functions are actually named
11012     something starting with __ and the normal name is an alias.  */
11013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014 choke me
11015 #else
11016 $ac_func();
11017 #endif
11018
11019 ; return 0; }
11020 EOF
11021 if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11022   rm -rf conftest*
11023   eval "ac_cv_func_$ac_func=yes"
11024 else
11025   echo "configure: failed program was:" >&5
11026   cat conftest.$ac_ext >&5
11027   rm -rf conftest*
11028   eval "ac_cv_func_$ac_func=no"
11029 fi
11030 rm -f conftest*
11031 fi
11032
11033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11034   echo "$ac_t""yes" 1>&6
11035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11036   cat >> confdefs.h <<EOF
11037 #define $ac_tr_func 1
11038 EOF
11039  
11040 else
11041   echo "$ac_t""no" 1>&6
11042 fi
11043 done
11044
11045   else
11046     
11047   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11048 echo "configure:11049: checking for _isinf declaration" >&5
11049   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11050     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11051   echo $ac_n "(cached) $ac_c" 1>&6
11052 else
11053   
11054       
11055       ac_ext=C
11056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11057 ac_cpp='$CXXCPP $CPPFLAGS'
11058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11060 cross_compiling=$ac_cv_prog_cxx_cross
11061
11062       cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 #include <math.h>
11066                       #ifdef HAVE_IEEEFP_H
11067                       #include <ieeefp.h>
11068                       #endif
11069                      
11070 int main() {
11071  _isinf(0);
11072 ; return 0; }
11073 EOF
11074 if { (eval echo configure:11075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11075   rm -rf conftest*
11076   glibcpp_cv_func__isinf_use=yes
11077 else
11078   echo "configure: failed program was:" >&5
11079   cat conftest.$ac_ext >&5
11080   rm -rf conftest*
11081   glibcpp_cv_func__isinf_use=no
11082 fi
11083 rm -f conftest*
11084       ac_ext=c
11085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11089 cross_compiling=$ac_cv_prog_cc_cross
11090
11091     
11092 fi
11093
11094   fi
11095   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11096
11097     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11098       for ac_func in _isinf
11099 do
11100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11101 echo "configure:11102: checking for $ac_func" >&5
11102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11103   echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105   cat > conftest.$ac_ext <<EOF
11106 #line 11107 "configure"
11107 #include "confdefs.h"
11108 /* System header to define __stub macros and hopefully few prototypes,
11109     which can conflict with char $ac_func(); below.  */
11110 #include <assert.h>
11111 /* Override any gcc2 internal prototype to avoid an error.  */
11112 /* We use char because int might match the return type of a gcc2
11113     builtin and then its argument prototype would still apply.  */
11114 char $ac_func();
11115
11116 int main() {
11117
11118 /* The GNU C library defines this for functions which it implements
11119     to always fail with ENOSYS.  Some functions are actually named
11120     something starting with __ and the normal name is an alias.  */
11121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11122 choke me
11123 #else
11124 $ac_func();
11125 #endif
11126
11127 ; return 0; }
11128 EOF
11129 if { (eval echo configure:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130   rm -rf conftest*
11131   eval "ac_cv_func_$ac_func=yes"
11132 else
11133   echo "configure: failed program was:" >&5
11134   cat conftest.$ac_ext >&5
11135   rm -rf conftest*
11136   eval "ac_cv_func_$ac_func=no"
11137 fi
11138 rm -f conftest*
11139 fi
11140
11141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11142   echo "$ac_t""yes" 1>&6
11143     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11144   cat >> confdefs.h <<EOF
11145 #define $ac_tr_func 1
11146 EOF
11147  
11148 else
11149   echo "$ac_t""no" 1>&6
11150 fi
11151 done
11152
11153     fi
11154   fi
11155
11156   
11157   
11158   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11159 echo "configure:11160: checking for isnan declaration" >&5
11160   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11161     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11162   echo $ac_n "(cached) $ac_c" 1>&6
11163 else
11164   
11165       
11166       ac_ext=C
11167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11168 ac_cpp='$CXXCPP $CPPFLAGS'
11169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11171 cross_compiling=$ac_cv_prog_cxx_cross
11172
11173       cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11176 #include <math.h>
11177                       #ifdef HAVE_IEEEFP_H
11178                       #include <ieeefp.h>
11179                       #endif
11180                      
11181 int main() {
11182  isnan(0);
11183 ; return 0; }
11184 EOF
11185 if { (eval echo configure:11186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11186   rm -rf conftest*
11187   glibcpp_cv_func_isnan_use=yes
11188 else
11189   echo "configure: failed program was:" >&5
11190   cat conftest.$ac_ext >&5
11191   rm -rf conftest*
11192   glibcpp_cv_func_isnan_use=no
11193 fi
11194 rm -f conftest*
11195       ac_ext=c
11196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11200 cross_compiling=$ac_cv_prog_cc_cross
11201
11202     
11203 fi
11204
11205   fi
11206   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11207
11208   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11209     for ac_func in isnan
11210 do
11211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11212 echo "configure:11213: checking for $ac_func" >&5
11213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11214   echo $ac_n "(cached) $ac_c" 1>&6
11215 else
11216   cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219 /* System header to define __stub macros and hopefully few prototypes,
11220     which can conflict with char $ac_func(); below.  */
11221 #include <assert.h>
11222 /* Override any gcc2 internal prototype to avoid an error.  */
11223 /* We use char because int might match the return type of a gcc2
11224     builtin and then its argument prototype would still apply.  */
11225 char $ac_func();
11226
11227 int main() {
11228
11229 /* The GNU C library defines this for functions which it implements
11230     to always fail with ENOSYS.  Some functions are actually named
11231     something starting with __ and the normal name is an alias.  */
11232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233 choke me
11234 #else
11235 $ac_func();
11236 #endif
11237
11238 ; return 0; }
11239 EOF
11240 if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11241   rm -rf conftest*
11242   eval "ac_cv_func_$ac_func=yes"
11243 else
11244   echo "configure: failed program was:" >&5
11245   cat conftest.$ac_ext >&5
11246   rm -rf conftest*
11247   eval "ac_cv_func_$ac_func=no"
11248 fi
11249 rm -f conftest*
11250 fi
11251
11252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11253   echo "$ac_t""yes" 1>&6
11254     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11255   cat >> confdefs.h <<EOF
11256 #define $ac_tr_func 1
11257 EOF
11258  
11259 else
11260   echo "$ac_t""no" 1>&6
11261 fi
11262 done
11263
11264   else
11265     
11266   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11267 echo "configure:11268: checking for _isnan declaration" >&5
11268   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11269     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11270   echo $ac_n "(cached) $ac_c" 1>&6
11271 else
11272   
11273       
11274       ac_ext=C
11275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11276 ac_cpp='$CXXCPP $CPPFLAGS'
11277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11279 cross_compiling=$ac_cv_prog_cxx_cross
11280
11281       cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include <math.h>
11285                       #ifdef HAVE_IEEEFP_H
11286                       #include <ieeefp.h>
11287                       #endif
11288                      
11289 int main() {
11290  _isnan(0);
11291 ; return 0; }
11292 EOF
11293 if { (eval echo configure:11294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11294   rm -rf conftest*
11295   glibcpp_cv_func__isnan_use=yes
11296 else
11297   echo "configure: failed program was:" >&5
11298   cat conftest.$ac_ext >&5
11299   rm -rf conftest*
11300   glibcpp_cv_func__isnan_use=no
11301 fi
11302 rm -f conftest*
11303       ac_ext=c
11304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11305 ac_cpp='$CPP $CPPFLAGS'
11306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11308 cross_compiling=$ac_cv_prog_cc_cross
11309
11310     
11311 fi
11312
11313   fi
11314   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11315
11316     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11317       for ac_func in _isnan
11318 do
11319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11320 echo "configure:11321: checking for $ac_func" >&5
11321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11322   echo $ac_n "(cached) $ac_c" 1>&6
11323 else
11324   cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328     which can conflict with char $ac_func(); below.  */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error.  */
11331 /* We use char because int might match the return type of a gcc2
11332     builtin and then its argument prototype would still apply.  */
11333 char $ac_func();
11334
11335 int main() {
11336
11337 /* The GNU C library defines this for functions which it implements
11338     to always fail with ENOSYS.  Some functions are actually named
11339     something starting with __ and the normal name is an alias.  */
11340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11341 choke me
11342 #else
11343 $ac_func();
11344 #endif
11345
11346 ; return 0; }
11347 EOF
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11349   rm -rf conftest*
11350   eval "ac_cv_func_$ac_func=yes"
11351 else
11352   echo "configure: failed program was:" >&5
11353   cat conftest.$ac_ext >&5
11354   rm -rf conftest*
11355   eval "ac_cv_func_$ac_func=no"
11356 fi
11357 rm -f conftest*
11358 fi
11359
11360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11361   echo "$ac_t""yes" 1>&6
11362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11363   cat >> confdefs.h <<EOF
11364 #define $ac_tr_func 1
11365 EOF
11366  
11367 else
11368   echo "$ac_t""no" 1>&6
11369 fi
11370 done
11371
11372     fi
11373   fi
11374
11375   
11376   
11377   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11378 echo "configure:11379: checking for finite declaration" >&5
11379   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11380     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11381   echo $ac_n "(cached) $ac_c" 1>&6
11382 else
11383   
11384       
11385       ac_ext=C
11386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11387 ac_cpp='$CXXCPP $CPPFLAGS'
11388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11390 cross_compiling=$ac_cv_prog_cxx_cross
11391
11392       cat > conftest.$ac_ext <<EOF
11393 #line 11394 "configure"
11394 #include "confdefs.h"
11395 #include <math.h>
11396                       #ifdef HAVE_IEEEFP_H
11397                       #include <ieeefp.h>
11398                       #endif
11399                      
11400 int main() {
11401  finite(0);
11402 ; return 0; }
11403 EOF
11404 if { (eval echo configure:11405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11405   rm -rf conftest*
11406   glibcpp_cv_func_finite_use=yes
11407 else
11408   echo "configure: failed program was:" >&5
11409   cat conftest.$ac_ext >&5
11410   rm -rf conftest*
11411   glibcpp_cv_func_finite_use=no
11412 fi
11413 rm -f conftest*
11414       ac_ext=c
11415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11416 ac_cpp='$CPP $CPPFLAGS'
11417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11419 cross_compiling=$ac_cv_prog_cc_cross
11420
11421     
11422 fi
11423
11424   fi
11425   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11426
11427   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11428     for ac_func in finite
11429 do
11430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11431 echo "configure:11432: checking for $ac_func" >&5
11432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11433   echo $ac_n "(cached) $ac_c" 1>&6
11434 else
11435   cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 /* System header to define __stub macros and hopefully few prototypes,
11439     which can conflict with char $ac_func(); below.  */
11440 #include <assert.h>
11441 /* Override any gcc2 internal prototype to avoid an error.  */
11442 /* We use char because int might match the return type of a gcc2
11443     builtin and then its argument prototype would still apply.  */
11444 char $ac_func();
11445
11446 int main() {
11447
11448 /* The GNU C library defines this for functions which it implements
11449     to always fail with ENOSYS.  Some functions are actually named
11450     something starting with __ and the normal name is an alias.  */
11451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11452 choke me
11453 #else
11454 $ac_func();
11455 #endif
11456
11457 ; return 0; }
11458 EOF
11459 if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11460   rm -rf conftest*
11461   eval "ac_cv_func_$ac_func=yes"
11462 else
11463   echo "configure: failed program was:" >&5
11464   cat conftest.$ac_ext >&5
11465   rm -rf conftest*
11466   eval "ac_cv_func_$ac_func=no"
11467 fi
11468 rm -f conftest*
11469 fi
11470
11471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11472   echo "$ac_t""yes" 1>&6
11473     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11474   cat >> confdefs.h <<EOF
11475 #define $ac_tr_func 1
11476 EOF
11477  
11478 else
11479   echo "$ac_t""no" 1>&6
11480 fi
11481 done
11482
11483   else
11484     
11485   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11486 echo "configure:11487: checking for _finite declaration" >&5
11487   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11488     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11489   echo $ac_n "(cached) $ac_c" 1>&6
11490 else
11491   
11492       
11493       ac_ext=C
11494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11495 ac_cpp='$CXXCPP $CPPFLAGS'
11496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11498 cross_compiling=$ac_cv_prog_cxx_cross
11499
11500       cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include <math.h>
11504                       #ifdef HAVE_IEEEFP_H
11505                       #include <ieeefp.h>
11506                       #endif
11507                      
11508 int main() {
11509  _finite(0);
11510 ; return 0; }
11511 EOF
11512 if { (eval echo configure:11513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11513   rm -rf conftest*
11514   glibcpp_cv_func__finite_use=yes
11515 else
11516   echo "configure: failed program was:" >&5
11517   cat conftest.$ac_ext >&5
11518   rm -rf conftest*
11519   glibcpp_cv_func__finite_use=no
11520 fi
11521 rm -f conftest*
11522       ac_ext=c
11523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11524 ac_cpp='$CPP $CPPFLAGS'
11525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11527 cross_compiling=$ac_cv_prog_cc_cross
11528
11529     
11530 fi
11531
11532   fi
11533   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11534
11535     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11536       for ac_func in _finite
11537 do
11538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11539 echo "configure:11540: checking for $ac_func" >&5
11540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11541   echo $ac_n "(cached) $ac_c" 1>&6
11542 else
11543   cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547     which can conflict with char $ac_func(); below.  */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error.  */
11550 /* We use char because int might match the return type of a gcc2
11551     builtin and then its argument prototype would still apply.  */
11552 char $ac_func();
11553
11554 int main() {
11555
11556 /* The GNU C library defines this for functions which it implements
11557     to always fail with ENOSYS.  Some functions are actually named
11558     something starting with __ and the normal name is an alias.  */
11559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11560 choke me
11561 #else
11562 $ac_func();
11563 #endif
11564
11565 ; return 0; }
11566 EOF
11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11568   rm -rf conftest*
11569   eval "ac_cv_func_$ac_func=yes"
11570 else
11571   echo "configure: failed program was:" >&5
11572   cat conftest.$ac_ext >&5
11573   rm -rf conftest*
11574   eval "ac_cv_func_$ac_func=no"
11575 fi
11576 rm -f conftest*
11577 fi
11578
11579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11580   echo "$ac_t""yes" 1>&6
11581     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11582   cat >> confdefs.h <<EOF
11583 #define $ac_tr_func 1
11584 EOF
11585  
11586 else
11587   echo "$ac_t""no" 1>&6
11588 fi
11589 done
11590
11591     fi
11592   fi
11593
11594   
11595   
11596   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11597 echo "configure:11598: checking for copysign declaration" >&5
11598   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11599     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11600   echo $ac_n "(cached) $ac_c" 1>&6
11601 else
11602   
11603       
11604       ac_ext=C
11605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11606 ac_cpp='$CXXCPP $CPPFLAGS'
11607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11609 cross_compiling=$ac_cv_prog_cxx_cross
11610
11611       cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11614 #include <math.h>
11615 int main() {
11616  copysign(0, 0);
11617 ; return 0; }
11618 EOF
11619 if { (eval echo configure:11620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11620   rm -rf conftest*
11621   glibcpp_cv_func_copysign_use=yes
11622 else
11623   echo "configure: failed program was:" >&5
11624   cat conftest.$ac_ext >&5
11625   rm -rf conftest*
11626   glibcpp_cv_func_copysign_use=no
11627 fi
11628 rm -f conftest*
11629       ac_ext=c
11630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11631 ac_cpp='$CPP $CPPFLAGS'
11632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11634 cross_compiling=$ac_cv_prog_cc_cross
11635
11636     
11637 fi
11638
11639   fi
11640   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11641
11642   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11643     for ac_func in copysign
11644 do
11645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11646 echo "configure:11647: checking for $ac_func" >&5
11647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11648   echo $ac_n "(cached) $ac_c" 1>&6
11649 else
11650   cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 /* System header to define __stub macros and hopefully few prototypes,
11654     which can conflict with char $ac_func(); below.  */
11655 #include <assert.h>
11656 /* Override any gcc2 internal prototype to avoid an error.  */
11657 /* We use char because int might match the return type of a gcc2
11658     builtin and then its argument prototype would still apply.  */
11659 char $ac_func();
11660
11661 int main() {
11662
11663 /* The GNU C library defines this for functions which it implements
11664     to always fail with ENOSYS.  Some functions are actually named
11665     something starting with __ and the normal name is an alias.  */
11666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11667 choke me
11668 #else
11669 $ac_func();
11670 #endif
11671
11672 ; return 0; }
11673 EOF
11674 if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11675   rm -rf conftest*
11676   eval "ac_cv_func_$ac_func=yes"
11677 else
11678   echo "configure: failed program was:" >&5
11679   cat conftest.$ac_ext >&5
11680   rm -rf conftest*
11681   eval "ac_cv_func_$ac_func=no"
11682 fi
11683 rm -f conftest*
11684 fi
11685
11686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11687   echo "$ac_t""yes" 1>&6
11688     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11689   cat >> confdefs.h <<EOF
11690 #define $ac_tr_func 1
11691 EOF
11692  
11693 else
11694   echo "$ac_t""no" 1>&6
11695 fi
11696 done
11697
11698   else
11699     
11700   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11701 echo "configure:11702: checking for _copysign declaration" >&5
11702   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11703     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11704   echo $ac_n "(cached) $ac_c" 1>&6
11705 else
11706   
11707       
11708       ac_ext=C
11709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11710 ac_cpp='$CXXCPP $CPPFLAGS'
11711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11713 cross_compiling=$ac_cv_prog_cxx_cross
11714
11715       cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 #include <math.h>
11719 int main() {
11720  _copysign(0, 0);
11721 ; return 0; }
11722 EOF
11723 if { (eval echo configure:11724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11724   rm -rf conftest*
11725   glibcpp_cv_func__copysign_use=yes
11726 else
11727   echo "configure: failed program was:" >&5
11728   cat conftest.$ac_ext >&5
11729   rm -rf conftest*
11730   glibcpp_cv_func__copysign_use=no
11731 fi
11732 rm -f conftest*
11733       ac_ext=c
11734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11735 ac_cpp='$CPP $CPPFLAGS'
11736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11738 cross_compiling=$ac_cv_prog_cc_cross
11739
11740     
11741 fi
11742
11743   fi
11744   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11745
11746     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11747       for ac_func in _copysign
11748 do
11749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11750 echo "configure:11751: checking for $ac_func" >&5
11751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11752   echo $ac_n "(cached) $ac_c" 1>&6
11753 else
11754   cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 /* System header to define __stub macros and hopefully few prototypes,
11758     which can conflict with char $ac_func(); below.  */
11759 #include <assert.h>
11760 /* Override any gcc2 internal prototype to avoid an error.  */
11761 /* We use char because int might match the return type of a gcc2
11762     builtin and then its argument prototype would still apply.  */
11763 char $ac_func();
11764
11765 int main() {
11766
11767 /* The GNU C library defines this for functions which it implements
11768     to always fail with ENOSYS.  Some functions are actually named
11769     something starting with __ and the normal name is an alias.  */
11770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11771 choke me
11772 #else
11773 $ac_func();
11774 #endif
11775
11776 ; return 0; }
11777 EOF
11778 if { (eval echo configure:11779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11779   rm -rf conftest*
11780   eval "ac_cv_func_$ac_func=yes"
11781 else
11782   echo "configure: failed program was:" >&5
11783   cat conftest.$ac_ext >&5
11784   rm -rf conftest*
11785   eval "ac_cv_func_$ac_func=no"
11786 fi
11787 rm -f conftest*
11788 fi
11789
11790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11791   echo "$ac_t""yes" 1>&6
11792     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11793   cat >> confdefs.h <<EOF
11794 #define $ac_tr_func 1
11795 EOF
11796  
11797 else
11798   echo "$ac_t""no" 1>&6
11799 fi
11800 done
11801
11802     fi
11803   fi
11804
11805   
11806   
11807   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11808 echo "configure:11809: checking for sincos declaration" >&5
11809   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11810     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11811   echo $ac_n "(cached) $ac_c" 1>&6
11812 else
11813   
11814       
11815       ac_ext=C
11816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11817 ac_cpp='$CXXCPP $CPPFLAGS'
11818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11820 cross_compiling=$ac_cv_prog_cxx_cross
11821
11822       cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 #include <math.h>
11826 int main() {
11827  sincos(0, 0, 0);
11828 ; return 0; }
11829 EOF
11830 if { (eval echo configure:11831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11831   rm -rf conftest*
11832   glibcpp_cv_func_sincos_use=yes
11833 else
11834   echo "configure: failed program was:" >&5
11835   cat conftest.$ac_ext >&5
11836   rm -rf conftest*
11837   glibcpp_cv_func_sincos_use=no
11838 fi
11839 rm -f conftest*
11840       ac_ext=c
11841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11842 ac_cpp='$CPP $CPPFLAGS'
11843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11845 cross_compiling=$ac_cv_prog_cc_cross
11846
11847     
11848 fi
11849
11850   fi
11851   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11852
11853   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11854     for ac_func in sincos
11855 do
11856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11857 echo "configure:11858: checking for $ac_func" >&5
11858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11859   echo $ac_n "(cached) $ac_c" 1>&6
11860 else
11861   cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure"
11863 #include "confdefs.h"
11864 /* System header to define __stub macros and hopefully few prototypes,
11865     which can conflict with char $ac_func(); below.  */
11866 #include <assert.h>
11867 /* Override any gcc2 internal prototype to avoid an error.  */
11868 /* We use char because int might match the return type of a gcc2
11869     builtin and then its argument prototype would still apply.  */
11870 char $ac_func();
11871
11872 int main() {
11873
11874 /* The GNU C library defines this for functions which it implements
11875     to always fail with ENOSYS.  Some functions are actually named
11876     something starting with __ and the normal name is an alias.  */
11877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11878 choke me
11879 #else
11880 $ac_func();
11881 #endif
11882
11883 ; return 0; }
11884 EOF
11885 if { (eval echo configure:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11886   rm -rf conftest*
11887   eval "ac_cv_func_$ac_func=yes"
11888 else
11889   echo "configure: failed program was:" >&5
11890   cat conftest.$ac_ext >&5
11891   rm -rf conftest*
11892   eval "ac_cv_func_$ac_func=no"
11893 fi
11894 rm -f conftest*
11895 fi
11896
11897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11898   echo "$ac_t""yes" 1>&6
11899     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11900   cat >> confdefs.h <<EOF
11901 #define $ac_tr_func 1
11902 EOF
11903  
11904 else
11905   echo "$ac_t""no" 1>&6
11906 fi
11907 done
11908
11909   else
11910     
11911   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11912 echo "configure:11913: checking for _sincos declaration" >&5
11913   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11914     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11915   echo $ac_n "(cached) $ac_c" 1>&6
11916 else
11917   
11918       
11919       ac_ext=C
11920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11921 ac_cpp='$CXXCPP $CPPFLAGS'
11922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11924 cross_compiling=$ac_cv_prog_cxx_cross
11925
11926       cat > conftest.$ac_ext <<EOF
11927 #line 11928 "configure"
11928 #include "confdefs.h"
11929 #include <math.h>
11930 int main() {
11931  _sincos(0, 0, 0);
11932 ; return 0; }
11933 EOF
11934 if { (eval echo configure:11935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11935   rm -rf conftest*
11936   glibcpp_cv_func__sincos_use=yes
11937 else
11938   echo "configure: failed program was:" >&5
11939   cat conftest.$ac_ext >&5
11940   rm -rf conftest*
11941   glibcpp_cv_func__sincos_use=no
11942 fi
11943 rm -f conftest*
11944       ac_ext=c
11945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11946 ac_cpp='$CPP $CPPFLAGS'
11947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11949 cross_compiling=$ac_cv_prog_cc_cross
11950
11951     
11952 fi
11953
11954   fi
11955   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11956
11957     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11958       for ac_func in _sincos
11959 do
11960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11961 echo "configure:11962: checking for $ac_func" >&5
11962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11963   echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965   cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 /* System header to define __stub macros and hopefully few prototypes,
11969     which can conflict with char $ac_func(); below.  */
11970 #include <assert.h>
11971 /* Override any gcc2 internal prototype to avoid an error.  */
11972 /* We use char because int might match the return type of a gcc2
11973     builtin and then its argument prototype would still apply.  */
11974 char $ac_func();
11975
11976 int main() {
11977
11978 /* The GNU C library defines this for functions which it implements
11979     to always fail with ENOSYS.  Some functions are actually named
11980     something starting with __ and the normal name is an alias.  */
11981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11982 choke me
11983 #else
11984 $ac_func();
11985 #endif
11986
11987 ; return 0; }
11988 EOF
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990   rm -rf conftest*
11991   eval "ac_cv_func_$ac_func=yes"
11992 else
11993   echo "configure: failed program was:" >&5
11994   cat conftest.$ac_ext >&5
11995   rm -rf conftest*
11996   eval "ac_cv_func_$ac_func=no"
11997 fi
11998 rm -f conftest*
11999 fi
12000
12001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12002   echo "$ac_t""yes" 1>&6
12003     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12004   cat >> confdefs.h <<EOF
12005 #define $ac_tr_func 1
12006 EOF
12007  
12008 else
12009   echo "$ac_t""no" 1>&6
12010 fi
12011 done
12012
12013     fi
12014   fi
12015
12016   
12017   
12018   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
12019 echo "configure:12020: checking for fpclass declaration" >&5
12020   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
12021     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
12022   echo $ac_n "(cached) $ac_c" 1>&6
12023 else
12024   
12025       
12026       ac_ext=C
12027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12028 ac_cpp='$CXXCPP $CPPFLAGS'
12029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12031 cross_compiling=$ac_cv_prog_cxx_cross
12032
12033       cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 #include <math.h>
12037                       #ifdef HAVE_IEEEFP_H
12038                       #include <ieeefp.h>
12039                       #endif
12040                      
12041 int main() {
12042  fpclass(0);
12043 ; return 0; }
12044 EOF
12045 if { (eval echo configure:12046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12046   rm -rf conftest*
12047   glibcpp_cv_func_fpclass_use=yes
12048 else
12049   echo "configure: failed program was:" >&5
12050   cat conftest.$ac_ext >&5
12051   rm -rf conftest*
12052   glibcpp_cv_func_fpclass_use=no
12053 fi
12054 rm -f conftest*
12055       ac_ext=c
12056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12057 ac_cpp='$CPP $CPPFLAGS'
12058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12060 cross_compiling=$ac_cv_prog_cc_cross
12061
12062     
12063 fi
12064
12065   fi
12066   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12067
12068   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12069     for ac_func in fpclass
12070 do
12071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12072 echo "configure:12073: checking for $ac_func" >&5
12073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12074   echo $ac_n "(cached) $ac_c" 1>&6
12075 else
12076   cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079 /* System header to define __stub macros and hopefully few prototypes,
12080     which can conflict with char $ac_func(); below.  */
12081 #include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error.  */
12083 /* We use char because int might match the return type of a gcc2
12084     builtin and then its argument prototype would still apply.  */
12085 char $ac_func();
12086
12087 int main() {
12088
12089 /* The GNU C library defines this for functions which it implements
12090     to always fail with ENOSYS.  Some functions are actually named
12091     something starting with __ and the normal name is an alias.  */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12093 choke me
12094 #else
12095 $ac_func();
12096 #endif
12097
12098 ; return 0; }
12099 EOF
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12101   rm -rf conftest*
12102   eval "ac_cv_func_$ac_func=yes"
12103 else
12104   echo "configure: failed program was:" >&5
12105   cat conftest.$ac_ext >&5
12106   rm -rf conftest*
12107   eval "ac_cv_func_$ac_func=no"
12108 fi
12109 rm -f conftest*
12110 fi
12111
12112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12113   echo "$ac_t""yes" 1>&6
12114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12115   cat >> confdefs.h <<EOF
12116 #define $ac_tr_func 1
12117 EOF
12118  
12119 else
12120   echo "$ac_t""no" 1>&6
12121 fi
12122 done
12123
12124   else
12125     
12126   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
12127 echo "configure:12128: checking for _fpclass declaration" >&5
12128   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
12129     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
12130   echo $ac_n "(cached) $ac_c" 1>&6
12131 else
12132   
12133       
12134       ac_ext=C
12135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12136 ac_cpp='$CXXCPP $CPPFLAGS'
12137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12139 cross_compiling=$ac_cv_prog_cxx_cross
12140
12141       cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 #include <math.h>
12145                       #ifdef HAVE_IEEEFP_H
12146                       #include <ieeefp.h>
12147                       #endif
12148                      
12149 int main() {
12150  _fpclass(0);
12151 ; return 0; }
12152 EOF
12153 if { (eval echo configure:12154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12154   rm -rf conftest*
12155   glibcpp_cv_func__fpclass_use=yes
12156 else
12157   echo "configure: failed program was:" >&5
12158   cat conftest.$ac_ext >&5
12159   rm -rf conftest*
12160   glibcpp_cv_func__fpclass_use=no
12161 fi
12162 rm -f conftest*
12163       ac_ext=c
12164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12168 cross_compiling=$ac_cv_prog_cc_cross
12169
12170     
12171 fi
12172
12173   fi
12174   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12175
12176     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12177       for ac_func in _fpclass
12178 do
12179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12180 echo "configure:12181: checking for $ac_func" >&5
12181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12182   echo $ac_n "(cached) $ac_c" 1>&6
12183 else
12184   cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 /* System header to define __stub macros and hopefully few prototypes,
12188     which can conflict with char $ac_func(); below.  */
12189 #include <assert.h>
12190 /* Override any gcc2 internal prototype to avoid an error.  */
12191 /* We use char because int might match the return type of a gcc2
12192     builtin and then its argument prototype would still apply.  */
12193 char $ac_func();
12194
12195 int main() {
12196
12197 /* The GNU C library defines this for functions which it implements
12198     to always fail with ENOSYS.  Some functions are actually named
12199     something starting with __ and the normal name is an alias.  */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 choke me
12202 #else
12203 $ac_func();
12204 #endif
12205
12206 ; return 0; }
12207 EOF
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209   rm -rf conftest*
12210   eval "ac_cv_func_$ac_func=yes"
12211 else
12212   echo "configure: failed program was:" >&5
12213   cat conftest.$ac_ext >&5
12214   rm -rf conftest*
12215   eval "ac_cv_func_$ac_func=no"
12216 fi
12217 rm -f conftest*
12218 fi
12219
12220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12221   echo "$ac_t""yes" 1>&6
12222     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12223   cat >> confdefs.h <<EOF
12224 #define $ac_tr_func 1
12225 EOF
12226  
12227 else
12228   echo "$ac_t""no" 1>&6
12229 fi
12230 done
12231
12232     fi
12233   fi
12234
12235   
12236   
12237   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12238 echo "configure:12239: checking for qfpclass declaration" >&5
12239   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12240     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12241   echo $ac_n "(cached) $ac_c" 1>&6
12242 else
12243   
12244       
12245       ac_ext=C
12246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12247 ac_cpp='$CXXCPP $CPPFLAGS'
12248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12250 cross_compiling=$ac_cv_prog_cxx_cross
12251
12252       cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 #include <math.h>
12256                       #ifdef HAVE_IEEEFP_H
12257                       #include <ieeefp.h>
12258                       #endif
12259                      
12260 int main() {
12261  qfpclass(0);
12262 ; return 0; }
12263 EOF
12264 if { (eval echo configure:12265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12265   rm -rf conftest*
12266   glibcpp_cv_func_qfpclass_use=yes
12267 else
12268   echo "configure: failed program was:" >&5
12269   cat conftest.$ac_ext >&5
12270   rm -rf conftest*
12271   glibcpp_cv_func_qfpclass_use=no
12272 fi
12273 rm -f conftest*
12274       ac_ext=c
12275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12276 ac_cpp='$CPP $CPPFLAGS'
12277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12279 cross_compiling=$ac_cv_prog_cc_cross
12280
12281     
12282 fi
12283
12284   fi
12285   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12286
12287   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12288     for ac_func in qfpclass
12289 do
12290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12291 echo "configure:12292: checking for $ac_func" >&5
12292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12293   echo $ac_n "(cached) $ac_c" 1>&6
12294 else
12295   cat > conftest.$ac_ext <<EOF
12296 #line 12297 "configure"
12297 #include "confdefs.h"
12298 /* System header to define __stub macros and hopefully few prototypes,
12299     which can conflict with char $ac_func(); below.  */
12300 #include <assert.h>
12301 /* Override any gcc2 internal prototype to avoid an error.  */
12302 /* We use char because int might match the return type of a gcc2
12303     builtin and then its argument prototype would still apply.  */
12304 char $ac_func();
12305
12306 int main() {
12307
12308 /* The GNU C library defines this for functions which it implements
12309     to always fail with ENOSYS.  Some functions are actually named
12310     something starting with __ and the normal name is an alias.  */
12311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12312 choke me
12313 #else
12314 $ac_func();
12315 #endif
12316
12317 ; return 0; }
12318 EOF
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12320   rm -rf conftest*
12321   eval "ac_cv_func_$ac_func=yes"
12322 else
12323   echo "configure: failed program was:" >&5
12324   cat conftest.$ac_ext >&5
12325   rm -rf conftest*
12326   eval "ac_cv_func_$ac_func=no"
12327 fi
12328 rm -f conftest*
12329 fi
12330
12331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12332   echo "$ac_t""yes" 1>&6
12333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12334   cat >> confdefs.h <<EOF
12335 #define $ac_tr_func 1
12336 EOF
12337  
12338 else
12339   echo "$ac_t""no" 1>&6
12340 fi
12341 done
12342
12343   else
12344     
12345   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12346 echo "configure:12347: checking for _qfpclass declaration" >&5
12347   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12348     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12349   echo $ac_n "(cached) $ac_c" 1>&6
12350 else
12351   
12352       
12353       ac_ext=C
12354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12355 ac_cpp='$CXXCPP $CPPFLAGS'
12356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12358 cross_compiling=$ac_cv_prog_cxx_cross
12359
12360       cat > conftest.$ac_ext <<EOF
12361 #line 12362 "configure"
12362 #include "confdefs.h"
12363 #include <math.h>
12364                       #ifdef HAVE_IEEEFP_H
12365                       #include <ieeefp.h>
12366                       #endif
12367                      
12368 int main() {
12369  _qfpclass(0);
12370 ; return 0; }
12371 EOF
12372 if { (eval echo configure:12373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12373   rm -rf conftest*
12374   glibcpp_cv_func__qfpclass_use=yes
12375 else
12376   echo "configure: failed program was:" >&5
12377   cat conftest.$ac_ext >&5
12378   rm -rf conftest*
12379   glibcpp_cv_func__qfpclass_use=no
12380 fi
12381 rm -f conftest*
12382       ac_ext=c
12383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12387 cross_compiling=$ac_cv_prog_cc_cross
12388
12389     
12390 fi
12391
12392   fi
12393   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12394
12395     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12396       for ac_func in _qfpclass
12397 do
12398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12399 echo "configure:12400: checking for $ac_func" >&5
12400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12401   echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12403   cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 /* System header to define __stub macros and hopefully few prototypes,
12407     which can conflict with char $ac_func(); below.  */
12408 #include <assert.h>
12409 /* Override any gcc2 internal prototype to avoid an error.  */
12410 /* We use char because int might match the return type of a gcc2
12411     builtin and then its argument prototype would still apply.  */
12412 char $ac_func();
12413
12414 int main() {
12415
12416 /* The GNU C library defines this for functions which it implements
12417     to always fail with ENOSYS.  Some functions are actually named
12418     something starting with __ and the normal name is an alias.  */
12419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12420 choke me
12421 #else
12422 $ac_func();
12423 #endif
12424
12425 ; return 0; }
12426 EOF
12427 if { (eval echo configure:12428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12428   rm -rf conftest*
12429   eval "ac_cv_func_$ac_func=yes"
12430 else
12431   echo "configure: failed program was:" >&5
12432   cat conftest.$ac_ext >&5
12433   rm -rf conftest*
12434   eval "ac_cv_func_$ac_func=no"
12435 fi
12436 rm -f conftest*
12437 fi
12438
12439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12440   echo "$ac_t""yes" 1>&6
12441     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12442   cat >> confdefs.h <<EOF
12443 #define $ac_tr_func 1
12444 EOF
12445  
12446 else
12447   echo "$ac_t""no" 1>&6
12448 fi
12449 done
12450
12451     fi
12452   fi
12453
12454   
12455   
12456   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12457 echo "configure:12458: checking for hypot declaration" >&5
12458   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12459     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12460   echo $ac_n "(cached) $ac_c" 1>&6
12461 else
12462   
12463       
12464       ac_ext=C
12465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12466 ac_cpp='$CXXCPP $CPPFLAGS'
12467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12469 cross_compiling=$ac_cv_prog_cxx_cross
12470
12471       cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12474 #include <math.h>
12475 int main() {
12476  hypot(0, 0);
12477 ; return 0; }
12478 EOF
12479 if { (eval echo configure:12480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12480   rm -rf conftest*
12481   glibcpp_cv_func_hypot_use=yes
12482 else
12483   echo "configure: failed program was:" >&5
12484   cat conftest.$ac_ext >&5
12485   rm -rf conftest*
12486   glibcpp_cv_func_hypot_use=no
12487 fi
12488 rm -f conftest*
12489       ac_ext=c
12490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12491 ac_cpp='$CPP $CPPFLAGS'
12492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12494 cross_compiling=$ac_cv_prog_cc_cross
12495
12496     
12497 fi
12498
12499   fi
12500   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12501
12502   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12503     for ac_func in hypot
12504 do
12505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12506 echo "configure:12507: checking for $ac_func" >&5
12507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12508   echo $ac_n "(cached) $ac_c" 1>&6
12509 else
12510   cat > conftest.$ac_ext <<EOF
12511 #line 12512 "configure"
12512 #include "confdefs.h"
12513 /* System header to define __stub macros and hopefully few prototypes,
12514     which can conflict with char $ac_func(); below.  */
12515 #include <assert.h>
12516 /* Override any gcc2 internal prototype to avoid an error.  */
12517 /* We use char because int might match the return type of a gcc2
12518     builtin and then its argument prototype would still apply.  */
12519 char $ac_func();
12520
12521 int main() {
12522
12523 /* The GNU C library defines this for functions which it implements
12524     to always fail with ENOSYS.  Some functions are actually named
12525     something starting with __ and the normal name is an alias.  */
12526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12527 choke me
12528 #else
12529 $ac_func();
12530 #endif
12531
12532 ; return 0; }
12533 EOF
12534 if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12535   rm -rf conftest*
12536   eval "ac_cv_func_$ac_func=yes"
12537 else
12538   echo "configure: failed program was:" >&5
12539   cat conftest.$ac_ext >&5
12540   rm -rf conftest*
12541   eval "ac_cv_func_$ac_func=no"
12542 fi
12543 rm -f conftest*
12544 fi
12545
12546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12547   echo "$ac_t""yes" 1>&6
12548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12549   cat >> confdefs.h <<EOF
12550 #define $ac_tr_func 1
12551 EOF
12552  
12553 else
12554   echo "$ac_t""no" 1>&6
12555 fi
12556 done
12557
12558   else
12559     
12560   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12561 echo "configure:12562: checking for _hypot declaration" >&5
12562   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12563     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12564   echo $ac_n "(cached) $ac_c" 1>&6
12565 else
12566   
12567       
12568       ac_ext=C
12569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12570 ac_cpp='$CXXCPP $CPPFLAGS'
12571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12573 cross_compiling=$ac_cv_prog_cxx_cross
12574
12575       cat > conftest.$ac_ext <<EOF
12576 #line 12577 "configure"
12577 #include "confdefs.h"
12578 #include <math.h>
12579 int main() {
12580  _hypot(0, 0);
12581 ; return 0; }
12582 EOF
12583 if { (eval echo configure:12584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12584   rm -rf conftest*
12585   glibcpp_cv_func__hypot_use=yes
12586 else
12587   echo "configure: failed program was:" >&5
12588   cat conftest.$ac_ext >&5
12589   rm -rf conftest*
12590   glibcpp_cv_func__hypot_use=no
12591 fi
12592 rm -f conftest*
12593       ac_ext=c
12594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12598 cross_compiling=$ac_cv_prog_cc_cross
12599
12600     
12601 fi
12602
12603   fi
12604   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12605
12606     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12607       for ac_func in _hypot
12608 do
12609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12610 echo "configure:12611: checking for $ac_func" >&5
12611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12612   echo $ac_n "(cached) $ac_c" 1>&6
12613 else
12614   cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 /* System header to define __stub macros and hopefully few prototypes,
12618     which can conflict with char $ac_func(); below.  */
12619 #include <assert.h>
12620 /* Override any gcc2 internal prototype to avoid an error.  */
12621 /* We use char because int might match the return type of a gcc2
12622     builtin and then its argument prototype would still apply.  */
12623 char $ac_func();
12624
12625 int main() {
12626
12627 /* The GNU C library defines this for functions which it implements
12628     to always fail with ENOSYS.  Some functions are actually named
12629     something starting with __ and the normal name is an alias.  */
12630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12631 choke me
12632 #else
12633 $ac_func();
12634 #endif
12635
12636 ; return 0; }
12637 EOF
12638 if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12639   rm -rf conftest*
12640   eval "ac_cv_func_$ac_func=yes"
12641 else
12642   echo "configure: failed program was:" >&5
12643   cat conftest.$ac_ext >&5
12644   rm -rf conftest*
12645   eval "ac_cv_func_$ac_func=no"
12646 fi
12647 rm -f conftest*
12648 fi
12649
12650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12651   echo "$ac_t""yes" 1>&6
12652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12653   cat >> confdefs.h <<EOF
12654 #define $ac_tr_func 1
12655 EOF
12656  
12657 else
12658   echo "$ac_t""no" 1>&6
12659 fi
12660 done
12661
12662     fi
12663   fi
12664
12665
12666     
12667   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12668 echo "configure:12669: checking for float trig functions" >&5
12669   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12670   echo $ac_n "(cached) $ac_c" 1>&6
12671 else
12672   
12673     
12674     ac_ext=C
12675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12676 ac_cpp='$CXXCPP $CPPFLAGS'
12677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12679 cross_compiling=$ac_cv_prog_cxx_cross
12680
12681     cat > conftest.$ac_ext <<EOF
12682 #line 12683 "configure"
12683 #include "confdefs.h"
12684 #include <math.h>
12685 int main() {
12686  `for x in acosf asinf atanf \
12687                                           cosf sinf tanf \
12688                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12689 ; return 0; }
12690 EOF
12691 if { (eval echo configure:12692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12692   rm -rf conftest*
12693   glibcpp_cv_func_float_trig_use=yes
12694 else
12695   echo "configure: failed program was:" >&5
12696   cat conftest.$ac_ext >&5
12697   rm -rf conftest*
12698   glibcpp_cv_func_float_trig_use=no
12699 fi
12700 rm -f conftest*
12701     ac_ext=c
12702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12703 ac_cpp='$CPP $CPPFLAGS'
12704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12706 cross_compiling=$ac_cv_prog_cc_cross
12707
12708 fi
12709
12710   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12711   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12712     for ac_func in acosf asinf atanf \
12713                                           cosf sinf tanf \
12714                                           coshf sinhf tanhf
12715 do
12716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12717 echo "configure:12718: checking for $ac_func" >&5
12718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12719   echo $ac_n "(cached) $ac_c" 1>&6
12720 else
12721   cat > conftest.$ac_ext <<EOF
12722 #line 12723 "configure"
12723 #include "confdefs.h"
12724 /* System header to define __stub macros and hopefully few prototypes,
12725     which can conflict with char $ac_func(); below.  */
12726 #include <assert.h>
12727 /* Override any gcc2 internal prototype to avoid an error.  */
12728 /* We use char because int might match the return type of a gcc2
12729     builtin and then its argument prototype would still apply.  */
12730 char $ac_func();
12731
12732 int main() {
12733
12734 /* The GNU C library defines this for functions which it implements
12735     to always fail with ENOSYS.  Some functions are actually named
12736     something starting with __ and the normal name is an alias.  */
12737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12738 choke me
12739 #else
12740 $ac_func();
12741 #endif
12742
12743 ; return 0; }
12744 EOF
12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12746   rm -rf conftest*
12747   eval "ac_cv_func_$ac_func=yes"
12748 else
12749   echo "configure: failed program was:" >&5
12750   cat conftest.$ac_ext >&5
12751   rm -rf conftest*
12752   eval "ac_cv_func_$ac_func=no"
12753 fi
12754 rm -f conftest*
12755 fi
12756
12757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12758   echo "$ac_t""yes" 1>&6
12759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12760   cat >> confdefs.h <<EOF
12761 #define $ac_tr_func 1
12762 EOF
12763  
12764 else
12765   echo "$ac_t""no" 1>&6
12766 fi
12767 done
12768
12769   fi
12770
12771   
12772   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12773 echo "configure:12774: checking for float round functions" >&5
12774   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12775   echo $ac_n "(cached) $ac_c" 1>&6
12776 else
12777   
12778     
12779     ac_ext=C
12780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12781 ac_cpp='$CXXCPP $CPPFLAGS'
12782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12784 cross_compiling=$ac_cv_prog_cxx_cross
12785
12786     cat > conftest.$ac_ext <<EOF
12787 #line 12788 "configure"
12788 #include "confdefs.h"
12789 #include <math.h>
12790 int main() {
12791  `for x in ceilf floorf; do echo "$x (0);"; done` 
12792 ; return 0; }
12793 EOF
12794 if { (eval echo configure:12795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12795   rm -rf conftest*
12796   glibcpp_cv_func_float_round_use=yes
12797 else
12798   echo "configure: failed program was:" >&5
12799   cat conftest.$ac_ext >&5
12800   rm -rf conftest*
12801   glibcpp_cv_func_float_round_use=no
12802 fi
12803 rm -f conftest*
12804     ac_ext=c
12805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12806 ac_cpp='$CPP $CPPFLAGS'
12807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12809 cross_compiling=$ac_cv_prog_cc_cross
12810
12811 fi
12812
12813   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12814   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12815     for ac_func in ceilf floorf
12816 do
12817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12818 echo "configure:12819: checking for $ac_func" >&5
12819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12820   echo $ac_n "(cached) $ac_c" 1>&6
12821 else
12822   cat > conftest.$ac_ext <<EOF
12823 #line 12824 "configure"
12824 #include "confdefs.h"
12825 /* System header to define __stub macros and hopefully few prototypes,
12826     which can conflict with char $ac_func(); below.  */
12827 #include <assert.h>
12828 /* Override any gcc2 internal prototype to avoid an error.  */
12829 /* We use char because int might match the return type of a gcc2
12830     builtin and then its argument prototype would still apply.  */
12831 char $ac_func();
12832
12833 int main() {
12834
12835 /* The GNU C library defines this for functions which it implements
12836     to always fail with ENOSYS.  Some functions are actually named
12837     something starting with __ and the normal name is an alias.  */
12838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12839 choke me
12840 #else
12841 $ac_func();
12842 #endif
12843
12844 ; return 0; }
12845 EOF
12846 if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12847   rm -rf conftest*
12848   eval "ac_cv_func_$ac_func=yes"
12849 else
12850   echo "configure: failed program was:" >&5
12851   cat conftest.$ac_ext >&5
12852   rm -rf conftest*
12853   eval "ac_cv_func_$ac_func=no"
12854 fi
12855 rm -f conftest*
12856 fi
12857
12858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12859   echo "$ac_t""yes" 1>&6
12860     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12861   cat >> confdefs.h <<EOF
12862 #define $ac_tr_func 1
12863 EOF
12864  
12865 else
12866   echo "$ac_t""no" 1>&6
12867 fi
12868 done
12869
12870   fi
12871
12872   
12873   
12874   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12875 echo "configure:12876: checking for expf declaration" >&5
12876   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12877     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12878   echo $ac_n "(cached) $ac_c" 1>&6
12879 else
12880   
12881       
12882       ac_ext=C
12883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12884 ac_cpp='$CXXCPP $CPPFLAGS'
12885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12887 cross_compiling=$ac_cv_prog_cxx_cross
12888
12889       cat > conftest.$ac_ext <<EOF
12890 #line 12891 "configure"
12891 #include "confdefs.h"
12892 #include <math.h>
12893                       #ifdef HAVE_IEEEFP_H
12894                       #include <ieeefp.h>
12895                       #endif
12896                      
12897 int main() {
12898  expf(0);
12899 ; return 0; }
12900 EOF
12901 if { (eval echo configure:12902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12902   rm -rf conftest*
12903   glibcpp_cv_func_expf_use=yes
12904 else
12905   echo "configure: failed program was:" >&5
12906   cat conftest.$ac_ext >&5
12907   rm -rf conftest*
12908   glibcpp_cv_func_expf_use=no
12909 fi
12910 rm -f conftest*
12911       ac_ext=c
12912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12913 ac_cpp='$CPP $CPPFLAGS'
12914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12916 cross_compiling=$ac_cv_prog_cc_cross
12917
12918     
12919 fi
12920
12921   fi
12922   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12923
12924   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12925     for ac_func in expf
12926 do
12927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12928 echo "configure:12929: checking for $ac_func" >&5
12929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12930   echo $ac_n "(cached) $ac_c" 1>&6
12931 else
12932   cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936     which can conflict with char $ac_func(); below.  */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error.  */
12939 /* We use char because int might match the return type of a gcc2
12940     builtin and then its argument prototype would still apply.  */
12941 char $ac_func();
12942
12943 int main() {
12944
12945 /* The GNU C library defines this for functions which it implements
12946     to always fail with ENOSYS.  Some functions are actually named
12947     something starting with __ and the normal name is an alias.  */
12948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12949 choke me
12950 #else
12951 $ac_func();
12952 #endif
12953
12954 ; return 0; }
12955 EOF
12956 if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12957   rm -rf conftest*
12958   eval "ac_cv_func_$ac_func=yes"
12959 else
12960   echo "configure: failed program was:" >&5
12961   cat conftest.$ac_ext >&5
12962   rm -rf conftest*
12963   eval "ac_cv_func_$ac_func=no"
12964 fi
12965 rm -f conftest*
12966 fi
12967
12968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12969   echo "$ac_t""yes" 1>&6
12970     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12971   cat >> confdefs.h <<EOF
12972 #define $ac_tr_func 1
12973 EOF
12974  
12975 else
12976   echo "$ac_t""no" 1>&6
12977 fi
12978 done
12979
12980   else
12981     
12982   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12983 echo "configure:12984: checking for _expf declaration" >&5
12984   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12985     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12986   echo $ac_n "(cached) $ac_c" 1>&6
12987 else
12988   
12989       
12990       ac_ext=C
12991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12992 ac_cpp='$CXXCPP $CPPFLAGS'
12993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12995 cross_compiling=$ac_cv_prog_cxx_cross
12996
12997       cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 #include <math.h>
13001                       #ifdef HAVE_IEEEFP_H
13002                       #include <ieeefp.h>
13003                       #endif
13004                      
13005 int main() {
13006  _expf(0);
13007 ; return 0; }
13008 EOF
13009 if { (eval echo configure:13010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13010   rm -rf conftest*
13011   glibcpp_cv_func__expf_use=yes
13012 else
13013   echo "configure: failed program was:" >&5
13014   cat conftest.$ac_ext >&5
13015   rm -rf conftest*
13016   glibcpp_cv_func__expf_use=no
13017 fi
13018 rm -f conftest*
13019       ac_ext=c
13020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13021 ac_cpp='$CPP $CPPFLAGS'
13022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13024 cross_compiling=$ac_cv_prog_cc_cross
13025
13026     
13027 fi
13028
13029   fi
13030   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
13031
13032     if test x$glibcpp_cv_func__expf_use = x"yes"; then
13033       for ac_func in _expf
13034 do
13035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13036 echo "configure:13037: checking for $ac_func" >&5
13037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13038   echo $ac_n "(cached) $ac_c" 1>&6
13039 else
13040   cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 /* System header to define __stub macros and hopefully few prototypes,
13044     which can conflict with char $ac_func(); below.  */
13045 #include <assert.h>
13046 /* Override any gcc2 internal prototype to avoid an error.  */
13047 /* We use char because int might match the return type of a gcc2
13048     builtin and then its argument prototype would still apply.  */
13049 char $ac_func();
13050
13051 int main() {
13052
13053 /* The GNU C library defines this for functions which it implements
13054     to always fail with ENOSYS.  Some functions are actually named
13055     something starting with __ and the normal name is an alias.  */
13056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13057 choke me
13058 #else
13059 $ac_func();
13060 #endif
13061
13062 ; return 0; }
13063 EOF
13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065   rm -rf conftest*
13066   eval "ac_cv_func_$ac_func=yes"
13067 else
13068   echo "configure: failed program was:" >&5
13069   cat conftest.$ac_ext >&5
13070   rm -rf conftest*
13071   eval "ac_cv_func_$ac_func=no"
13072 fi
13073 rm -f conftest*
13074 fi
13075
13076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13077   echo "$ac_t""yes" 1>&6
13078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13079   cat >> confdefs.h <<EOF
13080 #define $ac_tr_func 1
13081 EOF
13082  
13083 else
13084   echo "$ac_t""no" 1>&6
13085 fi
13086 done
13087
13088     fi
13089   fi
13090
13091   
13092   
13093   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13094 echo "configure:13095: checking for isnanf declaration" >&5
13095   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13096     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13097   echo $ac_n "(cached) $ac_c" 1>&6
13098 else
13099   
13100       
13101       ac_ext=C
13102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13103 ac_cpp='$CXXCPP $CPPFLAGS'
13104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13106 cross_compiling=$ac_cv_prog_cxx_cross
13107
13108       cat > conftest.$ac_ext <<EOF
13109 #line 13110 "configure"
13110 #include "confdefs.h"
13111 #include <math.h>
13112                       #ifdef HAVE_IEEEFP_H
13113                       #include <ieeefp.h>
13114                       #endif
13115                      
13116 int main() {
13117  isnanf(0);
13118 ; return 0; }
13119 EOF
13120 if { (eval echo configure:13121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13121   rm -rf conftest*
13122   glibcpp_cv_func_isnanf_use=yes
13123 else
13124   echo "configure: failed program was:" >&5
13125   cat conftest.$ac_ext >&5
13126   rm -rf conftest*
13127   glibcpp_cv_func_isnanf_use=no
13128 fi
13129 rm -f conftest*
13130       ac_ext=c
13131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13135 cross_compiling=$ac_cv_prog_cc_cross
13136
13137     
13138 fi
13139
13140   fi
13141   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
13142
13143   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
13144     for ac_func in isnanf
13145 do
13146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13147 echo "configure:13148: checking for $ac_func" >&5
13148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149   echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151   cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155     which can conflict with char $ac_func(); below.  */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error.  */
13158 /* We use char because int might match the return type of a gcc2
13159     builtin and then its argument prototype would still apply.  */
13160 char $ac_func();
13161
13162 int main() {
13163
13164 /* The GNU C library defines this for functions which it implements
13165     to always fail with ENOSYS.  Some functions are actually named
13166     something starting with __ and the normal name is an alias.  */
13167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168 choke me
13169 #else
13170 $ac_func();
13171 #endif
13172
13173 ; return 0; }
13174 EOF
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176   rm -rf conftest*
13177   eval "ac_cv_func_$ac_func=yes"
13178 else
13179   echo "configure: failed program was:" >&5
13180   cat conftest.$ac_ext >&5
13181   rm -rf conftest*
13182   eval "ac_cv_func_$ac_func=no"
13183 fi
13184 rm -f conftest*
13185 fi
13186
13187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188   echo "$ac_t""yes" 1>&6
13189     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190   cat >> confdefs.h <<EOF
13191 #define $ac_tr_func 1
13192 EOF
13193  
13194 else
13195   echo "$ac_t""no" 1>&6
13196 fi
13197 done
13198
13199   else
13200     
13201   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13202 echo "configure:13203: checking for _isnanf declaration" >&5
13203   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13204     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13205   echo $ac_n "(cached) $ac_c" 1>&6
13206 else
13207   
13208       
13209       ac_ext=C
13210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13211 ac_cpp='$CXXCPP $CPPFLAGS'
13212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13214 cross_compiling=$ac_cv_prog_cxx_cross
13215
13216       cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 #include <math.h>
13220                       #ifdef HAVE_IEEEFP_H
13221                       #include <ieeefp.h>
13222                       #endif
13223                      
13224 int main() {
13225  _isnanf(0);
13226 ; return 0; }
13227 EOF
13228 if { (eval echo configure:13229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13229   rm -rf conftest*
13230   glibcpp_cv_func__isnanf_use=yes
13231 else
13232   echo "configure: failed program was:" >&5
13233   cat conftest.$ac_ext >&5
13234   rm -rf conftest*
13235   glibcpp_cv_func__isnanf_use=no
13236 fi
13237 rm -f conftest*
13238       ac_ext=c
13239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13240 ac_cpp='$CPP $CPPFLAGS'
13241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13243 cross_compiling=$ac_cv_prog_cc_cross
13244
13245     
13246 fi
13247
13248   fi
13249   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13250
13251     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13252       for ac_func in _isnanf
13253 do
13254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13255 echo "configure:13256: checking for $ac_func" >&5
13256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13257   echo $ac_n "(cached) $ac_c" 1>&6
13258 else
13259   cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13262 /* System header to define __stub macros and hopefully few prototypes,
13263     which can conflict with char $ac_func(); below.  */
13264 #include <assert.h>
13265 /* Override any gcc2 internal prototype to avoid an error.  */
13266 /* We use char because int might match the return type of a gcc2
13267     builtin and then its argument prototype would still apply.  */
13268 char $ac_func();
13269
13270 int main() {
13271
13272 /* The GNU C library defines this for functions which it implements
13273     to always fail with ENOSYS.  Some functions are actually named
13274     something starting with __ and the normal name is an alias.  */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13276 choke me
13277 #else
13278 $ac_func();
13279 #endif
13280
13281 ; return 0; }
13282 EOF
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13284   rm -rf conftest*
13285   eval "ac_cv_func_$ac_func=yes"
13286 else
13287   echo "configure: failed program was:" >&5
13288   cat conftest.$ac_ext >&5
13289   rm -rf conftest*
13290   eval "ac_cv_func_$ac_func=no"
13291 fi
13292 rm -f conftest*
13293 fi
13294
13295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13296   echo "$ac_t""yes" 1>&6
13297     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13298   cat >> confdefs.h <<EOF
13299 #define $ac_tr_func 1
13300 EOF
13301  
13302 else
13303   echo "$ac_t""no" 1>&6
13304 fi
13305 done
13306
13307     fi
13308   fi
13309
13310   
13311   
13312   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13313 echo "configure:13314: checking for isinff declaration" >&5
13314   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13315     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13316   echo $ac_n "(cached) $ac_c" 1>&6
13317 else
13318   
13319       
13320       ac_ext=C
13321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CXXCPP $CPPFLAGS'
13323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cxx_cross
13326
13327       cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13330 #include <math.h>
13331                       #ifdef HAVE_IEEEFP_H
13332                       #include <ieeefp.h>
13333                       #endif
13334                      
13335 int main() {
13336  isinff(0);
13337 ; return 0; }
13338 EOF
13339 if { (eval echo configure:13340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13340   rm -rf conftest*
13341   glibcpp_cv_func_isinff_use=yes
13342 else
13343   echo "configure: failed program was:" >&5
13344   cat conftest.$ac_ext >&5
13345   rm -rf conftest*
13346   glibcpp_cv_func_isinff_use=no
13347 fi
13348 rm -f conftest*
13349       ac_ext=c
13350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13351 ac_cpp='$CPP $CPPFLAGS'
13352 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13353 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13354 cross_compiling=$ac_cv_prog_cc_cross
13355
13356     
13357 fi
13358
13359   fi
13360   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13361
13362   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13363     for ac_func in isinff
13364 do
13365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13366 echo "configure:13367: checking for $ac_func" >&5
13367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13368   echo $ac_n "(cached) $ac_c" 1>&6
13369 else
13370   cat > conftest.$ac_ext <<EOF
13371 #line 13372 "configure"
13372 #include "confdefs.h"
13373 /* System header to define __stub macros and hopefully few prototypes,
13374     which can conflict with char $ac_func(); below.  */
13375 #include <assert.h>
13376 /* Override any gcc2 internal prototype to avoid an error.  */
13377 /* We use char because int might match the return type of a gcc2
13378     builtin and then its argument prototype would still apply.  */
13379 char $ac_func();
13380
13381 int main() {
13382
13383 /* The GNU C library defines this for functions which it implements
13384     to always fail with ENOSYS.  Some functions are actually named
13385     something starting with __ and the normal name is an alias.  */
13386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13387 choke me
13388 #else
13389 $ac_func();
13390 #endif
13391
13392 ; return 0; }
13393 EOF
13394 if { (eval echo configure:13395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13395   rm -rf conftest*
13396   eval "ac_cv_func_$ac_func=yes"
13397 else
13398   echo "configure: failed program was:" >&5
13399   cat conftest.$ac_ext >&5
13400   rm -rf conftest*
13401   eval "ac_cv_func_$ac_func=no"
13402 fi
13403 rm -f conftest*
13404 fi
13405
13406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13407   echo "$ac_t""yes" 1>&6
13408     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13409   cat >> confdefs.h <<EOF
13410 #define $ac_tr_func 1
13411 EOF
13412  
13413 else
13414   echo "$ac_t""no" 1>&6
13415 fi
13416 done
13417
13418   else
13419     
13420   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13421 echo "configure:13422: checking for _isinff declaration" >&5
13422   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13423     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13424   echo $ac_n "(cached) $ac_c" 1>&6
13425 else
13426   
13427       
13428       ac_ext=C
13429 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13430 ac_cpp='$CXXCPP $CPPFLAGS'
13431 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13432 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13433 cross_compiling=$ac_cv_prog_cxx_cross
13434
13435       cat > conftest.$ac_ext <<EOF
13436 #line 13437 "configure"
13437 #include "confdefs.h"
13438 #include <math.h>
13439                       #ifdef HAVE_IEEEFP_H
13440                       #include <ieeefp.h>
13441                       #endif
13442                      
13443 int main() {
13444  _isinff(0);
13445 ; return 0; }
13446 EOF
13447 if { (eval echo configure:13448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13448   rm -rf conftest*
13449   glibcpp_cv_func__isinff_use=yes
13450 else
13451   echo "configure: failed program was:" >&5
13452   cat conftest.$ac_ext >&5
13453   rm -rf conftest*
13454   glibcpp_cv_func__isinff_use=no
13455 fi
13456 rm -f conftest*
13457       ac_ext=c
13458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13459 ac_cpp='$CPP $CPPFLAGS'
13460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13462 cross_compiling=$ac_cv_prog_cc_cross
13463
13464     
13465 fi
13466
13467   fi
13468   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13469
13470     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13471       for ac_func in _isinff
13472 do
13473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13474 echo "configure:13475: checking for $ac_func" >&5
13475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13476   echo $ac_n "(cached) $ac_c" 1>&6
13477 else
13478   cat > conftest.$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13481 /* System header to define __stub macros and hopefully few prototypes,
13482     which can conflict with char $ac_func(); below.  */
13483 #include <assert.h>
13484 /* Override any gcc2 internal prototype to avoid an error.  */
13485 /* We use char because int might match the return type of a gcc2
13486     builtin and then its argument prototype would still apply.  */
13487 char $ac_func();
13488
13489 int main() {
13490
13491 /* The GNU C library defines this for functions which it implements
13492     to always fail with ENOSYS.  Some functions are actually named
13493     something starting with __ and the normal name is an alias.  */
13494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13495 choke me
13496 #else
13497 $ac_func();
13498 #endif
13499
13500 ; return 0; }
13501 EOF
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503   rm -rf conftest*
13504   eval "ac_cv_func_$ac_func=yes"
13505 else
13506   echo "configure: failed program was:" >&5
13507   cat conftest.$ac_ext >&5
13508   rm -rf conftest*
13509   eval "ac_cv_func_$ac_func=no"
13510 fi
13511 rm -f conftest*
13512 fi
13513
13514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13515   echo "$ac_t""yes" 1>&6
13516     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13517   cat >> confdefs.h <<EOF
13518 #define $ac_tr_func 1
13519 EOF
13520  
13521 else
13522   echo "$ac_t""no" 1>&6
13523 fi
13524 done
13525
13526     fi
13527   fi
13528
13529   
13530   
13531   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13532 echo "configure:13533: checking for atan2f declaration" >&5
13533   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13534     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13535   echo $ac_n "(cached) $ac_c" 1>&6
13536 else
13537   
13538       
13539       ac_ext=C
13540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13541 ac_cpp='$CXXCPP $CPPFLAGS'
13542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13544 cross_compiling=$ac_cv_prog_cxx_cross
13545
13546       cat > conftest.$ac_ext <<EOF
13547 #line 13548 "configure"
13548 #include "confdefs.h"
13549 #include <math.h>
13550 int main() {
13551  atan2f(0, 0);
13552 ; return 0; }
13553 EOF
13554 if { (eval echo configure:13555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13555   rm -rf conftest*
13556   glibcpp_cv_func_atan2f_use=yes
13557 else
13558   echo "configure: failed program was:" >&5
13559   cat conftest.$ac_ext >&5
13560   rm -rf conftest*
13561   glibcpp_cv_func_atan2f_use=no
13562 fi
13563 rm -f conftest*
13564       ac_ext=c
13565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13566 ac_cpp='$CPP $CPPFLAGS'
13567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13569 cross_compiling=$ac_cv_prog_cc_cross
13570
13571     
13572 fi
13573
13574   fi
13575   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13576
13577   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13578     for ac_func in atan2f
13579 do
13580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13581 echo "configure:13582: checking for $ac_func" >&5
13582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13583   echo $ac_n "(cached) $ac_c" 1>&6
13584 else
13585   cat > conftest.$ac_ext <<EOF
13586 #line 13587 "configure"
13587 #include "confdefs.h"
13588 /* System header to define __stub macros and hopefully few prototypes,
13589     which can conflict with char $ac_func(); below.  */
13590 #include <assert.h>
13591 /* Override any gcc2 internal prototype to avoid an error.  */
13592 /* We use char because int might match the return type of a gcc2
13593     builtin and then its argument prototype would still apply.  */
13594 char $ac_func();
13595
13596 int main() {
13597
13598 /* The GNU C library defines this for functions which it implements
13599     to always fail with ENOSYS.  Some functions are actually named
13600     something starting with __ and the normal name is an alias.  */
13601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13602 choke me
13603 #else
13604 $ac_func();
13605 #endif
13606
13607 ; return 0; }
13608 EOF
13609 if { (eval echo configure:13610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13610   rm -rf conftest*
13611   eval "ac_cv_func_$ac_func=yes"
13612 else
13613   echo "configure: failed program was:" >&5
13614   cat conftest.$ac_ext >&5
13615   rm -rf conftest*
13616   eval "ac_cv_func_$ac_func=no"
13617 fi
13618 rm -f conftest*
13619 fi
13620
13621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13622   echo "$ac_t""yes" 1>&6
13623     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13624   cat >> confdefs.h <<EOF
13625 #define $ac_tr_func 1
13626 EOF
13627  
13628 else
13629   echo "$ac_t""no" 1>&6
13630 fi
13631 done
13632
13633   else
13634     
13635   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13636 echo "configure:13637: checking for _atan2f declaration" >&5
13637   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13638     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13639   echo $ac_n "(cached) $ac_c" 1>&6
13640 else
13641   
13642       
13643       ac_ext=C
13644 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13645 ac_cpp='$CXXCPP $CPPFLAGS'
13646 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13647 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13648 cross_compiling=$ac_cv_prog_cxx_cross
13649
13650       cat > conftest.$ac_ext <<EOF
13651 #line 13652 "configure"
13652 #include "confdefs.h"
13653 #include <math.h>
13654 int main() {
13655  _atan2f(0, 0);
13656 ; return 0; }
13657 EOF
13658 if { (eval echo configure:13659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13659   rm -rf conftest*
13660   glibcpp_cv_func__atan2f_use=yes
13661 else
13662   echo "configure: failed program was:" >&5
13663   cat conftest.$ac_ext >&5
13664   rm -rf conftest*
13665   glibcpp_cv_func__atan2f_use=no
13666 fi
13667 rm -f conftest*
13668       ac_ext=c
13669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13673 cross_compiling=$ac_cv_prog_cc_cross
13674
13675     
13676 fi
13677
13678   fi
13679   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13680
13681     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13682       for ac_func in _atan2f
13683 do
13684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13685 echo "configure:13686: checking for $ac_func" >&5
13686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13687   echo $ac_n "(cached) $ac_c" 1>&6
13688 else
13689   cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 /* System header to define __stub macros and hopefully few prototypes,
13693     which can conflict with char $ac_func(); below.  */
13694 #include <assert.h>
13695 /* Override any gcc2 internal prototype to avoid an error.  */
13696 /* We use char because int might match the return type of a gcc2
13697     builtin and then its argument prototype would still apply.  */
13698 char $ac_func();
13699
13700 int main() {
13701
13702 /* The GNU C library defines this for functions which it implements
13703     to always fail with ENOSYS.  Some functions are actually named
13704     something starting with __ and the normal name is an alias.  */
13705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706 choke me
13707 #else
13708 $ac_func();
13709 #endif
13710
13711 ; return 0; }
13712 EOF
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714   rm -rf conftest*
13715   eval "ac_cv_func_$ac_func=yes"
13716 else
13717   echo "configure: failed program was:" >&5
13718   cat conftest.$ac_ext >&5
13719   rm -rf conftest*
13720   eval "ac_cv_func_$ac_func=no"
13721 fi
13722 rm -f conftest*
13723 fi
13724
13725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13726   echo "$ac_t""yes" 1>&6
13727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13728   cat >> confdefs.h <<EOF
13729 #define $ac_tr_func 1
13730 EOF
13731  
13732 else
13733   echo "$ac_t""no" 1>&6
13734 fi
13735 done
13736
13737     fi
13738   fi
13739
13740   
13741   
13742   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13743 echo "configure:13744: checking for fabsf declaration" >&5
13744   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13745     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13746   echo $ac_n "(cached) $ac_c" 1>&6
13747 else
13748   
13749       
13750       ac_ext=C
13751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13752 ac_cpp='$CXXCPP $CPPFLAGS'
13753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13755 cross_compiling=$ac_cv_prog_cxx_cross
13756
13757       cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 #include <math.h>
13761                       #ifdef HAVE_IEEEFP_H
13762                       #include <ieeefp.h>
13763                       #endif
13764                      
13765 int main() {
13766  fabsf(0);
13767 ; return 0; }
13768 EOF
13769 if { (eval echo configure:13770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13770   rm -rf conftest*
13771   glibcpp_cv_func_fabsf_use=yes
13772 else
13773   echo "configure: failed program was:" >&5
13774   cat conftest.$ac_ext >&5
13775   rm -rf conftest*
13776   glibcpp_cv_func_fabsf_use=no
13777 fi
13778 rm -f conftest*
13779       ac_ext=c
13780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13784 cross_compiling=$ac_cv_prog_cc_cross
13785
13786     
13787 fi
13788
13789   fi
13790   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13791
13792   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13793     for ac_func in fabsf
13794 do
13795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13796 echo "configure:13797: checking for $ac_func" >&5
13797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13798   echo $ac_n "(cached) $ac_c" 1>&6
13799 else
13800   cat > conftest.$ac_ext <<EOF
13801 #line 13802 "configure"
13802 #include "confdefs.h"
13803 /* System header to define __stub macros and hopefully few prototypes,
13804     which can conflict with char $ac_func(); below.  */
13805 #include <assert.h>
13806 /* Override any gcc2 internal prototype to avoid an error.  */
13807 /* We use char because int might match the return type of a gcc2
13808     builtin and then its argument prototype would still apply.  */
13809 char $ac_func();
13810
13811 int main() {
13812
13813 /* The GNU C library defines this for functions which it implements
13814     to always fail with ENOSYS.  Some functions are actually named
13815     something starting with __ and the normal name is an alias.  */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 $ac_func();
13820 #endif
13821
13822 ; return 0; }
13823 EOF
13824 if { (eval echo configure:13825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13825   rm -rf conftest*
13826   eval "ac_cv_func_$ac_func=yes"
13827 else
13828   echo "configure: failed program was:" >&5
13829   cat conftest.$ac_ext >&5
13830   rm -rf conftest*
13831   eval "ac_cv_func_$ac_func=no"
13832 fi
13833 rm -f conftest*
13834 fi
13835
13836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13837   echo "$ac_t""yes" 1>&6
13838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13839   cat >> confdefs.h <<EOF
13840 #define $ac_tr_func 1
13841 EOF
13842  
13843 else
13844   echo "$ac_t""no" 1>&6
13845 fi
13846 done
13847
13848   else
13849     
13850   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13851 echo "configure:13852: checking for _fabsf declaration" >&5
13852   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13853     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13854   echo $ac_n "(cached) $ac_c" 1>&6
13855 else
13856   
13857       
13858       ac_ext=C
13859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13860 ac_cpp='$CXXCPP $CPPFLAGS'
13861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13863 cross_compiling=$ac_cv_prog_cxx_cross
13864
13865       cat > conftest.$ac_ext <<EOF
13866 #line 13867 "configure"
13867 #include "confdefs.h"
13868 #include <math.h>
13869                       #ifdef HAVE_IEEEFP_H
13870                       #include <ieeefp.h>
13871                       #endif
13872                      
13873 int main() {
13874  _fabsf(0);
13875 ; return 0; }
13876 EOF
13877 if { (eval echo configure:13878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13878   rm -rf conftest*
13879   glibcpp_cv_func__fabsf_use=yes
13880 else
13881   echo "configure: failed program was:" >&5
13882   cat conftest.$ac_ext >&5
13883   rm -rf conftest*
13884   glibcpp_cv_func__fabsf_use=no
13885 fi
13886 rm -f conftest*
13887       ac_ext=c
13888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13889 ac_cpp='$CPP $CPPFLAGS'
13890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13892 cross_compiling=$ac_cv_prog_cc_cross
13893
13894     
13895 fi
13896
13897   fi
13898   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13899
13900     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13901       for ac_func in _fabsf
13902 do
13903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13904 echo "configure:13905: checking for $ac_func" >&5
13905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13906   echo $ac_n "(cached) $ac_c" 1>&6
13907 else
13908   cat > conftest.$ac_ext <<EOF
13909 #line 13910 "configure"
13910 #include "confdefs.h"
13911 /* System header to define __stub macros and hopefully few prototypes,
13912     which can conflict with char $ac_func(); below.  */
13913 #include <assert.h>
13914 /* Override any gcc2 internal prototype to avoid an error.  */
13915 /* We use char because int might match the return type of a gcc2
13916     builtin and then its argument prototype would still apply.  */
13917 char $ac_func();
13918
13919 int main() {
13920
13921 /* The GNU C library defines this for functions which it implements
13922     to always fail with ENOSYS.  Some functions are actually named
13923     something starting with __ and the normal name is an alias.  */
13924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13925 choke me
13926 #else
13927 $ac_func();
13928 #endif
13929
13930 ; return 0; }
13931 EOF
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13933   rm -rf conftest*
13934   eval "ac_cv_func_$ac_func=yes"
13935 else
13936   echo "configure: failed program was:" >&5
13937   cat conftest.$ac_ext >&5
13938   rm -rf conftest*
13939   eval "ac_cv_func_$ac_func=no"
13940 fi
13941 rm -f conftest*
13942 fi
13943
13944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13945   echo "$ac_t""yes" 1>&6
13946     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13947   cat >> confdefs.h <<EOF
13948 #define $ac_tr_func 1
13949 EOF
13950  
13951 else
13952   echo "$ac_t""no" 1>&6
13953 fi
13954 done
13955
13956     fi
13957   fi
13958
13959   
13960   
13961   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13962 echo "configure:13963: checking for fmodf declaration" >&5
13963   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13964     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13965   echo $ac_n "(cached) $ac_c" 1>&6
13966 else
13967   
13968       
13969       ac_ext=C
13970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13971 ac_cpp='$CXXCPP $CPPFLAGS'
13972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13974 cross_compiling=$ac_cv_prog_cxx_cross
13975
13976       cat > conftest.$ac_ext <<EOF
13977 #line 13978 "configure"
13978 #include "confdefs.h"
13979 #include <math.h>
13980 int main() {
13981  fmodf(0, 0);
13982 ; return 0; }
13983 EOF
13984 if { (eval echo configure:13985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13985   rm -rf conftest*
13986   glibcpp_cv_func_fmodf_use=yes
13987 else
13988   echo "configure: failed program was:" >&5
13989   cat conftest.$ac_ext >&5
13990   rm -rf conftest*
13991   glibcpp_cv_func_fmodf_use=no
13992 fi
13993 rm -f conftest*
13994       ac_ext=c
13995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13996 ac_cpp='$CPP $CPPFLAGS'
13997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13999 cross_compiling=$ac_cv_prog_cc_cross
14000
14001     
14002 fi
14003
14004   fi
14005   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
14006
14007   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
14008     for ac_func in fmodf
14009 do
14010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14011 echo "configure:14012: checking for $ac_func" >&5
14012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14013   echo $ac_n "(cached) $ac_c" 1>&6
14014 else
14015   cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 /* System header to define __stub macros and hopefully few prototypes,
14019     which can conflict with char $ac_func(); below.  */
14020 #include <assert.h>
14021 /* Override any gcc2 internal prototype to avoid an error.  */
14022 /* We use char because int might match the return type of a gcc2
14023     builtin and then its argument prototype would still apply.  */
14024 char $ac_func();
14025
14026 int main() {
14027
14028 /* The GNU C library defines this for functions which it implements
14029     to always fail with ENOSYS.  Some functions are actually named
14030     something starting with __ and the normal name is an alias.  */
14031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14032 choke me
14033 #else
14034 $ac_func();
14035 #endif
14036
14037 ; return 0; }
14038 EOF
14039 if { (eval echo configure:14040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14040   rm -rf conftest*
14041   eval "ac_cv_func_$ac_func=yes"
14042 else
14043   echo "configure: failed program was:" >&5
14044   cat conftest.$ac_ext >&5
14045   rm -rf conftest*
14046   eval "ac_cv_func_$ac_func=no"
14047 fi
14048 rm -f conftest*
14049 fi
14050
14051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14052   echo "$ac_t""yes" 1>&6
14053     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14054   cat >> confdefs.h <<EOF
14055 #define $ac_tr_func 1
14056 EOF
14057  
14058 else
14059   echo "$ac_t""no" 1>&6
14060 fi
14061 done
14062
14063   else
14064     
14065   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14066 echo "configure:14067: checking for _fmodf declaration" >&5
14067   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14068     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14069   echo $ac_n "(cached) $ac_c" 1>&6
14070 else
14071   
14072       
14073       ac_ext=C
14074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14075 ac_cpp='$CXXCPP $CPPFLAGS'
14076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14078 cross_compiling=$ac_cv_prog_cxx_cross
14079
14080       cat > conftest.$ac_ext <<EOF
14081 #line 14082 "configure"
14082 #include "confdefs.h"
14083 #include <math.h>
14084 int main() {
14085  _fmodf(0, 0);
14086 ; return 0; }
14087 EOF
14088 if { (eval echo configure:14089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14089   rm -rf conftest*
14090   glibcpp_cv_func__fmodf_use=yes
14091 else
14092   echo "configure: failed program was:" >&5
14093   cat conftest.$ac_ext >&5
14094   rm -rf conftest*
14095   glibcpp_cv_func__fmodf_use=no
14096 fi
14097 rm -f conftest*
14098       ac_ext=c
14099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14100 ac_cpp='$CPP $CPPFLAGS'
14101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14103 cross_compiling=$ac_cv_prog_cc_cross
14104
14105     
14106 fi
14107
14108   fi
14109   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14110
14111     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14112       for ac_func in _fmodf
14113 do
14114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14115 echo "configure:14116: checking for $ac_func" >&5
14116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14117   echo $ac_n "(cached) $ac_c" 1>&6
14118 else
14119   cat > conftest.$ac_ext <<EOF
14120 #line 14121 "configure"
14121 #include "confdefs.h"
14122 /* System header to define __stub macros and hopefully few prototypes,
14123     which can conflict with char $ac_func(); below.  */
14124 #include <assert.h>
14125 /* Override any gcc2 internal prototype to avoid an error.  */
14126 /* We use char because int might match the return type of a gcc2
14127     builtin and then its argument prototype would still apply.  */
14128 char $ac_func();
14129
14130 int main() {
14131
14132 /* The GNU C library defines this for functions which it implements
14133     to always fail with ENOSYS.  Some functions are actually named
14134     something starting with __ and the normal name is an alias.  */
14135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14136 choke me
14137 #else
14138 $ac_func();
14139 #endif
14140
14141 ; return 0; }
14142 EOF
14143 if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14144   rm -rf conftest*
14145   eval "ac_cv_func_$ac_func=yes"
14146 else
14147   echo "configure: failed program was:" >&5
14148   cat conftest.$ac_ext >&5
14149   rm -rf conftest*
14150   eval "ac_cv_func_$ac_func=no"
14151 fi
14152 rm -f conftest*
14153 fi
14154
14155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14156   echo "$ac_t""yes" 1>&6
14157     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14158   cat >> confdefs.h <<EOF
14159 #define $ac_tr_func 1
14160 EOF
14161  
14162 else
14163   echo "$ac_t""no" 1>&6
14164 fi
14165 done
14166
14167     fi
14168   fi
14169
14170   
14171   
14172   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14173 echo "configure:14174: checking for frexpf declaration" >&5
14174   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14175     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14176   echo $ac_n "(cached) $ac_c" 1>&6
14177 else
14178   
14179       
14180       ac_ext=C
14181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14182 ac_cpp='$CXXCPP $CPPFLAGS'
14183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14185 cross_compiling=$ac_cv_prog_cxx_cross
14186
14187       cat > conftest.$ac_ext <<EOF
14188 #line 14189 "configure"
14189 #include "confdefs.h"
14190 #include <math.h>
14191 int main() {
14192  frexpf(0, 0);
14193 ; return 0; }
14194 EOF
14195 if { (eval echo configure:14196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14196   rm -rf conftest*
14197   glibcpp_cv_func_frexpf_use=yes
14198 else
14199   echo "configure: failed program was:" >&5
14200   cat conftest.$ac_ext >&5
14201   rm -rf conftest*
14202   glibcpp_cv_func_frexpf_use=no
14203 fi
14204 rm -f conftest*
14205       ac_ext=c
14206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14207 ac_cpp='$CPP $CPPFLAGS'
14208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14210 cross_compiling=$ac_cv_prog_cc_cross
14211
14212     
14213 fi
14214
14215   fi
14216   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14217
14218   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14219     for ac_func in frexpf
14220 do
14221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14222 echo "configure:14223: checking for $ac_func" >&5
14223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14224   echo $ac_n "(cached) $ac_c" 1>&6
14225 else
14226   cat > conftest.$ac_ext <<EOF
14227 #line 14228 "configure"
14228 #include "confdefs.h"
14229 /* System header to define __stub macros and hopefully few prototypes,
14230     which can conflict with char $ac_func(); below.  */
14231 #include <assert.h>
14232 /* Override any gcc2 internal prototype to avoid an error.  */
14233 /* We use char because int might match the return type of a gcc2
14234     builtin and then its argument prototype would still apply.  */
14235 char $ac_func();
14236
14237 int main() {
14238
14239 /* The GNU C library defines this for functions which it implements
14240     to always fail with ENOSYS.  Some functions are actually named
14241     something starting with __ and the normal name is an alias.  */
14242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14243 choke me
14244 #else
14245 $ac_func();
14246 #endif
14247
14248 ; return 0; }
14249 EOF
14250 if { (eval echo configure:14251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14251   rm -rf conftest*
14252   eval "ac_cv_func_$ac_func=yes"
14253 else
14254   echo "configure: failed program was:" >&5
14255   cat conftest.$ac_ext >&5
14256   rm -rf conftest*
14257   eval "ac_cv_func_$ac_func=no"
14258 fi
14259 rm -f conftest*
14260 fi
14261
14262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14263   echo "$ac_t""yes" 1>&6
14264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14265   cat >> confdefs.h <<EOF
14266 #define $ac_tr_func 1
14267 EOF
14268  
14269 else
14270   echo "$ac_t""no" 1>&6
14271 fi
14272 done
14273
14274   else
14275     
14276   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14277 echo "configure:14278: checking for _frexpf declaration" >&5
14278   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14279     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14280   echo $ac_n "(cached) $ac_c" 1>&6
14281 else
14282   
14283       
14284       ac_ext=C
14285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14286 ac_cpp='$CXXCPP $CPPFLAGS'
14287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14289 cross_compiling=$ac_cv_prog_cxx_cross
14290
14291       cat > conftest.$ac_ext <<EOF
14292 #line 14293 "configure"
14293 #include "confdefs.h"
14294 #include <math.h>
14295 int main() {
14296  _frexpf(0, 0);
14297 ; return 0; }
14298 EOF
14299 if { (eval echo configure:14300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14300   rm -rf conftest*
14301   glibcpp_cv_func__frexpf_use=yes
14302 else
14303   echo "configure: failed program was:" >&5
14304   cat conftest.$ac_ext >&5
14305   rm -rf conftest*
14306   glibcpp_cv_func__frexpf_use=no
14307 fi
14308 rm -f conftest*
14309       ac_ext=c
14310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14311 ac_cpp='$CPP $CPPFLAGS'
14312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14314 cross_compiling=$ac_cv_prog_cc_cross
14315
14316     
14317 fi
14318
14319   fi
14320   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14321
14322     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14323       for ac_func in _frexpf
14324 do
14325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14326 echo "configure:14327: checking for $ac_func" >&5
14327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14328   echo $ac_n "(cached) $ac_c" 1>&6
14329 else
14330   cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14333 /* System header to define __stub macros and hopefully few prototypes,
14334     which can conflict with char $ac_func(); below.  */
14335 #include <assert.h>
14336 /* Override any gcc2 internal prototype to avoid an error.  */
14337 /* We use char because int might match the return type of a gcc2
14338     builtin and then its argument prototype would still apply.  */
14339 char $ac_func();
14340
14341 int main() {
14342
14343 /* The GNU C library defines this for functions which it implements
14344     to always fail with ENOSYS.  Some functions are actually named
14345     something starting with __ and the normal name is an alias.  */
14346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14347 choke me
14348 #else
14349 $ac_func();
14350 #endif
14351
14352 ; return 0; }
14353 EOF
14354 if { (eval echo configure:14355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14355   rm -rf conftest*
14356   eval "ac_cv_func_$ac_func=yes"
14357 else
14358   echo "configure: failed program was:" >&5
14359   cat conftest.$ac_ext >&5
14360   rm -rf conftest*
14361   eval "ac_cv_func_$ac_func=no"
14362 fi
14363 rm -f conftest*
14364 fi
14365
14366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14367   echo "$ac_t""yes" 1>&6
14368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14369   cat >> confdefs.h <<EOF
14370 #define $ac_tr_func 1
14371 EOF
14372  
14373 else
14374   echo "$ac_t""no" 1>&6
14375 fi
14376 done
14377
14378     fi
14379   fi
14380
14381   
14382   
14383   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14384 echo "configure:14385: checking for hypotf declaration" >&5
14385   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14386     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14387   echo $ac_n "(cached) $ac_c" 1>&6
14388 else
14389   
14390       
14391       ac_ext=C
14392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14393 ac_cpp='$CXXCPP $CPPFLAGS'
14394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14396 cross_compiling=$ac_cv_prog_cxx_cross
14397
14398       cat > conftest.$ac_ext <<EOF
14399 #line 14400 "configure"
14400 #include "confdefs.h"
14401 #include <math.h>
14402 int main() {
14403  hypotf(0, 0);
14404 ; return 0; }
14405 EOF
14406 if { (eval echo configure:14407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14407   rm -rf conftest*
14408   glibcpp_cv_func_hypotf_use=yes
14409 else
14410   echo "configure: failed program was:" >&5
14411   cat conftest.$ac_ext >&5
14412   rm -rf conftest*
14413   glibcpp_cv_func_hypotf_use=no
14414 fi
14415 rm -f conftest*
14416       ac_ext=c
14417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14418 ac_cpp='$CPP $CPPFLAGS'
14419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14421 cross_compiling=$ac_cv_prog_cc_cross
14422
14423     
14424 fi
14425
14426   fi
14427   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14428
14429   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14430     for ac_func in hypotf
14431 do
14432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14433 echo "configure:14434: checking for $ac_func" >&5
14434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14435   echo $ac_n "(cached) $ac_c" 1>&6
14436 else
14437   cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14440 /* System header to define __stub macros and hopefully few prototypes,
14441     which can conflict with char $ac_func(); below.  */
14442 #include <assert.h>
14443 /* Override any gcc2 internal prototype to avoid an error.  */
14444 /* We use char because int might match the return type of a gcc2
14445     builtin and then its argument prototype would still apply.  */
14446 char $ac_func();
14447
14448 int main() {
14449
14450 /* The GNU C library defines this for functions which it implements
14451     to always fail with ENOSYS.  Some functions are actually named
14452     something starting with __ and the normal name is an alias.  */
14453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14454 choke me
14455 #else
14456 $ac_func();
14457 #endif
14458
14459 ; return 0; }
14460 EOF
14461 if { (eval echo configure:14462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14462   rm -rf conftest*
14463   eval "ac_cv_func_$ac_func=yes"
14464 else
14465   echo "configure: failed program was:" >&5
14466   cat conftest.$ac_ext >&5
14467   rm -rf conftest*
14468   eval "ac_cv_func_$ac_func=no"
14469 fi
14470 rm -f conftest*
14471 fi
14472
14473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14474   echo "$ac_t""yes" 1>&6
14475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14476   cat >> confdefs.h <<EOF
14477 #define $ac_tr_func 1
14478 EOF
14479  
14480 else
14481   echo "$ac_t""no" 1>&6
14482 fi
14483 done
14484
14485   else
14486     
14487   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14488 echo "configure:14489: checking for _hypotf declaration" >&5
14489   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14490     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14491   echo $ac_n "(cached) $ac_c" 1>&6
14492 else
14493   
14494       
14495       ac_ext=C
14496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14497 ac_cpp='$CXXCPP $CPPFLAGS'
14498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14500 cross_compiling=$ac_cv_prog_cxx_cross
14501
14502       cat > conftest.$ac_ext <<EOF
14503 #line 14504 "configure"
14504 #include "confdefs.h"
14505 #include <math.h>
14506 int main() {
14507  _hypotf(0, 0);
14508 ; return 0; }
14509 EOF
14510 if { (eval echo configure:14511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14511   rm -rf conftest*
14512   glibcpp_cv_func__hypotf_use=yes
14513 else
14514   echo "configure: failed program was:" >&5
14515   cat conftest.$ac_ext >&5
14516   rm -rf conftest*
14517   glibcpp_cv_func__hypotf_use=no
14518 fi
14519 rm -f conftest*
14520       ac_ext=c
14521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14525 cross_compiling=$ac_cv_prog_cc_cross
14526
14527     
14528 fi
14529
14530   fi
14531   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14532
14533     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14534       for ac_func in _hypotf
14535 do
14536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14537 echo "configure:14538: checking for $ac_func" >&5
14538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14539   echo $ac_n "(cached) $ac_c" 1>&6
14540 else
14541   cat > conftest.$ac_ext <<EOF
14542 #line 14543 "configure"
14543 #include "confdefs.h"
14544 /* System header to define __stub macros and hopefully few prototypes,
14545     which can conflict with char $ac_func(); below.  */
14546 #include <assert.h>
14547 /* Override any gcc2 internal prototype to avoid an error.  */
14548 /* We use char because int might match the return type of a gcc2
14549     builtin and then its argument prototype would still apply.  */
14550 char $ac_func();
14551
14552 int main() {
14553
14554 /* The GNU C library defines this for functions which it implements
14555     to always fail with ENOSYS.  Some functions are actually named
14556     something starting with __ and the normal name is an alias.  */
14557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14558 choke me
14559 #else
14560 $ac_func();
14561 #endif
14562
14563 ; return 0; }
14564 EOF
14565 if { (eval echo configure:14566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14566   rm -rf conftest*
14567   eval "ac_cv_func_$ac_func=yes"
14568 else
14569   echo "configure: failed program was:" >&5
14570   cat conftest.$ac_ext >&5
14571   rm -rf conftest*
14572   eval "ac_cv_func_$ac_func=no"
14573 fi
14574 rm -f conftest*
14575 fi
14576
14577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14578   echo "$ac_t""yes" 1>&6
14579     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14580   cat >> confdefs.h <<EOF
14581 #define $ac_tr_func 1
14582 EOF
14583  
14584 else
14585   echo "$ac_t""no" 1>&6
14586 fi
14587 done
14588
14589     fi
14590   fi
14591
14592   
14593   
14594   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14595 echo "configure:14596: checking for ldexpf declaration" >&5
14596   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14597     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14598   echo $ac_n "(cached) $ac_c" 1>&6
14599 else
14600   
14601       
14602       ac_ext=C
14603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14604 ac_cpp='$CXXCPP $CPPFLAGS'
14605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14607 cross_compiling=$ac_cv_prog_cxx_cross
14608
14609       cat > conftest.$ac_ext <<EOF
14610 #line 14611 "configure"
14611 #include "confdefs.h"
14612 #include <math.h>
14613 int main() {
14614  ldexpf(0, 0);
14615 ; return 0; }
14616 EOF
14617 if { (eval echo configure:14618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14618   rm -rf conftest*
14619   glibcpp_cv_func_ldexpf_use=yes
14620 else
14621   echo "configure: failed program was:" >&5
14622   cat conftest.$ac_ext >&5
14623   rm -rf conftest*
14624   glibcpp_cv_func_ldexpf_use=no
14625 fi
14626 rm -f conftest*
14627       ac_ext=c
14628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14629 ac_cpp='$CPP $CPPFLAGS'
14630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14632 cross_compiling=$ac_cv_prog_cc_cross
14633
14634     
14635 fi
14636
14637   fi
14638   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14639
14640   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14641     for ac_func in ldexpf
14642 do
14643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14644 echo "configure:14645: checking for $ac_func" >&5
14645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14646   echo $ac_n "(cached) $ac_c" 1>&6
14647 else
14648   cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 /* System header to define __stub macros and hopefully few prototypes,
14652     which can conflict with char $ac_func(); below.  */
14653 #include <assert.h>
14654 /* Override any gcc2 internal prototype to avoid an error.  */
14655 /* We use char because int might match the return type of a gcc2
14656     builtin and then its argument prototype would still apply.  */
14657 char $ac_func();
14658
14659 int main() {
14660
14661 /* The GNU C library defines this for functions which it implements
14662     to always fail with ENOSYS.  Some functions are actually named
14663     something starting with __ and the normal name is an alias.  */
14664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14665 choke me
14666 #else
14667 $ac_func();
14668 #endif
14669
14670 ; return 0; }
14671 EOF
14672 if { (eval echo configure:14673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14673   rm -rf conftest*
14674   eval "ac_cv_func_$ac_func=yes"
14675 else
14676   echo "configure: failed program was:" >&5
14677   cat conftest.$ac_ext >&5
14678   rm -rf conftest*
14679   eval "ac_cv_func_$ac_func=no"
14680 fi
14681 rm -f conftest*
14682 fi
14683
14684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14685   echo "$ac_t""yes" 1>&6
14686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14687   cat >> confdefs.h <<EOF
14688 #define $ac_tr_func 1
14689 EOF
14690  
14691 else
14692   echo "$ac_t""no" 1>&6
14693 fi
14694 done
14695
14696   else
14697     
14698   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14699 echo "configure:14700: checking for _ldexpf declaration" >&5
14700   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14701     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14702   echo $ac_n "(cached) $ac_c" 1>&6
14703 else
14704   
14705       
14706       ac_ext=C
14707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14708 ac_cpp='$CXXCPP $CPPFLAGS'
14709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14711 cross_compiling=$ac_cv_prog_cxx_cross
14712
14713       cat > conftest.$ac_ext <<EOF
14714 #line 14715 "configure"
14715 #include "confdefs.h"
14716 #include <math.h>
14717 int main() {
14718  _ldexpf(0, 0);
14719 ; return 0; }
14720 EOF
14721 if { (eval echo configure:14722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14722   rm -rf conftest*
14723   glibcpp_cv_func__ldexpf_use=yes
14724 else
14725   echo "configure: failed program was:" >&5
14726   cat conftest.$ac_ext >&5
14727   rm -rf conftest*
14728   glibcpp_cv_func__ldexpf_use=no
14729 fi
14730 rm -f conftest*
14731       ac_ext=c
14732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14733 ac_cpp='$CPP $CPPFLAGS'
14734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14736 cross_compiling=$ac_cv_prog_cc_cross
14737
14738     
14739 fi
14740
14741   fi
14742   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14743
14744     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14745       for ac_func in _ldexpf
14746 do
14747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14748 echo "configure:14749: checking for $ac_func" >&5
14749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14750   echo $ac_n "(cached) $ac_c" 1>&6
14751 else
14752   cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14755 /* System header to define __stub macros and hopefully few prototypes,
14756     which can conflict with char $ac_func(); below.  */
14757 #include <assert.h>
14758 /* Override any gcc2 internal prototype to avoid an error.  */
14759 /* We use char because int might match the return type of a gcc2
14760     builtin and then its argument prototype would still apply.  */
14761 char $ac_func();
14762
14763 int main() {
14764
14765 /* The GNU C library defines this for functions which it implements
14766     to always fail with ENOSYS.  Some functions are actually named
14767     something starting with __ and the normal name is an alias.  */
14768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14769 choke me
14770 #else
14771 $ac_func();
14772 #endif
14773
14774 ; return 0; }
14775 EOF
14776 if { (eval echo configure:14777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14777   rm -rf conftest*
14778   eval "ac_cv_func_$ac_func=yes"
14779 else
14780   echo "configure: failed program was:" >&5
14781   cat conftest.$ac_ext >&5
14782   rm -rf conftest*
14783   eval "ac_cv_func_$ac_func=no"
14784 fi
14785 rm -f conftest*
14786 fi
14787
14788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14789   echo "$ac_t""yes" 1>&6
14790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14791   cat >> confdefs.h <<EOF
14792 #define $ac_tr_func 1
14793 EOF
14794  
14795 else
14796   echo "$ac_t""no" 1>&6
14797 fi
14798 done
14799
14800     fi
14801   fi
14802
14803   
14804   
14805   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14806 echo "configure:14807: checking for logf declaration" >&5
14807   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14808     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14809   echo $ac_n "(cached) $ac_c" 1>&6
14810 else
14811   
14812       
14813       ac_ext=C
14814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14815 ac_cpp='$CXXCPP $CPPFLAGS'
14816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14818 cross_compiling=$ac_cv_prog_cxx_cross
14819
14820       cat > conftest.$ac_ext <<EOF
14821 #line 14822 "configure"
14822 #include "confdefs.h"
14823 #include <math.h>
14824                       #ifdef HAVE_IEEEFP_H
14825                       #include <ieeefp.h>
14826                       #endif
14827                      
14828 int main() {
14829  logf(0);
14830 ; return 0; }
14831 EOF
14832 if { (eval echo configure:14833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14833   rm -rf conftest*
14834   glibcpp_cv_func_logf_use=yes
14835 else
14836   echo "configure: failed program was:" >&5
14837   cat conftest.$ac_ext >&5
14838   rm -rf conftest*
14839   glibcpp_cv_func_logf_use=no
14840 fi
14841 rm -f conftest*
14842       ac_ext=c
14843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14844 ac_cpp='$CPP $CPPFLAGS'
14845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14847 cross_compiling=$ac_cv_prog_cc_cross
14848
14849     
14850 fi
14851
14852   fi
14853   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14854
14855   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14856     for ac_func in logf
14857 do
14858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14859 echo "configure:14860: checking for $ac_func" >&5
14860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14861   echo $ac_n "(cached) $ac_c" 1>&6
14862 else
14863   cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14866 /* System header to define __stub macros and hopefully few prototypes,
14867     which can conflict with char $ac_func(); below.  */
14868 #include <assert.h>
14869 /* Override any gcc2 internal prototype to avoid an error.  */
14870 /* We use char because int might match the return type of a gcc2
14871     builtin and then its argument prototype would still apply.  */
14872 char $ac_func();
14873
14874 int main() {
14875
14876 /* The GNU C library defines this for functions which it implements
14877     to always fail with ENOSYS.  Some functions are actually named
14878     something starting with __ and the normal name is an alias.  */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14880 choke me
14881 #else
14882 $ac_func();
14883 #endif
14884
14885 ; return 0; }
14886 EOF
14887 if { (eval echo configure:14888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14888   rm -rf conftest*
14889   eval "ac_cv_func_$ac_func=yes"
14890 else
14891   echo "configure: failed program was:" >&5
14892   cat conftest.$ac_ext >&5
14893   rm -rf conftest*
14894   eval "ac_cv_func_$ac_func=no"
14895 fi
14896 rm -f conftest*
14897 fi
14898
14899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14900   echo "$ac_t""yes" 1>&6
14901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14902   cat >> confdefs.h <<EOF
14903 #define $ac_tr_func 1
14904 EOF
14905  
14906 else
14907   echo "$ac_t""no" 1>&6
14908 fi
14909 done
14910
14911   else
14912     
14913   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14914 echo "configure:14915: checking for _logf declaration" >&5
14915   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14916     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14917   echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14919   
14920       
14921       ac_ext=C
14922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14923 ac_cpp='$CXXCPP $CPPFLAGS'
14924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14926 cross_compiling=$ac_cv_prog_cxx_cross
14927
14928       cat > conftest.$ac_ext <<EOF
14929 #line 14930 "configure"
14930 #include "confdefs.h"
14931 #include <math.h>
14932                       #ifdef HAVE_IEEEFP_H
14933                       #include <ieeefp.h>
14934                       #endif
14935                      
14936 int main() {
14937  _logf(0);
14938 ; return 0; }
14939 EOF
14940 if { (eval echo configure:14941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14941   rm -rf conftest*
14942   glibcpp_cv_func__logf_use=yes
14943 else
14944   echo "configure: failed program was:" >&5
14945   cat conftest.$ac_ext >&5
14946   rm -rf conftest*
14947   glibcpp_cv_func__logf_use=no
14948 fi
14949 rm -f conftest*
14950       ac_ext=c
14951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14952 ac_cpp='$CPP $CPPFLAGS'
14953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14955 cross_compiling=$ac_cv_prog_cc_cross
14956
14957     
14958 fi
14959
14960   fi
14961   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14962
14963     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14964       for ac_func in _logf
14965 do
14966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14967 echo "configure:14968: checking for $ac_func" >&5
14968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14969   echo $ac_n "(cached) $ac_c" 1>&6
14970 else
14971   cat > conftest.$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974 /* System header to define __stub macros and hopefully few prototypes,
14975     which can conflict with char $ac_func(); below.  */
14976 #include <assert.h>
14977 /* Override any gcc2 internal prototype to avoid an error.  */
14978 /* We use char because int might match the return type of a gcc2
14979     builtin and then its argument prototype would still apply.  */
14980 char $ac_func();
14981
14982 int main() {
14983
14984 /* The GNU C library defines this for functions which it implements
14985     to always fail with ENOSYS.  Some functions are actually named
14986     something starting with __ and the normal name is an alias.  */
14987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14988 choke me
14989 #else
14990 $ac_func();
14991 #endif
14992
14993 ; return 0; }
14994 EOF
14995 if { (eval echo configure:14996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14996   rm -rf conftest*
14997   eval "ac_cv_func_$ac_func=yes"
14998 else
14999   echo "configure: failed program was:" >&5
15000   cat conftest.$ac_ext >&5
15001   rm -rf conftest*
15002   eval "ac_cv_func_$ac_func=no"
15003 fi
15004 rm -f conftest*
15005 fi
15006
15007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15008   echo "$ac_t""yes" 1>&6
15009     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15010   cat >> confdefs.h <<EOF
15011 #define $ac_tr_func 1
15012 EOF
15013  
15014 else
15015   echo "$ac_t""no" 1>&6
15016 fi
15017 done
15018
15019     fi
15020   fi
15021
15022   
15023   
15024   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
15025 echo "configure:15026: checking for log10f declaration" >&5
15026   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
15027     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
15028   echo $ac_n "(cached) $ac_c" 1>&6
15029 else
15030   
15031       
15032       ac_ext=C
15033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15034 ac_cpp='$CXXCPP $CPPFLAGS'
15035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15037 cross_compiling=$ac_cv_prog_cxx_cross
15038
15039       cat > conftest.$ac_ext <<EOF
15040 #line 15041 "configure"
15041 #include "confdefs.h"
15042 #include <math.h>
15043                       #ifdef HAVE_IEEEFP_H
15044                       #include <ieeefp.h>
15045                       #endif
15046                      
15047 int main() {
15048  log10f(0);
15049 ; return 0; }
15050 EOF
15051 if { (eval echo configure:15052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15052   rm -rf conftest*
15053   glibcpp_cv_func_log10f_use=yes
15054 else
15055   echo "configure: failed program was:" >&5
15056   cat conftest.$ac_ext >&5
15057   rm -rf conftest*
15058   glibcpp_cv_func_log10f_use=no
15059 fi
15060 rm -f conftest*
15061       ac_ext=c
15062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15063 ac_cpp='$CPP $CPPFLAGS'
15064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15066 cross_compiling=$ac_cv_prog_cc_cross
15067
15068     
15069 fi
15070
15071   fi
15072   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15073
15074   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15075     for ac_func in log10f
15076 do
15077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15078 echo "configure:15079: checking for $ac_func" >&5
15079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15080   echo $ac_n "(cached) $ac_c" 1>&6
15081 else
15082   cat > conftest.$ac_ext <<EOF
15083 #line 15084 "configure"
15084 #include "confdefs.h"
15085 /* System header to define __stub macros and hopefully few prototypes,
15086     which can conflict with char $ac_func(); below.  */
15087 #include <assert.h>
15088 /* Override any gcc2 internal prototype to avoid an error.  */
15089 /* We use char because int might match the return type of a gcc2
15090     builtin and then its argument prototype would still apply.  */
15091 char $ac_func();
15092
15093 int main() {
15094
15095 /* The GNU C library defines this for functions which it implements
15096     to always fail with ENOSYS.  Some functions are actually named
15097     something starting with __ and the normal name is an alias.  */
15098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15099 choke me
15100 #else
15101 $ac_func();
15102 #endif
15103
15104 ; return 0; }
15105 EOF
15106 if { (eval echo configure:15107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15107   rm -rf conftest*
15108   eval "ac_cv_func_$ac_func=yes"
15109 else
15110   echo "configure: failed program was:" >&5
15111   cat conftest.$ac_ext >&5
15112   rm -rf conftest*
15113   eval "ac_cv_func_$ac_func=no"
15114 fi
15115 rm -f conftest*
15116 fi
15117
15118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15119   echo "$ac_t""yes" 1>&6
15120     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15121   cat >> confdefs.h <<EOF
15122 #define $ac_tr_func 1
15123 EOF
15124  
15125 else
15126   echo "$ac_t""no" 1>&6
15127 fi
15128 done
15129
15130   else
15131     
15132   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
15133 echo "configure:15134: checking for _log10f declaration" >&5
15134   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
15135     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
15136   echo $ac_n "(cached) $ac_c" 1>&6
15137 else
15138   
15139       
15140       ac_ext=C
15141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15142 ac_cpp='$CXXCPP $CPPFLAGS'
15143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15145 cross_compiling=$ac_cv_prog_cxx_cross
15146
15147       cat > conftest.$ac_ext <<EOF
15148 #line 15149 "configure"
15149 #include "confdefs.h"
15150 #include <math.h>
15151                       #ifdef HAVE_IEEEFP_H
15152                       #include <ieeefp.h>
15153                       #endif
15154                      
15155 int main() {
15156  _log10f(0);
15157 ; return 0; }
15158 EOF
15159 if { (eval echo configure:15160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15160   rm -rf conftest*
15161   glibcpp_cv_func__log10f_use=yes
15162 else
15163   echo "configure: failed program was:" >&5
15164   cat conftest.$ac_ext >&5
15165   rm -rf conftest*
15166   glibcpp_cv_func__log10f_use=no
15167 fi
15168 rm -f conftest*
15169       ac_ext=c
15170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15171 ac_cpp='$CPP $CPPFLAGS'
15172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15174 cross_compiling=$ac_cv_prog_cc_cross
15175
15176     
15177 fi
15178
15179   fi
15180   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15181
15182     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15183       for ac_func in _log10f
15184 do
15185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15186 echo "configure:15187: checking for $ac_func" >&5
15187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15188   echo $ac_n "(cached) $ac_c" 1>&6
15189 else
15190   cat > conftest.$ac_ext <<EOF
15191 #line 15192 "configure"
15192 #include "confdefs.h"
15193 /* System header to define __stub macros and hopefully few prototypes,
15194     which can conflict with char $ac_func(); below.  */
15195 #include <assert.h>
15196 /* Override any gcc2 internal prototype to avoid an error.  */
15197 /* We use char because int might match the return type of a gcc2
15198     builtin and then its argument prototype would still apply.  */
15199 char $ac_func();
15200
15201 int main() {
15202
15203 /* The GNU C library defines this for functions which it implements
15204     to always fail with ENOSYS.  Some functions are actually named
15205     something starting with __ and the normal name is an alias.  */
15206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15207 choke me
15208 #else
15209 $ac_func();
15210 #endif
15211
15212 ; return 0; }
15213 EOF
15214 if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15215   rm -rf conftest*
15216   eval "ac_cv_func_$ac_func=yes"
15217 else
15218   echo "configure: failed program was:" >&5
15219   cat conftest.$ac_ext >&5
15220   rm -rf conftest*
15221   eval "ac_cv_func_$ac_func=no"
15222 fi
15223 rm -f conftest*
15224 fi
15225
15226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15227   echo "$ac_t""yes" 1>&6
15228     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15229   cat >> confdefs.h <<EOF
15230 #define $ac_tr_func 1
15231 EOF
15232  
15233 else
15234   echo "$ac_t""no" 1>&6
15235 fi
15236 done
15237
15238     fi
15239   fi
15240
15241   
15242   
15243   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15244 echo "configure:15245: checking for modff declaration" >&5
15245   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15246     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15247   echo $ac_n "(cached) $ac_c" 1>&6
15248 else
15249   
15250       
15251       ac_ext=C
15252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15253 ac_cpp='$CXXCPP $CPPFLAGS'
15254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15256 cross_compiling=$ac_cv_prog_cxx_cross
15257
15258       cat > conftest.$ac_ext <<EOF
15259 #line 15260 "configure"
15260 #include "confdefs.h"
15261 #include <math.h>
15262 int main() {
15263  modff(0, 0);
15264 ; return 0; }
15265 EOF
15266 if { (eval echo configure:15267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15267   rm -rf conftest*
15268   glibcpp_cv_func_modff_use=yes
15269 else
15270   echo "configure: failed program was:" >&5
15271   cat conftest.$ac_ext >&5
15272   rm -rf conftest*
15273   glibcpp_cv_func_modff_use=no
15274 fi
15275 rm -f conftest*
15276       ac_ext=c
15277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15278 ac_cpp='$CPP $CPPFLAGS'
15279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15281 cross_compiling=$ac_cv_prog_cc_cross
15282
15283     
15284 fi
15285
15286   fi
15287   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15288
15289   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15290     for ac_func in modff
15291 do
15292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15293 echo "configure:15294: checking for $ac_func" >&5
15294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15295   echo $ac_n "(cached) $ac_c" 1>&6
15296 else
15297   cat > conftest.$ac_ext <<EOF
15298 #line 15299 "configure"
15299 #include "confdefs.h"
15300 /* System header to define __stub macros and hopefully few prototypes,
15301     which can conflict with char $ac_func(); below.  */
15302 #include <assert.h>
15303 /* Override any gcc2 internal prototype to avoid an error.  */
15304 /* We use char because int might match the return type of a gcc2
15305     builtin and then its argument prototype would still apply.  */
15306 char $ac_func();
15307
15308 int main() {
15309
15310 /* The GNU C library defines this for functions which it implements
15311     to always fail with ENOSYS.  Some functions are actually named
15312     something starting with __ and the normal name is an alias.  */
15313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15314 choke me
15315 #else
15316 $ac_func();
15317 #endif
15318
15319 ; return 0; }
15320 EOF
15321 if { (eval echo configure:15322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15322   rm -rf conftest*
15323   eval "ac_cv_func_$ac_func=yes"
15324 else
15325   echo "configure: failed program was:" >&5
15326   cat conftest.$ac_ext >&5
15327   rm -rf conftest*
15328   eval "ac_cv_func_$ac_func=no"
15329 fi
15330 rm -f conftest*
15331 fi
15332
15333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15334   echo "$ac_t""yes" 1>&6
15335     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15336   cat >> confdefs.h <<EOF
15337 #define $ac_tr_func 1
15338 EOF
15339  
15340 else
15341   echo "$ac_t""no" 1>&6
15342 fi
15343 done
15344
15345   else
15346     
15347   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15348 echo "configure:15349: checking for _modff declaration" >&5
15349   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15350     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15351   echo $ac_n "(cached) $ac_c" 1>&6
15352 else
15353   
15354       
15355       ac_ext=C
15356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15357 ac_cpp='$CXXCPP $CPPFLAGS'
15358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15360 cross_compiling=$ac_cv_prog_cxx_cross
15361
15362       cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 #include <math.h>
15366 int main() {
15367  _modff(0, 0);
15368 ; return 0; }
15369 EOF
15370 if { (eval echo configure:15371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15371   rm -rf conftest*
15372   glibcpp_cv_func__modff_use=yes
15373 else
15374   echo "configure: failed program was:" >&5
15375   cat conftest.$ac_ext >&5
15376   rm -rf conftest*
15377   glibcpp_cv_func__modff_use=no
15378 fi
15379 rm -f conftest*
15380       ac_ext=c
15381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15382 ac_cpp='$CPP $CPPFLAGS'
15383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15385 cross_compiling=$ac_cv_prog_cc_cross
15386
15387     
15388 fi
15389
15390   fi
15391   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15392
15393     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15394       for ac_func in _modff
15395 do
15396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15397 echo "configure:15398: checking for $ac_func" >&5
15398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15399   echo $ac_n "(cached) $ac_c" 1>&6
15400 else
15401   cat > conftest.$ac_ext <<EOF
15402 #line 15403 "configure"
15403 #include "confdefs.h"
15404 /* System header to define __stub macros and hopefully few prototypes,
15405     which can conflict with char $ac_func(); below.  */
15406 #include <assert.h>
15407 /* Override any gcc2 internal prototype to avoid an error.  */
15408 /* We use char because int might match the return type of a gcc2
15409     builtin and then its argument prototype would still apply.  */
15410 char $ac_func();
15411
15412 int main() {
15413
15414 /* The GNU C library defines this for functions which it implements
15415     to always fail with ENOSYS.  Some functions are actually named
15416     something starting with __ and the normal name is an alias.  */
15417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15418 choke me
15419 #else
15420 $ac_func();
15421 #endif
15422
15423 ; return 0; }
15424 EOF
15425 if { (eval echo configure:15426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15426   rm -rf conftest*
15427   eval "ac_cv_func_$ac_func=yes"
15428 else
15429   echo "configure: failed program was:" >&5
15430   cat conftest.$ac_ext >&5
15431   rm -rf conftest*
15432   eval "ac_cv_func_$ac_func=no"
15433 fi
15434 rm -f conftest*
15435 fi
15436
15437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15438   echo "$ac_t""yes" 1>&6
15439     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15440   cat >> confdefs.h <<EOF
15441 #define $ac_tr_func 1
15442 EOF
15443  
15444 else
15445   echo "$ac_t""no" 1>&6
15446 fi
15447 done
15448
15449     fi
15450   fi
15451
15452   
15453   
15454   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15455 echo "configure:15456: checking for powf declaration" >&5
15456   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15457     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15458   echo $ac_n "(cached) $ac_c" 1>&6
15459 else
15460   
15461       
15462       ac_ext=C
15463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15464 ac_cpp='$CXXCPP $CPPFLAGS'
15465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15467 cross_compiling=$ac_cv_prog_cxx_cross
15468
15469       cat > conftest.$ac_ext <<EOF
15470 #line 15471 "configure"
15471 #include "confdefs.h"
15472 #include <math.h>
15473 int main() {
15474  powf(0, 0);
15475 ; return 0; }
15476 EOF
15477 if { (eval echo configure:15478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15478   rm -rf conftest*
15479   glibcpp_cv_func_powf_use=yes
15480 else
15481   echo "configure: failed program was:" >&5
15482   cat conftest.$ac_ext >&5
15483   rm -rf conftest*
15484   glibcpp_cv_func_powf_use=no
15485 fi
15486 rm -f conftest*
15487       ac_ext=c
15488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15492 cross_compiling=$ac_cv_prog_cc_cross
15493
15494     
15495 fi
15496
15497   fi
15498   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15499
15500   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15501     for ac_func in powf
15502 do
15503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15504 echo "configure:15505: checking for $ac_func" >&5
15505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15506   echo $ac_n "(cached) $ac_c" 1>&6
15507 else
15508   cat > conftest.$ac_ext <<EOF
15509 #line 15510 "configure"
15510 #include "confdefs.h"
15511 /* System header to define __stub macros and hopefully few prototypes,
15512     which can conflict with char $ac_func(); below.  */
15513 #include <assert.h>
15514 /* Override any gcc2 internal prototype to avoid an error.  */
15515 /* We use char because int might match the return type of a gcc2
15516     builtin and then its argument prototype would still apply.  */
15517 char $ac_func();
15518
15519 int main() {
15520
15521 /* The GNU C library defines this for functions which it implements
15522     to always fail with ENOSYS.  Some functions are actually named
15523     something starting with __ and the normal name is an alias.  */
15524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15525 choke me
15526 #else
15527 $ac_func();
15528 #endif
15529
15530 ; return 0; }
15531 EOF
15532 if { (eval echo configure:15533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15533   rm -rf conftest*
15534   eval "ac_cv_func_$ac_func=yes"
15535 else
15536   echo "configure: failed program was:" >&5
15537   cat conftest.$ac_ext >&5
15538   rm -rf conftest*
15539   eval "ac_cv_func_$ac_func=no"
15540 fi
15541 rm -f conftest*
15542 fi
15543
15544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15545   echo "$ac_t""yes" 1>&6
15546     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15547   cat >> confdefs.h <<EOF
15548 #define $ac_tr_func 1
15549 EOF
15550  
15551 else
15552   echo "$ac_t""no" 1>&6
15553 fi
15554 done
15555
15556   else
15557     
15558   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15559 echo "configure:15560: checking for _powf declaration" >&5
15560   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15561     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15562   echo $ac_n "(cached) $ac_c" 1>&6
15563 else
15564   
15565       
15566       ac_ext=C
15567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15568 ac_cpp='$CXXCPP $CPPFLAGS'
15569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15571 cross_compiling=$ac_cv_prog_cxx_cross
15572
15573       cat > conftest.$ac_ext <<EOF
15574 #line 15575 "configure"
15575 #include "confdefs.h"
15576 #include <math.h>
15577 int main() {
15578  _powf(0, 0);
15579 ; return 0; }
15580 EOF
15581 if { (eval echo configure:15582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15582   rm -rf conftest*
15583   glibcpp_cv_func__powf_use=yes
15584 else
15585   echo "configure: failed program was:" >&5
15586   cat conftest.$ac_ext >&5
15587   rm -rf conftest*
15588   glibcpp_cv_func__powf_use=no
15589 fi
15590 rm -f conftest*
15591       ac_ext=c
15592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15596 cross_compiling=$ac_cv_prog_cc_cross
15597
15598     
15599 fi
15600
15601   fi
15602   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15603
15604     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15605       for ac_func in _powf
15606 do
15607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15608 echo "configure:15609: checking for $ac_func" >&5
15609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15610   echo $ac_n "(cached) $ac_c" 1>&6
15611 else
15612   cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* System header to define __stub macros and hopefully few prototypes,
15616     which can conflict with char $ac_func(); below.  */
15617 #include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error.  */
15619 /* We use char because int might match the return type of a gcc2
15620     builtin and then its argument prototype would still apply.  */
15621 char $ac_func();
15622
15623 int main() {
15624
15625 /* The GNU C library defines this for functions which it implements
15626     to always fail with ENOSYS.  Some functions are actually named
15627     something starting with __ and the normal name is an alias.  */
15628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15629 choke me
15630 #else
15631 $ac_func();
15632 #endif
15633
15634 ; return 0; }
15635 EOF
15636 if { (eval echo configure:15637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15637   rm -rf conftest*
15638   eval "ac_cv_func_$ac_func=yes"
15639 else
15640   echo "configure: failed program was:" >&5
15641   cat conftest.$ac_ext >&5
15642   rm -rf conftest*
15643   eval "ac_cv_func_$ac_func=no"
15644 fi
15645 rm -f conftest*
15646 fi
15647
15648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15649   echo "$ac_t""yes" 1>&6
15650     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15651   cat >> confdefs.h <<EOF
15652 #define $ac_tr_func 1
15653 EOF
15654  
15655 else
15656   echo "$ac_t""no" 1>&6
15657 fi
15658 done
15659
15660     fi
15661   fi
15662
15663   
15664   
15665   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15666 echo "configure:15667: checking for sqrtf declaration" >&5
15667   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15668     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15669   echo $ac_n "(cached) $ac_c" 1>&6
15670 else
15671   
15672       
15673       ac_ext=C
15674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15675 ac_cpp='$CXXCPP $CPPFLAGS'
15676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15678 cross_compiling=$ac_cv_prog_cxx_cross
15679
15680       cat > conftest.$ac_ext <<EOF
15681 #line 15682 "configure"
15682 #include "confdefs.h"
15683 #include <math.h>
15684                       #ifdef HAVE_IEEEFP_H
15685                       #include <ieeefp.h>
15686                       #endif
15687                      
15688 int main() {
15689  sqrtf(0);
15690 ; return 0; }
15691 EOF
15692 if { (eval echo configure:15693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15693   rm -rf conftest*
15694   glibcpp_cv_func_sqrtf_use=yes
15695 else
15696   echo "configure: failed program was:" >&5
15697   cat conftest.$ac_ext >&5
15698   rm -rf conftest*
15699   glibcpp_cv_func_sqrtf_use=no
15700 fi
15701 rm -f conftest*
15702       ac_ext=c
15703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15704 ac_cpp='$CPP $CPPFLAGS'
15705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15707 cross_compiling=$ac_cv_prog_cc_cross
15708
15709     
15710 fi
15711
15712   fi
15713   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15714
15715   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15716     for ac_func in sqrtf
15717 do
15718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15719 echo "configure:15720: checking for $ac_func" >&5
15720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15721   echo $ac_n "(cached) $ac_c" 1>&6
15722 else
15723   cat > conftest.$ac_ext <<EOF
15724 #line 15725 "configure"
15725 #include "confdefs.h"
15726 /* System header to define __stub macros and hopefully few prototypes,
15727     which can conflict with char $ac_func(); below.  */
15728 #include <assert.h>
15729 /* Override any gcc2 internal prototype to avoid an error.  */
15730 /* We use char because int might match the return type of a gcc2
15731     builtin and then its argument prototype would still apply.  */
15732 char $ac_func();
15733
15734 int main() {
15735
15736 /* The GNU C library defines this for functions which it implements
15737     to always fail with ENOSYS.  Some functions are actually named
15738     something starting with __ and the normal name is an alias.  */
15739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15740 choke me
15741 #else
15742 $ac_func();
15743 #endif
15744
15745 ; return 0; }
15746 EOF
15747 if { (eval echo configure:15748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15748   rm -rf conftest*
15749   eval "ac_cv_func_$ac_func=yes"
15750 else
15751   echo "configure: failed program was:" >&5
15752   cat conftest.$ac_ext >&5
15753   rm -rf conftest*
15754   eval "ac_cv_func_$ac_func=no"
15755 fi
15756 rm -f conftest*
15757 fi
15758
15759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15760   echo "$ac_t""yes" 1>&6
15761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15762   cat >> confdefs.h <<EOF
15763 #define $ac_tr_func 1
15764 EOF
15765  
15766 else
15767   echo "$ac_t""no" 1>&6
15768 fi
15769 done
15770
15771   else
15772     
15773   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15774 echo "configure:15775: checking for _sqrtf declaration" >&5
15775   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15776     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15777   echo $ac_n "(cached) $ac_c" 1>&6
15778 else
15779   
15780       
15781       ac_ext=C
15782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15783 ac_cpp='$CXXCPP $CPPFLAGS'
15784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15786 cross_compiling=$ac_cv_prog_cxx_cross
15787
15788       cat > conftest.$ac_ext <<EOF
15789 #line 15790 "configure"
15790 #include "confdefs.h"
15791 #include <math.h>
15792                       #ifdef HAVE_IEEEFP_H
15793                       #include <ieeefp.h>
15794                       #endif
15795                      
15796 int main() {
15797  _sqrtf(0);
15798 ; return 0; }
15799 EOF
15800 if { (eval echo configure:15801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15801   rm -rf conftest*
15802   glibcpp_cv_func__sqrtf_use=yes
15803 else
15804   echo "configure: failed program was:" >&5
15805   cat conftest.$ac_ext >&5
15806   rm -rf conftest*
15807   glibcpp_cv_func__sqrtf_use=no
15808 fi
15809 rm -f conftest*
15810       ac_ext=c
15811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15815 cross_compiling=$ac_cv_prog_cc_cross
15816
15817     
15818 fi
15819
15820   fi
15821   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15822
15823     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15824       for ac_func in _sqrtf
15825 do
15826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15827 echo "configure:15828: checking for $ac_func" >&5
15828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15829   echo $ac_n "(cached) $ac_c" 1>&6
15830 else
15831   cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 /* System header to define __stub macros and hopefully few prototypes,
15835     which can conflict with char $ac_func(); below.  */
15836 #include <assert.h>
15837 /* Override any gcc2 internal prototype to avoid an error.  */
15838 /* We use char because int might match the return type of a gcc2
15839     builtin and then its argument prototype would still apply.  */
15840 char $ac_func();
15841
15842 int main() {
15843
15844 /* The GNU C library defines this for functions which it implements
15845     to always fail with ENOSYS.  Some functions are actually named
15846     something starting with __ and the normal name is an alias.  */
15847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15848 choke me
15849 #else
15850 $ac_func();
15851 #endif
15852
15853 ; return 0; }
15854 EOF
15855 if { (eval echo configure:15856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15856   rm -rf conftest*
15857   eval "ac_cv_func_$ac_func=yes"
15858 else
15859   echo "configure: failed program was:" >&5
15860   cat conftest.$ac_ext >&5
15861   rm -rf conftest*
15862   eval "ac_cv_func_$ac_func=no"
15863 fi
15864 rm -f conftest*
15865 fi
15866
15867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15868   echo "$ac_t""yes" 1>&6
15869     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15870   cat >> confdefs.h <<EOF
15871 #define $ac_tr_func 1
15872 EOF
15873  
15874 else
15875   echo "$ac_t""no" 1>&6
15876 fi
15877 done
15878
15879     fi
15880   fi
15881
15882   
15883   
15884   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15885 echo "configure:15886: checking for sincosf declaration" >&5
15886   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15887     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15888   echo $ac_n "(cached) $ac_c" 1>&6
15889 else
15890   
15891       
15892       ac_ext=C
15893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15894 ac_cpp='$CXXCPP $CPPFLAGS'
15895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15897 cross_compiling=$ac_cv_prog_cxx_cross
15898
15899       cat > conftest.$ac_ext <<EOF
15900 #line 15901 "configure"
15901 #include "confdefs.h"
15902 #include <math.h>
15903 int main() {
15904  sincosf(0, 0, 0);
15905 ; return 0; }
15906 EOF
15907 if { (eval echo configure:15908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15908   rm -rf conftest*
15909   glibcpp_cv_func_sincosf_use=yes
15910 else
15911   echo "configure: failed program was:" >&5
15912   cat conftest.$ac_ext >&5
15913   rm -rf conftest*
15914   glibcpp_cv_func_sincosf_use=no
15915 fi
15916 rm -f conftest*
15917       ac_ext=c
15918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15919 ac_cpp='$CPP $CPPFLAGS'
15920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15922 cross_compiling=$ac_cv_prog_cc_cross
15923
15924     
15925 fi
15926
15927   fi
15928   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15929
15930   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15931     for ac_func in sincosf
15932 do
15933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15934 echo "configure:15935: checking for $ac_func" >&5
15935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15936   echo $ac_n "(cached) $ac_c" 1>&6
15937 else
15938   cat > conftest.$ac_ext <<EOF
15939 #line 15940 "configure"
15940 #include "confdefs.h"
15941 /* System header to define __stub macros and hopefully few prototypes,
15942     which can conflict with char $ac_func(); below.  */
15943 #include <assert.h>
15944 /* Override any gcc2 internal prototype to avoid an error.  */
15945 /* We use char because int might match the return type of a gcc2
15946     builtin and then its argument prototype would still apply.  */
15947 char $ac_func();
15948
15949 int main() {
15950
15951 /* The GNU C library defines this for functions which it implements
15952     to always fail with ENOSYS.  Some functions are actually named
15953     something starting with __ and the normal name is an alias.  */
15954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15955 choke me
15956 #else
15957 $ac_func();
15958 #endif
15959
15960 ; return 0; }
15961 EOF
15962 if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15963   rm -rf conftest*
15964   eval "ac_cv_func_$ac_func=yes"
15965 else
15966   echo "configure: failed program was:" >&5
15967   cat conftest.$ac_ext >&5
15968   rm -rf conftest*
15969   eval "ac_cv_func_$ac_func=no"
15970 fi
15971 rm -f conftest*
15972 fi
15973
15974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15975   echo "$ac_t""yes" 1>&6
15976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15977   cat >> confdefs.h <<EOF
15978 #define $ac_tr_func 1
15979 EOF
15980  
15981 else
15982   echo "$ac_t""no" 1>&6
15983 fi
15984 done
15985
15986   else
15987     
15988   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15989 echo "configure:15990: checking for _sincosf declaration" >&5
15990   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15991     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15992   echo $ac_n "(cached) $ac_c" 1>&6
15993 else
15994   
15995       
15996       ac_ext=C
15997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15998 ac_cpp='$CXXCPP $CPPFLAGS'
15999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16001 cross_compiling=$ac_cv_prog_cxx_cross
16002
16003       cat > conftest.$ac_ext <<EOF
16004 #line 16005 "configure"
16005 #include "confdefs.h"
16006 #include <math.h>
16007 int main() {
16008  _sincosf(0, 0, 0);
16009 ; return 0; }
16010 EOF
16011 if { (eval echo configure:16012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16012   rm -rf conftest*
16013   glibcpp_cv_func__sincosf_use=yes
16014 else
16015   echo "configure: failed program was:" >&5
16016   cat conftest.$ac_ext >&5
16017   rm -rf conftest*
16018   glibcpp_cv_func__sincosf_use=no
16019 fi
16020 rm -f conftest*
16021       ac_ext=c
16022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16023 ac_cpp='$CPP $CPPFLAGS'
16024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16026 cross_compiling=$ac_cv_prog_cc_cross
16027
16028     
16029 fi
16030
16031   fi
16032   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
16033
16034     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
16035       for ac_func in _sincosf
16036 do
16037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16038 echo "configure:16039: checking for $ac_func" >&5
16039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16040   echo $ac_n "(cached) $ac_c" 1>&6
16041 else
16042   cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16045 /* System header to define __stub macros and hopefully few prototypes,
16046     which can conflict with char $ac_func(); below.  */
16047 #include <assert.h>
16048 /* Override any gcc2 internal prototype to avoid an error.  */
16049 /* We use char because int might match the return type of a gcc2
16050     builtin and then its argument prototype would still apply.  */
16051 char $ac_func();
16052
16053 int main() {
16054
16055 /* The GNU C library defines this for functions which it implements
16056     to always fail with ENOSYS.  Some functions are actually named
16057     something starting with __ and the normal name is an alias.  */
16058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16059 choke me
16060 #else
16061 $ac_func();
16062 #endif
16063
16064 ; return 0; }
16065 EOF
16066 if { (eval echo configure:16067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16067   rm -rf conftest*
16068   eval "ac_cv_func_$ac_func=yes"
16069 else
16070   echo "configure: failed program was:" >&5
16071   cat conftest.$ac_ext >&5
16072   rm -rf conftest*
16073   eval "ac_cv_func_$ac_func=no"
16074 fi
16075 rm -f conftest*
16076 fi
16077
16078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16079   echo "$ac_t""yes" 1>&6
16080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16081   cat >> confdefs.h <<EOF
16082 #define $ac_tr_func 1
16083 EOF
16084  
16085 else
16086   echo "$ac_t""no" 1>&6
16087 fi
16088 done
16089
16090     fi
16091   fi
16092
16093   
16094   
16095   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16096 echo "configure:16097: checking for finitef declaration" >&5
16097   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16098     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16099   echo $ac_n "(cached) $ac_c" 1>&6
16100 else
16101   
16102       
16103       ac_ext=C
16104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16105 ac_cpp='$CXXCPP $CPPFLAGS'
16106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16108 cross_compiling=$ac_cv_prog_cxx_cross
16109
16110       cat > conftest.$ac_ext <<EOF
16111 #line 16112 "configure"
16112 #include "confdefs.h"
16113 #include <math.h>
16114                       #ifdef HAVE_IEEEFP_H
16115                       #include <ieeefp.h>
16116                       #endif
16117                      
16118 int main() {
16119  finitef(0);
16120 ; return 0; }
16121 EOF
16122 if { (eval echo configure:16123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16123   rm -rf conftest*
16124   glibcpp_cv_func_finitef_use=yes
16125 else
16126   echo "configure: failed program was:" >&5
16127   cat conftest.$ac_ext >&5
16128   rm -rf conftest*
16129   glibcpp_cv_func_finitef_use=no
16130 fi
16131 rm -f conftest*
16132       ac_ext=c
16133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16134 ac_cpp='$CPP $CPPFLAGS'
16135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16137 cross_compiling=$ac_cv_prog_cc_cross
16138
16139     
16140 fi
16141
16142   fi
16143   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
16144
16145   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
16146     for ac_func in finitef
16147 do
16148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16149 echo "configure:16150: checking for $ac_func" >&5
16150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16151   echo $ac_n "(cached) $ac_c" 1>&6
16152 else
16153   cat > conftest.$ac_ext <<EOF
16154 #line 16155 "configure"
16155 #include "confdefs.h"
16156 /* System header to define __stub macros and hopefully few prototypes,
16157     which can conflict with char $ac_func(); below.  */
16158 #include <assert.h>
16159 /* Override any gcc2 internal prototype to avoid an error.  */
16160 /* We use char because int might match the return type of a gcc2
16161     builtin and then its argument prototype would still apply.  */
16162 char $ac_func();
16163
16164 int main() {
16165
16166 /* The GNU C library defines this for functions which it implements
16167     to always fail with ENOSYS.  Some functions are actually named
16168     something starting with __ and the normal name is an alias.  */
16169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16170 choke me
16171 #else
16172 $ac_func();
16173 #endif
16174
16175 ; return 0; }
16176 EOF
16177 if { (eval echo configure:16178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16178   rm -rf conftest*
16179   eval "ac_cv_func_$ac_func=yes"
16180 else
16181   echo "configure: failed program was:" >&5
16182   cat conftest.$ac_ext >&5
16183   rm -rf conftest*
16184   eval "ac_cv_func_$ac_func=no"
16185 fi
16186 rm -f conftest*
16187 fi
16188
16189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16190   echo "$ac_t""yes" 1>&6
16191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16192   cat >> confdefs.h <<EOF
16193 #define $ac_tr_func 1
16194 EOF
16195  
16196 else
16197   echo "$ac_t""no" 1>&6
16198 fi
16199 done
16200
16201   else
16202     
16203   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16204 echo "configure:16205: checking for _finitef declaration" >&5
16205   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16206     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16207   echo $ac_n "(cached) $ac_c" 1>&6
16208 else
16209   
16210       
16211       ac_ext=C
16212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16213 ac_cpp='$CXXCPP $CPPFLAGS'
16214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16216 cross_compiling=$ac_cv_prog_cxx_cross
16217
16218       cat > conftest.$ac_ext <<EOF
16219 #line 16220 "configure"
16220 #include "confdefs.h"
16221 #include <math.h>
16222                       #ifdef HAVE_IEEEFP_H
16223                       #include <ieeefp.h>
16224                       #endif
16225                      
16226 int main() {
16227  _finitef(0);
16228 ; return 0; }
16229 EOF
16230 if { (eval echo configure:16231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16231   rm -rf conftest*
16232   glibcpp_cv_func__finitef_use=yes
16233 else
16234   echo "configure: failed program was:" >&5
16235   cat conftest.$ac_ext >&5
16236   rm -rf conftest*
16237   glibcpp_cv_func__finitef_use=no
16238 fi
16239 rm -f conftest*
16240       ac_ext=c
16241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16242 ac_cpp='$CPP $CPPFLAGS'
16243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16245 cross_compiling=$ac_cv_prog_cc_cross
16246
16247     
16248 fi
16249
16250   fi
16251   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16252
16253     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16254       for ac_func in _finitef
16255 do
16256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16257 echo "configure:16258: checking for $ac_func" >&5
16258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16259   echo $ac_n "(cached) $ac_c" 1>&6
16260 else
16261   cat > conftest.$ac_ext <<EOF
16262 #line 16263 "configure"
16263 #include "confdefs.h"
16264 /* System header to define __stub macros and hopefully few prototypes,
16265     which can conflict with char $ac_func(); below.  */
16266 #include <assert.h>
16267 /* Override any gcc2 internal prototype to avoid an error.  */
16268 /* We use char because int might match the return type of a gcc2
16269     builtin and then its argument prototype would still apply.  */
16270 char $ac_func();
16271
16272 int main() {
16273
16274 /* The GNU C library defines this for functions which it implements
16275     to always fail with ENOSYS.  Some functions are actually named
16276     something starting with __ and the normal name is an alias.  */
16277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16278 choke me
16279 #else
16280 $ac_func();
16281 #endif
16282
16283 ; return 0; }
16284 EOF
16285 if { (eval echo configure:16286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16286   rm -rf conftest*
16287   eval "ac_cv_func_$ac_func=yes"
16288 else
16289   echo "configure: failed program was:" >&5
16290   cat conftest.$ac_ext >&5
16291   rm -rf conftest*
16292   eval "ac_cv_func_$ac_func=no"
16293 fi
16294 rm -f conftest*
16295 fi
16296
16297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16298   echo "$ac_t""yes" 1>&6
16299     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16300   cat >> confdefs.h <<EOF
16301 #define $ac_tr_func 1
16302 EOF
16303  
16304 else
16305   echo "$ac_t""no" 1>&6
16306 fi
16307 done
16308
16309     fi
16310   fi
16311
16312
16313     
16314   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16315 echo "configure:16316: checking for long double trig functions" >&5
16316   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16317   echo $ac_n "(cached) $ac_c" 1>&6
16318 else
16319   
16320     
16321     ac_ext=C
16322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16323 ac_cpp='$CXXCPP $CPPFLAGS'
16324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16326 cross_compiling=$ac_cv_prog_cxx_cross
16327
16328     cat > conftest.$ac_ext <<EOF
16329 #line 16330 "configure"
16330 #include "confdefs.h"
16331 #include <math.h>
16332 int main() {
16333  `for x in acosl asinl atanl \
16334                                           cosl sinl tanl \
16335                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16336 ; return 0; }
16337 EOF
16338 if { (eval echo configure:16339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16339   rm -rf conftest*
16340   glibcpp_cv_func_long_double_trig_use=yes
16341 else
16342   echo "configure: failed program was:" >&5
16343   cat conftest.$ac_ext >&5
16344   rm -rf conftest*
16345   glibcpp_cv_func_long_double_trig_use=no
16346 fi
16347 rm -f conftest*
16348     ac_ext=c
16349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16350 ac_cpp='$CPP $CPPFLAGS'
16351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16353 cross_compiling=$ac_cv_prog_cc_cross
16354
16355 fi
16356
16357   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16358   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16359     for ac_func in acosl asinl atanl \
16360                                           cosl sinl tanl \
16361                                           coshl sinhl tanhl
16362 do
16363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16364 echo "configure:16365: checking for $ac_func" >&5
16365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16366   echo $ac_n "(cached) $ac_c" 1>&6
16367 else
16368   cat > conftest.$ac_ext <<EOF
16369 #line 16370 "configure"
16370 #include "confdefs.h"
16371 /* System header to define __stub macros and hopefully few prototypes,
16372     which can conflict with char $ac_func(); below.  */
16373 #include <assert.h>
16374 /* Override any gcc2 internal prototype to avoid an error.  */
16375 /* We use char because int might match the return type of a gcc2
16376     builtin and then its argument prototype would still apply.  */
16377 char $ac_func();
16378
16379 int main() {
16380
16381 /* The GNU C library defines this for functions which it implements
16382     to always fail with ENOSYS.  Some functions are actually named
16383     something starting with __ and the normal name is an alias.  */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385 choke me
16386 #else
16387 $ac_func();
16388 #endif
16389
16390 ; return 0; }
16391 EOF
16392 if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16393   rm -rf conftest*
16394   eval "ac_cv_func_$ac_func=yes"
16395 else
16396   echo "configure: failed program was:" >&5
16397   cat conftest.$ac_ext >&5
16398   rm -rf conftest*
16399   eval "ac_cv_func_$ac_func=no"
16400 fi
16401 rm -f conftest*
16402 fi
16403
16404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16405   echo "$ac_t""yes" 1>&6
16406     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16407   cat >> confdefs.h <<EOF
16408 #define $ac_tr_func 1
16409 EOF
16410  
16411 else
16412   echo "$ac_t""no" 1>&6
16413 fi
16414 done
16415
16416   fi
16417
16418   
16419   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16420 echo "configure:16421: checking for long double round functions" >&5
16421   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16422   echo $ac_n "(cached) $ac_c" 1>&6
16423 else
16424   
16425     
16426     ac_ext=C
16427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16428 ac_cpp='$CXXCPP $CPPFLAGS'
16429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16431 cross_compiling=$ac_cv_prog_cxx_cross
16432
16433     cat > conftest.$ac_ext <<EOF
16434 #line 16435 "configure"
16435 #include "confdefs.h"
16436 #include <math.h>
16437 int main() {
16438  `for x in ceill floorl; do echo "$x (0);"; done` 
16439 ; return 0; }
16440 EOF
16441 if { (eval echo configure:16442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16442   rm -rf conftest*
16443   glibcpp_cv_func_long_double_round_use=yes
16444 else
16445   echo "configure: failed program was:" >&5
16446   cat conftest.$ac_ext >&5
16447   rm -rf conftest*
16448   glibcpp_cv_func_long_double_round_use=no
16449 fi
16450 rm -f conftest*
16451     ac_ext=c
16452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16453 ac_cpp='$CPP $CPPFLAGS'
16454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16456 cross_compiling=$ac_cv_prog_cc_cross
16457
16458 fi
16459
16460   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16461   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16462     for ac_func in ceill floorl
16463 do
16464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16465 echo "configure:16466: checking for $ac_func" >&5
16466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16467   echo $ac_n "(cached) $ac_c" 1>&6
16468 else
16469   cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472 /* System header to define __stub macros and hopefully few prototypes,
16473     which can conflict with char $ac_func(); below.  */
16474 #include <assert.h>
16475 /* Override any gcc2 internal prototype to avoid an error.  */
16476 /* We use char because int might match the return type of a gcc2
16477     builtin and then its argument prototype would still apply.  */
16478 char $ac_func();
16479
16480 int main() {
16481
16482 /* The GNU C library defines this for functions which it implements
16483     to always fail with ENOSYS.  Some functions are actually named
16484     something starting with __ and the normal name is an alias.  */
16485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16486 choke me
16487 #else
16488 $ac_func();
16489 #endif
16490
16491 ; return 0; }
16492 EOF
16493 if { (eval echo configure:16494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16494   rm -rf conftest*
16495   eval "ac_cv_func_$ac_func=yes"
16496 else
16497   echo "configure: failed program was:" >&5
16498   cat conftest.$ac_ext >&5
16499   rm -rf conftest*
16500   eval "ac_cv_func_$ac_func=no"
16501 fi
16502 rm -f conftest*
16503 fi
16504
16505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16506   echo "$ac_t""yes" 1>&6
16507     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16508   cat >> confdefs.h <<EOF
16509 #define $ac_tr_func 1
16510 EOF
16511  
16512 else
16513   echo "$ac_t""no" 1>&6
16514 fi
16515 done
16516
16517   fi
16518
16519   
16520   
16521   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16522 echo "configure:16523: checking for isnanl declaration" >&5
16523   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16524     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16525   echo $ac_n "(cached) $ac_c" 1>&6
16526 else
16527   
16528       
16529       ac_ext=C
16530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16531 ac_cpp='$CXXCPP $CPPFLAGS'
16532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16534 cross_compiling=$ac_cv_prog_cxx_cross
16535
16536       cat > conftest.$ac_ext <<EOF
16537 #line 16538 "configure"
16538 #include "confdefs.h"
16539 #include <math.h>
16540                       #ifdef HAVE_IEEEFP_H
16541                       #include <ieeefp.h>
16542                       #endif
16543                      
16544 int main() {
16545  isnanl(0);
16546 ; return 0; }
16547 EOF
16548 if { (eval echo configure:16549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16549   rm -rf conftest*
16550   glibcpp_cv_func_isnanl_use=yes
16551 else
16552   echo "configure: failed program was:" >&5
16553   cat conftest.$ac_ext >&5
16554   rm -rf conftest*
16555   glibcpp_cv_func_isnanl_use=no
16556 fi
16557 rm -f conftest*
16558       ac_ext=c
16559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16560 ac_cpp='$CPP $CPPFLAGS'
16561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16563 cross_compiling=$ac_cv_prog_cc_cross
16564
16565     
16566 fi
16567
16568   fi
16569   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16570
16571   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16572     for ac_func in isnanl
16573 do
16574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16575 echo "configure:16576: checking for $ac_func" >&5
16576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16577   echo $ac_n "(cached) $ac_c" 1>&6
16578 else
16579   cat > conftest.$ac_ext <<EOF
16580 #line 16581 "configure"
16581 #include "confdefs.h"
16582 /* System header to define __stub macros and hopefully few prototypes,
16583     which can conflict with char $ac_func(); below.  */
16584 #include <assert.h>
16585 /* Override any gcc2 internal prototype to avoid an error.  */
16586 /* We use char because int might match the return type of a gcc2
16587     builtin and then its argument prototype would still apply.  */
16588 char $ac_func();
16589
16590 int main() {
16591
16592 /* The GNU C library defines this for functions which it implements
16593     to always fail with ENOSYS.  Some functions are actually named
16594     something starting with __ and the normal name is an alias.  */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596 choke me
16597 #else
16598 $ac_func();
16599 #endif
16600
16601 ; return 0; }
16602 EOF
16603 if { (eval echo configure:16604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16604   rm -rf conftest*
16605   eval "ac_cv_func_$ac_func=yes"
16606 else
16607   echo "configure: failed program was:" >&5
16608   cat conftest.$ac_ext >&5
16609   rm -rf conftest*
16610   eval "ac_cv_func_$ac_func=no"
16611 fi
16612 rm -f conftest*
16613 fi
16614
16615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16616   echo "$ac_t""yes" 1>&6
16617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16618   cat >> confdefs.h <<EOF
16619 #define $ac_tr_func 1
16620 EOF
16621  
16622 else
16623   echo "$ac_t""no" 1>&6
16624 fi
16625 done
16626
16627   else
16628     
16629   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16630 echo "configure:16631: checking for _isnanl declaration" >&5
16631   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16632     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16633   echo $ac_n "(cached) $ac_c" 1>&6
16634 else
16635   
16636       
16637       ac_ext=C
16638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16639 ac_cpp='$CXXCPP $CPPFLAGS'
16640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16642 cross_compiling=$ac_cv_prog_cxx_cross
16643
16644       cat > conftest.$ac_ext <<EOF
16645 #line 16646 "configure"
16646 #include "confdefs.h"
16647 #include <math.h>
16648                       #ifdef HAVE_IEEEFP_H
16649                       #include <ieeefp.h>
16650                       #endif
16651                      
16652 int main() {
16653  _isnanl(0);
16654 ; return 0; }
16655 EOF
16656 if { (eval echo configure:16657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16657   rm -rf conftest*
16658   glibcpp_cv_func__isnanl_use=yes
16659 else
16660   echo "configure: failed program was:" >&5
16661   cat conftest.$ac_ext >&5
16662   rm -rf conftest*
16663   glibcpp_cv_func__isnanl_use=no
16664 fi
16665 rm -f conftest*
16666       ac_ext=c
16667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16668 ac_cpp='$CPP $CPPFLAGS'
16669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16671 cross_compiling=$ac_cv_prog_cc_cross
16672
16673     
16674 fi
16675
16676   fi
16677   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16678
16679     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16680       for ac_func in _isnanl
16681 do
16682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16683 echo "configure:16684: checking for $ac_func" >&5
16684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16685   echo $ac_n "(cached) $ac_c" 1>&6
16686 else
16687   cat > conftest.$ac_ext <<EOF
16688 #line 16689 "configure"
16689 #include "confdefs.h"
16690 /* System header to define __stub macros and hopefully few prototypes,
16691     which can conflict with char $ac_func(); below.  */
16692 #include <assert.h>
16693 /* Override any gcc2 internal prototype to avoid an error.  */
16694 /* We use char because int might match the return type of a gcc2
16695     builtin and then its argument prototype would still apply.  */
16696 char $ac_func();
16697
16698 int main() {
16699
16700 /* The GNU C library defines this for functions which it implements
16701     to always fail with ENOSYS.  Some functions are actually named
16702     something starting with __ and the normal name is an alias.  */
16703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16704 choke me
16705 #else
16706 $ac_func();
16707 #endif
16708
16709 ; return 0; }
16710 EOF
16711 if { (eval echo configure:16712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16712   rm -rf conftest*
16713   eval "ac_cv_func_$ac_func=yes"
16714 else
16715   echo "configure: failed program was:" >&5
16716   cat conftest.$ac_ext >&5
16717   rm -rf conftest*
16718   eval "ac_cv_func_$ac_func=no"
16719 fi
16720 rm -f conftest*
16721 fi
16722
16723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16724   echo "$ac_t""yes" 1>&6
16725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16726   cat >> confdefs.h <<EOF
16727 #define $ac_tr_func 1
16728 EOF
16729  
16730 else
16731   echo "$ac_t""no" 1>&6
16732 fi
16733 done
16734
16735     fi
16736   fi
16737
16738   
16739   
16740   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16741 echo "configure:16742: checking for isinfl declaration" >&5
16742   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16743     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16744   echo $ac_n "(cached) $ac_c" 1>&6
16745 else
16746   
16747       
16748       ac_ext=C
16749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16750 ac_cpp='$CXXCPP $CPPFLAGS'
16751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16753 cross_compiling=$ac_cv_prog_cxx_cross
16754
16755       cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16758 #include <math.h>
16759                       #ifdef HAVE_IEEEFP_H
16760                       #include <ieeefp.h>
16761                       #endif
16762                      
16763 int main() {
16764  isinfl(0);
16765 ; return 0; }
16766 EOF
16767 if { (eval echo configure:16768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16768   rm -rf conftest*
16769   glibcpp_cv_func_isinfl_use=yes
16770 else
16771   echo "configure: failed program was:" >&5
16772   cat conftest.$ac_ext >&5
16773   rm -rf conftest*
16774   glibcpp_cv_func_isinfl_use=no
16775 fi
16776 rm -f conftest*
16777       ac_ext=c
16778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16779 ac_cpp='$CPP $CPPFLAGS'
16780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16782 cross_compiling=$ac_cv_prog_cc_cross
16783
16784     
16785 fi
16786
16787   fi
16788   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16789
16790   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16791     for ac_func in isinfl
16792 do
16793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16794 echo "configure:16795: checking for $ac_func" >&5
16795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16796   echo $ac_n "(cached) $ac_c" 1>&6
16797 else
16798   cat > conftest.$ac_ext <<EOF
16799 #line 16800 "configure"
16800 #include "confdefs.h"
16801 /* System header to define __stub macros and hopefully few prototypes,
16802     which can conflict with char $ac_func(); below.  */
16803 #include <assert.h>
16804 /* Override any gcc2 internal prototype to avoid an error.  */
16805 /* We use char because int might match the return type of a gcc2
16806     builtin and then its argument prototype would still apply.  */
16807 char $ac_func();
16808
16809 int main() {
16810
16811 /* The GNU C library defines this for functions which it implements
16812     to always fail with ENOSYS.  Some functions are actually named
16813     something starting with __ and the normal name is an alias.  */
16814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16815 choke me
16816 #else
16817 $ac_func();
16818 #endif
16819
16820 ; return 0; }
16821 EOF
16822 if { (eval echo configure:16823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16823   rm -rf conftest*
16824   eval "ac_cv_func_$ac_func=yes"
16825 else
16826   echo "configure: failed program was:" >&5
16827   cat conftest.$ac_ext >&5
16828   rm -rf conftest*
16829   eval "ac_cv_func_$ac_func=no"
16830 fi
16831 rm -f conftest*
16832 fi
16833
16834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16835   echo "$ac_t""yes" 1>&6
16836     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16837   cat >> confdefs.h <<EOF
16838 #define $ac_tr_func 1
16839 EOF
16840  
16841 else
16842   echo "$ac_t""no" 1>&6
16843 fi
16844 done
16845
16846   else
16847     
16848   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16849 echo "configure:16850: checking for _isinfl declaration" >&5
16850   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16851     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16852   echo $ac_n "(cached) $ac_c" 1>&6
16853 else
16854   
16855       
16856       ac_ext=C
16857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16858 ac_cpp='$CXXCPP $CPPFLAGS'
16859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16861 cross_compiling=$ac_cv_prog_cxx_cross
16862
16863       cat > conftest.$ac_ext <<EOF
16864 #line 16865 "configure"
16865 #include "confdefs.h"
16866 #include <math.h>
16867                       #ifdef HAVE_IEEEFP_H
16868                       #include <ieeefp.h>
16869                       #endif
16870                      
16871 int main() {
16872  _isinfl(0);
16873 ; return 0; }
16874 EOF
16875 if { (eval echo configure:16876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16876   rm -rf conftest*
16877   glibcpp_cv_func__isinfl_use=yes
16878 else
16879   echo "configure: failed program was:" >&5
16880   cat conftest.$ac_ext >&5
16881   rm -rf conftest*
16882   glibcpp_cv_func__isinfl_use=no
16883 fi
16884 rm -f conftest*
16885       ac_ext=c
16886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16887 ac_cpp='$CPP $CPPFLAGS'
16888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16890 cross_compiling=$ac_cv_prog_cc_cross
16891
16892     
16893 fi
16894
16895   fi
16896   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16897
16898     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16899       for ac_func in _isinfl
16900 do
16901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16902 echo "configure:16903: checking for $ac_func" >&5
16903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16904   echo $ac_n "(cached) $ac_c" 1>&6
16905 else
16906   cat > conftest.$ac_ext <<EOF
16907 #line 16908 "configure"
16908 #include "confdefs.h"
16909 /* System header to define __stub macros and hopefully few prototypes,
16910     which can conflict with char $ac_func(); below.  */
16911 #include <assert.h>
16912 /* Override any gcc2 internal prototype to avoid an error.  */
16913 /* We use char because int might match the return type of a gcc2
16914     builtin and then its argument prototype would still apply.  */
16915 char $ac_func();
16916
16917 int main() {
16918
16919 /* The GNU C library defines this for functions which it implements
16920     to always fail with ENOSYS.  Some functions are actually named
16921     something starting with __ and the normal name is an alias.  */
16922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16923 choke me
16924 #else
16925 $ac_func();
16926 #endif
16927
16928 ; return 0; }
16929 EOF
16930 if { (eval echo configure:16931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16931   rm -rf conftest*
16932   eval "ac_cv_func_$ac_func=yes"
16933 else
16934   echo "configure: failed program was:" >&5
16935   cat conftest.$ac_ext >&5
16936   rm -rf conftest*
16937   eval "ac_cv_func_$ac_func=no"
16938 fi
16939 rm -f conftest*
16940 fi
16941
16942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16943   echo "$ac_t""yes" 1>&6
16944     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16945   cat >> confdefs.h <<EOF
16946 #define $ac_tr_func 1
16947 EOF
16948  
16949 else
16950   echo "$ac_t""no" 1>&6
16951 fi
16952 done
16953
16954     fi
16955   fi
16956
16957   
16958   
16959   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16960 echo "configure:16961: checking for copysignl declaration" >&5
16961   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16962     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16963   echo $ac_n "(cached) $ac_c" 1>&6
16964 else
16965   
16966       
16967       ac_ext=C
16968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16969 ac_cpp='$CXXCPP $CPPFLAGS'
16970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16972 cross_compiling=$ac_cv_prog_cxx_cross
16973
16974       cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16977 #include <math.h>
16978 int main() {
16979  copysignl(0, 0);
16980 ; return 0; }
16981 EOF
16982 if { (eval echo configure:16983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16983   rm -rf conftest*
16984   glibcpp_cv_func_copysignl_use=yes
16985 else
16986   echo "configure: failed program was:" >&5
16987   cat conftest.$ac_ext >&5
16988   rm -rf conftest*
16989   glibcpp_cv_func_copysignl_use=no
16990 fi
16991 rm -f conftest*
16992       ac_ext=c
16993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16994 ac_cpp='$CPP $CPPFLAGS'
16995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16997 cross_compiling=$ac_cv_prog_cc_cross
16998
16999     
17000 fi
17001
17002   fi
17003   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
17004
17005   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
17006     for ac_func in copysignl
17007 do
17008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17009 echo "configure:17010: checking for $ac_func" >&5
17010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17011   echo $ac_n "(cached) $ac_c" 1>&6
17012 else
17013   cat > conftest.$ac_ext <<EOF
17014 #line 17015 "configure"
17015 #include "confdefs.h"
17016 /* System header to define __stub macros and hopefully few prototypes,
17017     which can conflict with char $ac_func(); below.  */
17018 #include <assert.h>
17019 /* Override any gcc2 internal prototype to avoid an error.  */
17020 /* We use char because int might match the return type of a gcc2
17021     builtin and then its argument prototype would still apply.  */
17022 char $ac_func();
17023
17024 int main() {
17025
17026 /* The GNU C library defines this for functions which it implements
17027     to always fail with ENOSYS.  Some functions are actually named
17028     something starting with __ and the normal name is an alias.  */
17029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17030 choke me
17031 #else
17032 $ac_func();
17033 #endif
17034
17035 ; return 0; }
17036 EOF
17037 if { (eval echo configure:17038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17038   rm -rf conftest*
17039   eval "ac_cv_func_$ac_func=yes"
17040 else
17041   echo "configure: failed program was:" >&5
17042   cat conftest.$ac_ext >&5
17043   rm -rf conftest*
17044   eval "ac_cv_func_$ac_func=no"
17045 fi
17046 rm -f conftest*
17047 fi
17048
17049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17050   echo "$ac_t""yes" 1>&6
17051     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17052   cat >> confdefs.h <<EOF
17053 #define $ac_tr_func 1
17054 EOF
17055  
17056 else
17057   echo "$ac_t""no" 1>&6
17058 fi
17059 done
17060
17061   else
17062     
17063   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17064 echo "configure:17065: checking for _copysignl declaration" >&5
17065   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17066     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17067   echo $ac_n "(cached) $ac_c" 1>&6
17068 else
17069   
17070       
17071       ac_ext=C
17072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17073 ac_cpp='$CXXCPP $CPPFLAGS'
17074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17076 cross_compiling=$ac_cv_prog_cxx_cross
17077
17078       cat > conftest.$ac_ext <<EOF
17079 #line 17080 "configure"
17080 #include "confdefs.h"
17081 #include <math.h>
17082 int main() {
17083  _copysignl(0, 0);
17084 ; return 0; }
17085 EOF
17086 if { (eval echo configure:17087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17087   rm -rf conftest*
17088   glibcpp_cv_func__copysignl_use=yes
17089 else
17090   echo "configure: failed program was:" >&5
17091   cat conftest.$ac_ext >&5
17092   rm -rf conftest*
17093   glibcpp_cv_func__copysignl_use=no
17094 fi
17095 rm -f conftest*
17096       ac_ext=c
17097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17098 ac_cpp='$CPP $CPPFLAGS'
17099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17101 cross_compiling=$ac_cv_prog_cc_cross
17102
17103     
17104 fi
17105
17106   fi
17107   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17108
17109     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17110       for ac_func in _copysignl
17111 do
17112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17113 echo "configure:17114: checking for $ac_func" >&5
17114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17115   echo $ac_n "(cached) $ac_c" 1>&6
17116 else
17117   cat > conftest.$ac_ext <<EOF
17118 #line 17119 "configure"
17119 #include "confdefs.h"
17120 /* System header to define __stub macros and hopefully few prototypes,
17121     which can conflict with char $ac_func(); below.  */
17122 #include <assert.h>
17123 /* Override any gcc2 internal prototype to avoid an error.  */
17124 /* We use char because int might match the return type of a gcc2
17125     builtin and then its argument prototype would still apply.  */
17126 char $ac_func();
17127
17128 int main() {
17129
17130 /* The GNU C library defines this for functions which it implements
17131     to always fail with ENOSYS.  Some functions are actually named
17132     something starting with __ and the normal name is an alias.  */
17133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17134 choke me
17135 #else
17136 $ac_func();
17137 #endif
17138
17139 ; return 0; }
17140 EOF
17141 if { (eval echo configure:17142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17142   rm -rf conftest*
17143   eval "ac_cv_func_$ac_func=yes"
17144 else
17145   echo "configure: failed program was:" >&5
17146   cat conftest.$ac_ext >&5
17147   rm -rf conftest*
17148   eval "ac_cv_func_$ac_func=no"
17149 fi
17150 rm -f conftest*
17151 fi
17152
17153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17154   echo "$ac_t""yes" 1>&6
17155     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17156   cat >> confdefs.h <<EOF
17157 #define $ac_tr_func 1
17158 EOF
17159  
17160 else
17161   echo "$ac_t""no" 1>&6
17162 fi
17163 done
17164
17165     fi
17166   fi
17167
17168   
17169   
17170   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17171 echo "configure:17172: checking for atan2l declaration" >&5
17172   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17173     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17174   echo $ac_n "(cached) $ac_c" 1>&6
17175 else
17176   
17177       
17178       ac_ext=C
17179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17180 ac_cpp='$CXXCPP $CPPFLAGS'
17181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17183 cross_compiling=$ac_cv_prog_cxx_cross
17184
17185       cat > conftest.$ac_ext <<EOF
17186 #line 17187 "configure"
17187 #include "confdefs.h"
17188 #include <math.h>
17189 int main() {
17190  atan2l(0, 0);
17191 ; return 0; }
17192 EOF
17193 if { (eval echo configure:17194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17194   rm -rf conftest*
17195   glibcpp_cv_func_atan2l_use=yes
17196 else
17197   echo "configure: failed program was:" >&5
17198   cat conftest.$ac_ext >&5
17199   rm -rf conftest*
17200   glibcpp_cv_func_atan2l_use=no
17201 fi
17202 rm -f conftest*
17203       ac_ext=c
17204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17205 ac_cpp='$CPP $CPPFLAGS'
17206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17208 cross_compiling=$ac_cv_prog_cc_cross
17209
17210     
17211 fi
17212
17213   fi
17214   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17215
17216   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17217     for ac_func in atan2l
17218 do
17219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17220 echo "configure:17221: checking for $ac_func" >&5
17221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17222   echo $ac_n "(cached) $ac_c" 1>&6
17223 else
17224   cat > conftest.$ac_ext <<EOF
17225 #line 17226 "configure"
17226 #include "confdefs.h"
17227 /* System header to define __stub macros and hopefully few prototypes,
17228     which can conflict with char $ac_func(); below.  */
17229 #include <assert.h>
17230 /* Override any gcc2 internal prototype to avoid an error.  */
17231 /* We use char because int might match the return type of a gcc2
17232     builtin and then its argument prototype would still apply.  */
17233 char $ac_func();
17234
17235 int main() {
17236
17237 /* The GNU C library defines this for functions which it implements
17238     to always fail with ENOSYS.  Some functions are actually named
17239     something starting with __ and the normal name is an alias.  */
17240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17241 choke me
17242 #else
17243 $ac_func();
17244 #endif
17245
17246 ; return 0; }
17247 EOF
17248 if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17249   rm -rf conftest*
17250   eval "ac_cv_func_$ac_func=yes"
17251 else
17252   echo "configure: failed program was:" >&5
17253   cat conftest.$ac_ext >&5
17254   rm -rf conftest*
17255   eval "ac_cv_func_$ac_func=no"
17256 fi
17257 rm -f conftest*
17258 fi
17259
17260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17261   echo "$ac_t""yes" 1>&6
17262     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17263   cat >> confdefs.h <<EOF
17264 #define $ac_tr_func 1
17265 EOF
17266  
17267 else
17268   echo "$ac_t""no" 1>&6
17269 fi
17270 done
17271
17272   else
17273     
17274   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17275 echo "configure:17276: checking for _atan2l declaration" >&5
17276   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17277     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17278   echo $ac_n "(cached) $ac_c" 1>&6
17279 else
17280   
17281       
17282       ac_ext=C
17283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17284 ac_cpp='$CXXCPP $CPPFLAGS'
17285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17287 cross_compiling=$ac_cv_prog_cxx_cross
17288
17289       cat > conftest.$ac_ext <<EOF
17290 #line 17291 "configure"
17291 #include "confdefs.h"
17292 #include <math.h>
17293 int main() {
17294  _atan2l(0, 0);
17295 ; return 0; }
17296 EOF
17297 if { (eval echo configure:17298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17298   rm -rf conftest*
17299   glibcpp_cv_func__atan2l_use=yes
17300 else
17301   echo "configure: failed program was:" >&5
17302   cat conftest.$ac_ext >&5
17303   rm -rf conftest*
17304   glibcpp_cv_func__atan2l_use=no
17305 fi
17306 rm -f conftest*
17307       ac_ext=c
17308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17309 ac_cpp='$CPP $CPPFLAGS'
17310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17312 cross_compiling=$ac_cv_prog_cc_cross
17313
17314     
17315 fi
17316
17317   fi
17318   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17319
17320     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17321       for ac_func in _atan2l
17322 do
17323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17324 echo "configure:17325: checking for $ac_func" >&5
17325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17326   echo $ac_n "(cached) $ac_c" 1>&6
17327 else
17328   cat > conftest.$ac_ext <<EOF
17329 #line 17330 "configure"
17330 #include "confdefs.h"
17331 /* System header to define __stub macros and hopefully few prototypes,
17332     which can conflict with char $ac_func(); below.  */
17333 #include <assert.h>
17334 /* Override any gcc2 internal prototype to avoid an error.  */
17335 /* We use char because int might match the return type of a gcc2
17336     builtin and then its argument prototype would still apply.  */
17337 char $ac_func();
17338
17339 int main() {
17340
17341 /* The GNU C library defines this for functions which it implements
17342     to always fail with ENOSYS.  Some functions are actually named
17343     something starting with __ and the normal name is an alias.  */
17344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17345 choke me
17346 #else
17347 $ac_func();
17348 #endif
17349
17350 ; return 0; }
17351 EOF
17352 if { (eval echo configure:17353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17353   rm -rf conftest*
17354   eval "ac_cv_func_$ac_func=yes"
17355 else
17356   echo "configure: failed program was:" >&5
17357   cat conftest.$ac_ext >&5
17358   rm -rf conftest*
17359   eval "ac_cv_func_$ac_func=no"
17360 fi
17361 rm -f conftest*
17362 fi
17363
17364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17365   echo "$ac_t""yes" 1>&6
17366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17367   cat >> confdefs.h <<EOF
17368 #define $ac_tr_func 1
17369 EOF
17370  
17371 else
17372   echo "$ac_t""no" 1>&6
17373 fi
17374 done
17375
17376     fi
17377   fi
17378
17379   
17380   
17381   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17382 echo "configure:17383: checking for expl declaration" >&5
17383   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17384     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17385   echo $ac_n "(cached) $ac_c" 1>&6
17386 else
17387   
17388       
17389       ac_ext=C
17390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17391 ac_cpp='$CXXCPP $CPPFLAGS'
17392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17394 cross_compiling=$ac_cv_prog_cxx_cross
17395
17396       cat > conftest.$ac_ext <<EOF
17397 #line 17398 "configure"
17398 #include "confdefs.h"
17399 #include <math.h>
17400                       #ifdef HAVE_IEEEFP_H
17401                       #include <ieeefp.h>
17402                       #endif
17403                      
17404 int main() {
17405  expl(0);
17406 ; return 0; }
17407 EOF
17408 if { (eval echo configure:17409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17409   rm -rf conftest*
17410   glibcpp_cv_func_expl_use=yes
17411 else
17412   echo "configure: failed program was:" >&5
17413   cat conftest.$ac_ext >&5
17414   rm -rf conftest*
17415   glibcpp_cv_func_expl_use=no
17416 fi
17417 rm -f conftest*
17418       ac_ext=c
17419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17423 cross_compiling=$ac_cv_prog_cc_cross
17424
17425     
17426 fi
17427
17428   fi
17429   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17430
17431   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17432     for ac_func in expl
17433 do
17434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17435 echo "configure:17436: checking for $ac_func" >&5
17436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17437   echo $ac_n "(cached) $ac_c" 1>&6
17438 else
17439   cat > conftest.$ac_ext <<EOF
17440 #line 17441 "configure"
17441 #include "confdefs.h"
17442 /* System header to define __stub macros and hopefully few prototypes,
17443     which can conflict with char $ac_func(); below.  */
17444 #include <assert.h>
17445 /* Override any gcc2 internal prototype to avoid an error.  */
17446 /* We use char because int might match the return type of a gcc2
17447     builtin and then its argument prototype would still apply.  */
17448 char $ac_func();
17449
17450 int main() {
17451
17452 /* The GNU C library defines this for functions which it implements
17453     to always fail with ENOSYS.  Some functions are actually named
17454     something starting with __ and the normal name is an alias.  */
17455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17456 choke me
17457 #else
17458 $ac_func();
17459 #endif
17460
17461 ; return 0; }
17462 EOF
17463 if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17464   rm -rf conftest*
17465   eval "ac_cv_func_$ac_func=yes"
17466 else
17467   echo "configure: failed program was:" >&5
17468   cat conftest.$ac_ext >&5
17469   rm -rf conftest*
17470   eval "ac_cv_func_$ac_func=no"
17471 fi
17472 rm -f conftest*
17473 fi
17474
17475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17476   echo "$ac_t""yes" 1>&6
17477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17478   cat >> confdefs.h <<EOF
17479 #define $ac_tr_func 1
17480 EOF
17481  
17482 else
17483   echo "$ac_t""no" 1>&6
17484 fi
17485 done
17486
17487   else
17488     
17489   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17490 echo "configure:17491: checking for _expl declaration" >&5
17491   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17492     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17493   echo $ac_n "(cached) $ac_c" 1>&6
17494 else
17495   
17496       
17497       ac_ext=C
17498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17499 ac_cpp='$CXXCPP $CPPFLAGS'
17500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17502 cross_compiling=$ac_cv_prog_cxx_cross
17503
17504       cat > conftest.$ac_ext <<EOF
17505 #line 17506 "configure"
17506 #include "confdefs.h"
17507 #include <math.h>
17508                       #ifdef HAVE_IEEEFP_H
17509                       #include <ieeefp.h>
17510                       #endif
17511                      
17512 int main() {
17513  _expl(0);
17514 ; return 0; }
17515 EOF
17516 if { (eval echo configure:17517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17517   rm -rf conftest*
17518   glibcpp_cv_func__expl_use=yes
17519 else
17520   echo "configure: failed program was:" >&5
17521   cat conftest.$ac_ext >&5
17522   rm -rf conftest*
17523   glibcpp_cv_func__expl_use=no
17524 fi
17525 rm -f conftest*
17526       ac_ext=c
17527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17528 ac_cpp='$CPP $CPPFLAGS'
17529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17531 cross_compiling=$ac_cv_prog_cc_cross
17532
17533     
17534 fi
17535
17536   fi
17537   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17538
17539     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17540       for ac_func in _expl
17541 do
17542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17543 echo "configure:17544: checking for $ac_func" >&5
17544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17545   echo $ac_n "(cached) $ac_c" 1>&6
17546 else
17547   cat > conftest.$ac_ext <<EOF
17548 #line 17549 "configure"
17549 #include "confdefs.h"
17550 /* System header to define __stub macros and hopefully few prototypes,
17551     which can conflict with char $ac_func(); below.  */
17552 #include <assert.h>
17553 /* Override any gcc2 internal prototype to avoid an error.  */
17554 /* We use char because int might match the return type of a gcc2
17555     builtin and then its argument prototype would still apply.  */
17556 char $ac_func();
17557
17558 int main() {
17559
17560 /* The GNU C library defines this for functions which it implements
17561     to always fail with ENOSYS.  Some functions are actually named
17562     something starting with __ and the normal name is an alias.  */
17563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17564 choke me
17565 #else
17566 $ac_func();
17567 #endif
17568
17569 ; return 0; }
17570 EOF
17571 if { (eval echo configure:17572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17572   rm -rf conftest*
17573   eval "ac_cv_func_$ac_func=yes"
17574 else
17575   echo "configure: failed program was:" >&5
17576   cat conftest.$ac_ext >&5
17577   rm -rf conftest*
17578   eval "ac_cv_func_$ac_func=no"
17579 fi
17580 rm -f conftest*
17581 fi
17582
17583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17584   echo "$ac_t""yes" 1>&6
17585     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17586   cat >> confdefs.h <<EOF
17587 #define $ac_tr_func 1
17588 EOF
17589  
17590 else
17591   echo "$ac_t""no" 1>&6
17592 fi
17593 done
17594
17595     fi
17596   fi
17597
17598   
17599   
17600   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17601 echo "configure:17602: checking for fabsl declaration" >&5
17602   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17603     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17604   echo $ac_n "(cached) $ac_c" 1>&6
17605 else
17606   
17607       
17608       ac_ext=C
17609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17613 cross_compiling=$ac_cv_prog_cxx_cross
17614
17615       cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 #include <math.h>
17619                       #ifdef HAVE_IEEEFP_H
17620                       #include <ieeefp.h>
17621                       #endif
17622                      
17623 int main() {
17624  fabsl(0);
17625 ; return 0; }
17626 EOF
17627 if { (eval echo configure:17628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17628   rm -rf conftest*
17629   glibcpp_cv_func_fabsl_use=yes
17630 else
17631   echo "configure: failed program was:" >&5
17632   cat conftest.$ac_ext >&5
17633   rm -rf conftest*
17634   glibcpp_cv_func_fabsl_use=no
17635 fi
17636 rm -f conftest*
17637       ac_ext=c
17638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17639 ac_cpp='$CPP $CPPFLAGS'
17640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17642 cross_compiling=$ac_cv_prog_cc_cross
17643
17644     
17645 fi
17646
17647   fi
17648   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17649
17650   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17651     for ac_func in fabsl
17652 do
17653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17654 echo "configure:17655: checking for $ac_func" >&5
17655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17656   echo $ac_n "(cached) $ac_c" 1>&6
17657 else
17658   cat > conftest.$ac_ext <<EOF
17659 #line 17660 "configure"
17660 #include "confdefs.h"
17661 /* System header to define __stub macros and hopefully few prototypes,
17662     which can conflict with char $ac_func(); below.  */
17663 #include <assert.h>
17664 /* Override any gcc2 internal prototype to avoid an error.  */
17665 /* We use char because int might match the return type of a gcc2
17666     builtin and then its argument prototype would still apply.  */
17667 char $ac_func();
17668
17669 int main() {
17670
17671 /* The GNU C library defines this for functions which it implements
17672     to always fail with ENOSYS.  Some functions are actually named
17673     something starting with __ and the normal name is an alias.  */
17674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17675 choke me
17676 #else
17677 $ac_func();
17678 #endif
17679
17680 ; return 0; }
17681 EOF
17682 if { (eval echo configure:17683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17683   rm -rf conftest*
17684   eval "ac_cv_func_$ac_func=yes"
17685 else
17686   echo "configure: failed program was:" >&5
17687   cat conftest.$ac_ext >&5
17688   rm -rf conftest*
17689   eval "ac_cv_func_$ac_func=no"
17690 fi
17691 rm -f conftest*
17692 fi
17693
17694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17695   echo "$ac_t""yes" 1>&6
17696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17697   cat >> confdefs.h <<EOF
17698 #define $ac_tr_func 1
17699 EOF
17700  
17701 else
17702   echo "$ac_t""no" 1>&6
17703 fi
17704 done
17705
17706   else
17707     
17708   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17709 echo "configure:17710: checking for _fabsl declaration" >&5
17710   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17711     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17712   echo $ac_n "(cached) $ac_c" 1>&6
17713 else
17714   
17715       
17716       ac_ext=C
17717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17718 ac_cpp='$CXXCPP $CPPFLAGS'
17719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17721 cross_compiling=$ac_cv_prog_cxx_cross
17722
17723       cat > conftest.$ac_ext <<EOF
17724 #line 17725 "configure"
17725 #include "confdefs.h"
17726 #include <math.h>
17727                       #ifdef HAVE_IEEEFP_H
17728                       #include <ieeefp.h>
17729                       #endif
17730                      
17731 int main() {
17732  _fabsl(0);
17733 ; return 0; }
17734 EOF
17735 if { (eval echo configure:17736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17736   rm -rf conftest*
17737   glibcpp_cv_func__fabsl_use=yes
17738 else
17739   echo "configure: failed program was:" >&5
17740   cat conftest.$ac_ext >&5
17741   rm -rf conftest*
17742   glibcpp_cv_func__fabsl_use=no
17743 fi
17744 rm -f conftest*
17745       ac_ext=c
17746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17747 ac_cpp='$CPP $CPPFLAGS'
17748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17750 cross_compiling=$ac_cv_prog_cc_cross
17751
17752     
17753 fi
17754
17755   fi
17756   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17757
17758     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17759       for ac_func in _fabsl
17760 do
17761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17762 echo "configure:17763: checking for $ac_func" >&5
17763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17764   echo $ac_n "(cached) $ac_c" 1>&6
17765 else
17766   cat > conftest.$ac_ext <<EOF
17767 #line 17768 "configure"
17768 #include "confdefs.h"
17769 /* System header to define __stub macros and hopefully few prototypes,
17770     which can conflict with char $ac_func(); below.  */
17771 #include <assert.h>
17772 /* Override any gcc2 internal prototype to avoid an error.  */
17773 /* We use char because int might match the return type of a gcc2
17774     builtin and then its argument prototype would still apply.  */
17775 char $ac_func();
17776
17777 int main() {
17778
17779 /* The GNU C library defines this for functions which it implements
17780     to always fail with ENOSYS.  Some functions are actually named
17781     something starting with __ and the normal name is an alias.  */
17782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17783 choke me
17784 #else
17785 $ac_func();
17786 #endif
17787
17788 ; return 0; }
17789 EOF
17790 if { (eval echo configure:17791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17791   rm -rf conftest*
17792   eval "ac_cv_func_$ac_func=yes"
17793 else
17794   echo "configure: failed program was:" >&5
17795   cat conftest.$ac_ext >&5
17796   rm -rf conftest*
17797   eval "ac_cv_func_$ac_func=no"
17798 fi
17799 rm -f conftest*
17800 fi
17801
17802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17803   echo "$ac_t""yes" 1>&6
17804     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17805   cat >> confdefs.h <<EOF
17806 #define $ac_tr_func 1
17807 EOF
17808  
17809 else
17810   echo "$ac_t""no" 1>&6
17811 fi
17812 done
17813
17814     fi
17815   fi
17816
17817   
17818   
17819   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17820 echo "configure:17821: checking for fmodl declaration" >&5
17821   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17822     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17823   echo $ac_n "(cached) $ac_c" 1>&6
17824 else
17825   
17826       
17827       ac_ext=C
17828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17829 ac_cpp='$CXXCPP $CPPFLAGS'
17830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17832 cross_compiling=$ac_cv_prog_cxx_cross
17833
17834       cat > conftest.$ac_ext <<EOF
17835 #line 17836 "configure"
17836 #include "confdefs.h"
17837 #include <math.h>
17838 int main() {
17839  fmodl(0, 0);
17840 ; return 0; }
17841 EOF
17842 if { (eval echo configure:17843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17843   rm -rf conftest*
17844   glibcpp_cv_func_fmodl_use=yes
17845 else
17846   echo "configure: failed program was:" >&5
17847   cat conftest.$ac_ext >&5
17848   rm -rf conftest*
17849   glibcpp_cv_func_fmodl_use=no
17850 fi
17851 rm -f conftest*
17852       ac_ext=c
17853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17854 ac_cpp='$CPP $CPPFLAGS'
17855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17857 cross_compiling=$ac_cv_prog_cc_cross
17858
17859     
17860 fi
17861
17862   fi
17863   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17864
17865   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17866     for ac_func in fmodl
17867 do
17868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17869 echo "configure:17870: checking for $ac_func" >&5
17870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17871   echo $ac_n "(cached) $ac_c" 1>&6
17872 else
17873   cat > conftest.$ac_ext <<EOF
17874 #line 17875 "configure"
17875 #include "confdefs.h"
17876 /* System header to define __stub macros and hopefully few prototypes,
17877     which can conflict with char $ac_func(); below.  */
17878 #include <assert.h>
17879 /* Override any gcc2 internal prototype to avoid an error.  */
17880 /* We use char because int might match the return type of a gcc2
17881     builtin and then its argument prototype would still apply.  */
17882 char $ac_func();
17883
17884 int main() {
17885
17886 /* The GNU C library defines this for functions which it implements
17887     to always fail with ENOSYS.  Some functions are actually named
17888     something starting with __ and the normal name is an alias.  */
17889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17890 choke me
17891 #else
17892 $ac_func();
17893 #endif
17894
17895 ; return 0; }
17896 EOF
17897 if { (eval echo configure:17898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17898   rm -rf conftest*
17899   eval "ac_cv_func_$ac_func=yes"
17900 else
17901   echo "configure: failed program was:" >&5
17902   cat conftest.$ac_ext >&5
17903   rm -rf conftest*
17904   eval "ac_cv_func_$ac_func=no"
17905 fi
17906 rm -f conftest*
17907 fi
17908
17909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17910   echo "$ac_t""yes" 1>&6
17911     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17912   cat >> confdefs.h <<EOF
17913 #define $ac_tr_func 1
17914 EOF
17915  
17916 else
17917   echo "$ac_t""no" 1>&6
17918 fi
17919 done
17920
17921   else
17922     
17923   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17924 echo "configure:17925: checking for _fmodl declaration" >&5
17925   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17926     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17927   echo $ac_n "(cached) $ac_c" 1>&6
17928 else
17929   
17930       
17931       ac_ext=C
17932 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17933 ac_cpp='$CXXCPP $CPPFLAGS'
17934 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17935 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17936 cross_compiling=$ac_cv_prog_cxx_cross
17937
17938       cat > conftest.$ac_ext <<EOF
17939 #line 17940 "configure"
17940 #include "confdefs.h"
17941 #include <math.h>
17942 int main() {
17943  _fmodl(0, 0);
17944 ; return 0; }
17945 EOF
17946 if { (eval echo configure:17947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17947   rm -rf conftest*
17948   glibcpp_cv_func__fmodl_use=yes
17949 else
17950   echo "configure: failed program was:" >&5
17951   cat conftest.$ac_ext >&5
17952   rm -rf conftest*
17953   glibcpp_cv_func__fmodl_use=no
17954 fi
17955 rm -f conftest*
17956       ac_ext=c
17957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17958 ac_cpp='$CPP $CPPFLAGS'
17959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17961 cross_compiling=$ac_cv_prog_cc_cross
17962
17963     
17964 fi
17965
17966   fi
17967   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17968
17969     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17970       for ac_func in _fmodl
17971 do
17972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17973 echo "configure:17974: checking for $ac_func" >&5
17974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17975   echo $ac_n "(cached) $ac_c" 1>&6
17976 else
17977   cat > conftest.$ac_ext <<EOF
17978 #line 17979 "configure"
17979 #include "confdefs.h"
17980 /* System header to define __stub macros and hopefully few prototypes,
17981     which can conflict with char $ac_func(); below.  */
17982 #include <assert.h>
17983 /* Override any gcc2 internal prototype to avoid an error.  */
17984 /* We use char because int might match the return type of a gcc2
17985     builtin and then its argument prototype would still apply.  */
17986 char $ac_func();
17987
17988 int main() {
17989
17990 /* The GNU C library defines this for functions which it implements
17991     to always fail with ENOSYS.  Some functions are actually named
17992     something starting with __ and the normal name is an alias.  */
17993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17994 choke me
17995 #else
17996 $ac_func();
17997 #endif
17998
17999 ; return 0; }
18000 EOF
18001 if { (eval echo configure:18002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18002   rm -rf conftest*
18003   eval "ac_cv_func_$ac_func=yes"
18004 else
18005   echo "configure: failed program was:" >&5
18006   cat conftest.$ac_ext >&5
18007   rm -rf conftest*
18008   eval "ac_cv_func_$ac_func=no"
18009 fi
18010 rm -f conftest*
18011 fi
18012
18013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18014   echo "$ac_t""yes" 1>&6
18015     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18016   cat >> confdefs.h <<EOF
18017 #define $ac_tr_func 1
18018 EOF
18019  
18020 else
18021   echo "$ac_t""no" 1>&6
18022 fi
18023 done
18024
18025     fi
18026   fi
18027
18028   
18029   
18030   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
18031 echo "configure:18032: checking for frexpl declaration" >&5
18032   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
18033     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
18034   echo $ac_n "(cached) $ac_c" 1>&6
18035 else
18036   
18037       
18038       ac_ext=C
18039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18040 ac_cpp='$CXXCPP $CPPFLAGS'
18041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18043 cross_compiling=$ac_cv_prog_cxx_cross
18044
18045       cat > conftest.$ac_ext <<EOF
18046 #line 18047 "configure"
18047 #include "confdefs.h"
18048 #include <math.h>
18049 int main() {
18050  frexpl(0, 0);
18051 ; return 0; }
18052 EOF
18053 if { (eval echo configure:18054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18054   rm -rf conftest*
18055   glibcpp_cv_func_frexpl_use=yes
18056 else
18057   echo "configure: failed program was:" >&5
18058   cat conftest.$ac_ext >&5
18059   rm -rf conftest*
18060   glibcpp_cv_func_frexpl_use=no
18061 fi
18062 rm -f conftest*
18063       ac_ext=c
18064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18065 ac_cpp='$CPP $CPPFLAGS'
18066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18068 cross_compiling=$ac_cv_prog_cc_cross
18069
18070     
18071 fi
18072
18073   fi
18074   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18075
18076   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18077     for ac_func in frexpl
18078 do
18079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18080 echo "configure:18081: checking for $ac_func" >&5
18081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18082   echo $ac_n "(cached) $ac_c" 1>&6
18083 else
18084   cat > conftest.$ac_ext <<EOF
18085 #line 18086 "configure"
18086 #include "confdefs.h"
18087 /* System header to define __stub macros and hopefully few prototypes,
18088     which can conflict with char $ac_func(); below.  */
18089 #include <assert.h>
18090 /* Override any gcc2 internal prototype to avoid an error.  */
18091 /* We use char because int might match the return type of a gcc2
18092     builtin and then its argument prototype would still apply.  */
18093 char $ac_func();
18094
18095 int main() {
18096
18097 /* The GNU C library defines this for functions which it implements
18098     to always fail with ENOSYS.  Some functions are actually named
18099     something starting with __ and the normal name is an alias.  */
18100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18101 choke me
18102 #else
18103 $ac_func();
18104 #endif
18105
18106 ; return 0; }
18107 EOF
18108 if { (eval echo configure:18109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18109   rm -rf conftest*
18110   eval "ac_cv_func_$ac_func=yes"
18111 else
18112   echo "configure: failed program was:" >&5
18113   cat conftest.$ac_ext >&5
18114   rm -rf conftest*
18115   eval "ac_cv_func_$ac_func=no"
18116 fi
18117 rm -f conftest*
18118 fi
18119
18120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18121   echo "$ac_t""yes" 1>&6
18122     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18123   cat >> confdefs.h <<EOF
18124 #define $ac_tr_func 1
18125 EOF
18126  
18127 else
18128   echo "$ac_t""no" 1>&6
18129 fi
18130 done
18131
18132   else
18133     
18134   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
18135 echo "configure:18136: checking for _frexpl declaration" >&5
18136   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
18137     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
18138   echo $ac_n "(cached) $ac_c" 1>&6
18139 else
18140   
18141       
18142       ac_ext=C
18143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18144 ac_cpp='$CXXCPP $CPPFLAGS'
18145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18147 cross_compiling=$ac_cv_prog_cxx_cross
18148
18149       cat > conftest.$ac_ext <<EOF
18150 #line 18151 "configure"
18151 #include "confdefs.h"
18152 #include <math.h>
18153 int main() {
18154  _frexpl(0, 0);
18155 ; return 0; }
18156 EOF
18157 if { (eval echo configure:18158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18158   rm -rf conftest*
18159   glibcpp_cv_func__frexpl_use=yes
18160 else
18161   echo "configure: failed program was:" >&5
18162   cat conftest.$ac_ext >&5
18163   rm -rf conftest*
18164   glibcpp_cv_func__frexpl_use=no
18165 fi
18166 rm -f conftest*
18167       ac_ext=c
18168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18169 ac_cpp='$CPP $CPPFLAGS'
18170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18171 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18172 cross_compiling=$ac_cv_prog_cc_cross
18173
18174     
18175 fi
18176
18177   fi
18178   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18179
18180     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18181       for ac_func in _frexpl
18182 do
18183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18184 echo "configure:18185: checking for $ac_func" >&5
18185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18186   echo $ac_n "(cached) $ac_c" 1>&6
18187 else
18188   cat > conftest.$ac_ext <<EOF
18189 #line 18190 "configure"
18190 #include "confdefs.h"
18191 /* System header to define __stub macros and hopefully few prototypes,
18192     which can conflict with char $ac_func(); below.  */
18193 #include <assert.h>
18194 /* Override any gcc2 internal prototype to avoid an error.  */
18195 /* We use char because int might match the return type of a gcc2
18196     builtin and then its argument prototype would still apply.  */
18197 char $ac_func();
18198
18199 int main() {
18200
18201 /* The GNU C library defines this for functions which it implements
18202     to always fail with ENOSYS.  Some functions are actually named
18203     something starting with __ and the normal name is an alias.  */
18204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18205 choke me
18206 #else
18207 $ac_func();
18208 #endif
18209
18210 ; return 0; }
18211 EOF
18212 if { (eval echo configure:18213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18213   rm -rf conftest*
18214   eval "ac_cv_func_$ac_func=yes"
18215 else
18216   echo "configure: failed program was:" >&5
18217   cat conftest.$ac_ext >&5
18218   rm -rf conftest*
18219   eval "ac_cv_func_$ac_func=no"
18220 fi
18221 rm -f conftest*
18222 fi
18223
18224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18225   echo "$ac_t""yes" 1>&6
18226     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18227   cat >> confdefs.h <<EOF
18228 #define $ac_tr_func 1
18229 EOF
18230  
18231 else
18232   echo "$ac_t""no" 1>&6
18233 fi
18234 done
18235
18236     fi
18237   fi
18238
18239   
18240   
18241   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18242 echo "configure:18243: checking for hypotl declaration" >&5
18243   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18244     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18245   echo $ac_n "(cached) $ac_c" 1>&6
18246 else
18247   
18248       
18249       ac_ext=C
18250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18251 ac_cpp='$CXXCPP $CPPFLAGS'
18252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18254 cross_compiling=$ac_cv_prog_cxx_cross
18255
18256       cat > conftest.$ac_ext <<EOF
18257 #line 18258 "configure"
18258 #include "confdefs.h"
18259 #include <math.h>
18260 int main() {
18261  hypotl(0, 0);
18262 ; return 0; }
18263 EOF
18264 if { (eval echo configure:18265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18265   rm -rf conftest*
18266   glibcpp_cv_func_hypotl_use=yes
18267 else
18268   echo "configure: failed program was:" >&5
18269   cat conftest.$ac_ext >&5
18270   rm -rf conftest*
18271   glibcpp_cv_func_hypotl_use=no
18272 fi
18273 rm -f conftest*
18274       ac_ext=c
18275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18279 cross_compiling=$ac_cv_prog_cc_cross
18280
18281     
18282 fi
18283
18284   fi
18285   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18286
18287   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18288     for ac_func in hypotl
18289 do
18290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18291 echo "configure:18292: checking for $ac_func" >&5
18292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18293   echo $ac_n "(cached) $ac_c" 1>&6
18294 else
18295   cat > conftest.$ac_ext <<EOF
18296 #line 18297 "configure"
18297 #include "confdefs.h"
18298 /* System header to define __stub macros and hopefully few prototypes,
18299     which can conflict with char $ac_func(); below.  */
18300 #include <assert.h>
18301 /* Override any gcc2 internal prototype to avoid an error.  */
18302 /* We use char because int might match the return type of a gcc2
18303     builtin and then its argument prototype would still apply.  */
18304 char $ac_func();
18305
18306 int main() {
18307
18308 /* The GNU C library defines this for functions which it implements
18309     to always fail with ENOSYS.  Some functions are actually named
18310     something starting with __ and the normal name is an alias.  */
18311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18312 choke me
18313 #else
18314 $ac_func();
18315 #endif
18316
18317 ; return 0; }
18318 EOF
18319 if { (eval echo configure:18320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18320   rm -rf conftest*
18321   eval "ac_cv_func_$ac_func=yes"
18322 else
18323   echo "configure: failed program was:" >&5
18324   cat conftest.$ac_ext >&5
18325   rm -rf conftest*
18326   eval "ac_cv_func_$ac_func=no"
18327 fi
18328 rm -f conftest*
18329 fi
18330
18331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18332   echo "$ac_t""yes" 1>&6
18333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18334   cat >> confdefs.h <<EOF
18335 #define $ac_tr_func 1
18336 EOF
18337  
18338 else
18339   echo "$ac_t""no" 1>&6
18340 fi
18341 done
18342
18343   else
18344     
18345   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18346 echo "configure:18347: checking for _hypotl declaration" >&5
18347   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18348     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18349   echo $ac_n "(cached) $ac_c" 1>&6
18350 else
18351   
18352       
18353       ac_ext=C
18354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18355 ac_cpp='$CXXCPP $CPPFLAGS'
18356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18358 cross_compiling=$ac_cv_prog_cxx_cross
18359
18360       cat > conftest.$ac_ext <<EOF
18361 #line 18362 "configure"
18362 #include "confdefs.h"
18363 #include <math.h>
18364 int main() {
18365  _hypotl(0, 0);
18366 ; return 0; }
18367 EOF
18368 if { (eval echo configure:18369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18369   rm -rf conftest*
18370   glibcpp_cv_func__hypotl_use=yes
18371 else
18372   echo "configure: failed program was:" >&5
18373   cat conftest.$ac_ext >&5
18374   rm -rf conftest*
18375   glibcpp_cv_func__hypotl_use=no
18376 fi
18377 rm -f conftest*
18378       ac_ext=c
18379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18383 cross_compiling=$ac_cv_prog_cc_cross
18384
18385     
18386 fi
18387
18388   fi
18389   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18390
18391     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18392       for ac_func in _hypotl
18393 do
18394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18395 echo "configure:18396: checking for $ac_func" >&5
18396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18397   echo $ac_n "(cached) $ac_c" 1>&6
18398 else
18399   cat > conftest.$ac_ext <<EOF
18400 #line 18401 "configure"
18401 #include "confdefs.h"
18402 /* System header to define __stub macros and hopefully few prototypes,
18403     which can conflict with char $ac_func(); below.  */
18404 #include <assert.h>
18405 /* Override any gcc2 internal prototype to avoid an error.  */
18406 /* We use char because int might match the return type of a gcc2
18407     builtin and then its argument prototype would still apply.  */
18408 char $ac_func();
18409
18410 int main() {
18411
18412 /* The GNU C library defines this for functions which it implements
18413     to always fail with ENOSYS.  Some functions are actually named
18414     something starting with __ and the normal name is an alias.  */
18415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18416 choke me
18417 #else
18418 $ac_func();
18419 #endif
18420
18421 ; return 0; }
18422 EOF
18423 if { (eval echo configure:18424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18424   rm -rf conftest*
18425   eval "ac_cv_func_$ac_func=yes"
18426 else
18427   echo "configure: failed program was:" >&5
18428   cat conftest.$ac_ext >&5
18429   rm -rf conftest*
18430   eval "ac_cv_func_$ac_func=no"
18431 fi
18432 rm -f conftest*
18433 fi
18434
18435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18436   echo "$ac_t""yes" 1>&6
18437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18438   cat >> confdefs.h <<EOF
18439 #define $ac_tr_func 1
18440 EOF
18441  
18442 else
18443   echo "$ac_t""no" 1>&6
18444 fi
18445 done
18446
18447     fi
18448   fi
18449
18450   
18451   
18452   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18453 echo "configure:18454: checking for ldexpl declaration" >&5
18454   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18455     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18456   echo $ac_n "(cached) $ac_c" 1>&6
18457 else
18458   
18459       
18460       ac_ext=C
18461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18462 ac_cpp='$CXXCPP $CPPFLAGS'
18463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18465 cross_compiling=$ac_cv_prog_cxx_cross
18466
18467       cat > conftest.$ac_ext <<EOF
18468 #line 18469 "configure"
18469 #include "confdefs.h"
18470 #include <math.h>
18471 int main() {
18472  ldexpl(0, 0);
18473 ; return 0; }
18474 EOF
18475 if { (eval echo configure:18476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18476   rm -rf conftest*
18477   glibcpp_cv_func_ldexpl_use=yes
18478 else
18479   echo "configure: failed program was:" >&5
18480   cat conftest.$ac_ext >&5
18481   rm -rf conftest*
18482   glibcpp_cv_func_ldexpl_use=no
18483 fi
18484 rm -f conftest*
18485       ac_ext=c
18486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18487 ac_cpp='$CPP $CPPFLAGS'
18488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18490 cross_compiling=$ac_cv_prog_cc_cross
18491
18492     
18493 fi
18494
18495   fi
18496   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18497
18498   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18499     for ac_func in ldexpl
18500 do
18501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18502 echo "configure:18503: checking for $ac_func" >&5
18503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18504   echo $ac_n "(cached) $ac_c" 1>&6
18505 else
18506   cat > conftest.$ac_ext <<EOF
18507 #line 18508 "configure"
18508 #include "confdefs.h"
18509 /* System header to define __stub macros and hopefully few prototypes,
18510     which can conflict with char $ac_func(); below.  */
18511 #include <assert.h>
18512 /* Override any gcc2 internal prototype to avoid an error.  */
18513 /* We use char because int might match the return type of a gcc2
18514     builtin and then its argument prototype would still apply.  */
18515 char $ac_func();
18516
18517 int main() {
18518
18519 /* The GNU C library defines this for functions which it implements
18520     to always fail with ENOSYS.  Some functions are actually named
18521     something starting with __ and the normal name is an alias.  */
18522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18523 choke me
18524 #else
18525 $ac_func();
18526 #endif
18527
18528 ; return 0; }
18529 EOF
18530 if { (eval echo configure:18531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18531   rm -rf conftest*
18532   eval "ac_cv_func_$ac_func=yes"
18533 else
18534   echo "configure: failed program was:" >&5
18535   cat conftest.$ac_ext >&5
18536   rm -rf conftest*
18537   eval "ac_cv_func_$ac_func=no"
18538 fi
18539 rm -f conftest*
18540 fi
18541
18542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18543   echo "$ac_t""yes" 1>&6
18544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18545   cat >> confdefs.h <<EOF
18546 #define $ac_tr_func 1
18547 EOF
18548  
18549 else
18550   echo "$ac_t""no" 1>&6
18551 fi
18552 done
18553
18554   else
18555     
18556   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18557 echo "configure:18558: checking for _ldexpl declaration" >&5
18558   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18559     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18560   echo $ac_n "(cached) $ac_c" 1>&6
18561 else
18562   
18563       
18564       ac_ext=C
18565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18566 ac_cpp='$CXXCPP $CPPFLAGS'
18567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18569 cross_compiling=$ac_cv_prog_cxx_cross
18570
18571       cat > conftest.$ac_ext <<EOF
18572 #line 18573 "configure"
18573 #include "confdefs.h"
18574 #include <math.h>
18575 int main() {
18576  _ldexpl(0, 0);
18577 ; return 0; }
18578 EOF
18579 if { (eval echo configure:18580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18580   rm -rf conftest*
18581   glibcpp_cv_func__ldexpl_use=yes
18582 else
18583   echo "configure: failed program was:" >&5
18584   cat conftest.$ac_ext >&5
18585   rm -rf conftest*
18586   glibcpp_cv_func__ldexpl_use=no
18587 fi
18588 rm -f conftest*
18589       ac_ext=c
18590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18594 cross_compiling=$ac_cv_prog_cc_cross
18595
18596     
18597 fi
18598
18599   fi
18600   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18601
18602     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18603       for ac_func in _ldexpl
18604 do
18605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18606 echo "configure:18607: checking for $ac_func" >&5
18607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18608   echo $ac_n "(cached) $ac_c" 1>&6
18609 else
18610   cat > conftest.$ac_ext <<EOF
18611 #line 18612 "configure"
18612 #include "confdefs.h"
18613 /* System header to define __stub macros and hopefully few prototypes,
18614     which can conflict with char $ac_func(); below.  */
18615 #include <assert.h>
18616 /* Override any gcc2 internal prototype to avoid an error.  */
18617 /* We use char because int might match the return type of a gcc2
18618     builtin and then its argument prototype would still apply.  */
18619 char $ac_func();
18620
18621 int main() {
18622
18623 /* The GNU C library defines this for functions which it implements
18624     to always fail with ENOSYS.  Some functions are actually named
18625     something starting with __ and the normal name is an alias.  */
18626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18627 choke me
18628 #else
18629 $ac_func();
18630 #endif
18631
18632 ; return 0; }
18633 EOF
18634 if { (eval echo configure:18635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18635   rm -rf conftest*
18636   eval "ac_cv_func_$ac_func=yes"
18637 else
18638   echo "configure: failed program was:" >&5
18639   cat conftest.$ac_ext >&5
18640   rm -rf conftest*
18641   eval "ac_cv_func_$ac_func=no"
18642 fi
18643 rm -f conftest*
18644 fi
18645
18646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18647   echo "$ac_t""yes" 1>&6
18648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18649   cat >> confdefs.h <<EOF
18650 #define $ac_tr_func 1
18651 EOF
18652  
18653 else
18654   echo "$ac_t""no" 1>&6
18655 fi
18656 done
18657
18658     fi
18659   fi
18660
18661   
18662   
18663   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18664 echo "configure:18665: checking for logl declaration" >&5
18665   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18666     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18667   echo $ac_n "(cached) $ac_c" 1>&6
18668 else
18669   
18670       
18671       ac_ext=C
18672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18673 ac_cpp='$CXXCPP $CPPFLAGS'
18674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18676 cross_compiling=$ac_cv_prog_cxx_cross
18677
18678       cat > conftest.$ac_ext <<EOF
18679 #line 18680 "configure"
18680 #include "confdefs.h"
18681 #include <math.h>
18682                       #ifdef HAVE_IEEEFP_H
18683                       #include <ieeefp.h>
18684                       #endif
18685                      
18686 int main() {
18687  logl(0);
18688 ; return 0; }
18689 EOF
18690 if { (eval echo configure:18691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18691   rm -rf conftest*
18692   glibcpp_cv_func_logl_use=yes
18693 else
18694   echo "configure: failed program was:" >&5
18695   cat conftest.$ac_ext >&5
18696   rm -rf conftest*
18697   glibcpp_cv_func_logl_use=no
18698 fi
18699 rm -f conftest*
18700       ac_ext=c
18701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18705 cross_compiling=$ac_cv_prog_cc_cross
18706
18707     
18708 fi
18709
18710   fi
18711   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18712
18713   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18714     for ac_func in logl
18715 do
18716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18717 echo "configure:18718: checking for $ac_func" >&5
18718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18719   echo $ac_n "(cached) $ac_c" 1>&6
18720 else
18721   cat > conftest.$ac_ext <<EOF
18722 #line 18723 "configure"
18723 #include "confdefs.h"
18724 /* System header to define __stub macros and hopefully few prototypes,
18725     which can conflict with char $ac_func(); below.  */
18726 #include <assert.h>
18727 /* Override any gcc2 internal prototype to avoid an error.  */
18728 /* We use char because int might match the return type of a gcc2
18729     builtin and then its argument prototype would still apply.  */
18730 char $ac_func();
18731
18732 int main() {
18733
18734 /* The GNU C library defines this for functions which it implements
18735     to always fail with ENOSYS.  Some functions are actually named
18736     something starting with __ and the normal name is an alias.  */
18737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18738 choke me
18739 #else
18740 $ac_func();
18741 #endif
18742
18743 ; return 0; }
18744 EOF
18745 if { (eval echo configure:18746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18746   rm -rf conftest*
18747   eval "ac_cv_func_$ac_func=yes"
18748 else
18749   echo "configure: failed program was:" >&5
18750   cat conftest.$ac_ext >&5
18751   rm -rf conftest*
18752   eval "ac_cv_func_$ac_func=no"
18753 fi
18754 rm -f conftest*
18755 fi
18756
18757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18758   echo "$ac_t""yes" 1>&6
18759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18760   cat >> confdefs.h <<EOF
18761 #define $ac_tr_func 1
18762 EOF
18763  
18764 else
18765   echo "$ac_t""no" 1>&6
18766 fi
18767 done
18768
18769   else
18770     
18771   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18772 echo "configure:18773: checking for _logl declaration" >&5
18773   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18774     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18775   echo $ac_n "(cached) $ac_c" 1>&6
18776 else
18777   
18778       
18779       ac_ext=C
18780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18781 ac_cpp='$CXXCPP $CPPFLAGS'
18782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18784 cross_compiling=$ac_cv_prog_cxx_cross
18785
18786       cat > conftest.$ac_ext <<EOF
18787 #line 18788 "configure"
18788 #include "confdefs.h"
18789 #include <math.h>
18790                       #ifdef HAVE_IEEEFP_H
18791                       #include <ieeefp.h>
18792                       #endif
18793                      
18794 int main() {
18795  _logl(0);
18796 ; return 0; }
18797 EOF
18798 if { (eval echo configure:18799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18799   rm -rf conftest*
18800   glibcpp_cv_func__logl_use=yes
18801 else
18802   echo "configure: failed program was:" >&5
18803   cat conftest.$ac_ext >&5
18804   rm -rf conftest*
18805   glibcpp_cv_func__logl_use=no
18806 fi
18807 rm -f conftest*
18808       ac_ext=c
18809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18813 cross_compiling=$ac_cv_prog_cc_cross
18814
18815     
18816 fi
18817
18818   fi
18819   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18820
18821     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18822       for ac_func in _logl
18823 do
18824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18825 echo "configure:18826: checking for $ac_func" >&5
18826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18827   echo $ac_n "(cached) $ac_c" 1>&6
18828 else
18829   cat > conftest.$ac_ext <<EOF
18830 #line 18831 "configure"
18831 #include "confdefs.h"
18832 /* System header to define __stub macros and hopefully few prototypes,
18833     which can conflict with char $ac_func(); below.  */
18834 #include <assert.h>
18835 /* Override any gcc2 internal prototype to avoid an error.  */
18836 /* We use char because int might match the return type of a gcc2
18837     builtin and then its argument prototype would still apply.  */
18838 char $ac_func();
18839
18840 int main() {
18841
18842 /* The GNU C library defines this for functions which it implements
18843     to always fail with ENOSYS.  Some functions are actually named
18844     something starting with __ and the normal name is an alias.  */
18845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18846 choke me
18847 #else
18848 $ac_func();
18849 #endif
18850
18851 ; return 0; }
18852 EOF
18853 if { (eval echo configure:18854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18854   rm -rf conftest*
18855   eval "ac_cv_func_$ac_func=yes"
18856 else
18857   echo "configure: failed program was:" >&5
18858   cat conftest.$ac_ext >&5
18859   rm -rf conftest*
18860   eval "ac_cv_func_$ac_func=no"
18861 fi
18862 rm -f conftest*
18863 fi
18864
18865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18866   echo "$ac_t""yes" 1>&6
18867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18868   cat >> confdefs.h <<EOF
18869 #define $ac_tr_func 1
18870 EOF
18871  
18872 else
18873   echo "$ac_t""no" 1>&6
18874 fi
18875 done
18876
18877     fi
18878   fi
18879
18880   
18881   
18882   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18883 echo "configure:18884: checking for log10l declaration" >&5
18884   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18885     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18886   echo $ac_n "(cached) $ac_c" 1>&6
18887 else
18888   
18889       
18890       ac_ext=C
18891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18895 cross_compiling=$ac_cv_prog_cxx_cross
18896
18897       cat > conftest.$ac_ext <<EOF
18898 #line 18899 "configure"
18899 #include "confdefs.h"
18900 #include <math.h>
18901                       #ifdef HAVE_IEEEFP_H
18902                       #include <ieeefp.h>
18903                       #endif
18904                      
18905 int main() {
18906  log10l(0);
18907 ; return 0; }
18908 EOF
18909 if { (eval echo configure:18910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18910   rm -rf conftest*
18911   glibcpp_cv_func_log10l_use=yes
18912 else
18913   echo "configure: failed program was:" >&5
18914   cat conftest.$ac_ext >&5
18915   rm -rf conftest*
18916   glibcpp_cv_func_log10l_use=no
18917 fi
18918 rm -f conftest*
18919       ac_ext=c
18920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18921 ac_cpp='$CPP $CPPFLAGS'
18922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18924 cross_compiling=$ac_cv_prog_cc_cross
18925
18926     
18927 fi
18928
18929   fi
18930   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18931
18932   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18933     for ac_func in log10l
18934 do
18935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18936 echo "configure:18937: checking for $ac_func" >&5
18937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18938   echo $ac_n "(cached) $ac_c" 1>&6
18939 else
18940   cat > conftest.$ac_ext <<EOF
18941 #line 18942 "configure"
18942 #include "confdefs.h"
18943 /* System header to define __stub macros and hopefully few prototypes,
18944     which can conflict with char $ac_func(); below.  */
18945 #include <assert.h>
18946 /* Override any gcc2 internal prototype to avoid an error.  */
18947 /* We use char because int might match the return type of a gcc2
18948     builtin and then its argument prototype would still apply.  */
18949 char $ac_func();
18950
18951 int main() {
18952
18953 /* The GNU C library defines this for functions which it implements
18954     to always fail with ENOSYS.  Some functions are actually named
18955     something starting with __ and the normal name is an alias.  */
18956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18957 choke me
18958 #else
18959 $ac_func();
18960 #endif
18961
18962 ; return 0; }
18963 EOF
18964 if { (eval echo configure:18965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18965   rm -rf conftest*
18966   eval "ac_cv_func_$ac_func=yes"
18967 else
18968   echo "configure: failed program was:" >&5
18969   cat conftest.$ac_ext >&5
18970   rm -rf conftest*
18971   eval "ac_cv_func_$ac_func=no"
18972 fi
18973 rm -f conftest*
18974 fi
18975
18976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18977   echo "$ac_t""yes" 1>&6
18978     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18979   cat >> confdefs.h <<EOF
18980 #define $ac_tr_func 1
18981 EOF
18982  
18983 else
18984   echo "$ac_t""no" 1>&6
18985 fi
18986 done
18987
18988   else
18989     
18990   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18991 echo "configure:18992: checking for _log10l declaration" >&5
18992   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18993     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18994   echo $ac_n "(cached) $ac_c" 1>&6
18995 else
18996   
18997       
18998       ac_ext=C
18999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19000 ac_cpp='$CXXCPP $CPPFLAGS'
19001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19003 cross_compiling=$ac_cv_prog_cxx_cross
19004
19005       cat > conftest.$ac_ext <<EOF
19006 #line 19007 "configure"
19007 #include "confdefs.h"
19008 #include <math.h>
19009                       #ifdef HAVE_IEEEFP_H
19010                       #include <ieeefp.h>
19011                       #endif
19012                      
19013 int main() {
19014  _log10l(0);
19015 ; return 0; }
19016 EOF
19017 if { (eval echo configure:19018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19018   rm -rf conftest*
19019   glibcpp_cv_func__log10l_use=yes
19020 else
19021   echo "configure: failed program was:" >&5
19022   cat conftest.$ac_ext >&5
19023   rm -rf conftest*
19024   glibcpp_cv_func__log10l_use=no
19025 fi
19026 rm -f conftest*
19027       ac_ext=c
19028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19029 ac_cpp='$CPP $CPPFLAGS'
19030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19032 cross_compiling=$ac_cv_prog_cc_cross
19033
19034     
19035 fi
19036
19037   fi
19038   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
19039
19040     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19041       for ac_func in _log10l
19042 do
19043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19044 echo "configure:19045: checking for $ac_func" >&5
19045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19046   echo $ac_n "(cached) $ac_c" 1>&6
19047 else
19048   cat > conftest.$ac_ext <<EOF
19049 #line 19050 "configure"
19050 #include "confdefs.h"
19051 /* System header to define __stub macros and hopefully few prototypes,
19052     which can conflict with char $ac_func(); below.  */
19053 #include <assert.h>
19054 /* Override any gcc2 internal prototype to avoid an error.  */
19055 /* We use char because int might match the return type of a gcc2
19056     builtin and then its argument prototype would still apply.  */
19057 char $ac_func();
19058
19059 int main() {
19060
19061 /* The GNU C library defines this for functions which it implements
19062     to always fail with ENOSYS.  Some functions are actually named
19063     something starting with __ and the normal name is an alias.  */
19064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19065 choke me
19066 #else
19067 $ac_func();
19068 #endif
19069
19070 ; return 0; }
19071 EOF
19072 if { (eval echo configure:19073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19073   rm -rf conftest*
19074   eval "ac_cv_func_$ac_func=yes"
19075 else
19076   echo "configure: failed program was:" >&5
19077   cat conftest.$ac_ext >&5
19078   rm -rf conftest*
19079   eval "ac_cv_func_$ac_func=no"
19080 fi
19081 rm -f conftest*
19082 fi
19083
19084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19085   echo "$ac_t""yes" 1>&6
19086     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19087   cat >> confdefs.h <<EOF
19088 #define $ac_tr_func 1
19089 EOF
19090  
19091 else
19092   echo "$ac_t""no" 1>&6
19093 fi
19094 done
19095
19096     fi
19097   fi
19098
19099   
19100   
19101   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19102 echo "configure:19103: checking for modfl declaration" >&5
19103   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19104     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19105   echo $ac_n "(cached) $ac_c" 1>&6
19106 else
19107   
19108       
19109       ac_ext=C
19110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19111 ac_cpp='$CXXCPP $CPPFLAGS'
19112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19114 cross_compiling=$ac_cv_prog_cxx_cross
19115
19116       cat > conftest.$ac_ext <<EOF
19117 #line 19118 "configure"
19118 #include "confdefs.h"
19119 #include <math.h>
19120 int main() {
19121  modfl(0, 0);
19122 ; return 0; }
19123 EOF
19124 if { (eval echo configure:19125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19125   rm -rf conftest*
19126   glibcpp_cv_func_modfl_use=yes
19127 else
19128   echo "configure: failed program was:" >&5
19129   cat conftest.$ac_ext >&5
19130   rm -rf conftest*
19131   glibcpp_cv_func_modfl_use=no
19132 fi
19133 rm -f conftest*
19134       ac_ext=c
19135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19139 cross_compiling=$ac_cv_prog_cc_cross
19140
19141     
19142 fi
19143
19144   fi
19145   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
19146
19147   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
19148     for ac_func in modfl
19149 do
19150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19151 echo "configure:19152: checking for $ac_func" >&5
19152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19153   echo $ac_n "(cached) $ac_c" 1>&6
19154 else
19155   cat > conftest.$ac_ext <<EOF
19156 #line 19157 "configure"
19157 #include "confdefs.h"
19158 /* System header to define __stub macros and hopefully few prototypes,
19159     which can conflict with char $ac_func(); below.  */
19160 #include <assert.h>
19161 /* Override any gcc2 internal prototype to avoid an error.  */
19162 /* We use char because int might match the return type of a gcc2
19163     builtin and then its argument prototype would still apply.  */
19164 char $ac_func();
19165
19166 int main() {
19167
19168 /* The GNU C library defines this for functions which it implements
19169     to always fail with ENOSYS.  Some functions are actually named
19170     something starting with __ and the normal name is an alias.  */
19171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19172 choke me
19173 #else
19174 $ac_func();
19175 #endif
19176
19177 ; return 0; }
19178 EOF
19179 if { (eval echo configure:19180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19180   rm -rf conftest*
19181   eval "ac_cv_func_$ac_func=yes"
19182 else
19183   echo "configure: failed program was:" >&5
19184   cat conftest.$ac_ext >&5
19185   rm -rf conftest*
19186   eval "ac_cv_func_$ac_func=no"
19187 fi
19188 rm -f conftest*
19189 fi
19190
19191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19192   echo "$ac_t""yes" 1>&6
19193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19194   cat >> confdefs.h <<EOF
19195 #define $ac_tr_func 1
19196 EOF
19197  
19198 else
19199   echo "$ac_t""no" 1>&6
19200 fi
19201 done
19202
19203   else
19204     
19205   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19206 echo "configure:19207: checking for _modfl declaration" >&5
19207   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19208     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19209   echo $ac_n "(cached) $ac_c" 1>&6
19210 else
19211   
19212       
19213       ac_ext=C
19214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19215 ac_cpp='$CXXCPP $CPPFLAGS'
19216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19218 cross_compiling=$ac_cv_prog_cxx_cross
19219
19220       cat > conftest.$ac_ext <<EOF
19221 #line 19222 "configure"
19222 #include "confdefs.h"
19223 #include <math.h>
19224 int main() {
19225  _modfl(0, 0);
19226 ; return 0; }
19227 EOF
19228 if { (eval echo configure:19229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19229   rm -rf conftest*
19230   glibcpp_cv_func__modfl_use=yes
19231 else
19232   echo "configure: failed program was:" >&5
19233   cat conftest.$ac_ext >&5
19234   rm -rf conftest*
19235   glibcpp_cv_func__modfl_use=no
19236 fi
19237 rm -f conftest*
19238       ac_ext=c
19239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19240 ac_cpp='$CPP $CPPFLAGS'
19241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19243 cross_compiling=$ac_cv_prog_cc_cross
19244
19245     
19246 fi
19247
19248   fi
19249   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19250
19251     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19252       for ac_func in _modfl
19253 do
19254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19255 echo "configure:19256: checking for $ac_func" >&5
19256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19257   echo $ac_n "(cached) $ac_c" 1>&6
19258 else
19259   cat > conftest.$ac_ext <<EOF
19260 #line 19261 "configure"
19261 #include "confdefs.h"
19262 /* System header to define __stub macros and hopefully few prototypes,
19263     which can conflict with char $ac_func(); below.  */
19264 #include <assert.h>
19265 /* Override any gcc2 internal prototype to avoid an error.  */
19266 /* We use char because int might match the return type of a gcc2
19267     builtin and then its argument prototype would still apply.  */
19268 char $ac_func();
19269
19270 int main() {
19271
19272 /* The GNU C library defines this for functions which it implements
19273     to always fail with ENOSYS.  Some functions are actually named
19274     something starting with __ and the normal name is an alias.  */
19275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19276 choke me
19277 #else
19278 $ac_func();
19279 #endif
19280
19281 ; return 0; }
19282 EOF
19283 if { (eval echo configure:19284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19284   rm -rf conftest*
19285   eval "ac_cv_func_$ac_func=yes"
19286 else
19287   echo "configure: failed program was:" >&5
19288   cat conftest.$ac_ext >&5
19289   rm -rf conftest*
19290   eval "ac_cv_func_$ac_func=no"
19291 fi
19292 rm -f conftest*
19293 fi
19294
19295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19296   echo "$ac_t""yes" 1>&6
19297     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19298   cat >> confdefs.h <<EOF
19299 #define $ac_tr_func 1
19300 EOF
19301  
19302 else
19303   echo "$ac_t""no" 1>&6
19304 fi
19305 done
19306
19307     fi
19308   fi
19309
19310   
19311   
19312   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19313 echo "configure:19314: checking for powl declaration" >&5
19314   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19315     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19316   echo $ac_n "(cached) $ac_c" 1>&6
19317 else
19318   
19319       
19320       ac_ext=C
19321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19322 ac_cpp='$CXXCPP $CPPFLAGS'
19323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19325 cross_compiling=$ac_cv_prog_cxx_cross
19326
19327       cat > conftest.$ac_ext <<EOF
19328 #line 19329 "configure"
19329 #include "confdefs.h"
19330 #include <math.h>
19331 int main() {
19332  powl(0, 0);
19333 ; return 0; }
19334 EOF
19335 if { (eval echo configure:19336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19336   rm -rf conftest*
19337   glibcpp_cv_func_powl_use=yes
19338 else
19339   echo "configure: failed program was:" >&5
19340   cat conftest.$ac_ext >&5
19341   rm -rf conftest*
19342   glibcpp_cv_func_powl_use=no
19343 fi
19344 rm -f conftest*
19345       ac_ext=c
19346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19347 ac_cpp='$CPP $CPPFLAGS'
19348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19350 cross_compiling=$ac_cv_prog_cc_cross
19351
19352     
19353 fi
19354
19355   fi
19356   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19357
19358   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19359     for ac_func in powl
19360 do
19361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19362 echo "configure:19363: checking for $ac_func" >&5
19363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19364   echo $ac_n "(cached) $ac_c" 1>&6
19365 else
19366   cat > conftest.$ac_ext <<EOF
19367 #line 19368 "configure"
19368 #include "confdefs.h"
19369 /* System header to define __stub macros and hopefully few prototypes,
19370     which can conflict with char $ac_func(); below.  */
19371 #include <assert.h>
19372 /* Override any gcc2 internal prototype to avoid an error.  */
19373 /* We use char because int might match the return type of a gcc2
19374     builtin and then its argument prototype would still apply.  */
19375 char $ac_func();
19376
19377 int main() {
19378
19379 /* The GNU C library defines this for functions which it implements
19380     to always fail with ENOSYS.  Some functions are actually named
19381     something starting with __ and the normal name is an alias.  */
19382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19383 choke me
19384 #else
19385 $ac_func();
19386 #endif
19387
19388 ; return 0; }
19389 EOF
19390 if { (eval echo configure:19391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19391   rm -rf conftest*
19392   eval "ac_cv_func_$ac_func=yes"
19393 else
19394   echo "configure: failed program was:" >&5
19395   cat conftest.$ac_ext >&5
19396   rm -rf conftest*
19397   eval "ac_cv_func_$ac_func=no"
19398 fi
19399 rm -f conftest*
19400 fi
19401
19402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19403   echo "$ac_t""yes" 1>&6
19404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19405   cat >> confdefs.h <<EOF
19406 #define $ac_tr_func 1
19407 EOF
19408  
19409 else
19410   echo "$ac_t""no" 1>&6
19411 fi
19412 done
19413
19414   else
19415     
19416   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19417 echo "configure:19418: checking for _powl declaration" >&5
19418   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19419     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19420   echo $ac_n "(cached) $ac_c" 1>&6
19421 else
19422   
19423       
19424       ac_ext=C
19425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19426 ac_cpp='$CXXCPP $CPPFLAGS'
19427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19429 cross_compiling=$ac_cv_prog_cxx_cross
19430
19431       cat > conftest.$ac_ext <<EOF
19432 #line 19433 "configure"
19433 #include "confdefs.h"
19434 #include <math.h>
19435 int main() {
19436  _powl(0, 0);
19437 ; return 0; }
19438 EOF
19439 if { (eval echo configure:19440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19440   rm -rf conftest*
19441   glibcpp_cv_func__powl_use=yes
19442 else
19443   echo "configure: failed program was:" >&5
19444   cat conftest.$ac_ext >&5
19445   rm -rf conftest*
19446   glibcpp_cv_func__powl_use=no
19447 fi
19448 rm -f conftest*
19449       ac_ext=c
19450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19454 cross_compiling=$ac_cv_prog_cc_cross
19455
19456     
19457 fi
19458
19459   fi
19460   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19461
19462     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19463       for ac_func in _powl
19464 do
19465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19466 echo "configure:19467: checking for $ac_func" >&5
19467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19468   echo $ac_n "(cached) $ac_c" 1>&6
19469 else
19470   cat > conftest.$ac_ext <<EOF
19471 #line 19472 "configure"
19472 #include "confdefs.h"
19473 /* System header to define __stub macros and hopefully few prototypes,
19474     which can conflict with char $ac_func(); below.  */
19475 #include <assert.h>
19476 /* Override any gcc2 internal prototype to avoid an error.  */
19477 /* We use char because int might match the return type of a gcc2
19478     builtin and then its argument prototype would still apply.  */
19479 char $ac_func();
19480
19481 int main() {
19482
19483 /* The GNU C library defines this for functions which it implements
19484     to always fail with ENOSYS.  Some functions are actually named
19485     something starting with __ and the normal name is an alias.  */
19486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19487 choke me
19488 #else
19489 $ac_func();
19490 #endif
19491
19492 ; return 0; }
19493 EOF
19494 if { (eval echo configure:19495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19495   rm -rf conftest*
19496   eval "ac_cv_func_$ac_func=yes"
19497 else
19498   echo "configure: failed program was:" >&5
19499   cat conftest.$ac_ext >&5
19500   rm -rf conftest*
19501   eval "ac_cv_func_$ac_func=no"
19502 fi
19503 rm -f conftest*
19504 fi
19505
19506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19507   echo "$ac_t""yes" 1>&6
19508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19509   cat >> confdefs.h <<EOF
19510 #define $ac_tr_func 1
19511 EOF
19512  
19513 else
19514   echo "$ac_t""no" 1>&6
19515 fi
19516 done
19517
19518     fi
19519   fi
19520
19521   
19522   
19523   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19524 echo "configure:19525: checking for sqrtl declaration" >&5
19525   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19526     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19527   echo $ac_n "(cached) $ac_c" 1>&6
19528 else
19529   
19530       
19531       ac_ext=C
19532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19533 ac_cpp='$CXXCPP $CPPFLAGS'
19534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19536 cross_compiling=$ac_cv_prog_cxx_cross
19537
19538       cat > conftest.$ac_ext <<EOF
19539 #line 19540 "configure"
19540 #include "confdefs.h"
19541 #include <math.h>
19542                       #ifdef HAVE_IEEEFP_H
19543                       #include <ieeefp.h>
19544                       #endif
19545                      
19546 int main() {
19547  sqrtl(0);
19548 ; return 0; }
19549 EOF
19550 if { (eval echo configure:19551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19551   rm -rf conftest*
19552   glibcpp_cv_func_sqrtl_use=yes
19553 else
19554   echo "configure: failed program was:" >&5
19555   cat conftest.$ac_ext >&5
19556   rm -rf conftest*
19557   glibcpp_cv_func_sqrtl_use=no
19558 fi
19559 rm -f conftest*
19560       ac_ext=c
19561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19562 ac_cpp='$CPP $CPPFLAGS'
19563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19565 cross_compiling=$ac_cv_prog_cc_cross
19566
19567     
19568 fi
19569
19570   fi
19571   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19572
19573   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19574     for ac_func in sqrtl
19575 do
19576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19577 echo "configure:19578: checking for $ac_func" >&5
19578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19579   echo $ac_n "(cached) $ac_c" 1>&6
19580 else
19581   cat > conftest.$ac_ext <<EOF
19582 #line 19583 "configure"
19583 #include "confdefs.h"
19584 /* System header to define __stub macros and hopefully few prototypes,
19585     which can conflict with char $ac_func(); below.  */
19586 #include <assert.h>
19587 /* Override any gcc2 internal prototype to avoid an error.  */
19588 /* We use char because int might match the return type of a gcc2
19589     builtin and then its argument prototype would still apply.  */
19590 char $ac_func();
19591
19592 int main() {
19593
19594 /* The GNU C library defines this for functions which it implements
19595     to always fail with ENOSYS.  Some functions are actually named
19596     something starting with __ and the normal name is an alias.  */
19597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19598 choke me
19599 #else
19600 $ac_func();
19601 #endif
19602
19603 ; return 0; }
19604 EOF
19605 if { (eval echo configure:19606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19606   rm -rf conftest*
19607   eval "ac_cv_func_$ac_func=yes"
19608 else
19609   echo "configure: failed program was:" >&5
19610   cat conftest.$ac_ext >&5
19611   rm -rf conftest*
19612   eval "ac_cv_func_$ac_func=no"
19613 fi
19614 rm -f conftest*
19615 fi
19616
19617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19618   echo "$ac_t""yes" 1>&6
19619     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19620   cat >> confdefs.h <<EOF
19621 #define $ac_tr_func 1
19622 EOF
19623  
19624 else
19625   echo "$ac_t""no" 1>&6
19626 fi
19627 done
19628
19629   else
19630     
19631   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19632 echo "configure:19633: checking for _sqrtl declaration" >&5
19633   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19634     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19635   echo $ac_n "(cached) $ac_c" 1>&6
19636 else
19637   
19638       
19639       ac_ext=C
19640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19641 ac_cpp='$CXXCPP $CPPFLAGS'
19642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19644 cross_compiling=$ac_cv_prog_cxx_cross
19645
19646       cat > conftest.$ac_ext <<EOF
19647 #line 19648 "configure"
19648 #include "confdefs.h"
19649 #include <math.h>
19650                       #ifdef HAVE_IEEEFP_H
19651                       #include <ieeefp.h>
19652                       #endif
19653                      
19654 int main() {
19655  _sqrtl(0);
19656 ; return 0; }
19657 EOF
19658 if { (eval echo configure:19659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19659   rm -rf conftest*
19660   glibcpp_cv_func__sqrtl_use=yes
19661 else
19662   echo "configure: failed program was:" >&5
19663   cat conftest.$ac_ext >&5
19664   rm -rf conftest*
19665   glibcpp_cv_func__sqrtl_use=no
19666 fi
19667 rm -f conftest*
19668       ac_ext=c
19669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19670 ac_cpp='$CPP $CPPFLAGS'
19671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19673 cross_compiling=$ac_cv_prog_cc_cross
19674
19675     
19676 fi
19677
19678   fi
19679   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19680
19681     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19682       for ac_func in _sqrtl
19683 do
19684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19685 echo "configure:19686: checking for $ac_func" >&5
19686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19687   echo $ac_n "(cached) $ac_c" 1>&6
19688 else
19689   cat > conftest.$ac_ext <<EOF
19690 #line 19691 "configure"
19691 #include "confdefs.h"
19692 /* System header to define __stub macros and hopefully few prototypes,
19693     which can conflict with char $ac_func(); below.  */
19694 #include <assert.h>
19695 /* Override any gcc2 internal prototype to avoid an error.  */
19696 /* We use char because int might match the return type of a gcc2
19697     builtin and then its argument prototype would still apply.  */
19698 char $ac_func();
19699
19700 int main() {
19701
19702 /* The GNU C library defines this for functions which it implements
19703     to always fail with ENOSYS.  Some functions are actually named
19704     something starting with __ and the normal name is an alias.  */
19705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19706 choke me
19707 #else
19708 $ac_func();
19709 #endif
19710
19711 ; return 0; }
19712 EOF
19713 if { (eval echo configure:19714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19714   rm -rf conftest*
19715   eval "ac_cv_func_$ac_func=yes"
19716 else
19717   echo "configure: failed program was:" >&5
19718   cat conftest.$ac_ext >&5
19719   rm -rf conftest*
19720   eval "ac_cv_func_$ac_func=no"
19721 fi
19722 rm -f conftest*
19723 fi
19724
19725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19726   echo "$ac_t""yes" 1>&6
19727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19728   cat >> confdefs.h <<EOF
19729 #define $ac_tr_func 1
19730 EOF
19731  
19732 else
19733   echo "$ac_t""no" 1>&6
19734 fi
19735 done
19736
19737     fi
19738   fi
19739
19740   
19741   
19742   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19743 echo "configure:19744: checking for sincosl declaration" >&5
19744   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19745     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19746   echo $ac_n "(cached) $ac_c" 1>&6
19747 else
19748   
19749       
19750       ac_ext=C
19751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19752 ac_cpp='$CXXCPP $CPPFLAGS'
19753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19755 cross_compiling=$ac_cv_prog_cxx_cross
19756
19757       cat > conftest.$ac_ext <<EOF
19758 #line 19759 "configure"
19759 #include "confdefs.h"
19760 #include <math.h>
19761 int main() {
19762  sincosl(0, 0, 0);
19763 ; return 0; }
19764 EOF
19765 if { (eval echo configure:19766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19766   rm -rf conftest*
19767   glibcpp_cv_func_sincosl_use=yes
19768 else
19769   echo "configure: failed program was:" >&5
19770   cat conftest.$ac_ext >&5
19771   rm -rf conftest*
19772   glibcpp_cv_func_sincosl_use=no
19773 fi
19774 rm -f conftest*
19775       ac_ext=c
19776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19777 ac_cpp='$CPP $CPPFLAGS'
19778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19780 cross_compiling=$ac_cv_prog_cc_cross
19781
19782     
19783 fi
19784
19785   fi
19786   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19787
19788   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19789     for ac_func in sincosl
19790 do
19791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19792 echo "configure:19793: checking for $ac_func" >&5
19793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19794   echo $ac_n "(cached) $ac_c" 1>&6
19795 else
19796   cat > conftest.$ac_ext <<EOF
19797 #line 19798 "configure"
19798 #include "confdefs.h"
19799 /* System header to define __stub macros and hopefully few prototypes,
19800     which can conflict with char $ac_func(); below.  */
19801 #include <assert.h>
19802 /* Override any gcc2 internal prototype to avoid an error.  */
19803 /* We use char because int might match the return type of a gcc2
19804     builtin and then its argument prototype would still apply.  */
19805 char $ac_func();
19806
19807 int main() {
19808
19809 /* The GNU C library defines this for functions which it implements
19810     to always fail with ENOSYS.  Some functions are actually named
19811     something starting with __ and the normal name is an alias.  */
19812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19813 choke me
19814 #else
19815 $ac_func();
19816 #endif
19817
19818 ; return 0; }
19819 EOF
19820 if { (eval echo configure:19821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19821   rm -rf conftest*
19822   eval "ac_cv_func_$ac_func=yes"
19823 else
19824   echo "configure: failed program was:" >&5
19825   cat conftest.$ac_ext >&5
19826   rm -rf conftest*
19827   eval "ac_cv_func_$ac_func=no"
19828 fi
19829 rm -f conftest*
19830 fi
19831
19832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19833   echo "$ac_t""yes" 1>&6
19834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19835   cat >> confdefs.h <<EOF
19836 #define $ac_tr_func 1
19837 EOF
19838  
19839 else
19840   echo "$ac_t""no" 1>&6
19841 fi
19842 done
19843
19844   else
19845     
19846   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19847 echo "configure:19848: checking for _sincosl declaration" >&5
19848   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19849     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19850   echo $ac_n "(cached) $ac_c" 1>&6
19851 else
19852   
19853       
19854       ac_ext=C
19855 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19856 ac_cpp='$CXXCPP $CPPFLAGS'
19857 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19858 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19859 cross_compiling=$ac_cv_prog_cxx_cross
19860
19861       cat > conftest.$ac_ext <<EOF
19862 #line 19863 "configure"
19863 #include "confdefs.h"
19864 #include <math.h>
19865 int main() {
19866  _sincosl(0, 0, 0);
19867 ; return 0; }
19868 EOF
19869 if { (eval echo configure:19870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19870   rm -rf conftest*
19871   glibcpp_cv_func__sincosl_use=yes
19872 else
19873   echo "configure: failed program was:" >&5
19874   cat conftest.$ac_ext >&5
19875   rm -rf conftest*
19876   glibcpp_cv_func__sincosl_use=no
19877 fi
19878 rm -f conftest*
19879       ac_ext=c
19880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19884 cross_compiling=$ac_cv_prog_cc_cross
19885
19886     
19887 fi
19888
19889   fi
19890   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19891
19892     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19893       for ac_func in _sincosl
19894 do
19895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19896 echo "configure:19897: checking for $ac_func" >&5
19897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19898   echo $ac_n "(cached) $ac_c" 1>&6
19899 else
19900   cat > conftest.$ac_ext <<EOF
19901 #line 19902 "configure"
19902 #include "confdefs.h"
19903 /* System header to define __stub macros and hopefully few prototypes,
19904     which can conflict with char $ac_func(); below.  */
19905 #include <assert.h>
19906 /* Override any gcc2 internal prototype to avoid an error.  */
19907 /* We use char because int might match the return type of a gcc2
19908     builtin and then its argument prototype would still apply.  */
19909 char $ac_func();
19910
19911 int main() {
19912
19913 /* The GNU C library defines this for functions which it implements
19914     to always fail with ENOSYS.  Some functions are actually named
19915     something starting with __ and the normal name is an alias.  */
19916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19917 choke me
19918 #else
19919 $ac_func();
19920 #endif
19921
19922 ; return 0; }
19923 EOF
19924 if { (eval echo configure:19925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19925   rm -rf conftest*
19926   eval "ac_cv_func_$ac_func=yes"
19927 else
19928   echo "configure: failed program was:" >&5
19929   cat conftest.$ac_ext >&5
19930   rm -rf conftest*
19931   eval "ac_cv_func_$ac_func=no"
19932 fi
19933 rm -f conftest*
19934 fi
19935
19936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19937   echo "$ac_t""yes" 1>&6
19938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19939   cat >> confdefs.h <<EOF
19940 #define $ac_tr_func 1
19941 EOF
19942  
19943 else
19944   echo "$ac_t""no" 1>&6
19945 fi
19946 done
19947
19948     fi
19949   fi
19950
19951   
19952   
19953   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19954 echo "configure:19955: checking for finitel declaration" >&5
19955   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19956     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19957   echo $ac_n "(cached) $ac_c" 1>&6
19958 else
19959   
19960       
19961       ac_ext=C
19962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19963 ac_cpp='$CXXCPP $CPPFLAGS'
19964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19966 cross_compiling=$ac_cv_prog_cxx_cross
19967
19968       cat > conftest.$ac_ext <<EOF
19969 #line 19970 "configure"
19970 #include "confdefs.h"
19971 #include <math.h>
19972                       #ifdef HAVE_IEEEFP_H
19973                       #include <ieeefp.h>
19974                       #endif
19975                      
19976 int main() {
19977  finitel(0);
19978 ; return 0; }
19979 EOF
19980 if { (eval echo configure:19981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19981   rm -rf conftest*
19982   glibcpp_cv_func_finitel_use=yes
19983 else
19984   echo "configure: failed program was:" >&5
19985   cat conftest.$ac_ext >&5
19986   rm -rf conftest*
19987   glibcpp_cv_func_finitel_use=no
19988 fi
19989 rm -f conftest*
19990       ac_ext=c
19991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19992 ac_cpp='$CPP $CPPFLAGS'
19993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19995 cross_compiling=$ac_cv_prog_cc_cross
19996
19997     
19998 fi
19999
20000   fi
20001   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
20002
20003   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
20004     for ac_func in finitel
20005 do
20006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20007 echo "configure:20008: checking for $ac_func" >&5
20008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20009   echo $ac_n "(cached) $ac_c" 1>&6
20010 else
20011   cat > conftest.$ac_ext <<EOF
20012 #line 20013 "configure"
20013 #include "confdefs.h"
20014 /* System header to define __stub macros and hopefully few prototypes,
20015     which can conflict with char $ac_func(); below.  */
20016 #include <assert.h>
20017 /* Override any gcc2 internal prototype to avoid an error.  */
20018 /* We use char because int might match the return type of a gcc2
20019     builtin and then its argument prototype would still apply.  */
20020 char $ac_func();
20021
20022 int main() {
20023
20024 /* The GNU C library defines this for functions which it implements
20025     to always fail with ENOSYS.  Some functions are actually named
20026     something starting with __ and the normal name is an alias.  */
20027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20028 choke me
20029 #else
20030 $ac_func();
20031 #endif
20032
20033 ; return 0; }
20034 EOF
20035 if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20036   rm -rf conftest*
20037   eval "ac_cv_func_$ac_func=yes"
20038 else
20039   echo "configure: failed program was:" >&5
20040   cat conftest.$ac_ext >&5
20041   rm -rf conftest*
20042   eval "ac_cv_func_$ac_func=no"
20043 fi
20044 rm -f conftest*
20045 fi
20046
20047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20048   echo "$ac_t""yes" 1>&6
20049     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20050   cat >> confdefs.h <<EOF
20051 #define $ac_tr_func 1
20052 EOF
20053  
20054 else
20055   echo "$ac_t""no" 1>&6
20056 fi
20057 done
20058
20059   else
20060     
20061   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20062 echo "configure:20063: checking for _finitel declaration" >&5
20063   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20064     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20065   echo $ac_n "(cached) $ac_c" 1>&6
20066 else
20067   
20068       
20069       ac_ext=C
20070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20071 ac_cpp='$CXXCPP $CPPFLAGS'
20072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20074 cross_compiling=$ac_cv_prog_cxx_cross
20075
20076       cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 #include <math.h>
20080                       #ifdef HAVE_IEEEFP_H
20081                       #include <ieeefp.h>
20082                       #endif
20083                      
20084 int main() {
20085  _finitel(0);
20086 ; return 0; }
20087 EOF
20088 if { (eval echo configure:20089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20089   rm -rf conftest*
20090   glibcpp_cv_func__finitel_use=yes
20091 else
20092   echo "configure: failed program was:" >&5
20093   cat conftest.$ac_ext >&5
20094   rm -rf conftest*
20095   glibcpp_cv_func__finitel_use=no
20096 fi
20097 rm -f conftest*
20098       ac_ext=c
20099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20100 ac_cpp='$CPP $CPPFLAGS'
20101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20103 cross_compiling=$ac_cv_prog_cc_cross
20104
20105     
20106 fi
20107
20108   fi
20109   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20110
20111     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20112       for ac_func in _finitel
20113 do
20114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20115 echo "configure:20116: checking for $ac_func" >&5
20116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20117   echo $ac_n "(cached) $ac_c" 1>&6
20118 else
20119   cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20122 /* System header to define __stub macros and hopefully few prototypes,
20123     which can conflict with char $ac_func(); below.  */
20124 #include <assert.h>
20125 /* Override any gcc2 internal prototype to avoid an error.  */
20126 /* We use char because int might match the return type of a gcc2
20127     builtin and then its argument prototype would still apply.  */
20128 char $ac_func();
20129
20130 int main() {
20131
20132 /* The GNU C library defines this for functions which it implements
20133     to always fail with ENOSYS.  Some functions are actually named
20134     something starting with __ and the normal name is an alias.  */
20135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20136 choke me
20137 #else
20138 $ac_func();
20139 #endif
20140
20141 ; return 0; }
20142 EOF
20143 if { (eval echo configure:20144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20144   rm -rf conftest*
20145   eval "ac_cv_func_$ac_func=yes"
20146 else
20147   echo "configure: failed program was:" >&5
20148   cat conftest.$ac_ext >&5
20149   rm -rf conftest*
20150   eval "ac_cv_func_$ac_func=no"
20151 fi
20152 rm -f conftest*
20153 fi
20154
20155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20156   echo "$ac_t""yes" 1>&6
20157     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20158   cat >> confdefs.h <<EOF
20159 #define $ac_tr_func 1
20160 EOF
20161  
20162 else
20163   echo "$ac_t""no" 1>&6
20164 fi
20165 done
20166
20167     fi
20168   fi
20169
20170
20171         
20172     
20173   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20174 echo "configure:20175: checking for _float trig functions" >&5
20175   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20176   echo $ac_n "(cached) $ac_c" 1>&6
20177 else
20178   
20179     
20180     ac_ext=C
20181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20182 ac_cpp='$CXXCPP $CPPFLAGS'
20183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20185 cross_compiling=$ac_cv_prog_cxx_cross
20186
20187     cat > conftest.$ac_ext <<EOF
20188 #line 20189 "configure"
20189 #include "confdefs.h"
20190 #include <math.h>
20191 int main() {
20192  `for x in _acosf _asinf _atanf \
20193                                           _cosf _sinf _tanf \
20194                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
20195 ; return 0; }
20196 EOF
20197 if { (eval echo configure:20198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20198   rm -rf conftest*
20199   glibcpp_cv_func__float_trig_use=yes
20200 else
20201   echo "configure: failed program was:" >&5
20202   cat conftest.$ac_ext >&5
20203   rm -rf conftest*
20204   glibcpp_cv_func__float_trig_use=no
20205 fi
20206 rm -f conftest*
20207     ac_ext=c
20208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20209 ac_cpp='$CPP $CPPFLAGS'
20210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20212 cross_compiling=$ac_cv_prog_cc_cross
20213
20214 fi
20215
20216   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20217   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20218     for ac_func in _acosf _asinf _atanf \
20219                                           _cosf _sinf _tanf \
20220                                           _coshf _sinhf _tanhf
20221 do
20222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20223 echo "configure:20224: checking for $ac_func" >&5
20224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20225   echo $ac_n "(cached) $ac_c" 1>&6
20226 else
20227   cat > conftest.$ac_ext <<EOF
20228 #line 20229 "configure"
20229 #include "confdefs.h"
20230 /* System header to define __stub macros and hopefully few prototypes,
20231     which can conflict with char $ac_func(); below.  */
20232 #include <assert.h>
20233 /* Override any gcc2 internal prototype to avoid an error.  */
20234 /* We use char because int might match the return type of a gcc2
20235     builtin and then its argument prototype would still apply.  */
20236 char $ac_func();
20237
20238 int main() {
20239
20240 /* The GNU C library defines this for functions which it implements
20241     to always fail with ENOSYS.  Some functions are actually named
20242     something starting with __ and the normal name is an alias.  */
20243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20244 choke me
20245 #else
20246 $ac_func();
20247 #endif
20248
20249 ; return 0; }
20250 EOF
20251 if { (eval echo configure:20252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20252   rm -rf conftest*
20253   eval "ac_cv_func_$ac_func=yes"
20254 else
20255   echo "configure: failed program was:" >&5
20256   cat conftest.$ac_ext >&5
20257   rm -rf conftest*
20258   eval "ac_cv_func_$ac_func=no"
20259 fi
20260 rm -f conftest*
20261 fi
20262
20263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20264   echo "$ac_t""yes" 1>&6
20265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20266   cat >> confdefs.h <<EOF
20267 #define $ac_tr_func 1
20268 EOF
20269  
20270 else
20271   echo "$ac_t""no" 1>&6
20272 fi
20273 done
20274
20275   fi
20276
20277   
20278   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20279 echo "configure:20280: checking for _float round functions" >&5
20280   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20281   echo $ac_n "(cached) $ac_c" 1>&6
20282 else
20283   
20284     
20285     ac_ext=C
20286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20287 ac_cpp='$CXXCPP $CPPFLAGS'
20288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20290 cross_compiling=$ac_cv_prog_cxx_cross
20291
20292     cat > conftest.$ac_ext <<EOF
20293 #line 20294 "configure"
20294 #include "confdefs.h"
20295 #include <math.h>
20296 int main() {
20297  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20298 ; return 0; }
20299 EOF
20300 if { (eval echo configure:20301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20301   rm -rf conftest*
20302   glibcpp_cv_func__float_round_use=yes
20303 else
20304   echo "configure: failed program was:" >&5
20305   cat conftest.$ac_ext >&5
20306   rm -rf conftest*
20307   glibcpp_cv_func__float_round_use=no
20308 fi
20309 rm -f conftest*
20310     ac_ext=c
20311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20312 ac_cpp='$CPP $CPPFLAGS'
20313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20315 cross_compiling=$ac_cv_prog_cc_cross
20316
20317 fi
20318
20319   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20320   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20321     for ac_func in _ceilf _floorf
20322 do
20323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20324 echo "configure:20325: checking for $ac_func" >&5
20325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20326   echo $ac_n "(cached) $ac_c" 1>&6
20327 else
20328   cat > conftest.$ac_ext <<EOF
20329 #line 20330 "configure"
20330 #include "confdefs.h"
20331 /* System header to define __stub macros and hopefully few prototypes,
20332     which can conflict with char $ac_func(); below.  */
20333 #include <assert.h>
20334 /* Override any gcc2 internal prototype to avoid an error.  */
20335 /* We use char because int might match the return type of a gcc2
20336     builtin and then its argument prototype would still apply.  */
20337 char $ac_func();
20338
20339 int main() {
20340
20341 /* The GNU C library defines this for functions which it implements
20342     to always fail with ENOSYS.  Some functions are actually named
20343     something starting with __ and the normal name is an alias.  */
20344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20345 choke me
20346 #else
20347 $ac_func();
20348 #endif
20349
20350 ; return 0; }
20351 EOF
20352 if { (eval echo configure:20353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20353   rm -rf conftest*
20354   eval "ac_cv_func_$ac_func=yes"
20355 else
20356   echo "configure: failed program was:" >&5
20357   cat conftest.$ac_ext >&5
20358   rm -rf conftest*
20359   eval "ac_cv_func_$ac_func=no"
20360 fi
20361 rm -f conftest*
20362 fi
20363
20364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20365   echo "$ac_t""yes" 1>&6
20366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20367   cat >> confdefs.h <<EOF
20368 #define $ac_tr_func 1
20369 EOF
20370  
20371 else
20372   echo "$ac_t""no" 1>&6
20373 fi
20374 done
20375
20376   fi
20377
20378
20379     
20380   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20381 echo "configure:20382: checking for _long double trig functions" >&5
20382   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20383   echo $ac_n "(cached) $ac_c" 1>&6
20384 else
20385   
20386     
20387     ac_ext=C
20388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20389 ac_cpp='$CXXCPP $CPPFLAGS'
20390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20392 cross_compiling=$ac_cv_prog_cxx_cross
20393
20394     cat > conftest.$ac_ext <<EOF
20395 #line 20396 "configure"
20396 #include "confdefs.h"
20397 #include <math.h>
20398 int main() {
20399  `for x in _acosl _asinl _atanl \
20400                                           _cosl _sinl _tanl \
20401                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20402 ; return 0; }
20403 EOF
20404 if { (eval echo configure:20405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20405   rm -rf conftest*
20406   glibcpp_cv_func__long_double_trig_use=yes
20407 else
20408   echo "configure: failed program was:" >&5
20409   cat conftest.$ac_ext >&5
20410   rm -rf conftest*
20411   glibcpp_cv_func__long_double_trig_use=no
20412 fi
20413 rm -f conftest*
20414     ac_ext=c
20415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20416 ac_cpp='$CPP $CPPFLAGS'
20417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20419 cross_compiling=$ac_cv_prog_cc_cross
20420
20421 fi
20422
20423   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20424   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20425     for ac_func in _acosl _asinl _atanl \
20426                                           _cosl _sinl _tanl \
20427                                           _coshl _sinhl _tanhl
20428 do
20429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20430 echo "configure:20431: checking for $ac_func" >&5
20431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20432   echo $ac_n "(cached) $ac_c" 1>&6
20433 else
20434   cat > conftest.$ac_ext <<EOF
20435 #line 20436 "configure"
20436 #include "confdefs.h"
20437 /* System header to define __stub macros and hopefully few prototypes,
20438     which can conflict with char $ac_func(); below.  */
20439 #include <assert.h>
20440 /* Override any gcc2 internal prototype to avoid an error.  */
20441 /* We use char because int might match the return type of a gcc2
20442     builtin and then its argument prototype would still apply.  */
20443 char $ac_func();
20444
20445 int main() {
20446
20447 /* The GNU C library defines this for functions which it implements
20448     to always fail with ENOSYS.  Some functions are actually named
20449     something starting with __ and the normal name is an alias.  */
20450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20451 choke me
20452 #else
20453 $ac_func();
20454 #endif
20455
20456 ; return 0; }
20457 EOF
20458 if { (eval echo configure:20459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20459   rm -rf conftest*
20460   eval "ac_cv_func_$ac_func=yes"
20461 else
20462   echo "configure: failed program was:" >&5
20463   cat conftest.$ac_ext >&5
20464   rm -rf conftest*
20465   eval "ac_cv_func_$ac_func=no"
20466 fi
20467 rm -f conftest*
20468 fi
20469
20470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20471   echo "$ac_t""yes" 1>&6
20472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20473   cat >> confdefs.h <<EOF
20474 #define $ac_tr_func 1
20475 EOF
20476  
20477 else
20478   echo "$ac_t""no" 1>&6
20479 fi
20480 done
20481
20482   fi
20483
20484   
20485   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20486 echo "configure:20487: checking for _long double round functions" >&5
20487   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20488   echo $ac_n "(cached) $ac_c" 1>&6
20489 else
20490   
20491     
20492     ac_ext=C
20493 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20494 ac_cpp='$CXXCPP $CPPFLAGS'
20495 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20496 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20497 cross_compiling=$ac_cv_prog_cxx_cross
20498
20499     cat > conftest.$ac_ext <<EOF
20500 #line 20501 "configure"
20501 #include "confdefs.h"
20502 #include <math.h>
20503 int main() {
20504  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20505 ; return 0; }
20506 EOF
20507 if { (eval echo configure:20508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20508   rm -rf conftest*
20509   glibcpp_cv_func__long_double_round_use=yes
20510 else
20511   echo "configure: failed program was:" >&5
20512   cat conftest.$ac_ext >&5
20513   rm -rf conftest*
20514   glibcpp_cv_func__long_double_round_use=no
20515 fi
20516 rm -f conftest*
20517     ac_ext=c
20518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20519 ac_cpp='$CPP $CPPFLAGS'
20520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20522 cross_compiling=$ac_cv_prog_cc_cross
20523
20524 fi
20525
20526   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20527   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20528     for ac_func in _ceill _floorl
20529 do
20530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20531 echo "configure:20532: checking for $ac_func" >&5
20532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20533   echo $ac_n "(cached) $ac_c" 1>&6
20534 else
20535   cat > conftest.$ac_ext <<EOF
20536 #line 20537 "configure"
20537 #include "confdefs.h"
20538 /* System header to define __stub macros and hopefully few prototypes,
20539     which can conflict with char $ac_func(); below.  */
20540 #include <assert.h>
20541 /* Override any gcc2 internal prototype to avoid an error.  */
20542 /* We use char because int might match the return type of a gcc2
20543     builtin and then its argument prototype would still apply.  */
20544 char $ac_func();
20545
20546 int main() {
20547
20548 /* The GNU C library defines this for functions which it implements
20549     to always fail with ENOSYS.  Some functions are actually named
20550     something starting with __ and the normal name is an alias.  */
20551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20552 choke me
20553 #else
20554 $ac_func();
20555 #endif
20556
20557 ; return 0; }
20558 EOF
20559 if { (eval echo configure:20560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20560   rm -rf conftest*
20561   eval "ac_cv_func_$ac_func=yes"
20562 else
20563   echo "configure: failed program was:" >&5
20564   cat conftest.$ac_ext >&5
20565   rm -rf conftest*
20566   eval "ac_cv_func_$ac_func=no"
20567 fi
20568 rm -f conftest*
20569 fi
20570
20571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20572   echo "$ac_t""yes" 1>&6
20573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20574   cat >> confdefs.h <<EOF
20575 #define $ac_tr_func 1
20576 EOF
20577  
20578 else
20579   echo "$ac_t""no" 1>&6
20580 fi
20581 done
20582
20583   fi
20584
20585
20586   LIBS="$ac_save_LIBS"
20587   CXXFLAGS="$ac_save_CXXFLAGS"
20588
20589   
20590       
20591   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20592 echo "configure:20593: checking for __builtin_abs declaration" >&5
20593   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20594     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20595   echo $ac_n "(cached) $ac_c" 1>&6
20596 else
20597   
20598       
20599       ac_ext=C
20600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20601 ac_cpp='$CXXCPP $CPPFLAGS'
20602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20604 cross_compiling=$ac_cv_prog_cxx_cross
20605
20606       cat > conftest.$ac_ext <<EOF
20607 #line 20608 "configure"
20608 #include "confdefs.h"
20609 #include <math.h>
20610 int main() {
20611  __builtin_abs(0);
20612 ; return 0; }
20613 EOF
20614 if { (eval echo configure:20615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20615   rm -rf conftest*
20616   glibcpp_cv_func___builtin_abs_use=yes
20617 else
20618   echo "configure: failed program was:" >&5
20619   cat conftest.$ac_ext >&5
20620   rm -rf conftest*
20621   glibcpp_cv_func___builtin_abs_use=no
20622 fi
20623 rm -f conftest*
20624       ac_ext=c
20625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20626 ac_cpp='$CPP $CPPFLAGS'
20627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20629 cross_compiling=$ac_cv_prog_cc_cross
20630
20631     
20632 fi
20633
20634   fi
20635   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20636   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20637     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20638 echo "configure:20639: checking for __builtin_abs linkage" >&5
20639     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20640       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20641   echo $ac_n "(cached) $ac_c" 1>&6
20642 else
20643   
20644         cat > conftest.$ac_ext <<EOF
20645 #line 20646 "configure"
20646 #include "confdefs.h"
20647 #include <math.h>
20648 int main() {
20649  __builtin_abs(0);
20650 ; return 0; }
20651 EOF
20652 if { (eval echo configure:20653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20653   rm -rf conftest*
20654   glibcpp_cv_func___builtin_abs_link=yes
20655 else
20656   echo "configure: failed program was:" >&5
20657   cat conftest.$ac_ext >&5
20658   rm -rf conftest*
20659   glibcpp_cv_func___builtin_abs_link=no
20660 fi
20661 rm -f conftest*
20662       
20663 fi
20664
20665     fi
20666     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20667     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20668       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20669       cat >> confdefs.h <<EOF
20670 #define ${ac_tr_func} 1
20671 EOF
20672
20673     fi
20674   fi
20675
20676   
20677   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20678 echo "configure:20679: checking for __builtin_fabsf declaration" >&5
20679   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20680     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20681   echo $ac_n "(cached) $ac_c" 1>&6
20682 else
20683   
20684       
20685       ac_ext=C
20686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20687 ac_cpp='$CXXCPP $CPPFLAGS'
20688 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20689 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20690 cross_compiling=$ac_cv_prog_cxx_cross
20691
20692       cat > conftest.$ac_ext <<EOF
20693 #line 20694 "configure"
20694 #include "confdefs.h"
20695 #include <math.h>
20696 int main() {
20697  __builtin_fabsf(0);
20698 ; return 0; }
20699 EOF
20700 if { (eval echo configure:20701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20701   rm -rf conftest*
20702   glibcpp_cv_func___builtin_fabsf_use=yes
20703 else
20704   echo "configure: failed program was:" >&5
20705   cat conftest.$ac_ext >&5
20706   rm -rf conftest*
20707   glibcpp_cv_func___builtin_fabsf_use=no
20708 fi
20709 rm -f conftest*
20710       ac_ext=c
20711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20712 ac_cpp='$CPP $CPPFLAGS'
20713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20715 cross_compiling=$ac_cv_prog_cc_cross
20716
20717     
20718 fi
20719
20720   fi
20721   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20722   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20723     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20724 echo "configure:20725: checking for __builtin_fabsf linkage" >&5
20725     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20726       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20727   echo $ac_n "(cached) $ac_c" 1>&6
20728 else
20729   
20730         cat > conftest.$ac_ext <<EOF
20731 #line 20732 "configure"
20732 #include "confdefs.h"
20733 #include <math.h>
20734 int main() {
20735  __builtin_fabsf(0);
20736 ; return 0; }
20737 EOF
20738 if { (eval echo configure:20739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20739   rm -rf conftest*
20740   glibcpp_cv_func___builtin_fabsf_link=yes
20741 else
20742   echo "configure: failed program was:" >&5
20743   cat conftest.$ac_ext >&5
20744   rm -rf conftest*
20745   glibcpp_cv_func___builtin_fabsf_link=no
20746 fi
20747 rm -f conftest*
20748       
20749 fi
20750
20751     fi
20752     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20753     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20754       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20755       cat >> confdefs.h <<EOF
20756 #define ${ac_tr_func} 1
20757 EOF
20758
20759     fi
20760   fi
20761
20762   
20763   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20764 echo "configure:20765: checking for __builtin_fabs declaration" >&5
20765   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20766     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20767   echo $ac_n "(cached) $ac_c" 1>&6
20768 else
20769   
20770       
20771       ac_ext=C
20772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20773 ac_cpp='$CXXCPP $CPPFLAGS'
20774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20776 cross_compiling=$ac_cv_prog_cxx_cross
20777
20778       cat > conftest.$ac_ext <<EOF
20779 #line 20780 "configure"
20780 #include "confdefs.h"
20781 #include <math.h>
20782 int main() {
20783  __builtin_fabs(0);
20784 ; return 0; }
20785 EOF
20786 if { (eval echo configure:20787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20787   rm -rf conftest*
20788   glibcpp_cv_func___builtin_fabs_use=yes
20789 else
20790   echo "configure: failed program was:" >&5
20791   cat conftest.$ac_ext >&5
20792   rm -rf conftest*
20793   glibcpp_cv_func___builtin_fabs_use=no
20794 fi
20795 rm -f conftest*
20796       ac_ext=c
20797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20798 ac_cpp='$CPP $CPPFLAGS'
20799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20801 cross_compiling=$ac_cv_prog_cc_cross
20802
20803     
20804 fi
20805
20806   fi
20807   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20808   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20809     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20810 echo "configure:20811: checking for __builtin_fabs linkage" >&5
20811     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20812       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20813   echo $ac_n "(cached) $ac_c" 1>&6
20814 else
20815   
20816         cat > conftest.$ac_ext <<EOF
20817 #line 20818 "configure"
20818 #include "confdefs.h"
20819 #include <math.h>
20820 int main() {
20821  __builtin_fabs(0);
20822 ; return 0; }
20823 EOF
20824 if { (eval echo configure:20825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20825   rm -rf conftest*
20826   glibcpp_cv_func___builtin_fabs_link=yes
20827 else
20828   echo "configure: failed program was:" >&5
20829   cat conftest.$ac_ext >&5
20830   rm -rf conftest*
20831   glibcpp_cv_func___builtin_fabs_link=no
20832 fi
20833 rm -f conftest*
20834       
20835 fi
20836
20837     fi
20838     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20839     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20840       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20841       cat >> confdefs.h <<EOF
20842 #define ${ac_tr_func} 1
20843 EOF
20844
20845     fi
20846   fi
20847
20848   
20849   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20850 echo "configure:20851: checking for __builtin_fabsl declaration" >&5
20851   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20852     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20853   echo $ac_n "(cached) $ac_c" 1>&6
20854 else
20855   
20856       
20857       ac_ext=C
20858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20859 ac_cpp='$CXXCPP $CPPFLAGS'
20860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20862 cross_compiling=$ac_cv_prog_cxx_cross
20863
20864       cat > conftest.$ac_ext <<EOF
20865 #line 20866 "configure"
20866 #include "confdefs.h"
20867 #include <math.h>
20868 int main() {
20869  __builtin_fabsl(0);
20870 ; return 0; }
20871 EOF
20872 if { (eval echo configure:20873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20873   rm -rf conftest*
20874   glibcpp_cv_func___builtin_fabsl_use=yes
20875 else
20876   echo "configure: failed program was:" >&5
20877   cat conftest.$ac_ext >&5
20878   rm -rf conftest*
20879   glibcpp_cv_func___builtin_fabsl_use=no
20880 fi
20881 rm -f conftest*
20882       ac_ext=c
20883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20884 ac_cpp='$CPP $CPPFLAGS'
20885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20887 cross_compiling=$ac_cv_prog_cc_cross
20888
20889     
20890 fi
20891
20892   fi
20893   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20894   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20895     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20896 echo "configure:20897: checking for __builtin_fabsl linkage" >&5
20897     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20898       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20899   echo $ac_n "(cached) $ac_c" 1>&6
20900 else
20901   
20902         cat > conftest.$ac_ext <<EOF
20903 #line 20904 "configure"
20904 #include "confdefs.h"
20905 #include <math.h>
20906 int main() {
20907  __builtin_fabsl(0);
20908 ; return 0; }
20909 EOF
20910 if { (eval echo configure:20911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20911   rm -rf conftest*
20912   glibcpp_cv_func___builtin_fabsl_link=yes
20913 else
20914   echo "configure: failed program was:" >&5
20915   cat conftest.$ac_ext >&5
20916   rm -rf conftest*
20917   glibcpp_cv_func___builtin_fabsl_link=no
20918 fi
20919 rm -f conftest*
20920       
20921 fi
20922
20923     fi
20924     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20925     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20926       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20927       cat >> confdefs.h <<EOF
20928 #define ${ac_tr_func} 1
20929 EOF
20930
20931     fi
20932   fi
20933
20934   
20935   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20936 echo "configure:20937: checking for __builtin_labs declaration" >&5
20937   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20938     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20939   echo $ac_n "(cached) $ac_c" 1>&6
20940 else
20941   
20942       
20943       ac_ext=C
20944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20945 ac_cpp='$CXXCPP $CPPFLAGS'
20946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20948 cross_compiling=$ac_cv_prog_cxx_cross
20949
20950       cat > conftest.$ac_ext <<EOF
20951 #line 20952 "configure"
20952 #include "confdefs.h"
20953 #include <math.h>
20954 int main() {
20955  __builtin_labs(0);
20956 ; return 0; }
20957 EOF
20958 if { (eval echo configure:20959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20959   rm -rf conftest*
20960   glibcpp_cv_func___builtin_labs_use=yes
20961 else
20962   echo "configure: failed program was:" >&5
20963   cat conftest.$ac_ext >&5
20964   rm -rf conftest*
20965   glibcpp_cv_func___builtin_labs_use=no
20966 fi
20967 rm -f conftest*
20968       ac_ext=c
20969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20970 ac_cpp='$CPP $CPPFLAGS'
20971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20973 cross_compiling=$ac_cv_prog_cc_cross
20974
20975     
20976 fi
20977
20978   fi
20979   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20980   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20981     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20982 echo "configure:20983: checking for __builtin_labs linkage" >&5
20983     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20984       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20985   echo $ac_n "(cached) $ac_c" 1>&6
20986 else
20987   
20988         cat > conftest.$ac_ext <<EOF
20989 #line 20990 "configure"
20990 #include "confdefs.h"
20991 #include <math.h>
20992 int main() {
20993  __builtin_labs(0);
20994 ; return 0; }
20995 EOF
20996 if { (eval echo configure:20997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20997   rm -rf conftest*
20998   glibcpp_cv_func___builtin_labs_link=yes
20999 else
21000   echo "configure: failed program was:" >&5
21001   cat conftest.$ac_ext >&5
21002   rm -rf conftest*
21003   glibcpp_cv_func___builtin_labs_link=no
21004 fi
21005 rm -f conftest*
21006       
21007 fi
21008
21009     fi
21010     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
21011     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
21012       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21013       cat >> confdefs.h <<EOF
21014 #define ${ac_tr_func} 1
21015 EOF
21016
21017     fi
21018   fi
21019
21020
21021   
21022   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
21023 echo "configure:21024: checking for __builtin_sqrtf declaration" >&5
21024   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
21025     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
21026   echo $ac_n "(cached) $ac_c" 1>&6
21027 else
21028   
21029       
21030       ac_ext=C
21031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21032 ac_cpp='$CXXCPP $CPPFLAGS'
21033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21035 cross_compiling=$ac_cv_prog_cxx_cross
21036
21037       cat > conftest.$ac_ext <<EOF
21038 #line 21039 "configure"
21039 #include "confdefs.h"
21040 #include <math.h>
21041 int main() {
21042  __builtin_sqrtf(0);
21043 ; return 0; }
21044 EOF
21045 if { (eval echo configure:21046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21046   rm -rf conftest*
21047   glibcpp_cv_func___builtin_sqrtf_use=yes
21048 else
21049   echo "configure: failed program was:" >&5
21050   cat conftest.$ac_ext >&5
21051   rm -rf conftest*
21052   glibcpp_cv_func___builtin_sqrtf_use=no
21053 fi
21054 rm -f conftest*
21055       ac_ext=c
21056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21057 ac_cpp='$CPP $CPPFLAGS'
21058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21060 cross_compiling=$ac_cv_prog_cc_cross
21061
21062     
21063 fi
21064
21065   fi
21066   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
21067   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
21068     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
21069 echo "configure:21070: checking for __builtin_sqrtf linkage" >&5
21070     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
21071       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
21072   echo $ac_n "(cached) $ac_c" 1>&6
21073 else
21074   
21075         cat > conftest.$ac_ext <<EOF
21076 #line 21077 "configure"
21077 #include "confdefs.h"
21078 #include <math.h>
21079 int main() {
21080  __builtin_sqrtf(0);
21081 ; return 0; }
21082 EOF
21083 if { (eval echo configure:21084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21084   rm -rf conftest*
21085   glibcpp_cv_func___builtin_sqrtf_link=yes
21086 else
21087   echo "configure: failed program was:" >&5
21088   cat conftest.$ac_ext >&5
21089   rm -rf conftest*
21090   glibcpp_cv_func___builtin_sqrtf_link=no
21091 fi
21092 rm -f conftest*
21093       
21094 fi
21095
21096     fi
21097     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
21098     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
21099       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21100       cat >> confdefs.h <<EOF
21101 #define ${ac_tr_func} 1
21102 EOF
21103
21104     fi
21105   fi
21106
21107   
21108   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
21109 echo "configure:21110: checking for __builtin_sqrt declaration" >&5
21110   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
21111     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
21112   echo $ac_n "(cached) $ac_c" 1>&6
21113 else
21114   
21115       
21116       ac_ext=C
21117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21118 ac_cpp='$CXXCPP $CPPFLAGS'
21119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21121 cross_compiling=$ac_cv_prog_cxx_cross
21122
21123       cat > conftest.$ac_ext <<EOF
21124 #line 21125 "configure"
21125 #include "confdefs.h"
21126 #include <math.h>
21127 int main() {
21128  __builtin_sqrt(0);
21129 ; return 0; }
21130 EOF
21131 if { (eval echo configure:21132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21132   rm -rf conftest*
21133   glibcpp_cv_func___builtin_sqrt_use=yes
21134 else
21135   echo "configure: failed program was:" >&5
21136   cat conftest.$ac_ext >&5
21137   rm -rf conftest*
21138   glibcpp_cv_func___builtin_sqrt_use=no
21139 fi
21140 rm -f conftest*
21141       ac_ext=c
21142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21143 ac_cpp='$CPP $CPPFLAGS'
21144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21146 cross_compiling=$ac_cv_prog_cc_cross
21147
21148     
21149 fi
21150
21151   fi
21152   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
21153   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21154     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21155 echo "configure:21156: checking for __builtin_sqrt linkage" >&5
21156     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21157       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21158   echo $ac_n "(cached) $ac_c" 1>&6
21159 else
21160   
21161         cat > conftest.$ac_ext <<EOF
21162 #line 21163 "configure"
21163 #include "confdefs.h"
21164 #include <math.h>
21165 int main() {
21166  __builtin_sqrt(0);
21167 ; return 0; }
21168 EOF
21169 if { (eval echo configure:21170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21170   rm -rf conftest*
21171   glibcpp_cv_func___builtin_sqrt_link=yes
21172 else
21173   echo "configure: failed program was:" >&5
21174   cat conftest.$ac_ext >&5
21175   rm -rf conftest*
21176   glibcpp_cv_func___builtin_sqrt_link=no
21177 fi
21178 rm -f conftest*
21179       
21180 fi
21181
21182     fi
21183     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21184     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21185       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21186       cat >> confdefs.h <<EOF
21187 #define ${ac_tr_func} 1
21188 EOF
21189
21190     fi
21191   fi
21192
21193   
21194   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21195 echo "configure:21196: checking for __builtin_sqrtl declaration" >&5
21196   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21197     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21198   echo $ac_n "(cached) $ac_c" 1>&6
21199 else
21200   
21201       
21202       ac_ext=C
21203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21204 ac_cpp='$CXXCPP $CPPFLAGS'
21205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21207 cross_compiling=$ac_cv_prog_cxx_cross
21208
21209       cat > conftest.$ac_ext <<EOF
21210 #line 21211 "configure"
21211 #include "confdefs.h"
21212 #include <math.h>
21213 int main() {
21214  __builtin_sqrtl(0);
21215 ; return 0; }
21216 EOF
21217 if { (eval echo configure:21218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21218   rm -rf conftest*
21219   glibcpp_cv_func___builtin_sqrtl_use=yes
21220 else
21221   echo "configure: failed program was:" >&5
21222   cat conftest.$ac_ext >&5
21223   rm -rf conftest*
21224   glibcpp_cv_func___builtin_sqrtl_use=no
21225 fi
21226 rm -f conftest*
21227       ac_ext=c
21228 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21229 ac_cpp='$CPP $CPPFLAGS'
21230 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21231 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21232 cross_compiling=$ac_cv_prog_cc_cross
21233
21234     
21235 fi
21236
21237   fi
21238   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21239   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21240     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21241 echo "configure:21242: checking for __builtin_sqrtl linkage" >&5
21242     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21243       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21244   echo $ac_n "(cached) $ac_c" 1>&6
21245 else
21246   
21247         cat > conftest.$ac_ext <<EOF
21248 #line 21249 "configure"
21249 #include "confdefs.h"
21250 #include <math.h>
21251 int main() {
21252  __builtin_sqrtl(0);
21253 ; return 0; }
21254 EOF
21255 if { (eval echo configure:21256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21256   rm -rf conftest*
21257   glibcpp_cv_func___builtin_sqrtl_link=yes
21258 else
21259   echo "configure: failed program was:" >&5
21260   cat conftest.$ac_ext >&5
21261   rm -rf conftest*
21262   glibcpp_cv_func___builtin_sqrtl_link=no
21263 fi
21264 rm -f conftest*
21265       
21266 fi
21267
21268     fi
21269     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21270     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21271       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21272       cat >> confdefs.h <<EOF
21273 #define ${ac_tr_func} 1
21274 EOF
21275
21276     fi
21277   fi
21278
21279
21280   
21281   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21282 echo "configure:21283: checking for __builtin_sinf declaration" >&5
21283   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21284     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21285   echo $ac_n "(cached) $ac_c" 1>&6
21286 else
21287   
21288       
21289       ac_ext=C
21290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21291 ac_cpp='$CXXCPP $CPPFLAGS'
21292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21294 cross_compiling=$ac_cv_prog_cxx_cross
21295
21296       cat > conftest.$ac_ext <<EOF
21297 #line 21298 "configure"
21298 #include "confdefs.h"
21299 #include <math.h>
21300 int main() {
21301  __builtin_sinf(0);
21302 ; return 0; }
21303 EOF
21304 if { (eval echo configure:21305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21305   rm -rf conftest*
21306   glibcpp_cv_func___builtin_sinf_use=yes
21307 else
21308   echo "configure: failed program was:" >&5
21309   cat conftest.$ac_ext >&5
21310   rm -rf conftest*
21311   glibcpp_cv_func___builtin_sinf_use=no
21312 fi
21313 rm -f conftest*
21314       ac_ext=c
21315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21316 ac_cpp='$CPP $CPPFLAGS'
21317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21319 cross_compiling=$ac_cv_prog_cc_cross
21320
21321     
21322 fi
21323
21324   fi
21325   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21326   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21327     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21328 echo "configure:21329: checking for __builtin_sinf linkage" >&5
21329     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21330       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21331   echo $ac_n "(cached) $ac_c" 1>&6
21332 else
21333   
21334         cat > conftest.$ac_ext <<EOF
21335 #line 21336 "configure"
21336 #include "confdefs.h"
21337 #include <math.h>
21338 int main() {
21339  __builtin_sinf(0);
21340 ; return 0; }
21341 EOF
21342 if { (eval echo configure:21343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21343   rm -rf conftest*
21344   glibcpp_cv_func___builtin_sinf_link=yes
21345 else
21346   echo "configure: failed program was:" >&5
21347   cat conftest.$ac_ext >&5
21348   rm -rf conftest*
21349   glibcpp_cv_func___builtin_sinf_link=no
21350 fi
21351 rm -f conftest*
21352       
21353 fi
21354
21355     fi
21356     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21357     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21358       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21359       cat >> confdefs.h <<EOF
21360 #define ${ac_tr_func} 1
21361 EOF
21362
21363     fi
21364   fi
21365
21366   
21367   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21368 echo "configure:21369: checking for __builtin_sin declaration" >&5
21369   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21370     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21371   echo $ac_n "(cached) $ac_c" 1>&6
21372 else
21373   
21374       
21375       ac_ext=C
21376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21377 ac_cpp='$CXXCPP $CPPFLAGS'
21378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21380 cross_compiling=$ac_cv_prog_cxx_cross
21381
21382       cat > conftest.$ac_ext <<EOF
21383 #line 21384 "configure"
21384 #include "confdefs.h"
21385 #include <math.h>
21386 int main() {
21387  __builtin_sin(0);
21388 ; return 0; }
21389 EOF
21390 if { (eval echo configure:21391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21391   rm -rf conftest*
21392   glibcpp_cv_func___builtin_sin_use=yes
21393 else
21394   echo "configure: failed program was:" >&5
21395   cat conftest.$ac_ext >&5
21396   rm -rf conftest*
21397   glibcpp_cv_func___builtin_sin_use=no
21398 fi
21399 rm -f conftest*
21400       ac_ext=c
21401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21402 ac_cpp='$CPP $CPPFLAGS'
21403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21405 cross_compiling=$ac_cv_prog_cc_cross
21406
21407     
21408 fi
21409
21410   fi
21411   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21412   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21413     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21414 echo "configure:21415: checking for __builtin_sin linkage" >&5
21415     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21416       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21417   echo $ac_n "(cached) $ac_c" 1>&6
21418 else
21419   
21420         cat > conftest.$ac_ext <<EOF
21421 #line 21422 "configure"
21422 #include "confdefs.h"
21423 #include <math.h>
21424 int main() {
21425  __builtin_sin(0);
21426 ; return 0; }
21427 EOF
21428 if { (eval echo configure:21429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21429   rm -rf conftest*
21430   glibcpp_cv_func___builtin_sin_link=yes
21431 else
21432   echo "configure: failed program was:" >&5
21433   cat conftest.$ac_ext >&5
21434   rm -rf conftest*
21435   glibcpp_cv_func___builtin_sin_link=no
21436 fi
21437 rm -f conftest*
21438       
21439 fi
21440
21441     fi
21442     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21443     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21444       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21445       cat >> confdefs.h <<EOF
21446 #define ${ac_tr_func} 1
21447 EOF
21448
21449     fi
21450   fi
21451
21452   
21453   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21454 echo "configure:21455: checking for __builtin_sinl declaration" >&5
21455   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21456     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21457   echo $ac_n "(cached) $ac_c" 1>&6
21458 else
21459   
21460       
21461       ac_ext=C
21462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21463 ac_cpp='$CXXCPP $CPPFLAGS'
21464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21466 cross_compiling=$ac_cv_prog_cxx_cross
21467
21468       cat > conftest.$ac_ext <<EOF
21469 #line 21470 "configure"
21470 #include "confdefs.h"
21471 #include <math.h>
21472 int main() {
21473  __builtin_sinl(0);
21474 ; return 0; }
21475 EOF
21476 if { (eval echo configure:21477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21477   rm -rf conftest*
21478   glibcpp_cv_func___builtin_sinl_use=yes
21479 else
21480   echo "configure: failed program was:" >&5
21481   cat conftest.$ac_ext >&5
21482   rm -rf conftest*
21483   glibcpp_cv_func___builtin_sinl_use=no
21484 fi
21485 rm -f conftest*
21486       ac_ext=c
21487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21488 ac_cpp='$CPP $CPPFLAGS'
21489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21491 cross_compiling=$ac_cv_prog_cc_cross
21492
21493     
21494 fi
21495
21496   fi
21497   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21498   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21499     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21500 echo "configure:21501: checking for __builtin_sinl linkage" >&5
21501     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21502       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21503   echo $ac_n "(cached) $ac_c" 1>&6
21504 else
21505   
21506         cat > conftest.$ac_ext <<EOF
21507 #line 21508 "configure"
21508 #include "confdefs.h"
21509 #include <math.h>
21510 int main() {
21511  __builtin_sinl(0);
21512 ; return 0; }
21513 EOF
21514 if { (eval echo configure:21515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21515   rm -rf conftest*
21516   glibcpp_cv_func___builtin_sinl_link=yes
21517 else
21518   echo "configure: failed program was:" >&5
21519   cat conftest.$ac_ext >&5
21520   rm -rf conftest*
21521   glibcpp_cv_func___builtin_sinl_link=no
21522 fi
21523 rm -f conftest*
21524       
21525 fi
21526
21527     fi
21528     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21529     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21530       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21531       cat >> confdefs.h <<EOF
21532 #define ${ac_tr_func} 1
21533 EOF
21534
21535     fi
21536   fi
21537
21538
21539   
21540   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21541 echo "configure:21542: checking for __builtin_cosf declaration" >&5
21542   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21543     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21544   echo $ac_n "(cached) $ac_c" 1>&6
21545 else
21546   
21547       
21548       ac_ext=C
21549 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21550 ac_cpp='$CXXCPP $CPPFLAGS'
21551 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21552 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21553 cross_compiling=$ac_cv_prog_cxx_cross
21554
21555       cat > conftest.$ac_ext <<EOF
21556 #line 21557 "configure"
21557 #include "confdefs.h"
21558 #include <math.h>
21559 int main() {
21560  __builtin_cosf(0);
21561 ; return 0; }
21562 EOF
21563 if { (eval echo configure:21564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21564   rm -rf conftest*
21565   glibcpp_cv_func___builtin_cosf_use=yes
21566 else
21567   echo "configure: failed program was:" >&5
21568   cat conftest.$ac_ext >&5
21569   rm -rf conftest*
21570   glibcpp_cv_func___builtin_cosf_use=no
21571 fi
21572 rm -f conftest*
21573       ac_ext=c
21574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21575 ac_cpp='$CPP $CPPFLAGS'
21576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21578 cross_compiling=$ac_cv_prog_cc_cross
21579
21580     
21581 fi
21582
21583   fi
21584   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21585   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21586     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21587 echo "configure:21588: checking for __builtin_cosf linkage" >&5
21588     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21589       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21590   echo $ac_n "(cached) $ac_c" 1>&6
21591 else
21592   
21593         cat > conftest.$ac_ext <<EOF
21594 #line 21595 "configure"
21595 #include "confdefs.h"
21596 #include <math.h>
21597 int main() {
21598  __builtin_cosf(0);
21599 ; return 0; }
21600 EOF
21601 if { (eval echo configure:21602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21602   rm -rf conftest*
21603   glibcpp_cv_func___builtin_cosf_link=yes
21604 else
21605   echo "configure: failed program was:" >&5
21606   cat conftest.$ac_ext >&5
21607   rm -rf conftest*
21608   glibcpp_cv_func___builtin_cosf_link=no
21609 fi
21610 rm -f conftest*
21611       
21612 fi
21613
21614     fi
21615     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21616     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21617       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21618       cat >> confdefs.h <<EOF
21619 #define ${ac_tr_func} 1
21620 EOF
21621
21622     fi
21623   fi
21624
21625   
21626   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21627 echo "configure:21628: checking for __builtin_cos declaration" >&5
21628   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21629     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21630   echo $ac_n "(cached) $ac_c" 1>&6
21631 else
21632   
21633       
21634       ac_ext=C
21635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21636 ac_cpp='$CXXCPP $CPPFLAGS'
21637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21639 cross_compiling=$ac_cv_prog_cxx_cross
21640
21641       cat > conftest.$ac_ext <<EOF
21642 #line 21643 "configure"
21643 #include "confdefs.h"
21644 #include <math.h>
21645 int main() {
21646  __builtin_cos(0);
21647 ; return 0; }
21648 EOF
21649 if { (eval echo configure:21650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21650   rm -rf conftest*
21651   glibcpp_cv_func___builtin_cos_use=yes
21652 else
21653   echo "configure: failed program was:" >&5
21654   cat conftest.$ac_ext >&5
21655   rm -rf conftest*
21656   glibcpp_cv_func___builtin_cos_use=no
21657 fi
21658 rm -f conftest*
21659       ac_ext=c
21660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21661 ac_cpp='$CPP $CPPFLAGS'
21662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21664 cross_compiling=$ac_cv_prog_cc_cross
21665
21666     
21667 fi
21668
21669   fi
21670   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21671   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21672     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21673 echo "configure:21674: checking for __builtin_cos linkage" >&5
21674     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21675       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21676   echo $ac_n "(cached) $ac_c" 1>&6
21677 else
21678   
21679         cat > conftest.$ac_ext <<EOF
21680 #line 21681 "configure"
21681 #include "confdefs.h"
21682 #include <math.h>
21683 int main() {
21684  __builtin_cos(0);
21685 ; return 0; }
21686 EOF
21687 if { (eval echo configure:21688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21688   rm -rf conftest*
21689   glibcpp_cv_func___builtin_cos_link=yes
21690 else
21691   echo "configure: failed program was:" >&5
21692   cat conftest.$ac_ext >&5
21693   rm -rf conftest*
21694   glibcpp_cv_func___builtin_cos_link=no
21695 fi
21696 rm -f conftest*
21697       
21698 fi
21699
21700     fi
21701     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21702     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21703       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21704       cat >> confdefs.h <<EOF
21705 #define ${ac_tr_func} 1
21706 EOF
21707
21708     fi
21709   fi
21710
21711   
21712   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21713 echo "configure:21714: checking for __builtin_cosl declaration" >&5
21714   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21715     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21716   echo $ac_n "(cached) $ac_c" 1>&6
21717 else
21718   
21719       
21720       ac_ext=C
21721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21722 ac_cpp='$CXXCPP $CPPFLAGS'
21723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21725 cross_compiling=$ac_cv_prog_cxx_cross
21726
21727       cat > conftest.$ac_ext <<EOF
21728 #line 21729 "configure"
21729 #include "confdefs.h"
21730 #include <math.h>
21731 int main() {
21732  __builtin_cosl(0);
21733 ; return 0; }
21734 EOF
21735 if { (eval echo configure:21736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21736   rm -rf conftest*
21737   glibcpp_cv_func___builtin_cosl_use=yes
21738 else
21739   echo "configure: failed program was:" >&5
21740   cat conftest.$ac_ext >&5
21741   rm -rf conftest*
21742   glibcpp_cv_func___builtin_cosl_use=no
21743 fi
21744 rm -f conftest*
21745       ac_ext=c
21746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21747 ac_cpp='$CPP $CPPFLAGS'
21748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21750 cross_compiling=$ac_cv_prog_cc_cross
21751
21752     
21753 fi
21754
21755   fi
21756   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21757   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21758     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21759 echo "configure:21760: checking for __builtin_cosl linkage" >&5
21760     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21761       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21762   echo $ac_n "(cached) $ac_c" 1>&6
21763 else
21764   
21765         cat > conftest.$ac_ext <<EOF
21766 #line 21767 "configure"
21767 #include "confdefs.h"
21768 #include <math.h>
21769 int main() {
21770  __builtin_cosl(0);
21771 ; return 0; }
21772 EOF
21773 if { (eval echo configure:21774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21774   rm -rf conftest*
21775   glibcpp_cv_func___builtin_cosl_link=yes
21776 else
21777   echo "configure: failed program was:" >&5
21778   cat conftest.$ac_ext >&5
21779   rm -rf conftest*
21780   glibcpp_cv_func___builtin_cosl_link=no
21781 fi
21782 rm -f conftest*
21783       
21784 fi
21785
21786     fi
21787     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21788     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21789       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21790       cat >> confdefs.h <<EOF
21791 #define ${ac_tr_func} 1
21792 EOF
21793
21794     fi
21795   fi
21796
21797
21798               dummyvar=no
21799   if test x$dummyvar = x"yes"; then
21800     cat >> confdefs.h <<\EOF
21801 #define HAVE___BUILTIN_ABS 1
21802 EOF
21803
21804     cat >> confdefs.h <<\EOF
21805 #define HAVE___BUILTIN_LABS 1
21806 EOF
21807
21808     cat >> confdefs.h <<\EOF
21809 #define HAVE___BUILTIN_COS 1
21810 EOF
21811
21812     cat >> confdefs.h <<\EOF
21813 #define HAVE___BUILTIN_COSF 1
21814 EOF
21815
21816     cat >> confdefs.h <<\EOF
21817 #define HAVE___BUILTIN_COSL 1
21818 EOF
21819
21820     cat >> confdefs.h <<\EOF
21821 #define HAVE___BUILTIN_FABS 1
21822 EOF
21823
21824     cat >> confdefs.h <<\EOF
21825 #define HAVE___BUILTIN_FABSF 1
21826 EOF
21827
21828     cat >> confdefs.h <<\EOF
21829 #define HAVE___BUILTIN_FABSL 1
21830 EOF
21831
21832     cat >> confdefs.h <<\EOF
21833 #define HAVE___BUILTIN_SIN 1
21834 EOF
21835
21836     cat >> confdefs.h <<\EOF
21837 #define HAVE___BUILTIN_SINF 1
21838 EOF
21839
21840     cat >> confdefs.h <<\EOF
21841 #define HAVE___BUILTIN_SINL 1
21842 EOF
21843
21844     cat >> confdefs.h <<\EOF
21845 #define HAVE___BUILTIN_SQRT 1
21846 EOF
21847
21848     cat >> confdefs.h <<\EOF
21849 #define HAVE___BUILTIN_SQRTF 1
21850 EOF
21851
21852     cat >> confdefs.h <<\EOF
21853 #define HAVE___BUILTIN_SQRTL 1
21854 EOF
21855
21856   fi
21857
21858   
21859     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21860 echo "configure:21861: checking for main in -lm" >&5
21861 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21863   echo $ac_n "(cached) $ac_c" 1>&6
21864 else
21865   ac_save_LIBS="$LIBS"
21866 LIBS="-lm  $LIBS"
21867 cat > conftest.$ac_ext <<EOF
21868 #line 21869 "configure"
21869 #include "confdefs.h"
21870
21871 int main() {
21872 main()
21873 ; return 0; }
21874 EOF
21875 if { (eval echo configure:21876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21876   rm -rf conftest*
21877   eval "ac_cv_lib_$ac_lib_var=yes"
21878 else
21879   echo "configure: failed program was:" >&5
21880   cat conftest.$ac_ext >&5
21881   rm -rf conftest*
21882   eval "ac_cv_lib_$ac_lib_var=no"
21883 fi
21884 rm -f conftest*
21885 LIBS="$ac_save_LIBS"
21886
21887 fi
21888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21889   echo "$ac_t""yes" 1>&6
21890     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21891     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21892   cat >> confdefs.h <<EOF
21893 #define $ac_tr_lib 1
21894 EOF
21895
21896   LIBS="-lm $LIBS"
21897
21898 else
21899   echo "$ac_t""no" 1>&6
21900 fi
21901
21902   for ac_func in nan copysignf
21903 do
21904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21905 echo "configure:21906: checking for $ac_func" >&5
21906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21907   echo $ac_n "(cached) $ac_c" 1>&6
21908 else
21909   cat > conftest.$ac_ext <<EOF
21910 #line 21911 "configure"
21911 #include "confdefs.h"
21912 /* System header to define __stub macros and hopefully few prototypes,
21913     which can conflict with char $ac_func(); below.  */
21914 #include <assert.h>
21915 /* Override any gcc2 internal prototype to avoid an error.  */
21916 /* We use char because int might match the return type of a gcc2
21917     builtin and then its argument prototype would still apply.  */
21918 char $ac_func();
21919
21920 int main() {
21921
21922 /* The GNU C library defines this for functions which it implements
21923     to always fail with ENOSYS.  Some functions are actually named
21924     something starting with __ and the normal name is an alias.  */
21925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21926 choke me
21927 #else
21928 $ac_func();
21929 #endif
21930
21931 ; return 0; }
21932 EOF
21933 if { (eval echo configure:21934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21934   rm -rf conftest*
21935   eval "ac_cv_func_$ac_func=yes"
21936 else
21937   echo "configure: failed program was:" >&5
21938   cat conftest.$ac_ext >&5
21939   rm -rf conftest*
21940   eval "ac_cv_func_$ac_func=no"
21941 fi
21942 rm -f conftest*
21943 fi
21944
21945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21946   echo "$ac_t""yes" 1>&6
21947     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21948   cat >> confdefs.h <<EOF
21949 #define $ac_tr_func 1
21950 EOF
21951  
21952 else
21953   echo "$ac_t""no" 1>&6
21954 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21955 fi
21956 done
21957
21958
21959     for ac_func in __signbit
21960 do
21961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21962 echo "configure:21963: checking for $ac_func" >&5
21963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21964   echo $ac_n "(cached) $ac_c" 1>&6
21965 else
21966   cat > conftest.$ac_ext <<EOF
21967 #line 21968 "configure"
21968 #include "confdefs.h"
21969 /* System header to define __stub macros and hopefully few prototypes,
21970     which can conflict with char $ac_func(); below.  */
21971 #include <assert.h>
21972 /* Override any gcc2 internal prototype to avoid an error.  */
21973 /* We use char because int might match the return type of a gcc2
21974     builtin and then its argument prototype would still apply.  */
21975 char $ac_func();
21976
21977 int main() {
21978
21979 /* The GNU C library defines this for functions which it implements
21980     to always fail with ENOSYS.  Some functions are actually named
21981     something starting with __ and the normal name is an alias.  */
21982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21983 choke me
21984 #else
21985 $ac_func();
21986 #endif
21987
21988 ; return 0; }
21989 EOF
21990 if { (eval echo configure:21991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21991   rm -rf conftest*
21992   eval "ac_cv_func_$ac_func=yes"
21993 else
21994   echo "configure: failed program was:" >&5
21995   cat conftest.$ac_ext >&5
21996   rm -rf conftest*
21997   eval "ac_cv_func_$ac_func=no"
21998 fi
21999 rm -f conftest*
22000 fi
22001
22002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22003   echo "$ac_t""yes" 1>&6
22004     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22005   cat >> confdefs.h <<EOF
22006 #define $ac_tr_func 1
22007 EOF
22008  
22009 else
22010   echo "$ac_t""no" 1>&6
22011 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
22012 fi
22013 done
22014
22015   for ac_func in __signbitf
22016 do
22017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22018 echo "configure:22019: checking for $ac_func" >&5
22019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22020   echo $ac_n "(cached) $ac_c" 1>&6
22021 else
22022   cat > conftest.$ac_ext <<EOF
22023 #line 22024 "configure"
22024 #include "confdefs.h"
22025 /* System header to define __stub macros and hopefully few prototypes,
22026     which can conflict with char $ac_func(); below.  */
22027 #include <assert.h>
22028 /* Override any gcc2 internal prototype to avoid an error.  */
22029 /* We use char because int might match the return type of a gcc2
22030     builtin and then its argument prototype would still apply.  */
22031 char $ac_func();
22032
22033 int main() {
22034
22035 /* The GNU C library defines this for functions which it implements
22036     to always fail with ENOSYS.  Some functions are actually named
22037     something starting with __ and the normal name is an alias.  */
22038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22039 choke me
22040 #else
22041 $ac_func();
22042 #endif
22043
22044 ; return 0; }
22045 EOF
22046 if { (eval echo configure:22047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22047   rm -rf conftest*
22048   eval "ac_cv_func_$ac_func=yes"
22049 else
22050   echo "configure: failed program was:" >&5
22051   cat conftest.$ac_ext >&5
22052   rm -rf conftest*
22053   eval "ac_cv_func_$ac_func=no"
22054 fi
22055 rm -f conftest*
22056 fi
22057
22058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22059   echo "$ac_t""yes" 1>&6
22060     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22061   cat >> confdefs.h <<EOF
22062 #define $ac_tr_func 1
22063 EOF
22064  
22065 else
22066   echo "$ac_t""no" 1>&6
22067 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
22068 fi
22069 done
22070
22071
22072           if test x$ac_cv_func_copysignl = x"yes"; then
22073     for ac_func in __signbitl
22074 do
22075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22076 echo "configure:22077: checking for $ac_func" >&5
22077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22078   echo $ac_n "(cached) $ac_c" 1>&6
22079 else
22080   cat > conftest.$ac_ext <<EOF
22081 #line 22082 "configure"
22082 #include "confdefs.h"
22083 /* System header to define __stub macros and hopefully few prototypes,
22084     which can conflict with char $ac_func(); below.  */
22085 #include <assert.h>
22086 /* Override any gcc2 internal prototype to avoid an error.  */
22087 /* We use char because int might match the return type of a gcc2
22088     builtin and then its argument prototype would still apply.  */
22089 char $ac_func();
22090
22091 int main() {
22092
22093 /* The GNU C library defines this for functions which it implements
22094     to always fail with ENOSYS.  Some functions are actually named
22095     something starting with __ and the normal name is an alias.  */
22096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22097 choke me
22098 #else
22099 $ac_func();
22100 #endif
22101
22102 ; return 0; }
22103 EOF
22104 if { (eval echo configure:22105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22105   rm -rf conftest*
22106   eval "ac_cv_func_$ac_func=yes"
22107 else
22108   echo "configure: failed program was:" >&5
22109   cat conftest.$ac_ext >&5
22110   rm -rf conftest*
22111   eval "ac_cv_func_$ac_func=no"
22112 fi
22113 rm -f conftest*
22114 fi
22115
22116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22117   echo "$ac_t""yes" 1>&6
22118     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22119   cat >> confdefs.h <<EOF
22120 #define $ac_tr_func 1
22121 EOF
22122  
22123 else
22124   echo "$ac_t""no" 1>&6
22125 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22126 fi
22127 done
22128
22129   fi
22130
22131   if test -n "$LIBMATHOBJS"; then
22132     need_libmath=yes
22133   fi
22134   
22135   
22136
22137 if test "$need_libmath" = yes; then
22138   GLIBCPP_BUILD_LIBMATH_TRUE=
22139   GLIBCPP_BUILD_LIBMATH_FALSE='#'
22140 else
22141   GLIBCPP_BUILD_LIBMATH_TRUE='#'
22142   GLIBCPP_BUILD_LIBMATH_FALSE=
22143 fi
22144
22145   
22146     enable_wchar_t=no
22147
22148       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22149 echo "configure:22150: checking for mbstate_t" >&5
22150   cat > conftest.$ac_ext <<EOF
22151 #line 22152 "configure"
22152 #include "confdefs.h"
22153 #include <wchar.h>
22154 int main() {
22155 mbstate_t teststate;
22156 ; return 0; }
22157 EOF
22158 if { (eval echo configure:22159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22159   rm -rf conftest*
22160   have_mbstate_t=yes
22161 else
22162   echo "configure: failed program was:" >&5
22163   cat conftest.$ac_ext >&5
22164   rm -rf conftest*
22165   have_mbstate_t=no
22166 fi
22167 rm -f conftest*
22168   echo "$ac_t""$have_mbstate_t" 1>&6
22169   if test x"$have_mbstate_t" = xyes; then
22170     cat >> confdefs.h <<\EOF
22171 #define HAVE_MBSTATE_T 1
22172 EOF
22173
22174   fi
22175
22176     for ac_hdr in wchar.h
22177 do
22178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22180 echo "configure:22181: checking for $ac_hdr" >&5
22181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22182   echo $ac_n "(cached) $ac_c" 1>&6
22183 else
22184   cat > conftest.$ac_ext <<EOF
22185 #line 22186 "configure"
22186 #include "confdefs.h"
22187 #include <$ac_hdr>
22188 EOF
22189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22190 { (eval echo configure:22191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22192 if test -z "$ac_err"; then
22193   rm -rf conftest*
22194   eval "ac_cv_header_$ac_safe=yes"
22195 else
22196   echo "$ac_err" >&5
22197   echo "configure: failed program was:" >&5
22198   cat conftest.$ac_ext >&5
22199   rm -rf conftest*
22200   eval "ac_cv_header_$ac_safe=no"
22201 fi
22202 rm -f conftest*
22203 fi
22204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22205   echo "$ac_t""yes" 1>&6
22206     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22207   cat >> confdefs.h <<EOF
22208 #define $ac_tr_hdr 1
22209 EOF
22210  ac_has_wchar_h=yes
22211 else
22212   echo "$ac_t""no" 1>&6
22213 ac_has_wchar_h=no
22214 fi
22215 done
22216
22217   for ac_hdr in wctype.h
22218 do
22219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22221 echo "configure:22222: checking for $ac_hdr" >&5
22222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22223   echo $ac_n "(cached) $ac_c" 1>&6
22224 else
22225   cat > conftest.$ac_ext <<EOF
22226 #line 22227 "configure"
22227 #include "confdefs.h"
22228 #include <$ac_hdr>
22229 EOF
22230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22231 { (eval echo configure:22232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22233 if test -z "$ac_err"; then
22234   rm -rf conftest*
22235   eval "ac_cv_header_$ac_safe=yes"
22236 else
22237   echo "$ac_err" >&5
22238   echo "configure: failed program was:" >&5
22239   cat conftest.$ac_ext >&5
22240   rm -rf conftest*
22241   eval "ac_cv_header_$ac_safe=no"
22242 fi
22243 rm -f conftest*
22244 fi
22245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22246   echo "$ac_t""yes" 1>&6
22247     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22248   cat >> confdefs.h <<EOF
22249 #define $ac_tr_hdr 1
22250 EOF
22251  ac_has_wctype_h=yes
22252 else
22253   echo "$ac_t""no" 1>&6
22254 ac_has_wctype_h=no
22255 fi
22256 done
22257
22258
22259     if test x"$ac_has_wchar_h" = xyes &&
22260      test x"$ac_has_wctype_h" = xyes &&
22261      test x"$enable_c_mbchar" != xno; then
22262
22263             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22264 echo "configure:22265: checking for WCHAR_MIN and WCHAR_MAX" >&5
22265     cat > conftest.$ac_ext <<EOF
22266 #line 22267 "configure"
22267 #include "confdefs.h"
22268 #include <wchar.h>
22269 int main() {
22270 int i = WCHAR_MIN; int j = WCHAR_MAX;
22271 ; return 0; }
22272 EOF
22273 if { (eval echo configure:22274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22274   rm -rf conftest*
22275   has_wchar_minmax=yes
22276 else
22277   echo "configure: failed program was:" >&5
22278   cat conftest.$ac_ext >&5
22279   rm -rf conftest*
22280   has_wchar_minmax=no
22281 fi
22282 rm -f conftest*
22283     echo "$ac_t""$has_wchar_minmax" 1>&6
22284
22285             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22286 echo "configure:22287: checking for WEOF" >&5
22287     cat > conftest.$ac_ext <<EOF
22288 #line 22289 "configure"
22289 #include "confdefs.h"
22290
22291       #include <wchar.h>
22292       #include <stddef.h>
22293 int main() {
22294 wint_t i = WEOF;
22295 ; return 0; }
22296 EOF
22297 if { (eval echo configure:22298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22298   rm -rf conftest*
22299   has_weof=yes
22300 else
22301   echo "configure: failed program was:" >&5
22302   cat conftest.$ac_ext >&5
22303   rm -rf conftest*
22304   has_weof=no
22305 fi
22306 rm -f conftest*
22307     echo "$ac_t""$has_weof" 1>&6
22308
22309         ac_wfuncs=yes
22310     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22311 do
22312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22313 echo "configure:22314: checking for $ac_func" >&5
22314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22315   echo $ac_n "(cached) $ac_c" 1>&6
22316 else
22317   cat > conftest.$ac_ext <<EOF
22318 #line 22319 "configure"
22319 #include "confdefs.h"
22320 /* System header to define __stub macros and hopefully few prototypes,
22321     which can conflict with char $ac_func(); below.  */
22322 #include <assert.h>
22323 /* Override any gcc2 internal prototype to avoid an error.  */
22324 /* We use char because int might match the return type of a gcc2
22325     builtin and then its argument prototype would still apply.  */
22326 char $ac_func();
22327
22328 int main() {
22329
22330 /* The GNU C library defines this for functions which it implements
22331     to always fail with ENOSYS.  Some functions are actually named
22332     something starting with __ and the normal name is an alias.  */
22333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22334 choke me
22335 #else
22336 $ac_func();
22337 #endif
22338
22339 ; return 0; }
22340 EOF
22341 if { (eval echo configure:22342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22342   rm -rf conftest*
22343   eval "ac_cv_func_$ac_func=yes"
22344 else
22345   echo "configure: failed program was:" >&5
22346   cat conftest.$ac_ext >&5
22347   rm -rf conftest*
22348   eval "ac_cv_func_$ac_func=no"
22349 fi
22350 rm -f conftest*
22351 fi
22352
22353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22354   echo "$ac_t""yes" 1>&6
22355     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22356   cat >> confdefs.h <<EOF
22357 #define $ac_tr_func 1
22358 EOF
22359  
22360 else
22361   echo "$ac_t""no" 1>&6
22362 \
22363     ac_wfuncs=no
22364 fi
22365 done
22366
22367
22368         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22369     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22370     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22371     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22372     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22373     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22374 do
22375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22376 echo "configure:22377: checking for $ac_func" >&5
22377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22378   echo $ac_n "(cached) $ac_c" 1>&6
22379 else
22380   cat > conftest.$ac_ext <<EOF
22381 #line 22382 "configure"
22382 #include "confdefs.h"
22383 /* System header to define __stub macros and hopefully few prototypes,
22384     which can conflict with char $ac_func(); below.  */
22385 #include <assert.h>
22386 /* Override any gcc2 internal prototype to avoid an error.  */
22387 /* We use char because int might match the return type of a gcc2
22388     builtin and then its argument prototype would still apply.  */
22389 char $ac_func();
22390
22391 int main() {
22392
22393 /* The GNU C library defines this for functions which it implements
22394     to always fail with ENOSYS.  Some functions are actually named
22395     something starting with __ and the normal name is an alias.  */
22396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22397 choke me
22398 #else
22399 $ac_func();
22400 #endif
22401
22402 ; return 0; }
22403 EOF
22404 if { (eval echo configure:22405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22405   rm -rf conftest*
22406   eval "ac_cv_func_$ac_func=yes"
22407 else
22408   echo "configure: failed program was:" >&5
22409   cat conftest.$ac_ext >&5
22410   rm -rf conftest*
22411   eval "ac_cv_func_$ac_func=no"
22412 fi
22413 rm -f conftest*
22414 fi
22415
22416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22417   echo "$ac_t""yes" 1>&6
22418     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22419   cat >> confdefs.h <<EOF
22420 #define $ac_tr_func 1
22421 EOF
22422  
22423 else
22424   echo "$ac_t""no" 1>&6
22425 \
22426     ac_wfuncs=no
22427 fi
22428 done
22429
22430
22431     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22432 echo "configure:22433: checking for ISO C99 wchar_t support" >&5
22433     if test x"$has_weof" = xyes &&
22434        test x"$has_wchar_minmax" = xyes &&
22435        test x"$ac_wfuncs" = xyes; then
22436       ac_isoC99_wchar_t=yes
22437     else
22438       ac_isoC99_wchar_t=no
22439     fi
22440     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22441
22442             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22443 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22444 echo "configure:22445: checking for iconv.h" >&5
22445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22446   echo $ac_n "(cached) $ac_c" 1>&6
22447 else
22448   cat > conftest.$ac_ext <<EOF
22449 #line 22450 "configure"
22450 #include "confdefs.h"
22451 #include <iconv.h>
22452 EOF
22453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22454 { (eval echo configure:22455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22456 if test -z "$ac_err"; then
22457   rm -rf conftest*
22458   eval "ac_cv_header_$ac_safe=yes"
22459 else
22460   echo "$ac_err" >&5
22461   echo "configure: failed program was:" >&5
22462   cat conftest.$ac_ext >&5
22463   rm -rf conftest*
22464   eval "ac_cv_header_$ac_safe=no"
22465 fi
22466 rm -f conftest*
22467 fi
22468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22469   echo "$ac_t""yes" 1>&6
22470   ac_has_iconv_h=yes
22471 else
22472   echo "$ac_t""no" 1>&6
22473 ac_has_iconv_h=no
22474 fi
22475
22476     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22477 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22478 echo "configure:22479: checking for langinfo.h" >&5
22479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22480   echo $ac_n "(cached) $ac_c" 1>&6
22481 else
22482   cat > conftest.$ac_ext <<EOF
22483 #line 22484 "configure"
22484 #include "confdefs.h"
22485 #include <langinfo.h>
22486 EOF
22487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22488 { (eval echo configure:22489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22490 if test -z "$ac_err"; then
22491   rm -rf conftest*
22492   eval "ac_cv_header_$ac_safe=yes"
22493 else
22494   echo "$ac_err" >&5
22495   echo "configure: failed program was:" >&5
22496   cat conftest.$ac_ext >&5
22497   rm -rf conftest*
22498   eval "ac_cv_header_$ac_safe=no"
22499 fi
22500 rm -f conftest*
22501 fi
22502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22503   echo "$ac_t""yes" 1>&6
22504   ac_has_langinfo_h=yes
22505 else
22506   echo "$ac_t""no" 1>&6
22507 ac_has_langinfo_h=no
22508 fi
22509
22510
22511         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22512 echo "configure:22513: checking for iconv in -liconv" >&5
22513 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22515   echo $ac_n "(cached) $ac_c" 1>&6
22516 else
22517   ac_save_LIBS="$LIBS"
22518 LIBS="-liconv  $LIBS"
22519 cat > conftest.$ac_ext <<EOF
22520 #line 22521 "configure"
22521 #include "confdefs.h"
22522 /* Override any gcc2 internal prototype to avoid an error.  */
22523 /* We use char because int might match the return type of a gcc2
22524     builtin and then its argument prototype would still apply.  */
22525 char iconv();
22526
22527 int main() {
22528 iconv()
22529 ; return 0; }
22530 EOF
22531 if { (eval echo configure:22532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22532   rm -rf conftest*
22533   eval "ac_cv_lib_$ac_lib_var=yes"
22534 else
22535   echo "configure: failed program was:" >&5
22536   cat conftest.$ac_ext >&5
22537   rm -rf conftest*
22538   eval "ac_cv_lib_$ac_lib_var=no"
22539 fi
22540 rm -f conftest*
22541 LIBS="$ac_save_LIBS"
22542
22543 fi
22544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22545   echo "$ac_t""yes" 1>&6
22546   libiconv="-liconv"
22547 else
22548   echo "$ac_t""no" 1>&6
22549 fi
22550
22551     ac_save_LIBS="$LIBS"
22552     LIBS="$LIBS $libiconv"
22553
22554     for ac_func in iconv_open iconv_close iconv nl_langinfo
22555 do
22556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22557 echo "configure:22558: checking for $ac_func" >&5
22558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22559   echo $ac_n "(cached) $ac_c" 1>&6
22560 else
22561   cat > conftest.$ac_ext <<EOF
22562 #line 22563 "configure"
22563 #include "confdefs.h"
22564 /* System header to define __stub macros and hopefully few prototypes,
22565     which can conflict with char $ac_func(); below.  */
22566 #include <assert.h>
22567 /* Override any gcc2 internal prototype to avoid an error.  */
22568 /* We use char because int might match the return type of a gcc2
22569     builtin and then its argument prototype would still apply.  */
22570 char $ac_func();
22571
22572 int main() {
22573
22574 /* The GNU C library defines this for functions which it implements
22575     to always fail with ENOSYS.  Some functions are actually named
22576     something starting with __ and the normal name is an alias.  */
22577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22578 choke me
22579 #else
22580 $ac_func();
22581 #endif
22582
22583 ; return 0; }
22584 EOF
22585 if { (eval echo configure:22586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22586   rm -rf conftest*
22587   eval "ac_cv_func_$ac_func=yes"
22588 else
22589   echo "configure: failed program was:" >&5
22590   cat conftest.$ac_ext >&5
22591   rm -rf conftest*
22592   eval "ac_cv_func_$ac_func=no"
22593 fi
22594 rm -f conftest*
22595 fi
22596
22597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22598   echo "$ac_t""yes" 1>&6
22599     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22600   cat >> confdefs.h <<EOF
22601 #define $ac_tr_func 1
22602 EOF
22603  \
22604     ac_XPG2funcs=yes
22605 else
22606   echo "$ac_t""no" 1>&6
22607 ac_XPG2funcs=no
22608 fi
22609 done
22610
22611
22612     LIBS="$ac_save_LIBS"
22613
22614     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22615 echo "configure:22616: checking for XPG2 wchar_t support" >&5
22616     if test x"$ac_has_iconv_h" = xyes &&
22617        test x"$ac_has_langinfo_h" = xyes &&
22618        test x"$ac_XPG2funcs" = xyes; then
22619       ac_XPG2_wchar_t=yes
22620     else
22621       ac_XPG2_wchar_t=no
22622     fi
22623     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22624
22625             if test x"$ac_isoC99_wchar_t" = xyes && 
22626         test x"$ac_XPG2_wchar_t" = xyes; then
22627       cat >> confdefs.h <<\EOF
22628 #define _GLIBCPP_USE_WCHAR_T 1
22629 EOF
22630
22631       enable_wchar_t=yes
22632     fi
22633   fi
22634   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22635 echo "configure:22636: checking for enabled wchar_t specializations" >&5
22636   echo "$ac_t""$enable_wchar_t" 1>&6    
22637   
22638
22639 if test "$enable_wchar_t" = yes; then
22640   GLIBCPP_TEST_WCHAR_T_TRUE=
22641   GLIBCPP_TEST_WCHAR_T_FALSE='#'
22642 else
22643   GLIBCPP_TEST_WCHAR_T_TRUE='#'
22644   GLIBCPP_TEST_WCHAR_T_FALSE=
22645 fi      
22646
22647   
22648   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22649   ac_save_CXXFLAGS="$CXXFLAGS"
22650   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22651
22652   
22653   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22654 echo "configure:22655: checking for strtold declaration" >&5
22655   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22656     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22657   echo $ac_n "(cached) $ac_c" 1>&6
22658 else
22659   
22660       
22661       ac_ext=C
22662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22663 ac_cpp='$CXXCPP $CPPFLAGS'
22664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22666 cross_compiling=$ac_cv_prog_cxx_cross
22667
22668       cat > conftest.$ac_ext <<EOF
22669 #line 22670 "configure"
22670 #include "confdefs.h"
22671 #include <stdlib.h>
22672 int main() {
22673  strtold(0, 0);
22674 ; return 0; }
22675 EOF
22676 if { (eval echo configure:22677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22677   rm -rf conftest*
22678   glibcpp_cv_func_strtold_use=yes
22679 else
22680   echo "configure: failed program was:" >&5
22681   cat conftest.$ac_ext >&5
22682   rm -rf conftest*
22683   glibcpp_cv_func_strtold_use=no
22684 fi
22685 rm -f conftest*
22686       ac_ext=c
22687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22688 ac_cpp='$CPP $CPPFLAGS'
22689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22691 cross_compiling=$ac_cv_prog_cc_cross
22692
22693     
22694 fi
22695
22696   fi
22697   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22698   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22699     for ac_func in strtold
22700 do
22701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22702 echo "configure:22703: checking for $ac_func" >&5
22703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22704   echo $ac_n "(cached) $ac_c" 1>&6
22705 else
22706   cat > conftest.$ac_ext <<EOF
22707 #line 22708 "configure"
22708 #include "confdefs.h"
22709 /* System header to define __stub macros and hopefully few prototypes,
22710     which can conflict with char $ac_func(); below.  */
22711 #include <assert.h>
22712 /* Override any gcc2 internal prototype to avoid an error.  */
22713 /* We use char because int might match the return type of a gcc2
22714     builtin and then its argument prototype would still apply.  */
22715 char $ac_func();
22716
22717 int main() {
22718
22719 /* The GNU C library defines this for functions which it implements
22720     to always fail with ENOSYS.  Some functions are actually named
22721     something starting with __ and the normal name is an alias.  */
22722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22723 choke me
22724 #else
22725 $ac_func();
22726 #endif
22727
22728 ; return 0; }
22729 EOF
22730 if { (eval echo configure:22731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22731   rm -rf conftest*
22732   eval "ac_cv_func_$ac_func=yes"
22733 else
22734   echo "configure: failed program was:" >&5
22735   cat conftest.$ac_ext >&5
22736   rm -rf conftest*
22737   eval "ac_cv_func_$ac_func=no"
22738 fi
22739 rm -f conftest*
22740 fi
22741
22742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22743   echo "$ac_t""yes" 1>&6
22744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22745   cat >> confdefs.h <<EOF
22746 #define $ac_tr_func 1
22747 EOF
22748  
22749 else
22750   echo "$ac_t""no" 1>&6
22751 fi
22752 done
22753
22754   fi
22755
22756   
22757   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22758 echo "configure:22759: checking for strtof declaration" >&5
22759   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22760     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22761   echo $ac_n "(cached) $ac_c" 1>&6
22762 else
22763   
22764       
22765       ac_ext=C
22766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22767 ac_cpp='$CXXCPP $CPPFLAGS'
22768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22770 cross_compiling=$ac_cv_prog_cxx_cross
22771
22772       cat > conftest.$ac_ext <<EOF
22773 #line 22774 "configure"
22774 #include "confdefs.h"
22775 #include <stdlib.h>
22776 int main() {
22777  strtof(0, 0);
22778 ; return 0; }
22779 EOF
22780 if { (eval echo configure:22781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22781   rm -rf conftest*
22782   glibcpp_cv_func_strtof_use=yes
22783 else
22784   echo "configure: failed program was:" >&5
22785   cat conftest.$ac_ext >&5
22786   rm -rf conftest*
22787   glibcpp_cv_func_strtof_use=no
22788 fi
22789 rm -f conftest*
22790       ac_ext=c
22791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22792 ac_cpp='$CPP $CPPFLAGS'
22793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22795 cross_compiling=$ac_cv_prog_cc_cross
22796
22797     
22798 fi
22799
22800   fi
22801   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22802   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22803     for ac_func in strtof
22804 do
22805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22806 echo "configure:22807: checking for $ac_func" >&5
22807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22808   echo $ac_n "(cached) $ac_c" 1>&6
22809 else
22810   cat > conftest.$ac_ext <<EOF
22811 #line 22812 "configure"
22812 #include "confdefs.h"
22813 /* System header to define __stub macros and hopefully few prototypes,
22814     which can conflict with char $ac_func(); below.  */
22815 #include <assert.h>
22816 /* Override any gcc2 internal prototype to avoid an error.  */
22817 /* We use char because int might match the return type of a gcc2
22818     builtin and then its argument prototype would still apply.  */
22819 char $ac_func();
22820
22821 int main() {
22822
22823 /* The GNU C library defines this for functions which it implements
22824     to always fail with ENOSYS.  Some functions are actually named
22825     something starting with __ and the normal name is an alias.  */
22826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22827 choke me
22828 #else
22829 $ac_func();
22830 #endif
22831
22832 ; return 0; }
22833 EOF
22834 if { (eval echo configure:22835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22835   rm -rf conftest*
22836   eval "ac_cv_func_$ac_func=yes"
22837 else
22838   echo "configure: failed program was:" >&5
22839   cat conftest.$ac_ext >&5
22840   rm -rf conftest*
22841   eval "ac_cv_func_$ac_func=no"
22842 fi
22843 rm -f conftest*
22844 fi
22845
22846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22847   echo "$ac_t""yes" 1>&6
22848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22849   cat >> confdefs.h <<EOF
22850 #define $ac_tr_func 1
22851 EOF
22852  
22853 else
22854   echo "$ac_t""no" 1>&6
22855 fi
22856 done
22857
22858   fi
22859
22860   for ac_func in drand48
22861 do
22862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22863 echo "configure:22864: checking for $ac_func" >&5
22864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22865   echo $ac_n "(cached) $ac_c" 1>&6
22866 else
22867   cat > conftest.$ac_ext <<EOF
22868 #line 22869 "configure"
22869 #include "confdefs.h"
22870 /* System header to define __stub macros and hopefully few prototypes,
22871     which can conflict with char $ac_func(); below.  */
22872 #include <assert.h>
22873 /* Override any gcc2 internal prototype to avoid an error.  */
22874 /* We use char because int might match the return type of a gcc2
22875     builtin and then its argument prototype would still apply.  */
22876 char $ac_func();
22877
22878 int main() {
22879
22880 /* The GNU C library defines this for functions which it implements
22881     to always fail with ENOSYS.  Some functions are actually named
22882     something starting with __ and the normal name is an alias.  */
22883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22884 choke me
22885 #else
22886 $ac_func();
22887 #endif
22888
22889 ; return 0; }
22890 EOF
22891 if { (eval echo configure:22892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22892   rm -rf conftest*
22893   eval "ac_cv_func_$ac_func=yes"
22894 else
22895   echo "configure: failed program was:" >&5
22896   cat conftest.$ac_ext >&5
22897   rm -rf conftest*
22898   eval "ac_cv_func_$ac_func=no"
22899 fi
22900 rm -f conftest*
22901 fi
22902
22903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22904   echo "$ac_t""yes" 1>&6
22905     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22906   cat >> confdefs.h <<EOF
22907 #define $ac_tr_func 1
22908 EOF
22909  
22910 else
22911   echo "$ac_t""no" 1>&6
22912 fi
22913 done
22914
22915
22916   CXXFLAGS="$ac_save_CXXFLAGS"
22917
22918
22919   # For showmanyc_helper().
22920   for ac_hdr in sys/ioctl.h sys/filio.h
22921 do
22922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22924 echo "configure:22925: checking for $ac_hdr" >&5
22925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22926   echo $ac_n "(cached) $ac_c" 1>&6
22927 else
22928   cat > conftest.$ac_ext <<EOF
22929 #line 22930 "configure"
22930 #include "confdefs.h"
22931 #include <$ac_hdr>
22932 EOF
22933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22934 { (eval echo configure:22935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22936 if test -z "$ac_err"; then
22937   rm -rf conftest*
22938   eval "ac_cv_header_$ac_safe=yes"
22939 else
22940   echo "$ac_err" >&5
22941   echo "configure: failed program was:" >&5
22942   cat conftest.$ac_ext >&5
22943   rm -rf conftest*
22944   eval "ac_cv_header_$ac_safe=no"
22945 fi
22946 rm -f conftest*
22947 fi
22948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22949   echo "$ac_t""yes" 1>&6
22950     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22951   cat >> confdefs.h <<EOF
22952 #define $ac_tr_hdr 1
22953 EOF
22954  
22955 else
22956   echo "$ac_t""no" 1>&6
22957 fi
22958 done
22959
22960   
22961   if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22962   echo $ac_n "(cached) $ac_c" 1>&6
22963 else
22964   
22965     cat > conftest.$ac_ext <<EOF
22966 #line 22967 "configure"
22967 #include "confdefs.h"
22968 #include <poll.h>
22969 int main() {
22970 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0); 
22971 ; return 0; }
22972 EOF
22973 if { (eval echo configure:22974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22974   rm -rf conftest*
22975   glibcpp_cv_POLL=yes
22976 else
22977   echo "configure: failed program was:" >&5
22978   cat conftest.$ac_ext >&5
22979   rm -rf conftest*
22980   glibcpp_cv_POLL=no
22981 fi
22982 rm -f conftest*
22983   
22984 fi
22985
22986   if test x$glibcpp_cv_POLL = xyes; then
22987     cat >> confdefs.h <<\EOF
22988 #define HAVE_POLL 1
22989 EOF
22990
22991   fi
22992
22993   
22994   if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22995   echo $ac_n "(cached) $ac_c" 1>&6
22996 else
22997   
22998     cat > conftest.$ac_ext <<EOF
22999 #line 23000 "configure"
23000 #include "confdefs.h"
23001 #include <sys/stat.h>
23002 int main() {
23003 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode); 
23004 ; return 0; }
23005 EOF
23006 if { (eval echo configure:23007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23007   rm -rf conftest*
23008   glibcpp_cv_S_ISREG=yes
23009 else
23010   echo "configure: failed program was:" >&5
23011   cat conftest.$ac_ext >&5
23012   rm -rf conftest*
23013   glibcpp_cv_S_ISREG=no
23014 fi
23015 rm -f conftest*
23016   
23017 fi
23018
23019   if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
23020   echo $ac_n "(cached) $ac_c" 1>&6
23021 else
23022   
23023     cat > conftest.$ac_ext <<EOF
23024 #line 23025 "configure"
23025 #include "confdefs.h"
23026 #include <sys/stat.h>
23027 int main() {
23028 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode; 
23029 ; return 0; }
23030 EOF
23031 if { (eval echo configure:23032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23032   rm -rf conftest*
23033   glibcpp_cv_S_IFREG=yes
23034 else
23035   echo "configure: failed program was:" >&5
23036   cat conftest.$ac_ext >&5
23037   rm -rf conftest*
23038   glibcpp_cv_S_IFREG=no
23039 fi
23040 rm -f conftest*
23041   
23042 fi
23043
23044   if test x$glibcpp_cv_S_ISREG = xyes; then
23045     cat >> confdefs.h <<\EOF
23046 #define HAVE_S_ISREG 1
23047 EOF
23048
23049   elif test x$glibcpp_cv_S_IFREG = xyes; then
23050     cat >> confdefs.h <<\EOF
23051 #define HAVE_S_IFREG 1
23052 EOF
23053
23054   fi
23055
23056
23057   
23058   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
23059 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
23060 echo "configure:23061: checking for locale.h" >&5
23061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23062   echo $ac_n "(cached) $ac_c" 1>&6
23063 else
23064   cat > conftest.$ac_ext <<EOF
23065 #line 23066 "configure"
23066 #include "confdefs.h"
23067 #include <locale.h>
23068 EOF
23069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23070 { (eval echo configure:23071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23072 if test -z "$ac_err"; then
23073   rm -rf conftest*
23074   eval "ac_cv_header_$ac_safe=yes"
23075 else
23076   echo "$ac_err" >&5
23077   echo "configure: failed program was:" >&5
23078   cat conftest.$ac_ext >&5
23079   rm -rf conftest*
23080   eval "ac_cv_header_$ac_safe=no"
23081 fi
23082 rm -f conftest*
23083 fi
23084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23085   echo "$ac_t""yes" 1>&6
23086   
23087     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23088 echo "configure:23089: checking for LC_MESSAGES" >&5
23089 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23090   echo $ac_n "(cached) $ac_c" 1>&6
23091 else
23092   cat > conftest.$ac_ext <<EOF
23093 #line 23094 "configure"
23094 #include "confdefs.h"
23095 #include <locale.h>
23096 int main() {
23097 return LC_MESSAGES
23098 ; return 0; }
23099 EOF
23100 if { (eval echo configure:23101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23101   rm -rf conftest*
23102   ac_cv_val_LC_MESSAGES=yes
23103 else
23104   echo "configure: failed program was:" >&5
23105   cat conftest.$ac_ext >&5
23106   rm -rf conftest*
23107   ac_cv_val_LC_MESSAGES=no
23108 fi
23109 rm -f conftest*
23110 fi
23111
23112 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23113     if test $ac_cv_val_LC_MESSAGES = yes; then
23114       cat >> confdefs.h <<\EOF
23115 #define HAVE_LC_MESSAGES 1
23116 EOF
23117
23118     fi
23119   
23120 else
23121   echo "$ac_t""no" 1>&6
23122 fi
23123
23124
23125
23126   cat > conftest.$ac_ext <<EOF
23127 #line 23128 "configure"
23128 #include "confdefs.h"
23129
23130   #include <setjmp.h>
23131   
23132 int main() {
23133 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23134 ; return 0; }
23135 EOF
23136 if { (eval echo configure:23137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23137   rm -rf conftest*
23138   cat >> confdefs.h <<\EOF
23139 #define HAVE_SIGSETJMP 1
23140 EOF
23141
23142   
23143 else
23144   echo "configure: failed program was:" >&5
23145   cat conftest.$ac_ext >&5
23146 fi
23147 rm -f conftest*
23148
23149   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
23150 do
23151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23153 echo "configure:23154: checking for $ac_hdr" >&5
23154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23155   echo $ac_n "(cached) $ac_c" 1>&6
23156 else
23157   cat > conftest.$ac_ext <<EOF
23158 #line 23159 "configure"
23159 #include "confdefs.h"
23160 #include <$ac_hdr>
23161 EOF
23162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23163 { (eval echo configure:23164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23165 if test -z "$ac_err"; then
23166   rm -rf conftest*
23167   eval "ac_cv_header_$ac_safe=yes"
23168 else
23169   echo "$ac_err" >&5
23170   echo "configure: failed program was:" >&5
23171   cat conftest.$ac_ext >&5
23172   rm -rf conftest*
23173   eval "ac_cv_header_$ac_safe=no"
23174 fi
23175 rm -f conftest*
23176 fi
23177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23178   echo "$ac_t""yes" 1>&6
23179     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23180   cat >> confdefs.h <<EOF
23181 #define $ac_tr_hdr 1
23182 EOF
23183  
23184 else
23185   echo "$ac_t""no" 1>&6
23186 fi
23187 done
23188
23189 for ac_func in getpagesize
23190 do
23191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23192 echo "configure:23193: checking for $ac_func" >&5
23193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23194   echo $ac_n "(cached) $ac_c" 1>&6
23195 else
23196   cat > conftest.$ac_ext <<EOF
23197 #line 23198 "configure"
23198 #include "confdefs.h"
23199 /* System header to define __stub macros and hopefully few prototypes,
23200     which can conflict with char $ac_func(); below.  */
23201 #include <assert.h>
23202 /* Override any gcc2 internal prototype to avoid an error.  */
23203 /* We use char because int might match the return type of a gcc2
23204     builtin and then its argument prototype would still apply.  */
23205 char $ac_func();
23206
23207 int main() {
23208
23209 /* The GNU C library defines this for functions which it implements
23210     to always fail with ENOSYS.  Some functions are actually named
23211     something starting with __ and the normal name is an alias.  */
23212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23213 choke me
23214 #else
23215 $ac_func();
23216 #endif
23217
23218 ; return 0; }
23219 EOF
23220 if { (eval echo configure:23221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23221   rm -rf conftest*
23222   eval "ac_cv_func_$ac_func=yes"
23223 else
23224   echo "configure: failed program was:" >&5
23225   cat conftest.$ac_ext >&5
23226   rm -rf conftest*
23227   eval "ac_cv_func_$ac_func=no"
23228 fi
23229 rm -f conftest*
23230 fi
23231
23232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23233   echo "$ac_t""yes" 1>&6
23234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23235   cat >> confdefs.h <<EOF
23236 #define $ac_tr_func 1
23237 EOF
23238  
23239 else
23240   echo "$ac_t""no" 1>&6
23241 fi
23242 done
23243
23244 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23245 echo "configure:23246: checking for working mmap" >&5
23246 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23247   echo $ac_n "(cached) $ac_c" 1>&6
23248 else
23249   if test "$cross_compiling" = yes; then
23250   ac_cv_func_mmap_fixed_mapped=no
23251 else
23252   cat > conftest.$ac_ext <<EOF
23253 #line 23254 "configure"
23254 #include "confdefs.h"
23255
23256 /* Thanks to Mike Haertel and Jim Avera for this test.
23257    Here is a matrix of mmap possibilities:
23258         mmap private not fixed
23259         mmap private fixed at somewhere currently unmapped
23260         mmap private fixed at somewhere already mapped
23261         mmap shared not fixed
23262         mmap shared fixed at somewhere currently unmapped
23263         mmap shared fixed at somewhere already mapped
23264    For private mappings, we should verify that changes cannot be read()
23265    back from the file, nor mmap's back from the file at a different
23266    address.  (There have been systems where private was not correctly
23267    implemented like the infamous i386 svr4.0, and systems where the
23268    VM page cache was not coherent with the filesystem buffer cache
23269    like early versions of FreeBSD and possibly contemporary NetBSD.)
23270    For shared mappings, we should conversely verify that changes get
23271    propogated back to all the places they're supposed to be.
23272
23273    Grep wants private fixed already mapped.
23274    The main things grep needs to know about mmap are:
23275    * does it exist and is it safe to write into the mmap'd area
23276    * how to use it (BSD variants)  */
23277 #include <sys/types.h>
23278 #include <fcntl.h>
23279 #include <sys/mman.h>
23280
23281 #if HAVE_SYS_TYPES_H
23282 # include <sys/types.h>
23283 #endif
23284
23285 #if HAVE_STDLIB_H
23286 # include <stdlib.h>
23287 #endif
23288
23289 #if HAVE_SYS_STAT_H
23290 # include <sys/stat.h>
23291 #endif
23292
23293 #if HAVE_UNISTD_H
23294 # include <unistd.h>
23295 #endif
23296
23297 /* This mess was copied from the GNU getpagesize.h.  */
23298 #ifndef HAVE_GETPAGESIZE
23299
23300 /* Assume that all systems that can run configure have sys/param.h.  */
23301 # ifndef HAVE_SYS_PARAM_H
23302 #  define HAVE_SYS_PARAM_H 1
23303 # endif
23304
23305 # ifdef _SC_PAGESIZE
23306 #  define getpagesize() sysconf(_SC_PAGESIZE)
23307 # else /* no _SC_PAGESIZE */
23308 #  ifdef HAVE_SYS_PARAM_H
23309 #   include <sys/param.h>
23310 #   ifdef EXEC_PAGESIZE
23311 #    define getpagesize() EXEC_PAGESIZE
23312 #   else /* no EXEC_PAGESIZE */
23313 #    ifdef NBPG
23314 #     define getpagesize() NBPG * CLSIZE
23315 #     ifndef CLSIZE
23316 #      define CLSIZE 1
23317 #     endif /* no CLSIZE */
23318 #    else /* no NBPG */
23319 #     ifdef NBPC
23320 #      define getpagesize() NBPC
23321 #     else /* no NBPC */
23322 #      ifdef PAGESIZE
23323 #       define getpagesize() PAGESIZE
23324 #      endif /* PAGESIZE */
23325 #     endif /* no NBPC */
23326 #    endif /* no NBPG */
23327 #   endif /* no EXEC_PAGESIZE */
23328 #  else /* no HAVE_SYS_PARAM_H */
23329 #   define getpagesize() 8192   /* punt totally */
23330 #  endif /* no HAVE_SYS_PARAM_H */
23331 # endif /* no _SC_PAGESIZE */
23332
23333 #endif /* no HAVE_GETPAGESIZE */
23334
23335 #ifdef __cplusplus
23336 extern "C" { void *malloc(unsigned); }
23337 #else
23338 char *malloc();
23339 #endif
23340
23341 int
23342 main()
23343 {
23344         char *data, *data2, *data3;
23345         int i, pagesize;
23346         int fd;
23347
23348         pagesize = getpagesize();
23349
23350         /*
23351          * First, make a file with some known garbage in it.
23352          */
23353         data = malloc(pagesize);
23354         if (!data)
23355                 exit(1);
23356         for (i = 0; i < pagesize; ++i)
23357                 *(data + i) = rand();
23358         umask(0);
23359         fd = creat("conftestmmap", 0600);
23360         if (fd < 0)
23361                 exit(1);
23362         if (write(fd, data, pagesize) != pagesize)
23363                 exit(1);
23364         close(fd);
23365
23366         /*
23367          * Next, try to mmap the file at a fixed address which
23368          * already has something else allocated at it.  If we can,
23369          * also make sure that we see the same garbage.
23370          */
23371         fd = open("conftestmmap", O_RDWR);
23372         if (fd < 0)
23373                 exit(1);
23374         data2 = malloc(2 * pagesize);
23375         if (!data2)
23376                 exit(1);
23377         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23378         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23379             MAP_PRIVATE | MAP_FIXED, fd, 0L))
23380                 exit(1);
23381         for (i = 0; i < pagesize; ++i)
23382                 if (*(data + i) != *(data2 + i))
23383                         exit(1);
23384
23385         /*
23386          * Finally, make sure that changes to the mapped area
23387          * do not percolate back to the file as seen by read().
23388          * (This is a bug on some variants of i386 svr4.0.)
23389          */
23390         for (i = 0; i < pagesize; ++i)
23391                 *(data2 + i) = *(data2 + i) + 1;
23392         data3 = malloc(pagesize);
23393         if (!data3)
23394                 exit(1);
23395         if (read(fd, data3, pagesize) != pagesize)
23396                 exit(1);
23397         for (i = 0; i < pagesize; ++i)
23398                 if (*(data + i) != *(data3 + i))
23399                         exit(1);
23400         close(fd);
23401         unlink("conftestmmap");
23402         exit(0);
23403 }
23404
23405 EOF
23406 if { (eval echo configure:23407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23407 then
23408   ac_cv_func_mmap_fixed_mapped=yes
23409 else
23410   echo "configure: failed program was:" >&5
23411   cat conftest.$ac_ext >&5
23412   rm -fr conftest*
23413   ac_cv_func_mmap_fixed_mapped=no
23414 fi
23415 rm -fr conftest*
23416 fi
23417
23418 fi
23419
23420 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23421 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23422   cat >> confdefs.h <<\EOF
23423 #define HAVE_MMAP 1
23424 EOF
23425
23426 fi
23427
23428
23429   # Establish limits on memory usage during 'make check'
23430   
23431   
23432   setrlimit_have_headers=yes
23433   for ac_hdr in unistd.h sys/time.h sys/resource.h
23434 do
23435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23437 echo "configure:23438: checking for $ac_hdr" >&5
23438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23439   echo $ac_n "(cached) $ac_c" 1>&6
23440 else
23441   cat > conftest.$ac_ext <<EOF
23442 #line 23443 "configure"
23443 #include "confdefs.h"
23444 #include <$ac_hdr>
23445 EOF
23446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23447 { (eval echo configure:23448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23449 if test -z "$ac_err"; then
23450   rm -rf conftest*
23451   eval "ac_cv_header_$ac_safe=yes"
23452 else
23453   echo "$ac_err" >&5
23454   echo "configure: failed program was:" >&5
23455   cat conftest.$ac_ext >&5
23456   rm -rf conftest*
23457   eval "ac_cv_header_$ac_safe=no"
23458 fi
23459 rm -f conftest*
23460 fi
23461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23462   echo "$ac_t""yes" 1>&6
23463     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23464   cat >> confdefs.h <<EOF
23465 #define $ac_tr_hdr 1
23466 EOF
23467  
23468 else
23469   echo "$ac_t""no" 1>&6
23470 setrlimit_have_headers=no
23471 fi
23472 done
23473
23474   # If don't have the headers, then we can't run the tests now, and we
23475   # won't be seeing any of these during testsuite compilation.
23476   if test $setrlimit_have_headers = yes; then
23477     # Can't do these in a loop, else the resulting syntax is wrong.
23478     
23479   cat > conftest.$ac_ext <<EOF
23480 #line 23481 "configure"
23481 #include "confdefs.h"
23482 #include <unistd.h>
23483                   #include <sys/time.h>
23484                   #include <sys/resource.h>
23485                  
23486 int main() {
23487  int f = RLIMIT_DATA ; 
23488 ; return 0; }
23489 EOF
23490 if { (eval echo configure:23491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23491   rm -rf conftest*
23492   glibcpp_mresult=1
23493 else
23494   echo "configure: failed program was:" >&5
23495   cat conftest.$ac_ext >&5
23496   rm -rf conftest*
23497   glibcpp_mresult=0
23498 fi
23499 rm -f conftest*
23500   cat >> confdefs.h <<EOF
23501 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23502 EOF
23503
23504
23505     
23506   cat > conftest.$ac_ext <<EOF
23507 #line 23508 "configure"
23508 #include "confdefs.h"
23509 #include <unistd.h>
23510                   #include <sys/time.h>
23511                   #include <sys/resource.h>
23512                  
23513 int main() {
23514  int f = RLIMIT_RSS ; 
23515 ; return 0; }
23516 EOF
23517 if { (eval echo configure:23518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23518   rm -rf conftest*
23519   glibcpp_mresult=1
23520 else
23521   echo "configure: failed program was:" >&5
23522   cat conftest.$ac_ext >&5
23523   rm -rf conftest*
23524   glibcpp_mresult=0
23525 fi
23526 rm -f conftest*
23527   cat >> confdefs.h <<EOF
23528 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23529 EOF
23530
23531
23532     
23533   cat > conftest.$ac_ext <<EOF
23534 #line 23535 "configure"
23535 #include "confdefs.h"
23536 #include <unistd.h>
23537                   #include <sys/time.h>
23538                   #include <sys/resource.h>
23539                  
23540 int main() {
23541  int f = RLIMIT_VMEM ; 
23542 ; return 0; }
23543 EOF
23544 if { (eval echo configure:23545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23545   rm -rf conftest*
23546   glibcpp_mresult=1
23547 else
23548   echo "configure: failed program was:" >&5
23549   cat conftest.$ac_ext >&5
23550   rm -rf conftest*
23551   glibcpp_mresult=0
23552 fi
23553 rm -f conftest*
23554   cat >> confdefs.h <<EOF
23555 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23556 EOF
23557
23558
23559     
23560   cat > conftest.$ac_ext <<EOF
23561 #line 23562 "configure"
23562 #include "confdefs.h"
23563 #include <unistd.h>
23564                   #include <sys/time.h>
23565                   #include <sys/resource.h>
23566                  
23567 int main() {
23568  int f = RLIMIT_AS ; 
23569 ; return 0; }
23570 EOF
23571 if { (eval echo configure:23572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23572   rm -rf conftest*
23573   glibcpp_mresult=1
23574 else
23575   echo "configure: failed program was:" >&5
23576   cat conftest.$ac_ext >&5
23577   rm -rf conftest*
23578   glibcpp_mresult=0
23579 fi
23580 rm -f conftest*
23581   cat >> confdefs.h <<EOF
23582 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23583 EOF
23584
23585
23586
23587     # Check for rlimit, setrlimit.
23588     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23589   echo $ac_n "(cached) $ac_c" 1>&6
23590 else
23591   
23592       cat > conftest.$ac_ext <<EOF
23593 #line 23594 "configure"
23594 #include "confdefs.h"
23595 #include <unistd.h>
23596                   #include <sys/time.h>
23597                   #include <sys/resource.h>
23598                      
23599 int main() {
23600  struct rlimit r; setrlimit(0, &r);
23601 ; return 0; }
23602 EOF
23603 if { (eval echo configure:23604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23604   rm -rf conftest*
23605   ac_setrlimit=yes
23606 else
23607   echo "configure: failed program was:" >&5
23608   cat conftest.$ac_ext >&5
23609   rm -rf conftest*
23610   ac_setrlimit=no
23611 fi
23612 rm -f conftest*
23613     
23614 fi
23615
23616   fi
23617
23618   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23619 echo "configure:23620: checking for testsuite memory limit support" >&5
23620   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23621     ac_mem_limits=yes
23622     cat >> confdefs.h <<\EOF
23623 #define _GLIBCPP_MEM_LIMITS 1
23624 EOF
23625
23626   else
23627     ac_mem_limits=no
23628   fi
23629   echo "$ac_t""$ac_mem_limits" 1>&6
23630
23631
23632   # Look for setenv, so that extended locale tests can be performed.
23633   
23634   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23635 echo "configure:23636: checking for setenv declaration" >&5
23636   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23637     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23638   echo $ac_n "(cached) $ac_c" 1>&6
23639 else
23640   
23641       
23642       ac_ext=C
23643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23644 ac_cpp='$CXXCPP $CPPFLAGS'
23645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23647 cross_compiling=$ac_cv_prog_cxx_cross
23648
23649       cat > conftest.$ac_ext <<EOF
23650 #line 23651 "configure"
23651 #include "confdefs.h"
23652 #include <stdlib.h>
23653 int main() {
23654  setenv(0, 0, 0);
23655 ; return 0; }
23656 EOF
23657 if { (eval echo configure:23658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23658   rm -rf conftest*
23659   glibcpp_cv_func_setenv_use=yes
23660 else
23661   echo "configure: failed program was:" >&5
23662   cat conftest.$ac_ext >&5
23663   rm -rf conftest*
23664   glibcpp_cv_func_setenv_use=no
23665 fi
23666 rm -f conftest*
23667       ac_ext=c
23668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23669 ac_cpp='$CPP $CPPFLAGS'
23670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23672 cross_compiling=$ac_cv_prog_cc_cross
23673
23674     
23675 fi
23676
23677   fi
23678   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23679   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23680     for ac_func in setenv
23681 do
23682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23683 echo "configure:23684: checking for $ac_func" >&5
23684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23685   echo $ac_n "(cached) $ac_c" 1>&6
23686 else
23687   cat > conftest.$ac_ext <<EOF
23688 #line 23689 "configure"
23689 #include "confdefs.h"
23690 /* System header to define __stub macros and hopefully few prototypes,
23691     which can conflict with char $ac_func(); below.  */
23692 #include <assert.h>
23693 /* Override any gcc2 internal prototype to avoid an error.  */
23694 /* We use char because int might match the return type of a gcc2
23695     builtin and then its argument prototype would still apply.  */
23696 char $ac_func();
23697
23698 int main() {
23699
23700 /* The GNU C library defines this for functions which it implements
23701     to always fail with ENOSYS.  Some functions are actually named
23702     something starting with __ and the normal name is an alias.  */
23703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23704 choke me
23705 #else
23706 $ac_func();
23707 #endif
23708
23709 ; return 0; }
23710 EOF
23711 if { (eval echo configure:23712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23712   rm -rf conftest*
23713   eval "ac_cv_func_$ac_func=yes"
23714 else
23715   echo "configure: failed program was:" >&5
23716   cat conftest.$ac_ext >&5
23717   rm -rf conftest*
23718   eval "ac_cv_func_$ac_func=no"
23719 fi
23720 rm -f conftest*
23721 fi
23722
23723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23724   echo "$ac_t""yes" 1>&6
23725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23726   cat >> confdefs.h <<EOF
23727 #define $ac_tr_func 1
23728 EOF
23729  
23730 else
23731   echo "$ac_t""no" 1>&6
23732 fi
23733 done
23734
23735   fi
23736
23737
23738   # Export file names for ABI checking.
23739   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23740   
23741
23742   case "$target" in
23743     *-*-cygwin* ) enable_abi_check=no ;;
23744     * ) enable_abi_check=yes ;;
23745   esac
23746
23747   # Don't do ABI checking unless native.
23748   
23749
23750 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23751                  && test "$enable_abi_check" = yes ; then
23752   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23753   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23754 else
23755   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23756   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23757 fi
23758
23759 fi
23760
23761 # This depends on the possibly-skipped linker test above.
23762 # Check whether --enable-symvers or --disable-symvers was given.
23763 if test "${enable_symvers+set}" = set; then
23764   enableval="$enable_symvers"
23765   case "$enableval" in
23766  yes) enable_symvers=yes ;;
23767  no)  enable_symvers=no ;;
23768  # other names here, just as sanity checks
23769  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23770  gnu) enable_symvers=$enableval ;;
23771  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23772  esac
23773 else
23774   enable_symvers=yes
23775 fi
23776
23777 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23778 # don't know enough about $LD to do tricks...
23779 if test x$enable_shared = xno ||
23780         test "x$LD" = x ||
23781         test x$glibcpp_gnu_ld_version = x; then
23782   enable_symvers=no
23783 fi
23784
23785 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23786 if test $enable_symvers != no; then
23787   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23788 echo "configure:23789: checking for shared libgcc" >&5
23789   ac_save_CFLAGS="$CFLAGS"
23790   CFLAGS=' -lgcc_s'
23791   cat > conftest.$ac_ext <<EOF
23792 #line 23793 "configure"
23793 #include "confdefs.h"
23794
23795 int main() {
23796 return 0
23797 ; return 0; }
23798 EOF
23799 if { (eval echo configure:23800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23800   rm -rf conftest*
23801   glibcpp_shared_libgcc=yes
23802 else
23803   echo "configure: failed program was:" >&5
23804   cat conftest.$ac_ext >&5
23805   rm -rf conftest*
23806   glibcpp_shared_libgcc=no
23807 fi
23808 rm -f conftest*
23809   CFLAGS="$ac_save_CFLAGS"
23810   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23811 fi
23812
23813 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23814 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23815 glibcpp_min_gnu_ld_version=21200
23816
23817 # Check to see if unspecified "yes" value can win, given results
23818 # above.
23819 if test $enable_symvers = yes ; then
23820   if test $with_gnu_ld = yes &&
23821     test $glibcpp_shared_libgcc = yes ;
23822   then
23823     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23824         enable_symvers=gnu
23825     else
23826       ac_test_CFLAGS="${CFLAGS+set}"
23827       ac_save_CFLAGS="$CFLAGS"
23828       CFLAGS='-shared -Wl,--version-script,conftest.map'
23829       enable_symvers=no
23830       
23831       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23832       
23833       cat > conftest.$ac_ext <<EOF
23834 #line 23835 "configure"
23835 #include "confdefs.h"
23836 int foo;
23837 int main() {
23838
23839 ; return 0; }
23840 EOF
23841 if { (eval echo configure:23842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23842   rm -rf conftest*
23843   enable_symvers=gnu
23844 else
23845   echo "configure: failed program was:" >&5
23846   cat conftest.$ac_ext >&5
23847 fi
23848 rm -f conftest*
23849       if test "$ac_test_CFLAGS" = set; then
23850         CFLAGS="$ac_save_CFLAGS"
23851       else
23852         # this is the suspicious part
23853         CFLAGS=''
23854       fi
23855       rm -f conftest.map
23856     fi
23857   else
23858     # just fail for now
23859     enable_symvers=no
23860   fi
23861 fi
23862
23863 case $enable_symvers in
23864   no)
23865       SYMVER_MAP=config/linker-map.dummy
23866       ;;
23867   gnu)
23868       SYMVER_MAP=config/linker-map.gnu
23869       cat >> confdefs.h <<\EOF
23870 #define _GLIBCPP_SYMVER 1
23871 EOF
23872
23873       ;;
23874 esac
23875
23876
23877
23878
23879 if test $enable_symvers != no; then
23880   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23881   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23882 else
23883   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23884   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23885 fi
23886 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23887 echo "configure:23888: checking versioning on shared library symbols" >&5
23888 echo "$ac_t""$enable_symvers" 1>&6
23889
23890
23891 # Propagate the target-specific source directories through the build chain.
23892 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23893 # uses it, and it only gets used in this file.)
23894 OS_INC_SRCDIR=config/${os_include_dir}
23895 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23896
23897
23898
23899 # Set up cross-compile flags
23900   
23901
23902 if test "$CANADIAN" = yes; then
23903   CANADIAN_TRUE=
23904   CANADIAN_FALSE='#'
23905 else
23906   CANADIAN_TRUE='#'
23907   CANADIAN_FALSE=
23908 fi
23909  
23910 cat > confcache <<\EOF
23911 # This file is a shell script that caches the results of configure
23912 # tests run on this system so they can be shared between configure
23913 # scripts and configure runs.  It is not useful on other systems.
23914 # If it contains results you don't want to keep, you may remove or edit it.
23915 #
23916 # By default, configure uses ./config.cache as the cache file,
23917 # creating it if it does not exist already.  You can give configure
23918 # the --cache-file=FILE option to use a different cache file; that is
23919 # what configure does when it calls configure scripts in
23920 # subdirectories, so they share the cache.
23921 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23922 # config.status only pays attention to the cache file if you give it the
23923 # --recheck option to rerun configure.
23924 #
23925 EOF
23926 # The following way of writing the cache mishandles newlines in values,
23927 # but we know of no workaround that is simple, portable, and efficient.
23928 # So, don't put newlines in cache variables' values.
23929 # Ultrix sh set writes to stderr and can't be redirected directly,
23930 # and sets the high bit in the cache file unless we assign to the vars.
23931 (set) 2>&1 |
23932   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23933   *ac_space=\ *)
23934     # `set' does not quote correctly, so add quotes (double-quote substitution
23935     # turns \\\\ into \\, and sed turns \\ into \).
23936     sed -n \
23937       -e "s/'/'\\\\''/g" \
23938       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23939     ;;
23940   *)
23941     # `set' quotes correctly as required by POSIX, so do not add quotes.
23942     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23943     ;;
23944   esac >> confcache
23945 if cmp -s $cache_file confcache; then
23946   :
23947 else
23948   if test -w $cache_file; then
23949     echo "updating cache $cache_file"
23950     cat confcache > $cache_file
23951   else
23952     echo "not updating unwritable cache $cache_file"
23953   fi
23954 fi
23955 rm -f confcache
23956
23957
23958 if test "${multilib}" = "yes"; then
23959   multilib_arg="--enable-multilib"
23960 else
23961   multilib_arg=
23962 fi
23963
23964 # Export all the install information
23965
23966 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23967 # exported correctly in GLIBCPP_CONFIGURE.
23968 glibcpp_toolexecdir=no
23969 glibcpp_toolexeclibdir=no
23970 glibcpp_prefixdir=${prefix}
23971
23972 # Process the option --with-gxx-include-dir=<path to include-files directory>
23973 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23974 echo "configure:23975: checking for --with-gxx-include-dir" >&5
23975 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23976 if test "${with_gxx_include_dir+set}" = set; then
23977   withval="$with_gxx_include_dir"
23978   case "${withval}" in
23979   yes)
23980     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23981     gxx_include_dir=no
23982     ;;
23983   no)
23984     gxx_include_dir=no
23985     ;;
23986   *)
23987     gxx_include_dir=${withval}
23988     ;;
23989 esac
23990 else
23991   gxx_include_dir=no
23992 fi
23993
23994 echo "$ac_t""$gxx_include_dir" 1>&6
23995
23996 # Process the option "--enable-version-specific-runtime-libs"
23997 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23998 echo "configure:23999: checking for --enable-version-specific-runtime-libs" >&5
23999 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24000 if test "${enable_version_specific_runtime_libs+set}" = set; then
24001   enableval="$enable_version_specific_runtime_libs"
24002   case "$enableval" in
24003  yes) version_specific_libs=yes ;;
24004  no)  version_specific_libs=no ;;
24005  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
24006  esac
24007 else
24008   version_specific_libs=no
24009 fi
24010 # Option set, now we can test it.
24011 echo "$ac_t""$version_specific_libs" 1>&6
24012
24013 # Default case for install directory for include files.
24014 if test $version_specific_libs = no && test $gxx_include_dir = no; then
24015   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
24016 fi
24017
24018 # Version-specific runtime libs processing.
24019 if test $version_specific_libs = yes; then
24020   # Need the gcc compiler version to know where to install libraries
24021   # and header files if --enable-version-specific-runtime-libs option
24022   # is selected.
24023   if test x"$gxx_include_dir" = x"no"; then
24024     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
24025   fi
24026   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24027   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
24028 fi
24029
24030 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
24031 # Install a library built with a cross compiler in tooldir, not libdir.
24032 if test x"$glibcpp_toolexecdir" = x"no"; then
24033   if test -n "$with_cross_host" &&
24034      test x"$with_cross_host" != x"no"; then
24035     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
24036     glibcpp_toolexeclibdir='$(toolexecdir)/lib'
24037   else
24038     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24039     glibcpp_toolexeclibdir='$(libdir)'
24040   fi
24041   multi_os_directory=`$CC -print-multi-os-directory`
24042   case $multi_os_directory in
24043   .) ;; # Avoid trailing /.
24044   *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
24045   esac
24046 fi
24047
24048 echo $ac_n "checking for install location""... $ac_c" 1>&6
24049 echo "configure:24050: checking for install location" >&5
24050 echo "$ac_t""$gxx_include_dir" 1>&6
24051
24052
24053
24054
24055
24056
24057
24058 # Export all the include and flag information to Makefiles.
24059
24060   # Root level of the build directory include sources.
24061   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
24062
24063   # Passed down for canadian crosses.
24064   if test x"$CANADIAN" = xyes; then
24065     TOPLEVEL_INCLUDES='-I$(includedir)'
24066   fi
24067
24068   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
24069
24070   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
24071
24072   if test x"$need_libio" = xyes; then
24073     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
24074     
24075   fi
24076
24077   # Now, export this to all the little Makefiles....
24078   
24079   
24080   
24081   
24082
24083
24084   # Optimization flags that are probably a good idea for thrill-seekers. Just
24085   # uncomment the lines below and make, everything else is ready to go...
24086   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
24087   OPTIMIZE_CXXFLAGS=
24088   
24089
24090   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
24091   
24092
24093
24094 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
24095    grep "enable shared" > /dev/null; then
24096   LIBSUPCXX_PICFLAGS=-prefer-pic
24097 else
24098   LIBSUPCXX_PICFLAGS=
24099 fi
24100
24101
24102 # Generate the various Makefiles, include files, and scripts.
24103 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24104 # and libsupc++/Makefile.am so that multilib installs will end up
24105 # installed in the correct place. To work around this not being passed
24106 # down from config-ml.in -> top_srcdir/Makefile.am ->
24107 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24108 trap '' 1 2 15
24109 cat > confcache <<\EOF
24110 # This file is a shell script that caches the results of configure
24111 # tests run on this system so they can be shared between configure
24112 # scripts and configure runs.  It is not useful on other systems.
24113 # If it contains results you don't want to keep, you may remove or edit it.
24114 #
24115 # By default, configure uses ./config.cache as the cache file,
24116 # creating it if it does not exist already.  You can give configure
24117 # the --cache-file=FILE option to use a different cache file; that is
24118 # what configure does when it calls configure scripts in
24119 # subdirectories, so they share the cache.
24120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24121 # config.status only pays attention to the cache file if you give it the
24122 # --recheck option to rerun configure.
24123 #
24124 EOF
24125 # The following way of writing the cache mishandles newlines in values,
24126 # but we know of no workaround that is simple, portable, and efficient.
24127 # So, don't put newlines in cache variables' values.
24128 # Ultrix sh set writes to stderr and can't be redirected directly,
24129 # and sets the high bit in the cache file unless we assign to the vars.
24130 (set) 2>&1 |
24131   case `(ac_space=' '; set | grep ac_space) 2>&1` in
24132   *ac_space=\ *)
24133     # `set' does not quote correctly, so add quotes (double-quote substitution
24134     # turns \\\\ into \\, and sed turns \\ into \).
24135     sed -n \
24136       -e "s/'/'\\\\''/g" \
24137       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24138     ;;
24139   *)
24140     # `set' quotes correctly as required by POSIX, so do not add quotes.
24141     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24142     ;;
24143   esac >> confcache
24144 if cmp -s $cache_file confcache; then
24145   :
24146 else
24147   if test -w $cache_file; then
24148     echo "updating cache $cache_file"
24149     cat confcache > $cache_file
24150   else
24151     echo "not updating unwritable cache $cache_file"
24152   fi
24153 fi
24154 rm -f confcache
24155
24156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24157
24158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24159 # Let make expand exec_prefix.
24160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24161
24162 # Any assignment to VPATH causes Sun make to only execute
24163 # the first set of double-colon rules, so remove it if not needed.
24164 # If there is a colon in the path, we need to keep it.
24165 if test "x$srcdir" = x.; then
24166   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
24167 fi
24168
24169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24170
24171 DEFS=-DHAVE_CONFIG_H
24172
24173 # Without the "./", some shells look in PATH for config.status.
24174 : ${CONFIG_STATUS=./config.status}
24175
24176 echo creating $CONFIG_STATUS
24177 rm -f $CONFIG_STATUS
24178 cat > $CONFIG_STATUS <<EOF
24179 #! /bin/sh
24180 # Generated automatically by configure.
24181 # Run this file to recreate the current configuration.
24182 # This directory was configured as follows,
24183 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24184 #
24185 # $0 $ac_configure_args
24186 #
24187 # Compiler output produced by configure, useful for debugging
24188 # configure, is in ./config.log if it exists.
24189
24190 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24191 for ac_option
24192 do
24193   case "\$ac_option" in
24194   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24195     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24196     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24197   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24198     echo "$CONFIG_STATUS generated by autoconf version 2.13"
24199     exit 0 ;;
24200   -help | --help | --hel | --he | --h)
24201     echo "\$ac_cs_usage"; exit 0 ;;
24202   *) echo "\$ac_cs_usage"; exit 1 ;;
24203   esac
24204 done
24205
24206 ac_given_srcdir=$srcdir
24207 ac_given_INSTALL="$INSTALL"
24208
24209 trap 'rm -fr `echo "Makefile \
24210 include/Makefile src/Makefile \
24211 libmath/Makefile libio/Makefile libsupc++/Makefile \
24212 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24213 EOF
24214 cat >> $CONFIG_STATUS <<EOF
24215
24216 # Protect against being on the right side of a sed subst in config.status.
24217 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24218  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24219 $ac_vpsub
24220 $extrasub
24221 s%@SHELL@%$SHELL%g
24222 s%@CFLAGS@%$CFLAGS%g
24223 s%@CPPFLAGS@%$CPPFLAGS%g
24224 s%@CXXFLAGS@%$CXXFLAGS%g
24225 s%@FFLAGS@%$FFLAGS%g
24226 s%@DEFS@%$DEFS%g
24227 s%@LDFLAGS@%$LDFLAGS%g
24228 s%@LIBS@%$LIBS%g
24229 s%@exec_prefix@%$exec_prefix%g
24230 s%@prefix@%$prefix%g
24231 s%@program_transform_name@%$program_transform_name%g
24232 s%@bindir@%$bindir%g
24233 s%@sbindir@%$sbindir%g
24234 s%@libexecdir@%$libexecdir%g
24235 s%@datadir@%$datadir%g
24236 s%@sysconfdir@%$sysconfdir%g
24237 s%@sharedstatedir@%$sharedstatedir%g
24238 s%@localstatedir@%$localstatedir%g
24239 s%@libdir@%$libdir%g
24240 s%@includedir@%$includedir%g
24241 s%@oldincludedir@%$oldincludedir%g
24242 s%@infodir@%$infodir%g
24243 s%@mandir@%$mandir%g
24244 s%@PACKAGE@%$PACKAGE%g
24245 s%@libtool_VERSION@%$libtool_VERSION%g
24246 s%@toplevel_srcdir@%$toplevel_srcdir%g
24247 s%@host@%$host%g
24248 s%@host_alias@%$host_alias%g
24249 s%@host_cpu@%$host_cpu%g
24250 s%@host_vendor@%$host_vendor%g
24251 s%@host_os@%$host_os%g
24252 s%@target@%$target%g
24253 s%@target_alias@%$target_alias%g
24254 s%@target_cpu@%$target_cpu%g
24255 s%@target_vendor@%$target_vendor%g
24256 s%@target_os@%$target_os%g
24257 s%@build@%$build%g
24258 s%@build_alias@%$build_alias%g
24259 s%@build_cpu@%$build_cpu%g
24260 s%@build_vendor@%$build_vendor%g
24261 s%@build_os@%$build_os%g
24262 s%@glibcpp_builddir@%$glibcpp_builddir%g
24263 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24264 s%@AWK@%$AWK%g
24265 s%@LN_S@%$LN_S%g
24266 s%@glibcpp_basedir@%$glibcpp_basedir%g
24267 s%@CC@%$CC%g
24268 s%@glibcpp_CXX@%$glibcpp_CXX%g
24269 s%@AS@%$AS%g
24270 s%@AR@%$AR%g
24271 s%@RANLIB@%$RANLIB%g
24272 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24273 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24274 s%@INSTALL_DATA@%$INSTALL_DATA%g
24275 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24276 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24277 s%@MAINT@%$MAINT%g
24278 s%@EXEEXT@%$EXEEXT%g
24279 s%@VERSION@%$VERSION%g
24280 s%@ACLOCAL@%$ACLOCAL%g
24281 s%@AUTOCONF@%$AUTOCONF%g
24282 s%@AUTOMAKE@%$AUTOMAKE%g
24283 s%@AUTOHEADER@%$AUTOHEADER%g
24284 s%@MAKEINFO@%$MAKEINFO%g
24285 s%@SET_MAKE@%$SET_MAKE%g
24286 s%@OBJEXT@%$OBJEXT%g
24287 s%@STRIP@%$STRIP%g
24288 s%@LIBTOOL@%$LIBTOOL%g
24289 s%@CXXCPP@%$CXXCPP%g
24290 s%@enable_shared@%$enable_shared%g
24291 s%@enable_static@%$enable_static%g
24292 s%@ifGNUmake@%$ifGNUmake%g
24293 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24294 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24295 s%@CPP@%$CPP%g
24296 s%@CSTDIO_H@%$CSTDIO_H%g
24297 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24298 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24299 s%@CCODECVT_C@%$CCODECVT_C%g
24300 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24301 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24302 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24303 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24304 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24305 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24306 s%@libio_la@%$libio_la%g
24307 s%@check_msgfmt@%$check_msgfmt%g
24308 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24309 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24310 s%@glibcpp_localedir@%$glibcpp_localedir%g
24311 s%@USE_NLS@%$USE_NLS%g
24312 s%@CLOCALE_H@%$CLOCALE_H%g
24313 s%@CCODECVT_H@%$CCODECVT_H%g
24314 s%@CMESSAGES_H@%$CMESSAGES_H%g
24315 s%@CCODECVT_CC@%$CCODECVT_CC%g
24316 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24317 s%@CCTYPE_CC@%$CCTYPE_CC%g
24318 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24319 s%@CMONEY_CC@%$CMONEY_CC%g
24320 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24321 s%@CTIME_H@%$CTIME_H%g
24322 s%@CTIME_CC@%$CTIME_CC%g
24323 s%@CLOCALE_CC@%$CLOCALE_CC%g
24324 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24325 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24326 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24327 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24328 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24329 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24330 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24331 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24332 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24333 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24334 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24335 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24336 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24337 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24338 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24339 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24340 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24341 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24342 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24343 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24344 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24345 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24346 s%@WERROR@%$WERROR%g
24347 s%@baseline_file@%$baseline_file%g
24348 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24349 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24350 s%@SYMVER_MAP@%$SYMVER_MAP%g
24351 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24352 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24353 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24354 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24355 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24356 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24357 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24358 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24359 s%@gxx_include_dir@%$gxx_include_dir%g
24360 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24361 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24362 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24363 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24364 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24365 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24366 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24367 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24368 s%@WARN_FLAGS@%$WARN_FLAGS%g
24369 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24370
24371 CEOF
24372 EOF
24373
24374 cat >> $CONFIG_STATUS <<\EOF
24375
24376 # Split the substitutions into bite-sized pieces for seds with
24377 # small command number limits, like on Digital OSF/1 and HP-UX.
24378 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24379 ac_file=1 # Number of current file.
24380 ac_beg=1 # First line for current file.
24381 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24382 ac_more_lines=:
24383 ac_sed_cmds=""
24384 while $ac_more_lines; do
24385   if test $ac_beg -gt 1; then
24386     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24387   else
24388     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24389   fi
24390   if test ! -s conftest.s$ac_file; then
24391     ac_more_lines=false
24392     rm -f conftest.s$ac_file
24393   else
24394     if test -z "$ac_sed_cmds"; then
24395       ac_sed_cmds="sed -f conftest.s$ac_file"
24396     else
24397       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24398     fi
24399     ac_file=`expr $ac_file + 1`
24400     ac_beg=$ac_end
24401     ac_end=`expr $ac_end + $ac_max_sed_cmds`
24402   fi
24403 done
24404 if test -z "$ac_sed_cmds"; then
24405   ac_sed_cmds=cat
24406 fi
24407 EOF
24408
24409 cat >> $CONFIG_STATUS <<EOF
24410
24411 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24412 include/Makefile src/Makefile \
24413 libmath/Makefile libio/Makefile libsupc++/Makefile \
24414 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24415 EOF
24416 cat >> $CONFIG_STATUS <<\EOF
24417 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24418   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24419   case "$ac_file" in
24420   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24421        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24422   *) ac_file_in="${ac_file}.in" ;;
24423   esac
24424
24425   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24426
24427   # Remove last slash and all that follows it.  Not all systems have dirname.
24428   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24429   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24430     # The file is in a subdirectory.
24431     test ! -d "$ac_dir" && mkdir "$ac_dir"
24432     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24433     # A "../" for each directory in $ac_dir_suffix.
24434     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24435   else
24436     ac_dir_suffix= ac_dots=
24437   fi
24438
24439   case "$ac_given_srcdir" in
24440   .)  srcdir=.
24441       if test -z "$ac_dots"; then top_srcdir=.
24442       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24443   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24444   *) # Relative path.
24445     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24446     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24447   esac
24448
24449   case "$ac_given_INSTALL" in
24450   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24451   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24452   esac
24453
24454   echo creating "$ac_file"
24455   rm -f "$ac_file"
24456   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24457   case "$ac_file" in
24458   *Makefile*) ac_comsub="1i\\
24459 # $configure_input" ;;
24460   *) ac_comsub= ;;
24461   esac
24462
24463   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24464   sed -e "$ac_comsub
24465 s%@configure_input@%$configure_input%g
24466 s%@srcdir@%$srcdir%g
24467 s%@top_srcdir@%$top_srcdir%g
24468 s%@INSTALL@%$INSTALL%g
24469 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24470 fi; done
24471 rm -f conftest.s*
24472
24473 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24474 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24475 #
24476 # ac_d sets the value in "#define NAME VALUE" lines.
24477 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24478 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24479 ac_dC='\3'
24480 ac_dD='%g'
24481 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24482 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24483 ac_uB='\([      ]\)%\1#\2define\3'
24484 ac_uC=' '
24485 ac_uD='\4%g'
24486 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24487 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24488 ac_eB='$%\1#\2define\3'
24489 ac_eC=' '
24490 ac_eD='%g'
24491
24492 if test "${CONFIG_HEADERS+set}" != set; then
24493 EOF
24494 cat >> $CONFIG_STATUS <<EOF
24495   CONFIG_HEADERS="config.h"
24496 EOF
24497 cat >> $CONFIG_STATUS <<\EOF
24498 fi
24499 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24500   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24501   case "$ac_file" in
24502   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24503        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24504   *) ac_file_in="${ac_file}.in" ;;
24505   esac
24506
24507   echo creating $ac_file
24508
24509   rm -f conftest.frag conftest.in conftest.out
24510   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24511   cat $ac_file_inputs > conftest.in
24512
24513 EOF
24514
24515 # Transform confdefs.h into a sed script conftest.vals that substitutes
24516 # the proper values into config.h.in to produce config.h.  And first:
24517 # Protect against being on the right side of a sed subst in config.status.
24518 # Protect against being in an unquoted here document in config.status.
24519 rm -f conftest.vals
24520 cat > conftest.hdr <<\EOF
24521 s/[\\&%]/\\&/g
24522 s%[\\$`]%\\&%g
24523 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24524 s%ac_d%ac_u%gp
24525 s%ac_u%ac_e%gp
24526 EOF
24527 sed -n -f conftest.hdr confdefs.h > conftest.vals
24528 rm -f conftest.hdr
24529
24530 # This sed command replaces #undef with comments.  This is necessary, for
24531 # example, in the case of _POSIX_SOURCE, which is predefined and required
24532 # on some systems where configure will not decide to define it.
24533 cat >> conftest.vals <<\EOF
24534 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24535 EOF
24536
24537 # Break up conftest.vals because some shells have a limit on
24538 # the size of here documents, and old seds have small limits too.
24539
24540 rm -f conftest.tail
24541 while :
24542 do
24543   ac_lines=`grep -c . conftest.vals`
24544   # grep -c gives empty output for an empty file on some AIX systems.
24545   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24546   # Write a limited-size here document to conftest.frag.
24547   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24548   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24549   echo 'CEOF
24550   sed -f conftest.frag conftest.in > conftest.out
24551   rm -f conftest.in
24552   mv conftest.out conftest.in
24553 ' >> $CONFIG_STATUS
24554   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24555   rm -f conftest.vals
24556   mv conftest.tail conftest.vals
24557 done
24558 rm -f conftest.vals
24559
24560 cat >> $CONFIG_STATUS <<\EOF
24561   rm -f conftest.frag conftest.h
24562   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24563   cat conftest.in >> conftest.h
24564   rm -f conftest.in
24565   if cmp -s $ac_file conftest.h 2>/dev/null; then
24566     echo "$ac_file is unchanged"
24567     rm -f conftest.h
24568   else
24569     # Remove last slash and all that follows it.  Not all systems have dirname.
24570       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24571       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24572       # The file is in a subdirectory.
24573       test ! -d "$ac_dir" && mkdir "$ac_dir"
24574     fi
24575     rm -f $ac_file
24576     mv conftest.h $ac_file
24577   fi
24578 fi; done
24579
24580 EOF
24581 cat >> $CONFIG_STATUS <<EOF
24582
24583 srcdir=${srcdir}
24584 host=${host}
24585 target=${target}
24586 with_target_subdir=${with_target_subdir}
24587 with_build_subdir=${with_build_subdir}
24588 with_multisubdir=${with_multisubdir}
24589 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24590 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24591 glibcpp_basedir=${glibcpp_basedir}
24592 CC="${CC}"
24593 CXX="${CXX}"
24594 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24595
24596 EOF
24597 cat >> $CONFIG_STATUS <<\EOF
24598 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24599 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24600  if test -n "$CONFIG_FILES"; then
24601    if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24602      LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24603      # Ony modify Makefiles that are just being created.
24604      case " $CONFIG_FILES" in
24605        *" Makefile"*)
24606          ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24607          ;;
24608      esac
24609      case $CONFIG_FILES in
24610        *src/Makefile*)
24611          grep '^MULTISUBDIR =' Makefile >> src/Makefile
24612          ;;
24613      esac
24614      case $CONFIG_FILES in
24615        *libsupc++/Makefile*)
24616          grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24617          ;;
24618      esac
24619    fi
24620  fi
24621  chmod +x mkcheck
24622  chmod +x testsuite_flags
24623 exit 0
24624 EOF
24625 chmod +x $CONFIG_STATUS
24626 rm -fr confdefs* $ac_clean_files
24627 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24628
24629
24630
24631 # Sanity checking & User-visible messages.
24632 # Checks down here, otherwise they get scrolled off before
24633 # the user will notice.
24634
24635 # Trying to get more people to read documentation.  Possibly remove
24636 # check and warn all the time. There is no "informational" AC_MSG_
24637 # macro, so these are going to be printed even when --quiet/--silent
24638 # is given.
24639 if test ! -f stamp-sanity-warned; then
24640   touch stamp-sanity-warned
24641   echo ""
24642   echo "Please make certain that you read the installation information here:"
24643   echo "  faster => ${srcdir}/docs/html/install.html"
24644   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24645   echo ""
24646   echo "and the configuration information here:"
24647   echo "  faster => ${srcdir}/docs/html/configopts.html"
24648   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24649   echo ""
24650   echo "before proceeding with ${_cv_gnu_make_command}."
24651   echo ""
24652 fi