OSDN Git Service

9af855cdd18b77b2d23f4b77f891c84f00a4d986
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-libunwind-exceptions  force use of libunwind for exceptions"
61 ac_help="$ac_help
62   --enable-concept-checks use Boost-derived template checks [default=no]"
63 ac_help="$ac_help
64   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
65 ac_help="$ac_help
66   --with-gxx-include-dir  the installation directory for include files"
67 ac_help="$ac_help
68   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
69
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
73 build=NONE
74 cache_file=./config.cache
75 exec_prefix=NONE
76 host=NONE
77 no_create=
78 nonopt=NONE
79 no_recursion=
80 prefix=NONE
81 program_prefix=NONE
82 program_suffix=NONE
83 program_transform_name=s,x,x,
84 silent=
85 site=
86 srcdir=
87 target=NONE
88 verbose=
89 x_includes=NONE
90 x_libraries=NONE
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
103
104 # Initialize some other variables.
105 subdirs=
106 MFLAGS= MAKEFLAGS=
107 SHELL=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
109 ac_max_here_lines=12
110
111 ac_prev=
112 for ac_option
113 do
114
115   # If the previous option needs an argument, assign it.
116   if test -n "$ac_prev"; then
117     eval "$ac_prev=\$ac_option"
118     ac_prev=
119     continue
120   fi
121
122   case "$ac_option" in
123   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124   *) ac_optarg= ;;
125   esac
126
127   # Accept the important Cygnus configure options, so we can diagnose typos.
128
129   case "$ac_option" in
130
131   -bindir | --bindir | --bindi | --bind | --bin | --bi)
132     ac_prev=bindir ;;
133   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
134     bindir="$ac_optarg" ;;
135
136   -build | --build | --buil | --bui | --bu)
137     ac_prev=build ;;
138   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
139     build="$ac_optarg" ;;
140
141   -cache-file | --cache-file | --cache-fil | --cache-fi \
142   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
143     ac_prev=cache_file ;;
144   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
145   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
146     cache_file="$ac_optarg" ;;
147
148   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149     ac_prev=datadir ;;
150   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151   | --da=*)
152     datadir="$ac_optarg" ;;
153
154   -disable-* | --disable-*)
155     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
156     # Reject names that are not valid shell variable names.
157     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159     fi
160     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161     eval "enable_${ac_feature}=no" ;;
162
163   -enable-* | --enable-*)
164     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165     # Reject names that are not valid shell variable names.
166     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168     fi
169     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170     case "$ac_option" in
171       *=*) ;;
172       *) ac_optarg=yes ;;
173     esac
174     eval "enable_${ac_feature}='$ac_optarg'" ;;
175
176   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
177   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
178   | --exec | --exe | --ex)
179     ac_prev=exec_prefix ;;
180   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
181   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
182   | --exec=* | --exe=* | --ex=*)
183     exec_prefix="$ac_optarg" ;;
184
185   -gas | --gas | --ga | --g)
186     # Obsolete; use --with-gas.
187     with_gas=yes ;;
188
189   -help | --help | --hel | --he)
190     # Omit some internal or obsolete options to make the list less imposing.
191     # This message is too long to be a string in the A/UX 3.1 sh.
192     cat << EOF
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
195 Configuration:
196   --cache-file=FILE       cache test results in FILE
197   --help                  print this message
198   --no-create             do not create output files
199   --quiet, --silent       do not print \`checking...' messages
200   --version               print the version of autoconf that created configure
201 Directory and file names:
202   --prefix=PREFIX         install architecture-independent files in PREFIX
203                           [$ac_default_prefix]
204   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
205                           [same as prefix]
206   --bindir=DIR            user executables in DIR [EPREFIX/bin]
207   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
208   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
209   --datadir=DIR           read-only architecture-independent data in DIR
210                           [PREFIX/share]
211   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
212   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
213                           [PREFIX/com]
214   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
215   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
216   --includedir=DIR        C header files in DIR [PREFIX/include]
217   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
218   --infodir=DIR           info documentation in DIR [PREFIX/info]
219   --mandir=DIR            man documentation in DIR [PREFIX/man]
220   --srcdir=DIR            find the sources in DIR [configure dir or ..]
221   --program-prefix=PREFIX prepend PREFIX to installed program names
222   --program-suffix=SUFFIX append SUFFIX to installed program names
223   --program-transform-name=PROGRAM
224                           run sed PROGRAM on installed program names
225 EOF
226     cat << EOF
227 Host type:
228   --build=BUILD           configure for building on BUILD [BUILD=HOST]
229   --host=HOST             configure for HOST [guessed]
230   --target=TARGET         configure for TARGET [TARGET=HOST]
231 Features and packages:
232   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
233   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
234   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
235   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
236   --x-includes=DIR        X include files are in DIR
237   --x-libraries=DIR       X library files are in DIR
238 EOF
239     if test -n "$ac_help"; then
240       echo "--enable and --with options recognized:$ac_help"
241     fi
242     exit 0 ;;
243
244   -host | --host | --hos | --ho)
245     ac_prev=host ;;
246   -host=* | --host=* | --hos=* | --ho=*)
247     host="$ac_optarg" ;;
248
249   -includedir | --includedir | --includedi | --included | --include \
250   | --includ | --inclu | --incl | --inc)
251     ac_prev=includedir ;;
252   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
253   | --includ=* | --inclu=* | --incl=* | --inc=*)
254     includedir="$ac_optarg" ;;
255
256   -infodir | --infodir | --infodi | --infod | --info | --inf)
257     ac_prev=infodir ;;
258   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
259     infodir="$ac_optarg" ;;
260
261   -libdir | --libdir | --libdi | --libd)
262     ac_prev=libdir ;;
263   -libdir=* | --libdir=* | --libdi=* | --libd=*)
264     libdir="$ac_optarg" ;;
265
266   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
267   | --libexe | --libex | --libe)
268     ac_prev=libexecdir ;;
269   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
270   | --libexe=* | --libex=* | --libe=*)
271     libexecdir="$ac_optarg" ;;
272
273   -localstatedir | --localstatedir | --localstatedi | --localstated \
274   | --localstate | --localstat | --localsta | --localst \
275   | --locals | --local | --loca | --loc | --lo)
276     ac_prev=localstatedir ;;
277   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
278   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
279   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
280     localstatedir="$ac_optarg" ;;
281
282   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283     ac_prev=mandir ;;
284   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
285     mandir="$ac_optarg" ;;
286
287   -nfp | --nfp | --nf)
288     # Obsolete; use --without-fp.
289     with_fp=no ;;
290
291   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292   | --no-cr | --no-c)
293     no_create=yes ;;
294
295   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
296   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297     no_recursion=yes ;;
298
299   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
300   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
301   | --oldin | --oldi | --old | --ol | --o)
302     ac_prev=oldincludedir ;;
303   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
304   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
305   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
306     oldincludedir="$ac_optarg" ;;
307
308   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309     ac_prev=prefix ;;
310   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
311     prefix="$ac_optarg" ;;
312
313   -program-prefix | --program-prefix | --program-prefi | --program-pref \
314   | --program-pre | --program-pr | --program-p)
315     ac_prev=program_prefix ;;
316   -program-prefix=* | --program-prefix=* | --program-prefi=* \
317   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
318     program_prefix="$ac_optarg" ;;
319
320   -program-suffix | --program-suffix | --program-suffi | --program-suff \
321   | --program-suf | --program-su | --program-s)
322     ac_prev=program_suffix ;;
323   -program-suffix=* | --program-suffix=* | --program-suffi=* \
324   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
325     program_suffix="$ac_optarg" ;;
326
327   -program-transform-name | --program-transform-name \
328   | --program-transform-nam | --program-transform-na \
329   | --program-transform-n | --program-transform- \
330   | --program-transform | --program-transfor \
331   | --program-transfo | --program-transf \
332   | --program-trans | --program-tran \
333   | --progr-tra | --program-tr | --program-t)
334     ac_prev=program_transform_name ;;
335   -program-transform-name=* | --program-transform-name=* \
336   | --program-transform-nam=* | --program-transform-na=* \
337   | --program-transform-n=* | --program-transform-=* \
338   | --program-transform=* | --program-transfor=* \
339   | --program-transfo=* | --program-transf=* \
340   | --program-trans=* | --program-tran=* \
341   | --progr-tra=* | --program-tr=* | --program-t=*)
342     program_transform_name="$ac_optarg" ;;
343
344   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
345   | -silent | --silent | --silen | --sile | --sil)
346     silent=yes ;;
347
348   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349     ac_prev=sbindir ;;
350   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351   | --sbi=* | --sb=*)
352     sbindir="$ac_optarg" ;;
353
354   -sharedstatedir | --sharedstatedir | --sharedstatedi \
355   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
356   | --sharedst | --shareds | --shared | --share | --shar \
357   | --sha | --sh)
358     ac_prev=sharedstatedir ;;
359   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
360   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
361   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362   | --sha=* | --sh=*)
363     sharedstatedir="$ac_optarg" ;;
364
365   -site | --site | --sit)
366     ac_prev=site ;;
367   -site=* | --site=* | --sit=*)
368     site="$ac_optarg" ;;
369
370   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371     ac_prev=srcdir ;;
372   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
373     srcdir="$ac_optarg" ;;
374
375   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
376   | --syscon | --sysco | --sysc | --sys | --sy)
377     ac_prev=sysconfdir ;;
378   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
379   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
380     sysconfdir="$ac_optarg" ;;
381
382   -target | --target | --targe | --targ | --tar | --ta | --t)
383     ac_prev=target ;;
384   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
385     target="$ac_optarg" ;;
386
387   -v | -verbose | --verbose | --verbos | --verbo | --verb)
388     verbose=yes ;;
389
390   -version | --version | --versio | --versi | --vers)
391     echo "configure generated by autoconf version 2.13"
392     exit 0 ;;
393
394   -with-* | --with-*)
395     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
396     # Reject names that are not valid shell variable names.
397     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
398       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399     fi
400     ac_package=`echo $ac_package| sed 's/-/_/g'`
401     case "$ac_option" in
402       *=*) ;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "with_${ac_package}='$ac_optarg'" ;;
406
407   -without-* | --without-*)
408     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
409     # Reject names that are not valid shell variable names.
410     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
411       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412     fi
413     ac_package=`echo $ac_package| sed 's/-/_/g'`
414     eval "with_${ac_package}=no" ;;
415
416   --x)
417     # Obsolete; use --with-x.
418     with_x=yes ;;
419
420   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
421   | --x-incl | --x-inc | --x-in | --x-i)
422     ac_prev=x_includes ;;
423   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
424   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
425     x_includes="$ac_optarg" ;;
426
427   -x-libraries | --x-libraries | --x-librarie | --x-librari \
428   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
429     ac_prev=x_libraries ;;
430   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
431   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
432     x_libraries="$ac_optarg" ;;
433
434   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435     ;;
436
437   *)
438     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
439       echo "configure: warning: $ac_option: invalid host type" 1>&2
440     fi
441     if test "x$nonopt" != xNONE; then
442       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443     fi
444     nonopt="$ac_option"
445     ;;
446
447   esac
448 done
449
450 if test -n "$ac_prev"; then
451   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 fi
453
454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455
456 # File descriptor usage:
457 # 0 standard input
458 # 1 file creation
459 # 2 errors and warnings
460 # 3 some systems may open it to /dev/tty
461 # 4 used on the Kubota Titan
462 # 6 checking for... messages and results
463 # 5 compiler messages saved in config.log
464 if test "$silent" = yes; then
465   exec 6>/dev/null
466 else
467   exec 6>&1
468 fi
469 exec 5>./config.log
470
471 echo "\
472 This file contains any messages produced by compilers while
473 running configure, to aid debugging if configure makes a mistake.
474 " 1>&5
475
476 # Strip out --no-create and --no-recursion so they do not pile up.
477 # Also quote any args containing shell metacharacters.
478 ac_configure_args=
479 for ac_arg
480 do
481   case "$ac_arg" in
482   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483   | --no-cr | --no-c) ;;
484   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
486   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
487   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
488   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
489   esac
490 done
491
492 # NLS nuisances.
493 # Only set these to C if already set.  These must not be set unconditionally
494 # because not all systems understand e.g. LANG=C (notably SCO).
495 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
496 # Non-C LC_CTYPE values break the ctype check.
497 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
498 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
499 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
500 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
501
502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
503 rm -rf conftest* confdefs.h
504 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
505 echo > confdefs.h
506
507 # A filename unique to this package, relative to the directory that
508 # configure is in, which we can look for to find out if srcdir is correct.
509 ac_unique_file=src/ios.cc
510
511 # Find the source files, if location was not specified.
512 if test -z "$srcdir"; then
513   ac_srcdir_defaulted=yes
514   # Try the directory containing this script, then its parent.
515   ac_prog=$0
516   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
517   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518   srcdir=$ac_confdir
519   if test ! -r $srcdir/$ac_unique_file; then
520     srcdir=..
521   fi
522 else
523   ac_srcdir_defaulted=no
524 fi
525 if test ! -r $srcdir/$ac_unique_file; then
526   if test "$ac_srcdir_defaulted" = yes; then
527     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528   else
529     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
530   fi
531 fi
532 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533
534 # Prefer explicitly selected file to automatically selected ones.
535 if test -z "$CONFIG_SITE"; then
536   if test "x$prefix" != xNONE; then
537     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538   else
539     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
540   fi
541 fi
542 for ac_site_file in $CONFIG_SITE; do
543   if test -r "$ac_site_file"; then
544     echo "loading site script $ac_site_file"
545     . "$ac_site_file"
546   fi
547 done
548
549 if test -r "$cache_file"; then
550   echo "loading cache $cache_file"
551   . $cache_file
552 else
553   echo "creating cache $cache_file"
554   > $cache_file
555 fi
556
557 ac_ext=c
558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp='$CPP $CPPFLAGS'
560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling=$ac_cv_prog_cc_cross
563
564 ac_exeext=
565 ac_objext=o
566 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
567   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
569     ac_n= ac_c='
570 ' ac_t='        '
571   else
572     ac_n=-n ac_c= ac_t=
573   fi
574 else
575   ac_n= ac_c='\c' ac_t=
576 fi
577
578
579
580 PACKAGE=libstdc++
581
582 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
583 release_VERSION=3.1.0
584
585 # For libtool versioning info, format is CURRENT:REVISION:AGE
586 libtool_VERSION=4:0:0
587
588
589 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
590 # AC 2.5x sets target_alias iff the user specified --target, but we use it
591 # everywhere, so we set it here just to be sure.  In AC 2.13
592 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
593 ac_aux_dir=
594 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
595   if test -f $ac_dir/install-sh; then
596     ac_aux_dir=$ac_dir
597     ac_install_sh="$ac_aux_dir/install-sh -c"
598     break
599   elif test -f $ac_dir/install.sh; then
600     ac_aux_dir=$ac_dir
601     ac_install_sh="$ac_aux_dir/install.sh -c"
602     break
603   fi
604 done
605 if test -z "$ac_aux_dir"; then
606   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
607 fi
608 ac_config_guess=$ac_aux_dir/config.guess
609 ac_config_sub=$ac_aux_dir/config.sub
610 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611
612
613 # Do some error checking and defaulting for the host and target type.
614 # The inputs are:
615 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
616 #
617 # The rules are:
618 # 1. You are not allowed to specify --host, --target, and nonopt at the
619 #    same time.
620 # 2. Host defaults to nonopt.
621 # 3. If nonopt is not specified, then host defaults to the current host,
622 #    as determined by config.guess.
623 # 4. Target and build default to nonopt.
624 # 5. If nonopt is not specified, then target and build default to host.
625
626 # The aliases save the names the user supplied, while $host etc.
627 # will get canonicalized.
628 case $host---$target---$nonopt in
629 NONE---*---* | *---NONE---* | *---*---NONE) ;;
630 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
631 esac
632
633
634 # Make sure we can run config.sub.
635 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
636 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
637 fi
638
639 echo $ac_n "checking host system type""... $ac_c" 1>&6
640 echo "configure:641: checking host system type" >&5
641
642 host_alias=$host
643 case "$host_alias" in
644 NONE)
645   case $nonopt in
646   NONE)
647     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
648     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
649     fi ;;
650   *) host_alias=$nonopt ;;
651   esac ;;
652 esac
653
654 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
655 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$host" 1>&6
659
660 echo $ac_n "checking target system type""... $ac_c" 1>&6
661 echo "configure:662: checking target system type" >&5
662
663 target_alias=$target
664 case "$target_alias" in
665 NONE)
666   case $nonopt in
667   NONE) target_alias=$host_alias ;;
668   *) target_alias=$nonopt ;;
669   esac ;;
670 esac
671
672 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
673 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$target" 1>&6
677
678 echo $ac_n "checking build system type""... $ac_c" 1>&6
679 echo "configure:680: checking build system type" >&5
680
681 build_alias=$build
682 case "$build_alias" in
683 NONE)
684   case $nonopt in
685   NONE) build_alias=$host_alias ;;
686   *) build_alias=$nonopt ;;
687   esac ;;
688 esac
689
690 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
691 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$build" 1>&6
695
696 test "$host_alias" != "$target_alias" &&
697   test "$program_prefix$program_suffix$program_transform_name" = \
698     NONENONEs,x,x, &&
699   program_prefix=${target_alias}-
700
701 target_alias=${target_alias-$target}
702
703
704 # Find a good install program.  We prefer a C program (faster),
705 # so one script is as good as another.  But avoid the broken or
706 # incompatible versions:
707 # SysV /etc/install, /usr/sbin/install
708 # SunOS /usr/etc/install
709 # IRIX /sbin/install
710 # AIX /bin/install
711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
714 # ./install, which can be erroneously created by make from ./install.sh.
715 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
716 echo "configure:717: checking for a BSD compatible install" >&5
717 if test -z "$INSTALL"; then
718 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
719   echo $ac_n "(cached) $ac_c" 1>&6
720 else
721     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
722   for ac_dir in $PATH; do
723     # Account for people who put trailing slashes in PATH elements.
724     case "$ac_dir/" in
725     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
726     *)
727       # OSF1 and SCO ODT 3.0 have their own names for install.
728       # Don't use installbsd from OSF since it installs stuff as root
729       # by default.
730       for ac_prog in ginstall scoinst install; do
731         if test -f $ac_dir/$ac_prog; then
732           if test $ac_prog = install &&
733             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
734             # AIX install.  It has an incompatible calling convention.
735             :
736           else
737             ac_cv_path_install="$ac_dir/$ac_prog -c"
738             break 2
739           fi
740         fi
741       done
742       ;;
743     esac
744   done
745   IFS="$ac_save_IFS"
746
747 fi
748   if test "${ac_cv_path_install+set}" = set; then
749     INSTALL="$ac_cv_path_install"
750   else
751     # As a last resort, use the slow shell script.  We don't cache a
752     # path for INSTALL within a source directory, because that will
753     # break other packages using the cache if that directory is
754     # removed, or if the path is relative.
755     INSTALL="$ac_install_sh"
756   fi
757 fi
758 echo "$ac_t""$INSTALL" 1>&6
759
760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
761 # It thinks the first close brace ends the variable substitution.
762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
763
764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
765
766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
767
768 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
769 echo "configure:770: checking whether build environment is sane" >&5
770 # Just in case
771 sleep 1
772 echo timestamp > conftestfile
773 # Do `set' in a subshell so we don't clobber the current shell's
774 # arguments.  Must try -L first in case configure is actually a
775 # symlink; some systems play weird games with the mod time of symlinks
776 # (eg FreeBSD returns the mod time of the symlink's containing
777 # directory).
778 if (
779    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
780    if test "$*" = "X"; then
781       # -L didn't work.
782       set X `ls -t $srcdir/configure conftestfile`
783    fi
784    if test "$*" != "X $srcdir/configure conftestfile" \
785       && test "$*" != "X conftestfile $srcdir/configure"; then
786
787       # If neither matched, then we have a broken ls.  This can happen
788       # if, for instance, CONFIG_SHELL is bash and it inherits a
789       # broken ls alias from the environment.  This has actually
790       # happened.  Such a system could not be considered "sane".
791       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
792 alias in your environment" 1>&2; exit 1; }
793    fi
794
795    test "$2" = conftestfile
796    )
797 then
798    # Ok.
799    :
800 else
801    { echo "configure: error: newly created file is older than distributed files!
802 Check your system clock" 1>&2; exit 1; }
803 fi
804 rm -f conftest*
805 echo "$ac_t""yes" 1>&6
806 if test "$program_transform_name" = s,x,x,; then
807   program_transform_name=
808 else
809   # Double any \ or $.  echo might interpret backslashes.
810   cat <<\EOF_SED > conftestsed
811 s,\\,\\\\,g; s,\$,$$,g
812 EOF_SED
813   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
814   rm -f conftestsed
815 fi
816 test "$program_prefix" != NONE &&
817   program_transform_name="s,^,${program_prefix},; $program_transform_name"
818 # Use a double $ so make ignores it.
819 test "$program_suffix" != NONE &&
820   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
821
822 # sed with no file args requires a program.
823 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
824
825 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
826 echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
827 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
828 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
829   echo $ac_n "(cached) $ac_c" 1>&6
830 else
831   cat > conftestmake <<\EOF
832 all:
833         @echo 'ac_maketemp="${MAKE}"'
834 EOF
835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
836 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
837 if test -n "$ac_maketemp"; then
838   eval ac_cv_prog_make_${ac_make}_set=yes
839 else
840   eval ac_cv_prog_make_${ac_make}_set=no
841 fi
842 rm -f conftestmake
843 fi
844 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
845   echo "$ac_t""yes" 1>&6
846   SET_MAKE=
847 else
848   echo "$ac_t""no" 1>&6
849   SET_MAKE="MAKE=${MAKE-make}"
850 fi
851
852
853 PACKAGE=$PACKAGE
854
855 VERSION=$release_VERSION
856
857 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
858   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
859 fi
860 cat >> confdefs.h <<EOF
861 #define PACKAGE "$PACKAGE"
862 EOF
863
864 cat >> confdefs.h <<EOF
865 #define VERSION "$VERSION"
866 EOF
867
868
869
870 missing_dir=`cd $ac_aux_dir && pwd`
871 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
872 echo "configure:873: checking for working aclocal" >&5
873 # Run test in a subshell; some versions of sh will print an error if
874 # an executable is not found, even if stderr is redirected.
875 # Redirect stdin to placate older versions of autoconf.  Sigh.
876 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
877    ACLOCAL=aclocal
878    echo "$ac_t""found" 1>&6
879 else
880    ACLOCAL="$missing_dir/missing aclocal"
881    echo "$ac_t""missing" 1>&6
882 fi
883
884 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
885 echo "configure:886: checking for working autoconf" >&5
886 # Run test in a subshell; some versions of sh will print an error if
887 # an executable is not found, even if stderr is redirected.
888 # Redirect stdin to placate older versions of autoconf.  Sigh.
889 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
890    AUTOCONF=autoconf
891    echo "$ac_t""found" 1>&6
892 else
893    AUTOCONF="$missing_dir/missing autoconf"
894    echo "$ac_t""missing" 1>&6
895 fi
896
897 echo $ac_n "checking for working automake""... $ac_c" 1>&6
898 echo "configure:899: checking for working automake" >&5
899 # Run test in a subshell; some versions of sh will print an error if
900 # an executable is not found, even if stderr is redirected.
901 # Redirect stdin to placate older versions of autoconf.  Sigh.
902 if (automake --version) < /dev/null > /dev/null 2>&1; then
903    AUTOMAKE=automake
904    echo "$ac_t""found" 1>&6
905 else
906    AUTOMAKE="$missing_dir/missing automake"
907    echo "$ac_t""missing" 1>&6
908 fi
909
910 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
911 echo "configure:912: checking for working autoheader" >&5
912 # Run test in a subshell; some versions of sh will print an error if
913 # an executable is not found, even if stderr is redirected.
914 # Redirect stdin to placate older versions of autoconf.  Sigh.
915 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
916    AUTOHEADER=autoheader
917    echo "$ac_t""found" 1>&6
918 else
919    AUTOHEADER="$missing_dir/missing autoheader"
920    echo "$ac_t""missing" 1>&6
921 fi
922
923 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
924 echo "configure:925: checking for working makeinfo" >&5
925 # Run test in a subshell; some versions of sh will print an error if
926 # an executable is not found, even if stderr is redirected.
927 # Redirect stdin to placate older versions of autoconf.  Sigh.
928 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
929    MAKEINFO=makeinfo
930    echo "$ac_t""found" 1>&6
931 else
932    MAKEINFO="$missing_dir/missing makeinfo"
933    echo "$ac_t""missing" 1>&6
934 fi
935
936
937
938
939
940
941 # Runs configure.host and configure.target, as well as finds CC, CXX
942 # and assorted other critical bits.  Have to run this before the
943 # GLIBCPP_ENABLE_* macros below.
944 if test $host != $build; then
945   ac_tool_prefix=${host_alias}-
946 else
947   ac_tool_prefix=
948 fi
949
950 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
951 echo "configure:952: checking for Cygwin environment" >&5
952 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
953   echo $ac_n "(cached) $ac_c" 1>&6
954 else
955   cat > conftest.$ac_ext <<EOF
956 #line 957 "configure"
957 #include "confdefs.h"
958
959 int main() {
960
961 #ifndef __CYGWIN__
962 #define __CYGWIN__ __CYGWIN32__
963 #endif
964 return __CYGWIN__;
965 ; return 0; }
966 EOF
967 if { (eval echo configure:968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
968   rm -rf conftest*
969   ac_cv_cygwin=yes
970 else
971   echo "configure: failed program was:" >&5
972   cat conftest.$ac_ext >&5
973   rm -rf conftest*
974   ac_cv_cygwin=no
975 fi
976 rm -f conftest*
977 rm -f conftest*
978 fi
979
980 echo "$ac_t""$ac_cv_cygwin" 1>&6
981 CYGWIN=
982 test "$ac_cv_cygwin" = yes && CYGWIN=yes
983 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
984 echo "configure:985: checking for mingw32 environment" >&5
985 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
986   echo $ac_n "(cached) $ac_c" 1>&6
987 else
988   cat > conftest.$ac_ext <<EOF
989 #line 990 "configure"
990 #include "confdefs.h"
991
992 int main() {
993 return __MINGW32__;
994 ; return 0; }
995 EOF
996 if { (eval echo configure:997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
997   rm -rf conftest*
998   ac_cv_mingw32=yes
999 else
1000   echo "configure: failed program was:" >&5
1001   cat conftest.$ac_ext >&5
1002   rm -rf conftest*
1003   ac_cv_mingw32=no
1004 fi
1005 rm -f conftest*
1006 rm -f conftest*
1007 fi
1008
1009 echo "$ac_t""$ac_cv_mingw32" 1>&6
1010 MINGW32=
1011 test "$ac_cv_mingw32" = yes && MINGW32=yes
1012
1013     # Check whether --enable-multilib or --disable-multilib was given.
1014 if test "${enable_multilib+set}" = set; then
1015   enableval="$enable_multilib"
1016   case "${enableval}" in
1017     yes) multilib=yes ;;
1018     no)  multilib=no ;;
1019     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1020    esac
1021 else
1022   multilib=yes
1023 fi
1024
1025   # When building with srcdir == objdir, links to the source files will
1026   # be created in directories within the target_subdir.  We have to
1027   # adjust toplevel_srcdir accordingly, so that configure finds
1028   # install-sh and other auxiliary files that live in the top-level
1029   # source directory.
1030   if test "${srcdir}" = "."; then
1031     if test -z "${with_target_subdir}"; then
1032       toprel=".."
1033     else
1034       if test "${with_target_subdir}" != "."; then
1035         toprel="${with_multisrctop}../.."
1036       else
1037         toprel="${with_multisrctop}.."
1038       fi
1039     fi
1040   else
1041     toprel=".."
1042   fi
1043   ac_aux_dir=
1044 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1045   if test -f $ac_dir/install-sh; then
1046     ac_aux_dir=$ac_dir
1047     ac_install_sh="$ac_aux_dir/install-sh -c"
1048     break
1049   elif test -f $ac_dir/install.sh; then
1050     ac_aux_dir=$ac_dir
1051     ac_install_sh="$ac_aux_dir/install.sh -c"
1052     break
1053   fi
1054 done
1055 if test -z "$ac_aux_dir"; then
1056   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1057 fi
1058 ac_config_guess=$ac_aux_dir/config.guess
1059 ac_config_sub=$ac_aux_dir/config.sub
1060 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1061
1062   toplevel_srcdir=\${top_srcdir}/$toprel
1063   
1064
1065   # Export build and source directories.
1066   # These need to be absolute paths, yet at the same time need to
1067   # canonicalize only relative paths, because then amd will not unmount
1068   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1069   glibcpp_builddir=`pwd`
1070   case $srcdir in
1071   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1072   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1073   esac
1074   
1075   
1076
1077     
1078
1079   for ac_prog in mawk gawk nawk awk
1080 do
1081 # Extract the first word of "$ac_prog", so it can be a program name with args.
1082 set dummy $ac_prog; ac_word=$2
1083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084 echo "configure:1085: checking for $ac_word" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1086   echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088   if test -n "$AWK"; then
1089   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1090 else
1091   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1092   ac_dummy="$PATH"
1093   for ac_dir in $ac_dummy; do
1094     test -z "$ac_dir" && ac_dir=.
1095     if test -f $ac_dir/$ac_word; then
1096       ac_cv_prog_AWK="$ac_prog"
1097       break
1098     fi
1099   done
1100   IFS="$ac_save_ifs"
1101 fi
1102 fi
1103 AWK="$ac_cv_prog_AWK"
1104 if test -n "$AWK"; then
1105   echo "$ac_t""$AWK" 1>&6
1106 else
1107   echo "$ac_t""no" 1>&6
1108 fi
1109
1110 test -n "$AWK" && break
1111 done
1112
1113   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1114   # be 'cp -p' if linking isn't available.
1115   #ac_cv_prog_LN_S='cp -p'
1116   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether ln -s works" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1119   echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121   rm -f conftestdata
1122 if ln -s X conftestdata 2>/dev/null
1123 then
1124   rm -f conftestdata
1125   ac_cv_prog_LN_S="ln -s"
1126 else
1127   ac_cv_prog_LN_S=ln
1128 fi
1129 fi
1130 LN_S="$ac_cv_prog_LN_S"
1131 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1132   echo "$ac_t""yes" 1>&6
1133 else
1134   echo "$ac_t""no" 1>&6
1135 fi
1136
1137
1138   # We use these options to decide which functions to include.
1139   # Check whether --with-target-subdir or --without-target-subdir was given.
1140 if test "${with_target_subdir+set}" = set; then
1141   withval="$with_target_subdir"
1142   :
1143 fi
1144
1145   # Check whether --with-cross-host or --without-cross-host was given.
1146 if test "${with_cross_host+set}" = set; then
1147   withval="$with_cross_host"
1148   :
1149 fi
1150
1151
1152   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1153   
1154
1155   # Never versions of autoconf add an underscore to these functions.
1156   # Prevent future problems ...
1157   
1158   
1159   
1160   
1161
1162   # AC_PROG_CC
1163   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1164   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1165   # are probably using a cross compiler, which will not be able to fully
1166   # link an executable.  This is addressed in later versions of autoconf.
1167
1168   
1169
1170       
1171   # Extract the first word of "gcc", so it can be a program name with args.
1172 set dummy gcc; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1176   echo $ac_n "(cached) $ac_c" 1>&6
1177 else
1178   if test -n "$CC"; then
1179   ac_cv_prog_CC="$CC" # Let the user override the test.
1180 else
1181   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1182   ac_dummy="$PATH"
1183   for ac_dir in $ac_dummy; do
1184     test -z "$ac_dir" && ac_dir=.
1185     if test -f $ac_dir/$ac_word; then
1186       ac_cv_prog_CC="gcc"
1187       break
1188     fi
1189   done
1190   IFS="$ac_save_ifs"
1191 fi
1192 fi
1193 CC="$ac_cv_prog_CC"
1194 if test -n "$CC"; then
1195   echo "$ac_t""$CC" 1>&6
1196 else
1197   echo "$ac_t""no" 1>&6
1198 fi
1199
1200   if test -z "$CC"; then
1201     # Extract the first word of "cc", so it can be a program name with args.
1202 set dummy cc; ac_word=$2
1203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1204 echo "configure:1205: checking for $ac_word" >&5
1205 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1206   echo $ac_n "(cached) $ac_c" 1>&6
1207 else
1208   if test -n "$CC"; then
1209   ac_cv_prog_CC="$CC" # Let the user override the test.
1210 else
1211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1212   ac_prog_rejected=no
1213   ac_dummy="$PATH"
1214   for ac_dir in $ac_dummy; do
1215     test -z "$ac_dir" && ac_dir=.
1216     if test -f $ac_dir/$ac_word; then
1217       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1218         ac_prog_rejected=yes
1219         continue
1220       fi
1221       ac_cv_prog_CC="cc"
1222       break
1223     fi
1224   done
1225   IFS="$ac_save_ifs"
1226 if test $ac_prog_rejected = yes; then
1227   # We found a bogon in the path, so make sure we never use it.
1228   set dummy $ac_cv_prog_CC
1229   shift
1230   if test $# -gt 0; then
1231     # We chose a different compiler from the bogus one.
1232     # However, it has the same basename, so the bogon will be chosen
1233     # first if we set CC to just the basename; use the full file name.
1234     shift
1235     set dummy "$ac_dir/$ac_word" "$@"
1236     shift
1237     ac_cv_prog_CC="$@"
1238   fi
1239 fi
1240 fi
1241 fi
1242 CC="$ac_cv_prog_CC"
1243 if test -n "$CC"; then
1244   echo "$ac_t""$CC" 1>&6
1245 else
1246   echo "$ac_t""no" 1>&6
1247 fi
1248
1249     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1250   fi
1251
1252   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1253 echo "configure:1254: checking whether we are using GNU C" >&5
1254 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1255   echo $ac_n "(cached) $ac_c" 1>&6
1256 else
1257   cat > conftest.c <<EOF
1258 #ifdef __GNUC__
1259   yes;
1260 #endif
1261 EOF
1262 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1263   ac_cv_prog_gcc=yes
1264 else
1265   ac_cv_prog_gcc=no
1266 fi
1267 fi
1268
1269 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1270
1271   if test $ac_cv_prog_gcc = yes; then
1272     GCC=yes
1273           ac_test_CFLAGS="${CFLAGS+set}"
1274     ac_save_CFLAGS="$CFLAGS"
1275     CFLAGS=
1276     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1277 echo "configure:1278: checking whether ${CC-cc} accepts -g" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1279   echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281   echo 'void f(){}' > conftest.c
1282 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1283   ac_cv_prog_cc_g=yes
1284 else
1285   ac_cv_prog_cc_g=no
1286 fi
1287 rm -f conftest*
1288
1289 fi
1290
1291 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1292     if test "$ac_test_CFLAGS" = set; then
1293       CFLAGS="$ac_save_CFLAGS"
1294     elif test $ac_cv_prog_cc_g = yes; then
1295       CFLAGS="-g -O2"
1296     else
1297       CFLAGS="-O2"
1298     fi
1299   else
1300     GCC=
1301     test "${CFLAGS+set}" = set || CFLAGS="-g"
1302   fi
1303   
1304
1305   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1306   # will try to link in libstdc++.
1307   
1308
1309       
1310   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1311   # flags that come in CXX while configuring libstdc++.  They're different
1312   # from those used for all other target libraries.  If CXX is set in
1313   # the environment, respect that here.
1314   glibcpp_CXX=$CXX
1315   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1316 do
1317 # Extract the first word of "$ac_prog", so it can be a program name with args.
1318 set dummy $ac_prog; ac_word=$2
1319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320 echo "configure:1321: checking for $ac_word" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1322   echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324   if test -n "$glibcpp_CXX"; then
1325   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1326 else
1327   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1328   ac_dummy="$PATH"
1329   for ac_dir in $ac_dummy; do
1330     test -z "$ac_dir" && ac_dir=.
1331     if test -f $ac_dir/$ac_word; then
1332       ac_cv_prog_glibcpp_CXX="$ac_prog"
1333       break
1334     fi
1335   done
1336   IFS="$ac_save_ifs"
1337 fi
1338 fi
1339 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1340 if test -n "$glibcpp_CXX"; then
1341   echo "$ac_t""$glibcpp_CXX" 1>&6
1342 else
1343   echo "$ac_t""no" 1>&6
1344 fi
1345
1346 test -n "$glibcpp_CXX" && break
1347 done
1348 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1349
1350   
1351   CXX=$glibcpp_CXX
1352   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1353
1354   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether we are using GNU C++" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1357   echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359   cat > conftest.C <<EOF
1360 #ifdef __GNUC__
1361   yes;
1362 #endif
1363 EOF
1364 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1365   ac_cv_prog_gxx=yes
1366 else
1367   ac_cv_prog_gxx=no
1368 fi
1369 fi
1370
1371 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1372
1373   if test $ac_cv_prog_gxx = yes; then
1374     GXX=yes
1375                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1376     ac_save_CXXFLAGS="$CXXFLAGS"
1377     CXXFLAGS=
1378     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether ${CXX-g++} accepts -g" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1381   echo $ac_n "(cached) $ac_c" 1>&6
1382 else
1383   echo 'void f(){}' > conftest.cc
1384 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1385   ac_cv_prog_cxx_g=yes
1386 else
1387   ac_cv_prog_cxx_g=no
1388 fi
1389 rm -f conftest*
1390
1391 fi
1392
1393 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1394     if test "$ac_test_CXXFLAGS" = set; then
1395       CXXFLAGS="$ac_save_CXXFLAGS"
1396     elif test $ac_cv_prog_cxx_g = yes; then
1397       CXXFLAGS="-g -O2"
1398     else
1399       CXXFLAGS="-O2"
1400     fi
1401   else
1402     GXX=
1403     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1404   fi
1405   
1406
1407   # For some reason, gettext needs this.
1408   
1409         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1410 echo "configure:1411: checking for strerror in -lcposix" >&5
1411 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1413   echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415   ac_save_LIBS="$LIBS"
1416 LIBS="-lcposix  $LIBS"
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* Override any gcc2 internal prototype to avoid an error.  */
1421 /* We use char because int might match the return type of a gcc2
1422     builtin and then its argument prototype would still apply.  */
1423 char strerror();
1424
1425 int main() {
1426 strerror()
1427 ; return 0; }
1428 EOF
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1430   rm -rf conftest*
1431   eval "ac_cv_lib_$ac_lib_var=yes"
1432 else
1433   echo "configure: failed program was:" >&5
1434   cat conftest.$ac_ext >&5
1435   rm -rf conftest*
1436   eval "ac_cv_lib_$ac_lib_var=no"
1437 fi
1438 rm -f conftest*
1439 LIBS="$ac_save_LIBS"
1440
1441 fi
1442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1443   echo "$ac_t""yes" 1>&6
1444   LIBS="$LIBS -lcposix"
1445 else
1446   echo "$ac_t""no" 1>&6
1447 fi
1448
1449   
1450
1451
1452   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1453 set dummy ${ac_tool_prefix}as; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459   if test -n "$AS"; then
1460   ac_cv_prog_AS="$AS" # Let the user override the test.
1461 else
1462   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1463   ac_dummy="$PATH"
1464   for ac_dir in $ac_dummy; do
1465     test -z "$ac_dir" && ac_dir=.
1466     if test -f $ac_dir/$ac_word; then
1467       ac_cv_prog_AS="${ac_tool_prefix}as"
1468       break
1469     fi
1470   done
1471   IFS="$ac_save_ifs"
1472   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1473 fi
1474 fi
1475 AS="$ac_cv_prog_AS"
1476 if test -n "$AS"; then
1477   echo "$ac_t""$AS" 1>&6
1478 else
1479   echo "$ac_t""no" 1>&6
1480 fi
1481
1482
1483
1484   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}ar; ac_word=$2
1486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $ac_word" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1489   echo $ac_n "(cached) $ac_c" 1>&6
1490 else
1491   if test -n "$AR"; then
1492   ac_cv_prog_AR="$AR" # Let the user override the test.
1493 else
1494   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1495   ac_dummy="$PATH"
1496   for ac_dir in $ac_dummy; do
1497     test -z "$ac_dir" && ac_dir=.
1498     if test -f $ac_dir/$ac_word; then
1499       ac_cv_prog_AR="${ac_tool_prefix}ar"
1500       break
1501     fi
1502   done
1503   IFS="$ac_save_ifs"
1504   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1505 fi
1506 fi
1507 AR="$ac_cv_prog_AR"
1508 if test -n "$AR"; then
1509   echo "$ac_t""$AR" 1>&6
1510 else
1511   echo "$ac_t""no" 1>&6
1512 fi
1513
1514
1515
1516   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1519 echo "configure:1520: checking for $ac_word" >&5
1520 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1521   echo $ac_n "(cached) $ac_c" 1>&6
1522 else
1523   if test -n "$RANLIB"; then
1524   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1525 else
1526   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1527   ac_dummy="$PATH"
1528   for ac_dir in $ac_dummy; do
1529     test -z "$ac_dir" && ac_dir=.
1530     if test -f $ac_dir/$ac_word; then
1531       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1532       break
1533     fi
1534   done
1535   IFS="$ac_save_ifs"
1536 fi
1537 fi
1538 RANLIB="$ac_cv_prog_RANLIB"
1539 if test -n "$RANLIB"; then
1540   echo "$ac_t""$RANLIB" 1>&6
1541 else
1542   echo "$ac_t""no" 1>&6
1543 fi
1544
1545
1546 if test -z "$ac_cv_prog_RANLIB"; then
1547 if test -n "$ac_tool_prefix"; then
1548   # Extract the first word of "ranlib", so it can be a program name with args.
1549 set dummy ranlib; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1553   echo $ac_n "(cached) $ac_c" 1>&6
1554 else
1555   if test -n "$RANLIB"; then
1556   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1557 else
1558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1559   ac_dummy="$PATH"
1560   for ac_dir in $ac_dummy; do
1561     test -z "$ac_dir" && ac_dir=.
1562     if test -f $ac_dir/$ac_word; then
1563       ac_cv_prog_RANLIB="ranlib"
1564       break
1565     fi
1566   done
1567   IFS="$ac_save_ifs"
1568   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1569 fi
1570 fi
1571 RANLIB="$ac_cv_prog_RANLIB"
1572 if test -n "$RANLIB"; then
1573   echo "$ac_t""$RANLIB" 1>&6
1574 else
1575   echo "$ac_t""no" 1>&6
1576 fi
1577
1578 else
1579   RANLIB="ranlib-not-found-in-path-error"
1580 fi
1581 fi
1582
1583   # Find a good install program.  We prefer a C program (faster),
1584 # so one script is as good as another.  But avoid the broken or
1585 # incompatible versions:
1586 # SysV /etc/install, /usr/sbin/install
1587 # SunOS /usr/etc/install
1588 # IRIX /sbin/install
1589 # AIX /bin/install
1590 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1593 # ./install, which can be erroneously created by make from ./install.sh.
1594 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1595 echo "configure:1596: checking for a BSD compatible install" >&5
1596 if test -z "$INSTALL"; then
1597 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1598   echo $ac_n "(cached) $ac_c" 1>&6
1599 else
1600     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1601   for ac_dir in $PATH; do
1602     # Account for people who put trailing slashes in PATH elements.
1603     case "$ac_dir/" in
1604     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1605     *)
1606       # OSF1 and SCO ODT 3.0 have their own names for install.
1607       # Don't use installbsd from OSF since it installs stuff as root
1608       # by default.
1609       for ac_prog in ginstall scoinst install; do
1610         if test -f $ac_dir/$ac_prog; then
1611           if test $ac_prog = install &&
1612             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1613             # AIX install.  It has an incompatible calling convention.
1614             :
1615           else
1616             ac_cv_path_install="$ac_dir/$ac_prog -c"
1617             break 2
1618           fi
1619         fi
1620       done
1621       ;;
1622     esac
1623   done
1624   IFS="$ac_save_IFS"
1625
1626 fi
1627   if test "${ac_cv_path_install+set}" = set; then
1628     INSTALL="$ac_cv_path_install"
1629   else
1630     # As a last resort, use the slow shell script.  We don't cache a
1631     # path for INSTALL within a source directory, because that will
1632     # break other packages using the cache if that directory is
1633     # removed, or if the path is relative.
1634     INSTALL="$ac_install_sh"
1635   fi
1636 fi
1637 echo "$ac_t""$INSTALL" 1>&6
1638
1639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1640 # It thinks the first close brace ends the variable substitution.
1641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1642
1643 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1644
1645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1646
1647
1648   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1649 echo "configure:1650: checking whether to enable maintainer-specific portions of Makefiles" >&5
1650     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1651 if test "${enable_maintainer_mode+set}" = set; then
1652   enableval="$enable_maintainer_mode"
1653   USE_MAINTAINER_MODE=$enableval
1654 else
1655   USE_MAINTAINER_MODE=no
1656 fi
1657
1658   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1659   
1660
1661 if test $USE_MAINTAINER_MODE = yes; then
1662   MAINTAINER_MODE_TRUE=
1663   MAINTAINER_MODE_FALSE='#'
1664 else
1665   MAINTAINER_MODE_TRUE='#'
1666   MAINTAINER_MODE_FALSE=
1667 fi
1668   MAINT=$MAINTAINER_MODE_TRUE
1669   
1670
1671
1672   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1673   # at least currently, we never actually build a program, so we never
1674   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1675   # fails, because we are probably configuring with a cross compiler
1676   # which can't create executables.  So we include AC_EXEEXT to keep
1677   # automake happy, but we don't execute it, since we don't care about
1678   # the result.
1679   if false; then
1680     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1681     # to nothing, so nothing would remain between `then' and `fi' if it
1682     # were not for the `:' below.
1683     :
1684     
1685
1686 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1687 echo "configure:1688: checking for executable suffix" >&5
1688 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1689   echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1692   ac_cv_exeext=.exe
1693 else
1694   rm -f conftest*
1695   echo 'int main () { return 0; }' > conftest.$ac_ext
1696   ac_cv_exeext=
1697   if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1698     for file in conftest.*; do
1699       case $file in
1700       *.c | *.o | *.obj) ;;
1701       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1702       esac
1703     done
1704   else
1705     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1706   fi
1707   rm -f conftest*
1708   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1709 fi
1710 fi
1711
1712 EXEEXT=""
1713 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1714 echo "$ac_t""${ac_cv_exeext}" 1>&6
1715 ac_exeext=$EXEEXT
1716
1717   fi
1718
1719   . ${glibcpp_basedir}/configure.host
1720
1721   case ${glibcpp_basedir} in
1722     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1723     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1724   esac
1725
1726   # This does for the target what configure.host does for the host.  In
1727   # addition to possibly modifying the same flags, it also sets up symlinks.
1728   
1729     . ${glibcpp_basedir}/configure.target
1730     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1731     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1732
1733
1734
1735
1736
1737 # Check whether --enable-shared or --disable-shared was given.
1738 if test "${enable_shared+set}" = set; then
1739   enableval="$enable_shared"
1740   p=${PACKAGE-default}
1741 case $enableval in
1742 yes) enable_shared=yes ;;
1743 no) enable_shared=no ;;
1744 *)
1745   enable_shared=no
1746   # Look at the argument we got.  We use all the common list separators.
1747   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1748   for pkg in $enableval; do
1749     if test "X$pkg" = "X$p"; then
1750       enable_shared=yes
1751     fi
1752   done
1753   IFS="$ac_save_ifs"
1754   ;;
1755 esac
1756 else
1757   enable_shared=yes
1758 fi
1759
1760 # Check whether --enable-static or --disable-static was given.
1761 if test "${enable_static+set}" = set; then
1762   enableval="$enable_static"
1763   p=${PACKAGE-default}
1764 case $enableval in
1765 yes) enable_static=yes ;;
1766 no) enable_static=no ;;
1767 *)
1768   enable_static=no
1769   # Look at the argument we got.  We use all the common list separators.
1770   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1771   for pkg in $enableval; do
1772     if test "X$pkg" = "X$p"; then
1773       enable_static=yes
1774     fi
1775   done
1776   IFS="$ac_save_ifs"
1777   ;;
1778 esac
1779 else
1780   enable_static=yes
1781 fi
1782
1783 # Check whether --enable-fast-install or --disable-fast-install was given.
1784 if test "${enable_fast_install+set}" = set; then
1785   enableval="$enable_fast_install"
1786   p=${PACKAGE-default}
1787 case $enableval in
1788 yes) enable_fast_install=yes ;;
1789 no) enable_fast_install=no ;;
1790 *)
1791   enable_fast_install=no
1792   # Look at the argument we got.  We use all the common list separators.
1793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1794   for pkg in $enableval; do
1795     if test "X$pkg" = "X$p"; then
1796       enable_fast_install=yes
1797     fi
1798   done
1799   IFS="$ac_save_ifs"
1800   ;;
1801 esac
1802 else
1803   enable_fast_install=yes
1804 fi
1805
1806 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1807 if test "${with_gnu_ld+set}" = set; then
1808   withval="$with_gnu_ld"
1809   test "$withval" = no || with_gnu_ld=yes
1810 else
1811   with_gnu_ld=no
1812 fi
1813
1814 ac_prog=ld
1815 if test "$GCC" = yes; then
1816   # Check if gcc -print-prog-name=ld gives a path.
1817   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1818 echo "configure:1819: checking for ld used by GCC" >&5
1819   case $host in
1820   *-*-mingw*)
1821     # gcc leaves a trailing carriage return which upsets mingw
1822     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1823   *)
1824     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1825   esac
1826   case $ac_prog in
1827     # Accept absolute paths.
1828     [\\/]* | [A-Za-z]:[\\/]*)
1829       re_direlt='/[^/][^/]*/\.\./'
1830       # Canonicalize the path of ld
1831       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1832       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1833         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1834       done
1835       test -z "$LD" && LD="$ac_prog"
1836       ;;
1837   "")
1838     # If it fails, then pretend we aren't using GCC.
1839     ac_prog=ld
1840     ;;
1841   *)
1842     # If it is relative, then search for the first ld in PATH.
1843     with_gnu_ld=unknown
1844     ;;
1845   esac
1846 elif test "$with_gnu_ld" = yes; then
1847   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1848 echo "configure:1849: checking for GNU ld" >&5
1849 else
1850   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1851 echo "configure:1852: checking for non-GNU ld" >&5
1852 fi
1853 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1854   echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856   if test -z "$LD"; then
1857   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1858   for ac_dir in $PATH; do
1859     test -z "$ac_dir" && ac_dir=.
1860     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1861       lt_cv_path_LD="$ac_dir/$ac_prog"
1862       # Check to see if the program is GNU ld.  I'd rather use --version,
1863       # but apparently some GNU ld's only accept -v.
1864       # Break only if it was the GNU/non-GNU ld that we prefer.
1865       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1866         test "$with_gnu_ld" != no && break
1867       else
1868         test "$with_gnu_ld" != yes && break
1869       fi
1870     fi
1871   done
1872   IFS="$ac_save_ifs"
1873 else
1874   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1875 fi
1876 fi
1877
1878 LD="$lt_cv_path_LD"
1879 if test -n "$LD"; then
1880   echo "$ac_t""$LD" 1>&6
1881 else
1882   echo "$ac_t""no" 1>&6
1883 fi
1884 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1885 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1886 echo "configure:1887: checking if the linker ($LD) is GNU ld" >&5
1887 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1888   echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1891 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1892   lt_cv_prog_gnu_ld=yes
1893 else
1894   lt_cv_prog_gnu_ld=no
1895 fi
1896 fi
1897
1898 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1899 with_gnu_ld=$lt_cv_prog_gnu_ld
1900
1901
1902 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1903 echo "configure:1904: checking for $LD option to reload object files" >&5
1904 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1905   echo $ac_n "(cached) $ac_c" 1>&6
1906 else
1907   lt_cv_ld_reload_flag='-r'
1908 fi
1909
1910 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1911 reload_flag=$lt_cv_ld_reload_flag
1912 test -n "$reload_flag" && reload_flag=" $reload_flag"
1913
1914 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1915 echo "configure:1916: checking for BSD-compatible nm" >&5
1916 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1917   echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919   if test -n "$NM"; then
1920   # Let the user override the test.
1921   lt_cv_path_NM="$NM"
1922 else
1923   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1924   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1925     test -z "$ac_dir" && ac_dir=.
1926     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1927     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1928       # Check to see if the nm accepts a BSD-compat flag.
1929       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1930       #   nm: unknown option "B" ignored
1931       # Tru64's nm complains that /dev/null is an invalid object file
1932       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1933         lt_cv_path_NM="$tmp_nm -B"
1934         break
1935       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1936         lt_cv_path_NM="$tmp_nm -p"
1937         break
1938       else
1939         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1940         continue # so that we can try to find one that supports BSD flags
1941       fi
1942     fi
1943   done
1944   IFS="$ac_save_ifs"
1945   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1946 fi
1947 fi
1948
1949 NM="$lt_cv_path_NM"
1950 echo "$ac_t""$NM" 1>&6
1951
1952 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1953 echo "configure:1954: checking how to recognise dependant libraries" >&5
1954 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1955   echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957   lt_cv_file_magic_cmd='$MAGIC_CMD'
1958 lt_cv_file_magic_test_file=
1959 lt_cv_deplibs_check_method='unknown'
1960 # Need to set the preceding variable on all platforms that support
1961 # interlibrary dependencies.
1962 # 'none' -- dependencies not supported.
1963 # `unknown' -- same as none, but documents that we really don't know.
1964 # 'pass_all' -- all dependencies passed with no checks.
1965 # 'test_compile' -- check by making test program.
1966 # 'file_magic [regex]' -- check by looking for files in library path
1967 # which responds to the $file_magic_cmd with a given egrep regex.
1968 # If you have `file' or equivalent on your system and you're not sure
1969 # whether `pass_all' will *always* work, you probably want this one.
1970
1971 case $host_os in
1972 aix*)
1973   lt_cv_deplibs_check_method=pass_all
1974   ;;
1975
1976 beos*)
1977   lt_cv_deplibs_check_method=pass_all
1978   ;;
1979
1980 bsdi4*)
1981   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1982   lt_cv_file_magic_cmd='/usr/bin/file -L'
1983   lt_cv_file_magic_test_file=/shlib/libc.so
1984   ;;
1985
1986 cygwin* | mingw* |pw32*)
1987   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1988   lt_cv_file_magic_cmd='$OBJDUMP -f'
1989   ;;
1990
1991 darwin* | rhapsody*)
1992   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1993   lt_cv_file_magic_cmd='/usr/bin/file -L'
1994   case "$host_os" in
1995   rhapsody* | darwin1.012)
1996     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1997     ;;
1998   *) # Darwin 1.3 on
1999     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2000     ;;
2001   esac
2002   ;;
2003
2004 freebsd* )
2005   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2006     case $host_cpu in
2007     i*86 )
2008       # Not sure whether the presence of OpenBSD here was a mistake.
2009       # Let's accept both of them until this is cleared up.
2010       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2011       lt_cv_file_magic_cmd=/usr/bin/file
2012       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2013       ;;
2014     esac
2015   else
2016     lt_cv_deplibs_check_method=pass_all
2017   fi
2018   ;;
2019
2020 gnu*)
2021   lt_cv_deplibs_check_method=pass_all
2022   ;;
2023
2024 hpux10.20*|hpux11*)
2025   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2026   lt_cv_file_magic_cmd=/usr/bin/file
2027   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2028   ;;
2029
2030 irix5* | irix6*)
2031   case $host_os in
2032   irix5*)
2033     # this will be overridden with pass_all, but let us keep it just in case
2034     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2035     ;;
2036   *)
2037     case $LD in
2038     *-32|*"-32 ") libmagic=32-bit;;
2039     *-n32|*"-n32 ") libmagic=N32;;
2040     *-64|*"-64 ") libmagic=64-bit;;
2041     *) libmagic=never-match;;
2042     esac
2043     # this will be overridden with pass_all, but let us keep it just in case
2044     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2045     ;;
2046   esac
2047   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2048   lt_cv_deplibs_check_method=pass_all
2049   ;;
2050
2051 # This must be Linux ELF.
2052 linux-gnu*)
2053   case $host_cpu in
2054   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2055     lt_cv_deplibs_check_method=pass_all ;;
2056   *)
2057     # glibc up to 2.1.1 does not perform some relocations on ARM
2058     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2059   esac
2060   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2061   ;;
2062
2063 netbsd*)
2064   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2065     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2066   else
2067     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2068   fi
2069   ;;
2070
2071 newsos6)
2072   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2073   lt_cv_file_magic_cmd=/usr/bin/file
2074   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2075   ;;
2076
2077 osf3* | osf4* | osf5*)
2078   # this will be overridden with pass_all, but let us keep it just in case
2079   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2080   lt_cv_file_magic_test_file=/shlib/libc.so
2081   lt_cv_deplibs_check_method=pass_all
2082   ;;
2083
2084 sco3.2v5*)
2085   lt_cv_deplibs_check_method=pass_all
2086   ;;
2087
2088 solaris*)
2089   lt_cv_deplibs_check_method=pass_all
2090   lt_cv_file_magic_test_file=/lib/libc.so
2091   ;;
2092
2093 sysv5uw[78]* | sysv4*uw2*)
2094   lt_cv_deplibs_check_method=pass_all
2095   ;;
2096
2097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2098   case $host_vendor in
2099   ncr)
2100     lt_cv_deplibs_check_method=pass_all
2101     ;;
2102   motorola)
2103     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]'
2104     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2105     ;;
2106   esac
2107   ;;
2108 esac
2109
2110 fi
2111
2112 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2113 file_magic_cmd=$lt_cv_file_magic_cmd
2114 deplibs_check_method=$lt_cv_deplibs_check_method
2115
2116 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2117 echo "configure:2118: checking for object suffix" >&5
2118 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2119   echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121   rm -f conftest*
2122 echo 'int i = 1;' > conftest.$ac_ext
2123 if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2124   for ac_file in conftest.*; do
2125     case $ac_file in
2126     *.c) ;;
2127     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2128     esac
2129   done
2130 else
2131   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2132 fi
2133 rm -f conftest*
2134 fi
2135
2136 echo "$ac_t""$ac_cv_objext" 1>&6
2137 OBJEXT=$ac_cv_objext
2138 ac_objext=$ac_cv_objext
2139
2140 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2141
2142 # Only perform the check for file, if the check method requires it
2143 case $deplibs_check_method in
2144 file_magic*)
2145   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2146     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2147 echo "configure:2148: checking for ${ac_tool_prefix}file" >&5
2148 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2149   echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151   case $MAGIC_CMD in
2152   /*)
2153   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2154   ;;
2155   ?:/*)
2156   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2157   ;;
2158   *)
2159   ac_save_MAGIC_CMD="$MAGIC_CMD"
2160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2161   ac_dummy="/usr/bin:$PATH"
2162   for ac_dir in $ac_dummy; do
2163     test -z "$ac_dir" && ac_dir=.
2164     if test -f $ac_dir/${ac_tool_prefix}file; then
2165       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2166       if test -n "$file_magic_test_file"; then
2167         case $deplibs_check_method in
2168         "file_magic "*)
2169           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2170           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2171           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2172             egrep "$file_magic_regex" > /dev/null; then
2173             :
2174           else
2175             cat <<EOF 1>&2
2176
2177 *** Warning: the command libtool uses to detect shared libraries,
2178 *** $file_magic_cmd, produces output that libtool cannot recognize.
2179 *** The result is that libtool may fail to recognize shared libraries
2180 *** as such.  This will affect the creation of libtool libraries that
2181 *** depend on shared libraries, but programs linked with such libtool
2182 *** libraries will work regardless of this problem.  Nevertheless, you
2183 *** may want to report the problem to your system manager and/or to
2184 *** bug-libtool@gnu.org
2185
2186 EOF
2187           fi ;;
2188         esac
2189       fi
2190       break
2191     fi
2192   done
2193   IFS="$ac_save_ifs"
2194   MAGIC_CMD="$ac_save_MAGIC_CMD"
2195   ;;
2196 esac
2197 fi
2198
2199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2200 if test -n "$MAGIC_CMD"; then
2201   echo "$ac_t""$MAGIC_CMD" 1>&6
2202 else
2203   echo "$ac_t""no" 1>&6
2204 fi
2205
2206 if test -z "$lt_cv_path_MAGIC_CMD"; then
2207   if test -n "$ac_tool_prefix"; then
2208     echo $ac_n "checking for file""... $ac_c" 1>&6
2209 echo "configure:2210: checking for file" >&5
2210 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2211   echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213   case $MAGIC_CMD in
2214   /*)
2215   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2216   ;;
2217   ?:/*)
2218   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2219   ;;
2220   *)
2221   ac_save_MAGIC_CMD="$MAGIC_CMD"
2222   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2223   ac_dummy="/usr/bin:$PATH"
2224   for ac_dir in $ac_dummy; do
2225     test -z "$ac_dir" && ac_dir=.
2226     if test -f $ac_dir/file; then
2227       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2228       if test -n "$file_magic_test_file"; then
2229         case $deplibs_check_method in
2230         "file_magic "*)
2231           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2232           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2233           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2234             egrep "$file_magic_regex" > /dev/null; then
2235             :
2236           else
2237             cat <<EOF 1>&2
2238
2239 *** Warning: the command libtool uses to detect shared libraries,
2240 *** $file_magic_cmd, produces output that libtool cannot recognize.
2241 *** The result is that libtool may fail to recognize shared libraries
2242 *** as such.  This will affect the creation of libtool libraries that
2243 *** depend on shared libraries, but programs linked with such libtool
2244 *** libraries will work regardless of this problem.  Nevertheless, you
2245 *** may want to report the problem to your system manager and/or to
2246 *** bug-libtool@gnu.org
2247
2248 EOF
2249           fi ;;
2250         esac
2251       fi
2252       break
2253     fi
2254   done
2255   IFS="$ac_save_ifs"
2256   MAGIC_CMD="$ac_save_MAGIC_CMD"
2257   ;;
2258 esac
2259 fi
2260
2261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2262 if test -n "$MAGIC_CMD"; then
2263   echo "$ac_t""$MAGIC_CMD" 1>&6
2264 else
2265   echo "$ac_t""no" 1>&6
2266 fi
2267
2268   else
2269     MAGIC_CMD=:
2270   fi
2271 fi
2272
2273   fi
2274   ;;
2275 esac
2276
2277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2282   echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284   if test -n "$RANLIB"; then
2285   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 else
2287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2288   ac_dummy="$PATH"
2289   for ac_dir in $ac_dummy; do
2290     test -z "$ac_dir" && ac_dir=.
2291     if test -f $ac_dir/$ac_word; then
2292       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2293       break
2294     fi
2295   done
2296   IFS="$ac_save_ifs"
2297 fi
2298 fi
2299 RANLIB="$ac_cv_prog_RANLIB"
2300 if test -n "$RANLIB"; then
2301   echo "$ac_t""$RANLIB" 1>&6
2302 else
2303   echo "$ac_t""no" 1>&6
2304 fi
2305
2306
2307 if test -z "$ac_cv_prog_RANLIB"; then
2308 if test -n "$ac_tool_prefix"; then
2309   # Extract the first word of "ranlib", so it can be a program name with args.
2310 set dummy ranlib; ac_word=$2
2311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_word" >&5
2313 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2314   echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316   if test -n "$RANLIB"; then
2317   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2318 else
2319   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2320   ac_dummy="$PATH"
2321   for ac_dir in $ac_dummy; do
2322     test -z "$ac_dir" && ac_dir=.
2323     if test -f $ac_dir/$ac_word; then
2324       ac_cv_prog_RANLIB="ranlib"
2325       break
2326     fi
2327   done
2328   IFS="$ac_save_ifs"
2329   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2330 fi
2331 fi
2332 RANLIB="$ac_cv_prog_RANLIB"
2333 if test -n "$RANLIB"; then
2334   echo "$ac_t""$RANLIB" 1>&6
2335 else
2336   echo "$ac_t""no" 1>&6
2337 fi
2338
2339 else
2340   RANLIB=":"
2341 fi
2342 fi
2343
2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}strip; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2349   echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351   if test -n "$STRIP"; then
2352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2355   ac_dummy="$PATH"
2356   for ac_dir in $ac_dummy; do
2357     test -z "$ac_dir" && ac_dir=.
2358     if test -f $ac_dir/$ac_word; then
2359       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2360       break
2361     fi
2362   done
2363   IFS="$ac_save_ifs"
2364 fi
2365 fi
2366 STRIP="$ac_cv_prog_STRIP"
2367 if test -n "$STRIP"; then
2368   echo "$ac_t""$STRIP" 1>&6
2369 else
2370   echo "$ac_t""no" 1>&6
2371 fi
2372
2373
2374 if test -z "$ac_cv_prog_STRIP"; then
2375 if test -n "$ac_tool_prefix"; then
2376   # Extract the first word of "strip", so it can be a program name with args.
2377 set dummy strip; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2381   echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383   if test -n "$STRIP"; then
2384   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385 else
2386   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2387   ac_dummy="$PATH"
2388   for ac_dir in $ac_dummy; do
2389     test -z "$ac_dir" && ac_dir=.
2390     if test -f $ac_dir/$ac_word; then
2391       ac_cv_prog_STRIP="strip"
2392       break
2393     fi
2394   done
2395   IFS="$ac_save_ifs"
2396   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2397 fi
2398 fi
2399 STRIP="$ac_cv_prog_STRIP"
2400 if test -n "$STRIP"; then
2401   echo "$ac_t""$STRIP" 1>&6
2402 else
2403   echo "$ac_t""no" 1>&6
2404 fi
2405
2406 else
2407   STRIP=":"
2408 fi
2409 fi
2410
2411
2412 # Check for any special flags to pass to ltconfig.
2413 libtool_flags="--cache-file=$cache_file"
2414 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2415 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2416 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2417 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2418 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2419 libtool_flags="$libtool_flags --enable-dlopen"
2420
2421 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2422 if test "${enable_libtool_lock+set}" = set; then
2423   enableval="$enable_libtool_lock"
2424   :
2425 fi
2426
2427 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2428 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2429
2430 # Check whether --with-pic or --without-pic was given.
2431 if test "${with_pic+set}" = set; then
2432   withval="$with_pic"
2433   pic_mode="$withval"
2434 else
2435   pic_mode=default
2436 fi
2437
2438 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2439 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2440
2441 # Some flags need to be propagated to the compiler or linker for good
2442 # libtool support.
2443 case $host in
2444 *-*-irix6*)
2445   # Find out which ABI we are using.
2446   echo '#line 2447 "configure"' > conftest.$ac_ext
2447   if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448     case `/usr/bin/file conftest.$ac_objext` in
2449     *32-bit*)
2450       LD="${LD-ld} -32"
2451       ;;
2452     *N32*)
2453       LD="${LD-ld} -n32"
2454       ;;
2455     *64-bit*)
2456       LD="${LD-ld} -64"
2457       ;;
2458     esac
2459   fi
2460   rm -rf conftest*
2461   ;;
2462
2463 *-*-sco3.2v5*)
2464   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2465   SAVE_CFLAGS="$CFLAGS"
2466   CFLAGS="$CFLAGS -belf"
2467   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2468 echo "configure:2469: checking whether the C compiler needs -belf" >&5
2469 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2470   echo $ac_n "(cached) $ac_c" 1>&6
2471 else
2472   
2473      ac_ext=c
2474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2478 cross_compiling=$ac_cv_prog_cc_cross
2479
2480      cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483
2484 int main() {
2485
2486 ; return 0; }
2487 EOF
2488 if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2489   rm -rf conftest*
2490   lt_cv_cc_needs_belf=yes
2491 else
2492   echo "configure: failed program was:" >&5
2493   cat conftest.$ac_ext >&5
2494   rm -rf conftest*
2495   lt_cv_cc_needs_belf=no
2496 fi
2497 rm -f conftest*
2498      ac_ext=c
2499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2503 cross_compiling=$ac_cv_prog_cc_cross
2504
2505 fi
2506
2507 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2508   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2509     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2510     CFLAGS="$SAVE_CFLAGS"
2511   fi
2512   ;;
2513
2514
2515 esac
2516
2517 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2518 echo "configure:2519: checking how to run the C++ preprocessor" >&5
2519 if test -z "$CXXCPP"; then
2520 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2521   echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523   ac_ext=C
2524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2525 ac_cpp='$CXXCPP $CPPFLAGS'
2526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2528 cross_compiling=$ac_cv_prog_cxx_cross
2529   CXXCPP="${CXX-g++} -E"
2530   cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <stdlib.h>
2534 EOF
2535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2538 if test -z "$ac_err"; then
2539   :
2540 else
2541   echo "$ac_err" >&5
2542   echo "configure: failed program was:" >&5
2543   cat conftest.$ac_ext >&5
2544   rm -rf conftest*
2545   CXXCPP=/lib/cpp
2546 fi
2547 rm -f conftest*
2548   ac_cv_prog_CXXCPP="$CXXCPP"
2549 ac_ext=c
2550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2554 cross_compiling=$ac_cv_prog_cc_cross
2555 fi
2556 fi
2557 CXXCPP="$ac_cv_prog_CXXCPP"
2558 echo "$ac_t""$CXXCPP" 1>&6
2559
2560
2561 # Save cache, so that ltconfig can load it
2562 cat > confcache <<\EOF
2563 # This file is a shell script that caches the results of configure
2564 # tests run on this system so they can be shared between configure
2565 # scripts and configure runs.  It is not useful on other systems.
2566 # If it contains results you don't want to keep, you may remove or edit it.
2567 #
2568 # By default, configure uses ./config.cache as the cache file,
2569 # creating it if it does not exist already.  You can give configure
2570 # the --cache-file=FILE option to use a different cache file; that is
2571 # what configure does when it calls configure scripts in
2572 # subdirectories, so they share the cache.
2573 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2574 # config.status only pays attention to the cache file if you give it the
2575 # --recheck option to rerun configure.
2576 #
2577 EOF
2578 # The following way of writing the cache mishandles newlines in values,
2579 # but we know of no workaround that is simple, portable, and efficient.
2580 # So, don't put newlines in cache variables' values.
2581 # Ultrix sh set writes to stderr and can't be redirected directly,
2582 # and sets the high bit in the cache file unless we assign to the vars.
2583 (set) 2>&1 |
2584   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2585   *ac_space=\ *)
2586     # `set' does not quote correctly, so add quotes (double-quote substitution
2587     # turns \\\\ into \\, and sed turns \\ into \).
2588     sed -n \
2589       -e "s/'/'\\\\''/g" \
2590       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2591     ;;
2592   *)
2593     # `set' quotes correctly as required by POSIX, so do not add quotes.
2594     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2595     ;;
2596   esac >> confcache
2597 if cmp -s $cache_file confcache; then
2598   :
2599 else
2600   if test -w $cache_file; then
2601     echo "updating cache $cache_file"
2602     cat confcache > $cache_file
2603   else
2604     echo "not updating unwritable cache $cache_file"
2605   fi
2606 fi
2607 rm -f confcache
2608
2609
2610 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2611 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2612 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2613 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2614 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2615 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2616 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2617 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2618 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2619 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2620
2621 # Reload cache, that may have been modified by ltconfig
2622 if test -r "$cache_file"; then
2623   echo "loading cache $cache_file"
2624   . $cache_file
2625 else
2626   echo "creating cache $cache_file"
2627   > $cache_file
2628 fi
2629
2630
2631 # This can be used to rebuild libtool when needed
2632 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2633
2634 # Always use our own libtool.
2635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2636
2637 # Redirect the config.log output again, so that the ltconfig log is not
2638 # clobbered by the next message.
2639 exec 5>>./config.log
2640
2641
2642
2643 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2644 lt_save_CC="$CC"
2645 lt_save_CFLAGS="$CFLAGS"
2646 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2647 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2648 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2649 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2650 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2651 deplibs_check_method="$deplibs_check_method" \
2652 file_magic_cmd="$file_magic_cmd" \
2653 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2654 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2655 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2656 CC="$lt_save_CC"
2657 CFLAGS="$lt_save_CFLAGS"
2658
2659 # Redirect the config.log output again, so that the ltconfig log is not
2660 # clobbered by the next message.
2661 exec 5>>./config.log
2662
2663   
2664
2665   
2666          
2667          
2668
2669
2670
2671 # Check for c++ or library specific bits that don't require linking.
2672 #GLIBCPP_CHECK_COMPILER_VERSION
2673 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2674 echo "configure:2675: checking for GNU make" >&5
2675 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2676   echo $ac_n "(cached) $ac_c" 1>&6
2677 else
2678   _cv_gnu_make_command='' ;
2679           for a in "${MAKE-make}" make gmake gnumake ; do
2680                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2681                   then
2682                           _cv_gnu_make_command=$a ;
2683                           break;
2684                   fi
2685           done ;
2686   
2687 fi
2688
2689 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2690   if test  "x$_cv_gnu_make_command" != "x"  ; then
2691           ifGNUmake='' ;
2692   else
2693           ifGNUmake='#' ;
2694   fi
2695   
2696
2697
2698 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2699 # Check whether --enable-debug or --disable-debug was given.
2700 if test "${enable_debug+set}" = set; then
2701   enableval="$enable_debug"
2702   case "${enableval}" in
2703  yes) enable_debug=yes ;;
2704  no)  enable_debug=no ;;
2705  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2706  esac
2707 else
2708   enable_debug=no
2709 fi
2710
2711 case "${enable_debug}" in
2712     yes) 
2713         DEBUG_FLAGS='-O0 -ggdb3'                        
2714         ;; 
2715     no)   
2716         DEBUG_FLAGS='-g'
2717         ;;
2718 esac
2719
2720
2721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2722 echo "configure:2723: checking how to run the C preprocessor" >&5
2723 # On Suns, sometimes $CPP names a directory.
2724 if test -n "$CPP" && test -d "$CPP"; then
2725   CPP=
2726 fi
2727 if test -z "$CPP"; then
2728 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2729   echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731     # This must be in double quotes, not single quotes, because CPP may get
2732   # substituted into the Makefile and "${CC-cc}" will confuse make.
2733   CPP="${CC-cc} -E"
2734   # On the NeXT, cc -E runs the code through the compiler's parser,
2735   # not just through cpp.
2736   cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2741 EOF
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2746   :
2747 else
2748   echo "$ac_err" >&5
2749   echo "configure: failed program was:" >&5
2750   cat conftest.$ac_ext >&5
2751   rm -rf conftest*
2752   CPP="${CC-cc} -E -traditional-cpp"
2753   cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <assert.h>
2757 Syntax Error
2758 EOF
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2763   :
2764 else
2765   echo "$ac_err" >&5
2766   echo "configure: failed program was:" >&5
2767   cat conftest.$ac_ext >&5
2768   rm -rf conftest*
2769   CPP="${CC-cc} -nologo -E"
2770   cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <assert.h>
2774 Syntax Error
2775 EOF
2776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2780   :
2781 else
2782   echo "$ac_err" >&5
2783   echo "configure: failed program was:" >&5
2784   cat conftest.$ac_ext >&5
2785   rm -rf conftest*
2786   CPP=/lib/cpp
2787 fi
2788 rm -f conftest*
2789 fi
2790 rm -f conftest*
2791 fi
2792 rm -f conftest*
2793   ac_cv_prog_CPP="$CPP"
2794 fi
2795   CPP="$ac_cv_prog_CPP"
2796 else
2797   ac_cv_prog_CPP="$CPP"
2798 fi
2799 echo "$ac_t""$CPP" 1>&6
2800
2801
2802   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2803 echo "configure:2804: checking for cstdio to use" >&5
2804   # Check whether --enable-cstdio or --disable-cstdio was given.
2805 if test "${enable_cstdio+set}" = set; then
2806   enableval="$enable_cstdio"
2807   if test x$enable_cstdio = xno; then
2808      enable_cstdio=stdio
2809   fi
2810 else
2811   enable_cstdio=stdio
2812 fi
2813
2814
2815   enable_cstdio_flag=$enable_cstdio
2816
2817     case x${enable_cstdio_flag} in
2818     xlibio)
2819       CSTDIO_H=config/io/c_io_libio.h
2820       BASIC_FILE_H=config/io/basic_file_libio.h
2821       BASIC_FILE_CC=config/io/basic_file_libio.cc
2822       echo "$ac_t""libio" 1>&6
2823
2824       # see if we are on a system with libio native (ie, linux)
2825       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2827 echo "configure:2828: checking for libio.h" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829   echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831   cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <libio.h>
2835 EOF
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2840   rm -rf conftest*
2841   eval "ac_cv_header_$ac_safe=yes"
2842 else
2843   echo "$ac_err" >&5
2844   echo "configure: failed program was:" >&5
2845   cat conftest.$ac_ext >&5
2846   rm -rf conftest*
2847   eval "ac_cv_header_$ac_safe=no"
2848 fi
2849 rm -f conftest*
2850 fi
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852   echo "$ac_t""yes" 1>&6
2853   has_libio=yes
2854 else
2855   echo "$ac_t""no" 1>&6
2856 has_libio=no
2857 fi
2858
2859
2860       # Need to check and see what version of glibc is being used. If
2861       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2862       # compile most of libio for linux systems.
2863       if test x$has_libio = x"yes"; then
2864         case "$target" in
2865           *-*-linux*)
2866               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2867 echo "configure:2868: checking for glibc version >= 2.2" >&5
2868               cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871
2872             #include <features.h>
2873               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2874                     ok
2875               #endif
2876               
2877 EOF
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879   egrep "ok" >/dev/null 2>&1; then
2880   rm -rf conftest*
2881   glibc_satisfactory=yes
2882 else
2883   rm -rf conftest*
2884   glibc_satisfactory=no
2885 fi
2886 rm -f conftest*
2887
2888               echo "$ac_t""$glibc_satisfactory" 1>&6
2889             ;;
2890         esac
2891
2892         # XXX at the moment, admit defeat and force the recompilation
2893         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2894         glibc_satisfactory=no        
2895
2896         if test x$glibc_satisfactory = x"yes"; then
2897            need_libio=no
2898            need_wlibio=no        
2899         else
2900            need_libio=yes
2901            # bkoz XXX need to add checks to enable this
2902            # pme XXX here's a first pass at such a check
2903            if test x$enable_c_mbchar != xno; then
2904               need_wlibio=yes
2905            else
2906               need_wlibio=no
2907            fi
2908         fi
2909
2910       else
2911          # Using libio, but <libio.h> doesn't exist on the target system. . .
2912          need_libio=yes
2913          # bkoz XXX need to add checks to enable this
2914          # pme XXX here's a first pass at such a check
2915          if test x$enable_c_mbchar != xno; then
2916              need_wlibio=yes
2917          else
2918              need_wlibio=no
2919          fi
2920       fi
2921       ;;
2922     xstdio | x | xno | xnone | xyes)
2923       # default
2924       CSTDIO_H=config/io/c_io_stdio.h
2925       BASIC_FILE_H=config/io/basic_file_stdio.h
2926       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2927       echo "$ac_t""stdio" 1>&6
2928
2929       # We're not using stdio.
2930       need_libio=no
2931       need_wlibio=no
2932       ;;
2933     *)
2934       echo "$enable_cstdio is an unknown io package" 1>&2
2935       exit 1
2936       ;;
2937   esac
2938   
2939   
2940   
2941
2942   # 2000-08-04 bkoz hack
2943   CCODECVT_C=config/io/c_io_libio_codecvt.c
2944   
2945   # 2000-08-04 bkoz hack
2946
2947   
2948
2949 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2950   GLIBCPP_BUILD_LIBIO_TRUE=
2951   GLIBCPP_BUILD_LIBIO_FALSE='#'
2952 else
2953   GLIBCPP_BUILD_LIBIO_TRUE='#'
2954   GLIBCPP_BUILD_LIBIO_FALSE=
2955 fi
2956   
2957
2958 if test "$need_libio" = yes; then
2959   GLIBCPP_NEED_LIBIO_TRUE=
2960   GLIBCPP_NEED_LIBIO_FALSE='#'
2961 else
2962   GLIBCPP_NEED_LIBIO_TRUE='#'
2963   GLIBCPP_NEED_LIBIO_FALSE=
2964 fi
2965   
2966
2967 if test "$need_wlibio" = yes; then
2968   GLIBCPP_NEED_WLIBIO_TRUE=
2969   GLIBCPP_NEED_WLIBIO_FALSE='#'
2970 else
2971   GLIBCPP_NEED_WLIBIO_TRUE='#'
2972   GLIBCPP_NEED_WLIBIO_FALSE=
2973 fi
2974   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2975     libio_la=../libio/libio.la
2976   else
2977     libio_la=
2978   fi
2979   
2980
2981
2982   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2983 echo "configure:2984: checking for clocale to use" >&5
2984   # Check whether --enable-clocale or --disable-clocale was given.
2985 if test "${enable_clocale+set}" = set; then
2986   enableval="$enable_clocale"
2987   if test x$enable_clocale = xno; then
2988      enable_clocale=no
2989   fi
2990 else
2991   enable_clocale=no
2992 fi
2993
2994
2995   enable_clocale_flag=$enable_clocale
2996
2997       if test x$enable_clocale_flag = xno; then
2998     case x${target_os} in
2999       xlinux* | xgnu*)
3000         cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003
3004         #include <features.h>
3005         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3006           _GLIBCPP_ok
3007         #endif
3008         
3009 EOF
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3012   rm -rf conftest*
3013   enable_clocale_flag=gnu
3014 else
3015   rm -rf conftest*
3016   enable_clocale_flag=generic
3017 fi
3018 rm -f conftest*
3019
3020
3021         # Test for bugs early in glibc-2.2.x series
3022         if test x$enable_clocale_flag = xgnu; then
3023           if test "$cross_compiling" = yes; then
3024   enable_clocale_flag=generic
3025 else
3026   cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029
3030           #define _GNU_SOURCE 1
3031           #include <locale.h>
3032           int main()
3033           {
3034             const char __one[] = "Äuglein Augmen";
3035             const char __two[] = "Äuglein";
3036             int i;
3037             int j;
3038             __locale_t  loc;
3039             __locale_t  loc_dup;
3040             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3041             loc_dup = __duplocale(loc);
3042             i = __strcoll_l(__one, __two, loc);
3043             j = __strcoll_l(__one, __two, loc_dup);
3044             return 0;
3045           }
3046           
3047 EOF
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3049 then
3050   enable_clocale_flag=gnu
3051 else
3052   echo "configure: failed program was:" >&5
3053   cat conftest.$ac_ext >&5
3054   rm -fr conftest*
3055   enable_clocale_flag=generic
3056 fi
3057 rm -fr conftest*
3058 fi
3059
3060         fi
3061
3062         # ... at some point put __strxfrm_l tests in as well.
3063         ;;
3064       *)
3065         enable_clocale_flag=generic
3066         ;;
3067     esac
3068   fi
3069
3070     case x${enable_clocale_flag} in
3071     xgeneric)
3072       echo "$ac_t""generic" 1>&6
3073
3074       # Don't use gettext.
3075       USE_NLS=no
3076
3077       CLOCALE_H=config/locale/generic/c_locale.h
3078       CLOCALE_CC=config/locale/generic/c_locale.cc
3079       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3080       CCOLLATE_CC=config/locale/generic/collate_members.cc
3081       CCTYPE_CC=config/locale/generic/ctype_members.cc
3082       CMESSAGES_H=config/locale/generic/messages_members.h
3083       CMESSAGES_CC=config/locale/generic/messages_members.cc
3084       CMONEY_CC=config/locale/generic/monetary_members.cc
3085       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3086       CTIME_CC=config/locale/generic/time_members.cc
3087       ;;
3088     xgnu)
3089       echo "$ac_t""gnu" 1>&6
3090
3091       # Declare intention to use gettext, and add support for specific
3092       # languages.
3093       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3094       ALL_LINGUAS="de fr"
3095       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3096       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3097       USE_NLS=yes
3098
3099       # Export the build objects.
3100       for ling in $ALL_LINGUAS; do \
3101         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3102         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3103       done
3104       
3105       
3106
3107       CLOCALE_H=config/locale/gnu/c_locale.h
3108       CLOCALE_CC=config/locale/gnu/c_locale.cc
3109       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3110       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3111       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3112       CMESSAGES_H=config/locale/gnu/messages_members.h
3113       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3114       CMONEY_CC=config/locale/gnu/monetary_members.cc
3115       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3116       CTIME_CC=config/locale/gnu/time_members.cc
3117       ;;
3118     xieee_1003.1-2001)
3119       echo "$ac_t""generic" 1>&6
3120
3121       # Don't use gettext.
3122       USE_NLS=no
3123
3124       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3125       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3126       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3127       CCOLLATE_CC=config/locale/generic/collate_members.cc
3128       CCTYPE_CC=config/locale/generic/ctype_members.cc
3129       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3130       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3131       CMONEY_CC=config/locale/generic/monetary_members.cc
3132       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3133       CTIME_CC=config/locale/generic/time_members.cc
3134       ;;
3135     *)
3136       echo "$enable_clocale is an unknown locale package" 1>&2
3137       exit 1
3138       ;;
3139   esac
3140
3141   # This is where the testsuite looks for locale catalogs, using the
3142   # -DLOCALEDIR define during testsuite compilation.
3143   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3144   
3145
3146   
3147   
3148   
3149   
3150   
3151   
3152   
3153   
3154   
3155   
3156   
3157
3158 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3159 if test "${enable_c_mbchar+set}" = set; then
3160   enableval="$enable_c_mbchar"
3161   case "$enableval" in
3162  yes) enable_c_mbchar=yes ;;
3163  no)  enable_c_mbchar=no ;;
3164  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3165  esac
3166 else
3167   enable_c_mbchar=yes
3168 fi
3169
3170   
3171   # Check whether --enable-c99 or --disable-c99 was given.
3172 if test "${enable_c99+set}" = set; then
3173   enableval="$enable_c99"
3174     case "$enableval" in
3175    yes) enable_c99=yes ;;
3176    no)  enable_c99=no ;;
3177    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3178    esac
3179 else
3180   enable_c99=yes
3181 fi
3182  
3183   
3184   ac_ext=C
3185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3186 ac_cpp='$CXXCPP $CPPFLAGS'
3187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3189 cross_compiling=$ac_cv_prog_cxx_cross
3190
3191
3192   # Check for the existence of <math.h> functions used if C99 is enabled.
3193   ac_c99_math=yes;
3194   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3195 echo "configure:3196: checking for ISO C99 support in <math.h>" >&5
3196   cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <math.h>
3200 int main() {
3201 fpclassify(0.0);
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205   :
3206 else
3207   echo "configure: failed program was:" >&5
3208   cat conftest.$ac_ext >&5
3209   rm -rf conftest*
3210   ac_c99_math=no
3211 fi
3212 rm -f conftest*
3213   cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <math.h>
3217 int main() {
3218 isfinite(0.0);
3219 ; return 0; }
3220 EOF
3221 if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3222   :
3223 else
3224   echo "configure: failed program was:" >&5
3225   cat conftest.$ac_ext >&5
3226   rm -rf conftest*
3227   ac_c99_math=no
3228 fi
3229 rm -f conftest*
3230   cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <math.h>
3234 int main() {
3235 isinf(0.0);
3236 ; return 0; }
3237 EOF
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239   :
3240 else
3241   echo "configure: failed program was:" >&5
3242   cat conftest.$ac_ext >&5
3243   rm -rf conftest*
3244   ac_c99_math=no
3245 fi
3246 rm -f conftest*
3247   cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <math.h>
3251 int main() {
3252 isnan(0.0);
3253 ; return 0; }
3254 EOF
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256   :
3257 else
3258   echo "configure: failed program was:" >&5
3259   cat conftest.$ac_ext >&5
3260   rm -rf conftest*
3261   ac_c99_math=no
3262 fi
3263 rm -f conftest*
3264   cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <math.h>
3268 int main() {
3269 isnormal(0.0);
3270 ; return 0; }
3271 EOF
3272 if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3273   :
3274 else
3275   echo "configure: failed program was:" >&5
3276   cat conftest.$ac_ext >&5
3277   rm -rf conftest*
3278   ac_c99_math=no
3279 fi
3280 rm -f conftest*
3281   cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <math.h>
3285 int main() {
3286 signbit(0.0);
3287 ; return 0; }
3288 EOF
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290   :
3291 else
3292   echo "configure: failed program was:" >&5
3293   cat conftest.$ac_ext >&5
3294   rm -rf conftest*
3295   ac_c99_math=no
3296 fi
3297 rm -f conftest*
3298   cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <math.h>
3302 int main() {
3303 isgreater(0.0,0.0);
3304 ; return 0; }
3305 EOF
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3307   :
3308 else
3309   echo "configure: failed program was:" >&5
3310   cat conftest.$ac_ext >&5
3311   rm -rf conftest*
3312   ac_c99_math=no
3313 fi
3314 rm -f conftest*
3315   cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <math.h>
3319 int main() {
3320 isgreaterequal(0.0,0.0);
3321 ; return 0; }
3322 EOF
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324   :
3325 else
3326   echo "configure: failed program was:" >&5
3327   cat conftest.$ac_ext >&5
3328   rm -rf conftest*
3329   ac_c99_math=no
3330 fi
3331 rm -f conftest*
3332   cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <math.h>
3336 int main() {
3337 isless(0.0,0.0);
3338 ; return 0; }
3339 EOF
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341   :
3342 else
3343   echo "configure: failed program was:" >&5
3344   cat conftest.$ac_ext >&5
3345   rm -rf conftest*
3346   ac_c99_math=no
3347 fi
3348 rm -f conftest*
3349   cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <math.h>
3353 int main() {
3354 islessequal(0.0,0.0);
3355 ; return 0; }
3356 EOF
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358   :
3359 else
3360   echo "configure: failed program was:" >&5
3361   cat conftest.$ac_ext >&5
3362   rm -rf conftest*
3363   ac_c99_math=no
3364 fi
3365 rm -f conftest*
3366   cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <math.h>
3370 int main() {
3371 islessgreater(0.0,0.0);
3372 ; return 0; }
3373 EOF
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375   :
3376 else
3377   echo "configure: failed program was:" >&5
3378   cat conftest.$ac_ext >&5
3379   rm -rf conftest*
3380   ac_c99_math=no
3381 fi
3382 rm -f conftest*
3383   cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <math.h>
3387 int main() {
3388 isunordered(0.0,0.0);
3389 ; return 0; }
3390 EOF
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392   :
3393 else
3394   echo "configure: failed program was:" >&5
3395   cat conftest.$ac_ext >&5
3396   rm -rf conftest*
3397   ac_c99_math=no
3398 fi
3399 rm -f conftest*
3400   echo "$ac_t""$ac_c99_math" 1>&6
3401
3402   # Check for the existence in <stdio.h> of vscanf, et. al.
3403   ac_c99_stdio=yes;
3404   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3405 echo "configure:3406: checking for ISO C99 support in <stdio.h>" >&5
3406   cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <stdio.h>
3410 int main() {
3411 snprintf("12", 0, "%i");
3412 ; return 0; }
3413 EOF
3414 if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3415   :
3416 else
3417   echo "configure: failed program was:" >&5
3418   cat conftest.$ac_ext >&5
3419   rm -rf conftest*
3420   ac_c99_stdio=no
3421 fi
3422 rm -f conftest*
3423   cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <stdio.h>
3427                   #include <stdarg.h>
3428                   void foo(char* fmt, ...)
3429                   {va_list args; va_start(args, fmt);
3430                   vfscanf(stderr, "%i", args);}
3431 int main() {
3432
3433 ; return 0; }
3434 EOF
3435 if { (eval echo configure:3436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3436   :
3437 else
3438   echo "configure: failed program was:" >&5
3439   cat conftest.$ac_ext >&5
3440   rm -rf conftest*
3441   ac_c99_stdio=no
3442 fi
3443 rm -f conftest*
3444   cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <stdio.h>
3448                   #include <stdarg.h>
3449                   void foo(char* fmt, ...)
3450                   {va_list args; va_start(args, fmt);
3451                   vscanf("%i", args);}
3452 int main() {
3453
3454 ; return 0; }
3455 EOF
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457   :
3458 else
3459   echo "configure: failed program was:" >&5
3460   cat conftest.$ac_ext >&5
3461   rm -rf conftest*
3462   ac_c99_stdio=no
3463 fi
3464 rm -f conftest*
3465   cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <stdio.h>
3469                   #include <stdarg.h>
3470                   void foo(char* fmt, ...)
3471                   {va_list args; va_start(args, fmt);
3472                   vsnprintf(fmt, 0, "%i", args);}
3473 int main() {
3474
3475 ; return 0; }
3476 EOF
3477 if { (eval echo configure:3478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3478   :
3479 else
3480   echo "configure: failed program was:" >&5
3481   cat conftest.$ac_ext >&5
3482   rm -rf conftest*
3483   ac_c99_stdio=no
3484 fi
3485 rm -f conftest*
3486   cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <stdio.h>
3490                   #include <stdarg.h>
3491                   void foo(char* fmt, ...)
3492                   {va_list args; va_start(args, fmt);
3493                   vsscanf(fmt, "%i", args);}
3494 int main() {
3495
3496 ; return 0; }
3497 EOF
3498 if { (eval echo configure:3499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3499   :
3500 else
3501   echo "configure: failed program was:" >&5
3502   cat conftest.$ac_ext >&5
3503   rm -rf conftest*
3504   ac_c99_stdio=no
3505 fi
3506 rm -f conftest*
3507   echo "$ac_t""$ac_c99_stdio" 1>&6
3508
3509   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3510   ac_c99_stdlib=yes;
3511   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3512 echo "configure:3513: checking for lldiv_t declaration" >&5
3513   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3514   echo $ac_n "(cached) $ac_c" 1>&6
3515 else
3516   
3517   cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 #include <stdlib.h>
3521 int main() {
3522  lldiv_t mydivt;
3523 ; return 0; }
3524 EOF
3525 if { (eval echo configure:3526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3526   rm -rf conftest*
3527   ac_c99_lldiv_t=yes
3528 else
3529   echo "configure: failed program was:" >&5
3530   cat conftest.$ac_ext >&5
3531   rm -rf conftest*
3532   ac_c99_lldiv_t=no
3533 fi
3534 rm -f conftest*
3535   
3536 fi
3537
3538   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3539
3540   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3541 echo "configure:3542: checking for ISO C99 support in <stdlib.h>" >&5
3542   cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <stdlib.h>
3546 int main() {
3547 char* tmp; strtof("gnu", &tmp);
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_stdlib=no
3557 fi
3558 rm -f conftest*
3559   cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <stdlib.h>
3563 int main() {
3564 char* tmp; strtold("gnu", &tmp);
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_stdlib=no
3574 fi
3575 rm -f conftest*
3576   cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <stdlib.h>
3580 int main() {
3581 llabs(10);
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_stdlib=no
3591 fi
3592 rm -f conftest*
3593   cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <stdlib.h>
3597 int main() {
3598 lldiv(10,1);
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_stdlib=no
3608 fi
3609 rm -f conftest*
3610   cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <stdlib.h>
3614 int main() {
3615 atoll("10");
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_stdlib=no
3625 fi
3626 rm -f conftest*
3627   cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 #include <stdlib.h>
3631 int main() {
3632 _Exit(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_stdlib=no
3642 fi
3643 rm -f conftest*
3644   if test x"$ac_c99_lldiv_t" = x"no"; then
3645     ac_c99_stdlib=no; 
3646   fi; 
3647   echo "$ac_t""$ac_c99_stdlib" 1>&6
3648
3649   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3650   # XXX the wchar.h checks should be rolled into the general C99 bits.
3651   ac_c99_wchar=yes;
3652   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3653 echo "configure:3654: checking for additional ISO C99 support in <wchar.h>" >&5
3654   cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <wchar.h>
3658 int main() {
3659 wcstold(L"10.0", NULL);
3660 ; return 0; }
3661 EOF
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663   :
3664 else
3665   echo "configure: failed program was:" >&5
3666   cat conftest.$ac_ext >&5
3667   rm -rf conftest*
3668   ac_c99_wchar=no
3669 fi
3670 rm -f conftest*
3671   cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <wchar.h>
3675 int main() {
3676 wcstoll(L"10", NULL, 10);
3677 ; return 0; }
3678 EOF
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680   :
3681 else
3682   echo "configure: failed program was:" >&5
3683   cat conftest.$ac_ext >&5
3684   rm -rf conftest*
3685   ac_c99_wchar=no
3686 fi
3687 rm -f conftest*
3688   cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 #include <wchar.h>
3692 int main() {
3693 wcstoull(L"10", NULL, 10);
3694 ; return 0; }
3695 EOF
3696 if { (eval echo configure:3697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3697   :
3698 else
3699   echo "configure: failed program was:" >&5
3700   cat conftest.$ac_ext >&5
3701   rm -rf conftest*
3702   ac_c99_wchar=no
3703 fi
3704 rm -f conftest*
3705   echo "$ac_t""$ac_c99_wchar" 1>&6
3706
3707   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3708 echo "configure:3709: checking for enabled ISO C99 support" >&5
3709   if test x"$ac_c99_math" = x"no" ||
3710      test x"$ac_c99_stdio" = x"no" ||
3711      test x"$ac_c99_stdlib" = x"no" ||
3712      test x"$ac_c99_wchar" = x"no"; then
3713     enable_c99=no; 
3714   fi; 
3715   echo "$ac_t""$enable_c99" 1>&6
3716
3717   # Option parsed, now set things appropriately
3718   if test x"$enable_c99" = x"yes"; then
3719     cat >> confdefs.h <<\EOF
3720 #define _GLIBCPP_USE_C99 1
3721 EOF
3722
3723   fi
3724
3725   ac_ext=c
3726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3730 cross_compiling=$ac_cv_prog_cc_cross
3731
3732
3733   
3734   # Check whether --enable-long-long or --disable-long-long was given.
3735 if test "${enable_long_long+set}" = set; then
3736   enableval="$enable_long_long"
3737     case "$enableval" in
3738    yes) enable_long_long=yes ;;
3739    no)  enable_long_long=no ;;
3740    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3741    esac
3742 else
3743   enable_long_long=yes
3744 fi
3745
3746   
3747   ac_ext=C
3748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3749 ac_cpp='$CXXCPP $CPPFLAGS'
3750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3752 cross_compiling=$ac_cv_prog_cxx_cross
3753
3754
3755   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3756 echo "configure:3757: checking for enabled long long I/O support" >&5
3757   # iostreams require strtoll, strtoull to compile
3758   cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <stdlib.h>
3762 int main() {
3763 char* tmp; strtoll("gnu", &tmp, 10);
3764 ; return 0; }
3765 EOF
3766 if { (eval echo configure:3767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3767   :
3768 else
3769   echo "configure: failed program was:" >&5
3770   cat conftest.$ac_ext >&5
3771   rm -rf conftest*
3772   enable_long_long=no
3773 fi
3774 rm -f conftest*
3775   cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 #include <stdlib.h>
3779 int main() {
3780 char* tmp; strtoull("gnu", &tmp, 10);
3781 ; return 0; }
3782 EOF
3783 if { (eval echo configure:3784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784   :
3785 else
3786   echo "configure: failed program was:" >&5
3787   cat conftest.$ac_ext >&5
3788   rm -rf conftest*
3789   enable_long_long=no
3790 fi
3791 rm -f conftest*
3792
3793   # Option parsed, now set things appropriately
3794   if test x"$enable_long_long" = xyes; then
3795     cat >> confdefs.h <<\EOF
3796 #define _GLIBCPP_USE_LONG_LONG 1
3797 EOF
3798
3799   fi
3800   echo "$ac_t""$enable_long_long" 1>&6
3801
3802   ac_ext=c
3803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3807 cross_compiling=$ac_cv_prog_cc_cross
3808
3809
3810 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3811 echo "configure:3812: checking for c header strategy to use" >&5
3812 # Check whether --enable-cheaders or --disable-cheaders was given.
3813 if test "${enable_cheaders+set}" = set; then
3814   enableval="$enable_cheaders"
3815   
3816   case "$enableval" in
3817    c) 
3818         enable_cheaders=c 
3819         ;;
3820    c_std)  
3821         enable_cheaders=c_std 
3822         ;;
3823    c_shadow)  
3824         enable_cheaders=c_shadow 
3825         ;;
3826    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3827         ;;
3828   esac
3829 else
3830   enable_cheaders=c_std
3831 fi
3832
3833   echo "$ac_t""$enable_cheaders" 1>&6
3834
3835     case "$enable_cheaders" in
3836     c_shadow) 
3837         CSHADOW_FLAGS="-fno-builtin"
3838         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3839         cat >> confdefs.h <<\EOF
3840 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3841 EOF
3842
3843         ;;
3844     c_std)   
3845         CSHADOW_FLAGS=""
3846         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3847         ;;
3848     c)   
3849         CSHADOW_FLAGS=""
3850         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3851         ;;
3852   esac
3853
3854   
3855   
3856   
3857
3858 if test "$enable_cheaders" = c_shadow; then
3859   GLIBCPP_USE_CSHADOW_TRUE=
3860   GLIBCPP_USE_CSHADOW_FALSE='#'
3861 else
3862   GLIBCPP_USE_CSHADOW_TRUE='#'
3863   GLIBCPP_USE_CSHADOW_FALSE=
3864 fi
3865
3866
3867   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3868 echo "configure:3869: checking for thread model used by GCC" >&5
3869   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3870   echo "$ac_t""$target_thread_file" 1>&6
3871
3872   if test $target_thread_file != single; then
3873     cat >> confdefs.h <<\EOF
3874 #define HAVE_GTHR_DEFAULT 1
3875 EOF
3876
3877     cat >> confdefs.h <<\EOF
3878 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3879 EOF
3880
3881   fi
3882
3883   glibcpp_thread_h=gthr-$target_thread_file.h
3884   
3885
3886 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3887 if test "${enable_cxx_flags+set}" = set; then
3888   enableval="$enable_cxx_flags"
3889   case "x$enableval" in
3890  xyes)   
3891         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3892  xno|x)  
3893         enable_cxx_flags='' ;;
3894  *)      
3895         enable_cxx_flags="$enableval" ;;
3896  esac
3897 else
3898   enable_cxx_flags='none'
3899 fi
3900
3901
3902 if test "$enable_cxx_flags" = "none"; then 
3903   enable_cxx_flags=''; 
3904 fi
3905
3906 if test -n "$enable_cxx_flags"; then
3907     for f in $enable_cxx_flags; do
3908         case "$f" in
3909             -fhonor-std)  ;;
3910             -*)  ;;
3911             *)   # and we're trying to pass /what/ exactly?
3912                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3913         esac
3914     done
3915 fi
3916 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3917
3918
3919
3920   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3921 echo "configure:3922: checking for exception model to use" >&5
3922   
3923   ac_ext=C
3924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3925 ac_cpp='$CXXCPP $CPPFLAGS'
3926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3928 cross_compiling=$ac_cv_prog_cxx_cross
3929
3930   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3931 if test "${enable_sjlj_exceptions+set}" = set; then
3932   enableval="$enable_sjlj_exceptions"
3933   :
3934 else
3935                        cat > conftest.$ac_ext << EOF
3936 #line 3937 "configure"
3937 struct S { ~S(); };
3938 void bar();
3939 void foo()
3940 {
3941   S s;
3942   bar();
3943 }
3944 EOF
3945    old_CXXFLAGS="$CXXFLAGS"  
3946    CXXFLAGS=-S
3947    if { (eval echo configure:3948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3948      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3949        enable_sjlj_exceptions=yes
3950      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3951        enable_sjlj_exceptions=no
3952      fi
3953    fi
3954    CXXFLAGS="$old_CXXFLAGS"
3955    rm -f conftest*
3956 fi
3957
3958    if test x$enable_sjlj_exceptions = xyes; then
3959      cat >> confdefs.h <<\EOF
3960 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3961 EOF
3962
3963      ac_exception_model_name=sjlj
3964    elif test x$enable_sjlj_exceptions = xno; then
3965      ac_exception_model_name="call frame"
3966    else
3967      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3968    fi
3969    ac_ext=c
3970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3974 cross_compiling=$ac_cv_prog_cc_cross
3975
3976    echo "$ac_t""$ac_exception_model_name" 1>&6
3977
3978
3979   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3980 echo "configure:3981: checking for use of libunwind" >&5
3981   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3982 if test "${enable_libunwind_exceptions+set}" = set; then
3983   enableval="$enable_libunwind_exceptions"
3984   use_libunwind_exceptions=$enableval
3985 else
3986   use_libunwind_exceptions=no
3987 fi
3988
3989   echo "$ac_t""$use_libunwind_exceptions" 1>&6
3990     if test x"$use_libunwind_exceptions" = xyes; then
3991     LIBUNWIND_FLAG="-lunwind"
3992   else
3993     LIBUNWIND_FLAG=""
3994   fi
3995   
3996
3997 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3998 if test "${enable_concept_checks+set}" = set; then
3999   enableval="$enable_concept_checks"
4000   case "$enableval" in
4001  yes) enable_concept_checks=yes ;;
4002  no)  enable_concept_checks=no ;;
4003  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4004  esac
4005 else
4006   enable_concept_checks=no
4007 fi
4008 if test x"$enable_concept_checks" = xyes; then
4009   cat >> confdefs.h <<\EOF
4010 #define _GLIBCPP_CONCEPT_CHECKS 1
4011 EOF
4012
4013 fi
4014
4015
4016
4017 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4018
4019   # This lets us hard-code the functionality we know
4020   # we'll have in the cross target environment. "Let" is a
4021   # sugar-coated word placed on an especially dull and tedious hack, actually.
4022   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4023   # that involve linking can't be used:
4024   # "cannot open sim-crt0.o"
4025   # "cannot open crt0.o"
4026   # etc. All this is because there currently exists no unified,
4027   # consistent way for top level CC information to be passed down
4028   # to target directories: newlib includes, newlib linking info,
4029   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4030   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4031
4032   # We are being configured with some form of cross compiler.
4033   GLIBCPP_IS_CROSS_COMPILING=1
4034
4035   # If Canadian cross, then don't pick up tools from the build
4036   # directory.
4037   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4038     CANADIAN=yes
4039   else
4040     CANADIAN=no
4041   fi
4042
4043   # Construct crosses by hand, eliminating bits that need ld...
4044   # GLIBCPP_CHECK_COMPILER_FEATURES
4045   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4046   # GLIBCPP_CHECK_MATH_SUPPORT
4047
4048   case "$target_alias" in
4049     *-linux*)
4050       # Check for available headers.
4051       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4052         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4053         fp.h locale.h float.h inttypes.h
4054 do
4055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4057 echo "configure:4058: checking for $ac_hdr" >&5
4058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4059   echo $ac_n "(cached) $ac_c" 1>&6
4060 else
4061   cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 #include <$ac_hdr>
4065 EOF
4066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4067 { (eval echo configure:4068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4069 if test -z "$ac_err"; then
4070   rm -rf conftest*
4071   eval "ac_cv_header_$ac_safe=yes"
4072 else
4073   echo "$ac_err" >&5
4074   echo "configure: failed program was:" >&5
4075   cat conftest.$ac_ext >&5
4076   rm -rf conftest*
4077   eval "ac_cv_header_$ac_safe=no"
4078 fi
4079 rm -f conftest*
4080 fi
4081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4082   echo "$ac_t""yes" 1>&6
4083     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4084   cat >> confdefs.h <<EOF
4085 #define $ac_tr_hdr 1
4086 EOF
4087  
4088 else
4089   echo "$ac_t""no" 1>&6
4090 fi
4091 done
4092
4093       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4094       
4095       
4096   # If we're not using GNU ld, then there's no point in even trying these
4097   # tests.  Check for that first.  We should have already tested for gld
4098   # by now (in libtool), but require it now just to be safe...
4099   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4100   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4101   
4102
4103   # The name set by libtool depends on the version of libtool.  Shame on us
4104   # for depending on an impl detail, but c'est la vie.  Older versions used
4105   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4106   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4107   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4108   # set (hence we're using an older libtool), then set it.
4109   if test x${with_gnu_ld+set} != xset; then
4110     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4111       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4112       with_gnu_ld=no
4113     else
4114       with_gnu_ld=$ac_cv_prog_gnu_ld
4115     fi
4116   fi
4117
4118   # Start by getting the version number.  I think the libtool test already
4119   # does some of this, but throws away the result.
4120   
4121   ldver=`$LD --version 2>/dev/null | head -1 | \
4122          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4123   
4124   glibcpp_gnu_ld_version=`echo $ldver | \
4125          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4126
4127   # Set --gc-sections.
4128   if test "$with_gnu_ld" = "notbroken"; then
4129     # GNU ld it is!  Joy and bunny rabbits!
4130
4131     # All these tests are for C++; save the language and the compiler flags.
4132     # Need to do this so that g++ won't try to link in libstdc++
4133     ac_test_CFLAGS="${CFLAGS+set}"
4134     ac_save_CFLAGS="$CFLAGS"
4135     CFLAGS='-x c++  -Wl,--gc-sections'
4136
4137     # Check for -Wl,--gc-sections
4138     # XXX This test is broken at the moment, as symbols required for
4139     # linking are now in libsupc++ (not built yet.....). In addition, 
4140     # this test has cored on solaris in the past. In addition,
4141     # --gc-sections doesn't really work at the moment (keeps on discarding
4142     # used sections, first .eh_frame and now some of the glibc sections for
4143     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4144     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4145 echo "configure:4146: checking for ld that supports -Wl,--gc-sections" >&5
4146     if test "$cross_compiling" = yes; then
4147   ac_sectionLDflags=yes
4148 else
4149   cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152
4153      int main(void) 
4154      {
4155        try { throw 1; }
4156        catch (...) { };
4157        return 0;
4158      }
4159     
4160 EOF
4161 if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4162 then
4163   ac_sectionLDflags=yes
4164 else
4165   echo "configure: failed program was:" >&5
4166   cat conftest.$ac_ext >&5
4167   rm -fr conftest*
4168   ac_sectionLDflags=no
4169 fi
4170 rm -fr conftest*
4171 fi
4172
4173     if test "$ac_test_CFLAGS" = set; then
4174       CFLAGS="$ac_save_CFLAGS"
4175     else
4176       # this is the suspicious part
4177       CFLAGS=''
4178     fi
4179     if test "$ac_sectionLDflags" = "yes"; then
4180       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4181     fi
4182     echo "$ac_t""$ac_sectionLDflags" 1>&6
4183   fi
4184
4185   # Set linker optimization flags.
4186   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4187     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4188   fi
4189
4190   
4191   
4192
4193       
4194     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4195 echo "configure:4196: checking for main in -lm" >&5
4196 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198   echo $ac_n "(cached) $ac_c" 1>&6
4199 else
4200   ac_save_LIBS="$LIBS"
4201 LIBS="-lm  $LIBS"
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205
4206 int main() {
4207 main()
4208 ; return 0; }
4209 EOF
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211   rm -rf conftest*
4212   eval "ac_cv_lib_$ac_lib_var=yes"
4213 else
4214   echo "configure: failed program was:" >&5
4215   cat conftest.$ac_ext >&5
4216   rm -rf conftest*
4217   eval "ac_cv_lib_$ac_lib_var=no"
4218 fi
4219 rm -f conftest*
4220 LIBS="$ac_save_LIBS"
4221
4222 fi
4223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4224   echo "$ac_t""yes" 1>&6
4225     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4226     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4227   cat >> confdefs.h <<EOF
4228 #define $ac_tr_lib 1
4229 EOF
4230
4231   LIBS="-lm $LIBS"
4232
4233 else
4234   echo "$ac_t""no" 1>&6
4235 fi
4236
4237   for ac_func in nan copysignf
4238 do
4239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4240 echo "configure:4241: checking for $ac_func" >&5
4241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4242   echo $ac_n "(cached) $ac_c" 1>&6
4243 else
4244   cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4247 /* System header to define __stub macros and hopefully few prototypes,
4248     which can conflict with char $ac_func(); below.  */
4249 #include <assert.h>
4250 /* Override any gcc2 internal prototype to avoid an error.  */
4251 /* We use char because int might match the return type of a gcc2
4252     builtin and then its argument prototype would still apply.  */
4253 char $ac_func();
4254
4255 int main() {
4256
4257 /* The GNU C library defines this for functions which it implements
4258     to always fail with ENOSYS.  Some functions are actually named
4259     something starting with __ and the normal name is an alias.  */
4260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4261 choke me
4262 #else
4263 $ac_func();
4264 #endif
4265
4266 ; return 0; }
4267 EOF
4268 if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4269   rm -rf conftest*
4270   eval "ac_cv_func_$ac_func=yes"
4271 else
4272   echo "configure: failed program was:" >&5
4273   cat conftest.$ac_ext >&5
4274   rm -rf conftest*
4275   eval "ac_cv_func_$ac_func=no"
4276 fi
4277 rm -f conftest*
4278 fi
4279
4280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4281   echo "$ac_t""yes" 1>&6
4282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4283   cat >> confdefs.h <<EOF
4284 #define $ac_tr_func 1
4285 EOF
4286  
4287 else
4288   echo "$ac_t""no" 1>&6
4289 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4290 fi
4291 done
4292
4293
4294
4295           USE_COMPLEX_LONG_DOUBLE=no
4296   if test x$ac_cv_func_copysignl = x"yes"; then
4297     USE_COMPLEX_LONG_DOUBLE=yes
4298     for ac_func in signbitl
4299 do
4300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4301 echo "configure:4302: checking for $ac_func" >&5
4302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4303   echo $ac_n "(cached) $ac_c" 1>&6
4304 else
4305   cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 /* System header to define __stub macros and hopefully few prototypes,
4309     which can conflict with char $ac_func(); below.  */
4310 #include <assert.h>
4311 /* Override any gcc2 internal prototype to avoid an error.  */
4312 /* We use char because int might match the return type of a gcc2
4313     builtin and then its argument prototype would still apply.  */
4314 char $ac_func();
4315
4316 int main() {
4317
4318 /* The GNU C library defines this for functions which it implements
4319     to always fail with ENOSYS.  Some functions are actually named
4320     something starting with __ and the normal name is an alias.  */
4321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4322 choke me
4323 #else
4324 $ac_func();
4325 #endif
4326
4327 ; return 0; }
4328 EOF
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4330   rm -rf conftest*
4331   eval "ac_cv_func_$ac_func=yes"
4332 else
4333   echo "configure: failed program was:" >&5
4334   cat conftest.$ac_ext >&5
4335   rm -rf conftest*
4336   eval "ac_cv_func_$ac_func=no"
4337 fi
4338 rm -f conftest*
4339 fi
4340
4341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4342   echo "$ac_t""yes" 1>&6
4343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4344   cat >> confdefs.h <<EOF
4345 #define $ac_tr_func 1
4346 EOF
4347  
4348 else
4349   echo "$ac_t""no" 1>&6
4350 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4351 fi
4352 done
4353
4354
4355   fi
4356
4357   
4358
4359       
4360
4361       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4362 echo "configure:4363: checking for mbstate_t" >&5
4363   cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <wchar.h>
4367 int main() {
4368 mbstate_t teststate;
4369 ; return 0; }
4370 EOF
4371 if { (eval echo configure:4372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4372   rm -rf conftest*
4373   have_mbstate_t=yes
4374 else
4375   echo "configure: failed program was:" >&5
4376   cat conftest.$ac_ext >&5
4377   rm -rf conftest*
4378   have_mbstate_t=no
4379 fi
4380 rm -f conftest*
4381   echo "$ac_t""$have_mbstate_t" 1>&6
4382   if test x"$have_mbstate_t" = xyes; then
4383     cat >> confdefs.h <<\EOF
4384 #define HAVE_MBSTATE_T 1
4385 EOF
4386
4387   fi
4388
4389     for ac_hdr in wchar.h
4390 do
4391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4393 echo "configure:4394: checking for $ac_hdr" >&5
4394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4395   echo $ac_n "(cached) $ac_c" 1>&6
4396 else
4397   cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 #include <$ac_hdr>
4401 EOF
4402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4403 { (eval echo configure:4404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4405 if test -z "$ac_err"; then
4406   rm -rf conftest*
4407   eval "ac_cv_header_$ac_safe=yes"
4408 else
4409   echo "$ac_err" >&5
4410   echo "configure: failed program was:" >&5
4411   cat conftest.$ac_ext >&5
4412   rm -rf conftest*
4413   eval "ac_cv_header_$ac_safe=no"
4414 fi
4415 rm -f conftest*
4416 fi
4417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4418   echo "$ac_t""yes" 1>&6
4419     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4420   cat >> confdefs.h <<EOF
4421 #define $ac_tr_hdr 1
4422 EOF
4423  ac_has_wchar_h=yes
4424 else
4425   echo "$ac_t""no" 1>&6
4426 ac_has_wchar_h=no
4427 fi
4428 done
4429
4430   for ac_hdr in wctype.h
4431 do
4432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4434 echo "configure:4435: checking for $ac_hdr" >&5
4435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4436   echo $ac_n "(cached) $ac_c" 1>&6
4437 else
4438   cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 #include <$ac_hdr>
4442 EOF
4443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4444 { (eval echo configure:4445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4446 if test -z "$ac_err"; then
4447   rm -rf conftest*
4448   eval "ac_cv_header_$ac_safe=yes"
4449 else
4450   echo "$ac_err" >&5
4451   echo "configure: failed program was:" >&5
4452   cat conftest.$ac_ext >&5
4453   rm -rf conftest*
4454   eval "ac_cv_header_$ac_safe=no"
4455 fi
4456 rm -f conftest*
4457 fi
4458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4459   echo "$ac_t""yes" 1>&6
4460     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4461   cat >> confdefs.h <<EOF
4462 #define $ac_tr_hdr 1
4463 EOF
4464  ac_has_wctype_h=yes
4465 else
4466   echo "$ac_t""no" 1>&6
4467 ac_has_wctype_h=no
4468 fi
4469 done
4470
4471   
4472     if test x"$ac_has_wchar_h" = xyes &&
4473      test x"$ac_has_wctype_h" = xyes &&
4474      test x"$enable_c_mbchar" != xno; then
4475       
4476             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4477 echo "configure:4478: checking for WCHAR_MIN and WCHAR_MAX" >&5
4478     cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 #include <wchar.h>
4482 int main() {
4483 int i = WCHAR_MIN; int j = WCHAR_MAX;
4484 ; return 0; }
4485 EOF
4486 if { (eval echo configure:4487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4487   rm -rf conftest*
4488   has_wchar_minmax=yes
4489 else
4490   echo "configure: failed program was:" >&5
4491   cat conftest.$ac_ext >&5
4492   rm -rf conftest*
4493   has_wchar_minmax=no
4494 fi
4495 rm -f conftest*
4496     echo "$ac_t""$has_wchar_minmax" 1>&6
4497     
4498             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4499 echo "configure:4500: checking for WEOF" >&5
4500     cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503
4504       #include <wchar.h>
4505       #include <stddef.h>
4506 int main() {
4507 wint_t i = WEOF;
4508 ; return 0; }
4509 EOF
4510 if { (eval echo configure:4511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4511   rm -rf conftest*
4512   has_weof=yes
4513 else
4514   echo "configure: failed program was:" >&5
4515   cat conftest.$ac_ext >&5
4516   rm -rf conftest*
4517   has_weof=no
4518 fi
4519 rm -f conftest*
4520     echo "$ac_t""$has_weof" 1>&6
4521   
4522         ac_wfuncs=yes
4523     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4524 do
4525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4526 echo "configure:4527: checking for $ac_func" >&5
4527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4528   echo $ac_n "(cached) $ac_c" 1>&6
4529 else
4530   cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 /* System header to define __stub macros and hopefully few prototypes,
4534     which can conflict with char $ac_func(); below.  */
4535 #include <assert.h>
4536 /* Override any gcc2 internal prototype to avoid an error.  */
4537 /* We use char because int might match the return type of a gcc2
4538     builtin and then its argument prototype would still apply.  */
4539 char $ac_func();
4540
4541 int main() {
4542
4543 /* The GNU C library defines this for functions which it implements
4544     to always fail with ENOSYS.  Some functions are actually named
4545     something starting with __ and the normal name is an alias.  */
4546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4547 choke me
4548 #else
4549 $ac_func();
4550 #endif
4551
4552 ; return 0; }
4553 EOF
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4555   rm -rf conftest*
4556   eval "ac_cv_func_$ac_func=yes"
4557 else
4558   echo "configure: failed program was:" >&5
4559   cat conftest.$ac_ext >&5
4560   rm -rf conftest*
4561   eval "ac_cv_func_$ac_func=no"
4562 fi
4563 rm -f conftest*
4564 fi
4565
4566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4567   echo "$ac_t""yes" 1>&6
4568     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4569   cat >> confdefs.h <<EOF
4570 #define $ac_tr_func 1
4571 EOF
4572  
4573 else
4574   echo "$ac_t""no" 1>&6
4575 \
4576     ac_wfuncs=no
4577 fi
4578 done
4579
4580   
4581         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4582     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4583     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4584     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4585     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4586     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4587 do
4588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4589 echo "configure:4590: checking for $ac_func" >&5
4590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4591   echo $ac_n "(cached) $ac_c" 1>&6
4592 else
4593   cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* System header to define __stub macros and hopefully few prototypes,
4597     which can conflict with char $ac_func(); below.  */
4598 #include <assert.h>
4599 /* Override any gcc2 internal prototype to avoid an error.  */
4600 /* We use char because int might match the return type of a gcc2
4601     builtin and then its argument prototype would still apply.  */
4602 char $ac_func();
4603
4604 int main() {
4605
4606 /* The GNU C library defines this for functions which it implements
4607     to always fail with ENOSYS.  Some functions are actually named
4608     something starting with __ and the normal name is an alias.  */
4609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4610 choke me
4611 #else
4612 $ac_func();
4613 #endif
4614
4615 ; return 0; }
4616 EOF
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4618   rm -rf conftest*
4619   eval "ac_cv_func_$ac_func=yes"
4620 else
4621   echo "configure: failed program was:" >&5
4622   cat conftest.$ac_ext >&5
4623   rm -rf conftest*
4624   eval "ac_cv_func_$ac_func=no"
4625 fi
4626 rm -f conftest*
4627 fi
4628
4629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4630   echo "$ac_t""yes" 1>&6
4631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4632   cat >> confdefs.h <<EOF
4633 #define $ac_tr_func 1
4634 EOF
4635  
4636 else
4637   echo "$ac_t""no" 1>&6
4638 \
4639     ac_wfuncs=no
4640 fi
4641 done
4642
4643
4644     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4645 echo "configure:4646: checking for ISO C99 wchar_t support" >&5
4646     if test x"$has_weof" = xyes &&
4647        test x"$has_wchar_minmax" = xyes &&
4648        test x"$ac_wfuncs" = xyes; then
4649       ac_isoC99_wchar_t=yes
4650     else
4651       ac_isoC99_wchar_t=no
4652     fi
4653     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4654   
4655             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4656 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4657 echo "configure:4658: checking for iconv.h" >&5
4658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4659   echo $ac_n "(cached) $ac_c" 1>&6
4660 else
4661   cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 #include <iconv.h>
4665 EOF
4666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4667 { (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4669 if test -z "$ac_err"; then
4670   rm -rf conftest*
4671   eval "ac_cv_header_$ac_safe=yes"
4672 else
4673   echo "$ac_err" >&5
4674   echo "configure: failed program was:" >&5
4675   cat conftest.$ac_ext >&5
4676   rm -rf conftest*
4677   eval "ac_cv_header_$ac_safe=no"
4678 fi
4679 rm -f conftest*
4680 fi
4681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4682   echo "$ac_t""yes" 1>&6
4683   ac_has_iconv_h=yes
4684 else
4685   echo "$ac_t""no" 1>&6
4686 ac_has_iconv_h=no
4687 fi
4688
4689     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4690 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4691 echo "configure:4692: checking for langinfo.h" >&5
4692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4693   echo $ac_n "(cached) $ac_c" 1>&6
4694 else
4695   cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 #include <langinfo.h>
4699 EOF
4700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4701 { (eval echo configure:4702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4703 if test -z "$ac_err"; then
4704   rm -rf conftest*
4705   eval "ac_cv_header_$ac_safe=yes"
4706 else
4707   echo "$ac_err" >&5
4708   echo "configure: failed program was:" >&5
4709   cat conftest.$ac_ext >&5
4710   rm -rf conftest*
4711   eval "ac_cv_header_$ac_safe=no"
4712 fi
4713 rm -f conftest*
4714 fi
4715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4716   echo "$ac_t""yes" 1>&6
4717   ac_has_langinfo_h=yes
4718 else
4719   echo "$ac_t""no" 1>&6
4720 ac_has_langinfo_h=no
4721 fi
4722
4723
4724         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4725 echo "configure:4726: checking for iconv in -liconv" >&5
4726 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4728   echo $ac_n "(cached) $ac_c" 1>&6
4729 else
4730   ac_save_LIBS="$LIBS"
4731 LIBS="-liconv  $LIBS"
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4735 /* Override any gcc2 internal prototype to avoid an error.  */
4736 /* We use char because int might match the return type of a gcc2
4737     builtin and then its argument prototype would still apply.  */
4738 char iconv();
4739
4740 int main() {
4741 iconv()
4742 ; return 0; }
4743 EOF
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745   rm -rf conftest*
4746   eval "ac_cv_lib_$ac_lib_var=yes"
4747 else
4748   echo "configure: failed program was:" >&5
4749   cat conftest.$ac_ext >&5
4750   rm -rf conftest*
4751   eval "ac_cv_lib_$ac_lib_var=no"
4752 fi
4753 rm -f conftest*
4754 LIBS="$ac_save_LIBS"
4755
4756 fi
4757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4758   echo "$ac_t""yes" 1>&6
4759   libiconv="-liconv"
4760 else
4761   echo "$ac_t""no" 1>&6
4762 fi
4763
4764     ac_save_LIBS="$LIBS"
4765     LIBS="$LIBS $libiconv"
4766
4767     for ac_func in iconv_open iconv_close iconv nl_langinfo
4768 do
4769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4770 echo "configure:4771: checking for $ac_func" >&5
4771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4772   echo $ac_n "(cached) $ac_c" 1>&6
4773 else
4774   cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 /* System header to define __stub macros and hopefully few prototypes,
4778     which can conflict with char $ac_func(); below.  */
4779 #include <assert.h>
4780 /* Override any gcc2 internal prototype to avoid an error.  */
4781 /* We use char because int might match the return type of a gcc2
4782     builtin and then its argument prototype would still apply.  */
4783 char $ac_func();
4784
4785 int main() {
4786
4787 /* The GNU C library defines this for functions which it implements
4788     to always fail with ENOSYS.  Some functions are actually named
4789     something starting with __ and the normal name is an alias.  */
4790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4791 choke me
4792 #else
4793 $ac_func();
4794 #endif
4795
4796 ; return 0; }
4797 EOF
4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4799   rm -rf conftest*
4800   eval "ac_cv_func_$ac_func=yes"
4801 else
4802   echo "configure: failed program was:" >&5
4803   cat conftest.$ac_ext >&5
4804   rm -rf conftest*
4805   eval "ac_cv_func_$ac_func=no"
4806 fi
4807 rm -f conftest*
4808 fi
4809
4810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4811   echo "$ac_t""yes" 1>&6
4812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4813   cat >> confdefs.h <<EOF
4814 #define $ac_tr_func 1
4815 EOF
4816  \
4817     ac_XPG2funcs=yes
4818 else
4819   echo "$ac_t""no" 1>&6
4820 ac_XPG2funcs=no
4821 fi
4822 done
4823
4824   
4825     LIBS="$ac_save_LIBS"
4826
4827     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4828 echo "configure:4829: checking for XPG2 wchar_t support" >&5
4829     if test x"$ac_has_iconv_h" = xyes &&
4830        test x"$ac_has_langinfo_h" = xyes &&
4831        test x"$ac_XPG2funcs" = xyes; then
4832       ac_XPG2_wchar_t=yes
4833     else
4834       ac_XPG2_wchar_t=no
4835     fi
4836     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4837   
4838             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4839 echo "configure:4840: checking for enabled wchar_t specializations" >&5
4840     if test x"$ac_isoC99_wchar_t" = xyes &&
4841        test x"$ac_XPG2_wchar_t" = xyes; then
4842       cat >> confdefs.h <<\EOF
4843 #define _GLIBCPP_USE_WCHAR_T 1
4844 EOF
4845
4846       echo "$ac_t"""yes"" 1>&6
4847     else
4848       echo "$ac_t"""no"" 1>&6
4849     fi
4850   else
4851         echo "configure: warning: wchar_t support disabled." 1>&2
4852   fi
4853
4854       os_include_dir="config/os/gnu-linux"
4855       cat >> confdefs.h <<\EOF
4856 #define HAVE_COPYSIGN 1
4857 EOF
4858
4859       cat >> confdefs.h <<\EOF
4860 #define HAVE_COPYSIGNF 1
4861 EOF
4862
4863       cat >> confdefs.h <<\EOF
4864 #define HAVE_FINITEF 1
4865 EOF
4866
4867       cat >> confdefs.h <<\EOF
4868 #define HAVE_FREXPF 1
4869 EOF
4870
4871       cat >> confdefs.h <<\EOF
4872 #define HAVE_HYPOTF 1
4873 EOF
4874
4875       cat >> confdefs.h <<\EOF
4876 #define HAVE_SINCOS 1
4877 EOF
4878
4879       cat >> confdefs.h <<\EOF
4880 #define HAVE_SINCOSF 1
4881 EOF
4882
4883       if test x"long_double_math_on_this_cpu" = x"yes"; then
4884         cat >> confdefs.h <<\EOF
4885 #define HAVE_HYPOTL 1
4886 EOF
4887
4888       fi
4889       ;;
4890     *-hpux*)
4891       # Check for available headers.
4892       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4893         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4894         fp.h locale.h float.h inttypes.h
4895 do
4896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4898 echo "configure:4899: checking for $ac_hdr" >&5
4899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4900   echo $ac_n "(cached) $ac_c" 1>&6
4901 else
4902   cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 #include <$ac_hdr>
4906 EOF
4907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4908 { (eval echo configure:4909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4910 if test -z "$ac_err"; then
4911   rm -rf conftest*
4912   eval "ac_cv_header_$ac_safe=yes"
4913 else
4914   echo "$ac_err" >&5
4915   echo "configure: failed program was:" >&5
4916   cat conftest.$ac_ext >&5
4917   rm -rf conftest*
4918   eval "ac_cv_header_$ac_safe=no"
4919 fi
4920 rm -f conftest*
4921 fi
4922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4923   echo "$ac_t""yes" 1>&6
4924     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4925   cat >> confdefs.h <<EOF
4926 #define $ac_tr_hdr 1
4927 EOF
4928  
4929 else
4930   echo "$ac_t""no" 1>&6
4931 fi
4932 done
4933
4934       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4935       
4936       
4937   # If we're not using GNU ld, then there's no point in even trying these
4938   # tests.  Check for that first.  We should have already tested for gld
4939   # by now (in libtool), but require it now just to be safe...
4940   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4941   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4942   
4943
4944   # The name set by libtool depends on the version of libtool.  Shame on us
4945   # for depending on an impl detail, but c'est la vie.  Older versions used
4946   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4947   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4948   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4949   # set (hence we're using an older libtool), then set it.
4950   if test x${with_gnu_ld+set} != xset; then
4951     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4952       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4953       with_gnu_ld=no
4954     else
4955       with_gnu_ld=$ac_cv_prog_gnu_ld
4956     fi
4957   fi
4958
4959   # Start by getting the version number.  I think the libtool test already
4960   # does some of this, but throws away the result.
4961   
4962   ldver=`$LD --version 2>/dev/null | head -1 | \
4963          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4964   
4965   glibcpp_gnu_ld_version=`echo $ldver | \
4966          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4967
4968   # Set --gc-sections.
4969   if test "$with_gnu_ld" = "notbroken"; then
4970     # GNU ld it is!  Joy and bunny rabbits!
4971
4972     # All these tests are for C++; save the language and the compiler flags.
4973     # Need to do this so that g++ won't try to link in libstdc++
4974     ac_test_CFLAGS="${CFLAGS+set}"
4975     ac_save_CFLAGS="$CFLAGS"
4976     CFLAGS='-x c++  -Wl,--gc-sections'
4977
4978     # Check for -Wl,--gc-sections
4979     # XXX This test is broken at the moment, as symbols required for
4980     # linking are now in libsupc++ (not built yet.....). In addition, 
4981     # this test has cored on solaris in the past. In addition,
4982     # --gc-sections doesn't really work at the moment (keeps on discarding
4983     # used sections, first .eh_frame and now some of the glibc sections for
4984     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4985     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4986 echo "configure:4987: checking for ld that supports -Wl,--gc-sections" >&5
4987     if test "$cross_compiling" = yes; then
4988   ac_sectionLDflags=yes
4989 else
4990   cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993
4994      int main(void) 
4995      {
4996        try { throw 1; }
4997        catch (...) { };
4998        return 0;
4999      }
5000     
5001 EOF
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5003 then
5004   ac_sectionLDflags=yes
5005 else
5006   echo "configure: failed program was:" >&5
5007   cat conftest.$ac_ext >&5
5008   rm -fr conftest*
5009   ac_sectionLDflags=no
5010 fi
5011 rm -fr conftest*
5012 fi
5013
5014     if test "$ac_test_CFLAGS" = set; then
5015       CFLAGS="$ac_save_CFLAGS"
5016     else
5017       # this is the suspicious part
5018       CFLAGS=''
5019     fi
5020     if test "$ac_sectionLDflags" = "yes"; then
5021       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5022     fi
5023     echo "$ac_t""$ac_sectionLDflags" 1>&6
5024   fi
5025
5026   # Set linker optimization flags.
5027   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5028     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5029   fi
5030
5031   
5032   
5033
5034       
5035     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5036 echo "configure:5037: checking for main in -lm" >&5
5037 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5039   echo $ac_n "(cached) $ac_c" 1>&6
5040 else
5041   ac_save_LIBS="$LIBS"
5042 LIBS="-lm  $LIBS"
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046
5047 int main() {
5048 main()
5049 ; return 0; }
5050 EOF
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5052   rm -rf conftest*
5053   eval "ac_cv_lib_$ac_lib_var=yes"
5054 else
5055   echo "configure: failed program was:" >&5
5056   cat conftest.$ac_ext >&5
5057   rm -rf conftest*
5058   eval "ac_cv_lib_$ac_lib_var=no"
5059 fi
5060 rm -f conftest*
5061 LIBS="$ac_save_LIBS"
5062
5063 fi
5064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5065   echo "$ac_t""yes" 1>&6
5066     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5067     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5068   cat >> confdefs.h <<EOF
5069 #define $ac_tr_lib 1
5070 EOF
5071
5072   LIBS="-lm $LIBS"
5073
5074 else
5075   echo "$ac_t""no" 1>&6
5076 fi
5077
5078   for ac_func in nan copysignf
5079 do
5080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5081 echo "configure:5082: checking for $ac_func" >&5
5082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5083   echo $ac_n "(cached) $ac_c" 1>&6
5084 else
5085   cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089     which can conflict with char $ac_func(); below.  */
5090 #include <assert.h>
5091 /* Override any gcc2 internal prototype to avoid an error.  */
5092 /* We use char because int might match the return type of a gcc2
5093     builtin and then its argument prototype would still apply.  */
5094 char $ac_func();
5095
5096 int main() {
5097
5098 /* The GNU C library defines this for functions which it implements
5099     to always fail with ENOSYS.  Some functions are actually named
5100     something starting with __ and the normal name is an alias.  */
5101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5102 choke me
5103 #else
5104 $ac_func();
5105 #endif
5106
5107 ; return 0; }
5108 EOF
5109 if { (eval echo configure:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5110   rm -rf conftest*
5111   eval "ac_cv_func_$ac_func=yes"
5112 else
5113   echo "configure: failed program was:" >&5
5114   cat conftest.$ac_ext >&5
5115   rm -rf conftest*
5116   eval "ac_cv_func_$ac_func=no"
5117 fi
5118 rm -f conftest*
5119 fi
5120
5121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5122   echo "$ac_t""yes" 1>&6
5123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5124   cat >> confdefs.h <<EOF
5125 #define $ac_tr_func 1
5126 EOF
5127  
5128 else
5129   echo "$ac_t""no" 1>&6
5130 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5131 fi
5132 done
5133
5134
5135
5136           USE_COMPLEX_LONG_DOUBLE=no
5137   if test x$ac_cv_func_copysignl = x"yes"; then
5138     USE_COMPLEX_LONG_DOUBLE=yes
5139     for ac_func in signbitl
5140 do
5141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5142 echo "configure:5143: checking for $ac_func" >&5
5143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5144   echo $ac_n "(cached) $ac_c" 1>&6
5145 else
5146   cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* System header to define __stub macros and hopefully few prototypes,
5150     which can conflict with char $ac_func(); below.  */
5151 #include <assert.h>
5152 /* Override any gcc2 internal prototype to avoid an error.  */
5153 /* We use char because int might match the return type of a gcc2
5154     builtin and then its argument prototype would still apply.  */
5155 char $ac_func();
5156
5157 int main() {
5158
5159 /* The GNU C library defines this for functions which it implements
5160     to always fail with ENOSYS.  Some functions are actually named
5161     something starting with __ and the normal name is an alias.  */
5162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5163 choke me
5164 #else
5165 $ac_func();
5166 #endif
5167
5168 ; return 0; }
5169 EOF
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5171   rm -rf conftest*
5172   eval "ac_cv_func_$ac_func=yes"
5173 else
5174   echo "configure: failed program was:" >&5
5175   cat conftest.$ac_ext >&5
5176   rm -rf conftest*
5177   eval "ac_cv_func_$ac_func=no"
5178 fi
5179 rm -f conftest*
5180 fi
5181
5182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5183   echo "$ac_t""yes" 1>&6
5184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5185   cat >> confdefs.h <<EOF
5186 #define $ac_tr_func 1
5187 EOF
5188  
5189 else
5190   echo "$ac_t""no" 1>&6
5191 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5192 fi
5193 done
5194
5195
5196   fi
5197
5198   
5199
5200       
5201
5202       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5203 echo "configure:5204: checking for mbstate_t" >&5
5204   cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 #include <wchar.h>
5208 int main() {
5209 mbstate_t teststate;
5210 ; return 0; }
5211 EOF
5212 if { (eval echo configure:5213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5213   rm -rf conftest*
5214   have_mbstate_t=yes
5215 else
5216   echo "configure: failed program was:" >&5
5217   cat conftest.$ac_ext >&5
5218   rm -rf conftest*
5219   have_mbstate_t=no
5220 fi
5221 rm -f conftest*
5222   echo "$ac_t""$have_mbstate_t" 1>&6
5223   if test x"$have_mbstate_t" = xyes; then
5224     cat >> confdefs.h <<\EOF
5225 #define HAVE_MBSTATE_T 1
5226 EOF
5227
5228   fi
5229
5230     for ac_hdr in wchar.h
5231 do
5232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5234 echo "configure:5235: checking for $ac_hdr" >&5
5235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5236   echo $ac_n "(cached) $ac_c" 1>&6
5237 else
5238   cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 #include <$ac_hdr>
5242 EOF
5243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5244 { (eval echo configure:5245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5246 if test -z "$ac_err"; then
5247   rm -rf conftest*
5248   eval "ac_cv_header_$ac_safe=yes"
5249 else
5250   echo "$ac_err" >&5
5251   echo "configure: failed program was:" >&5
5252   cat conftest.$ac_ext >&5
5253   rm -rf conftest*
5254   eval "ac_cv_header_$ac_safe=no"
5255 fi
5256 rm -f conftest*
5257 fi
5258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5259   echo "$ac_t""yes" 1>&6
5260     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5261   cat >> confdefs.h <<EOF
5262 #define $ac_tr_hdr 1
5263 EOF
5264  ac_has_wchar_h=yes
5265 else
5266   echo "$ac_t""no" 1>&6
5267 ac_has_wchar_h=no
5268 fi
5269 done
5270
5271   for ac_hdr in wctype.h
5272 do
5273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_hdr" >&5
5276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5277   echo $ac_n "(cached) $ac_c" 1>&6
5278 else
5279   cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 #include <$ac_hdr>
5283 EOF
5284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5285 { (eval echo configure:5286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5287 if test -z "$ac_err"; then
5288   rm -rf conftest*
5289   eval "ac_cv_header_$ac_safe=yes"
5290 else
5291   echo "$ac_err" >&5
5292   echo "configure: failed program was:" >&5
5293   cat conftest.$ac_ext >&5
5294   rm -rf conftest*
5295   eval "ac_cv_header_$ac_safe=no"
5296 fi
5297 rm -f conftest*
5298 fi
5299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5300   echo "$ac_t""yes" 1>&6
5301     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5302   cat >> confdefs.h <<EOF
5303 #define $ac_tr_hdr 1
5304 EOF
5305  ac_has_wctype_h=yes
5306 else
5307   echo "$ac_t""no" 1>&6
5308 ac_has_wctype_h=no
5309 fi
5310 done
5311
5312   
5313     if test x"$ac_has_wchar_h" = xyes &&
5314      test x"$ac_has_wctype_h" = xyes &&
5315      test x"$enable_c_mbchar" != xno; then
5316       
5317             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5318 echo "configure:5319: checking for WCHAR_MIN and WCHAR_MAX" >&5
5319     cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 #include <wchar.h>
5323 int main() {
5324 int i = WCHAR_MIN; int j = WCHAR_MAX;
5325 ; return 0; }
5326 EOF
5327 if { (eval echo configure:5328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328   rm -rf conftest*
5329   has_wchar_minmax=yes
5330 else
5331   echo "configure: failed program was:" >&5
5332   cat conftest.$ac_ext >&5
5333   rm -rf conftest*
5334   has_wchar_minmax=no
5335 fi
5336 rm -f conftest*
5337     echo "$ac_t""$has_wchar_minmax" 1>&6
5338     
5339             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5340 echo "configure:5341: checking for WEOF" >&5
5341     cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5344
5345       #include <wchar.h>
5346       #include <stddef.h>
5347 int main() {
5348 wint_t i = WEOF;
5349 ; return 0; }
5350 EOF
5351 if { (eval echo configure:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5352   rm -rf conftest*
5353   has_weof=yes
5354 else
5355   echo "configure: failed program was:" >&5
5356   cat conftest.$ac_ext >&5
5357   rm -rf conftest*
5358   has_weof=no
5359 fi
5360 rm -f conftest*
5361     echo "$ac_t""$has_weof" 1>&6
5362   
5363         ac_wfuncs=yes
5364     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5365 do
5366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_func" >&5
5368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5369   echo $ac_n "(cached) $ac_c" 1>&6
5370 else
5371   cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 /* System header to define __stub macros and hopefully few prototypes,
5375     which can conflict with char $ac_func(); below.  */
5376 #include <assert.h>
5377 /* Override any gcc2 internal prototype to avoid an error.  */
5378 /* We use char because int might match the return type of a gcc2
5379     builtin and then its argument prototype would still apply.  */
5380 char $ac_func();
5381
5382 int main() {
5383
5384 /* The GNU C library defines this for functions which it implements
5385     to always fail with ENOSYS.  Some functions are actually named
5386     something starting with __ and the normal name is an alias.  */
5387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5388 choke me
5389 #else
5390 $ac_func();
5391 #endif
5392
5393 ; return 0; }
5394 EOF
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5396   rm -rf conftest*
5397   eval "ac_cv_func_$ac_func=yes"
5398 else
5399   echo "configure: failed program was:" >&5
5400   cat conftest.$ac_ext >&5
5401   rm -rf conftest*
5402   eval "ac_cv_func_$ac_func=no"
5403 fi
5404 rm -f conftest*
5405 fi
5406
5407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5408   echo "$ac_t""yes" 1>&6
5409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5410   cat >> confdefs.h <<EOF
5411 #define $ac_tr_func 1
5412 EOF
5413  
5414 else
5415   echo "$ac_t""no" 1>&6
5416 \
5417     ac_wfuncs=no
5418 fi
5419 done
5420
5421   
5422         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5423     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5424     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5425     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5426     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5427     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5428 do
5429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_func" >&5
5431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5432   echo $ac_n "(cached) $ac_c" 1>&6
5433 else
5434   cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438     which can conflict with char $ac_func(); below.  */
5439 #include <assert.h>
5440 /* Override any gcc2 internal prototype to avoid an error.  */
5441 /* We use char because int might match the return type of a gcc2
5442     builtin and then its argument prototype would still apply.  */
5443 char $ac_func();
5444
5445 int main() {
5446
5447 /* The GNU C library defines this for functions which it implements
5448     to always fail with ENOSYS.  Some functions are actually named
5449     something starting with __ and the normal name is an alias.  */
5450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5451 choke me
5452 #else
5453 $ac_func();
5454 #endif
5455
5456 ; return 0; }
5457 EOF
5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459   rm -rf conftest*
5460   eval "ac_cv_func_$ac_func=yes"
5461 else
5462   echo "configure: failed program was:" >&5
5463   cat conftest.$ac_ext >&5
5464   rm -rf conftest*
5465   eval "ac_cv_func_$ac_func=no"
5466 fi
5467 rm -f conftest*
5468 fi
5469
5470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5471   echo "$ac_t""yes" 1>&6
5472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5473   cat >> confdefs.h <<EOF
5474 #define $ac_tr_func 1
5475 EOF
5476  
5477 else
5478   echo "$ac_t""no" 1>&6
5479 \
5480     ac_wfuncs=no
5481 fi
5482 done
5483
5484
5485     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5486 echo "configure:5487: checking for ISO C99 wchar_t support" >&5
5487     if test x"$has_weof" = xyes &&
5488        test x"$has_wchar_minmax" = xyes &&
5489        test x"$ac_wfuncs" = xyes; then
5490       ac_isoC99_wchar_t=yes
5491     else
5492       ac_isoC99_wchar_t=no
5493     fi
5494     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5495   
5496             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5497 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5498 echo "configure:5499: checking for iconv.h" >&5
5499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5500   echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502   cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 #include <iconv.h>
5506 EOF
5507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5508 { (eval echo configure:5509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5510 if test -z "$ac_err"; then
5511   rm -rf conftest*
5512   eval "ac_cv_header_$ac_safe=yes"
5513 else
5514   echo "$ac_err" >&5
5515   echo "configure: failed program was:" >&5
5516   cat conftest.$ac_ext >&5
5517   rm -rf conftest*
5518   eval "ac_cv_header_$ac_safe=no"
5519 fi
5520 rm -f conftest*
5521 fi
5522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5523   echo "$ac_t""yes" 1>&6
5524   ac_has_iconv_h=yes
5525 else
5526   echo "$ac_t""no" 1>&6
5527 ac_has_iconv_h=no
5528 fi
5529
5530     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5531 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5532 echo "configure:5533: checking for langinfo.h" >&5
5533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5534   echo $ac_n "(cached) $ac_c" 1>&6
5535 else
5536   cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5539 #include <langinfo.h>
5540 EOF
5541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5542 { (eval echo configure:5543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5544 if test -z "$ac_err"; then
5545   rm -rf conftest*
5546   eval "ac_cv_header_$ac_safe=yes"
5547 else
5548   echo "$ac_err" >&5
5549   echo "configure: failed program was:" >&5
5550   cat conftest.$ac_ext >&5
5551   rm -rf conftest*
5552   eval "ac_cv_header_$ac_safe=no"
5553 fi
5554 rm -f conftest*
5555 fi
5556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5557   echo "$ac_t""yes" 1>&6
5558   ac_has_langinfo_h=yes
5559 else
5560   echo "$ac_t""no" 1>&6
5561 ac_has_langinfo_h=no
5562 fi
5563
5564
5565         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5566 echo "configure:5567: checking for iconv in -liconv" >&5
5567 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5569   echo $ac_n "(cached) $ac_c" 1>&6
5570 else
5571   ac_save_LIBS="$LIBS"
5572 LIBS="-liconv  $LIBS"
5573 cat > conftest.$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5576 /* Override any gcc2 internal prototype to avoid an error.  */
5577 /* We use char because int might match the return type of a gcc2
5578     builtin and then its argument prototype would still apply.  */
5579 char iconv();
5580
5581 int main() {
5582 iconv()
5583 ; return 0; }
5584 EOF
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586   rm -rf conftest*
5587   eval "ac_cv_lib_$ac_lib_var=yes"
5588 else
5589   echo "configure: failed program was:" >&5
5590   cat conftest.$ac_ext >&5
5591   rm -rf conftest*
5592   eval "ac_cv_lib_$ac_lib_var=no"
5593 fi
5594 rm -f conftest*
5595 LIBS="$ac_save_LIBS"
5596
5597 fi
5598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5599   echo "$ac_t""yes" 1>&6
5600   libiconv="-liconv"
5601 else
5602   echo "$ac_t""no" 1>&6
5603 fi
5604
5605     ac_save_LIBS="$LIBS"
5606     LIBS="$LIBS $libiconv"
5607
5608     for ac_func in iconv_open iconv_close iconv nl_langinfo
5609 do
5610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_func" >&5
5612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5613   echo $ac_n "(cached) $ac_c" 1>&6
5614 else
5615   cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619     which can conflict with char $ac_func(); below.  */
5620 #include <assert.h>
5621 /* Override any gcc2 internal prototype to avoid an error.  */
5622 /* We use char because int might match the return type of a gcc2
5623     builtin and then its argument prototype would still apply.  */
5624 char $ac_func();
5625
5626 int main() {
5627
5628 /* The GNU C library defines this for functions which it implements
5629     to always fail with ENOSYS.  Some functions are actually named
5630     something starting with __ and the normal name is an alias.  */
5631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5632 choke me
5633 #else
5634 $ac_func();
5635 #endif
5636
5637 ; return 0; }
5638 EOF
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5640   rm -rf conftest*
5641   eval "ac_cv_func_$ac_func=yes"
5642 else
5643   echo "configure: failed program was:" >&5
5644   cat conftest.$ac_ext >&5
5645   rm -rf conftest*
5646   eval "ac_cv_func_$ac_func=no"
5647 fi
5648 rm -f conftest*
5649 fi
5650
5651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5652   echo "$ac_t""yes" 1>&6
5653     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5654   cat >> confdefs.h <<EOF
5655 #define $ac_tr_func 1
5656 EOF
5657  \
5658     ac_XPG2funcs=yes
5659 else
5660   echo "$ac_t""no" 1>&6
5661 ac_XPG2funcs=no
5662 fi
5663 done
5664
5665   
5666     LIBS="$ac_save_LIBS"
5667
5668     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5669 echo "configure:5670: checking for XPG2 wchar_t support" >&5
5670     if test x"$ac_has_iconv_h" = xyes &&
5671        test x"$ac_has_langinfo_h" = xyes &&
5672        test x"$ac_XPG2funcs" = xyes; then
5673       ac_XPG2_wchar_t=yes
5674     else
5675       ac_XPG2_wchar_t=no
5676     fi
5677     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5678   
5679             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5680 echo "configure:5681: checking for enabled wchar_t specializations" >&5
5681     if test x"$ac_isoC99_wchar_t" = xyes &&
5682        test x"$ac_XPG2_wchar_t" = xyes; then
5683       cat >> confdefs.h <<\EOF
5684 #define _GLIBCPP_USE_WCHAR_T 1
5685 EOF
5686
5687       echo "$ac_t"""yes"" 1>&6
5688     else
5689       echo "$ac_t"""no"" 1>&6
5690     fi
5691   else
5692         echo "configure: warning: wchar_t support disabled." 1>&2
5693   fi
5694
5695       os_include_dir="config/os/hpux"
5696       cat >> confdefs.h <<\EOF
5697 #define HAVE_COPYSIGN 1
5698 EOF
5699
5700       cat >> confdefs.h <<\EOF
5701 #define HAVE_COPYSIGNF 1
5702 EOF
5703
5704       cat >> confdefs.h <<\EOF
5705 #define HAVE_FINITEF 1
5706 EOF
5707
5708       cat >> confdefs.h <<\EOF
5709 #define HAVE_FREXPF 1
5710 EOF
5711
5712       cat >> confdefs.h <<\EOF
5713 #define HAVE_HYPOT 1
5714 EOF
5715
5716       cat >> confdefs.h <<\EOF
5717 #define HAVE_SINCOS 1
5718 EOF
5719
5720       cat >> confdefs.h <<\EOF
5721 #define HAVE_SINCOSF 1
5722 EOF
5723
5724       ;;
5725     *-netbsd*)
5726       # Check for available headers.
5727       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5728         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5729         fp.h locale.h float.h inttypes.h
5730 do
5731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5733 echo "configure:5734: checking for $ac_hdr" >&5
5734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5735   echo $ac_n "(cached) $ac_c" 1>&6
5736 else
5737   cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 #include <$ac_hdr>
5741 EOF
5742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5743 { (eval echo configure:5744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5745 if test -z "$ac_err"; then
5746   rm -rf conftest*
5747   eval "ac_cv_header_$ac_safe=yes"
5748 else
5749   echo "$ac_err" >&5
5750   echo "configure: failed program was:" >&5
5751   cat conftest.$ac_ext >&5
5752   rm -rf conftest*
5753   eval "ac_cv_header_$ac_safe=no"
5754 fi
5755 rm -f conftest*
5756 fi
5757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5758   echo "$ac_t""yes" 1>&6
5759     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5760   cat >> confdefs.h <<EOF
5761 #define $ac_tr_hdr 1
5762 EOF
5763  
5764 else
5765   echo "$ac_t""no" 1>&6
5766 fi
5767 done
5768
5769       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5770        
5771       
5772   # If we're not using GNU ld, then there's no point in even trying these
5773   # tests.  Check for that first.  We should have already tested for gld
5774   # by now (in libtool), but require it now just to be safe...
5775   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5776   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5777   
5778
5779   # The name set by libtool depends on the version of libtool.  Shame on us
5780   # for depending on an impl detail, but c'est la vie.  Older versions used
5781   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5782   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5783   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5784   # set (hence we're using an older libtool), then set it.
5785   if test x${with_gnu_ld+set} != xset; then
5786     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5787       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5788       with_gnu_ld=no
5789     else
5790       with_gnu_ld=$ac_cv_prog_gnu_ld
5791     fi
5792   fi
5793
5794   # Start by getting the version number.  I think the libtool test already
5795   # does some of this, but throws away the result.
5796   
5797   ldver=`$LD --version 2>/dev/null | head -1 | \
5798          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5799   
5800   glibcpp_gnu_ld_version=`echo $ldver | \
5801          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5802
5803   # Set --gc-sections.
5804   if test "$with_gnu_ld" = "notbroken"; then
5805     # GNU ld it is!  Joy and bunny rabbits!
5806
5807     # All these tests are for C++; save the language and the compiler flags.
5808     # Need to do this so that g++ won't try to link in libstdc++
5809     ac_test_CFLAGS="${CFLAGS+set}"
5810     ac_save_CFLAGS="$CFLAGS"
5811     CFLAGS='-x c++  -Wl,--gc-sections'
5812
5813     # Check for -Wl,--gc-sections
5814     # XXX This test is broken at the moment, as symbols required for
5815     # linking are now in libsupc++ (not built yet.....). In addition, 
5816     # this test has cored on solaris in the past. In addition,
5817     # --gc-sections doesn't really work at the moment (keeps on discarding
5818     # used sections, first .eh_frame and now some of the glibc sections for
5819     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5820     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5821 echo "configure:5822: checking for ld that supports -Wl,--gc-sections" >&5
5822     if test "$cross_compiling" = yes; then
5823   ac_sectionLDflags=yes
5824 else
5825   cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5828
5829      int main(void) 
5830      {
5831        try { throw 1; }
5832        catch (...) { };
5833        return 0;
5834      }
5835     
5836 EOF
5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5838 then
5839   ac_sectionLDflags=yes
5840 else
5841   echo "configure: failed program was:" >&5
5842   cat conftest.$ac_ext >&5
5843   rm -fr conftest*
5844   ac_sectionLDflags=no
5845 fi
5846 rm -fr conftest*
5847 fi
5848
5849     if test "$ac_test_CFLAGS" = set; then
5850       CFLAGS="$ac_save_CFLAGS"
5851     else
5852       # this is the suspicious part
5853       CFLAGS=''
5854     fi
5855     if test "$ac_sectionLDflags" = "yes"; then
5856       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5857     fi
5858     echo "$ac_t""$ac_sectionLDflags" 1>&6
5859   fi
5860
5861   # Set linker optimization flags.
5862   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5863     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5864   fi
5865
5866   
5867   
5868
5869       
5870     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5871 echo "configure:5872: checking for main in -lm" >&5
5872 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5874   echo $ac_n "(cached) $ac_c" 1>&6
5875 else
5876   ac_save_LIBS="$LIBS"
5877 LIBS="-lm  $LIBS"
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881
5882 int main() {
5883 main()
5884 ; return 0; }
5885 EOF
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5887   rm -rf conftest*
5888   eval "ac_cv_lib_$ac_lib_var=yes"
5889 else
5890   echo "configure: failed program was:" >&5
5891   cat conftest.$ac_ext >&5
5892   rm -rf conftest*
5893   eval "ac_cv_lib_$ac_lib_var=no"
5894 fi
5895 rm -f conftest*
5896 LIBS="$ac_save_LIBS"
5897
5898 fi
5899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5900   echo "$ac_t""yes" 1>&6
5901     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5902     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5903   cat >> confdefs.h <<EOF
5904 #define $ac_tr_lib 1
5905 EOF
5906
5907   LIBS="-lm $LIBS"
5908
5909 else
5910   echo "$ac_t""no" 1>&6
5911 fi
5912
5913   for ac_func in nan copysignf
5914 do
5915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5916 echo "configure:5917: checking for $ac_func" >&5
5917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5918   echo $ac_n "(cached) $ac_c" 1>&6
5919 else
5920   cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* System header to define __stub macros and hopefully few prototypes,
5924     which can conflict with char $ac_func(); below.  */
5925 #include <assert.h>
5926 /* Override any gcc2 internal prototype to avoid an error.  */
5927 /* We use char because int might match the return type of a gcc2
5928     builtin and then its argument prototype would still apply.  */
5929 char $ac_func();
5930
5931 int main() {
5932
5933 /* The GNU C library defines this for functions which it implements
5934     to always fail with ENOSYS.  Some functions are actually named
5935     something starting with __ and the normal name is an alias.  */
5936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5937 choke me
5938 #else
5939 $ac_func();
5940 #endif
5941
5942 ; return 0; }
5943 EOF
5944 if { (eval echo configure:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945   rm -rf conftest*
5946   eval "ac_cv_func_$ac_func=yes"
5947 else
5948   echo "configure: failed program was:" >&5
5949   cat conftest.$ac_ext >&5
5950   rm -rf conftest*
5951   eval "ac_cv_func_$ac_func=no"
5952 fi
5953 rm -f conftest*
5954 fi
5955
5956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5957   echo "$ac_t""yes" 1>&6
5958     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5959   cat >> confdefs.h <<EOF
5960 #define $ac_tr_func 1
5961 EOF
5962  
5963 else
5964   echo "$ac_t""no" 1>&6
5965 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5966 fi
5967 done
5968
5969
5970
5971           USE_COMPLEX_LONG_DOUBLE=no
5972   if test x$ac_cv_func_copysignl = x"yes"; then
5973     USE_COMPLEX_LONG_DOUBLE=yes
5974     for ac_func in signbitl
5975 do
5976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5977 echo "configure:5978: checking for $ac_func" >&5
5978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5979   echo $ac_n "(cached) $ac_c" 1>&6
5980 else
5981   cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* System header to define __stub macros and hopefully few prototypes,
5985     which can conflict with char $ac_func(); below.  */
5986 #include <assert.h>
5987 /* Override any gcc2 internal prototype to avoid an error.  */
5988 /* We use char because int might match the return type of a gcc2
5989     builtin and then its argument prototype would still apply.  */
5990 char $ac_func();
5991
5992 int main() {
5993
5994 /* The GNU C library defines this for functions which it implements
5995     to always fail with ENOSYS.  Some functions are actually named
5996     something starting with __ and the normal name is an alias.  */
5997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5998 choke me
5999 #else
6000 $ac_func();
6001 #endif
6002
6003 ; return 0; }
6004 EOF
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6006   rm -rf conftest*
6007   eval "ac_cv_func_$ac_func=yes"
6008 else
6009   echo "configure: failed program was:" >&5
6010   cat conftest.$ac_ext >&5
6011   rm -rf conftest*
6012   eval "ac_cv_func_$ac_func=no"
6013 fi
6014 rm -f conftest*
6015 fi
6016
6017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6018   echo "$ac_t""yes" 1>&6
6019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020   cat >> confdefs.h <<EOF
6021 #define $ac_tr_func 1
6022 EOF
6023  
6024 else
6025   echo "$ac_t""no" 1>&6
6026 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6027 fi
6028 done
6029
6030
6031   fi
6032
6033   
6034
6035       
6036
6037       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6038 echo "configure:6039: checking for mbstate_t" >&5
6039   cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042 #include <wchar.h>
6043 int main() {
6044 mbstate_t teststate;
6045 ; return 0; }
6046 EOF
6047 if { (eval echo configure:6048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6048   rm -rf conftest*
6049   have_mbstate_t=yes
6050 else
6051   echo "configure: failed program was:" >&5
6052   cat conftest.$ac_ext >&5
6053   rm -rf conftest*
6054   have_mbstate_t=no
6055 fi
6056 rm -f conftest*
6057   echo "$ac_t""$have_mbstate_t" 1>&6
6058   if test x"$have_mbstate_t" = xyes; then
6059     cat >> confdefs.h <<\EOF
6060 #define HAVE_MBSTATE_T 1
6061 EOF
6062
6063   fi
6064
6065     for ac_hdr in wchar.h
6066 do
6067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6069 echo "configure:6070: checking for $ac_hdr" >&5
6070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6071   echo $ac_n "(cached) $ac_c" 1>&6
6072 else
6073   cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <$ac_hdr>
6077 EOF
6078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6079 { (eval echo configure:6080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6081 if test -z "$ac_err"; then
6082   rm -rf conftest*
6083   eval "ac_cv_header_$ac_safe=yes"
6084 else
6085   echo "$ac_err" >&5
6086   echo "configure: failed program was:" >&5
6087   cat conftest.$ac_ext >&5
6088   rm -rf conftest*
6089   eval "ac_cv_header_$ac_safe=no"
6090 fi
6091 rm -f conftest*
6092 fi
6093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6094   echo "$ac_t""yes" 1>&6
6095     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6096   cat >> confdefs.h <<EOF
6097 #define $ac_tr_hdr 1
6098 EOF
6099  ac_has_wchar_h=yes
6100 else
6101   echo "$ac_t""no" 1>&6
6102 ac_has_wchar_h=no
6103 fi
6104 done
6105
6106   for ac_hdr in wctype.h
6107 do
6108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_hdr" >&5
6111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6112   echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114   cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 #include <$ac_hdr>
6118 EOF
6119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6120 { (eval echo configure:6121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6122 if test -z "$ac_err"; then
6123   rm -rf conftest*
6124   eval "ac_cv_header_$ac_safe=yes"
6125 else
6126   echo "$ac_err" >&5
6127   echo "configure: failed program was:" >&5
6128   cat conftest.$ac_ext >&5
6129   rm -rf conftest*
6130   eval "ac_cv_header_$ac_safe=no"
6131 fi
6132 rm -f conftest*
6133 fi
6134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6135   echo "$ac_t""yes" 1>&6
6136     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6137   cat >> confdefs.h <<EOF
6138 #define $ac_tr_hdr 1
6139 EOF
6140  ac_has_wctype_h=yes
6141 else
6142   echo "$ac_t""no" 1>&6
6143 ac_has_wctype_h=no
6144 fi
6145 done
6146
6147   
6148     if test x"$ac_has_wchar_h" = xyes &&
6149      test x"$ac_has_wctype_h" = xyes &&
6150      test x"$enable_c_mbchar" != xno; then
6151       
6152             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6153 echo "configure:6154: checking for WCHAR_MIN and WCHAR_MAX" >&5
6154     cat > conftest.$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6157 #include <wchar.h>
6158 int main() {
6159 int i = WCHAR_MIN; int j = WCHAR_MAX;
6160 ; return 0; }
6161 EOF
6162 if { (eval echo configure:6163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6163   rm -rf conftest*
6164   has_wchar_minmax=yes
6165 else
6166   echo "configure: failed program was:" >&5
6167   cat conftest.$ac_ext >&5
6168   rm -rf conftest*
6169   has_wchar_minmax=no
6170 fi
6171 rm -f conftest*
6172     echo "$ac_t""$has_wchar_minmax" 1>&6
6173     
6174             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6175 echo "configure:6176: checking for WEOF" >&5
6176     cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6179
6180       #include <wchar.h>
6181       #include <stddef.h>
6182 int main() {
6183 wint_t i = WEOF;
6184 ; return 0; }
6185 EOF
6186 if { (eval echo configure:6187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6187   rm -rf conftest*
6188   has_weof=yes
6189 else
6190   echo "configure: failed program was:" >&5
6191   cat conftest.$ac_ext >&5
6192   rm -rf conftest*
6193   has_weof=no
6194 fi
6195 rm -f conftest*
6196     echo "$ac_t""$has_weof" 1>&6
6197   
6198         ac_wfuncs=yes
6199     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6200 do
6201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6202 echo "configure:6203: checking for $ac_func" >&5
6203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6204   echo $ac_n "(cached) $ac_c" 1>&6
6205 else
6206   cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 /* System header to define __stub macros and hopefully few prototypes,
6210     which can conflict with char $ac_func(); below.  */
6211 #include <assert.h>
6212 /* Override any gcc2 internal prototype to avoid an error.  */
6213 /* We use char because int might match the return type of a gcc2
6214     builtin and then its argument prototype would still apply.  */
6215 char $ac_func();
6216
6217 int main() {
6218
6219 /* The GNU C library defines this for functions which it implements
6220     to always fail with ENOSYS.  Some functions are actually named
6221     something starting with __ and the normal name is an alias.  */
6222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6223 choke me
6224 #else
6225 $ac_func();
6226 #endif
6227
6228 ; return 0; }
6229 EOF
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231   rm -rf conftest*
6232   eval "ac_cv_func_$ac_func=yes"
6233 else
6234   echo "configure: failed program was:" >&5
6235   cat conftest.$ac_ext >&5
6236   rm -rf conftest*
6237   eval "ac_cv_func_$ac_func=no"
6238 fi
6239 rm -f conftest*
6240 fi
6241
6242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6243   echo "$ac_t""yes" 1>&6
6244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6245   cat >> confdefs.h <<EOF
6246 #define $ac_tr_func 1
6247 EOF
6248  
6249 else
6250   echo "$ac_t""no" 1>&6
6251 \
6252     ac_wfuncs=no
6253 fi
6254 done
6255
6256   
6257         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6258     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6259     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6260     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6261     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6262     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6263 do
6264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_func" >&5
6266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6267   echo $ac_n "(cached) $ac_c" 1>&6
6268 else
6269   cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273     which can conflict with char $ac_func(); below.  */
6274 #include <assert.h>
6275 /* Override any gcc2 internal prototype to avoid an error.  */
6276 /* We use char because int might match the return type of a gcc2
6277     builtin and then its argument prototype would still apply.  */
6278 char $ac_func();
6279
6280 int main() {
6281
6282 /* The GNU C library defines this for functions which it implements
6283     to always fail with ENOSYS.  Some functions are actually named
6284     something starting with __ and the normal name is an alias.  */
6285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6286 choke me
6287 #else
6288 $ac_func();
6289 #endif
6290
6291 ; return 0; }
6292 EOF
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6294   rm -rf conftest*
6295   eval "ac_cv_func_$ac_func=yes"
6296 else
6297   echo "configure: failed program was:" >&5
6298   cat conftest.$ac_ext >&5
6299   rm -rf conftest*
6300   eval "ac_cv_func_$ac_func=no"
6301 fi
6302 rm -f conftest*
6303 fi
6304
6305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6306   echo "$ac_t""yes" 1>&6
6307     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6308   cat >> confdefs.h <<EOF
6309 #define $ac_tr_func 1
6310 EOF
6311  
6312 else
6313   echo "$ac_t""no" 1>&6
6314 \
6315     ac_wfuncs=no
6316 fi
6317 done
6318
6319
6320     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6321 echo "configure:6322: checking for ISO C99 wchar_t support" >&5
6322     if test x"$has_weof" = xyes &&
6323        test x"$has_wchar_minmax" = xyes &&
6324        test x"$ac_wfuncs" = xyes; then
6325       ac_isoC99_wchar_t=yes
6326     else
6327       ac_isoC99_wchar_t=no
6328     fi
6329     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6330   
6331             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6332 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6333 echo "configure:6334: checking for iconv.h" >&5
6334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6335   echo $ac_n "(cached) $ac_c" 1>&6
6336 else
6337   cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6340 #include <iconv.h>
6341 EOF
6342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6343 { (eval echo configure:6344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6345 if test -z "$ac_err"; then
6346   rm -rf conftest*
6347   eval "ac_cv_header_$ac_safe=yes"
6348 else
6349   echo "$ac_err" >&5
6350   echo "configure: failed program was:" >&5
6351   cat conftest.$ac_ext >&5
6352   rm -rf conftest*
6353   eval "ac_cv_header_$ac_safe=no"
6354 fi
6355 rm -f conftest*
6356 fi
6357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6358   echo "$ac_t""yes" 1>&6
6359   ac_has_iconv_h=yes
6360 else
6361   echo "$ac_t""no" 1>&6
6362 ac_has_iconv_h=no
6363 fi
6364
6365     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6366 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6367 echo "configure:6368: checking for langinfo.h" >&5
6368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6369   echo $ac_n "(cached) $ac_c" 1>&6
6370 else
6371   cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 #include <langinfo.h>
6375 EOF
6376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6377 { (eval echo configure:6378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6379 if test -z "$ac_err"; then
6380   rm -rf conftest*
6381   eval "ac_cv_header_$ac_safe=yes"
6382 else
6383   echo "$ac_err" >&5
6384   echo "configure: failed program was:" >&5
6385   cat conftest.$ac_ext >&5
6386   rm -rf conftest*
6387   eval "ac_cv_header_$ac_safe=no"
6388 fi
6389 rm -f conftest*
6390 fi
6391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6392   echo "$ac_t""yes" 1>&6
6393   ac_has_langinfo_h=yes
6394 else
6395   echo "$ac_t""no" 1>&6
6396 ac_has_langinfo_h=no
6397 fi
6398
6399
6400         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6401 echo "configure:6402: checking for iconv in -liconv" >&5
6402 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6404   echo $ac_n "(cached) $ac_c" 1>&6
6405 else
6406   ac_save_LIBS="$LIBS"
6407 LIBS="-liconv  $LIBS"
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6411 /* Override any gcc2 internal prototype to avoid an error.  */
6412 /* We use char because int might match the return type of a gcc2
6413     builtin and then its argument prototype would still apply.  */
6414 char iconv();
6415
6416 int main() {
6417 iconv()
6418 ; return 0; }
6419 EOF
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6421   rm -rf conftest*
6422   eval "ac_cv_lib_$ac_lib_var=yes"
6423 else
6424   echo "configure: failed program was:" >&5
6425   cat conftest.$ac_ext >&5
6426   rm -rf conftest*
6427   eval "ac_cv_lib_$ac_lib_var=no"
6428 fi
6429 rm -f conftest*
6430 LIBS="$ac_save_LIBS"
6431
6432 fi
6433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6434   echo "$ac_t""yes" 1>&6
6435   libiconv="-liconv"
6436 else
6437   echo "$ac_t""no" 1>&6
6438 fi
6439
6440     ac_save_LIBS="$LIBS"
6441     LIBS="$LIBS $libiconv"
6442
6443     for ac_func in iconv_open iconv_close iconv nl_langinfo
6444 do
6445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6446 echo "configure:6447: checking for $ac_func" >&5
6447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6448   echo $ac_n "(cached) $ac_c" 1>&6
6449 else
6450   cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6453 /* System header to define __stub macros and hopefully few prototypes,
6454     which can conflict with char $ac_func(); below.  */
6455 #include <assert.h>
6456 /* Override any gcc2 internal prototype to avoid an error.  */
6457 /* We use char because int might match the return type of a gcc2
6458     builtin and then its argument prototype would still apply.  */
6459 char $ac_func();
6460
6461 int main() {
6462
6463 /* The GNU C library defines this for functions which it implements
6464     to always fail with ENOSYS.  Some functions are actually named
6465     something starting with __ and the normal name is an alias.  */
6466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6467 choke me
6468 #else
6469 $ac_func();
6470 #endif
6471
6472 ; return 0; }
6473 EOF
6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6475   rm -rf conftest*
6476   eval "ac_cv_func_$ac_func=yes"
6477 else
6478   echo "configure: failed program was:" >&5
6479   cat conftest.$ac_ext >&5
6480   rm -rf conftest*
6481   eval "ac_cv_func_$ac_func=no"
6482 fi
6483 rm -f conftest*
6484 fi
6485
6486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6487   echo "$ac_t""yes" 1>&6
6488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6489   cat >> confdefs.h <<EOF
6490 #define $ac_tr_func 1
6491 EOF
6492  \
6493     ac_XPG2funcs=yes
6494 else
6495   echo "$ac_t""no" 1>&6
6496 ac_XPG2funcs=no
6497 fi
6498 done
6499
6500   
6501     LIBS="$ac_save_LIBS"
6502
6503     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6504 echo "configure:6505: checking for XPG2 wchar_t support" >&5
6505     if test x"$ac_has_iconv_h" = xyes &&
6506        test x"$ac_has_langinfo_h" = xyes &&
6507        test x"$ac_XPG2funcs" = xyes; then
6508       ac_XPG2_wchar_t=yes
6509     else
6510       ac_XPG2_wchar_t=no
6511     fi
6512     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6513   
6514             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6515 echo "configure:6516: checking for enabled wchar_t specializations" >&5
6516     if test x"$ac_isoC99_wchar_t" = xyes &&
6517        test x"$ac_XPG2_wchar_t" = xyes; then
6518       cat >> confdefs.h <<\EOF
6519 #define _GLIBCPP_USE_WCHAR_T 1
6520 EOF
6521
6522       echo "$ac_t"""yes"" 1>&6
6523     else
6524       echo "$ac_t"""no"" 1>&6
6525     fi
6526   else
6527         echo "configure: warning: wchar_t support disabled." 1>&2
6528   fi
6529
6530       os_include_dir="config/os/bsd/netbsd"
6531       cat >> confdefs.h <<\EOF
6532 #define HAVE_COPYSIGN 1
6533 EOF
6534
6535       cat >> confdefs.h <<\EOF
6536 #define HAVE_COPYSIGNF 1
6537 EOF
6538
6539       cat >> confdefs.h <<\EOF
6540 #define HAVE_FINITEF 1
6541 EOF
6542
6543       cat >> confdefs.h <<\EOF
6544 #define HAVE_FREXPF 1
6545 EOF
6546
6547       cat >> confdefs.h <<\EOF
6548 #define HAVE_HYPOTF 1
6549 EOF
6550
6551       ;;
6552     *-mingw32*)
6553       for ac_hdr in sys/types.h locale.h float.h
6554 do
6555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6557 echo "configure:6558: checking for $ac_hdr" >&5
6558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6559   echo $ac_n "(cached) $ac_c" 1>&6
6560 else
6561   cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 #include <$ac_hdr>
6565 EOF
6566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6567 { (eval echo configure:6568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6569 if test -z "$ac_err"; then
6570   rm -rf conftest*
6571   eval "ac_cv_header_$ac_safe=yes"
6572 else
6573   echo "$ac_err" >&5
6574   echo "configure: failed program was:" >&5
6575   cat conftest.$ac_ext >&5
6576   rm -rf conftest*
6577   eval "ac_cv_header_$ac_safe=no"
6578 fi
6579 rm -f conftest*
6580 fi
6581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6582   echo "$ac_t""yes" 1>&6
6583     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6584   cat >> confdefs.h <<EOF
6585 #define $ac_tr_hdr 1
6586 EOF
6587  
6588 else
6589   echo "$ac_t""no" 1>&6
6590 fi
6591 done
6592
6593       
6594   # If we're not using GNU ld, then there's no point in even trying these
6595   # tests.  Check for that first.  We should have already tested for gld
6596   # by now (in libtool), but require it now just to be safe...
6597   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6598   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6599   
6600
6601   # The name set by libtool depends on the version of libtool.  Shame on us
6602   # for depending on an impl detail, but c'est la vie.  Older versions used
6603   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6604   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6605   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6606   # set (hence we're using an older libtool), then set it.
6607   if test x${with_gnu_ld+set} != xset; then
6608     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6609       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6610       with_gnu_ld=no
6611     else
6612       with_gnu_ld=$ac_cv_prog_gnu_ld
6613     fi
6614   fi
6615
6616   # Start by getting the version number.  I think the libtool test already
6617   # does some of this, but throws away the result.
6618   
6619   ldver=`$LD --version 2>/dev/null | head -1 | \
6620          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6621   
6622   glibcpp_gnu_ld_version=`echo $ldver | \
6623          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6624
6625   # Set --gc-sections.
6626   if test "$with_gnu_ld" = "notbroken"; then
6627     # GNU ld it is!  Joy and bunny rabbits!
6628
6629     # All these tests are for C++; save the language and the compiler flags.
6630     # Need to do this so that g++ won't try to link in libstdc++
6631     ac_test_CFLAGS="${CFLAGS+set}"
6632     ac_save_CFLAGS="$CFLAGS"
6633     CFLAGS='-x c++  -Wl,--gc-sections'
6634
6635     # Check for -Wl,--gc-sections
6636     # XXX This test is broken at the moment, as symbols required for
6637     # linking are now in libsupc++ (not built yet.....). In addition, 
6638     # this test has cored on solaris in the past. In addition,
6639     # --gc-sections doesn't really work at the moment (keeps on discarding
6640     # used sections, first .eh_frame and now some of the glibc sections for
6641     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6642     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6643 echo "configure:6644: checking for ld that supports -Wl,--gc-sections" >&5
6644     if test "$cross_compiling" = yes; then
6645   ac_sectionLDflags=yes
6646 else
6647   cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650
6651      int main(void) 
6652      {
6653        try { throw 1; }
6654        catch (...) { };
6655        return 0;
6656      }
6657     
6658 EOF
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6660 then
6661   ac_sectionLDflags=yes
6662 else
6663   echo "configure: failed program was:" >&5
6664   cat conftest.$ac_ext >&5
6665   rm -fr conftest*
6666   ac_sectionLDflags=no
6667 fi
6668 rm -fr conftest*
6669 fi
6670
6671     if test "$ac_test_CFLAGS" = set; then
6672       CFLAGS="$ac_save_CFLAGS"
6673     else
6674       # this is the suspicious part
6675       CFLAGS=''
6676     fi
6677     if test "$ac_sectionLDflags" = "yes"; then
6678       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6679     fi
6680     echo "$ac_t""$ac_sectionLDflags" 1>&6
6681   fi
6682
6683   # Set linker optimization flags.
6684   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6685     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6686   fi
6687
6688   
6689   
6690
6691       
6692     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6693 echo "configure:6694: checking for main in -lm" >&5
6694 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6696   echo $ac_n "(cached) $ac_c" 1>&6
6697 else
6698   ac_save_LIBS="$LIBS"
6699 LIBS="-lm  $LIBS"
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703
6704 int main() {
6705 main()
6706 ; return 0; }
6707 EOF
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709   rm -rf conftest*
6710   eval "ac_cv_lib_$ac_lib_var=yes"
6711 else
6712   echo "configure: failed program was:" >&5
6713   cat conftest.$ac_ext >&5
6714   rm -rf conftest*
6715   eval "ac_cv_lib_$ac_lib_var=no"
6716 fi
6717 rm -f conftest*
6718 LIBS="$ac_save_LIBS"
6719
6720 fi
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722   echo "$ac_t""yes" 1>&6
6723     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6724     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6725   cat >> confdefs.h <<EOF
6726 #define $ac_tr_lib 1
6727 EOF
6728
6729   LIBS="-lm $LIBS"
6730
6731 else
6732   echo "$ac_t""no" 1>&6
6733 fi
6734
6735   for ac_func in nan copysignf
6736 do
6737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6738 echo "configure:6739: checking for $ac_func" >&5
6739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6740   echo $ac_n "(cached) $ac_c" 1>&6
6741 else
6742   cat > conftest.$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6745 /* System header to define __stub macros and hopefully few prototypes,
6746     which can conflict with char $ac_func(); below.  */
6747 #include <assert.h>
6748 /* Override any gcc2 internal prototype to avoid an error.  */
6749 /* We use char because int might match the return type of a gcc2
6750     builtin and then its argument prototype would still apply.  */
6751 char $ac_func();
6752
6753 int main() {
6754
6755 /* The GNU C library defines this for functions which it implements
6756     to always fail with ENOSYS.  Some functions are actually named
6757     something starting with __ and the normal name is an alias.  */
6758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6759 choke me
6760 #else
6761 $ac_func();
6762 #endif
6763
6764 ; return 0; }
6765 EOF
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767   rm -rf conftest*
6768   eval "ac_cv_func_$ac_func=yes"
6769 else
6770   echo "configure: failed program was:" >&5
6771   cat conftest.$ac_ext >&5
6772   rm -rf conftest*
6773   eval "ac_cv_func_$ac_func=no"
6774 fi
6775 rm -f conftest*
6776 fi
6777
6778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6779   echo "$ac_t""yes" 1>&6
6780     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6781   cat >> confdefs.h <<EOF
6782 #define $ac_tr_func 1
6783 EOF
6784  
6785 else
6786   echo "$ac_t""no" 1>&6
6787 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6788 fi
6789 done
6790
6791
6792
6793           USE_COMPLEX_LONG_DOUBLE=no
6794   if test x$ac_cv_func_copysignl = x"yes"; then
6795     USE_COMPLEX_LONG_DOUBLE=yes
6796     for ac_func in signbitl
6797 do
6798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6799 echo "configure:6800: checking for $ac_func" >&5
6800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6801   echo $ac_n "(cached) $ac_c" 1>&6
6802 else
6803   cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* System header to define __stub macros and hopefully few prototypes,
6807     which can conflict with char $ac_func(); below.  */
6808 #include <assert.h>
6809 /* Override any gcc2 internal prototype to avoid an error.  */
6810 /* We use char because int might match the return type of a gcc2
6811     builtin and then its argument prototype would still apply.  */
6812 char $ac_func();
6813
6814 int main() {
6815
6816 /* The GNU C library defines this for functions which it implements
6817     to always fail with ENOSYS.  Some functions are actually named
6818     something starting with __ and the normal name is an alias.  */
6819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6820 choke me
6821 #else
6822 $ac_func();
6823 #endif
6824
6825 ; return 0; }
6826 EOF
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6828   rm -rf conftest*
6829   eval "ac_cv_func_$ac_func=yes"
6830 else
6831   echo "configure: failed program was:" >&5
6832   cat conftest.$ac_ext >&5
6833   rm -rf conftest*
6834   eval "ac_cv_func_$ac_func=no"
6835 fi
6836 rm -f conftest*
6837 fi
6838
6839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6840   echo "$ac_t""yes" 1>&6
6841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6842   cat >> confdefs.h <<EOF
6843 #define $ac_tr_func 1
6844 EOF
6845  
6846 else
6847   echo "$ac_t""no" 1>&6
6848 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6849 fi
6850 done
6851
6852
6853   fi
6854
6855   
6856
6857       
6858
6859       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6860 echo "configure:6861: checking for mbstate_t" >&5
6861   cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 #include <wchar.h>
6865 int main() {
6866 mbstate_t teststate;
6867 ; return 0; }
6868 EOF
6869 if { (eval echo configure:6870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6870   rm -rf conftest*
6871   have_mbstate_t=yes
6872 else
6873   echo "configure: failed program was:" >&5
6874   cat conftest.$ac_ext >&5
6875   rm -rf conftest*
6876   have_mbstate_t=no
6877 fi
6878 rm -f conftest*
6879   echo "$ac_t""$have_mbstate_t" 1>&6
6880   if test x"$have_mbstate_t" = xyes; then
6881     cat >> confdefs.h <<\EOF
6882 #define HAVE_MBSTATE_T 1
6883 EOF
6884
6885   fi
6886
6887     for ac_hdr in wchar.h
6888 do
6889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6891 echo "configure:6892: checking for $ac_hdr" >&5
6892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6893   echo $ac_n "(cached) $ac_c" 1>&6
6894 else
6895   cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6898 #include <$ac_hdr>
6899 EOF
6900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6901 { (eval echo configure:6902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6903 if test -z "$ac_err"; then
6904   rm -rf conftest*
6905   eval "ac_cv_header_$ac_safe=yes"
6906 else
6907   echo "$ac_err" >&5
6908   echo "configure: failed program was:" >&5
6909   cat conftest.$ac_ext >&5
6910   rm -rf conftest*
6911   eval "ac_cv_header_$ac_safe=no"
6912 fi
6913 rm -f conftest*
6914 fi
6915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6916   echo "$ac_t""yes" 1>&6
6917     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6918   cat >> confdefs.h <<EOF
6919 #define $ac_tr_hdr 1
6920 EOF
6921  ac_has_wchar_h=yes
6922 else
6923   echo "$ac_t""no" 1>&6
6924 ac_has_wchar_h=no
6925 fi
6926 done
6927
6928   for ac_hdr in wctype.h
6929 do
6930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6932 echo "configure:6933: checking for $ac_hdr" >&5
6933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6934   echo $ac_n "(cached) $ac_c" 1>&6
6935 else
6936   cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 #include <$ac_hdr>
6940 EOF
6941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6942 { (eval echo configure:6943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6944 if test -z "$ac_err"; then
6945   rm -rf conftest*
6946   eval "ac_cv_header_$ac_safe=yes"
6947 else
6948   echo "$ac_err" >&5
6949   echo "configure: failed program was:" >&5
6950   cat conftest.$ac_ext >&5
6951   rm -rf conftest*
6952   eval "ac_cv_header_$ac_safe=no"
6953 fi
6954 rm -f conftest*
6955 fi
6956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6957   echo "$ac_t""yes" 1>&6
6958     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6959   cat >> confdefs.h <<EOF
6960 #define $ac_tr_hdr 1
6961 EOF
6962  ac_has_wctype_h=yes
6963 else
6964   echo "$ac_t""no" 1>&6
6965 ac_has_wctype_h=no
6966 fi
6967 done
6968
6969   
6970     if test x"$ac_has_wchar_h" = xyes &&
6971      test x"$ac_has_wctype_h" = xyes &&
6972      test x"$enable_c_mbchar" != xno; then
6973       
6974             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6975 echo "configure:6976: checking for WCHAR_MIN and WCHAR_MAX" >&5
6976     cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 #include <wchar.h>
6980 int main() {
6981 int i = WCHAR_MIN; int j = WCHAR_MAX;
6982 ; return 0; }
6983 EOF
6984 if { (eval echo configure:6985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6985   rm -rf conftest*
6986   has_wchar_minmax=yes
6987 else
6988   echo "configure: failed program was:" >&5
6989   cat conftest.$ac_ext >&5
6990   rm -rf conftest*
6991   has_wchar_minmax=no
6992 fi
6993 rm -f conftest*
6994     echo "$ac_t""$has_wchar_minmax" 1>&6
6995     
6996             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6997 echo "configure:6998: checking for WEOF" >&5
6998     cat > conftest.$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7001
7002       #include <wchar.h>
7003       #include <stddef.h>
7004 int main() {
7005 wint_t i = WEOF;
7006 ; return 0; }
7007 EOF
7008 if { (eval echo configure:7009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7009   rm -rf conftest*
7010   has_weof=yes
7011 else
7012   echo "configure: failed program was:" >&5
7013   cat conftest.$ac_ext >&5
7014   rm -rf conftest*
7015   has_weof=no
7016 fi
7017 rm -f conftest*
7018     echo "$ac_t""$has_weof" 1>&6
7019   
7020         ac_wfuncs=yes
7021     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7022 do
7023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7024 echo "configure:7025: checking for $ac_func" >&5
7025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7026   echo $ac_n "(cached) $ac_c" 1>&6
7027 else
7028   cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 /* System header to define __stub macros and hopefully few prototypes,
7032     which can conflict with char $ac_func(); below.  */
7033 #include <assert.h>
7034 /* Override any gcc2 internal prototype to avoid an error.  */
7035 /* We use char because int might match the return type of a gcc2
7036     builtin and then its argument prototype would still apply.  */
7037 char $ac_func();
7038
7039 int main() {
7040
7041 /* The GNU C library defines this for functions which it implements
7042     to always fail with ENOSYS.  Some functions are actually named
7043     something starting with __ and the normal name is an alias.  */
7044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7045 choke me
7046 #else
7047 $ac_func();
7048 #endif
7049
7050 ; return 0; }
7051 EOF
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7053   rm -rf conftest*
7054   eval "ac_cv_func_$ac_func=yes"
7055 else
7056   echo "configure: failed program was:" >&5
7057   cat conftest.$ac_ext >&5
7058   rm -rf conftest*
7059   eval "ac_cv_func_$ac_func=no"
7060 fi
7061 rm -f conftest*
7062 fi
7063
7064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7065   echo "$ac_t""yes" 1>&6
7066     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7067   cat >> confdefs.h <<EOF
7068 #define $ac_tr_func 1
7069 EOF
7070  
7071 else
7072   echo "$ac_t""no" 1>&6
7073 \
7074     ac_wfuncs=no
7075 fi
7076 done
7077
7078   
7079         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7080     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7081     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7082     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7083     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7084     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7085 do
7086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7087 echo "configure:7088: checking for $ac_func" >&5
7088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7089   echo $ac_n "(cached) $ac_c" 1>&6
7090 else
7091   cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 /* System header to define __stub macros and hopefully few prototypes,
7095     which can conflict with char $ac_func(); below.  */
7096 #include <assert.h>
7097 /* Override any gcc2 internal prototype to avoid an error.  */
7098 /* We use char because int might match the return type of a gcc2
7099     builtin and then its argument prototype would still apply.  */
7100 char $ac_func();
7101
7102 int main() {
7103
7104 /* The GNU C library defines this for functions which it implements
7105     to always fail with ENOSYS.  Some functions are actually named
7106     something starting with __ and the normal name is an alias.  */
7107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7108 choke me
7109 #else
7110 $ac_func();
7111 #endif
7112
7113 ; return 0; }
7114 EOF
7115 if { (eval echo configure:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7116   rm -rf conftest*
7117   eval "ac_cv_func_$ac_func=yes"
7118 else
7119   echo "configure: failed program was:" >&5
7120   cat conftest.$ac_ext >&5
7121   rm -rf conftest*
7122   eval "ac_cv_func_$ac_func=no"
7123 fi
7124 rm -f conftest*
7125 fi
7126
7127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7128   echo "$ac_t""yes" 1>&6
7129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7130   cat >> confdefs.h <<EOF
7131 #define $ac_tr_func 1
7132 EOF
7133  
7134 else
7135   echo "$ac_t""no" 1>&6
7136 \
7137     ac_wfuncs=no
7138 fi
7139 done
7140
7141
7142     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7143 echo "configure:7144: checking for ISO C99 wchar_t support" >&5
7144     if test x"$has_weof" = xyes &&
7145        test x"$has_wchar_minmax" = xyes &&
7146        test x"$ac_wfuncs" = xyes; then
7147       ac_isoC99_wchar_t=yes
7148     else
7149       ac_isoC99_wchar_t=no
7150     fi
7151     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7152   
7153             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7154 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7155 echo "configure:7156: checking for iconv.h" >&5
7156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7157   echo $ac_n "(cached) $ac_c" 1>&6
7158 else
7159   cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7162 #include <iconv.h>
7163 EOF
7164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7165 { (eval echo configure:7166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7167 if test -z "$ac_err"; then
7168   rm -rf conftest*
7169   eval "ac_cv_header_$ac_safe=yes"
7170 else
7171   echo "$ac_err" >&5
7172   echo "configure: failed program was:" >&5
7173   cat conftest.$ac_ext >&5
7174   rm -rf conftest*
7175   eval "ac_cv_header_$ac_safe=no"
7176 fi
7177 rm -f conftest*
7178 fi
7179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7180   echo "$ac_t""yes" 1>&6
7181   ac_has_iconv_h=yes
7182 else
7183   echo "$ac_t""no" 1>&6
7184 ac_has_iconv_h=no
7185 fi
7186
7187     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7188 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7189 echo "configure:7190: checking for langinfo.h" >&5
7190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7191   echo $ac_n "(cached) $ac_c" 1>&6
7192 else
7193   cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7196 #include <langinfo.h>
7197 EOF
7198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7199 { (eval echo configure:7200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7201 if test -z "$ac_err"; then
7202   rm -rf conftest*
7203   eval "ac_cv_header_$ac_safe=yes"
7204 else
7205   echo "$ac_err" >&5
7206   echo "configure: failed program was:" >&5
7207   cat conftest.$ac_ext >&5
7208   rm -rf conftest*
7209   eval "ac_cv_header_$ac_safe=no"
7210 fi
7211 rm -f conftest*
7212 fi
7213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7214   echo "$ac_t""yes" 1>&6
7215   ac_has_langinfo_h=yes
7216 else
7217   echo "$ac_t""no" 1>&6
7218 ac_has_langinfo_h=no
7219 fi
7220
7221
7222         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7223 echo "configure:7224: checking for iconv in -liconv" >&5
7224 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7226   echo $ac_n "(cached) $ac_c" 1>&6
7227 else
7228   ac_save_LIBS="$LIBS"
7229 LIBS="-liconv  $LIBS"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 /* We use char because int might match the return type of a gcc2
7235     builtin and then its argument prototype would still apply.  */
7236 char iconv();
7237
7238 int main() {
7239 iconv()
7240 ; return 0; }
7241 EOF
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7243   rm -rf conftest*
7244   eval "ac_cv_lib_$ac_lib_var=yes"
7245 else
7246   echo "configure: failed program was:" >&5
7247   cat conftest.$ac_ext >&5
7248   rm -rf conftest*
7249   eval "ac_cv_lib_$ac_lib_var=no"
7250 fi
7251 rm -f conftest*
7252 LIBS="$ac_save_LIBS"
7253
7254 fi
7255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7256   echo "$ac_t""yes" 1>&6
7257   libiconv="-liconv"
7258 else
7259   echo "$ac_t""no" 1>&6
7260 fi
7261
7262     ac_save_LIBS="$LIBS"
7263     LIBS="$LIBS $libiconv"
7264
7265     for ac_func in iconv_open iconv_close iconv nl_langinfo
7266 do
7267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7268 echo "configure:7269: checking for $ac_func" >&5
7269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7270   echo $ac_n "(cached) $ac_c" 1>&6
7271 else
7272   cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 /* System header to define __stub macros and hopefully few prototypes,
7276     which can conflict with char $ac_func(); below.  */
7277 #include <assert.h>
7278 /* Override any gcc2 internal prototype to avoid an error.  */
7279 /* We use char because int might match the return type of a gcc2
7280     builtin and then its argument prototype would still apply.  */
7281 char $ac_func();
7282
7283 int main() {
7284
7285 /* The GNU C library defines this for functions which it implements
7286     to always fail with ENOSYS.  Some functions are actually named
7287     something starting with __ and the normal name is an alias.  */
7288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7289 choke me
7290 #else
7291 $ac_func();
7292 #endif
7293
7294 ; return 0; }
7295 EOF
7296 if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7297   rm -rf conftest*
7298   eval "ac_cv_func_$ac_func=yes"
7299 else
7300   echo "configure: failed program was:" >&5
7301   cat conftest.$ac_ext >&5
7302   rm -rf conftest*
7303   eval "ac_cv_func_$ac_func=no"
7304 fi
7305 rm -f conftest*
7306 fi
7307
7308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7309   echo "$ac_t""yes" 1>&6
7310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7311   cat >> confdefs.h <<EOF
7312 #define $ac_tr_func 1
7313 EOF
7314  \
7315     ac_XPG2funcs=yes
7316 else
7317   echo "$ac_t""no" 1>&6
7318 ac_XPG2funcs=no
7319 fi
7320 done
7321
7322   
7323     LIBS="$ac_save_LIBS"
7324
7325     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7326 echo "configure:7327: checking for XPG2 wchar_t support" >&5
7327     if test x"$ac_has_iconv_h" = xyes &&
7328        test x"$ac_has_langinfo_h" = xyes &&
7329        test x"$ac_XPG2funcs" = xyes; then
7330       ac_XPG2_wchar_t=yes
7331     else
7332       ac_XPG2_wchar_t=no
7333     fi
7334     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7335   
7336             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7337 echo "configure:7338: checking for enabled wchar_t specializations" >&5
7338     if test x"$ac_isoC99_wchar_t" = xyes &&
7339        test x"$ac_XPG2_wchar_t" = xyes; then
7340       cat >> confdefs.h <<\EOF
7341 #define _GLIBCPP_USE_WCHAR_T 1
7342 EOF
7343
7344       echo "$ac_t"""yes"" 1>&6
7345     else
7346       echo "$ac_t"""no"" 1>&6
7347     fi
7348   else
7349         echo "configure: warning: wchar_t support disabled." 1>&2
7350   fi
7351
7352       os_include_dir="config/os/mingw32"
7353       ;;
7354     *)
7355       os_include_dir="config/os/newlib"
7356       cat >> confdefs.h <<\EOF
7357 #define HAVE_HYPOT 1
7358 EOF
7359
7360       ;;
7361   esac
7362
7363   case "$target_alias" in
7364     *-mingw32*)
7365       ;;
7366     *)
7367       # GLIBCPP_CHECK_STDLIB_SUPPORT
7368       cat >> confdefs.h <<\EOF
7369 #define HAVE_STRTOF 1
7370 EOF
7371         
7372       cat >> confdefs.h <<\EOF
7373 #define HAVE_STRTOLD 1
7374 EOF
7375         
7376       # AC_FUNC_MMAP
7377       cat >> confdefs.h <<\EOF
7378 #define HAVE_MMAP 1
7379 EOF
7380
7381
7382       cat >> confdefs.h <<\EOF
7383 #define HAVE_ACOSF 1
7384 EOF
7385
7386       cat >> confdefs.h <<\EOF
7387 #define HAVE_ASINF 1
7388 EOF
7389
7390       cat >> confdefs.h <<\EOF
7391 #define HAVE_ATAN2F 1
7392 EOF
7393
7394       cat >> confdefs.h <<\EOF
7395 #define HAVE_ATANF 1
7396 EOF
7397
7398       cat >> confdefs.h <<\EOF
7399 #define HAVE_CEILF 1
7400 EOF
7401
7402       cat >> confdefs.h <<\EOF
7403 #define HAVE_COPYSIGN 1
7404 EOF
7405
7406       cat >> confdefs.h <<\EOF
7407 #define HAVE_COPYSIGNF 1
7408 EOF
7409
7410       cat >> confdefs.h <<\EOF
7411 #define HAVE_COSF 1
7412 EOF
7413
7414       cat >> confdefs.h <<\EOF
7415 #define HAVE_COSHF 1
7416 EOF
7417
7418       cat >> confdefs.h <<\EOF
7419 #define HAVE_EXPF 1
7420 EOF
7421
7422       cat >> confdefs.h <<\EOF
7423 #define HAVE_FABSF 1
7424 EOF
7425
7426       cat >> confdefs.h <<\EOF
7427 #define HAVE_FINITE 1
7428 EOF
7429
7430       cat >> confdefs.h <<\EOF
7431 #define HAVE_FINITEF 1
7432 EOF
7433
7434       cat >> confdefs.h <<\EOF
7435 #define HAVE_FLOORF 1
7436 EOF
7437
7438       cat >> confdefs.h <<\EOF
7439 #define HAVE_FMODF 1
7440 EOF
7441
7442       cat >> confdefs.h <<\EOF
7443 #define HAVE_FREXPF 1
7444 EOF
7445
7446       cat >> confdefs.h <<\EOF
7447 #define HAVE_ISINF 1
7448 EOF
7449
7450       cat >> confdefs.h <<\EOF
7451 #define HAVE_ISINFF 1
7452 EOF
7453
7454       cat >> confdefs.h <<\EOF
7455 #define HAVE_ISNAN 1
7456 EOF
7457
7458       cat >> confdefs.h <<\EOF
7459 #define HAVE_ISNANF 1
7460 EOF
7461
7462       cat >> confdefs.h <<\EOF
7463 #define HAVE_LDEXPF 1
7464 EOF
7465
7466       cat >> confdefs.h <<\EOF
7467 #define HAVE_LOG10F 1
7468 EOF
7469
7470       cat >> confdefs.h <<\EOF
7471 #define HAVE_LOGF 1
7472 EOF
7473
7474       cat >> confdefs.h <<\EOF
7475 #define HAVE_MODFF 1
7476 EOF
7477
7478       cat >> confdefs.h <<\EOF
7479 #define HAVE_POWF 1
7480 EOF
7481
7482       cat >> confdefs.h <<\EOF
7483 #define HAVE_SINF 1
7484 EOF
7485
7486       cat >> confdefs.h <<\EOF
7487 #define HAVE_SINHF 1
7488 EOF
7489
7490       cat >> confdefs.h <<\EOF
7491 #define HAVE_SQRTF 1
7492 EOF
7493
7494       cat >> confdefs.h <<\EOF
7495 #define HAVE_TANF 1
7496 EOF
7497
7498       cat >> confdefs.h <<\EOF
7499 #define HAVE_TANHF 1
7500 EOF
7501
7502       ;;
7503   esac
7504
7505   # At some point, we should differentiate between architectures
7506   # like x86, which have long double versions, and alpha/powerpc/etc.,
7507   # which don't. For the time being, punt.
7508   if test x"long_double_math_on_this_cpu" = x"yes"; then
7509     cat >> confdefs.h <<\EOF
7510 #define HAVE_ACOSL 1
7511 EOF
7512
7513     cat >> confdefs.h <<\EOF
7514 #define HAVE_ASINL 1
7515 EOF
7516
7517     cat >> confdefs.h <<\EOF
7518 #define HAVE_ATAN2L 1
7519 EOF
7520
7521     cat >> confdefs.h <<\EOF
7522 #define HAVE_ATANL 1
7523 EOF
7524
7525     cat >> confdefs.h <<\EOF
7526 #define HAVE_CEILL 1
7527 EOF
7528
7529     cat >> confdefs.h <<\EOF
7530 #define HAVE_COPYSIGNL 1
7531 EOF
7532
7533     cat >> confdefs.h <<\EOF
7534 #define HAVE_COSL 1
7535 EOF
7536
7537     cat >> confdefs.h <<\EOF
7538 #define HAVE_COSHL 1
7539 EOF
7540
7541     cat >> confdefs.h <<\EOF
7542 #define HAVE_EXPL 1
7543 EOF
7544
7545     cat >> confdefs.h <<\EOF
7546 #define HAVE_FABSL 1
7547 EOF
7548
7549     cat >> confdefs.h <<\EOF
7550 #define HAVE_FINITEL 1
7551 EOF
7552
7553     cat >> confdefs.h <<\EOF
7554 #define HAVE_FLOORL 1
7555 EOF
7556
7557     cat >> confdefs.h <<\EOF
7558 #define HAVE_FMODL 1
7559 EOF
7560
7561     cat >> confdefs.h <<\EOF
7562 #define HAVE_FREXPL 1
7563 EOF
7564
7565     cat >> confdefs.h <<\EOF
7566 #define HAVE_ISINFL 1
7567 EOF
7568
7569     cat >> confdefs.h <<\EOF
7570 #define HAVE_ISNANL 1
7571 EOF
7572
7573     cat >> confdefs.h <<\EOF
7574 #define HAVE_LDEXPL 1
7575 EOF
7576
7577     cat >> confdefs.h <<\EOF
7578 #define HAVE_LOG10L 1
7579 EOF
7580
7581     cat >> confdefs.h <<\EOF
7582 #define HAVE_LOGL 1
7583 EOF
7584
7585     cat >> confdefs.h <<\EOF
7586 #define HAVE_MODFL 1
7587 EOF
7588
7589     cat >> confdefs.h <<\EOF
7590 #define HAVE_POWL 1
7591 EOF
7592
7593     cat >> confdefs.h <<\EOF
7594 #define HAVE_SINCOSL 1
7595 EOF
7596
7597     cat >> confdefs.h <<\EOF
7598 #define HAVE_SINL 1
7599 EOF
7600
7601     cat >> confdefs.h <<\EOF
7602 #define HAVE_SINHL 1
7603 EOF
7604
7605     cat >> confdefs.h <<\EOF
7606 #define HAVE_SQRTL 1
7607 EOF
7608
7609     cat >> confdefs.h <<\EOF
7610 #define HAVE_TANL 1
7611 EOF
7612
7613     cat >> confdefs.h <<\EOF
7614 #define HAVE_TANHL 1
7615 EOF
7616
7617   fi
7618 else
7619
7620   # We are being configured natively. We can do more elaborate tests
7621   # that include AC_TRY_COMPILE now, as the linker is assumed to be
7622   # working.
7623   GLIBCPP_IS_CROSS_COMPILING=0
7624   CANADIAN=no
7625
7626   # Check for available headers.
7627   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7628   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
7629 do
7630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7632 echo "configure:7633: checking for $ac_hdr" >&5
7633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7634   echo $ac_n "(cached) $ac_c" 1>&6
7635 else
7636   cat > conftest.$ac_ext <<EOF
7637 #line 7638 "configure"
7638 #include "confdefs.h"
7639 #include <$ac_hdr>
7640 EOF
7641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7642 { (eval echo configure:7643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7644 if test -z "$ac_err"; then
7645   rm -rf conftest*
7646   eval "ac_cv_header_$ac_safe=yes"
7647 else
7648   echo "$ac_err" >&5
7649   echo "configure: failed program was:" >&5
7650   cat conftest.$ac_ext >&5
7651   rm -rf conftest*
7652   eval "ac_cv_header_$ac_safe=no"
7653 fi
7654 rm -f conftest*
7655 fi
7656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7657   echo "$ac_t""yes" 1>&6
7658     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7659   cat >> confdefs.h <<EOF
7660 #define $ac_tr_hdr 1
7661 EOF
7662  
7663 else
7664   echo "$ac_t""no" 1>&6
7665 fi
7666 done
7667
7668
7669   
7670   # All these tests are for C++; save the language and the compiler flags.
7671   # The CXXFLAGS thing is suspicious, but based on similar bits previously
7672   # found in GLIBCPP_CONFIGURE.
7673   
7674   ac_ext=C
7675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7676 ac_cpp='$CXXCPP $CPPFLAGS'
7677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7679 cross_compiling=$ac_cv_prog_cxx_cross
7680
7681   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7682   ac_save_CXXFLAGS="$CXXFLAGS"
7683
7684   # Check for maintainer-mode bits.
7685   if test x"$USE_MAINTAINER_MODE" = xno; then
7686     WERROR=''
7687   else
7688     WERROR='-Werror'
7689   fi
7690
7691   # Check for -ffunction-sections -fdata-sections
7692   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
7693 echo "configure:7694: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7694   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7695   cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698
7699 int main() {
7700 int foo;
7701   
7702 ; return 0; }
7703 EOF
7704 if { (eval echo configure:7705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7705   rm -rf conftest*
7706   ac_fdsections=yes
7707 else
7708   echo "configure: failed program was:" >&5
7709   cat conftest.$ac_ext >&5
7710   rm -rf conftest*
7711   ac_fdsections=no
7712 fi
7713 rm -f conftest*
7714   if test "$ac_test_CXXFLAGS" = set; then
7715     CXXFLAGS="$ac_save_CXXFLAGS"
7716   else
7717     # this is the suspicious part
7718     CXXFLAGS=''
7719   fi
7720   if test x"$ac_fdsections" = x"yes" &&
7721      test x"$enable_debug" = x"no"; then
7722     SECTION_FLAGS='-ffunction-sections -fdata-sections'
7723   fi
7724   echo "$ac_t""$ac_fdsections" 1>&6
7725
7726   ac_ext=c
7727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7731 cross_compiling=$ac_cv_prog_cc_cross
7732
7733   
7734   
7735
7736   
7737   # If we're not using GNU ld, then there's no point in even trying these
7738   # tests.  Check for that first.  We should have already tested for gld
7739   # by now (in libtool), but require it now just to be safe...
7740   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7741   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7742   
7743
7744   # The name set by libtool depends on the version of libtool.  Shame on us
7745   # for depending on an impl detail, but c'est la vie.  Older versions used
7746   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7747   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7748   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7749   # set (hence we're using an older libtool), then set it.
7750   if test x${with_gnu_ld+set} != xset; then
7751     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7752       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7753       with_gnu_ld=no
7754     else
7755       with_gnu_ld=$ac_cv_prog_gnu_ld
7756     fi
7757   fi
7758
7759   # Start by getting the version number.  I think the libtool test already
7760   # does some of this, but throws away the result.
7761   
7762   ldver=`$LD --version 2>/dev/null | head -1 | \
7763          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7764   
7765   glibcpp_gnu_ld_version=`echo $ldver | \
7766          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7767
7768   # Set --gc-sections.
7769   if test "$with_gnu_ld" = "notbroken"; then
7770     # GNU ld it is!  Joy and bunny rabbits!
7771
7772     # All these tests are for C++; save the language and the compiler flags.
7773     # Need to do this so that g++ won't try to link in libstdc++
7774     ac_test_CFLAGS="${CFLAGS+set}"
7775     ac_save_CFLAGS="$CFLAGS"
7776     CFLAGS='-x c++  -Wl,--gc-sections'
7777
7778     # Check for -Wl,--gc-sections
7779     # XXX This test is broken at the moment, as symbols required for
7780     # linking are now in libsupc++ (not built yet.....). In addition, 
7781     # this test has cored on solaris in the past. In addition,
7782     # --gc-sections doesn't really work at the moment (keeps on discarding
7783     # used sections, first .eh_frame and now some of the glibc sections for
7784     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7785     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7786 echo "configure:7787: checking for ld that supports -Wl,--gc-sections" >&5
7787     if test "$cross_compiling" = yes; then
7788   ac_sectionLDflags=yes
7789 else
7790   cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793
7794      int main(void) 
7795      {
7796        try { throw 1; }
7797        catch (...) { };
7798        return 0;
7799      }
7800     
7801 EOF
7802 if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7803 then
7804   ac_sectionLDflags=yes
7805 else
7806   echo "configure: failed program was:" >&5
7807   cat conftest.$ac_ext >&5
7808   rm -fr conftest*
7809   ac_sectionLDflags=no
7810 fi
7811 rm -fr conftest*
7812 fi
7813
7814     if test "$ac_test_CFLAGS" = set; then
7815       CFLAGS="$ac_save_CFLAGS"
7816     else
7817       # this is the suspicious part
7818       CFLAGS=''
7819     fi
7820     if test "$ac_sectionLDflags" = "yes"; then
7821       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7822     fi
7823     echo "$ac_t""$ac_sectionLDflags" 1>&6
7824   fi
7825
7826   # Set linker optimization flags.
7827   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7828     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7829   fi
7830
7831   
7832   
7833
7834   
7835       
7836   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
7837 echo "configure:7838: checking for __builtin_abs declaration" >&5
7838   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
7839     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
7840   echo $ac_n "(cached) $ac_c" 1>&6
7841 else
7842   
7843       
7844       ac_ext=C
7845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7846 ac_cpp='$CXXCPP $CPPFLAGS'
7847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7849 cross_compiling=$ac_cv_prog_cxx_cross
7850
7851       cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 #include <math.h>
7855 int main() {
7856  __builtin_abs(0);
7857 ; return 0; }
7858 EOF
7859 if { (eval echo configure:7860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7860   rm -rf conftest*
7861   glibcpp_cv_func___builtin_abs_use=yes
7862 else
7863   echo "configure: failed program was:" >&5
7864   cat conftest.$ac_ext >&5
7865   rm -rf conftest*
7866   glibcpp_cv_func___builtin_abs_use=no
7867 fi
7868 rm -f conftest*
7869       ac_ext=c
7870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7874 cross_compiling=$ac_cv_prog_cc_cross
7875
7876     
7877 fi
7878
7879   fi
7880   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
7881   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
7882     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
7883 echo "configure:7884: checking for __builtin_abs linkage" >&5
7884     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
7885       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
7886   echo $ac_n "(cached) $ac_c" 1>&6
7887 else
7888   
7889         cat > conftest.$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 #include <math.h>
7893 int main() {
7894  __builtin_abs(0);
7895 ; return 0; }
7896 EOF
7897 if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7898   rm -rf conftest*
7899   glibcpp_cv_func___builtin_abs_link=yes
7900 else
7901   echo "configure: failed program was:" >&5
7902   cat conftest.$ac_ext >&5
7903   rm -rf conftest*
7904   glibcpp_cv_func___builtin_abs_link=no
7905 fi
7906 rm -f conftest*
7907       
7908 fi
7909
7910     fi
7911     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
7912     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
7913       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7914       cat >> confdefs.h <<EOF
7915 #define ${ac_tr_func} 1
7916 EOF
7917
7918     fi
7919   fi
7920
7921   
7922   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
7923 echo "configure:7924: checking for __builtin_fabsf declaration" >&5
7924   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
7925     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
7926   echo $ac_n "(cached) $ac_c" 1>&6
7927 else
7928   
7929       
7930       ac_ext=C
7931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7932 ac_cpp='$CXXCPP $CPPFLAGS'
7933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7935 cross_compiling=$ac_cv_prog_cxx_cross
7936
7937       cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7940 #include <math.h>
7941 int main() {
7942  __builtin_fabsf(0);
7943 ; return 0; }
7944 EOF
7945 if { (eval echo configure:7946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7946   rm -rf conftest*
7947   glibcpp_cv_func___builtin_fabsf_use=yes
7948 else
7949   echo "configure: failed program was:" >&5
7950   cat conftest.$ac_ext >&5
7951   rm -rf conftest*
7952   glibcpp_cv_func___builtin_fabsf_use=no
7953 fi
7954 rm -f conftest*
7955       ac_ext=c
7956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7957 ac_cpp='$CPP $CPPFLAGS'
7958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7960 cross_compiling=$ac_cv_prog_cc_cross
7961
7962     
7963 fi
7964
7965   fi
7966   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
7967   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
7968     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
7969 echo "configure:7970: checking for __builtin_fabsf linkage" >&5
7970     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
7971       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
7972   echo $ac_n "(cached) $ac_c" 1>&6
7973 else
7974   
7975         cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 #include <math.h>
7979 int main() {
7980  __builtin_fabsf(0);
7981 ; return 0; }
7982 EOF
7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7984   rm -rf conftest*
7985   glibcpp_cv_func___builtin_fabsf_link=yes
7986 else
7987   echo "configure: failed program was:" >&5
7988   cat conftest.$ac_ext >&5
7989   rm -rf conftest*
7990   glibcpp_cv_func___builtin_fabsf_link=no
7991 fi
7992 rm -f conftest*
7993       
7994 fi
7995
7996     fi
7997     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7998     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7999       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8000       cat >> confdefs.h <<EOF
8001 #define ${ac_tr_func} 1
8002 EOF
8003
8004     fi
8005   fi
8006
8007   
8008   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
8009 echo "configure:8010: checking for __builtin_fabs declaration" >&5
8010   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
8011     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
8012   echo $ac_n "(cached) $ac_c" 1>&6
8013 else
8014   
8015       
8016       ac_ext=C
8017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8018 ac_cpp='$CXXCPP $CPPFLAGS'
8019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8021 cross_compiling=$ac_cv_prog_cxx_cross
8022
8023       cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 #include <math.h>
8027 int main() {
8028  __builtin_fabs(0);
8029 ; return 0; }
8030 EOF
8031 if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8032   rm -rf conftest*
8033   glibcpp_cv_func___builtin_fabs_use=yes
8034 else
8035   echo "configure: failed program was:" >&5
8036   cat conftest.$ac_ext >&5
8037   rm -rf conftest*
8038   glibcpp_cv_func___builtin_fabs_use=no
8039 fi
8040 rm -f conftest*
8041       ac_ext=c
8042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8046 cross_compiling=$ac_cv_prog_cc_cross
8047
8048     
8049 fi
8050
8051   fi
8052   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8053   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8054     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8055 echo "configure:8056: checking for __builtin_fabs linkage" >&5
8056     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8057       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8058   echo $ac_n "(cached) $ac_c" 1>&6
8059 else
8060   
8061         cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure"
8063 #include "confdefs.h"
8064 #include <math.h>
8065 int main() {
8066  __builtin_fabs(0);
8067 ; return 0; }
8068 EOF
8069 if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8070   rm -rf conftest*
8071   glibcpp_cv_func___builtin_fabs_link=yes
8072 else
8073   echo "configure: failed program was:" >&5
8074   cat conftest.$ac_ext >&5
8075   rm -rf conftest*
8076   glibcpp_cv_func___builtin_fabs_link=no
8077 fi
8078 rm -f conftest*
8079       
8080 fi
8081
8082     fi
8083     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8084     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8085       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8086       cat >> confdefs.h <<EOF
8087 #define ${ac_tr_func} 1
8088 EOF
8089
8090     fi
8091   fi
8092
8093   
8094   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8095 echo "configure:8096: checking for __builtin_fabsl declaration" >&5
8096   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8097     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8098   echo $ac_n "(cached) $ac_c" 1>&6
8099 else
8100   
8101       
8102       ac_ext=C
8103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8104 ac_cpp='$CXXCPP $CPPFLAGS'
8105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8107 cross_compiling=$ac_cv_prog_cxx_cross
8108
8109       cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 #include <math.h>
8113 int main() {
8114  __builtin_fabsl(0);
8115 ; return 0; }
8116 EOF
8117 if { (eval echo configure:8118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8118   rm -rf conftest*
8119   glibcpp_cv_func___builtin_fabsl_use=yes
8120 else
8121   echo "configure: failed program was:" >&5
8122   cat conftest.$ac_ext >&5
8123   rm -rf conftest*
8124   glibcpp_cv_func___builtin_fabsl_use=no
8125 fi
8126 rm -f conftest*
8127       ac_ext=c
8128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8129 ac_cpp='$CPP $CPPFLAGS'
8130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8132 cross_compiling=$ac_cv_prog_cc_cross
8133
8134     
8135 fi
8136
8137   fi
8138   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8139   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8140     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8141 echo "configure:8142: checking for __builtin_fabsl linkage" >&5
8142     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8143       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8144   echo $ac_n "(cached) $ac_c" 1>&6
8145 else
8146   
8147         cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 #include <math.h>
8151 int main() {
8152  __builtin_fabsl(0);
8153 ; return 0; }
8154 EOF
8155 if { (eval echo configure:8156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8156   rm -rf conftest*
8157   glibcpp_cv_func___builtin_fabsl_link=yes
8158 else
8159   echo "configure: failed program was:" >&5
8160   cat conftest.$ac_ext >&5
8161   rm -rf conftest*
8162   glibcpp_cv_func___builtin_fabsl_link=no
8163 fi
8164 rm -f conftest*
8165       
8166 fi
8167
8168     fi
8169     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8170     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8171       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8172       cat >> confdefs.h <<EOF
8173 #define ${ac_tr_func} 1
8174 EOF
8175
8176     fi
8177   fi
8178
8179   
8180   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8181 echo "configure:8182: checking for __builtin_labs declaration" >&5
8182   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8183     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8184   echo $ac_n "(cached) $ac_c" 1>&6
8185 else
8186   
8187       
8188       ac_ext=C
8189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8190 ac_cpp='$CXXCPP $CPPFLAGS'
8191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8193 cross_compiling=$ac_cv_prog_cxx_cross
8194
8195       cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8198 #include <math.h>
8199 int main() {
8200  __builtin_labs(0);
8201 ; return 0; }
8202 EOF
8203 if { (eval echo configure:8204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8204   rm -rf conftest*
8205   glibcpp_cv_func___builtin_labs_use=yes
8206 else
8207   echo "configure: failed program was:" >&5
8208   cat conftest.$ac_ext >&5
8209   rm -rf conftest*
8210   glibcpp_cv_func___builtin_labs_use=no
8211 fi
8212 rm -f conftest*
8213       ac_ext=c
8214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8215 ac_cpp='$CPP $CPPFLAGS'
8216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8218 cross_compiling=$ac_cv_prog_cc_cross
8219
8220     
8221 fi
8222
8223   fi
8224   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8225   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8226     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8227 echo "configure:8228: checking for __builtin_labs linkage" >&5
8228     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8229       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8230   echo $ac_n "(cached) $ac_c" 1>&6
8231 else
8232   
8233         cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 #include <math.h>
8237 int main() {
8238  __builtin_labs(0);
8239 ; return 0; }
8240 EOF
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242   rm -rf conftest*
8243   glibcpp_cv_func___builtin_labs_link=yes
8244 else
8245   echo "configure: failed program was:" >&5
8246   cat conftest.$ac_ext >&5
8247   rm -rf conftest*
8248   glibcpp_cv_func___builtin_labs_link=no
8249 fi
8250 rm -f conftest*
8251       
8252 fi
8253
8254     fi
8255     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8256     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8257       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8258       cat >> confdefs.h <<EOF
8259 #define ${ac_tr_func} 1
8260 EOF
8261
8262     fi
8263   fi
8264
8265
8266   
8267   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8268 echo "configure:8269: checking for __builtin_sqrtf declaration" >&5
8269   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8270     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8271   echo $ac_n "(cached) $ac_c" 1>&6
8272 else
8273   
8274       
8275       ac_ext=C
8276 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8277 ac_cpp='$CXXCPP $CPPFLAGS'
8278 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8279 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8280 cross_compiling=$ac_cv_prog_cxx_cross
8281
8282       cat > conftest.$ac_ext <<EOF
8283 #line 8284 "configure"
8284 #include "confdefs.h"
8285 #include <math.h>
8286 int main() {
8287  __builtin_sqrtf(0);
8288 ; return 0; }
8289 EOF
8290 if { (eval echo configure:8291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8291   rm -rf conftest*
8292   glibcpp_cv_func___builtin_sqrtf_use=yes
8293 else
8294   echo "configure: failed program was:" >&5
8295   cat conftest.$ac_ext >&5
8296   rm -rf conftest*
8297   glibcpp_cv_func___builtin_sqrtf_use=no
8298 fi
8299 rm -f conftest*
8300       ac_ext=c
8301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8302 ac_cpp='$CPP $CPPFLAGS'
8303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8305 cross_compiling=$ac_cv_prog_cc_cross
8306
8307     
8308 fi
8309
8310   fi
8311   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8312   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8313     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8314 echo "configure:8315: checking for __builtin_sqrtf linkage" >&5
8315     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8316       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8317   echo $ac_n "(cached) $ac_c" 1>&6
8318 else
8319   
8320         cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure"
8322 #include "confdefs.h"
8323 #include <math.h>
8324 int main() {
8325  __builtin_sqrtf(0);
8326 ; return 0; }
8327 EOF
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329   rm -rf conftest*
8330   glibcpp_cv_func___builtin_sqrtf_link=yes
8331 else
8332   echo "configure: failed program was:" >&5
8333   cat conftest.$ac_ext >&5
8334   rm -rf conftest*
8335   glibcpp_cv_func___builtin_sqrtf_link=no
8336 fi
8337 rm -f conftest*
8338       
8339 fi
8340
8341     fi
8342     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8343     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8344       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8345       cat >> confdefs.h <<EOF
8346 #define ${ac_tr_func} 1
8347 EOF
8348
8349     fi
8350   fi
8351
8352   
8353   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8354 echo "configure:8355: checking for __builtin_sqrt declaration" >&5
8355   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8356     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8357   echo $ac_n "(cached) $ac_c" 1>&6
8358 else
8359   
8360       
8361       ac_ext=C
8362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8363 ac_cpp='$CXXCPP $CPPFLAGS'
8364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8366 cross_compiling=$ac_cv_prog_cxx_cross
8367
8368       cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 #include <math.h>
8372 int main() {
8373  __builtin_sqrt(0);
8374 ; return 0; }
8375 EOF
8376 if { (eval echo configure:8377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8377   rm -rf conftest*
8378   glibcpp_cv_func___builtin_sqrt_use=yes
8379 else
8380   echo "configure: failed program was:" >&5
8381   cat conftest.$ac_ext >&5
8382   rm -rf conftest*
8383   glibcpp_cv_func___builtin_sqrt_use=no
8384 fi
8385 rm -f conftest*
8386       ac_ext=c
8387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8388 ac_cpp='$CPP $CPPFLAGS'
8389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8391 cross_compiling=$ac_cv_prog_cc_cross
8392
8393     
8394 fi
8395
8396   fi
8397   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
8398   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
8399     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
8400 echo "configure:8401: checking for __builtin_sqrt linkage" >&5
8401     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
8402       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
8403   echo $ac_n "(cached) $ac_c" 1>&6
8404 else
8405   
8406         cat > conftest.$ac_ext <<EOF
8407 #line 8408 "configure"
8408 #include "confdefs.h"
8409 #include <math.h>
8410 int main() {
8411  __builtin_sqrt(0);
8412 ; return 0; }
8413 EOF
8414 if { (eval echo configure:8415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8415   rm -rf conftest*
8416   glibcpp_cv_func___builtin_sqrt_link=yes
8417 else
8418   echo "configure: failed program was:" >&5
8419   cat conftest.$ac_ext >&5
8420   rm -rf conftest*
8421   glibcpp_cv_func___builtin_sqrt_link=no
8422 fi
8423 rm -f conftest*
8424       
8425 fi
8426
8427     fi
8428     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
8429     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
8430       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8431       cat >> confdefs.h <<EOF
8432 #define ${ac_tr_func} 1
8433 EOF
8434
8435     fi
8436   fi
8437
8438   
8439   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
8440 echo "configure:8441: checking for __builtin_sqrtl declaration" >&5
8441   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
8442     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
8443   echo $ac_n "(cached) $ac_c" 1>&6
8444 else
8445   
8446       
8447       ac_ext=C
8448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8449 ac_cpp='$CXXCPP $CPPFLAGS'
8450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8452 cross_compiling=$ac_cv_prog_cxx_cross
8453
8454       cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8457 #include <math.h>
8458 int main() {
8459  __builtin_sqrtl(0);
8460 ; return 0; }
8461 EOF
8462 if { (eval echo configure:8463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8463   rm -rf conftest*
8464   glibcpp_cv_func___builtin_sqrtl_use=yes
8465 else
8466   echo "configure: failed program was:" >&5
8467   cat conftest.$ac_ext >&5
8468   rm -rf conftest*
8469   glibcpp_cv_func___builtin_sqrtl_use=no
8470 fi
8471 rm -f conftest*
8472       ac_ext=c
8473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8474 ac_cpp='$CPP $CPPFLAGS'
8475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8477 cross_compiling=$ac_cv_prog_cc_cross
8478
8479     
8480 fi
8481
8482   fi
8483   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
8484   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
8485     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
8486 echo "configure:8487: checking for __builtin_sqrtl linkage" >&5
8487     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
8488       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
8489   echo $ac_n "(cached) $ac_c" 1>&6
8490 else
8491   
8492         cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8495 #include <math.h>
8496 int main() {
8497  __builtin_sqrtl(0);
8498 ; return 0; }
8499 EOF
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8501   rm -rf conftest*
8502   glibcpp_cv_func___builtin_sqrtl_link=yes
8503 else
8504   echo "configure: failed program was:" >&5
8505   cat conftest.$ac_ext >&5
8506   rm -rf conftest*
8507   glibcpp_cv_func___builtin_sqrtl_link=no
8508 fi
8509 rm -f conftest*
8510       
8511 fi
8512
8513     fi
8514     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
8515     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
8516       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8517       cat >> confdefs.h <<EOF
8518 #define ${ac_tr_func} 1
8519 EOF
8520
8521     fi
8522   fi
8523
8524
8525   
8526   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
8527 echo "configure:8528: checking for __builtin_sinf declaration" >&5
8528   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
8529     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
8530   echo $ac_n "(cached) $ac_c" 1>&6
8531 else
8532   
8533       
8534       ac_ext=C
8535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8536 ac_cpp='$CXXCPP $CPPFLAGS'
8537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8539 cross_compiling=$ac_cv_prog_cxx_cross
8540
8541       cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 #include <math.h>
8545 int main() {
8546  __builtin_sinf(0);
8547 ; return 0; }
8548 EOF
8549 if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8550   rm -rf conftest*
8551   glibcpp_cv_func___builtin_sinf_use=yes
8552 else
8553   echo "configure: failed program was:" >&5
8554   cat conftest.$ac_ext >&5
8555   rm -rf conftest*
8556   glibcpp_cv_func___builtin_sinf_use=no
8557 fi
8558 rm -f conftest*
8559       ac_ext=c
8560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8564 cross_compiling=$ac_cv_prog_cc_cross
8565
8566     
8567 fi
8568
8569   fi
8570   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
8571   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
8572     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
8573 echo "configure:8574: checking for __builtin_sinf linkage" >&5
8574     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
8575       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
8576   echo $ac_n "(cached) $ac_c" 1>&6
8577 else
8578   
8579         cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 #include <math.h>
8583 int main() {
8584  __builtin_sinf(0);
8585 ; return 0; }
8586 EOF
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8588   rm -rf conftest*
8589   glibcpp_cv_func___builtin_sinf_link=yes
8590 else
8591   echo "configure: failed program was:" >&5
8592   cat conftest.$ac_ext >&5
8593   rm -rf conftest*
8594   glibcpp_cv_func___builtin_sinf_link=no
8595 fi
8596 rm -f conftest*
8597       
8598 fi
8599
8600     fi
8601     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
8602     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
8603       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8604       cat >> confdefs.h <<EOF
8605 #define ${ac_tr_func} 1
8606 EOF
8607
8608     fi
8609   fi
8610
8611   
8612   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
8613 echo "configure:8614: checking for __builtin_sin declaration" >&5
8614   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
8615     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
8616   echo $ac_n "(cached) $ac_c" 1>&6
8617 else
8618   
8619       
8620       ac_ext=C
8621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8622 ac_cpp='$CXXCPP $CPPFLAGS'
8623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8625 cross_compiling=$ac_cv_prog_cxx_cross
8626
8627       cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 #include <math.h>
8631 int main() {
8632  __builtin_sin(0);
8633 ; return 0; }
8634 EOF
8635 if { (eval echo configure:8636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8636   rm -rf conftest*
8637   glibcpp_cv_func___builtin_sin_use=yes
8638 else
8639   echo "configure: failed program was:" >&5
8640   cat conftest.$ac_ext >&5
8641   rm -rf conftest*
8642   glibcpp_cv_func___builtin_sin_use=no
8643 fi
8644 rm -f conftest*
8645       ac_ext=c
8646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8647 ac_cpp='$CPP $CPPFLAGS'
8648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8650 cross_compiling=$ac_cv_prog_cc_cross
8651
8652     
8653 fi
8654
8655   fi
8656   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
8657   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
8658     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
8659 echo "configure:8660: checking for __builtin_sin linkage" >&5
8660     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
8661       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
8662   echo $ac_n "(cached) $ac_c" 1>&6
8663 else
8664   
8665         cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <math.h>
8669 int main() {
8670  __builtin_sin(0);
8671 ; return 0; }
8672 EOF
8673 if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8674   rm -rf conftest*
8675   glibcpp_cv_func___builtin_sin_link=yes
8676 else
8677   echo "configure: failed program was:" >&5
8678   cat conftest.$ac_ext >&5
8679   rm -rf conftest*
8680   glibcpp_cv_func___builtin_sin_link=no
8681 fi
8682 rm -f conftest*
8683       
8684 fi
8685
8686     fi
8687     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
8688     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
8689       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8690       cat >> confdefs.h <<EOF
8691 #define ${ac_tr_func} 1
8692 EOF
8693
8694     fi
8695   fi
8696
8697   
8698   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
8699 echo "configure:8700: checking for __builtin_sinl declaration" >&5
8700   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
8701     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
8702   echo $ac_n "(cached) $ac_c" 1>&6
8703 else
8704   
8705       
8706       ac_ext=C
8707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8708 ac_cpp='$CXXCPP $CPPFLAGS'
8709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8711 cross_compiling=$ac_cv_prog_cxx_cross
8712
8713       cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 #include <math.h>
8717 int main() {
8718  __builtin_sinl(0);
8719 ; return 0; }
8720 EOF
8721 if { (eval echo configure:8722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8722   rm -rf conftest*
8723   glibcpp_cv_func___builtin_sinl_use=yes
8724 else
8725   echo "configure: failed program was:" >&5
8726   cat conftest.$ac_ext >&5
8727   rm -rf conftest*
8728   glibcpp_cv_func___builtin_sinl_use=no
8729 fi
8730 rm -f conftest*
8731       ac_ext=c
8732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8733 ac_cpp='$CPP $CPPFLAGS'
8734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8736 cross_compiling=$ac_cv_prog_cc_cross
8737
8738     
8739 fi
8740
8741   fi
8742   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
8743   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
8744     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
8745 echo "configure:8746: checking for __builtin_sinl linkage" >&5
8746     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
8747       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
8748   echo $ac_n "(cached) $ac_c" 1>&6
8749 else
8750   
8751         cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 #include <math.h>
8755 int main() {
8756  __builtin_sinl(0);
8757 ; return 0; }
8758 EOF
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8760   rm -rf conftest*
8761   glibcpp_cv_func___builtin_sinl_link=yes
8762 else
8763   echo "configure: failed program was:" >&5
8764   cat conftest.$ac_ext >&5
8765   rm -rf conftest*
8766   glibcpp_cv_func___builtin_sinl_link=no
8767 fi
8768 rm -f conftest*
8769       
8770 fi
8771
8772     fi
8773     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
8774     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
8775       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8776       cat >> confdefs.h <<EOF
8777 #define ${ac_tr_func} 1
8778 EOF
8779
8780     fi
8781   fi
8782
8783
8784   
8785   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
8786 echo "configure:8787: checking for __builtin_cosf declaration" >&5
8787   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
8788     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
8789   echo $ac_n "(cached) $ac_c" 1>&6
8790 else
8791   
8792       
8793       ac_ext=C
8794 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8795 ac_cpp='$CXXCPP $CPPFLAGS'
8796 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8797 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8798 cross_compiling=$ac_cv_prog_cxx_cross
8799
8800       cat > conftest.$ac_ext <<EOF
8801 #line 8802 "configure"
8802 #include "confdefs.h"
8803 #include <math.h>
8804 int main() {
8805  __builtin_cosf(0);
8806 ; return 0; }
8807 EOF
8808 if { (eval echo configure:8809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8809   rm -rf conftest*
8810   glibcpp_cv_func___builtin_cosf_use=yes
8811 else
8812   echo "configure: failed program was:" >&5
8813   cat conftest.$ac_ext >&5
8814   rm -rf conftest*
8815   glibcpp_cv_func___builtin_cosf_use=no
8816 fi
8817 rm -f conftest*
8818       ac_ext=c
8819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8820 ac_cpp='$CPP $CPPFLAGS'
8821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8823 cross_compiling=$ac_cv_prog_cc_cross
8824
8825     
8826 fi
8827
8828   fi
8829   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
8830   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
8831     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
8832 echo "configure:8833: checking for __builtin_cosf linkage" >&5
8833     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
8834       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
8835   echo $ac_n "(cached) $ac_c" 1>&6
8836 else
8837   
8838         cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 #include <math.h>
8842 int main() {
8843  __builtin_cosf(0);
8844 ; return 0; }
8845 EOF
8846 if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8847   rm -rf conftest*
8848   glibcpp_cv_func___builtin_cosf_link=yes
8849 else
8850   echo "configure: failed program was:" >&5
8851   cat conftest.$ac_ext >&5
8852   rm -rf conftest*
8853   glibcpp_cv_func___builtin_cosf_link=no
8854 fi
8855 rm -f conftest*
8856       
8857 fi
8858
8859     fi
8860     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
8861     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
8862       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8863       cat >> confdefs.h <<EOF
8864 #define ${ac_tr_func} 1
8865 EOF
8866
8867     fi
8868   fi
8869
8870   
8871   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
8872 echo "configure:8873: checking for __builtin_cos declaration" >&5
8873   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
8874     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
8875   echo $ac_n "(cached) $ac_c" 1>&6
8876 else
8877   
8878       
8879       ac_ext=C
8880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8881 ac_cpp='$CXXCPP $CPPFLAGS'
8882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8884 cross_compiling=$ac_cv_prog_cxx_cross
8885
8886       cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 #include <math.h>
8890 int main() {
8891  __builtin_cos(0);
8892 ; return 0; }
8893 EOF
8894 if { (eval echo configure:8895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8895   rm -rf conftest*
8896   glibcpp_cv_func___builtin_cos_use=yes
8897 else
8898   echo "configure: failed program was:" >&5
8899   cat conftest.$ac_ext >&5
8900   rm -rf conftest*
8901   glibcpp_cv_func___builtin_cos_use=no
8902 fi
8903 rm -f conftest*
8904       ac_ext=c
8905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8906 ac_cpp='$CPP $CPPFLAGS'
8907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8909 cross_compiling=$ac_cv_prog_cc_cross
8910
8911     
8912 fi
8913
8914   fi
8915   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
8916   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
8917     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
8918 echo "configure:8919: checking for __builtin_cos linkage" >&5
8919     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
8920       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
8921   echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8923   
8924         cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927 #include <math.h>
8928 int main() {
8929  __builtin_cos(0);
8930 ; return 0; }
8931 EOF
8932 if { (eval echo configure:8933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8933   rm -rf conftest*
8934   glibcpp_cv_func___builtin_cos_link=yes
8935 else
8936   echo "configure: failed program was:" >&5
8937   cat conftest.$ac_ext >&5
8938   rm -rf conftest*
8939   glibcpp_cv_func___builtin_cos_link=no
8940 fi
8941 rm -f conftest*
8942       
8943 fi
8944
8945     fi
8946     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
8947     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
8948       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8949       cat >> confdefs.h <<EOF
8950 #define ${ac_tr_func} 1
8951 EOF
8952
8953     fi
8954   fi
8955
8956   
8957   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
8958 echo "configure:8959: checking for __builtin_cosl declaration" >&5
8959   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
8960     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
8961   echo $ac_n "(cached) $ac_c" 1>&6
8962 else
8963   
8964       
8965       ac_ext=C
8966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8967 ac_cpp='$CXXCPP $CPPFLAGS'
8968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8970 cross_compiling=$ac_cv_prog_cxx_cross
8971
8972       cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 #include <math.h>
8976 int main() {
8977  __builtin_cosl(0);
8978 ; return 0; }
8979 EOF
8980 if { (eval echo configure:8981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8981   rm -rf conftest*
8982   glibcpp_cv_func___builtin_cosl_use=yes
8983 else
8984   echo "configure: failed program was:" >&5
8985   cat conftest.$ac_ext >&5
8986   rm -rf conftest*
8987   glibcpp_cv_func___builtin_cosl_use=no
8988 fi
8989 rm -f conftest*
8990       ac_ext=c
8991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8992 ac_cpp='$CPP $CPPFLAGS'
8993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8995 cross_compiling=$ac_cv_prog_cc_cross
8996
8997     
8998 fi
8999
9000   fi
9001   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
9002   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
9003     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
9004 echo "configure:9005: checking for __builtin_cosl linkage" >&5
9005     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
9006       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
9007   echo $ac_n "(cached) $ac_c" 1>&6
9008 else
9009   
9010         cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure"
9012 #include "confdefs.h"
9013 #include <math.h>
9014 int main() {
9015  __builtin_cosl(0);
9016 ; return 0; }
9017 EOF
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019   rm -rf conftest*
9020   glibcpp_cv_func___builtin_cosl_link=yes
9021 else
9022   echo "configure: failed program was:" >&5
9023   cat conftest.$ac_ext >&5
9024   rm -rf conftest*
9025   glibcpp_cv_func___builtin_cosl_link=no
9026 fi
9027 rm -f conftest*
9028       
9029 fi
9030
9031     fi
9032     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
9033     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
9034       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9035       cat >> confdefs.h <<EOF
9036 #define ${ac_tr_func} 1
9037 EOF
9038
9039     fi
9040   fi
9041
9042
9043               dummyvar=no
9044   if test x$dummyvar = x"yes"; then
9045     cat >> confdefs.h <<\EOF
9046 #define HAVE___BUILTIN_ABS 1
9047 EOF
9048
9049     cat >> confdefs.h <<\EOF
9050 #define HAVE___BUILTIN_LABS 1
9051 EOF
9052
9053     cat >> confdefs.h <<\EOF
9054 #define HAVE___BUILTIN_COS 1
9055 EOF
9056
9057     cat >> confdefs.h <<\EOF
9058 #define HAVE___BUILTIN_COSF 1
9059 EOF
9060
9061     cat >> confdefs.h <<\EOF
9062 #define HAVE___BUILTIN_COSL 1
9063 EOF
9064
9065     cat >> confdefs.h <<\EOF
9066 #define HAVE___BUILTIN_FABS 1
9067 EOF
9068
9069     cat >> confdefs.h <<\EOF
9070 #define HAVE___BUILTIN_FABSF 1
9071 EOF
9072
9073     cat >> confdefs.h <<\EOF
9074 #define HAVE___BUILTIN_FABSL 1
9075 EOF
9076
9077     cat >> confdefs.h <<\EOF
9078 #define HAVE___BUILTIN_SIN 1
9079 EOF
9080
9081     cat >> confdefs.h <<\EOF
9082 #define HAVE___BUILTIN_SINF 1
9083 EOF
9084
9085     cat >> confdefs.h <<\EOF
9086 #define HAVE___BUILTIN_SINL 1
9087 EOF
9088
9089     cat >> confdefs.h <<\EOF
9090 #define HAVE___BUILTIN_SQRT 1
9091 EOF
9092
9093     cat >> confdefs.h <<\EOF
9094 #define HAVE___BUILTIN_SQRTF 1
9095 EOF
9096
9097     cat >> confdefs.h <<\EOF
9098 #define HAVE___BUILTIN_SQRTL 1
9099 EOF
9100
9101   fi
9102
9103   
9104   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9105   ac_save_CXXFLAGS="$CXXFLAGS"
9106   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9107
9108     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9109 echo "configure:9110: checking for sin in -lm" >&5
9110 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9112   echo $ac_n "(cached) $ac_c" 1>&6
9113 else
9114   ac_save_LIBS="$LIBS"
9115 LIBS="-lm  $LIBS"
9116 cat > conftest.$ac_ext <<EOF
9117 #line 9118 "configure"
9118 #include "confdefs.h"
9119 /* Override any gcc2 internal prototype to avoid an error.  */
9120 /* We use char because int might match the return type of a gcc2
9121     builtin and then its argument prototype would still apply.  */
9122 char sin();
9123
9124 int main() {
9125 sin()
9126 ; return 0; }
9127 EOF
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129   rm -rf conftest*
9130   eval "ac_cv_lib_$ac_lib_var=yes"
9131 else
9132   echo "configure: failed program was:" >&5
9133   cat conftest.$ac_ext >&5
9134   rm -rf conftest*
9135   eval "ac_cv_lib_$ac_lib_var=no"
9136 fi
9137 rm -f conftest*
9138 LIBS="$ac_save_LIBS"
9139
9140 fi
9141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9142   echo "$ac_t""yes" 1>&6
9143   libm="-lm"
9144 else
9145   echo "$ac_t""no" 1>&6
9146 fi
9147
9148   ac_save_LIBS="$LIBS"
9149   LIBS="$LIBS $libm"
9150
9151     
9152   
9153   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9154 echo "configure:9155: checking for isinf declaration" >&5
9155   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9156     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9157   echo $ac_n "(cached) $ac_c" 1>&6
9158 else
9159   
9160       
9161       ac_ext=C
9162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9163 ac_cpp='$CXXCPP $CPPFLAGS'
9164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9166 cross_compiling=$ac_cv_prog_cxx_cross
9167
9168       cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 #include <math.h>
9172                       #ifdef HAVE_IEEEFP_H
9173                       #include <ieeefp.h>
9174                       #endif
9175                      
9176 int main() {
9177  isinf(0);
9178 ; return 0; }
9179 EOF
9180 if { (eval echo configure:9181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9181   rm -rf conftest*
9182   glibcpp_cv_func_isinf_use=yes
9183 else
9184   echo "configure: failed program was:" >&5
9185   cat conftest.$ac_ext >&5
9186   rm -rf conftest*
9187   glibcpp_cv_func_isinf_use=no
9188 fi
9189 rm -f conftest*
9190       ac_ext=c
9191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9192 ac_cpp='$CPP $CPPFLAGS'
9193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9195 cross_compiling=$ac_cv_prog_cc_cross
9196
9197     
9198 fi
9199
9200   fi
9201   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9202
9203   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9204     for ac_func in isinf
9205 do
9206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9207 echo "configure:9208: checking for $ac_func" >&5
9208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9209   echo $ac_n "(cached) $ac_c" 1>&6
9210 else
9211   cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9214 /* System header to define __stub macros and hopefully few prototypes,
9215     which can conflict with char $ac_func(); below.  */
9216 #include <assert.h>
9217 /* Override any gcc2 internal prototype to avoid an error.  */
9218 /* We use char because int might match the return type of a gcc2
9219     builtin and then its argument prototype would still apply.  */
9220 char $ac_func();
9221
9222 int main() {
9223
9224 /* The GNU C library defines this for functions which it implements
9225     to always fail with ENOSYS.  Some functions are actually named
9226     something starting with __ and the normal name is an alias.  */
9227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9228 choke me
9229 #else
9230 $ac_func();
9231 #endif
9232
9233 ; return 0; }
9234 EOF
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9236   rm -rf conftest*
9237   eval "ac_cv_func_$ac_func=yes"
9238 else
9239   echo "configure: failed program was:" >&5
9240   cat conftest.$ac_ext >&5
9241   rm -rf conftest*
9242   eval "ac_cv_func_$ac_func=no"
9243 fi
9244 rm -f conftest*
9245 fi
9246
9247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9248   echo "$ac_t""yes" 1>&6
9249     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9250   cat >> confdefs.h <<EOF
9251 #define $ac_tr_func 1
9252 EOF
9253  
9254 else
9255   echo "$ac_t""no" 1>&6
9256 fi
9257 done
9258     
9259   else
9260     
9261   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9262 echo "configure:9263: checking for _isinf declaration" >&5
9263   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9264     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9265   echo $ac_n "(cached) $ac_c" 1>&6
9266 else
9267   
9268       
9269       ac_ext=C
9270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9271 ac_cpp='$CXXCPP $CPPFLAGS'
9272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9274 cross_compiling=$ac_cv_prog_cxx_cross
9275
9276       cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279 #include <math.h>
9280                       #ifdef HAVE_IEEEFP_H
9281                       #include <ieeefp.h>
9282                       #endif
9283                      
9284 int main() {
9285  _isinf(0);
9286 ; return 0; }
9287 EOF
9288 if { (eval echo configure:9289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9289   rm -rf conftest*
9290   glibcpp_cv_func__isinf_use=yes
9291 else
9292   echo "configure: failed program was:" >&5
9293   cat conftest.$ac_ext >&5
9294   rm -rf conftest*
9295   glibcpp_cv_func__isinf_use=no
9296 fi
9297 rm -f conftest*
9298       ac_ext=c
9299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9300 ac_cpp='$CPP $CPPFLAGS'
9301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9303 cross_compiling=$ac_cv_prog_cc_cross
9304
9305     
9306 fi
9307
9308   fi
9309   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9310
9311     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9312       for ac_func in _isinf
9313 do
9314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9315 echo "configure:9316: checking for $ac_func" >&5
9316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9317   echo $ac_n "(cached) $ac_c" 1>&6
9318 else
9319   cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322 /* System header to define __stub macros and hopefully few prototypes,
9323     which can conflict with char $ac_func(); below.  */
9324 #include <assert.h>
9325 /* Override any gcc2 internal prototype to avoid an error.  */
9326 /* We use char because int might match the return type of a gcc2
9327     builtin and then its argument prototype would still apply.  */
9328 char $ac_func();
9329
9330 int main() {
9331
9332 /* The GNU C library defines this for functions which it implements
9333     to always fail with ENOSYS.  Some functions are actually named
9334     something starting with __ and the normal name is an alias.  */
9335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336 choke me
9337 #else
9338 $ac_func();
9339 #endif
9340
9341 ; return 0; }
9342 EOF
9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9344   rm -rf conftest*
9345   eval "ac_cv_func_$ac_func=yes"
9346 else
9347   echo "configure: failed program was:" >&5
9348   cat conftest.$ac_ext >&5
9349   rm -rf conftest*
9350   eval "ac_cv_func_$ac_func=no"
9351 fi
9352 rm -f conftest*
9353 fi
9354
9355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9356   echo "$ac_t""yes" 1>&6
9357     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9358   cat >> confdefs.h <<EOF
9359 #define $ac_tr_func 1
9360 EOF
9361  
9362 else
9363   echo "$ac_t""no" 1>&6
9364 fi
9365 done
9366     
9367     fi
9368   fi
9369
9370   
9371   
9372   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
9373 echo "configure:9374: checking for isnan declaration" >&5
9374   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
9375     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
9376   echo $ac_n "(cached) $ac_c" 1>&6
9377 else
9378   
9379       
9380       ac_ext=C
9381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9382 ac_cpp='$CXXCPP $CPPFLAGS'
9383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9385 cross_compiling=$ac_cv_prog_cxx_cross
9386
9387       cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9390 #include <math.h>
9391                       #ifdef HAVE_IEEEFP_H
9392                       #include <ieeefp.h>
9393                       #endif
9394                      
9395 int main() {
9396  isnan(0);
9397 ; return 0; }
9398 EOF
9399 if { (eval echo configure:9400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9400   rm -rf conftest*
9401   glibcpp_cv_func_isnan_use=yes
9402 else
9403   echo "configure: failed program was:" >&5
9404   cat conftest.$ac_ext >&5
9405   rm -rf conftest*
9406   glibcpp_cv_func_isnan_use=no
9407 fi
9408 rm -f conftest*
9409       ac_ext=c
9410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9411 ac_cpp='$CPP $CPPFLAGS'
9412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9414 cross_compiling=$ac_cv_prog_cc_cross
9415
9416     
9417 fi
9418
9419   fi
9420   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
9421
9422   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
9423     for ac_func in isnan
9424 do
9425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9426 echo "configure:9427: checking for $ac_func" >&5
9427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9428   echo $ac_n "(cached) $ac_c" 1>&6
9429 else
9430   cat > conftest.$ac_ext <<EOF
9431 #line 9432 "configure"
9432 #include "confdefs.h"
9433 /* System header to define __stub macros and hopefully few prototypes,
9434     which can conflict with char $ac_func(); below.  */
9435 #include <assert.h>
9436 /* Override any gcc2 internal prototype to avoid an error.  */
9437 /* We use char because int might match the return type of a gcc2
9438     builtin and then its argument prototype would still apply.  */
9439 char $ac_func();
9440
9441 int main() {
9442
9443 /* The GNU C library defines this for functions which it implements
9444     to always fail with ENOSYS.  Some functions are actually named
9445     something starting with __ and the normal name is an alias.  */
9446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9447 choke me
9448 #else
9449 $ac_func();
9450 #endif
9451
9452 ; return 0; }
9453 EOF
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9455   rm -rf conftest*
9456   eval "ac_cv_func_$ac_func=yes"
9457 else
9458   echo "configure: failed program was:" >&5
9459   cat conftest.$ac_ext >&5
9460   rm -rf conftest*
9461   eval "ac_cv_func_$ac_func=no"
9462 fi
9463 rm -f conftest*
9464 fi
9465
9466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9467   echo "$ac_t""yes" 1>&6
9468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9469   cat >> confdefs.h <<EOF
9470 #define $ac_tr_func 1
9471 EOF
9472  
9473 else
9474   echo "$ac_t""no" 1>&6
9475 fi
9476 done
9477     
9478   else
9479     
9480   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
9481 echo "configure:9482: checking for _isnan declaration" >&5
9482   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
9483     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
9484   echo $ac_n "(cached) $ac_c" 1>&6
9485 else
9486   
9487       
9488       ac_ext=C
9489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9490 ac_cpp='$CXXCPP $CPPFLAGS'
9491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9493 cross_compiling=$ac_cv_prog_cxx_cross
9494
9495       cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <math.h>
9499                       #ifdef HAVE_IEEEFP_H
9500                       #include <ieeefp.h>
9501                       #endif
9502                      
9503 int main() {
9504  _isnan(0);
9505 ; return 0; }
9506 EOF
9507 if { (eval echo configure:9508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9508   rm -rf conftest*
9509   glibcpp_cv_func__isnan_use=yes
9510 else
9511   echo "configure: failed program was:" >&5
9512   cat conftest.$ac_ext >&5
9513   rm -rf conftest*
9514   glibcpp_cv_func__isnan_use=no
9515 fi
9516 rm -f conftest*
9517       ac_ext=c
9518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9519 ac_cpp='$CPP $CPPFLAGS'
9520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9522 cross_compiling=$ac_cv_prog_cc_cross
9523
9524     
9525 fi
9526
9527   fi
9528   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
9529
9530     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
9531       for ac_func in _isnan
9532 do
9533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9534 echo "configure:9535: checking for $ac_func" >&5
9535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9536   echo $ac_n "(cached) $ac_c" 1>&6
9537 else
9538   cat > conftest.$ac_ext <<EOF
9539 #line 9540 "configure"
9540 #include "confdefs.h"
9541 /* System header to define __stub macros and hopefully few prototypes,
9542     which can conflict with char $ac_func(); below.  */
9543 #include <assert.h>
9544 /* Override any gcc2 internal prototype to avoid an error.  */
9545 /* We use char because int might match the return type of a gcc2
9546     builtin and then its argument prototype would still apply.  */
9547 char $ac_func();
9548
9549 int main() {
9550
9551 /* The GNU C library defines this for functions which it implements
9552     to always fail with ENOSYS.  Some functions are actually named
9553     something starting with __ and the normal name is an alias.  */
9554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9555 choke me
9556 #else
9557 $ac_func();
9558 #endif
9559
9560 ; return 0; }
9561 EOF
9562 if { (eval echo configure:9563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9563   rm -rf conftest*
9564   eval "ac_cv_func_$ac_func=yes"
9565 else
9566   echo "configure: failed program was:" >&5
9567   cat conftest.$ac_ext >&5
9568   rm -rf conftest*
9569   eval "ac_cv_func_$ac_func=no"
9570 fi
9571 rm -f conftest*
9572 fi
9573
9574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9575   echo "$ac_t""yes" 1>&6
9576     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9577   cat >> confdefs.h <<EOF
9578 #define $ac_tr_func 1
9579 EOF
9580  
9581 else
9582   echo "$ac_t""no" 1>&6
9583 fi
9584 done
9585     
9586     fi
9587   fi
9588
9589   
9590   
9591   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
9592 echo "configure:9593: checking for finite declaration" >&5
9593   if test x${glibcpp_cv_func_finite_use+set} != xset; then
9594     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
9595   echo $ac_n "(cached) $ac_c" 1>&6
9596 else
9597   
9598       
9599       ac_ext=C
9600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9601 ac_cpp='$CXXCPP $CPPFLAGS'
9602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9604 cross_compiling=$ac_cv_prog_cxx_cross
9605
9606       cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure"
9608 #include "confdefs.h"
9609 #include <math.h>
9610                       #ifdef HAVE_IEEEFP_H
9611                       #include <ieeefp.h>
9612                       #endif
9613                      
9614 int main() {
9615  finite(0);
9616 ; return 0; }
9617 EOF
9618 if { (eval echo configure:9619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9619   rm -rf conftest*
9620   glibcpp_cv_func_finite_use=yes
9621 else
9622   echo "configure: failed program was:" >&5
9623   cat conftest.$ac_ext >&5
9624   rm -rf conftest*
9625   glibcpp_cv_func_finite_use=no
9626 fi
9627 rm -f conftest*
9628       ac_ext=c
9629 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9630 ac_cpp='$CPP $CPPFLAGS'
9631 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9632 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9633 cross_compiling=$ac_cv_prog_cc_cross
9634
9635     
9636 fi
9637
9638   fi
9639   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
9640
9641   if test x$glibcpp_cv_func_finite_use = x"yes"; then
9642     for ac_func in finite
9643 do
9644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9645 echo "configure:9646: checking for $ac_func" >&5
9646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9647   echo $ac_n "(cached) $ac_c" 1>&6
9648 else
9649   cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9652 /* System header to define __stub macros and hopefully few prototypes,
9653     which can conflict with char $ac_func(); below.  */
9654 #include <assert.h>
9655 /* Override any gcc2 internal prototype to avoid an error.  */
9656 /* We use char because int might match the return type of a gcc2
9657     builtin and then its argument prototype would still apply.  */
9658 char $ac_func();
9659
9660 int main() {
9661
9662 /* The GNU C library defines this for functions which it implements
9663     to always fail with ENOSYS.  Some functions are actually named
9664     something starting with __ and the normal name is an alias.  */
9665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9666 choke me
9667 #else
9668 $ac_func();
9669 #endif
9670
9671 ; return 0; }
9672 EOF
9673 if { (eval echo configure:9674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9674   rm -rf conftest*
9675   eval "ac_cv_func_$ac_func=yes"
9676 else
9677   echo "configure: failed program was:" >&5
9678   cat conftest.$ac_ext >&5
9679   rm -rf conftest*
9680   eval "ac_cv_func_$ac_func=no"
9681 fi
9682 rm -f conftest*
9683 fi
9684
9685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9686   echo "$ac_t""yes" 1>&6
9687     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9688   cat >> confdefs.h <<EOF
9689 #define $ac_tr_func 1
9690 EOF
9691  
9692 else
9693   echo "$ac_t""no" 1>&6
9694 fi
9695 done
9696     
9697   else
9698     
9699   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
9700 echo "configure:9701: checking for _finite declaration" >&5
9701   if test x${glibcpp_cv_func__finite_use+set} != xset; then
9702     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
9703   echo $ac_n "(cached) $ac_c" 1>&6
9704 else
9705   
9706       
9707       ac_ext=C
9708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9709 ac_cpp='$CXXCPP $CPPFLAGS'
9710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9712 cross_compiling=$ac_cv_prog_cxx_cross
9713
9714       cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9717 #include <math.h>
9718                       #ifdef HAVE_IEEEFP_H
9719                       #include <ieeefp.h>
9720                       #endif
9721                      
9722 int main() {
9723  _finite(0);
9724 ; return 0; }
9725 EOF
9726 if { (eval echo configure:9727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9727   rm -rf conftest*
9728   glibcpp_cv_func__finite_use=yes
9729 else
9730   echo "configure: failed program was:" >&5
9731   cat conftest.$ac_ext >&5
9732   rm -rf conftest*
9733   glibcpp_cv_func__finite_use=no
9734 fi
9735 rm -f conftest*
9736       ac_ext=c
9737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9738 ac_cpp='$CPP $CPPFLAGS'
9739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9741 cross_compiling=$ac_cv_prog_cc_cross
9742
9743     
9744 fi
9745
9746   fi
9747   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
9748
9749     if test x$glibcpp_cv_func__finite_use = x"yes"; then
9750       for ac_func in _finite
9751 do
9752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9753 echo "configure:9754: checking for $ac_func" >&5
9754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9755   echo $ac_n "(cached) $ac_c" 1>&6
9756 else
9757   cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9760 /* System header to define __stub macros and hopefully few prototypes,
9761     which can conflict with char $ac_func(); below.  */
9762 #include <assert.h>
9763 /* Override any gcc2 internal prototype to avoid an error.  */
9764 /* We use char because int might match the return type of a gcc2
9765     builtin and then its argument prototype would still apply.  */
9766 char $ac_func();
9767
9768 int main() {
9769
9770 /* The GNU C library defines this for functions which it implements
9771     to always fail with ENOSYS.  Some functions are actually named
9772     something starting with __ and the normal name is an alias.  */
9773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9774 choke me
9775 #else
9776 $ac_func();
9777 #endif
9778
9779 ; return 0; }
9780 EOF
9781 if { (eval echo configure:9782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9782   rm -rf conftest*
9783   eval "ac_cv_func_$ac_func=yes"
9784 else
9785   echo "configure: failed program was:" >&5
9786   cat conftest.$ac_ext >&5
9787   rm -rf conftest*
9788   eval "ac_cv_func_$ac_func=no"
9789 fi
9790 rm -f conftest*
9791 fi
9792
9793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9794   echo "$ac_t""yes" 1>&6
9795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9796   cat >> confdefs.h <<EOF
9797 #define $ac_tr_func 1
9798 EOF
9799  
9800 else
9801   echo "$ac_t""no" 1>&6
9802 fi
9803 done
9804     
9805     fi
9806   fi
9807
9808   
9809   
9810   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
9811 echo "configure:9812: checking for copysign declaration" >&5
9812   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
9813     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
9814   echo $ac_n "(cached) $ac_c" 1>&6
9815 else
9816   
9817       
9818       ac_ext=C
9819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9820 ac_cpp='$CXXCPP $CPPFLAGS'
9821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9823 cross_compiling=$ac_cv_prog_cxx_cross
9824
9825       cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 #include <math.h>
9829 int main() {
9830  copysign(0, 0);
9831 ; return 0; }
9832 EOF
9833 if { (eval echo configure:9834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9834   rm -rf conftest*
9835   glibcpp_cv_func_copysign_use=yes
9836 else
9837   echo "configure: failed program was:" >&5
9838   cat conftest.$ac_ext >&5
9839   rm -rf conftest*
9840   glibcpp_cv_func_copysign_use=no
9841 fi
9842 rm -f conftest*
9843       ac_ext=c
9844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9845 ac_cpp='$CPP $CPPFLAGS'
9846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9848 cross_compiling=$ac_cv_prog_cc_cross
9849
9850     
9851 fi
9852
9853   fi
9854   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
9855
9856   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
9857     for ac_func in copysign
9858 do
9859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9860 echo "configure:9861: checking for $ac_func" >&5
9861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9862   echo $ac_n "(cached) $ac_c" 1>&6
9863 else
9864   cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 /* System header to define __stub macros and hopefully few prototypes,
9868     which can conflict with char $ac_func(); below.  */
9869 #include <assert.h>
9870 /* Override any gcc2 internal prototype to avoid an error.  */
9871 /* We use char because int might match the return type of a gcc2
9872     builtin and then its argument prototype would still apply.  */
9873 char $ac_func();
9874
9875 int main() {
9876
9877 /* The GNU C library defines this for functions which it implements
9878     to always fail with ENOSYS.  Some functions are actually named
9879     something starting with __ and the normal name is an alias.  */
9880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9881 choke me
9882 #else
9883 $ac_func();
9884 #endif
9885
9886 ; return 0; }
9887 EOF
9888 if { (eval echo configure:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9889   rm -rf conftest*
9890   eval "ac_cv_func_$ac_func=yes"
9891 else
9892   echo "configure: failed program was:" >&5
9893   cat conftest.$ac_ext >&5
9894   rm -rf conftest*
9895   eval "ac_cv_func_$ac_func=no"
9896 fi
9897 rm -f conftest*
9898 fi
9899
9900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9901   echo "$ac_t""yes" 1>&6
9902     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9903   cat >> confdefs.h <<EOF
9904 #define $ac_tr_func 1
9905 EOF
9906  
9907 else
9908   echo "$ac_t""no" 1>&6
9909 fi
9910 done
9911     
9912   else
9913     
9914   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
9915 echo "configure:9916: checking for _copysign declaration" >&5
9916   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
9917     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
9918   echo $ac_n "(cached) $ac_c" 1>&6
9919 else
9920   
9921       
9922       ac_ext=C
9923 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9924 ac_cpp='$CXXCPP $CPPFLAGS'
9925 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9926 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9927 cross_compiling=$ac_cv_prog_cxx_cross
9928
9929       cat > conftest.$ac_ext <<EOF
9930 #line 9931 "configure"
9931 #include "confdefs.h"
9932 #include <math.h>
9933 int main() {
9934  _copysign(0, 0);
9935 ; return 0; }
9936 EOF
9937 if { (eval echo configure:9938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9938   rm -rf conftest*
9939   glibcpp_cv_func__copysign_use=yes
9940 else
9941   echo "configure: failed program was:" >&5
9942   cat conftest.$ac_ext >&5
9943   rm -rf conftest*
9944   glibcpp_cv_func__copysign_use=no
9945 fi
9946 rm -f conftest*
9947       ac_ext=c
9948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9949 ac_cpp='$CPP $CPPFLAGS'
9950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9952 cross_compiling=$ac_cv_prog_cc_cross
9953
9954     
9955 fi
9956
9957   fi
9958   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
9959
9960     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
9961       for ac_func in _copysign
9962 do
9963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9964 echo "configure:9965: checking for $ac_func" >&5
9965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9966   echo $ac_n "(cached) $ac_c" 1>&6
9967 else
9968   cat > conftest.$ac_ext <<EOF
9969 #line 9970 "configure"
9970 #include "confdefs.h"
9971 /* System header to define __stub macros and hopefully few prototypes,
9972     which can conflict with char $ac_func(); below.  */
9973 #include <assert.h>
9974 /* Override any gcc2 internal prototype to avoid an error.  */
9975 /* We use char because int might match the return type of a gcc2
9976     builtin and then its argument prototype would still apply.  */
9977 char $ac_func();
9978
9979 int main() {
9980
9981 /* The GNU C library defines this for functions which it implements
9982     to always fail with ENOSYS.  Some functions are actually named
9983     something starting with __ and the normal name is an alias.  */
9984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9985 choke me
9986 #else
9987 $ac_func();
9988 #endif
9989
9990 ; return 0; }
9991 EOF
9992 if { (eval echo configure:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9993   rm -rf conftest*
9994   eval "ac_cv_func_$ac_func=yes"
9995 else
9996   echo "configure: failed program was:" >&5
9997   cat conftest.$ac_ext >&5
9998   rm -rf conftest*
9999   eval "ac_cv_func_$ac_func=no"
10000 fi
10001 rm -f conftest*
10002 fi
10003
10004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10005   echo "$ac_t""yes" 1>&6
10006     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10007   cat >> confdefs.h <<EOF
10008 #define $ac_tr_func 1
10009 EOF
10010  
10011 else
10012   echo "$ac_t""no" 1>&6
10013 fi
10014 done
10015     
10016     fi
10017   fi
10018
10019   
10020   
10021   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
10022 echo "configure:10023: checking for sincos declaration" >&5
10023   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
10024     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
10025   echo $ac_n "(cached) $ac_c" 1>&6
10026 else
10027   
10028       
10029       ac_ext=C
10030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10031 ac_cpp='$CXXCPP $CPPFLAGS'
10032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10034 cross_compiling=$ac_cv_prog_cxx_cross
10035
10036       cat > conftest.$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 #include <math.h>
10040 int main() {
10041  sincos(0, 0, 0);
10042 ; return 0; }
10043 EOF
10044 if { (eval echo configure:10045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10045   rm -rf conftest*
10046   glibcpp_cv_func_sincos_use=yes
10047 else
10048   echo "configure: failed program was:" >&5
10049   cat conftest.$ac_ext >&5
10050   rm -rf conftest*
10051   glibcpp_cv_func_sincos_use=no
10052 fi
10053 rm -f conftest*
10054       ac_ext=c
10055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10056 ac_cpp='$CPP $CPPFLAGS'
10057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10059 cross_compiling=$ac_cv_prog_cc_cross
10060
10061     
10062 fi
10063
10064   fi
10065   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10066
10067   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10068     for ac_func in sincos
10069 do
10070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10071 echo "configure:10072: checking for $ac_func" >&5
10072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10073   echo $ac_n "(cached) $ac_c" 1>&6
10074 else
10075   cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 /* System header to define __stub macros and hopefully few prototypes,
10079     which can conflict with char $ac_func(); below.  */
10080 #include <assert.h>
10081 /* Override any gcc2 internal prototype to avoid an error.  */
10082 /* We use char because int might match the return type of a gcc2
10083     builtin and then its argument prototype would still apply.  */
10084 char $ac_func();
10085
10086 int main() {
10087
10088 /* The GNU C library defines this for functions which it implements
10089     to always fail with ENOSYS.  Some functions are actually named
10090     something starting with __ and the normal name is an alias.  */
10091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10092 choke me
10093 #else
10094 $ac_func();
10095 #endif
10096
10097 ; return 0; }
10098 EOF
10099 if { (eval echo configure:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10100   rm -rf conftest*
10101   eval "ac_cv_func_$ac_func=yes"
10102 else
10103   echo "configure: failed program was:" >&5
10104   cat conftest.$ac_ext >&5
10105   rm -rf conftest*
10106   eval "ac_cv_func_$ac_func=no"
10107 fi
10108 rm -f conftest*
10109 fi
10110
10111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10112   echo "$ac_t""yes" 1>&6
10113     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10114   cat >> confdefs.h <<EOF
10115 #define $ac_tr_func 1
10116 EOF
10117  
10118 else
10119   echo "$ac_t""no" 1>&6
10120 fi
10121 done
10122     
10123   else
10124     
10125   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10126 echo "configure:10127: checking for _sincos declaration" >&5
10127   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10128     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10129   echo $ac_n "(cached) $ac_c" 1>&6
10130 else
10131   
10132       
10133       ac_ext=C
10134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10135 ac_cpp='$CXXCPP $CPPFLAGS'
10136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10138 cross_compiling=$ac_cv_prog_cxx_cross
10139
10140       cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 #include <math.h>
10144 int main() {
10145  _sincos(0, 0, 0);
10146 ; return 0; }
10147 EOF
10148 if { (eval echo configure:10149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10149   rm -rf conftest*
10150   glibcpp_cv_func__sincos_use=yes
10151 else
10152   echo "configure: failed program was:" >&5
10153   cat conftest.$ac_ext >&5
10154   rm -rf conftest*
10155   glibcpp_cv_func__sincos_use=no
10156 fi
10157 rm -f conftest*
10158       ac_ext=c
10159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10160 ac_cpp='$CPP $CPPFLAGS'
10161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10163 cross_compiling=$ac_cv_prog_cc_cross
10164
10165     
10166 fi
10167
10168   fi
10169   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10170
10171     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10172       for ac_func in _sincos
10173 do
10174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10175 echo "configure:10176: checking for $ac_func" >&5
10176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10177   echo $ac_n "(cached) $ac_c" 1>&6
10178 else
10179   cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 /* System header to define __stub macros and hopefully few prototypes,
10183     which can conflict with char $ac_func(); below.  */
10184 #include <assert.h>
10185 /* Override any gcc2 internal prototype to avoid an error.  */
10186 /* We use char because int might match the return type of a gcc2
10187     builtin and then its argument prototype would still apply.  */
10188 char $ac_func();
10189
10190 int main() {
10191
10192 /* The GNU C library defines this for functions which it implements
10193     to always fail with ENOSYS.  Some functions are actually named
10194     something starting with __ and the normal name is an alias.  */
10195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10196 choke me
10197 #else
10198 $ac_func();
10199 #endif
10200
10201 ; return 0; }
10202 EOF
10203 if { (eval echo configure:10204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10204   rm -rf conftest*
10205   eval "ac_cv_func_$ac_func=yes"
10206 else
10207   echo "configure: failed program was:" >&5
10208   cat conftest.$ac_ext >&5
10209   rm -rf conftest*
10210   eval "ac_cv_func_$ac_func=no"
10211 fi
10212 rm -f conftest*
10213 fi
10214
10215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10216   echo "$ac_t""yes" 1>&6
10217     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10218   cat >> confdefs.h <<EOF
10219 #define $ac_tr_func 1
10220 EOF
10221  
10222 else
10223   echo "$ac_t""no" 1>&6
10224 fi
10225 done
10226     
10227     fi
10228   fi
10229
10230   
10231   
10232   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10233 echo "configure:10234: checking for fpclass declaration" >&5
10234   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10235     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10236   echo $ac_n "(cached) $ac_c" 1>&6
10237 else
10238   
10239       
10240       ac_ext=C
10241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10242 ac_cpp='$CXXCPP $CPPFLAGS'
10243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10245 cross_compiling=$ac_cv_prog_cxx_cross
10246
10247       cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10250 #include <math.h>
10251                       #ifdef HAVE_IEEEFP_H
10252                       #include <ieeefp.h>
10253                       #endif
10254                      
10255 int main() {
10256  fpclass(0);
10257 ; return 0; }
10258 EOF
10259 if { (eval echo configure:10260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10260   rm -rf conftest*
10261   glibcpp_cv_func_fpclass_use=yes
10262 else
10263   echo "configure: failed program was:" >&5
10264   cat conftest.$ac_ext >&5
10265   rm -rf conftest*
10266   glibcpp_cv_func_fpclass_use=no
10267 fi
10268 rm -f conftest*
10269       ac_ext=c
10270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10271 ac_cpp='$CPP $CPPFLAGS'
10272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10274 cross_compiling=$ac_cv_prog_cc_cross
10275
10276     
10277 fi
10278
10279   fi
10280   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10281
10282   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10283     for ac_func in fpclass
10284 do
10285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10286 echo "configure:10287: checking for $ac_func" >&5
10287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10288   echo $ac_n "(cached) $ac_c" 1>&6
10289 else
10290   cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10293 /* System header to define __stub macros and hopefully few prototypes,
10294     which can conflict with char $ac_func(); below.  */
10295 #include <assert.h>
10296 /* Override any gcc2 internal prototype to avoid an error.  */
10297 /* We use char because int might match the return type of a gcc2
10298     builtin and then its argument prototype would still apply.  */
10299 char $ac_func();
10300
10301 int main() {
10302
10303 /* The GNU C library defines this for functions which it implements
10304     to always fail with ENOSYS.  Some functions are actually named
10305     something starting with __ and the normal name is an alias.  */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10307 choke me
10308 #else
10309 $ac_func();
10310 #endif
10311
10312 ; return 0; }
10313 EOF
10314 if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10315   rm -rf conftest*
10316   eval "ac_cv_func_$ac_func=yes"
10317 else
10318   echo "configure: failed program was:" >&5
10319   cat conftest.$ac_ext >&5
10320   rm -rf conftest*
10321   eval "ac_cv_func_$ac_func=no"
10322 fi
10323 rm -f conftest*
10324 fi
10325
10326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10327   echo "$ac_t""yes" 1>&6
10328     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10329   cat >> confdefs.h <<EOF
10330 #define $ac_tr_func 1
10331 EOF
10332  
10333 else
10334   echo "$ac_t""no" 1>&6
10335 fi
10336 done
10337     
10338   else
10339     
10340   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10341 echo "configure:10342: checking for _fpclass declaration" >&5
10342   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10343     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10344   echo $ac_n "(cached) $ac_c" 1>&6
10345 else
10346   
10347       
10348       ac_ext=C
10349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10350 ac_cpp='$CXXCPP $CPPFLAGS'
10351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10353 cross_compiling=$ac_cv_prog_cxx_cross
10354
10355       cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure"
10357 #include "confdefs.h"
10358 #include <math.h>
10359                       #ifdef HAVE_IEEEFP_H
10360                       #include <ieeefp.h>
10361                       #endif
10362                      
10363 int main() {
10364  _fpclass(0);
10365 ; return 0; }
10366 EOF
10367 if { (eval echo configure:10368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10368   rm -rf conftest*
10369   glibcpp_cv_func__fpclass_use=yes
10370 else
10371   echo "configure: failed program was:" >&5
10372   cat conftest.$ac_ext >&5
10373   rm -rf conftest*
10374   glibcpp_cv_func__fpclass_use=no
10375 fi
10376 rm -f conftest*
10377       ac_ext=c
10378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10379 ac_cpp='$CPP $CPPFLAGS'
10380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10382 cross_compiling=$ac_cv_prog_cc_cross
10383
10384     
10385 fi
10386
10387   fi
10388   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
10389
10390     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
10391       for ac_func in _fpclass
10392 do
10393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10394 echo "configure:10395: checking for $ac_func" >&5
10395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10396   echo $ac_n "(cached) $ac_c" 1>&6
10397 else
10398   cat > conftest.$ac_ext <<EOF
10399 #line 10400 "configure"
10400 #include "confdefs.h"
10401 /* System header to define __stub macros and hopefully few prototypes,
10402     which can conflict with char $ac_func(); below.  */
10403 #include <assert.h>
10404 /* Override any gcc2 internal prototype to avoid an error.  */
10405 /* We use char because int might match the return type of a gcc2
10406     builtin and then its argument prototype would still apply.  */
10407 char $ac_func();
10408
10409 int main() {
10410
10411 /* The GNU C library defines this for functions which it implements
10412     to always fail with ENOSYS.  Some functions are actually named
10413     something starting with __ and the normal name is an alias.  */
10414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10415 choke me
10416 #else
10417 $ac_func();
10418 #endif
10419
10420 ; return 0; }
10421 EOF
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10423   rm -rf conftest*
10424   eval "ac_cv_func_$ac_func=yes"
10425 else
10426   echo "configure: failed program was:" >&5
10427   cat conftest.$ac_ext >&5
10428   rm -rf conftest*
10429   eval "ac_cv_func_$ac_func=no"
10430 fi
10431 rm -f conftest*
10432 fi
10433
10434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10435   echo "$ac_t""yes" 1>&6
10436     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10437   cat >> confdefs.h <<EOF
10438 #define $ac_tr_func 1
10439 EOF
10440  
10441 else
10442   echo "$ac_t""no" 1>&6
10443 fi
10444 done
10445     
10446     fi
10447   fi
10448
10449   
10450   
10451   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
10452 echo "configure:10453: checking for qfpclass declaration" >&5
10453   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
10454     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
10455   echo $ac_n "(cached) $ac_c" 1>&6
10456 else
10457   
10458       
10459       ac_ext=C
10460 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10461 ac_cpp='$CXXCPP $CPPFLAGS'
10462 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10463 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10464 cross_compiling=$ac_cv_prog_cxx_cross
10465
10466       cat > conftest.$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10469 #include <math.h>
10470                       #ifdef HAVE_IEEEFP_H
10471                       #include <ieeefp.h>
10472                       #endif
10473                      
10474 int main() {
10475  qfpclass(0);
10476 ; return 0; }
10477 EOF
10478 if { (eval echo configure:10479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10479   rm -rf conftest*
10480   glibcpp_cv_func_qfpclass_use=yes
10481 else
10482   echo "configure: failed program was:" >&5
10483   cat conftest.$ac_ext >&5
10484   rm -rf conftest*
10485   glibcpp_cv_func_qfpclass_use=no
10486 fi
10487 rm -f conftest*
10488       ac_ext=c
10489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10490 ac_cpp='$CPP $CPPFLAGS'
10491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10493 cross_compiling=$ac_cv_prog_cc_cross
10494
10495     
10496 fi
10497
10498   fi
10499   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
10500
10501   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
10502     for ac_func in qfpclass
10503 do
10504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10505 echo "configure:10506: checking for $ac_func" >&5
10506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10507   echo $ac_n "(cached) $ac_c" 1>&6
10508 else
10509   cat > conftest.$ac_ext <<EOF
10510 #line 10511 "configure"
10511 #include "confdefs.h"
10512 /* System header to define __stub macros and hopefully few prototypes,
10513     which can conflict with char $ac_func(); below.  */
10514 #include <assert.h>
10515 /* Override any gcc2 internal prototype to avoid an error.  */
10516 /* We use char because int might match the return type of a gcc2
10517     builtin and then its argument prototype would still apply.  */
10518 char $ac_func();
10519
10520 int main() {
10521
10522 /* The GNU C library defines this for functions which it implements
10523     to always fail with ENOSYS.  Some functions are actually named
10524     something starting with __ and the normal name is an alias.  */
10525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10526 choke me
10527 #else
10528 $ac_func();
10529 #endif
10530
10531 ; return 0; }
10532 EOF
10533 if { (eval echo configure:10534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10534   rm -rf conftest*
10535   eval "ac_cv_func_$ac_func=yes"
10536 else
10537   echo "configure: failed program was:" >&5
10538   cat conftest.$ac_ext >&5
10539   rm -rf conftest*
10540   eval "ac_cv_func_$ac_func=no"
10541 fi
10542 rm -f conftest*
10543 fi
10544
10545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10546   echo "$ac_t""yes" 1>&6
10547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10548   cat >> confdefs.h <<EOF
10549 #define $ac_tr_func 1
10550 EOF
10551  
10552 else
10553   echo "$ac_t""no" 1>&6
10554 fi
10555 done
10556     
10557   else
10558     
10559   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
10560 echo "configure:10561: checking for _qfpclass declaration" >&5
10561   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
10562     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
10563   echo $ac_n "(cached) $ac_c" 1>&6
10564 else
10565   
10566       
10567       ac_ext=C
10568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10569 ac_cpp='$CXXCPP $CPPFLAGS'
10570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10572 cross_compiling=$ac_cv_prog_cxx_cross
10573
10574       cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10577 #include <math.h>
10578                       #ifdef HAVE_IEEEFP_H
10579                       #include <ieeefp.h>
10580                       #endif
10581                      
10582 int main() {
10583  _qfpclass(0);
10584 ; return 0; }
10585 EOF
10586 if { (eval echo configure:10587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10587   rm -rf conftest*
10588   glibcpp_cv_func__qfpclass_use=yes
10589 else
10590   echo "configure: failed program was:" >&5
10591   cat conftest.$ac_ext >&5
10592   rm -rf conftest*
10593   glibcpp_cv_func__qfpclass_use=no
10594 fi
10595 rm -f conftest*
10596       ac_ext=c
10597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10598 ac_cpp='$CPP $CPPFLAGS'
10599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10601 cross_compiling=$ac_cv_prog_cc_cross
10602
10603     
10604 fi
10605
10606   fi
10607   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
10608
10609     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
10610       for ac_func in _qfpclass
10611 do
10612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10613 echo "configure:10614: checking for $ac_func" >&5
10614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10615   echo $ac_n "(cached) $ac_c" 1>&6
10616 else
10617   cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 /* System header to define __stub macros and hopefully few prototypes,
10621     which can conflict with char $ac_func(); below.  */
10622 #include <assert.h>
10623 /* Override any gcc2 internal prototype to avoid an error.  */
10624 /* We use char because int might match the return type of a gcc2
10625     builtin and then its argument prototype would still apply.  */
10626 char $ac_func();
10627
10628 int main() {
10629
10630 /* The GNU C library defines this for functions which it implements
10631     to always fail with ENOSYS.  Some functions are actually named
10632     something starting with __ and the normal name is an alias.  */
10633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10634 choke me
10635 #else
10636 $ac_func();
10637 #endif
10638
10639 ; return 0; }
10640 EOF
10641 if { (eval echo configure:10642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10642   rm -rf conftest*
10643   eval "ac_cv_func_$ac_func=yes"
10644 else
10645   echo "configure: failed program was:" >&5
10646   cat conftest.$ac_ext >&5
10647   rm -rf conftest*
10648   eval "ac_cv_func_$ac_func=no"
10649 fi
10650 rm -f conftest*
10651 fi
10652
10653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10654   echo "$ac_t""yes" 1>&6
10655     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10656   cat >> confdefs.h <<EOF
10657 #define $ac_tr_func 1
10658 EOF
10659  
10660 else
10661   echo "$ac_t""no" 1>&6
10662 fi
10663 done
10664     
10665     fi
10666   fi
10667
10668   
10669   
10670   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
10671 echo "configure:10672: checking for hypot declaration" >&5
10672   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
10673     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
10674   echo $ac_n "(cached) $ac_c" 1>&6
10675 else
10676   
10677       
10678       ac_ext=C
10679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10680 ac_cpp='$CXXCPP $CPPFLAGS'
10681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10683 cross_compiling=$ac_cv_prog_cxx_cross
10684
10685       cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 #include <math.h>
10689 int main() {
10690  hypot(0, 0);
10691 ; return 0; }
10692 EOF
10693 if { (eval echo configure:10694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10694   rm -rf conftest*
10695   glibcpp_cv_func_hypot_use=yes
10696 else
10697   echo "configure: failed program was:" >&5
10698   cat conftest.$ac_ext >&5
10699   rm -rf conftest*
10700   glibcpp_cv_func_hypot_use=no
10701 fi
10702 rm -f conftest*
10703       ac_ext=c
10704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10705 ac_cpp='$CPP $CPPFLAGS'
10706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10708 cross_compiling=$ac_cv_prog_cc_cross
10709
10710     
10711 fi
10712
10713   fi
10714   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
10715
10716   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
10717     for ac_func in hypot
10718 do
10719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10720 echo "configure:10721: checking for $ac_func" >&5
10721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10722   echo $ac_n "(cached) $ac_c" 1>&6
10723 else
10724   cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727 /* System header to define __stub macros and hopefully few prototypes,
10728     which can conflict with char $ac_func(); below.  */
10729 #include <assert.h>
10730 /* Override any gcc2 internal prototype to avoid an error.  */
10731 /* We use char because int might match the return type of a gcc2
10732     builtin and then its argument prototype would still apply.  */
10733 char $ac_func();
10734
10735 int main() {
10736
10737 /* The GNU C library defines this for functions which it implements
10738     to always fail with ENOSYS.  Some functions are actually named
10739     something starting with __ and the normal name is an alias.  */
10740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10741 choke me
10742 #else
10743 $ac_func();
10744 #endif
10745
10746 ; return 0; }
10747 EOF
10748 if { (eval echo configure:10749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10749   rm -rf conftest*
10750   eval "ac_cv_func_$ac_func=yes"
10751 else
10752   echo "configure: failed program was:" >&5
10753   cat conftest.$ac_ext >&5
10754   rm -rf conftest*
10755   eval "ac_cv_func_$ac_func=no"
10756 fi
10757 rm -f conftest*
10758 fi
10759
10760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10761   echo "$ac_t""yes" 1>&6
10762     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10763   cat >> confdefs.h <<EOF
10764 #define $ac_tr_func 1
10765 EOF
10766  
10767 else
10768   echo "$ac_t""no" 1>&6
10769 fi
10770 done
10771     
10772   else
10773     
10774   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
10775 echo "configure:10776: checking for _hypot declaration" >&5
10776   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
10777     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
10778   echo $ac_n "(cached) $ac_c" 1>&6
10779 else
10780   
10781       
10782       ac_ext=C
10783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10784 ac_cpp='$CXXCPP $CPPFLAGS'
10785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10787 cross_compiling=$ac_cv_prog_cxx_cross
10788
10789       cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 #include <math.h>
10793 int main() {
10794  _hypot(0, 0);
10795 ; return 0; }
10796 EOF
10797 if { (eval echo configure:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10798   rm -rf conftest*
10799   glibcpp_cv_func__hypot_use=yes
10800 else
10801   echo "configure: failed program was:" >&5
10802   cat conftest.$ac_ext >&5
10803   rm -rf conftest*
10804   glibcpp_cv_func__hypot_use=no
10805 fi
10806 rm -f conftest*
10807       ac_ext=c
10808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10809 ac_cpp='$CPP $CPPFLAGS'
10810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10812 cross_compiling=$ac_cv_prog_cc_cross
10813
10814     
10815 fi
10816
10817   fi
10818   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
10819
10820     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
10821       for ac_func in _hypot
10822 do
10823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10824 echo "configure:10825: checking for $ac_func" >&5
10825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10826   echo $ac_n "(cached) $ac_c" 1>&6
10827 else
10828   cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10831 /* System header to define __stub macros and hopefully few prototypes,
10832     which can conflict with char $ac_func(); below.  */
10833 #include <assert.h>
10834 /* Override any gcc2 internal prototype to avoid an error.  */
10835 /* We use char because int might match the return type of a gcc2
10836     builtin and then its argument prototype would still apply.  */
10837 char $ac_func();
10838
10839 int main() {
10840
10841 /* The GNU C library defines this for functions which it implements
10842     to always fail with ENOSYS.  Some functions are actually named
10843     something starting with __ and the normal name is an alias.  */
10844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10845 choke me
10846 #else
10847 $ac_func();
10848 #endif
10849
10850 ; return 0; }
10851 EOF
10852 if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10853   rm -rf conftest*
10854   eval "ac_cv_func_$ac_func=yes"
10855 else
10856   echo "configure: failed program was:" >&5
10857   cat conftest.$ac_ext >&5
10858   rm -rf conftest*
10859   eval "ac_cv_func_$ac_func=no"
10860 fi
10861 rm -f conftest*
10862 fi
10863
10864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10865   echo "$ac_t""yes" 1>&6
10866     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10867   cat >> confdefs.h <<EOF
10868 #define $ac_tr_func 1
10869 EOF
10870  
10871 else
10872   echo "$ac_t""no" 1>&6
10873 fi
10874 done
10875     
10876     fi
10877   fi
10878
10879
10880     
10881   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
10882 echo "configure:10883: checking for float trig functions" >&5
10883   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
10884   echo $ac_n "(cached) $ac_c" 1>&6
10885 else
10886   
10887     
10888     ac_ext=C
10889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10890 ac_cpp='$CXXCPP $CPPFLAGS'
10891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10893 cross_compiling=$ac_cv_prog_cxx_cross
10894
10895     cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10898 #include <math.h>
10899 int main() {
10900  `for x in acosf asinf atanf \
10901                                           cosf sinf tanf \
10902                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
10903 ; return 0; }
10904 EOF
10905 if { (eval echo configure:10906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10906   rm -rf conftest*
10907   glibcpp_cv_func_float_trig_use=yes
10908 else
10909   echo "configure: failed program was:" >&5
10910   cat conftest.$ac_ext >&5
10911   rm -rf conftest*
10912   glibcpp_cv_func_float_trig_use=no
10913 fi
10914 rm -f conftest*
10915     ac_ext=c
10916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10917 ac_cpp='$CPP $CPPFLAGS'
10918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10920 cross_compiling=$ac_cv_prog_cc_cross
10921
10922 fi
10923
10924   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
10925   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
10926     for ac_func in acosf asinf atanf \
10927                                           cosf sinf tanf \
10928                                           coshf sinhf tanhf
10929 do
10930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10931 echo "configure:10932: checking for $ac_func" >&5
10932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10933   echo $ac_n "(cached) $ac_c" 1>&6
10934 else
10935   cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 /* System header to define __stub macros and hopefully few prototypes,
10939     which can conflict with char $ac_func(); below.  */
10940 #include <assert.h>
10941 /* Override any gcc2 internal prototype to avoid an error.  */
10942 /* We use char because int might match the return type of a gcc2
10943     builtin and then its argument prototype would still apply.  */
10944 char $ac_func();
10945
10946 int main() {
10947
10948 /* The GNU C library defines this for functions which it implements
10949     to always fail with ENOSYS.  Some functions are actually named
10950     something starting with __ and the normal name is an alias.  */
10951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10952 choke me
10953 #else
10954 $ac_func();
10955 #endif
10956
10957 ; return 0; }
10958 EOF
10959 if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10960   rm -rf conftest*
10961   eval "ac_cv_func_$ac_func=yes"
10962 else
10963   echo "configure: failed program was:" >&5
10964   cat conftest.$ac_ext >&5
10965   rm -rf conftest*
10966   eval "ac_cv_func_$ac_func=no"
10967 fi
10968 rm -f conftest*
10969 fi
10970
10971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10972   echo "$ac_t""yes" 1>&6
10973     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10974   cat >> confdefs.h <<EOF
10975 #define $ac_tr_func 1
10976 EOF
10977  
10978 else
10979   echo "$ac_t""no" 1>&6
10980 fi
10981 done
10982
10983   fi
10984
10985   
10986   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10987 echo "configure:10988: checking for float round functions" >&5
10988   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10989   echo $ac_n "(cached) $ac_c" 1>&6
10990 else
10991   
10992     
10993     ac_ext=C
10994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10995 ac_cpp='$CXXCPP $CPPFLAGS'
10996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10998 cross_compiling=$ac_cv_prog_cxx_cross
10999
11000     cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 #include <math.h>
11004 int main() {
11005  `for x in ceilf floorf; do echo "$x (0);"; done` 
11006 ; return 0; }
11007 EOF
11008 if { (eval echo configure:11009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11009   rm -rf conftest*
11010   glibcpp_cv_func_float_round_use=yes
11011 else
11012   echo "configure: failed program was:" >&5
11013   cat conftest.$ac_ext >&5
11014   rm -rf conftest*
11015   glibcpp_cv_func_float_round_use=no
11016 fi
11017 rm -f conftest*
11018     ac_ext=c
11019 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11020 ac_cpp='$CPP $CPPFLAGS'
11021 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11022 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11023 cross_compiling=$ac_cv_prog_cc_cross
11024
11025 fi
11026
11027   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
11028   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
11029     for ac_func in ceilf floorf
11030 do
11031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11032 echo "configure:11033: checking for $ac_func" >&5
11033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11034   echo $ac_n "(cached) $ac_c" 1>&6
11035 else
11036   cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 /* System header to define __stub macros and hopefully few prototypes,
11040     which can conflict with char $ac_func(); below.  */
11041 #include <assert.h>
11042 /* Override any gcc2 internal prototype to avoid an error.  */
11043 /* We use char because int might match the return type of a gcc2
11044     builtin and then its argument prototype would still apply.  */
11045 char $ac_func();
11046
11047 int main() {
11048
11049 /* The GNU C library defines this for functions which it implements
11050     to always fail with ENOSYS.  Some functions are actually named
11051     something starting with __ and the normal name is an alias.  */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11053 choke me
11054 #else
11055 $ac_func();
11056 #endif
11057
11058 ; return 0; }
11059 EOF
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11061   rm -rf conftest*
11062   eval "ac_cv_func_$ac_func=yes"
11063 else
11064   echo "configure: failed program was:" >&5
11065   cat conftest.$ac_ext >&5
11066   rm -rf conftest*
11067   eval "ac_cv_func_$ac_func=no"
11068 fi
11069 rm -f conftest*
11070 fi
11071
11072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11073   echo "$ac_t""yes" 1>&6
11074     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11075   cat >> confdefs.h <<EOF
11076 #define $ac_tr_func 1
11077 EOF
11078  
11079 else
11080   echo "$ac_t""no" 1>&6
11081 fi
11082 done
11083
11084   fi
11085
11086   
11087   
11088   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11089 echo "configure:11090: checking for isnanf declaration" >&5
11090   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11091     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11092   echo $ac_n "(cached) $ac_c" 1>&6
11093 else
11094   
11095       
11096       ac_ext=C
11097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11098 ac_cpp='$CXXCPP $CPPFLAGS'
11099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11101 cross_compiling=$ac_cv_prog_cxx_cross
11102
11103       cat > conftest.$ac_ext <<EOF
11104 #line 11105 "configure"
11105 #include "confdefs.h"
11106 #include <math.h>
11107                       #ifdef HAVE_IEEEFP_H
11108                       #include <ieeefp.h>
11109                       #endif
11110                      
11111 int main() {
11112  isnanf(0);
11113 ; return 0; }
11114 EOF
11115 if { (eval echo configure:11116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11116   rm -rf conftest*
11117   glibcpp_cv_func_isnanf_use=yes
11118 else
11119   echo "configure: failed program was:" >&5
11120   cat conftest.$ac_ext >&5
11121   rm -rf conftest*
11122   glibcpp_cv_func_isnanf_use=no
11123 fi
11124 rm -f conftest*
11125       ac_ext=c
11126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11127 ac_cpp='$CPP $CPPFLAGS'
11128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11130 cross_compiling=$ac_cv_prog_cc_cross
11131
11132     
11133 fi
11134
11135   fi
11136   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11137
11138   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11139     for ac_func in isnanf
11140 do
11141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11142 echo "configure:11143: checking for $ac_func" >&5
11143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11144   echo $ac_n "(cached) $ac_c" 1>&6
11145 else
11146   cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11149 /* System header to define __stub macros and hopefully few prototypes,
11150     which can conflict with char $ac_func(); below.  */
11151 #include <assert.h>
11152 /* Override any gcc2 internal prototype to avoid an error.  */
11153 /* We use char because int might match the return type of a gcc2
11154     builtin and then its argument prototype would still apply.  */
11155 char $ac_func();
11156
11157 int main() {
11158
11159 /* The GNU C library defines this for functions which it implements
11160     to always fail with ENOSYS.  Some functions are actually named
11161     something starting with __ and the normal name is an alias.  */
11162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11163 choke me
11164 #else
11165 $ac_func();
11166 #endif
11167
11168 ; return 0; }
11169 EOF
11170 if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11171   rm -rf conftest*
11172   eval "ac_cv_func_$ac_func=yes"
11173 else
11174   echo "configure: failed program was:" >&5
11175   cat conftest.$ac_ext >&5
11176   rm -rf conftest*
11177   eval "ac_cv_func_$ac_func=no"
11178 fi
11179 rm -f conftest*
11180 fi
11181
11182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11183   echo "$ac_t""yes" 1>&6
11184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11185   cat >> confdefs.h <<EOF
11186 #define $ac_tr_func 1
11187 EOF
11188  
11189 else
11190   echo "$ac_t""no" 1>&6
11191 fi
11192 done
11193     
11194   else
11195     
11196   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
11197 echo "configure:11198: checking for _isnanf declaration" >&5
11198   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
11199     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
11200   echo $ac_n "(cached) $ac_c" 1>&6
11201 else
11202   
11203       
11204       ac_ext=C
11205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11206 ac_cpp='$CXXCPP $CPPFLAGS'
11207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11209 cross_compiling=$ac_cv_prog_cxx_cross
11210
11211       cat > conftest.$ac_ext <<EOF
11212 #line 11213 "configure"
11213 #include "confdefs.h"
11214 #include <math.h>
11215                       #ifdef HAVE_IEEEFP_H
11216                       #include <ieeefp.h>
11217                       #endif
11218                      
11219 int main() {
11220  _isnanf(0);
11221 ; return 0; }
11222 EOF
11223 if { (eval echo configure:11224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11224   rm -rf conftest*
11225   glibcpp_cv_func__isnanf_use=yes
11226 else
11227   echo "configure: failed program was:" >&5
11228   cat conftest.$ac_ext >&5
11229   rm -rf conftest*
11230   glibcpp_cv_func__isnanf_use=no
11231 fi
11232 rm -f conftest*
11233       ac_ext=c
11234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11235 ac_cpp='$CPP $CPPFLAGS'
11236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11238 cross_compiling=$ac_cv_prog_cc_cross
11239
11240     
11241 fi
11242
11243   fi
11244   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
11245
11246     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
11247       for ac_func in _isnanf
11248 do
11249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11250 echo "configure:11251: checking for $ac_func" >&5
11251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11252   echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11254   cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11257 /* System header to define __stub macros and hopefully few prototypes,
11258     which can conflict with char $ac_func(); below.  */
11259 #include <assert.h>
11260 /* Override any gcc2 internal prototype to avoid an error.  */
11261 /* We use char because int might match the return type of a gcc2
11262     builtin and then its argument prototype would still apply.  */
11263 char $ac_func();
11264
11265 int main() {
11266
11267 /* The GNU C library defines this for functions which it implements
11268     to always fail with ENOSYS.  Some functions are actually named
11269     something starting with __ and the normal name is an alias.  */
11270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11271 choke me
11272 #else
11273 $ac_func();
11274 #endif
11275
11276 ; return 0; }
11277 EOF
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11279   rm -rf conftest*
11280   eval "ac_cv_func_$ac_func=yes"
11281 else
11282   echo "configure: failed program was:" >&5
11283   cat conftest.$ac_ext >&5
11284   rm -rf conftest*
11285   eval "ac_cv_func_$ac_func=no"
11286 fi
11287 rm -f conftest*
11288 fi
11289
11290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11291   echo "$ac_t""yes" 1>&6
11292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11293   cat >> confdefs.h <<EOF
11294 #define $ac_tr_func 1
11295 EOF
11296  
11297 else
11298   echo "$ac_t""no" 1>&6
11299 fi
11300 done
11301     
11302     fi
11303   fi
11304
11305   
11306   
11307   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
11308 echo "configure:11309: checking for isinff declaration" >&5
11309   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
11310     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
11311   echo $ac_n "(cached) $ac_c" 1>&6
11312 else
11313   
11314       
11315       ac_ext=C
11316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11317 ac_cpp='$CXXCPP $CPPFLAGS'
11318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11320 cross_compiling=$ac_cv_prog_cxx_cross
11321
11322       cat > conftest.$ac_ext <<EOF
11323 #line 11324 "configure"
11324 #include "confdefs.h"
11325 #include <math.h>
11326                       #ifdef HAVE_IEEEFP_H
11327                       #include <ieeefp.h>
11328                       #endif
11329                      
11330 int main() {
11331  isinff(0);
11332 ; return 0; }
11333 EOF
11334 if { (eval echo configure:11335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11335   rm -rf conftest*
11336   glibcpp_cv_func_isinff_use=yes
11337 else
11338   echo "configure: failed program was:" >&5
11339   cat conftest.$ac_ext >&5
11340   rm -rf conftest*
11341   glibcpp_cv_func_isinff_use=no
11342 fi
11343 rm -f conftest*
11344       ac_ext=c
11345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11346 ac_cpp='$CPP $CPPFLAGS'
11347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11349 cross_compiling=$ac_cv_prog_cc_cross
11350
11351     
11352 fi
11353
11354   fi
11355   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
11356
11357   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
11358     for ac_func in isinff
11359 do
11360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11361 echo "configure:11362: checking for $ac_func" >&5
11362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11363   echo $ac_n "(cached) $ac_c" 1>&6
11364 else
11365   cat > conftest.$ac_ext <<EOF
11366 #line 11367 "configure"
11367 #include "confdefs.h"
11368 /* System header to define __stub macros and hopefully few prototypes,
11369     which can conflict with char $ac_func(); below.  */
11370 #include <assert.h>
11371 /* Override any gcc2 internal prototype to avoid an error.  */
11372 /* We use char because int might match the return type of a gcc2
11373     builtin and then its argument prototype would still apply.  */
11374 char $ac_func();
11375
11376 int main() {
11377
11378 /* The GNU C library defines this for functions which it implements
11379     to always fail with ENOSYS.  Some functions are actually named
11380     something starting with __ and the normal name is an alias.  */
11381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11382 choke me
11383 #else
11384 $ac_func();
11385 #endif
11386
11387 ; return 0; }
11388 EOF
11389 if { (eval echo configure:11390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11390   rm -rf conftest*
11391   eval "ac_cv_func_$ac_func=yes"
11392 else
11393   echo "configure: failed program was:" >&5
11394   cat conftest.$ac_ext >&5
11395   rm -rf conftest*
11396   eval "ac_cv_func_$ac_func=no"
11397 fi
11398 rm -f conftest*
11399 fi
11400
11401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11402   echo "$ac_t""yes" 1>&6
11403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11404   cat >> confdefs.h <<EOF
11405 #define $ac_tr_func 1
11406 EOF
11407  
11408 else
11409   echo "$ac_t""no" 1>&6
11410 fi
11411 done
11412     
11413   else
11414     
11415   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
11416 echo "configure:11417: checking for _isinff declaration" >&5
11417   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
11418     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
11419   echo $ac_n "(cached) $ac_c" 1>&6
11420 else
11421   
11422       
11423       ac_ext=C
11424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11425 ac_cpp='$CXXCPP $CPPFLAGS'
11426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11428 cross_compiling=$ac_cv_prog_cxx_cross
11429
11430       cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11433 #include <math.h>
11434                       #ifdef HAVE_IEEEFP_H
11435                       #include <ieeefp.h>
11436                       #endif
11437                      
11438 int main() {
11439  _isinff(0);
11440 ; return 0; }
11441 EOF
11442 if { (eval echo configure:11443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11443   rm -rf conftest*
11444   glibcpp_cv_func__isinff_use=yes
11445 else
11446   echo "configure: failed program was:" >&5
11447   cat conftest.$ac_ext >&5
11448   rm -rf conftest*
11449   glibcpp_cv_func__isinff_use=no
11450 fi
11451 rm -f conftest*
11452       ac_ext=c
11453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11454 ac_cpp='$CPP $CPPFLAGS'
11455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11457 cross_compiling=$ac_cv_prog_cc_cross
11458
11459     
11460 fi
11461
11462   fi
11463   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
11464
11465     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
11466       for ac_func in _isinff
11467 do
11468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11469 echo "configure:11470: checking for $ac_func" >&5
11470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11471   echo $ac_n "(cached) $ac_c" 1>&6
11472 else
11473   cat > conftest.$ac_ext <<EOF
11474 #line 11475 "configure"
11475 #include "confdefs.h"
11476 /* System header to define __stub macros and hopefully few prototypes,
11477     which can conflict with char $ac_func(); below.  */
11478 #include <assert.h>
11479 /* Override any gcc2 internal prototype to avoid an error.  */
11480 /* We use char because int might match the return type of a gcc2
11481     builtin and then its argument prototype would still apply.  */
11482 char $ac_func();
11483
11484 int main() {
11485
11486 /* The GNU C library defines this for functions which it implements
11487     to always fail with ENOSYS.  Some functions are actually named
11488     something starting with __ and the normal name is an alias.  */
11489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11490 choke me
11491 #else
11492 $ac_func();
11493 #endif
11494
11495 ; return 0; }
11496 EOF
11497 if { (eval echo configure:11498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11498   rm -rf conftest*
11499   eval "ac_cv_func_$ac_func=yes"
11500 else
11501   echo "configure: failed program was:" >&5
11502   cat conftest.$ac_ext >&5
11503   rm -rf conftest*
11504   eval "ac_cv_func_$ac_func=no"
11505 fi
11506 rm -f conftest*
11507 fi
11508
11509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11510   echo "$ac_t""yes" 1>&6
11511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11512   cat >> confdefs.h <<EOF
11513 #define $ac_tr_func 1
11514 EOF
11515  
11516 else
11517   echo "$ac_t""no" 1>&6
11518 fi
11519 done
11520     
11521     fi
11522   fi
11523
11524   
11525   
11526   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
11527 echo "configure:11528: checking for atan2f declaration" >&5
11528   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
11529     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
11530   echo $ac_n "(cached) $ac_c" 1>&6
11531 else
11532   
11533       
11534       ac_ext=C
11535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11536 ac_cpp='$CXXCPP $CPPFLAGS'
11537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11539 cross_compiling=$ac_cv_prog_cxx_cross
11540
11541       cat > conftest.$ac_ext <<EOF
11542 #line 11543 "configure"
11543 #include "confdefs.h"
11544 #include <math.h>
11545 int main() {
11546  atan2f(0, 0);
11547 ; return 0; }
11548 EOF
11549 if { (eval echo configure:11550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11550   rm -rf conftest*
11551   glibcpp_cv_func_atan2f_use=yes
11552 else
11553   echo "configure: failed program was:" >&5
11554   cat conftest.$ac_ext >&5
11555   rm -rf conftest*
11556   glibcpp_cv_func_atan2f_use=no
11557 fi
11558 rm -f conftest*
11559       ac_ext=c
11560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11561 ac_cpp='$CPP $CPPFLAGS'
11562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11564 cross_compiling=$ac_cv_prog_cc_cross
11565
11566     
11567 fi
11568
11569   fi
11570   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
11571
11572   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
11573     for ac_func in atan2f
11574 do
11575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11576 echo "configure:11577: checking for $ac_func" >&5
11577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11578   echo $ac_n "(cached) $ac_c" 1>&6
11579 else
11580   cat > conftest.$ac_ext <<EOF
11581 #line 11582 "configure"
11582 #include "confdefs.h"
11583 /* System header to define __stub macros and hopefully few prototypes,
11584     which can conflict with char $ac_func(); below.  */
11585 #include <assert.h>
11586 /* Override any gcc2 internal prototype to avoid an error.  */
11587 /* We use char because int might match the return type of a gcc2
11588     builtin and then its argument prototype would still apply.  */
11589 char $ac_func();
11590
11591 int main() {
11592
11593 /* The GNU C library defines this for functions which it implements
11594     to always fail with ENOSYS.  Some functions are actually named
11595     something starting with __ and the normal name is an alias.  */
11596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11597 choke me
11598 #else
11599 $ac_func();
11600 #endif
11601
11602 ; return 0; }
11603 EOF
11604 if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11605   rm -rf conftest*
11606   eval "ac_cv_func_$ac_func=yes"
11607 else
11608   echo "configure: failed program was:" >&5
11609   cat conftest.$ac_ext >&5
11610   rm -rf conftest*
11611   eval "ac_cv_func_$ac_func=no"
11612 fi
11613 rm -f conftest*
11614 fi
11615
11616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11617   echo "$ac_t""yes" 1>&6
11618     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11619   cat >> confdefs.h <<EOF
11620 #define $ac_tr_func 1
11621 EOF
11622  
11623 else
11624   echo "$ac_t""no" 1>&6
11625 fi
11626 done
11627     
11628   else
11629     
11630   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
11631 echo "configure:11632: checking for _atan2f declaration" >&5
11632   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
11633     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
11634   echo $ac_n "(cached) $ac_c" 1>&6
11635 else
11636   
11637       
11638       ac_ext=C
11639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11640 ac_cpp='$CXXCPP $CPPFLAGS'
11641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11643 cross_compiling=$ac_cv_prog_cxx_cross
11644
11645       cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648 #include <math.h>
11649 int main() {
11650  _atan2f(0, 0);
11651 ; return 0; }
11652 EOF
11653 if { (eval echo configure:11654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11654   rm -rf conftest*
11655   glibcpp_cv_func__atan2f_use=yes
11656 else
11657   echo "configure: failed program was:" >&5
11658   cat conftest.$ac_ext >&5
11659   rm -rf conftest*
11660   glibcpp_cv_func__atan2f_use=no
11661 fi
11662 rm -f conftest*
11663       ac_ext=c
11664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11665 ac_cpp='$CPP $CPPFLAGS'
11666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11668 cross_compiling=$ac_cv_prog_cc_cross
11669
11670     
11671 fi
11672
11673   fi
11674   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
11675
11676     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
11677       for ac_func in _atan2f
11678 do
11679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11680 echo "configure:11681: checking for $ac_func" >&5
11681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11682   echo $ac_n "(cached) $ac_c" 1>&6
11683 else
11684   cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11687 /* System header to define __stub macros and hopefully few prototypes,
11688     which can conflict with char $ac_func(); below.  */
11689 #include <assert.h>
11690 /* Override any gcc2 internal prototype to avoid an error.  */
11691 /* We use char because int might match the return type of a gcc2
11692     builtin and then its argument prototype would still apply.  */
11693 char $ac_func();
11694
11695 int main() {
11696
11697 /* The GNU C library defines this for functions which it implements
11698     to always fail with ENOSYS.  Some functions are actually named
11699     something starting with __ and the normal name is an alias.  */
11700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11701 choke me
11702 #else
11703 $ac_func();
11704 #endif
11705
11706 ; return 0; }
11707 EOF
11708 if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11709   rm -rf conftest*
11710   eval "ac_cv_func_$ac_func=yes"
11711 else
11712   echo "configure: failed program was:" >&5
11713   cat conftest.$ac_ext >&5
11714   rm -rf conftest*
11715   eval "ac_cv_func_$ac_func=no"
11716 fi
11717 rm -f conftest*
11718 fi
11719
11720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11721   echo "$ac_t""yes" 1>&6
11722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11723   cat >> confdefs.h <<EOF
11724 #define $ac_tr_func 1
11725 EOF
11726  
11727 else
11728   echo "$ac_t""no" 1>&6
11729 fi
11730 done
11731     
11732     fi
11733   fi
11734
11735   
11736   
11737   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
11738 echo "configure:11739: checking for fabsf declaration" >&5
11739   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
11740     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
11741   echo $ac_n "(cached) $ac_c" 1>&6
11742 else
11743   
11744       
11745       ac_ext=C
11746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11747 ac_cpp='$CXXCPP $CPPFLAGS'
11748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11750 cross_compiling=$ac_cv_prog_cxx_cross
11751
11752       cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11755 #include <math.h>
11756                       #ifdef HAVE_IEEEFP_H
11757                       #include <ieeefp.h>
11758                       #endif
11759                      
11760 int main() {
11761  fabsf(0);
11762 ; return 0; }
11763 EOF
11764 if { (eval echo configure:11765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11765   rm -rf conftest*
11766   glibcpp_cv_func_fabsf_use=yes
11767 else
11768   echo "configure: failed program was:" >&5
11769   cat conftest.$ac_ext >&5
11770   rm -rf conftest*
11771   glibcpp_cv_func_fabsf_use=no
11772 fi
11773 rm -f conftest*
11774       ac_ext=c
11775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11776 ac_cpp='$CPP $CPPFLAGS'
11777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11779 cross_compiling=$ac_cv_prog_cc_cross
11780
11781     
11782 fi
11783
11784   fi
11785   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
11786
11787   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
11788     for ac_func in fabsf
11789 do
11790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11791 echo "configure:11792: checking for $ac_func" >&5
11792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11793   echo $ac_n "(cached) $ac_c" 1>&6
11794 else
11795   cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 /* System header to define __stub macros and hopefully few prototypes,
11799     which can conflict with char $ac_func(); below.  */
11800 #include <assert.h>
11801 /* Override any gcc2 internal prototype to avoid an error.  */
11802 /* We use char because int might match the return type of a gcc2
11803     builtin and then its argument prototype would still apply.  */
11804 char $ac_func();
11805
11806 int main() {
11807
11808 /* The GNU C library defines this for functions which it implements
11809     to always fail with ENOSYS.  Some functions are actually named
11810     something starting with __ and the normal name is an alias.  */
11811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11812 choke me
11813 #else
11814 $ac_func();
11815 #endif
11816
11817 ; return 0; }
11818 EOF
11819 if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11820   rm -rf conftest*
11821   eval "ac_cv_func_$ac_func=yes"
11822 else
11823   echo "configure: failed program was:" >&5
11824   cat conftest.$ac_ext >&5
11825   rm -rf conftest*
11826   eval "ac_cv_func_$ac_func=no"
11827 fi
11828 rm -f conftest*
11829 fi
11830
11831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11832   echo "$ac_t""yes" 1>&6
11833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11834   cat >> confdefs.h <<EOF
11835 #define $ac_tr_func 1
11836 EOF
11837  
11838 else
11839   echo "$ac_t""no" 1>&6
11840 fi
11841 done
11842     
11843   else
11844     
11845   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
11846 echo "configure:11847: checking for _fabsf declaration" >&5
11847   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
11848     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
11849   echo $ac_n "(cached) $ac_c" 1>&6
11850 else
11851   
11852       
11853       ac_ext=C
11854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11855 ac_cpp='$CXXCPP $CPPFLAGS'
11856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11858 cross_compiling=$ac_cv_prog_cxx_cross
11859
11860       cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11863 #include <math.h>
11864                       #ifdef HAVE_IEEEFP_H
11865                       #include <ieeefp.h>
11866                       #endif
11867                      
11868 int main() {
11869  _fabsf(0);
11870 ; return 0; }
11871 EOF
11872 if { (eval echo configure:11873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11873   rm -rf conftest*
11874   glibcpp_cv_func__fabsf_use=yes
11875 else
11876   echo "configure: failed program was:" >&5
11877   cat conftest.$ac_ext >&5
11878   rm -rf conftest*
11879   glibcpp_cv_func__fabsf_use=no
11880 fi
11881 rm -f conftest*
11882       ac_ext=c
11883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11884 ac_cpp='$CPP $CPPFLAGS'
11885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11887 cross_compiling=$ac_cv_prog_cc_cross
11888
11889     
11890 fi
11891
11892   fi
11893   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
11894
11895     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
11896       for ac_func in _fabsf
11897 do
11898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11899 echo "configure:11900: checking for $ac_func" >&5
11900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11901   echo $ac_n "(cached) $ac_c" 1>&6
11902 else
11903   cat > conftest.$ac_ext <<EOF
11904 #line 11905 "configure"
11905 #include "confdefs.h"
11906 /* System header to define __stub macros and hopefully few prototypes,
11907     which can conflict with char $ac_func(); below.  */
11908 #include <assert.h>
11909 /* Override any gcc2 internal prototype to avoid an error.  */
11910 /* We use char because int might match the return type of a gcc2
11911     builtin and then its argument prototype would still apply.  */
11912 char $ac_func();
11913
11914 int main() {
11915
11916 /* The GNU C library defines this for functions which it implements
11917     to always fail with ENOSYS.  Some functions are actually named
11918     something starting with __ and the normal name is an alias.  */
11919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11920 choke me
11921 #else
11922 $ac_func();
11923 #endif
11924
11925 ; return 0; }
11926 EOF
11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11928   rm -rf conftest*
11929   eval "ac_cv_func_$ac_func=yes"
11930 else
11931   echo "configure: failed program was:" >&5
11932   cat conftest.$ac_ext >&5
11933   rm -rf conftest*
11934   eval "ac_cv_func_$ac_func=no"
11935 fi
11936 rm -f conftest*
11937 fi
11938
11939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11940   echo "$ac_t""yes" 1>&6
11941     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11942   cat >> confdefs.h <<EOF
11943 #define $ac_tr_func 1
11944 EOF
11945  
11946 else
11947   echo "$ac_t""no" 1>&6
11948 fi
11949 done
11950     
11951     fi
11952   fi
11953
11954   
11955   
11956   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
11957 echo "configure:11958: checking for fmodf declaration" >&5
11958   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
11959     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
11960   echo $ac_n "(cached) $ac_c" 1>&6
11961 else
11962   
11963       
11964       ac_ext=C
11965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11966 ac_cpp='$CXXCPP $CPPFLAGS'
11967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11969 cross_compiling=$ac_cv_prog_cxx_cross
11970
11971       cat > conftest.$ac_ext <<EOF
11972 #line 11973 "configure"
11973 #include "confdefs.h"
11974 #include <math.h>
11975 int main() {
11976  fmodf(0, 0);
11977 ; return 0; }
11978 EOF
11979 if { (eval echo configure:11980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11980   rm -rf conftest*
11981   glibcpp_cv_func_fmodf_use=yes
11982 else
11983   echo "configure: failed program was:" >&5
11984   cat conftest.$ac_ext >&5
11985   rm -rf conftest*
11986   glibcpp_cv_func_fmodf_use=no
11987 fi
11988 rm -f conftest*
11989       ac_ext=c
11990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11991 ac_cpp='$CPP $CPPFLAGS'
11992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11994 cross_compiling=$ac_cv_prog_cc_cross
11995
11996     
11997 fi
11998
11999   fi
12000   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
12001
12002   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
12003     for ac_func in fmodf
12004 do
12005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12006 echo "configure:12007: checking for $ac_func" >&5
12007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12008   echo $ac_n "(cached) $ac_c" 1>&6
12009 else
12010   cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12013 /* System header to define __stub macros and hopefully few prototypes,
12014     which can conflict with char $ac_func(); below.  */
12015 #include <assert.h>
12016 /* Override any gcc2 internal prototype to avoid an error.  */
12017 /* We use char because int might match the return type of a gcc2
12018     builtin and then its argument prototype would still apply.  */
12019 char $ac_func();
12020
12021 int main() {
12022
12023 /* The GNU C library defines this for functions which it implements
12024     to always fail with ENOSYS.  Some functions are actually named
12025     something starting with __ and the normal name is an alias.  */
12026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12027 choke me
12028 #else
12029 $ac_func();
12030 #endif
12031
12032 ; return 0; }
12033 EOF
12034 if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12035   rm -rf conftest*
12036   eval "ac_cv_func_$ac_func=yes"
12037 else
12038   echo "configure: failed program was:" >&5
12039   cat conftest.$ac_ext >&5
12040   rm -rf conftest*
12041   eval "ac_cv_func_$ac_func=no"
12042 fi
12043 rm -f conftest*
12044 fi
12045
12046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12047   echo "$ac_t""yes" 1>&6
12048     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12049   cat >> confdefs.h <<EOF
12050 #define $ac_tr_func 1
12051 EOF
12052  
12053 else
12054   echo "$ac_t""no" 1>&6
12055 fi
12056 done
12057     
12058   else
12059     
12060   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12061 echo "configure:12062: checking for _fmodf declaration" >&5
12062   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12063     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12064   echo $ac_n "(cached) $ac_c" 1>&6
12065 else
12066   
12067       
12068       ac_ext=C
12069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12070 ac_cpp='$CXXCPP $CPPFLAGS'
12071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12073 cross_compiling=$ac_cv_prog_cxx_cross
12074
12075       cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078 #include <math.h>
12079 int main() {
12080  _fmodf(0, 0);
12081 ; return 0; }
12082 EOF
12083 if { (eval echo configure:12084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12084   rm -rf conftest*
12085   glibcpp_cv_func__fmodf_use=yes
12086 else
12087   echo "configure: failed program was:" >&5
12088   cat conftest.$ac_ext >&5
12089   rm -rf conftest*
12090   glibcpp_cv_func__fmodf_use=no
12091 fi
12092 rm -f conftest*
12093       ac_ext=c
12094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12095 ac_cpp='$CPP $CPPFLAGS'
12096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12098 cross_compiling=$ac_cv_prog_cc_cross
12099
12100     
12101 fi
12102
12103   fi
12104   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12105
12106     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12107       for ac_func in _fmodf
12108 do
12109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12110 echo "configure:12111: checking for $ac_func" >&5
12111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12112   echo $ac_n "(cached) $ac_c" 1>&6
12113 else
12114   cat > conftest.$ac_ext <<EOF
12115 #line 12116 "configure"
12116 #include "confdefs.h"
12117 /* System header to define __stub macros and hopefully few prototypes,
12118     which can conflict with char $ac_func(); below.  */
12119 #include <assert.h>
12120 /* Override any gcc2 internal prototype to avoid an error.  */
12121 /* We use char because int might match the return type of a gcc2
12122     builtin and then its argument prototype would still apply.  */
12123 char $ac_func();
12124
12125 int main() {
12126
12127 /* The GNU C library defines this for functions which it implements
12128     to always fail with ENOSYS.  Some functions are actually named
12129     something starting with __ and the normal name is an alias.  */
12130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12131 choke me
12132 #else
12133 $ac_func();
12134 #endif
12135
12136 ; return 0; }
12137 EOF
12138 if { (eval echo configure:12139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12139   rm -rf conftest*
12140   eval "ac_cv_func_$ac_func=yes"
12141 else
12142   echo "configure: failed program was:" >&5
12143   cat conftest.$ac_ext >&5
12144   rm -rf conftest*
12145   eval "ac_cv_func_$ac_func=no"
12146 fi
12147 rm -f conftest*
12148 fi
12149
12150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12151   echo "$ac_t""yes" 1>&6
12152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12153   cat >> confdefs.h <<EOF
12154 #define $ac_tr_func 1
12155 EOF
12156  
12157 else
12158   echo "$ac_t""no" 1>&6
12159 fi
12160 done
12161     
12162     fi
12163   fi
12164
12165   
12166   
12167   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
12168 echo "configure:12169: checking for frexpf declaration" >&5
12169   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
12170     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
12171   echo $ac_n "(cached) $ac_c" 1>&6
12172 else
12173   
12174       
12175       ac_ext=C
12176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12177 ac_cpp='$CXXCPP $CPPFLAGS'
12178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12180 cross_compiling=$ac_cv_prog_cxx_cross
12181
12182       cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185 #include <math.h>
12186 int main() {
12187  frexpf(0, 0);
12188 ; return 0; }
12189 EOF
12190 if { (eval echo configure:12191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12191   rm -rf conftest*
12192   glibcpp_cv_func_frexpf_use=yes
12193 else
12194   echo "configure: failed program was:" >&5
12195   cat conftest.$ac_ext >&5
12196   rm -rf conftest*
12197   glibcpp_cv_func_frexpf_use=no
12198 fi
12199 rm -f conftest*
12200       ac_ext=c
12201 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12202 ac_cpp='$CPP $CPPFLAGS'
12203 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12204 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12205 cross_compiling=$ac_cv_prog_cc_cross
12206
12207     
12208 fi
12209
12210   fi
12211   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
12212
12213   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
12214     for ac_func in frexpf
12215 do
12216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12217 echo "configure:12218: checking for $ac_func" >&5
12218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12219   echo $ac_n "(cached) $ac_c" 1>&6
12220 else
12221   cat > conftest.$ac_ext <<EOF
12222 #line 12223 "configure"
12223 #include "confdefs.h"
12224 /* System header to define __stub macros and hopefully few prototypes,
12225     which can conflict with char $ac_func(); below.  */
12226 #include <assert.h>
12227 /* Override any gcc2 internal prototype to avoid an error.  */
12228 /* We use char because int might match the return type of a gcc2
12229     builtin and then its argument prototype would still apply.  */
12230 char $ac_func();
12231
12232 int main() {
12233
12234 /* The GNU C library defines this for functions which it implements
12235     to always fail with ENOSYS.  Some functions are actually named
12236     something starting with __ and the normal name is an alias.  */
12237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12238 choke me
12239 #else
12240 $ac_func();
12241 #endif
12242
12243 ; return 0; }
12244 EOF
12245 if { (eval echo configure:12246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12246   rm -rf conftest*
12247   eval "ac_cv_func_$ac_func=yes"
12248 else
12249   echo "configure: failed program was:" >&5
12250   cat conftest.$ac_ext >&5
12251   rm -rf conftest*
12252   eval "ac_cv_func_$ac_func=no"
12253 fi
12254 rm -f conftest*
12255 fi
12256
12257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12258   echo "$ac_t""yes" 1>&6
12259     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12260   cat >> confdefs.h <<EOF
12261 #define $ac_tr_func 1
12262 EOF
12263  
12264 else
12265   echo "$ac_t""no" 1>&6
12266 fi
12267 done
12268     
12269   else
12270     
12271   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
12272 echo "configure:12273: checking for _frexpf declaration" >&5
12273   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
12274     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
12275   echo $ac_n "(cached) $ac_c" 1>&6
12276 else
12277   
12278       
12279       ac_ext=C
12280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12281 ac_cpp='$CXXCPP $CPPFLAGS'
12282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12284 cross_compiling=$ac_cv_prog_cxx_cross
12285
12286       cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289 #include <math.h>
12290 int main() {
12291  _frexpf(0, 0);
12292 ; return 0; }
12293 EOF
12294 if { (eval echo configure:12295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12295   rm -rf conftest*
12296   glibcpp_cv_func__frexpf_use=yes
12297 else
12298   echo "configure: failed program was:" >&5
12299   cat conftest.$ac_ext >&5
12300   rm -rf conftest*
12301   glibcpp_cv_func__frexpf_use=no
12302 fi
12303 rm -f conftest*
12304       ac_ext=c
12305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12306 ac_cpp='$CPP $CPPFLAGS'
12307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12309 cross_compiling=$ac_cv_prog_cc_cross
12310
12311     
12312 fi
12313
12314   fi
12315   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
12316
12317     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
12318       for ac_func in _frexpf
12319 do
12320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12321 echo "configure:12322: checking for $ac_func" >&5
12322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12323   echo $ac_n "(cached) $ac_c" 1>&6
12324 else
12325   cat > conftest.$ac_ext <<EOF
12326 #line 12327 "configure"
12327 #include "confdefs.h"
12328 /* System header to define __stub macros and hopefully few prototypes,
12329     which can conflict with char $ac_func(); below.  */
12330 #include <assert.h>
12331 /* Override any gcc2 internal prototype to avoid an error.  */
12332 /* We use char because int might match the return type of a gcc2
12333     builtin and then its argument prototype would still apply.  */
12334 char $ac_func();
12335
12336 int main() {
12337
12338 /* The GNU C library defines this for functions which it implements
12339     to always fail with ENOSYS.  Some functions are actually named
12340     something starting with __ and the normal name is an alias.  */
12341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12342 choke me
12343 #else
12344 $ac_func();
12345 #endif
12346
12347 ; return 0; }
12348 EOF
12349 if { (eval echo configure:12350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12350   rm -rf conftest*
12351   eval "ac_cv_func_$ac_func=yes"
12352 else
12353   echo "configure: failed program was:" >&5
12354   cat conftest.$ac_ext >&5
12355   rm -rf conftest*
12356   eval "ac_cv_func_$ac_func=no"
12357 fi
12358 rm -f conftest*
12359 fi
12360
12361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12362   echo "$ac_t""yes" 1>&6
12363     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12364   cat >> confdefs.h <<EOF
12365 #define $ac_tr_func 1
12366 EOF
12367  
12368 else
12369   echo "$ac_t""no" 1>&6
12370 fi
12371 done
12372     
12373     fi
12374   fi
12375
12376   
12377   
12378   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
12379 echo "configure:12380: checking for hypotf declaration" >&5
12380   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
12381     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
12382   echo $ac_n "(cached) $ac_c" 1>&6
12383 else
12384   
12385       
12386       ac_ext=C
12387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12388 ac_cpp='$CXXCPP $CPPFLAGS'
12389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12391 cross_compiling=$ac_cv_prog_cxx_cross
12392
12393       cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 #include <math.h>
12397 int main() {
12398  hypotf(0, 0);
12399 ; return 0; }
12400 EOF
12401 if { (eval echo configure:12402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12402   rm -rf conftest*
12403   glibcpp_cv_func_hypotf_use=yes
12404 else
12405   echo "configure: failed program was:" >&5
12406   cat conftest.$ac_ext >&5
12407   rm -rf conftest*
12408   glibcpp_cv_func_hypotf_use=no
12409 fi
12410 rm -f conftest*
12411       ac_ext=c
12412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12413 ac_cpp='$CPP $CPPFLAGS'
12414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12416 cross_compiling=$ac_cv_prog_cc_cross
12417
12418     
12419 fi
12420
12421   fi
12422   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
12423
12424   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
12425     for ac_func in hypotf
12426 do
12427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12428 echo "configure:12429: checking for $ac_func" >&5
12429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12430   echo $ac_n "(cached) $ac_c" 1>&6
12431 else
12432   cat > conftest.$ac_ext <<EOF
12433 #line 12434 "configure"
12434 #include "confdefs.h"
12435 /* System header to define __stub macros and hopefully few prototypes,
12436     which can conflict with char $ac_func(); below.  */
12437 #include <assert.h>
12438 /* Override any gcc2 internal prototype to avoid an error.  */
12439 /* We use char because int might match the return type of a gcc2
12440     builtin and then its argument prototype would still apply.  */
12441 char $ac_func();
12442
12443 int main() {
12444
12445 /* The GNU C library defines this for functions which it implements
12446     to always fail with ENOSYS.  Some functions are actually named
12447     something starting with __ and the normal name is an alias.  */
12448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12449 choke me
12450 #else
12451 $ac_func();
12452 #endif
12453
12454 ; return 0; }
12455 EOF
12456 if { (eval echo configure:12457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12457   rm -rf conftest*
12458   eval "ac_cv_func_$ac_func=yes"
12459 else
12460   echo "configure: failed program was:" >&5
12461   cat conftest.$ac_ext >&5
12462   rm -rf conftest*
12463   eval "ac_cv_func_$ac_func=no"
12464 fi
12465 rm -f conftest*
12466 fi
12467
12468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12469   echo "$ac_t""yes" 1>&6
12470     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12471   cat >> confdefs.h <<EOF
12472 #define $ac_tr_func 1
12473 EOF
12474  
12475 else
12476   echo "$ac_t""no" 1>&6
12477 fi
12478 done
12479     
12480   else
12481     
12482   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
12483 echo "configure:12484: checking for _hypotf declaration" >&5
12484   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
12485     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
12486   echo $ac_n "(cached) $ac_c" 1>&6
12487 else
12488   
12489       
12490       ac_ext=C
12491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12492 ac_cpp='$CXXCPP $CPPFLAGS'
12493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12495 cross_compiling=$ac_cv_prog_cxx_cross
12496
12497       cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure"
12499 #include "confdefs.h"
12500 #include <math.h>
12501 int main() {
12502  _hypotf(0, 0);
12503 ; return 0; }
12504 EOF
12505 if { (eval echo configure:12506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12506   rm -rf conftest*
12507   glibcpp_cv_func__hypotf_use=yes
12508 else
12509   echo "configure: failed program was:" >&5
12510   cat conftest.$ac_ext >&5
12511   rm -rf conftest*
12512   glibcpp_cv_func__hypotf_use=no
12513 fi
12514 rm -f conftest*
12515       ac_ext=c
12516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12517 ac_cpp='$CPP $CPPFLAGS'
12518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12520 cross_compiling=$ac_cv_prog_cc_cross
12521
12522     
12523 fi
12524
12525   fi
12526   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
12527
12528     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
12529       for ac_func in _hypotf
12530 do
12531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12532 echo "configure:12533: checking for $ac_func" >&5
12533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12534   echo $ac_n "(cached) $ac_c" 1>&6
12535 else
12536   cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12539 /* System header to define __stub macros and hopefully few prototypes,
12540     which can conflict with char $ac_func(); below.  */
12541 #include <assert.h>
12542 /* Override any gcc2 internal prototype to avoid an error.  */
12543 /* We use char because int might match the return type of a gcc2
12544     builtin and then its argument prototype would still apply.  */
12545 char $ac_func();
12546
12547 int main() {
12548
12549 /* The GNU C library defines this for functions which it implements
12550     to always fail with ENOSYS.  Some functions are actually named
12551     something starting with __ and the normal name is an alias.  */
12552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12553 choke me
12554 #else
12555 $ac_func();
12556 #endif
12557
12558 ; return 0; }
12559 EOF
12560 if { (eval echo configure:12561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12561   rm -rf conftest*
12562   eval "ac_cv_func_$ac_func=yes"
12563 else
12564   echo "configure: failed program was:" >&5
12565   cat conftest.$ac_ext >&5
12566   rm -rf conftest*
12567   eval "ac_cv_func_$ac_func=no"
12568 fi
12569 rm -f conftest*
12570 fi
12571
12572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12573   echo "$ac_t""yes" 1>&6
12574     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12575   cat >> confdefs.h <<EOF
12576 #define $ac_tr_func 1
12577 EOF
12578  
12579 else
12580   echo "$ac_t""no" 1>&6
12581 fi
12582 done
12583     
12584     fi
12585   fi
12586
12587   
12588   
12589   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
12590 echo "configure:12591: checking for ldexpf declaration" >&5
12591   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
12592     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
12593   echo $ac_n "(cached) $ac_c" 1>&6
12594 else
12595   
12596       
12597       ac_ext=C
12598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12599 ac_cpp='$CXXCPP $CPPFLAGS'
12600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12602 cross_compiling=$ac_cv_prog_cxx_cross
12603
12604       cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 #include <math.h>
12608 int main() {
12609  ldexpf(0, 0);
12610 ; return 0; }
12611 EOF
12612 if { (eval echo configure:12613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12613   rm -rf conftest*
12614   glibcpp_cv_func_ldexpf_use=yes
12615 else
12616   echo "configure: failed program was:" >&5
12617   cat conftest.$ac_ext >&5
12618   rm -rf conftest*
12619   glibcpp_cv_func_ldexpf_use=no
12620 fi
12621 rm -f conftest*
12622       ac_ext=c
12623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12624 ac_cpp='$CPP $CPPFLAGS'
12625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12627 cross_compiling=$ac_cv_prog_cc_cross
12628
12629     
12630 fi
12631
12632   fi
12633   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
12634
12635   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
12636     for ac_func in ldexpf
12637 do
12638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12639 echo "configure:12640: checking for $ac_func" >&5
12640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12641   echo $ac_n "(cached) $ac_c" 1>&6
12642 else
12643   cat > conftest.$ac_ext <<EOF
12644 #line 12645 "configure"
12645 #include "confdefs.h"
12646 /* System header to define __stub macros and hopefully few prototypes,
12647     which can conflict with char $ac_func(); below.  */
12648 #include <assert.h>
12649 /* Override any gcc2 internal prototype to avoid an error.  */
12650 /* We use char because int might match the return type of a gcc2
12651     builtin and then its argument prototype would still apply.  */
12652 char $ac_func();
12653
12654 int main() {
12655
12656 /* The GNU C library defines this for functions which it implements
12657     to always fail with ENOSYS.  Some functions are actually named
12658     something starting with __ and the normal name is an alias.  */
12659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12660 choke me
12661 #else
12662 $ac_func();
12663 #endif
12664
12665 ; return 0; }
12666 EOF
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12668   rm -rf conftest*
12669   eval "ac_cv_func_$ac_func=yes"
12670 else
12671   echo "configure: failed program was:" >&5
12672   cat conftest.$ac_ext >&5
12673   rm -rf conftest*
12674   eval "ac_cv_func_$ac_func=no"
12675 fi
12676 rm -f conftest*
12677 fi
12678
12679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12680   echo "$ac_t""yes" 1>&6
12681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12682   cat >> confdefs.h <<EOF
12683 #define $ac_tr_func 1
12684 EOF
12685  
12686 else
12687   echo "$ac_t""no" 1>&6
12688 fi
12689 done
12690     
12691   else
12692     
12693   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
12694 echo "configure:12695: checking for _ldexpf declaration" >&5
12695   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
12696     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
12697   echo $ac_n "(cached) $ac_c" 1>&6
12698 else
12699   
12700       
12701       ac_ext=C
12702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12703 ac_cpp='$CXXCPP $CPPFLAGS'
12704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12706 cross_compiling=$ac_cv_prog_cxx_cross
12707
12708       cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 #include <math.h>
12712 int main() {
12713  _ldexpf(0, 0);
12714 ; return 0; }
12715 EOF
12716 if { (eval echo configure:12717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12717   rm -rf conftest*
12718   glibcpp_cv_func__ldexpf_use=yes
12719 else
12720   echo "configure: failed program was:" >&5
12721   cat conftest.$ac_ext >&5
12722   rm -rf conftest*
12723   glibcpp_cv_func__ldexpf_use=no
12724 fi
12725 rm -f conftest*
12726       ac_ext=c
12727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12728 ac_cpp='$CPP $CPPFLAGS'
12729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12731 cross_compiling=$ac_cv_prog_cc_cross
12732
12733     
12734 fi
12735
12736   fi
12737   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
12738
12739     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
12740       for ac_func in _ldexpf
12741 do
12742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12743 echo "configure:12744: checking for $ac_func" >&5
12744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12745   echo $ac_n "(cached) $ac_c" 1>&6
12746 else
12747   cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 /* System header to define __stub macros and hopefully few prototypes,
12751     which can conflict with char $ac_func(); below.  */
12752 #include <assert.h>
12753 /* Override any gcc2 internal prototype to avoid an error.  */
12754 /* We use char because int might match the return type of a gcc2
12755     builtin and then its argument prototype would still apply.  */
12756 char $ac_func();
12757
12758 int main() {
12759
12760 /* The GNU C library defines this for functions which it implements
12761     to always fail with ENOSYS.  Some functions are actually named
12762     something starting with __ and the normal name is an alias.  */
12763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12764 choke me
12765 #else
12766 $ac_func();
12767 #endif
12768
12769 ; return 0; }
12770 EOF
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12772   rm -rf conftest*
12773   eval "ac_cv_func_$ac_func=yes"
12774 else
12775   echo "configure: failed program was:" >&5
12776   cat conftest.$ac_ext >&5
12777   rm -rf conftest*
12778   eval "ac_cv_func_$ac_func=no"
12779 fi
12780 rm -f conftest*
12781 fi
12782
12783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12784   echo "$ac_t""yes" 1>&6
12785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12786   cat >> confdefs.h <<EOF
12787 #define $ac_tr_func 1
12788 EOF
12789  
12790 else
12791   echo "$ac_t""no" 1>&6
12792 fi
12793 done
12794     
12795     fi
12796   fi
12797
12798   
12799   
12800   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
12801 echo "configure:12802: checking for logf declaration" >&5
12802   if test x${glibcpp_cv_func_logf_use+set} != xset; then
12803     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
12804   echo $ac_n "(cached) $ac_c" 1>&6
12805 else
12806   
12807       
12808       ac_ext=C
12809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12810 ac_cpp='$CXXCPP $CPPFLAGS'
12811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12813 cross_compiling=$ac_cv_prog_cxx_cross
12814
12815       cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <math.h>
12819                       #ifdef HAVE_IEEEFP_H
12820                       #include <ieeefp.h>
12821                       #endif
12822                      
12823 int main() {
12824  logf(0);
12825 ; return 0; }
12826 EOF
12827 if { (eval echo configure:12828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12828   rm -rf conftest*
12829   glibcpp_cv_func_logf_use=yes
12830 else
12831   echo "configure: failed program was:" >&5
12832   cat conftest.$ac_ext >&5
12833   rm -rf conftest*
12834   glibcpp_cv_func_logf_use=no
12835 fi
12836 rm -f conftest*
12837       ac_ext=c
12838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12839 ac_cpp='$CPP $CPPFLAGS'
12840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12842 cross_compiling=$ac_cv_prog_cc_cross
12843
12844     
12845 fi
12846
12847   fi
12848   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
12849
12850   if test x$glibcpp_cv_func_logf_use = x"yes"; then
12851     for ac_func in logf
12852 do
12853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12854 echo "configure:12855: checking for $ac_func" >&5
12855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12856   echo $ac_n "(cached) $ac_c" 1>&6
12857 else
12858   cat > conftest.$ac_ext <<EOF
12859 #line 12860 "configure"
12860 #include "confdefs.h"
12861 /* System header to define __stub macros and hopefully few prototypes,
12862     which can conflict with char $ac_func(); below.  */
12863 #include <assert.h>
12864 /* Override any gcc2 internal prototype to avoid an error.  */
12865 /* We use char because int might match the return type of a gcc2
12866     builtin and then its argument prototype would still apply.  */
12867 char $ac_func();
12868
12869 int main() {
12870
12871 /* The GNU C library defines this for functions which it implements
12872     to always fail with ENOSYS.  Some functions are actually named
12873     something starting with __ and the normal name is an alias.  */
12874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12875 choke me
12876 #else
12877 $ac_func();
12878 #endif
12879
12880 ; return 0; }
12881 EOF
12882 if { (eval echo configure:12883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12883   rm -rf conftest*
12884   eval "ac_cv_func_$ac_func=yes"
12885 else
12886   echo "configure: failed program was:" >&5
12887   cat conftest.$ac_ext >&5
12888   rm -rf conftest*
12889   eval "ac_cv_func_$ac_func=no"
12890 fi
12891 rm -f conftest*
12892 fi
12893
12894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12895   echo "$ac_t""yes" 1>&6
12896     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12897   cat >> confdefs.h <<EOF
12898 #define $ac_tr_func 1
12899 EOF
12900  
12901 else
12902   echo "$ac_t""no" 1>&6
12903 fi
12904 done
12905     
12906   else
12907     
12908   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
12909 echo "configure:12910: checking for _logf declaration" >&5
12910   if test x${glibcpp_cv_func__logf_use+set} != xset; then
12911     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
12912   echo $ac_n "(cached) $ac_c" 1>&6
12913 else
12914   
12915       
12916       ac_ext=C
12917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12918 ac_cpp='$CXXCPP $CPPFLAGS'
12919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12921 cross_compiling=$ac_cv_prog_cxx_cross
12922
12923       cat > conftest.$ac_ext <<EOF
12924 #line 12925 "configure"
12925 #include "confdefs.h"
12926 #include <math.h>
12927                       #ifdef HAVE_IEEEFP_H
12928                       #include <ieeefp.h>
12929                       #endif
12930                      
12931 int main() {
12932  _logf(0);
12933 ; return 0; }
12934 EOF
12935 if { (eval echo configure:12936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12936   rm -rf conftest*
12937   glibcpp_cv_func__logf_use=yes
12938 else
12939   echo "configure: failed program was:" >&5
12940   cat conftest.$ac_ext >&5
12941   rm -rf conftest*
12942   glibcpp_cv_func__logf_use=no
12943 fi
12944 rm -f conftest*
12945       ac_ext=c
12946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12947 ac_cpp='$CPP $CPPFLAGS'
12948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12950 cross_compiling=$ac_cv_prog_cc_cross
12951
12952     
12953 fi
12954
12955   fi
12956   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
12957
12958     if test x$glibcpp_cv_func__logf_use = x"yes"; then
12959       for ac_func in _logf
12960 do
12961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12962 echo "configure:12963: checking for $ac_func" >&5
12963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12964   echo $ac_n "(cached) $ac_c" 1>&6
12965 else
12966   cat > conftest.$ac_ext <<EOF
12967 #line 12968 "configure"
12968 #include "confdefs.h"
12969 /* System header to define __stub macros and hopefully few prototypes,
12970     which can conflict with char $ac_func(); below.  */
12971 #include <assert.h>
12972 /* Override any gcc2 internal prototype to avoid an error.  */
12973 /* We use char because int might match the return type of a gcc2
12974     builtin and then its argument prototype would still apply.  */
12975 char $ac_func();
12976
12977 int main() {
12978
12979 /* The GNU C library defines this for functions which it implements
12980     to always fail with ENOSYS.  Some functions are actually named
12981     something starting with __ and the normal name is an alias.  */
12982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12983 choke me
12984 #else
12985 $ac_func();
12986 #endif
12987
12988 ; return 0; }
12989 EOF
12990 if { (eval echo configure:12991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12991   rm -rf conftest*
12992   eval "ac_cv_func_$ac_func=yes"
12993 else
12994   echo "configure: failed program was:" >&5
12995   cat conftest.$ac_ext >&5
12996   rm -rf conftest*
12997   eval "ac_cv_func_$ac_func=no"
12998 fi
12999 rm -f conftest*
13000 fi
13001
13002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13003   echo "$ac_t""yes" 1>&6
13004     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13005   cat >> confdefs.h <<EOF
13006 #define $ac_tr_func 1
13007 EOF
13008  
13009 else
13010   echo "$ac_t""no" 1>&6
13011 fi
13012 done
13013     
13014     fi
13015   fi
13016
13017   
13018   
13019   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
13020 echo "configure:13021: checking for log10f declaration" >&5
13021   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
13022     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
13023   echo $ac_n "(cached) $ac_c" 1>&6
13024 else
13025   
13026       
13027       ac_ext=C
13028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13029 ac_cpp='$CXXCPP $CPPFLAGS'
13030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13032 cross_compiling=$ac_cv_prog_cxx_cross
13033
13034       cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure"
13036 #include "confdefs.h"
13037 #include <math.h>
13038                       #ifdef HAVE_IEEEFP_H
13039                       #include <ieeefp.h>
13040                       #endif
13041                      
13042 int main() {
13043  log10f(0);
13044 ; return 0; }
13045 EOF
13046 if { (eval echo configure:13047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13047   rm -rf conftest*
13048   glibcpp_cv_func_log10f_use=yes
13049 else
13050   echo "configure: failed program was:" >&5
13051   cat conftest.$ac_ext >&5
13052   rm -rf conftest*
13053   glibcpp_cv_func_log10f_use=no
13054 fi
13055 rm -f conftest*
13056       ac_ext=c
13057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13058 ac_cpp='$CPP $CPPFLAGS'
13059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13061 cross_compiling=$ac_cv_prog_cc_cross
13062
13063     
13064 fi
13065
13066   fi
13067   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13068
13069   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13070     for ac_func in log10f
13071 do
13072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13073 echo "configure:13074: checking for $ac_func" >&5
13074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13075   echo $ac_n "(cached) $ac_c" 1>&6
13076 else
13077   cat > conftest.$ac_ext <<EOF
13078 #line 13079 "configure"
13079 #include "confdefs.h"
13080 /* System header to define __stub macros and hopefully few prototypes,
13081     which can conflict with char $ac_func(); below.  */
13082 #include <assert.h>
13083 /* Override any gcc2 internal prototype to avoid an error.  */
13084 /* We use char because int might match the return type of a gcc2
13085     builtin and then its argument prototype would still apply.  */
13086 char $ac_func();
13087
13088 int main() {
13089
13090 /* The GNU C library defines this for functions which it implements
13091     to always fail with ENOSYS.  Some functions are actually named
13092     something starting with __ and the normal name is an alias.  */
13093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13094 choke me
13095 #else
13096 $ac_func();
13097 #endif
13098
13099 ; return 0; }
13100 EOF
13101 if { (eval echo configure:13102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13102   rm -rf conftest*
13103   eval "ac_cv_func_$ac_func=yes"
13104 else
13105   echo "configure: failed program was:" >&5
13106   cat conftest.$ac_ext >&5
13107   rm -rf conftest*
13108   eval "ac_cv_func_$ac_func=no"
13109 fi
13110 rm -f conftest*
13111 fi
13112
13113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13114   echo "$ac_t""yes" 1>&6
13115     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13116   cat >> confdefs.h <<EOF
13117 #define $ac_tr_func 1
13118 EOF
13119  
13120 else
13121   echo "$ac_t""no" 1>&6
13122 fi
13123 done
13124     
13125   else
13126     
13127   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13128 echo "configure:13129: checking for _log10f declaration" >&5
13129   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13130     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13131   echo $ac_n "(cached) $ac_c" 1>&6
13132 else
13133   
13134       
13135       ac_ext=C
13136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13137 ac_cpp='$CXXCPP $CPPFLAGS'
13138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13139 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13140 cross_compiling=$ac_cv_prog_cxx_cross
13141
13142       cat > conftest.$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 #include <math.h>
13146                       #ifdef HAVE_IEEEFP_H
13147                       #include <ieeefp.h>
13148                       #endif
13149                      
13150 int main() {
13151  _log10f(0);
13152 ; return 0; }
13153 EOF
13154 if { (eval echo configure:13155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13155   rm -rf conftest*
13156   glibcpp_cv_func__log10f_use=yes
13157 else
13158   echo "configure: failed program was:" >&5
13159   cat conftest.$ac_ext >&5
13160   rm -rf conftest*
13161   glibcpp_cv_func__log10f_use=no
13162 fi
13163 rm -f conftest*
13164       ac_ext=c
13165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13166 ac_cpp='$CPP $CPPFLAGS'
13167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13169 cross_compiling=$ac_cv_prog_cc_cross
13170
13171     
13172 fi
13173
13174   fi
13175   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
13176
13177     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
13178       for ac_func in _log10f
13179 do
13180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13181 echo "configure:13182: checking for $ac_func" >&5
13182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13183   echo $ac_n "(cached) $ac_c" 1>&6
13184 else
13185   cat > conftest.$ac_ext <<EOF
13186 #line 13187 "configure"
13187 #include "confdefs.h"
13188 /* System header to define __stub macros and hopefully few prototypes,
13189     which can conflict with char $ac_func(); below.  */
13190 #include <assert.h>
13191 /* Override any gcc2 internal prototype to avoid an error.  */
13192 /* We use char because int might match the return type of a gcc2
13193     builtin and then its argument prototype would still apply.  */
13194 char $ac_func();
13195
13196 int main() {
13197
13198 /* The GNU C library defines this for functions which it implements
13199     to always fail with ENOSYS.  Some functions are actually named
13200     something starting with __ and the normal name is an alias.  */
13201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13202 choke me
13203 #else
13204 $ac_func();
13205 #endif
13206
13207 ; return 0; }
13208 EOF
13209 if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13210   rm -rf conftest*
13211   eval "ac_cv_func_$ac_func=yes"
13212 else
13213   echo "configure: failed program was:" >&5
13214   cat conftest.$ac_ext >&5
13215   rm -rf conftest*
13216   eval "ac_cv_func_$ac_func=no"
13217 fi
13218 rm -f conftest*
13219 fi
13220
13221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13222   echo "$ac_t""yes" 1>&6
13223     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13224   cat >> confdefs.h <<EOF
13225 #define $ac_tr_func 1
13226 EOF
13227  
13228 else
13229   echo "$ac_t""no" 1>&6
13230 fi
13231 done
13232     
13233     fi
13234   fi
13235
13236   
13237   
13238   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
13239 echo "configure:13240: checking for modff declaration" >&5
13240   if test x${glibcpp_cv_func_modff_use+set} != xset; then
13241     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
13242   echo $ac_n "(cached) $ac_c" 1>&6
13243 else
13244   
13245       
13246       ac_ext=C
13247 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13248 ac_cpp='$CXXCPP $CPPFLAGS'
13249 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13250 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13251 cross_compiling=$ac_cv_prog_cxx_cross
13252
13253       cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13256 #include <math.h>
13257 int main() {
13258  modff(0, 0);
13259 ; return 0; }
13260 EOF
13261 if { (eval echo configure:13262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13262   rm -rf conftest*
13263   glibcpp_cv_func_modff_use=yes
13264 else
13265   echo "configure: failed program was:" >&5
13266   cat conftest.$ac_ext >&5
13267   rm -rf conftest*
13268   glibcpp_cv_func_modff_use=no
13269 fi
13270 rm -f conftest*
13271       ac_ext=c
13272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13273 ac_cpp='$CPP $CPPFLAGS'
13274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13276 cross_compiling=$ac_cv_prog_cc_cross
13277
13278     
13279 fi
13280
13281   fi
13282   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
13283
13284   if test x$glibcpp_cv_func_modff_use = x"yes"; then
13285     for ac_func in modff
13286 do
13287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13288 echo "configure:13289: checking for $ac_func" >&5
13289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13290   echo $ac_n "(cached) $ac_c" 1>&6
13291 else
13292   cat > conftest.$ac_ext <<EOF
13293 #line 13294 "configure"
13294 #include "confdefs.h"
13295 /* System header to define __stub macros and hopefully few prototypes,
13296     which can conflict with char $ac_func(); below.  */
13297 #include <assert.h>
13298 /* Override any gcc2 internal prototype to avoid an error.  */
13299 /* We use char because int might match the return type of a gcc2
13300     builtin and then its argument prototype would still apply.  */
13301 char $ac_func();
13302
13303 int main() {
13304
13305 /* The GNU C library defines this for functions which it implements
13306     to always fail with ENOSYS.  Some functions are actually named
13307     something starting with __ and the normal name is an alias.  */
13308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13309 choke me
13310 #else
13311 $ac_func();
13312 #endif
13313
13314 ; return 0; }
13315 EOF
13316 if { (eval echo configure:13317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13317   rm -rf conftest*
13318   eval "ac_cv_func_$ac_func=yes"
13319 else
13320   echo "configure: failed program was:" >&5
13321   cat conftest.$ac_ext >&5
13322   rm -rf conftest*
13323   eval "ac_cv_func_$ac_func=no"
13324 fi
13325 rm -f conftest*
13326 fi
13327
13328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13329   echo "$ac_t""yes" 1>&6
13330     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13331   cat >> confdefs.h <<EOF
13332 #define $ac_tr_func 1
13333 EOF
13334  
13335 else
13336   echo "$ac_t""no" 1>&6
13337 fi
13338 done
13339     
13340   else
13341     
13342   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
13343 echo "configure:13344: checking for _modff declaration" >&5
13344   if test x${glibcpp_cv_func__modff_use+set} != xset; then
13345     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
13346   echo $ac_n "(cached) $ac_c" 1>&6
13347 else
13348   
13349       
13350       ac_ext=C
13351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13352 ac_cpp='$CXXCPP $CPPFLAGS'
13353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13355 cross_compiling=$ac_cv_prog_cxx_cross
13356
13357       cat > conftest.$ac_ext <<EOF
13358 #line 13359 "configure"
13359 #include "confdefs.h"
13360 #include <math.h>
13361 int main() {
13362  _modff(0, 0);
13363 ; return 0; }
13364 EOF
13365 if { (eval echo configure:13366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13366   rm -rf conftest*
13367   glibcpp_cv_func__modff_use=yes
13368 else
13369   echo "configure: failed program was:" >&5
13370   cat conftest.$ac_ext >&5
13371   rm -rf conftest*
13372   glibcpp_cv_func__modff_use=no
13373 fi
13374 rm -f conftest*
13375       ac_ext=c
13376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13377 ac_cpp='$CPP $CPPFLAGS'
13378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13380 cross_compiling=$ac_cv_prog_cc_cross
13381
13382     
13383 fi
13384
13385   fi
13386   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
13387
13388     if test x$glibcpp_cv_func__modff_use = x"yes"; then
13389       for ac_func in _modff
13390 do
13391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13392 echo "configure:13393: checking for $ac_func" >&5
13393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13394   echo $ac_n "(cached) $ac_c" 1>&6
13395 else
13396   cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13399 /* System header to define __stub macros and hopefully few prototypes,
13400     which can conflict with char $ac_func(); below.  */
13401 #include <assert.h>
13402 /* Override any gcc2 internal prototype to avoid an error.  */
13403 /* We use char because int might match the return type of a gcc2
13404     builtin and then its argument prototype would still apply.  */
13405 char $ac_func();
13406
13407 int main() {
13408
13409 /* The GNU C library defines this for functions which it implements
13410     to always fail with ENOSYS.  Some functions are actually named
13411     something starting with __ and the normal name is an alias.  */
13412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13413 choke me
13414 #else
13415 $ac_func();
13416 #endif
13417
13418 ; return 0; }
13419 EOF
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13421   rm -rf conftest*
13422   eval "ac_cv_func_$ac_func=yes"
13423 else
13424   echo "configure: failed program was:" >&5
13425   cat conftest.$ac_ext >&5
13426   rm -rf conftest*
13427   eval "ac_cv_func_$ac_func=no"
13428 fi
13429 rm -f conftest*
13430 fi
13431
13432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13433   echo "$ac_t""yes" 1>&6
13434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13435   cat >> confdefs.h <<EOF
13436 #define $ac_tr_func 1
13437 EOF
13438  
13439 else
13440   echo "$ac_t""no" 1>&6
13441 fi
13442 done
13443     
13444     fi
13445   fi
13446
13447   
13448   
13449   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
13450 echo "configure:13451: checking for powf declaration" >&5
13451   if test x${glibcpp_cv_func_powf_use+set} != xset; then
13452     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
13453   echo $ac_n "(cached) $ac_c" 1>&6
13454 else
13455   
13456       
13457       ac_ext=C
13458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13459 ac_cpp='$CXXCPP $CPPFLAGS'
13460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13462 cross_compiling=$ac_cv_prog_cxx_cross
13463
13464       cat > conftest.$ac_ext <<EOF
13465 #line 13466 "configure"
13466 #include "confdefs.h"
13467 #include <math.h>
13468 int main() {
13469  powf(0, 0);
13470 ; return 0; }
13471 EOF
13472 if { (eval echo configure:13473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13473   rm -rf conftest*
13474   glibcpp_cv_func_powf_use=yes
13475 else
13476   echo "configure: failed program was:" >&5
13477   cat conftest.$ac_ext >&5
13478   rm -rf conftest*
13479   glibcpp_cv_func_powf_use=no
13480 fi
13481 rm -f conftest*
13482       ac_ext=c
13483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13487 cross_compiling=$ac_cv_prog_cc_cross
13488
13489     
13490 fi
13491
13492   fi
13493   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
13494
13495   if test x$glibcpp_cv_func_powf_use = x"yes"; then
13496     for ac_func in powf
13497 do
13498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13499 echo "configure:13500: checking for $ac_func" >&5
13500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13501   echo $ac_n "(cached) $ac_c" 1>&6
13502 else
13503   cat > conftest.$ac_ext <<EOF
13504 #line 13505 "configure"
13505 #include "confdefs.h"
13506 /* System header to define __stub macros and hopefully few prototypes,
13507     which can conflict with char $ac_func(); below.  */
13508 #include <assert.h>
13509 /* Override any gcc2 internal prototype to avoid an error.  */
13510 /* We use char because int might match the return type of a gcc2
13511     builtin and then its argument prototype would still apply.  */
13512 char $ac_func();
13513
13514 int main() {
13515
13516 /* The GNU C library defines this for functions which it implements
13517     to always fail with ENOSYS.  Some functions are actually named
13518     something starting with __ and the normal name is an alias.  */
13519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13520 choke me
13521 #else
13522 $ac_func();
13523 #endif
13524
13525 ; return 0; }
13526 EOF
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13528   rm -rf conftest*
13529   eval "ac_cv_func_$ac_func=yes"
13530 else
13531   echo "configure: failed program was:" >&5
13532   cat conftest.$ac_ext >&5
13533   rm -rf conftest*
13534   eval "ac_cv_func_$ac_func=no"
13535 fi
13536 rm -f conftest*
13537 fi
13538
13539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13540   echo "$ac_t""yes" 1>&6
13541     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13542   cat >> confdefs.h <<EOF
13543 #define $ac_tr_func 1
13544 EOF
13545  
13546 else
13547   echo "$ac_t""no" 1>&6
13548 fi
13549 done
13550     
13551   else
13552     
13553   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
13554 echo "configure:13555: checking for _powf declaration" >&5
13555   if test x${glibcpp_cv_func__powf_use+set} != xset; then
13556     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
13557   echo $ac_n "(cached) $ac_c" 1>&6
13558 else
13559   
13560       
13561       ac_ext=C
13562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13563 ac_cpp='$CXXCPP $CPPFLAGS'
13564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13566 cross_compiling=$ac_cv_prog_cxx_cross
13567
13568       cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571 #include <math.h>
13572 int main() {
13573  _powf(0, 0);
13574 ; return 0; }
13575 EOF
13576 if { (eval echo configure:13577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13577   rm -rf conftest*
13578   glibcpp_cv_func__powf_use=yes
13579 else
13580   echo "configure: failed program was:" >&5
13581   cat conftest.$ac_ext >&5
13582   rm -rf conftest*
13583   glibcpp_cv_func__powf_use=no
13584 fi
13585 rm -f conftest*
13586       ac_ext=c
13587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13588 ac_cpp='$CPP $CPPFLAGS'
13589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13591 cross_compiling=$ac_cv_prog_cc_cross
13592
13593     
13594 fi
13595
13596   fi
13597   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
13598
13599     if test x$glibcpp_cv_func__powf_use = x"yes"; then
13600       for ac_func in _powf
13601 do
13602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13603 echo "configure:13604: checking for $ac_func" >&5
13604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13605   echo $ac_n "(cached) $ac_c" 1>&6
13606 else
13607   cat > conftest.$ac_ext <<EOF
13608 #line 13609 "configure"
13609 #include "confdefs.h"
13610 /* System header to define __stub macros and hopefully few prototypes,
13611     which can conflict with char $ac_func(); below.  */
13612 #include <assert.h>
13613 /* Override any gcc2 internal prototype to avoid an error.  */
13614 /* We use char because int might match the return type of a gcc2
13615     builtin and then its argument prototype would still apply.  */
13616 char $ac_func();
13617
13618 int main() {
13619
13620 /* The GNU C library defines this for functions which it implements
13621     to always fail with ENOSYS.  Some functions are actually named
13622     something starting with __ and the normal name is an alias.  */
13623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13624 choke me
13625 #else
13626 $ac_func();
13627 #endif
13628
13629 ; return 0; }
13630 EOF
13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13632   rm -rf conftest*
13633   eval "ac_cv_func_$ac_func=yes"
13634 else
13635   echo "configure: failed program was:" >&5
13636   cat conftest.$ac_ext >&5
13637   rm -rf conftest*
13638   eval "ac_cv_func_$ac_func=no"
13639 fi
13640 rm -f conftest*
13641 fi
13642
13643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13644   echo "$ac_t""yes" 1>&6
13645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13646   cat >> confdefs.h <<EOF
13647 #define $ac_tr_func 1
13648 EOF
13649  
13650 else
13651   echo "$ac_t""no" 1>&6
13652 fi
13653 done
13654     
13655     fi
13656   fi
13657
13658   
13659   
13660   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
13661 echo "configure:13662: checking for sqrtf declaration" >&5
13662   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
13663     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
13664   echo $ac_n "(cached) $ac_c" 1>&6
13665 else
13666   
13667       
13668       ac_ext=C
13669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13670 ac_cpp='$CXXCPP $CPPFLAGS'
13671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13673 cross_compiling=$ac_cv_prog_cxx_cross
13674
13675       cat > conftest.$ac_ext <<EOF
13676 #line 13677 "configure"
13677 #include "confdefs.h"
13678 #include <math.h>
13679                       #ifdef HAVE_IEEEFP_H
13680                       #include <ieeefp.h>
13681                       #endif
13682                      
13683 int main() {
13684  sqrtf(0);
13685 ; return 0; }
13686 EOF
13687 if { (eval echo configure:13688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13688   rm -rf conftest*
13689   glibcpp_cv_func_sqrtf_use=yes
13690 else
13691   echo "configure: failed program was:" >&5
13692   cat conftest.$ac_ext >&5
13693   rm -rf conftest*
13694   glibcpp_cv_func_sqrtf_use=no
13695 fi
13696 rm -f conftest*
13697       ac_ext=c
13698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13699 ac_cpp='$CPP $CPPFLAGS'
13700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13702 cross_compiling=$ac_cv_prog_cc_cross
13703
13704     
13705 fi
13706
13707   fi
13708   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
13709
13710   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
13711     for ac_func in sqrtf
13712 do
13713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13714 echo "configure:13715: checking for $ac_func" >&5
13715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13716   echo $ac_n "(cached) $ac_c" 1>&6
13717 else
13718   cat > conftest.$ac_ext <<EOF
13719 #line 13720 "configure"
13720 #include "confdefs.h"
13721 /* System header to define __stub macros and hopefully few prototypes,
13722     which can conflict with char $ac_func(); below.  */
13723 #include <assert.h>
13724 /* Override any gcc2 internal prototype to avoid an error.  */
13725 /* We use char because int might match the return type of a gcc2
13726     builtin and then its argument prototype would still apply.  */
13727 char $ac_func();
13728
13729 int main() {
13730
13731 /* The GNU C library defines this for functions which it implements
13732     to always fail with ENOSYS.  Some functions are actually named
13733     something starting with __ and the normal name is an alias.  */
13734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13735 choke me
13736 #else
13737 $ac_func();
13738 #endif
13739
13740 ; return 0; }
13741 EOF
13742 if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13743   rm -rf conftest*
13744   eval "ac_cv_func_$ac_func=yes"
13745 else
13746   echo "configure: failed program was:" >&5
13747   cat conftest.$ac_ext >&5
13748   rm -rf conftest*
13749   eval "ac_cv_func_$ac_func=no"
13750 fi
13751 rm -f conftest*
13752 fi
13753
13754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13755   echo "$ac_t""yes" 1>&6
13756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13757   cat >> confdefs.h <<EOF
13758 #define $ac_tr_func 1
13759 EOF
13760  
13761 else
13762   echo "$ac_t""no" 1>&6
13763 fi
13764 done
13765     
13766   else
13767     
13768   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
13769 echo "configure:13770: checking for _sqrtf declaration" >&5
13770   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
13771     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
13772   echo $ac_n "(cached) $ac_c" 1>&6
13773 else
13774   
13775       
13776       ac_ext=C
13777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13778 ac_cpp='$CXXCPP $CPPFLAGS'
13779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13781 cross_compiling=$ac_cv_prog_cxx_cross
13782
13783       cat > conftest.$ac_ext <<EOF
13784 #line 13785 "configure"
13785 #include "confdefs.h"
13786 #include <math.h>
13787                       #ifdef HAVE_IEEEFP_H
13788                       #include <ieeefp.h>
13789                       #endif
13790                      
13791 int main() {
13792  _sqrtf(0);
13793 ; return 0; }
13794 EOF
13795 if { (eval echo configure:13796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13796   rm -rf conftest*
13797   glibcpp_cv_func__sqrtf_use=yes
13798 else
13799   echo "configure: failed program was:" >&5
13800   cat conftest.$ac_ext >&5
13801   rm -rf conftest*
13802   glibcpp_cv_func__sqrtf_use=no
13803 fi
13804 rm -f conftest*
13805       ac_ext=c
13806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13807 ac_cpp='$CPP $CPPFLAGS'
13808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13810 cross_compiling=$ac_cv_prog_cc_cross
13811
13812     
13813 fi
13814
13815   fi
13816   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
13817
13818     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
13819       for ac_func in _sqrtf
13820 do
13821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13822 echo "configure:13823: checking for $ac_func" >&5
13823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13824   echo $ac_n "(cached) $ac_c" 1>&6
13825 else
13826   cat > conftest.$ac_ext <<EOF
13827 #line 13828 "configure"
13828 #include "confdefs.h"
13829 /* System header to define __stub macros and hopefully few prototypes,
13830     which can conflict with char $ac_func(); below.  */
13831 #include <assert.h>
13832 /* Override any gcc2 internal prototype to avoid an error.  */
13833 /* We use char because int might match the return type of a gcc2
13834     builtin and then its argument prototype would still apply.  */
13835 char $ac_func();
13836
13837 int main() {
13838
13839 /* The GNU C library defines this for functions which it implements
13840     to always fail with ENOSYS.  Some functions are actually named
13841     something starting with __ and the normal name is an alias.  */
13842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13843 choke me
13844 #else
13845 $ac_func();
13846 #endif
13847
13848 ; return 0; }
13849 EOF
13850 if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13851   rm -rf conftest*
13852   eval "ac_cv_func_$ac_func=yes"
13853 else
13854   echo "configure: failed program was:" >&5
13855   cat conftest.$ac_ext >&5
13856   rm -rf conftest*
13857   eval "ac_cv_func_$ac_func=no"
13858 fi
13859 rm -f conftest*
13860 fi
13861
13862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13863   echo "$ac_t""yes" 1>&6
13864     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13865   cat >> confdefs.h <<EOF
13866 #define $ac_tr_func 1
13867 EOF
13868  
13869 else
13870   echo "$ac_t""no" 1>&6
13871 fi
13872 done
13873     
13874     fi
13875   fi
13876
13877   
13878   
13879   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
13880 echo "configure:13881: checking for sincosf declaration" >&5
13881   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
13882     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
13883   echo $ac_n "(cached) $ac_c" 1>&6
13884 else
13885   
13886       
13887       ac_ext=C
13888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13889 ac_cpp='$CXXCPP $CPPFLAGS'
13890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13892 cross_compiling=$ac_cv_prog_cxx_cross
13893
13894       cat > conftest.$ac_ext <<EOF
13895 #line 13896 "configure"
13896 #include "confdefs.h"
13897 #include <math.h>
13898 int main() {
13899  sincosf(0, 0, 0);
13900 ; return 0; }
13901 EOF
13902 if { (eval echo configure:13903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13903   rm -rf conftest*
13904   glibcpp_cv_func_sincosf_use=yes
13905 else
13906   echo "configure: failed program was:" >&5
13907   cat conftest.$ac_ext >&5
13908   rm -rf conftest*
13909   glibcpp_cv_func_sincosf_use=no
13910 fi
13911 rm -f conftest*
13912       ac_ext=c
13913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13914 ac_cpp='$CPP $CPPFLAGS'
13915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13917 cross_compiling=$ac_cv_prog_cc_cross
13918
13919     
13920 fi
13921
13922   fi
13923   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
13924
13925   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
13926     for ac_func in sincosf
13927 do
13928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13929 echo "configure:13930: checking for $ac_func" >&5
13930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13931   echo $ac_n "(cached) $ac_c" 1>&6
13932 else
13933   cat > conftest.$ac_ext <<EOF
13934 #line 13935 "configure"
13935 #include "confdefs.h"
13936 /* System header to define __stub macros and hopefully few prototypes,
13937     which can conflict with char $ac_func(); below.  */
13938 #include <assert.h>
13939 /* Override any gcc2 internal prototype to avoid an error.  */
13940 /* We use char because int might match the return type of a gcc2
13941     builtin and then its argument prototype would still apply.  */
13942 char $ac_func();
13943
13944 int main() {
13945
13946 /* The GNU C library defines this for functions which it implements
13947     to always fail with ENOSYS.  Some functions are actually named
13948     something starting with __ and the normal name is an alias.  */
13949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13950 choke me
13951 #else
13952 $ac_func();
13953 #endif
13954
13955 ; return 0; }
13956 EOF
13957 if { (eval echo configure:13958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13958   rm -rf conftest*
13959   eval "ac_cv_func_$ac_func=yes"
13960 else
13961   echo "configure: failed program was:" >&5
13962   cat conftest.$ac_ext >&5
13963   rm -rf conftest*
13964   eval "ac_cv_func_$ac_func=no"
13965 fi
13966 rm -f conftest*
13967 fi
13968
13969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13970   echo "$ac_t""yes" 1>&6
13971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13972   cat >> confdefs.h <<EOF
13973 #define $ac_tr_func 1
13974 EOF
13975  
13976 else
13977   echo "$ac_t""no" 1>&6
13978 fi
13979 done
13980     
13981   else
13982     
13983   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13984 echo "configure:13985: checking for _sincosf declaration" >&5
13985   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13986     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13987   echo $ac_n "(cached) $ac_c" 1>&6
13988 else
13989   
13990       
13991       ac_ext=C
13992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13993 ac_cpp='$CXXCPP $CPPFLAGS'
13994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13996 cross_compiling=$ac_cv_prog_cxx_cross
13997
13998       cat > conftest.$ac_ext <<EOF
13999 #line 14000 "configure"
14000 #include "confdefs.h"
14001 #include <math.h>
14002 int main() {
14003  _sincosf(0, 0, 0);
14004 ; return 0; }
14005 EOF
14006 if { (eval echo configure:14007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14007   rm -rf conftest*
14008   glibcpp_cv_func__sincosf_use=yes
14009 else
14010   echo "configure: failed program was:" >&5
14011   cat conftest.$ac_ext >&5
14012   rm -rf conftest*
14013   glibcpp_cv_func__sincosf_use=no
14014 fi
14015 rm -f conftest*
14016       ac_ext=c
14017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14021 cross_compiling=$ac_cv_prog_cc_cross
14022
14023     
14024 fi
14025
14026   fi
14027   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
14028
14029     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
14030       for ac_func in _sincosf
14031 do
14032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14033 echo "configure:14034: checking for $ac_func" >&5
14034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14035   echo $ac_n "(cached) $ac_c" 1>&6
14036 else
14037   cat > conftest.$ac_ext <<EOF
14038 #line 14039 "configure"
14039 #include "confdefs.h"
14040 /* System header to define __stub macros and hopefully few prototypes,
14041     which can conflict with char $ac_func(); below.  */
14042 #include <assert.h>
14043 /* Override any gcc2 internal prototype to avoid an error.  */
14044 /* We use char because int might match the return type of a gcc2
14045     builtin and then its argument prototype would still apply.  */
14046 char $ac_func();
14047
14048 int main() {
14049
14050 /* The GNU C library defines this for functions which it implements
14051     to always fail with ENOSYS.  Some functions are actually named
14052     something starting with __ and the normal name is an alias.  */
14053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14054 choke me
14055 #else
14056 $ac_func();
14057 #endif
14058
14059 ; return 0; }
14060 EOF
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14062   rm -rf conftest*
14063   eval "ac_cv_func_$ac_func=yes"
14064 else
14065   echo "configure: failed program was:" >&5
14066   cat conftest.$ac_ext >&5
14067   rm -rf conftest*
14068   eval "ac_cv_func_$ac_func=no"
14069 fi
14070 rm -f conftest*
14071 fi
14072
14073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14074   echo "$ac_t""yes" 1>&6
14075     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14076   cat >> confdefs.h <<EOF
14077 #define $ac_tr_func 1
14078 EOF
14079  
14080 else
14081   echo "$ac_t""no" 1>&6
14082 fi
14083 done
14084     
14085     fi
14086   fi
14087
14088   
14089   
14090   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14091 echo "configure:14092: checking for finitef declaration" >&5
14092   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14093     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14094   echo $ac_n "(cached) $ac_c" 1>&6
14095 else
14096   
14097       
14098       ac_ext=C
14099 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14100 ac_cpp='$CXXCPP $CPPFLAGS'
14101 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14102 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14103 cross_compiling=$ac_cv_prog_cxx_cross
14104
14105       cat > conftest.$ac_ext <<EOF
14106 #line 14107 "configure"
14107 #include "confdefs.h"
14108 #include <math.h>
14109                       #ifdef HAVE_IEEEFP_H
14110                       #include <ieeefp.h>
14111                       #endif
14112                      
14113 int main() {
14114  finitef(0);
14115 ; return 0; }
14116 EOF
14117 if { (eval echo configure:14118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14118   rm -rf conftest*
14119   glibcpp_cv_func_finitef_use=yes
14120 else
14121   echo "configure: failed program was:" >&5
14122   cat conftest.$ac_ext >&5
14123   rm -rf conftest*
14124   glibcpp_cv_func_finitef_use=no
14125 fi
14126 rm -f conftest*
14127       ac_ext=c
14128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14129 ac_cpp='$CPP $CPPFLAGS'
14130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14132 cross_compiling=$ac_cv_prog_cc_cross
14133
14134     
14135 fi
14136
14137   fi
14138   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14139
14140   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14141     for ac_func in finitef
14142 do
14143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14144 echo "configure:14145: checking for $ac_func" >&5
14145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14146   echo $ac_n "(cached) $ac_c" 1>&6
14147 else
14148   cat > conftest.$ac_ext <<EOF
14149 #line 14150 "configure"
14150 #include "confdefs.h"
14151 /* System header to define __stub macros and hopefully few prototypes,
14152     which can conflict with char $ac_func(); below.  */
14153 #include <assert.h>
14154 /* Override any gcc2 internal prototype to avoid an error.  */
14155 /* We use char because int might match the return type of a gcc2
14156     builtin and then its argument prototype would still apply.  */
14157 char $ac_func();
14158
14159 int main() {
14160
14161 /* The GNU C library defines this for functions which it implements
14162     to always fail with ENOSYS.  Some functions are actually named
14163     something starting with __ and the normal name is an alias.  */
14164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14165 choke me
14166 #else
14167 $ac_func();
14168 #endif
14169
14170 ; return 0; }
14171 EOF
14172 if { (eval echo configure:14173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14173   rm -rf conftest*
14174   eval "ac_cv_func_$ac_func=yes"
14175 else
14176   echo "configure: failed program was:" >&5
14177   cat conftest.$ac_ext >&5
14178   rm -rf conftest*
14179   eval "ac_cv_func_$ac_func=no"
14180 fi
14181 rm -f conftest*
14182 fi
14183
14184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14185   echo "$ac_t""yes" 1>&6
14186     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14187   cat >> confdefs.h <<EOF
14188 #define $ac_tr_func 1
14189 EOF
14190  
14191 else
14192   echo "$ac_t""no" 1>&6
14193 fi
14194 done
14195     
14196   else
14197     
14198   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
14199 echo "configure:14200: checking for _finitef declaration" >&5
14200   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
14201     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
14202   echo $ac_n "(cached) $ac_c" 1>&6
14203 else
14204   
14205       
14206       ac_ext=C
14207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14208 ac_cpp='$CXXCPP $CPPFLAGS'
14209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14211 cross_compiling=$ac_cv_prog_cxx_cross
14212
14213       cat > conftest.$ac_ext <<EOF
14214 #line 14215 "configure"
14215 #include "confdefs.h"
14216 #include <math.h>
14217                       #ifdef HAVE_IEEEFP_H
14218                       #include <ieeefp.h>
14219                       #endif
14220                      
14221 int main() {
14222  _finitef(0);
14223 ; return 0; }
14224 EOF
14225 if { (eval echo configure:14226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14226   rm -rf conftest*
14227   glibcpp_cv_func__finitef_use=yes
14228 else
14229   echo "configure: failed program was:" >&5
14230   cat conftest.$ac_ext >&5
14231   rm -rf conftest*
14232   glibcpp_cv_func__finitef_use=no
14233 fi
14234 rm -f conftest*
14235       ac_ext=c
14236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14240 cross_compiling=$ac_cv_prog_cc_cross
14241
14242     
14243 fi
14244
14245   fi
14246   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
14247
14248     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
14249       for ac_func in _finitef
14250 do
14251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14252 echo "configure:14253: checking for $ac_func" >&5
14253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14254   echo $ac_n "(cached) $ac_c" 1>&6
14255 else
14256   cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure"
14258 #include "confdefs.h"
14259 /* System header to define __stub macros and hopefully few prototypes,
14260     which can conflict with char $ac_func(); below.  */
14261 #include <assert.h>
14262 /* Override any gcc2 internal prototype to avoid an error.  */
14263 /* We use char because int might match the return type of a gcc2
14264     builtin and then its argument prototype would still apply.  */
14265 char $ac_func();
14266
14267 int main() {
14268
14269 /* The GNU C library defines this for functions which it implements
14270     to always fail with ENOSYS.  Some functions are actually named
14271     something starting with __ and the normal name is an alias.  */
14272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14273 choke me
14274 #else
14275 $ac_func();
14276 #endif
14277
14278 ; return 0; }
14279 EOF
14280 if { (eval echo configure:14281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14281   rm -rf conftest*
14282   eval "ac_cv_func_$ac_func=yes"
14283 else
14284   echo "configure: failed program was:" >&5
14285   cat conftest.$ac_ext >&5
14286   rm -rf conftest*
14287   eval "ac_cv_func_$ac_func=no"
14288 fi
14289 rm -f conftest*
14290 fi
14291
14292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14293   echo "$ac_t""yes" 1>&6
14294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14295   cat >> confdefs.h <<EOF
14296 #define $ac_tr_func 1
14297 EOF
14298  
14299 else
14300   echo "$ac_t""no" 1>&6
14301 fi
14302 done
14303     
14304     fi
14305   fi
14306
14307
14308     
14309   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
14310 echo "configure:14311: checking for long double trig functions" >&5
14311   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
14312   echo $ac_n "(cached) $ac_c" 1>&6
14313 else
14314   
14315     
14316     ac_ext=C
14317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14318 ac_cpp='$CXXCPP $CPPFLAGS'
14319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14321 cross_compiling=$ac_cv_prog_cxx_cross
14322
14323     cat > conftest.$ac_ext <<EOF
14324 #line 14325 "configure"
14325 #include "confdefs.h"
14326 #include <math.h>
14327 int main() {
14328  `for x in acosl asinl atanl \
14329                                           cosl sinl tanl \
14330                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
14331 ; return 0; }
14332 EOF
14333 if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14334   rm -rf conftest*
14335   glibcpp_cv_func_long_double_trig_use=yes
14336 else
14337   echo "configure: failed program was:" >&5
14338   cat conftest.$ac_ext >&5
14339   rm -rf conftest*
14340   glibcpp_cv_func_long_double_trig_use=no
14341 fi
14342 rm -f conftest*
14343     ac_ext=c
14344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14345 ac_cpp='$CPP $CPPFLAGS'
14346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14348 cross_compiling=$ac_cv_prog_cc_cross
14349
14350 fi
14351
14352   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
14353   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
14354     for ac_func in acosl asinl atanl \
14355                                           cosl sinl tanl \
14356                                           coshl sinhl tanhl
14357 do
14358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14359 echo "configure:14360: checking for $ac_func" >&5
14360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14361   echo $ac_n "(cached) $ac_c" 1>&6
14362 else
14363   cat > conftest.$ac_ext <<EOF
14364 #line 14365 "configure"
14365 #include "confdefs.h"
14366 /* System header to define __stub macros and hopefully few prototypes,
14367     which can conflict with char $ac_func(); below.  */
14368 #include <assert.h>
14369 /* Override any gcc2 internal prototype to avoid an error.  */
14370 /* We use char because int might match the return type of a gcc2
14371     builtin and then its argument prototype would still apply.  */
14372 char $ac_func();
14373
14374 int main() {
14375
14376 /* The GNU C library defines this for functions which it implements
14377     to always fail with ENOSYS.  Some functions are actually named
14378     something starting with __ and the normal name is an alias.  */
14379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14380 choke me
14381 #else
14382 $ac_func();
14383 #endif
14384
14385 ; return 0; }
14386 EOF
14387 if { (eval echo configure:14388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14388   rm -rf conftest*
14389   eval "ac_cv_func_$ac_func=yes"
14390 else
14391   echo "configure: failed program was:" >&5
14392   cat conftest.$ac_ext >&5
14393   rm -rf conftest*
14394   eval "ac_cv_func_$ac_func=no"
14395 fi
14396 rm -f conftest*
14397 fi
14398
14399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14400   echo "$ac_t""yes" 1>&6
14401     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14402   cat >> confdefs.h <<EOF
14403 #define $ac_tr_func 1
14404 EOF
14405  
14406 else
14407   echo "$ac_t""no" 1>&6
14408 fi
14409 done
14410
14411   fi
14412
14413   
14414   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
14415 echo "configure:14416: checking for long double round functions" >&5
14416   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
14417   echo $ac_n "(cached) $ac_c" 1>&6
14418 else
14419   
14420     
14421     ac_ext=C
14422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14423 ac_cpp='$CXXCPP $CPPFLAGS'
14424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14426 cross_compiling=$ac_cv_prog_cxx_cross
14427
14428     cat > conftest.$ac_ext <<EOF
14429 #line 14430 "configure"
14430 #include "confdefs.h"
14431 #include <math.h>
14432 int main() {
14433  `for x in ceill floorl; do echo "$x (0);"; done` 
14434 ; return 0; }
14435 EOF
14436 if { (eval echo configure:14437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14437   rm -rf conftest*
14438   glibcpp_cv_func_long_double_round_use=yes
14439 else
14440   echo "configure: failed program was:" >&5
14441   cat conftest.$ac_ext >&5
14442   rm -rf conftest*
14443   glibcpp_cv_func_long_double_round_use=no
14444 fi
14445 rm -f conftest*
14446     ac_ext=c
14447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14451 cross_compiling=$ac_cv_prog_cc_cross
14452
14453 fi
14454
14455   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
14456   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
14457     for ac_func in ceill floorl
14458 do
14459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14460 echo "configure:14461: checking for $ac_func" >&5
14461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14462   echo $ac_n "(cached) $ac_c" 1>&6
14463 else
14464   cat > conftest.$ac_ext <<EOF
14465 #line 14466 "configure"
14466 #include "confdefs.h"
14467 /* System header to define __stub macros and hopefully few prototypes,
14468     which can conflict with char $ac_func(); below.  */
14469 #include <assert.h>
14470 /* Override any gcc2 internal prototype to avoid an error.  */
14471 /* We use char because int might match the return type of a gcc2
14472     builtin and then its argument prototype would still apply.  */
14473 char $ac_func();
14474
14475 int main() {
14476
14477 /* The GNU C library defines this for functions which it implements
14478     to always fail with ENOSYS.  Some functions are actually named
14479     something starting with __ and the normal name is an alias.  */
14480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14481 choke me
14482 #else
14483 $ac_func();
14484 #endif
14485
14486 ; return 0; }
14487 EOF
14488 if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14489   rm -rf conftest*
14490   eval "ac_cv_func_$ac_func=yes"
14491 else
14492   echo "configure: failed program was:" >&5
14493   cat conftest.$ac_ext >&5
14494   rm -rf conftest*
14495   eval "ac_cv_func_$ac_func=no"
14496 fi
14497 rm -f conftest*
14498 fi
14499
14500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14501   echo "$ac_t""yes" 1>&6
14502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14503   cat >> confdefs.h <<EOF
14504 #define $ac_tr_func 1
14505 EOF
14506  
14507 else
14508   echo "$ac_t""no" 1>&6
14509 fi
14510 done
14511
14512   fi
14513
14514   
14515   
14516   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
14517 echo "configure:14518: checking for isnanl declaration" >&5
14518   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
14519     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
14520   echo $ac_n "(cached) $ac_c" 1>&6
14521 else
14522   
14523       
14524       ac_ext=C
14525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14526 ac_cpp='$CXXCPP $CPPFLAGS'
14527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14529 cross_compiling=$ac_cv_prog_cxx_cross
14530
14531       cat > conftest.$ac_ext <<EOF
14532 #line 14533 "configure"
14533 #include "confdefs.h"
14534 #include <math.h>
14535                       #ifdef HAVE_IEEEFP_H
14536                       #include <ieeefp.h>
14537                       #endif
14538                      
14539 int main() {
14540  isnanl(0);
14541 ; return 0; }
14542 EOF
14543 if { (eval echo configure:14544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14544   rm -rf conftest*
14545   glibcpp_cv_func_isnanl_use=yes
14546 else
14547   echo "configure: failed program was:" >&5
14548   cat conftest.$ac_ext >&5
14549   rm -rf conftest*
14550   glibcpp_cv_func_isnanl_use=no
14551 fi
14552 rm -f conftest*
14553       ac_ext=c
14554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14555 ac_cpp='$CPP $CPPFLAGS'
14556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14558 cross_compiling=$ac_cv_prog_cc_cross
14559
14560     
14561 fi
14562
14563   fi
14564   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
14565
14566   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
14567     for ac_func in isnanl
14568 do
14569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14570 echo "configure:14571: checking for $ac_func" >&5
14571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14572   echo $ac_n "(cached) $ac_c" 1>&6
14573 else
14574   cat > conftest.$ac_ext <<EOF
14575 #line 14576 "configure"
14576 #include "confdefs.h"
14577 /* System header to define __stub macros and hopefully few prototypes,
14578     which can conflict with char $ac_func(); below.  */
14579 #include <assert.h>
14580 /* Override any gcc2 internal prototype to avoid an error.  */
14581 /* We use char because int might match the return type of a gcc2
14582     builtin and then its argument prototype would still apply.  */
14583 char $ac_func();
14584
14585 int main() {
14586
14587 /* The GNU C library defines this for functions which it implements
14588     to always fail with ENOSYS.  Some functions are actually named
14589     something starting with __ and the normal name is an alias.  */
14590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14591 choke me
14592 #else
14593 $ac_func();
14594 #endif
14595
14596 ; return 0; }
14597 EOF
14598 if { (eval echo configure:14599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14599   rm -rf conftest*
14600   eval "ac_cv_func_$ac_func=yes"
14601 else
14602   echo "configure: failed program was:" >&5
14603   cat conftest.$ac_ext >&5
14604   rm -rf conftest*
14605   eval "ac_cv_func_$ac_func=no"
14606 fi
14607 rm -f conftest*
14608 fi
14609
14610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14611   echo "$ac_t""yes" 1>&6
14612     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14613   cat >> confdefs.h <<EOF
14614 #define $ac_tr_func 1
14615 EOF
14616  
14617 else
14618   echo "$ac_t""no" 1>&6
14619 fi
14620 done
14621     
14622   else
14623     
14624   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
14625 echo "configure:14626: checking for _isnanl declaration" >&5
14626   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
14627     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
14628   echo $ac_n "(cached) $ac_c" 1>&6
14629 else
14630   
14631       
14632       ac_ext=C
14633 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14634 ac_cpp='$CXXCPP $CPPFLAGS'
14635 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14636 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14637 cross_compiling=$ac_cv_prog_cxx_cross
14638
14639       cat > conftest.$ac_ext <<EOF
14640 #line 14641 "configure"
14641 #include "confdefs.h"
14642 #include <math.h>
14643                       #ifdef HAVE_IEEEFP_H
14644                       #include <ieeefp.h>
14645                       #endif
14646                      
14647 int main() {
14648  _isnanl(0);
14649 ; return 0; }
14650 EOF
14651 if { (eval echo configure:14652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14652   rm -rf conftest*
14653   glibcpp_cv_func__isnanl_use=yes
14654 else
14655   echo "configure: failed program was:" >&5
14656   cat conftest.$ac_ext >&5
14657   rm -rf conftest*
14658   glibcpp_cv_func__isnanl_use=no
14659 fi
14660 rm -f conftest*
14661       ac_ext=c
14662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14663 ac_cpp='$CPP $CPPFLAGS'
14664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14666 cross_compiling=$ac_cv_prog_cc_cross
14667
14668     
14669 fi
14670
14671   fi
14672   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
14673
14674     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
14675       for ac_func in _isnanl
14676 do
14677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14678 echo "configure:14679: checking for $ac_func" >&5
14679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14680   echo $ac_n "(cached) $ac_c" 1>&6
14681 else
14682   cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14685 /* System header to define __stub macros and hopefully few prototypes,
14686     which can conflict with char $ac_func(); below.  */
14687 #include <assert.h>
14688 /* Override any gcc2 internal prototype to avoid an error.  */
14689 /* We use char because int might match the return type of a gcc2
14690     builtin and then its argument prototype would still apply.  */
14691 char $ac_func();
14692
14693 int main() {
14694
14695 /* The GNU C library defines this for functions which it implements
14696     to always fail with ENOSYS.  Some functions are actually named
14697     something starting with __ and the normal name is an alias.  */
14698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14699 choke me
14700 #else
14701 $ac_func();
14702 #endif
14703
14704 ; return 0; }
14705 EOF
14706 if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14707   rm -rf conftest*
14708   eval "ac_cv_func_$ac_func=yes"
14709 else
14710   echo "configure: failed program was:" >&5
14711   cat conftest.$ac_ext >&5
14712   rm -rf conftest*
14713   eval "ac_cv_func_$ac_func=no"
14714 fi
14715 rm -f conftest*
14716 fi
14717
14718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14719   echo "$ac_t""yes" 1>&6
14720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14721   cat >> confdefs.h <<EOF
14722 #define $ac_tr_func 1
14723 EOF
14724  
14725 else
14726   echo "$ac_t""no" 1>&6
14727 fi
14728 done
14729     
14730     fi
14731   fi
14732
14733   
14734   
14735   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
14736 echo "configure:14737: checking for isinfl declaration" >&5
14737   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
14738     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
14739   echo $ac_n "(cached) $ac_c" 1>&6
14740 else
14741   
14742       
14743       ac_ext=C
14744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14745 ac_cpp='$CXXCPP $CPPFLAGS'
14746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14748 cross_compiling=$ac_cv_prog_cxx_cross
14749
14750       cat > conftest.$ac_ext <<EOF
14751 #line 14752 "configure"
14752 #include "confdefs.h"
14753 #include <math.h>
14754                       #ifdef HAVE_IEEEFP_H
14755                       #include <ieeefp.h>
14756                       #endif
14757                      
14758 int main() {
14759  isinfl(0);
14760 ; return 0; }
14761 EOF
14762 if { (eval echo configure:14763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14763   rm -rf conftest*
14764   glibcpp_cv_func_isinfl_use=yes
14765 else
14766   echo "configure: failed program was:" >&5
14767   cat conftest.$ac_ext >&5
14768   rm -rf conftest*
14769   glibcpp_cv_func_isinfl_use=no
14770 fi
14771 rm -f conftest*
14772       ac_ext=c
14773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14774 ac_cpp='$CPP $CPPFLAGS'
14775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14777 cross_compiling=$ac_cv_prog_cc_cross
14778
14779     
14780 fi
14781
14782   fi
14783   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
14784
14785   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
14786     for ac_func in isinfl
14787 do
14788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14789 echo "configure:14790: checking for $ac_func" >&5
14790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14791   echo $ac_n "(cached) $ac_c" 1>&6
14792 else
14793   cat > conftest.$ac_ext <<EOF
14794 #line 14795 "configure"
14795 #include "confdefs.h"
14796 /* System header to define __stub macros and hopefully few prototypes,
14797     which can conflict with char $ac_func(); below.  */
14798 #include <assert.h>
14799 /* Override any gcc2 internal prototype to avoid an error.  */
14800 /* We use char because int might match the return type of a gcc2
14801     builtin and then its argument prototype would still apply.  */
14802 char $ac_func();
14803
14804 int main() {
14805
14806 /* The GNU C library defines this for functions which it implements
14807     to always fail with ENOSYS.  Some functions are actually named
14808     something starting with __ and the normal name is an alias.  */
14809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14810 choke me
14811 #else
14812 $ac_func();
14813 #endif
14814
14815 ; return 0; }
14816 EOF
14817 if { (eval echo configure:14818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14818   rm -rf conftest*
14819   eval "ac_cv_func_$ac_func=yes"
14820 else
14821   echo "configure: failed program was:" >&5
14822   cat conftest.$ac_ext >&5
14823   rm -rf conftest*
14824   eval "ac_cv_func_$ac_func=no"
14825 fi
14826 rm -f conftest*
14827 fi
14828
14829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14830   echo "$ac_t""yes" 1>&6
14831     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14832   cat >> confdefs.h <<EOF
14833 #define $ac_tr_func 1
14834 EOF
14835  
14836 else
14837   echo "$ac_t""no" 1>&6
14838 fi
14839 done
14840     
14841   else
14842     
14843   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
14844 echo "configure:14845: checking for _isinfl declaration" >&5
14845   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
14846     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
14847   echo $ac_n "(cached) $ac_c" 1>&6
14848 else
14849   
14850       
14851       ac_ext=C
14852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14853 ac_cpp='$CXXCPP $CPPFLAGS'
14854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14856 cross_compiling=$ac_cv_prog_cxx_cross
14857
14858       cat > conftest.$ac_ext <<EOF
14859 #line 14860 "configure"
14860 #include "confdefs.h"
14861 #include <math.h>
14862                       #ifdef HAVE_IEEEFP_H
14863                       #include <ieeefp.h>
14864                       #endif
14865                      
14866 int main() {
14867  _isinfl(0);
14868 ; return 0; }
14869 EOF
14870 if { (eval echo configure:14871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14871   rm -rf conftest*
14872   glibcpp_cv_func__isinfl_use=yes
14873 else
14874   echo "configure: failed program was:" >&5
14875   cat conftest.$ac_ext >&5
14876   rm -rf conftest*
14877   glibcpp_cv_func__isinfl_use=no
14878 fi
14879 rm -f conftest*
14880       ac_ext=c
14881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14882 ac_cpp='$CPP $CPPFLAGS'
14883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14885 cross_compiling=$ac_cv_prog_cc_cross
14886
14887     
14888 fi
14889
14890   fi
14891   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
14892
14893     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
14894       for ac_func in _isinfl
14895 do
14896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14897 echo "configure:14898: checking for $ac_func" >&5
14898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14899   echo $ac_n "(cached) $ac_c" 1>&6
14900 else
14901   cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14904 /* System header to define __stub macros and hopefully few prototypes,
14905     which can conflict with char $ac_func(); below.  */
14906 #include <assert.h>
14907 /* Override any gcc2 internal prototype to avoid an error.  */
14908 /* We use char because int might match the return type of a gcc2
14909     builtin and then its argument prototype would still apply.  */
14910 char $ac_func();
14911
14912 int main() {
14913
14914 /* The GNU C library defines this for functions which it implements
14915     to always fail with ENOSYS.  Some functions are actually named
14916     something starting with __ and the normal name is an alias.  */
14917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14918 choke me
14919 #else
14920 $ac_func();
14921 #endif
14922
14923 ; return 0; }
14924 EOF
14925 if { (eval echo configure:14926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14926   rm -rf conftest*
14927   eval "ac_cv_func_$ac_func=yes"
14928 else
14929   echo "configure: failed program was:" >&5
14930   cat conftest.$ac_ext >&5
14931   rm -rf conftest*
14932   eval "ac_cv_func_$ac_func=no"
14933 fi
14934 rm -f conftest*
14935 fi
14936
14937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14938   echo "$ac_t""yes" 1>&6
14939     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14940   cat >> confdefs.h <<EOF
14941 #define $ac_tr_func 1
14942 EOF
14943  
14944 else
14945   echo "$ac_t""no" 1>&6
14946 fi
14947 done
14948     
14949     fi
14950   fi
14951
14952   
14953   
14954   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
14955 echo "configure:14956: checking for copysignl declaration" >&5
14956   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
14957     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
14958   echo $ac_n "(cached) $ac_c" 1>&6
14959 else
14960   
14961       
14962       ac_ext=C
14963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14964 ac_cpp='$CXXCPP $CPPFLAGS'
14965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14967 cross_compiling=$ac_cv_prog_cxx_cross
14968
14969       cat > conftest.$ac_ext <<EOF
14970 #line 14971 "configure"
14971 #include "confdefs.h"
14972 #include <math.h>
14973 int main() {
14974  copysignl(0, 0);
14975 ; return 0; }
14976 EOF
14977 if { (eval echo configure:14978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14978   rm -rf conftest*
14979   glibcpp_cv_func_copysignl_use=yes
14980 else
14981   echo "configure: failed program was:" >&5
14982   cat conftest.$ac_ext >&5
14983   rm -rf conftest*
14984   glibcpp_cv_func_copysignl_use=no
14985 fi
14986 rm -f conftest*
14987       ac_ext=c
14988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14989 ac_cpp='$CPP $CPPFLAGS'
14990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14992 cross_compiling=$ac_cv_prog_cc_cross
14993
14994     
14995 fi
14996
14997   fi
14998   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14999
15000   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
15001     for ac_func in copysignl
15002 do
15003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15004 echo "configure:15005: checking for $ac_func" >&5
15005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15006   echo $ac_n "(cached) $ac_c" 1>&6
15007 else
15008   cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure"
15010 #include "confdefs.h"
15011 /* System header to define __stub macros and hopefully few prototypes,
15012     which can conflict with char $ac_func(); below.  */
15013 #include <assert.h>
15014 /* Override any gcc2 internal prototype to avoid an error.  */
15015 /* We use char because int might match the return type of a gcc2
15016     builtin and then its argument prototype would still apply.  */
15017 char $ac_func();
15018
15019 int main() {
15020
15021 /* The GNU C library defines this for functions which it implements
15022     to always fail with ENOSYS.  Some functions are actually named
15023     something starting with __ and the normal name is an alias.  */
15024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15025 choke me
15026 #else
15027 $ac_func();
15028 #endif
15029
15030 ; return 0; }
15031 EOF
15032 if { (eval echo configure:15033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15033   rm -rf conftest*
15034   eval "ac_cv_func_$ac_func=yes"
15035 else
15036   echo "configure: failed program was:" >&5
15037   cat conftest.$ac_ext >&5
15038   rm -rf conftest*
15039   eval "ac_cv_func_$ac_func=no"
15040 fi
15041 rm -f conftest*
15042 fi
15043
15044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15045   echo "$ac_t""yes" 1>&6
15046     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15047   cat >> confdefs.h <<EOF
15048 #define $ac_tr_func 1
15049 EOF
15050  
15051 else
15052   echo "$ac_t""no" 1>&6
15053 fi
15054 done
15055     
15056   else
15057     
15058   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15059 echo "configure:15060: checking for _copysignl declaration" >&5
15060   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15061     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15062   echo $ac_n "(cached) $ac_c" 1>&6
15063 else
15064   
15065       
15066       ac_ext=C
15067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15068 ac_cpp='$CXXCPP $CPPFLAGS'
15069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15071 cross_compiling=$ac_cv_prog_cxx_cross
15072
15073       cat > conftest.$ac_ext <<EOF
15074 #line 15075 "configure"
15075 #include "confdefs.h"
15076 #include <math.h>
15077 int main() {
15078  _copysignl(0, 0);
15079 ; return 0; }
15080 EOF
15081 if { (eval echo configure:15082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15082   rm -rf conftest*
15083   glibcpp_cv_func__copysignl_use=yes
15084 else
15085   echo "configure: failed program was:" >&5
15086   cat conftest.$ac_ext >&5
15087   rm -rf conftest*
15088   glibcpp_cv_func__copysignl_use=no
15089 fi
15090 rm -f conftest*
15091       ac_ext=c
15092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15096 cross_compiling=$ac_cv_prog_cc_cross
15097
15098     
15099 fi
15100
15101   fi
15102   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15103
15104     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15105       for ac_func in _copysignl
15106 do
15107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15108 echo "configure:15109: checking for $ac_func" >&5
15109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15110   echo $ac_n "(cached) $ac_c" 1>&6
15111 else
15112   cat > conftest.$ac_ext <<EOF
15113 #line 15114 "configure"
15114 #include "confdefs.h"
15115 /* System header to define __stub macros and hopefully few prototypes,
15116     which can conflict with char $ac_func(); below.  */
15117 #include <assert.h>
15118 /* Override any gcc2 internal prototype to avoid an error.  */
15119 /* We use char because int might match the return type of a gcc2
15120     builtin and then its argument prototype would still apply.  */
15121 char $ac_func();
15122
15123 int main() {
15124
15125 /* The GNU C library defines this for functions which it implements
15126     to always fail with ENOSYS.  Some functions are actually named
15127     something starting with __ and the normal name is an alias.  */
15128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15129 choke me
15130 #else
15131 $ac_func();
15132 #endif
15133
15134 ; return 0; }
15135 EOF
15136 if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137   rm -rf conftest*
15138   eval "ac_cv_func_$ac_func=yes"
15139 else
15140   echo "configure: failed program was:" >&5
15141   cat conftest.$ac_ext >&5
15142   rm -rf conftest*
15143   eval "ac_cv_func_$ac_func=no"
15144 fi
15145 rm -f conftest*
15146 fi
15147
15148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15149   echo "$ac_t""yes" 1>&6
15150     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15151   cat >> confdefs.h <<EOF
15152 #define $ac_tr_func 1
15153 EOF
15154  
15155 else
15156   echo "$ac_t""no" 1>&6
15157 fi
15158 done
15159     
15160     fi
15161   fi
15162
15163   
15164   
15165   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
15166 echo "configure:15167: checking for atan2l declaration" >&5
15167   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
15168     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
15169   echo $ac_n "(cached) $ac_c" 1>&6
15170 else
15171   
15172       
15173       ac_ext=C
15174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15175 ac_cpp='$CXXCPP $CPPFLAGS'
15176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15178 cross_compiling=$ac_cv_prog_cxx_cross
15179
15180       cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 #include <math.h>
15184 int main() {
15185  atan2l(0, 0);
15186 ; return 0; }
15187 EOF
15188 if { (eval echo configure:15189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15189   rm -rf conftest*
15190   glibcpp_cv_func_atan2l_use=yes
15191 else
15192   echo "configure: failed program was:" >&5
15193   cat conftest.$ac_ext >&5
15194   rm -rf conftest*
15195   glibcpp_cv_func_atan2l_use=no
15196 fi
15197 rm -f conftest*
15198       ac_ext=c
15199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15200 ac_cpp='$CPP $CPPFLAGS'
15201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15203 cross_compiling=$ac_cv_prog_cc_cross
15204
15205     
15206 fi
15207
15208   fi
15209   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
15210
15211   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
15212     for ac_func in atan2l
15213 do
15214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15215 echo "configure:15216: checking for $ac_func" >&5
15216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15217   echo $ac_n "(cached) $ac_c" 1>&6
15218 else
15219   cat > conftest.$ac_ext <<EOF
15220 #line 15221 "configure"
15221 #include "confdefs.h"
15222 /* System header to define __stub macros and hopefully few prototypes,
15223     which can conflict with char $ac_func(); below.  */
15224 #include <assert.h>
15225 /* Override any gcc2 internal prototype to avoid an error.  */
15226 /* We use char because int might match the return type of a gcc2
15227     builtin and then its argument prototype would still apply.  */
15228 char $ac_func();
15229
15230 int main() {
15231
15232 /* The GNU C library defines this for functions which it implements
15233     to always fail with ENOSYS.  Some functions are actually named
15234     something starting with __ and the normal name is an alias.  */
15235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15236 choke me
15237 #else
15238 $ac_func();
15239 #endif
15240
15241 ; return 0; }
15242 EOF
15243 if { (eval echo configure:15244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15244   rm -rf conftest*
15245   eval "ac_cv_func_$ac_func=yes"
15246 else
15247   echo "configure: failed program was:" >&5
15248   cat conftest.$ac_ext >&5
15249   rm -rf conftest*
15250   eval "ac_cv_func_$ac_func=no"
15251 fi
15252 rm -f conftest*
15253 fi
15254
15255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15256   echo "$ac_t""yes" 1>&6
15257     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15258   cat >> confdefs.h <<EOF
15259 #define $ac_tr_func 1
15260 EOF
15261  
15262 else
15263   echo "$ac_t""no" 1>&6
15264 fi
15265 done
15266     
15267   else
15268     
15269   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
15270 echo "configure:15271: checking for _atan2l declaration" >&5
15271   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
15272     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
15273   echo $ac_n "(cached) $ac_c" 1>&6
15274 else
15275   
15276       
15277       ac_ext=C
15278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15279 ac_cpp='$CXXCPP $CPPFLAGS'
15280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15282 cross_compiling=$ac_cv_prog_cxx_cross
15283
15284       cat > conftest.$ac_ext <<EOF
15285 #line 15286 "configure"
15286 #include "confdefs.h"
15287 #include <math.h>
15288 int main() {
15289  _atan2l(0, 0);
15290 ; return 0; }
15291 EOF
15292 if { (eval echo configure:15293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15293   rm -rf conftest*
15294   glibcpp_cv_func__atan2l_use=yes
15295 else
15296   echo "configure: failed program was:" >&5
15297   cat conftest.$ac_ext >&5
15298   rm -rf conftest*
15299   glibcpp_cv_func__atan2l_use=no
15300 fi
15301 rm -f conftest*
15302       ac_ext=c
15303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15306 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15307 cross_compiling=$ac_cv_prog_cc_cross
15308
15309     
15310 fi
15311
15312   fi
15313   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
15314
15315     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
15316       for ac_func in _atan2l
15317 do
15318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15319 echo "configure:15320: checking for $ac_func" >&5
15320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15321   echo $ac_n "(cached) $ac_c" 1>&6
15322 else
15323   cat > conftest.$ac_ext <<EOF
15324 #line 15325 "configure"
15325 #include "confdefs.h"
15326 /* System header to define __stub macros and hopefully few prototypes,
15327     which can conflict with char $ac_func(); below.  */
15328 #include <assert.h>
15329 /* Override any gcc2 internal prototype to avoid an error.  */
15330 /* We use char because int might match the return type of a gcc2
15331     builtin and then its argument prototype would still apply.  */
15332 char $ac_func();
15333
15334 int main() {
15335
15336 /* The GNU C library defines this for functions which it implements
15337     to always fail with ENOSYS.  Some functions are actually named
15338     something starting with __ and the normal name is an alias.  */
15339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15340 choke me
15341 #else
15342 $ac_func();
15343 #endif
15344
15345 ; return 0; }
15346 EOF
15347 if { (eval echo configure:15348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15348   rm -rf conftest*
15349   eval "ac_cv_func_$ac_func=yes"
15350 else
15351   echo "configure: failed program was:" >&5
15352   cat conftest.$ac_ext >&5
15353   rm -rf conftest*
15354   eval "ac_cv_func_$ac_func=no"
15355 fi
15356 rm -f conftest*
15357 fi
15358
15359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15360   echo "$ac_t""yes" 1>&6
15361     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15362   cat >> confdefs.h <<EOF
15363 #define $ac_tr_func 1
15364 EOF
15365  
15366 else
15367   echo "$ac_t""no" 1>&6
15368 fi
15369 done
15370     
15371     fi
15372   fi
15373
15374   
15375   
15376   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
15377 echo "configure:15378: checking for expl declaration" >&5
15378   if test x${glibcpp_cv_func_expl_use+set} != xset; then
15379     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
15380   echo $ac_n "(cached) $ac_c" 1>&6
15381 else
15382   
15383       
15384       ac_ext=C
15385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15386 ac_cpp='$CXXCPP $CPPFLAGS'
15387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15389 cross_compiling=$ac_cv_prog_cxx_cross
15390
15391       cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15394 #include <math.h>
15395                       #ifdef HAVE_IEEEFP_H
15396                       #include <ieeefp.h>
15397                       #endif
15398                      
15399 int main() {
15400  expl(0);
15401 ; return 0; }
15402 EOF
15403 if { (eval echo configure:15404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15404   rm -rf conftest*
15405   glibcpp_cv_func_expl_use=yes
15406 else
15407   echo "configure: failed program was:" >&5
15408   cat conftest.$ac_ext >&5
15409   rm -rf conftest*
15410   glibcpp_cv_func_expl_use=no
15411 fi
15412 rm -f conftest*
15413       ac_ext=c
15414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15415 ac_cpp='$CPP $CPPFLAGS'
15416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15418 cross_compiling=$ac_cv_prog_cc_cross
15419
15420     
15421 fi
15422
15423   fi
15424   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
15425
15426   if test x$glibcpp_cv_func_expl_use = x"yes"; then
15427     for ac_func in expl
15428 do
15429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15430 echo "configure:15431: checking for $ac_func" >&5
15431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15432   echo $ac_n "(cached) $ac_c" 1>&6
15433 else
15434   cat > conftest.$ac_ext <<EOF
15435 #line 15436 "configure"
15436 #include "confdefs.h"
15437 /* System header to define __stub macros and hopefully few prototypes,
15438     which can conflict with char $ac_func(); below.  */
15439 #include <assert.h>
15440 /* Override any gcc2 internal prototype to avoid an error.  */
15441 /* We use char because int might match the return type of a gcc2
15442     builtin and then its argument prototype would still apply.  */
15443 char $ac_func();
15444
15445 int main() {
15446
15447 /* The GNU C library defines this for functions which it implements
15448     to always fail with ENOSYS.  Some functions are actually named
15449     something starting with __ and the normal name is an alias.  */
15450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15451 choke me
15452 #else
15453 $ac_func();
15454 #endif
15455
15456 ; return 0; }
15457 EOF
15458 if { (eval echo configure:15459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15459   rm -rf conftest*
15460   eval "ac_cv_func_$ac_func=yes"
15461 else
15462   echo "configure: failed program was:" >&5
15463   cat conftest.$ac_ext >&5
15464   rm -rf conftest*
15465   eval "ac_cv_func_$ac_func=no"
15466 fi
15467 rm -f conftest*
15468 fi
15469
15470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15471   echo "$ac_t""yes" 1>&6
15472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15473   cat >> confdefs.h <<EOF
15474 #define $ac_tr_func 1
15475 EOF
15476  
15477 else
15478   echo "$ac_t""no" 1>&6
15479 fi
15480 done
15481     
15482   else
15483     
15484   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
15485 echo "configure:15486: checking for _expl declaration" >&5
15486   if test x${glibcpp_cv_func__expl_use+set} != xset; then
15487     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
15488   echo $ac_n "(cached) $ac_c" 1>&6
15489 else
15490   
15491       
15492       ac_ext=C
15493 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15494 ac_cpp='$CXXCPP $CPPFLAGS'
15495 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15496 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15497 cross_compiling=$ac_cv_prog_cxx_cross
15498
15499       cat > conftest.$ac_ext <<EOF
15500 #line 15501 "configure"
15501 #include "confdefs.h"
15502 #include <math.h>
15503                       #ifdef HAVE_IEEEFP_H
15504                       #include <ieeefp.h>
15505                       #endif
15506                      
15507 int main() {
15508  _expl(0);
15509 ; return 0; }
15510 EOF
15511 if { (eval echo configure:15512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15512   rm -rf conftest*
15513   glibcpp_cv_func__expl_use=yes
15514 else
15515   echo "configure: failed program was:" >&5
15516   cat conftest.$ac_ext >&5
15517   rm -rf conftest*
15518   glibcpp_cv_func__expl_use=no
15519 fi
15520 rm -f conftest*
15521       ac_ext=c
15522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15523 ac_cpp='$CPP $CPPFLAGS'
15524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15526 cross_compiling=$ac_cv_prog_cc_cross
15527
15528     
15529 fi
15530
15531   fi
15532   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
15533
15534     if test x$glibcpp_cv_func__expl_use = x"yes"; then
15535       for ac_func in _expl
15536 do
15537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15538 echo "configure:15539: checking for $ac_func" >&5
15539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15540   echo $ac_n "(cached) $ac_c" 1>&6
15541 else
15542   cat > conftest.$ac_ext <<EOF
15543 #line 15544 "configure"
15544 #include "confdefs.h"
15545 /* System header to define __stub macros and hopefully few prototypes,
15546     which can conflict with char $ac_func(); below.  */
15547 #include <assert.h>
15548 /* Override any gcc2 internal prototype to avoid an error.  */
15549 /* We use char because int might match the return type of a gcc2
15550     builtin and then its argument prototype would still apply.  */
15551 char $ac_func();
15552
15553 int main() {
15554
15555 /* The GNU C library defines this for functions which it implements
15556     to always fail with ENOSYS.  Some functions are actually named
15557     something starting with __ and the normal name is an alias.  */
15558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559 choke me
15560 #else
15561 $ac_func();
15562 #endif
15563
15564 ; return 0; }
15565 EOF
15566 if { (eval echo configure:15567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15567   rm -rf conftest*
15568   eval "ac_cv_func_$ac_func=yes"
15569 else
15570   echo "configure: failed program was:" >&5
15571   cat conftest.$ac_ext >&5
15572   rm -rf conftest*
15573   eval "ac_cv_func_$ac_func=no"
15574 fi
15575 rm -f conftest*
15576 fi
15577
15578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15579   echo "$ac_t""yes" 1>&6
15580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15581   cat >> confdefs.h <<EOF
15582 #define $ac_tr_func 1
15583 EOF
15584  
15585 else
15586   echo "$ac_t""no" 1>&6
15587 fi
15588 done
15589     
15590     fi
15591   fi
15592
15593   
15594   
15595   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
15596 echo "configure:15597: checking for fabsl declaration" >&5
15597   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
15598     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
15599   echo $ac_n "(cached) $ac_c" 1>&6
15600 else
15601   
15602       
15603       ac_ext=C
15604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15605 ac_cpp='$CXXCPP $CPPFLAGS'
15606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15608 cross_compiling=$ac_cv_prog_cxx_cross
15609
15610       cat > conftest.$ac_ext <<EOF
15611 #line 15612 "configure"
15612 #include "confdefs.h"
15613 #include <math.h>
15614                       #ifdef HAVE_IEEEFP_H
15615                       #include <ieeefp.h>
15616                       #endif
15617                      
15618 int main() {
15619  fabsl(0);
15620 ; return 0; }
15621 EOF
15622 if { (eval echo configure:15623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15623   rm -rf conftest*
15624   glibcpp_cv_func_fabsl_use=yes
15625 else
15626   echo "configure: failed program was:" >&5
15627   cat conftest.$ac_ext >&5
15628   rm -rf conftest*
15629   glibcpp_cv_func_fabsl_use=no
15630 fi
15631 rm -f conftest*
15632       ac_ext=c
15633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15634 ac_cpp='$CPP $CPPFLAGS'
15635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15637 cross_compiling=$ac_cv_prog_cc_cross
15638
15639     
15640 fi
15641
15642   fi
15643   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
15644
15645   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
15646     for ac_func in fabsl
15647 do
15648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15649 echo "configure:15650: checking for $ac_func" >&5
15650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15651   echo $ac_n "(cached) $ac_c" 1>&6
15652 else
15653   cat > conftest.$ac_ext <<EOF
15654 #line 15655 "configure"
15655 #include "confdefs.h"
15656 /* System header to define __stub macros and hopefully few prototypes,
15657     which can conflict with char $ac_func(); below.  */
15658 #include <assert.h>
15659 /* Override any gcc2 internal prototype to avoid an error.  */
15660 /* We use char because int might match the return type of a gcc2
15661     builtin and then its argument prototype would still apply.  */
15662 char $ac_func();
15663
15664 int main() {
15665
15666 /* The GNU C library defines this for functions which it implements
15667     to always fail with ENOSYS.  Some functions are actually named
15668     something starting with __ and the normal name is an alias.  */
15669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15670 choke me
15671 #else
15672 $ac_func();
15673 #endif
15674
15675 ; return 0; }
15676 EOF
15677 if { (eval echo configure:15678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15678   rm -rf conftest*
15679   eval "ac_cv_func_$ac_func=yes"
15680 else
15681   echo "configure: failed program was:" >&5
15682   cat conftest.$ac_ext >&5
15683   rm -rf conftest*
15684   eval "ac_cv_func_$ac_func=no"
15685 fi
15686 rm -f conftest*
15687 fi
15688
15689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15690   echo "$ac_t""yes" 1>&6
15691     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15692   cat >> confdefs.h <<EOF
15693 #define $ac_tr_func 1
15694 EOF
15695  
15696 else
15697   echo "$ac_t""no" 1>&6
15698 fi
15699 done
15700     
15701   else
15702     
15703   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
15704 echo "configure:15705: checking for _fabsl declaration" >&5
15705   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
15706     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
15707   echo $ac_n "(cached) $ac_c" 1>&6
15708 else
15709   
15710       
15711       ac_ext=C
15712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15713 ac_cpp='$CXXCPP $CPPFLAGS'
15714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15716 cross_compiling=$ac_cv_prog_cxx_cross
15717
15718       cat > conftest.$ac_ext <<EOF
15719 #line 15720 "configure"
15720 #include "confdefs.h"
15721 #include <math.h>
15722                       #ifdef HAVE_IEEEFP_H
15723                       #include <ieeefp.h>
15724                       #endif
15725                      
15726 int main() {
15727  _fabsl(0);
15728 ; return 0; }
15729 EOF
15730 if { (eval echo configure:15731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15731   rm -rf conftest*
15732   glibcpp_cv_func__fabsl_use=yes
15733 else
15734   echo "configure: failed program was:" >&5
15735   cat conftest.$ac_ext >&5
15736   rm -rf conftest*
15737   glibcpp_cv_func__fabsl_use=no
15738 fi
15739 rm -f conftest*
15740       ac_ext=c
15741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15742 ac_cpp='$CPP $CPPFLAGS'
15743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15745 cross_compiling=$ac_cv_prog_cc_cross
15746
15747     
15748 fi
15749
15750   fi
15751   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
15752
15753     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
15754       for ac_func in _fabsl
15755 do
15756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15757 echo "configure:15758: checking for $ac_func" >&5
15758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15759   echo $ac_n "(cached) $ac_c" 1>&6
15760 else
15761   cat > conftest.$ac_ext <<EOF
15762 #line 15763 "configure"
15763 #include "confdefs.h"
15764 /* System header to define __stub macros and hopefully few prototypes,
15765     which can conflict with char $ac_func(); below.  */
15766 #include <assert.h>
15767 /* Override any gcc2 internal prototype to avoid an error.  */
15768 /* We use char because int might match the return type of a gcc2
15769     builtin and then its argument prototype would still apply.  */
15770 char $ac_func();
15771
15772 int main() {
15773
15774 /* The GNU C library defines this for functions which it implements
15775     to always fail with ENOSYS.  Some functions are actually named
15776     something starting with __ and the normal name is an alias.  */
15777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15778 choke me
15779 #else
15780 $ac_func();
15781 #endif
15782
15783 ; return 0; }
15784 EOF
15785 if { (eval echo configure:15786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15786   rm -rf conftest*
15787   eval "ac_cv_func_$ac_func=yes"
15788 else
15789   echo "configure: failed program was:" >&5
15790   cat conftest.$ac_ext >&5
15791   rm -rf conftest*
15792   eval "ac_cv_func_$ac_func=no"
15793 fi
15794 rm -f conftest*
15795 fi
15796
15797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15798   echo "$ac_t""yes" 1>&6
15799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15800   cat >> confdefs.h <<EOF
15801 #define $ac_tr_func 1
15802 EOF
15803  
15804 else
15805   echo "$ac_t""no" 1>&6
15806 fi
15807 done
15808     
15809     fi
15810   fi
15811
15812   
15813   
15814   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
15815 echo "configure:15816: checking for fmodl declaration" >&5
15816   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
15817     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
15818   echo $ac_n "(cached) $ac_c" 1>&6
15819 else
15820   
15821       
15822       ac_ext=C
15823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15824 ac_cpp='$CXXCPP $CPPFLAGS'
15825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15827 cross_compiling=$ac_cv_prog_cxx_cross
15828
15829       cat > conftest.$ac_ext <<EOF
15830 #line 15831 "configure"
15831 #include "confdefs.h"
15832 #include <math.h>
15833 int main() {
15834  fmodl(0, 0);
15835 ; return 0; }
15836 EOF
15837 if { (eval echo configure:15838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15838   rm -rf conftest*
15839   glibcpp_cv_func_fmodl_use=yes
15840 else
15841   echo "configure: failed program was:" >&5
15842   cat conftest.$ac_ext >&5
15843   rm -rf conftest*
15844   glibcpp_cv_func_fmodl_use=no
15845 fi
15846 rm -f conftest*
15847       ac_ext=c
15848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15849 ac_cpp='$CPP $CPPFLAGS'
15850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15852 cross_compiling=$ac_cv_prog_cc_cross
15853
15854     
15855 fi
15856
15857   fi
15858   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
15859
15860   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
15861     for ac_func in fmodl
15862 do
15863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15864 echo "configure:15865: checking for $ac_func" >&5
15865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15866   echo $ac_n "(cached) $ac_c" 1>&6
15867 else
15868   cat > conftest.$ac_ext <<EOF
15869 #line 15870 "configure"
15870 #include "confdefs.h"
15871 /* System header to define __stub macros and hopefully few prototypes,
15872     which can conflict with char $ac_func(); below.  */
15873 #include <assert.h>
15874 /* Override any gcc2 internal prototype to avoid an error.  */
15875 /* We use char because int might match the return type of a gcc2
15876     builtin and then its argument prototype would still apply.  */
15877 char $ac_func();
15878
15879 int main() {
15880
15881 /* The GNU C library defines this for functions which it implements
15882     to always fail with ENOSYS.  Some functions are actually named
15883     something starting with __ and the normal name is an alias.  */
15884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15885 choke me
15886 #else
15887 $ac_func();
15888 #endif
15889
15890 ; return 0; }
15891 EOF
15892 if { (eval echo configure:15893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15893   rm -rf conftest*
15894   eval "ac_cv_func_$ac_func=yes"
15895 else
15896   echo "configure: failed program was:" >&5
15897   cat conftest.$ac_ext >&5
15898   rm -rf conftest*
15899   eval "ac_cv_func_$ac_func=no"
15900 fi
15901 rm -f conftest*
15902 fi
15903
15904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15905   echo "$ac_t""yes" 1>&6
15906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15907   cat >> confdefs.h <<EOF
15908 #define $ac_tr_func 1
15909 EOF
15910  
15911 else
15912   echo "$ac_t""no" 1>&6
15913 fi
15914 done
15915     
15916   else
15917     
15918   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
15919 echo "configure:15920: checking for _fmodl declaration" >&5
15920   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
15921     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
15922   echo $ac_n "(cached) $ac_c" 1>&6
15923 else
15924   
15925       
15926       ac_ext=C
15927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15928 ac_cpp='$CXXCPP $CPPFLAGS'
15929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15931 cross_compiling=$ac_cv_prog_cxx_cross
15932
15933       cat > conftest.$ac_ext <<EOF
15934 #line 15935 "configure"
15935 #include "confdefs.h"
15936 #include <math.h>
15937 int main() {
15938  _fmodl(0, 0);
15939 ; return 0; }
15940 EOF
15941 if { (eval echo configure:15942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15942   rm -rf conftest*
15943   glibcpp_cv_func__fmodl_use=yes
15944 else
15945   echo "configure: failed program was:" >&5
15946   cat conftest.$ac_ext >&5
15947   rm -rf conftest*
15948   glibcpp_cv_func__fmodl_use=no
15949 fi
15950 rm -f conftest*
15951       ac_ext=c
15952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15953 ac_cpp='$CPP $CPPFLAGS'
15954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15956 cross_compiling=$ac_cv_prog_cc_cross
15957
15958     
15959 fi
15960
15961   fi
15962   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
15963
15964     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
15965       for ac_func in _fmodl
15966 do
15967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15968 echo "configure:15969: checking for $ac_func" >&5
15969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15970   echo $ac_n "(cached) $ac_c" 1>&6
15971 else
15972   cat > conftest.$ac_ext <<EOF
15973 #line 15974 "configure"
15974 #include "confdefs.h"
15975 /* System header to define __stub macros and hopefully few prototypes,
15976     which can conflict with char $ac_func(); below.  */
15977 #include <assert.h>
15978 /* Override any gcc2 internal prototype to avoid an error.  */
15979 /* We use char because int might match the return type of a gcc2
15980     builtin and then its argument prototype would still apply.  */
15981 char $ac_func();
15982
15983 int main() {
15984
15985 /* The GNU C library defines this for functions which it implements
15986     to always fail with ENOSYS.  Some functions are actually named
15987     something starting with __ and the normal name is an alias.  */
15988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15989 choke me
15990 #else
15991 $ac_func();
15992 #endif
15993
15994 ; return 0; }
15995 EOF
15996 if { (eval echo configure:15997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15997   rm -rf conftest*
15998   eval "ac_cv_func_$ac_func=yes"
15999 else
16000   echo "configure: failed program was:" >&5
16001   cat conftest.$ac_ext >&5
16002   rm -rf conftest*
16003   eval "ac_cv_func_$ac_func=no"
16004 fi
16005 rm -f conftest*
16006 fi
16007
16008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16009   echo "$ac_t""yes" 1>&6
16010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16011   cat >> confdefs.h <<EOF
16012 #define $ac_tr_func 1
16013 EOF
16014  
16015 else
16016   echo "$ac_t""no" 1>&6
16017 fi
16018 done
16019     
16020     fi
16021   fi
16022
16023   
16024   
16025   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
16026 echo "configure:16027: checking for frexpl declaration" >&5
16027   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
16028     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
16029   echo $ac_n "(cached) $ac_c" 1>&6
16030 else
16031   
16032       
16033       ac_ext=C
16034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16035 ac_cpp='$CXXCPP $CPPFLAGS'
16036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16038 cross_compiling=$ac_cv_prog_cxx_cross
16039
16040       cat > conftest.$ac_ext <<EOF
16041 #line 16042 "configure"
16042 #include "confdefs.h"
16043 #include <math.h>
16044 int main() {
16045  frexpl(0, 0);
16046 ; return 0; }
16047 EOF
16048 if { (eval echo configure:16049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16049   rm -rf conftest*
16050   glibcpp_cv_func_frexpl_use=yes
16051 else
16052   echo "configure: failed program was:" >&5
16053   cat conftest.$ac_ext >&5
16054   rm -rf conftest*
16055   glibcpp_cv_func_frexpl_use=no
16056 fi
16057 rm -f conftest*
16058       ac_ext=c
16059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16060 ac_cpp='$CPP $CPPFLAGS'
16061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16063 cross_compiling=$ac_cv_prog_cc_cross
16064
16065     
16066 fi
16067
16068   fi
16069   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16070
16071   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16072     for ac_func in frexpl
16073 do
16074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16075 echo "configure:16076: checking for $ac_func" >&5
16076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16077   echo $ac_n "(cached) $ac_c" 1>&6
16078 else
16079   cat > conftest.$ac_ext <<EOF
16080 #line 16081 "configure"
16081 #include "confdefs.h"
16082 /* System header to define __stub macros and hopefully few prototypes,
16083     which can conflict with char $ac_func(); below.  */
16084 #include <assert.h>
16085 /* Override any gcc2 internal prototype to avoid an error.  */
16086 /* We use char because int might match the return type of a gcc2
16087     builtin and then its argument prototype would still apply.  */
16088 char $ac_func();
16089
16090 int main() {
16091
16092 /* The GNU C library defines this for functions which it implements
16093     to always fail with ENOSYS.  Some functions are actually named
16094     something starting with __ and the normal name is an alias.  */
16095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16096 choke me
16097 #else
16098 $ac_func();
16099 #endif
16100
16101 ; return 0; }
16102 EOF
16103 if { (eval echo configure:16104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16104   rm -rf conftest*
16105   eval "ac_cv_func_$ac_func=yes"
16106 else
16107   echo "configure: failed program was:" >&5
16108   cat conftest.$ac_ext >&5
16109   rm -rf conftest*
16110   eval "ac_cv_func_$ac_func=no"
16111 fi
16112 rm -f conftest*
16113 fi
16114
16115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16116   echo "$ac_t""yes" 1>&6
16117     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16118   cat >> confdefs.h <<EOF
16119 #define $ac_tr_func 1
16120 EOF
16121  
16122 else
16123   echo "$ac_t""no" 1>&6
16124 fi
16125 done
16126     
16127   else
16128     
16129   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16130 echo "configure:16131: checking for _frexpl declaration" >&5
16131   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16132     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16133   echo $ac_n "(cached) $ac_c" 1>&6
16134 else
16135   
16136       
16137       ac_ext=C
16138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16139 ac_cpp='$CXXCPP $CPPFLAGS'
16140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16142 cross_compiling=$ac_cv_prog_cxx_cross
16143
16144       cat > conftest.$ac_ext <<EOF
16145 #line 16146 "configure"
16146 #include "confdefs.h"
16147 #include <math.h>
16148 int main() {
16149  _frexpl(0, 0);
16150 ; return 0; }
16151 EOF
16152 if { (eval echo configure:16153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16153   rm -rf conftest*
16154   glibcpp_cv_func__frexpl_use=yes
16155 else
16156   echo "configure: failed program was:" >&5
16157   cat conftest.$ac_ext >&5
16158   rm -rf conftest*
16159   glibcpp_cv_func__frexpl_use=no
16160 fi
16161 rm -f conftest*
16162       ac_ext=c
16163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16164 ac_cpp='$CPP $CPPFLAGS'
16165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16167 cross_compiling=$ac_cv_prog_cc_cross
16168
16169     
16170 fi
16171
16172   fi
16173   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
16174
16175     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
16176       for ac_func in _frexpl
16177 do
16178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16179 echo "configure:16180: checking for $ac_func" >&5
16180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16181   echo $ac_n "(cached) $ac_c" 1>&6
16182 else
16183   cat > conftest.$ac_ext <<EOF
16184 #line 16185 "configure"
16185 #include "confdefs.h"
16186 /* System header to define __stub macros and hopefully few prototypes,
16187     which can conflict with char $ac_func(); below.  */
16188 #include <assert.h>
16189 /* Override any gcc2 internal prototype to avoid an error.  */
16190 /* We use char because int might match the return type of a gcc2
16191     builtin and then its argument prototype would still apply.  */
16192 char $ac_func();
16193
16194 int main() {
16195
16196 /* The GNU C library defines this for functions which it implements
16197     to always fail with ENOSYS.  Some functions are actually named
16198     something starting with __ and the normal name is an alias.  */
16199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16200 choke me
16201 #else
16202 $ac_func();
16203 #endif
16204
16205 ; return 0; }
16206 EOF
16207 if { (eval echo configure:16208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16208   rm -rf conftest*
16209   eval "ac_cv_func_$ac_func=yes"
16210 else
16211   echo "configure: failed program was:" >&5
16212   cat conftest.$ac_ext >&5
16213   rm -rf conftest*
16214   eval "ac_cv_func_$ac_func=no"
16215 fi
16216 rm -f conftest*
16217 fi
16218
16219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16220   echo "$ac_t""yes" 1>&6
16221     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16222   cat >> confdefs.h <<EOF
16223 #define $ac_tr_func 1
16224 EOF
16225  
16226 else
16227   echo "$ac_t""no" 1>&6
16228 fi
16229 done
16230     
16231     fi
16232   fi
16233
16234   
16235   
16236   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
16237 echo "configure:16238: checking for hypotl declaration" >&5
16238   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
16239     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
16240   echo $ac_n "(cached) $ac_c" 1>&6
16241 else
16242   
16243       
16244       ac_ext=C
16245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16246 ac_cpp='$CXXCPP $CPPFLAGS'
16247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16249 cross_compiling=$ac_cv_prog_cxx_cross
16250
16251       cat > conftest.$ac_ext <<EOF
16252 #line 16253 "configure"
16253 #include "confdefs.h"
16254 #include <math.h>
16255 int main() {
16256  hypotl(0, 0);
16257 ; return 0; }
16258 EOF
16259 if { (eval echo configure:16260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16260   rm -rf conftest*
16261   glibcpp_cv_func_hypotl_use=yes
16262 else
16263   echo "configure: failed program was:" >&5
16264   cat conftest.$ac_ext >&5
16265   rm -rf conftest*
16266   glibcpp_cv_func_hypotl_use=no
16267 fi
16268 rm -f conftest*
16269       ac_ext=c
16270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16271 ac_cpp='$CPP $CPPFLAGS'
16272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16274 cross_compiling=$ac_cv_prog_cc_cross
16275
16276     
16277 fi
16278
16279   fi
16280   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
16281
16282   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
16283     for ac_func in hypotl
16284 do
16285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16286 echo "configure:16287: checking for $ac_func" >&5
16287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16288   echo $ac_n "(cached) $ac_c" 1>&6
16289 else
16290   cat > conftest.$ac_ext <<EOF
16291 #line 16292 "configure"
16292 #include "confdefs.h"
16293 /* System header to define __stub macros and hopefully few prototypes,
16294     which can conflict with char $ac_func(); below.  */
16295 #include <assert.h>
16296 /* Override any gcc2 internal prototype to avoid an error.  */
16297 /* We use char because int might match the return type of a gcc2
16298     builtin and then its argument prototype would still apply.  */
16299 char $ac_func();
16300
16301 int main() {
16302
16303 /* The GNU C library defines this for functions which it implements
16304     to always fail with ENOSYS.  Some functions are actually named
16305     something starting with __ and the normal name is an alias.  */
16306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16307 choke me
16308 #else
16309 $ac_func();
16310 #endif
16311
16312 ; return 0; }
16313 EOF
16314 if { (eval echo configure:16315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16315   rm -rf conftest*
16316   eval "ac_cv_func_$ac_func=yes"
16317 else
16318   echo "configure: failed program was:" >&5
16319   cat conftest.$ac_ext >&5
16320   rm -rf conftest*
16321   eval "ac_cv_func_$ac_func=no"
16322 fi
16323 rm -f conftest*
16324 fi
16325
16326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16327   echo "$ac_t""yes" 1>&6
16328     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16329   cat >> confdefs.h <<EOF
16330 #define $ac_tr_func 1
16331 EOF
16332  
16333 else
16334   echo "$ac_t""no" 1>&6
16335 fi
16336 done
16337     
16338   else
16339     
16340   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
16341 echo "configure:16342: checking for _hypotl declaration" >&5
16342   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
16343     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
16344   echo $ac_n "(cached) $ac_c" 1>&6
16345 else
16346   
16347       
16348       ac_ext=C
16349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16350 ac_cpp='$CXXCPP $CPPFLAGS'
16351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16353 cross_compiling=$ac_cv_prog_cxx_cross
16354
16355       cat > conftest.$ac_ext <<EOF
16356 #line 16357 "configure"
16357 #include "confdefs.h"
16358 #include <math.h>
16359 int main() {
16360  _hypotl(0, 0);
16361 ; return 0; }
16362 EOF
16363 if { (eval echo configure:16364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16364   rm -rf conftest*
16365   glibcpp_cv_func__hypotl_use=yes
16366 else
16367   echo "configure: failed program was:" >&5
16368   cat conftest.$ac_ext >&5
16369   rm -rf conftest*
16370   glibcpp_cv_func__hypotl_use=no
16371 fi
16372 rm -f conftest*
16373       ac_ext=c
16374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16375 ac_cpp='$CPP $CPPFLAGS'
16376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16378 cross_compiling=$ac_cv_prog_cc_cross
16379
16380     
16381 fi
16382
16383   fi
16384   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
16385
16386     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
16387       for ac_func in _hypotl
16388 do
16389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16390 echo "configure:16391: checking for $ac_func" >&5
16391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16392   echo $ac_n "(cached) $ac_c" 1>&6
16393 else
16394   cat > conftest.$ac_ext <<EOF
16395 #line 16396 "configure"
16396 #include "confdefs.h"
16397 /* System header to define __stub macros and hopefully few prototypes,
16398     which can conflict with char $ac_func(); below.  */
16399 #include <assert.h>
16400 /* Override any gcc2 internal prototype to avoid an error.  */
16401 /* We use char because int might match the return type of a gcc2
16402     builtin and then its argument prototype would still apply.  */
16403 char $ac_func();
16404
16405 int main() {
16406
16407 /* The GNU C library defines this for functions which it implements
16408     to always fail with ENOSYS.  Some functions are actually named
16409     something starting with __ and the normal name is an alias.  */
16410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16411 choke me
16412 #else
16413 $ac_func();
16414 #endif
16415
16416 ; return 0; }
16417 EOF
16418 if { (eval echo configure:16419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16419   rm -rf conftest*
16420   eval "ac_cv_func_$ac_func=yes"
16421 else
16422   echo "configure: failed program was:" >&5
16423   cat conftest.$ac_ext >&5
16424   rm -rf conftest*
16425   eval "ac_cv_func_$ac_func=no"
16426 fi
16427 rm -f conftest*
16428 fi
16429
16430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16431   echo "$ac_t""yes" 1>&6
16432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16433   cat >> confdefs.h <<EOF
16434 #define $ac_tr_func 1
16435 EOF
16436  
16437 else
16438   echo "$ac_t""no" 1>&6
16439 fi
16440 done
16441     
16442     fi
16443   fi
16444
16445   
16446   
16447   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
16448 echo "configure:16449: checking for ldexpl declaration" >&5
16449   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
16450     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
16451   echo $ac_n "(cached) $ac_c" 1>&6
16452 else
16453   
16454       
16455       ac_ext=C
16456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16457 ac_cpp='$CXXCPP $CPPFLAGS'
16458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16460 cross_compiling=$ac_cv_prog_cxx_cross
16461
16462       cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 #include <math.h>
16466 int main() {
16467  ldexpl(0, 0);
16468 ; return 0; }
16469 EOF
16470 if { (eval echo configure:16471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16471   rm -rf conftest*
16472   glibcpp_cv_func_ldexpl_use=yes
16473 else
16474   echo "configure: failed program was:" >&5
16475   cat conftest.$ac_ext >&5
16476   rm -rf conftest*
16477   glibcpp_cv_func_ldexpl_use=no
16478 fi
16479 rm -f conftest*
16480       ac_ext=c
16481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16482 ac_cpp='$CPP $CPPFLAGS'
16483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16485 cross_compiling=$ac_cv_prog_cc_cross
16486
16487     
16488 fi
16489
16490   fi
16491   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
16492
16493   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
16494     for ac_func in ldexpl
16495 do
16496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16497 echo "configure:16498: checking for $ac_func" >&5
16498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16499   echo $ac_n "(cached) $ac_c" 1>&6
16500 else
16501   cat > conftest.$ac_ext <<EOF
16502 #line 16503 "configure"
16503 #include "confdefs.h"
16504 /* System header to define __stub macros and hopefully few prototypes,
16505     which can conflict with char $ac_func(); below.  */
16506 #include <assert.h>
16507 /* Override any gcc2 internal prototype to avoid an error.  */
16508 /* We use char because int might match the return type of a gcc2
16509     builtin and then its argument prototype would still apply.  */
16510 char $ac_func();
16511
16512 int main() {
16513
16514 /* The GNU C library defines this for functions which it implements
16515     to always fail with ENOSYS.  Some functions are actually named
16516     something starting with __ and the normal name is an alias.  */
16517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16518 choke me
16519 #else
16520 $ac_func();
16521 #endif
16522
16523 ; return 0; }
16524 EOF
16525 if { (eval echo configure:16526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16526   rm -rf conftest*
16527   eval "ac_cv_func_$ac_func=yes"
16528 else
16529   echo "configure: failed program was:" >&5
16530   cat conftest.$ac_ext >&5
16531   rm -rf conftest*
16532   eval "ac_cv_func_$ac_func=no"
16533 fi
16534 rm -f conftest*
16535 fi
16536
16537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16538   echo "$ac_t""yes" 1>&6
16539     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16540   cat >> confdefs.h <<EOF
16541 #define $ac_tr_func 1
16542 EOF
16543  
16544 else
16545   echo "$ac_t""no" 1>&6
16546 fi
16547 done
16548     
16549   else
16550     
16551   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
16552 echo "configure:16553: checking for _ldexpl declaration" >&5
16553   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
16554     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
16555   echo $ac_n "(cached) $ac_c" 1>&6
16556 else
16557   
16558       
16559       ac_ext=C
16560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16561 ac_cpp='$CXXCPP $CPPFLAGS'
16562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16564 cross_compiling=$ac_cv_prog_cxx_cross
16565
16566       cat > conftest.$ac_ext <<EOF
16567 #line 16568 "configure"
16568 #include "confdefs.h"
16569 #include <math.h>
16570 int main() {
16571  _ldexpl(0, 0);
16572 ; return 0; }
16573 EOF
16574 if { (eval echo configure:16575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16575   rm -rf conftest*
16576   glibcpp_cv_func__ldexpl_use=yes
16577 else
16578   echo "configure: failed program was:" >&5
16579   cat conftest.$ac_ext >&5
16580   rm -rf conftest*
16581   glibcpp_cv_func__ldexpl_use=no
16582 fi
16583 rm -f conftest*
16584       ac_ext=c
16585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16586 ac_cpp='$CPP $CPPFLAGS'
16587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16589 cross_compiling=$ac_cv_prog_cc_cross
16590
16591     
16592 fi
16593
16594   fi
16595   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
16596
16597     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
16598       for ac_func in _ldexpl
16599 do
16600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16601 echo "configure:16602: checking for $ac_func" >&5
16602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16603   echo $ac_n "(cached) $ac_c" 1>&6
16604 else
16605   cat > conftest.$ac_ext <<EOF
16606 #line 16607 "configure"
16607 #include "confdefs.h"
16608 /* System header to define __stub macros and hopefully few prototypes,
16609     which can conflict with char $ac_func(); below.  */
16610 #include <assert.h>
16611 /* Override any gcc2 internal prototype to avoid an error.  */
16612 /* We use char because int might match the return type of a gcc2
16613     builtin and then its argument prototype would still apply.  */
16614 char $ac_func();
16615
16616 int main() {
16617
16618 /* The GNU C library defines this for functions which it implements
16619     to always fail with ENOSYS.  Some functions are actually named
16620     something starting with __ and the normal name is an alias.  */
16621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16622 choke me
16623 #else
16624 $ac_func();
16625 #endif
16626
16627 ; return 0; }
16628 EOF
16629 if { (eval echo configure:16630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16630   rm -rf conftest*
16631   eval "ac_cv_func_$ac_func=yes"
16632 else
16633   echo "configure: failed program was:" >&5
16634   cat conftest.$ac_ext >&5
16635   rm -rf conftest*
16636   eval "ac_cv_func_$ac_func=no"
16637 fi
16638 rm -f conftest*
16639 fi
16640
16641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16642   echo "$ac_t""yes" 1>&6
16643     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16644   cat >> confdefs.h <<EOF
16645 #define $ac_tr_func 1
16646 EOF
16647  
16648 else
16649   echo "$ac_t""no" 1>&6
16650 fi
16651 done
16652     
16653     fi
16654   fi
16655
16656   
16657   
16658   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
16659 echo "configure:16660: checking for logl declaration" >&5
16660   if test x${glibcpp_cv_func_logl_use+set} != xset; then
16661     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
16662   echo $ac_n "(cached) $ac_c" 1>&6
16663 else
16664   
16665       
16666       ac_ext=C
16667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16668 ac_cpp='$CXXCPP $CPPFLAGS'
16669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16671 cross_compiling=$ac_cv_prog_cxx_cross
16672
16673       cat > conftest.$ac_ext <<EOF
16674 #line 16675 "configure"
16675 #include "confdefs.h"
16676 #include <math.h>
16677                       #ifdef HAVE_IEEEFP_H
16678                       #include <ieeefp.h>
16679                       #endif
16680                      
16681 int main() {
16682  logl(0);
16683 ; return 0; }
16684 EOF
16685 if { (eval echo configure:16686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16686   rm -rf conftest*
16687   glibcpp_cv_func_logl_use=yes
16688 else
16689   echo "configure: failed program was:" >&5
16690   cat conftest.$ac_ext >&5
16691   rm -rf conftest*
16692   glibcpp_cv_func_logl_use=no
16693 fi
16694 rm -f conftest*
16695       ac_ext=c
16696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16700 cross_compiling=$ac_cv_prog_cc_cross
16701
16702     
16703 fi
16704
16705   fi
16706   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
16707
16708   if test x$glibcpp_cv_func_logl_use = x"yes"; then
16709     for ac_func in logl
16710 do
16711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16712 echo "configure:16713: checking for $ac_func" >&5
16713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16714   echo $ac_n "(cached) $ac_c" 1>&6
16715 else
16716   cat > conftest.$ac_ext <<EOF
16717 #line 16718 "configure"
16718 #include "confdefs.h"
16719 /* System header to define __stub macros and hopefully few prototypes,
16720     which can conflict with char $ac_func(); below.  */
16721 #include <assert.h>
16722 /* Override any gcc2 internal prototype to avoid an error.  */
16723 /* We use char because int might match the return type of a gcc2
16724     builtin and then its argument prototype would still apply.  */
16725 char $ac_func();
16726
16727 int main() {
16728
16729 /* The GNU C library defines this for functions which it implements
16730     to always fail with ENOSYS.  Some functions are actually named
16731     something starting with __ and the normal name is an alias.  */
16732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16733 choke me
16734 #else
16735 $ac_func();
16736 #endif
16737
16738 ; return 0; }
16739 EOF
16740 if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16741   rm -rf conftest*
16742   eval "ac_cv_func_$ac_func=yes"
16743 else
16744   echo "configure: failed program was:" >&5
16745   cat conftest.$ac_ext >&5
16746   rm -rf conftest*
16747   eval "ac_cv_func_$ac_func=no"
16748 fi
16749 rm -f conftest*
16750 fi
16751
16752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16753   echo "$ac_t""yes" 1>&6
16754     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16755   cat >> confdefs.h <<EOF
16756 #define $ac_tr_func 1
16757 EOF
16758  
16759 else
16760   echo "$ac_t""no" 1>&6
16761 fi
16762 done
16763     
16764   else
16765     
16766   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
16767 echo "configure:16768: checking for _logl declaration" >&5
16768   if test x${glibcpp_cv_func__logl_use+set} != xset; then
16769     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
16770   echo $ac_n "(cached) $ac_c" 1>&6
16771 else
16772   
16773       
16774       ac_ext=C
16775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16776 ac_cpp='$CXXCPP $CPPFLAGS'
16777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16779 cross_compiling=$ac_cv_prog_cxx_cross
16780
16781       cat > conftest.$ac_ext <<EOF
16782 #line 16783 "configure"
16783 #include "confdefs.h"
16784 #include <math.h>
16785                       #ifdef HAVE_IEEEFP_H
16786                       #include <ieeefp.h>
16787                       #endif
16788                      
16789 int main() {
16790  _logl(0);
16791 ; return 0; }
16792 EOF
16793 if { (eval echo configure:16794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16794   rm -rf conftest*
16795   glibcpp_cv_func__logl_use=yes
16796 else
16797   echo "configure: failed program was:" >&5
16798   cat conftest.$ac_ext >&5
16799   rm -rf conftest*
16800   glibcpp_cv_func__logl_use=no
16801 fi
16802 rm -f conftest*
16803       ac_ext=c
16804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16805 ac_cpp='$CPP $CPPFLAGS'
16806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16808 cross_compiling=$ac_cv_prog_cc_cross
16809
16810     
16811 fi
16812
16813   fi
16814   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
16815
16816     if test x$glibcpp_cv_func__logl_use = x"yes"; then
16817       for ac_func in _logl
16818 do
16819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16820 echo "configure:16821: checking for $ac_func" >&5
16821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16822   echo $ac_n "(cached) $ac_c" 1>&6
16823 else
16824   cat > conftest.$ac_ext <<EOF
16825 #line 16826 "configure"
16826 #include "confdefs.h"
16827 /* System header to define __stub macros and hopefully few prototypes,
16828     which can conflict with char $ac_func(); below.  */
16829 #include <assert.h>
16830 /* Override any gcc2 internal prototype to avoid an error.  */
16831 /* We use char because int might match the return type of a gcc2
16832     builtin and then its argument prototype would still apply.  */
16833 char $ac_func();
16834
16835 int main() {
16836
16837 /* The GNU C library defines this for functions which it implements
16838     to always fail with ENOSYS.  Some functions are actually named
16839     something starting with __ and the normal name is an alias.  */
16840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16841 choke me
16842 #else
16843 $ac_func();
16844 #endif
16845
16846 ; return 0; }
16847 EOF
16848 if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16849   rm -rf conftest*
16850   eval "ac_cv_func_$ac_func=yes"
16851 else
16852   echo "configure: failed program was:" >&5
16853   cat conftest.$ac_ext >&5
16854   rm -rf conftest*
16855   eval "ac_cv_func_$ac_func=no"
16856 fi
16857 rm -f conftest*
16858 fi
16859
16860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16861   echo "$ac_t""yes" 1>&6
16862     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16863   cat >> confdefs.h <<EOF
16864 #define $ac_tr_func 1
16865 EOF
16866  
16867 else
16868   echo "$ac_t""no" 1>&6
16869 fi
16870 done
16871     
16872     fi
16873   fi
16874
16875   
16876   
16877   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
16878 echo "configure:16879: checking for log10l declaration" >&5
16879   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
16880     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
16881   echo $ac_n "(cached) $ac_c" 1>&6
16882 else
16883   
16884       
16885       ac_ext=C
16886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16887 ac_cpp='$CXXCPP $CPPFLAGS'
16888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16890 cross_compiling=$ac_cv_prog_cxx_cross
16891
16892       cat > conftest.$ac_ext <<EOF
16893 #line 16894 "configure"
16894 #include "confdefs.h"
16895 #include <math.h>
16896                       #ifdef HAVE_IEEEFP_H
16897                       #include <ieeefp.h>
16898                       #endif
16899                      
16900 int main() {
16901  log10l(0);
16902 ; return 0; }
16903 EOF
16904 if { (eval echo configure:16905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16905   rm -rf conftest*
16906   glibcpp_cv_func_log10l_use=yes
16907 else
16908   echo "configure: failed program was:" >&5
16909   cat conftest.$ac_ext >&5
16910   rm -rf conftest*
16911   glibcpp_cv_func_log10l_use=no
16912 fi
16913 rm -f conftest*
16914       ac_ext=c
16915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16916 ac_cpp='$CPP $CPPFLAGS'
16917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16919 cross_compiling=$ac_cv_prog_cc_cross
16920
16921     
16922 fi
16923
16924   fi
16925   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
16926
16927   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
16928     for ac_func in log10l
16929 do
16930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16931 echo "configure:16932: checking for $ac_func" >&5
16932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16933   echo $ac_n "(cached) $ac_c" 1>&6
16934 else
16935   cat > conftest.$ac_ext <<EOF
16936 #line 16937 "configure"
16937 #include "confdefs.h"
16938 /* System header to define __stub macros and hopefully few prototypes,
16939     which can conflict with char $ac_func(); below.  */
16940 #include <assert.h>
16941 /* Override any gcc2 internal prototype to avoid an error.  */
16942 /* We use char because int might match the return type of a gcc2
16943     builtin and then its argument prototype would still apply.  */
16944 char $ac_func();
16945
16946 int main() {
16947
16948 /* The GNU C library defines this for functions which it implements
16949     to always fail with ENOSYS.  Some functions are actually named
16950     something starting with __ and the normal name is an alias.  */
16951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16952 choke me
16953 #else
16954 $ac_func();
16955 #endif
16956
16957 ; return 0; }
16958 EOF
16959 if { (eval echo configure:16960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16960   rm -rf conftest*
16961   eval "ac_cv_func_$ac_func=yes"
16962 else
16963   echo "configure: failed program was:" >&5
16964   cat conftest.$ac_ext >&5
16965   rm -rf conftest*
16966   eval "ac_cv_func_$ac_func=no"
16967 fi
16968 rm -f conftest*
16969 fi
16970
16971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16972   echo "$ac_t""yes" 1>&6
16973     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16974   cat >> confdefs.h <<EOF
16975 #define $ac_tr_func 1
16976 EOF
16977  
16978 else
16979   echo "$ac_t""no" 1>&6
16980 fi
16981 done
16982     
16983   else
16984     
16985   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16986 echo "configure:16987: checking for _log10l declaration" >&5
16987   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16988     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16989   echo $ac_n "(cached) $ac_c" 1>&6
16990 else
16991   
16992       
16993       ac_ext=C
16994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16995 ac_cpp='$CXXCPP $CPPFLAGS'
16996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16998 cross_compiling=$ac_cv_prog_cxx_cross
16999
17000       cat > conftest.$ac_ext <<EOF
17001 #line 17002 "configure"
17002 #include "confdefs.h"
17003 #include <math.h>
17004                       #ifdef HAVE_IEEEFP_H
17005                       #include <ieeefp.h>
17006                       #endif
17007                      
17008 int main() {
17009  _log10l(0);
17010 ; return 0; }
17011 EOF
17012 if { (eval echo configure:17013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17013   rm -rf conftest*
17014   glibcpp_cv_func__log10l_use=yes
17015 else
17016   echo "configure: failed program was:" >&5
17017   cat conftest.$ac_ext >&5
17018   rm -rf conftest*
17019   glibcpp_cv_func__log10l_use=no
17020 fi
17021 rm -f conftest*
17022       ac_ext=c
17023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17024 ac_cpp='$CPP $CPPFLAGS'
17025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17027 cross_compiling=$ac_cv_prog_cc_cross
17028
17029     
17030 fi
17031
17032   fi
17033   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
17034
17035     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
17036       for ac_func in _log10l
17037 do
17038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17039 echo "configure:17040: checking for $ac_func" >&5
17040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17041   echo $ac_n "(cached) $ac_c" 1>&6
17042 else
17043   cat > conftest.$ac_ext <<EOF
17044 #line 17045 "configure"
17045 #include "confdefs.h"
17046 /* System header to define __stub macros and hopefully few prototypes,
17047     which can conflict with char $ac_func(); below.  */
17048 #include <assert.h>
17049 /* Override any gcc2 internal prototype to avoid an error.  */
17050 /* We use char because int might match the return type of a gcc2
17051     builtin and then its argument prototype would still apply.  */
17052 char $ac_func();
17053
17054 int main() {
17055
17056 /* The GNU C library defines this for functions which it implements
17057     to always fail with ENOSYS.  Some functions are actually named
17058     something starting with __ and the normal name is an alias.  */
17059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17060 choke me
17061 #else
17062 $ac_func();
17063 #endif
17064
17065 ; return 0; }
17066 EOF
17067 if { (eval echo configure:17068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17068   rm -rf conftest*
17069   eval "ac_cv_func_$ac_func=yes"
17070 else
17071   echo "configure: failed program was:" >&5
17072   cat conftest.$ac_ext >&5
17073   rm -rf conftest*
17074   eval "ac_cv_func_$ac_func=no"
17075 fi
17076 rm -f conftest*
17077 fi
17078
17079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17080   echo "$ac_t""yes" 1>&6
17081     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17082   cat >> confdefs.h <<EOF
17083 #define $ac_tr_func 1
17084 EOF
17085  
17086 else
17087   echo "$ac_t""no" 1>&6
17088 fi
17089 done
17090     
17091     fi
17092   fi
17093
17094   
17095   
17096   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17097 echo "configure:17098: checking for modfl declaration" >&5
17098   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17099     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17100   echo $ac_n "(cached) $ac_c" 1>&6
17101 else
17102   
17103       
17104       ac_ext=C
17105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17106 ac_cpp='$CXXCPP $CPPFLAGS'
17107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17109 cross_compiling=$ac_cv_prog_cxx_cross
17110
17111       cat > conftest.$ac_ext <<EOF
17112 #line 17113 "configure"
17113 #include "confdefs.h"
17114 #include <math.h>
17115 int main() {
17116  modfl(0, 0);
17117 ; return 0; }
17118 EOF
17119 if { (eval echo configure:17120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17120   rm -rf conftest*
17121   glibcpp_cv_func_modfl_use=yes
17122 else
17123   echo "configure: failed program was:" >&5
17124   cat conftest.$ac_ext >&5
17125   rm -rf conftest*
17126   glibcpp_cv_func_modfl_use=no
17127 fi
17128 rm -f conftest*
17129       ac_ext=c
17130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17131 ac_cpp='$CPP $CPPFLAGS'
17132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17134 cross_compiling=$ac_cv_prog_cc_cross
17135
17136     
17137 fi
17138
17139   fi
17140   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17141
17142   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
17143     for ac_func in modfl
17144 do
17145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17146 echo "configure:17147: checking for $ac_func" >&5
17147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17148   echo $ac_n "(cached) $ac_c" 1>&6
17149 else
17150   cat > conftest.$ac_ext <<EOF
17151 #line 17152 "configure"
17152 #include "confdefs.h"
17153 /* System header to define __stub macros and hopefully few prototypes,
17154     which can conflict with char $ac_func(); below.  */
17155 #include <assert.h>
17156 /* Override any gcc2 internal prototype to avoid an error.  */
17157 /* We use char because int might match the return type of a gcc2
17158     builtin and then its argument prototype would still apply.  */
17159 char $ac_func();
17160
17161 int main() {
17162
17163 /* The GNU C library defines this for functions which it implements
17164     to always fail with ENOSYS.  Some functions are actually named
17165     something starting with __ and the normal name is an alias.  */
17166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17167 choke me
17168 #else
17169 $ac_func();
17170 #endif
17171
17172 ; return 0; }
17173 EOF
17174 if { (eval echo configure:17175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17175   rm -rf conftest*
17176   eval "ac_cv_func_$ac_func=yes"
17177 else
17178   echo "configure: failed program was:" >&5
17179   cat conftest.$ac_ext >&5
17180   rm -rf conftest*
17181   eval "ac_cv_func_$ac_func=no"
17182 fi
17183 rm -f conftest*
17184 fi
17185
17186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17187   echo "$ac_t""yes" 1>&6
17188     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17189   cat >> confdefs.h <<EOF
17190 #define $ac_tr_func 1
17191 EOF
17192  
17193 else
17194   echo "$ac_t""no" 1>&6
17195 fi
17196 done
17197     
17198   else
17199     
17200   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
17201 echo "configure:17202: checking for _modfl declaration" >&5
17202   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
17203     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
17204   echo $ac_n "(cached) $ac_c" 1>&6
17205 else
17206   
17207       
17208       ac_ext=C
17209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17210 ac_cpp='$CXXCPP $CPPFLAGS'
17211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17213 cross_compiling=$ac_cv_prog_cxx_cross
17214
17215       cat > conftest.$ac_ext <<EOF
17216 #line 17217 "configure"
17217 #include "confdefs.h"
17218 #include <math.h>
17219 int main() {
17220  _modfl(0, 0);
17221 ; return 0; }
17222 EOF
17223 if { (eval echo configure:17224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17224   rm -rf conftest*
17225   glibcpp_cv_func__modfl_use=yes
17226 else
17227   echo "configure: failed program was:" >&5
17228   cat conftest.$ac_ext >&5
17229   rm -rf conftest*
17230   glibcpp_cv_func__modfl_use=no
17231 fi
17232 rm -f conftest*
17233       ac_ext=c
17234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17235 ac_cpp='$CPP $CPPFLAGS'
17236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17238 cross_compiling=$ac_cv_prog_cc_cross
17239
17240     
17241 fi
17242
17243   fi
17244   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
17245
17246     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
17247       for ac_func in _modfl
17248 do
17249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17250 echo "configure:17251: checking for $ac_func" >&5
17251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17252   echo $ac_n "(cached) $ac_c" 1>&6
17253 else
17254   cat > conftest.$ac_ext <<EOF
17255 #line 17256 "configure"
17256 #include "confdefs.h"
17257 /* System header to define __stub macros and hopefully few prototypes,
17258     which can conflict with char $ac_func(); below.  */
17259 #include <assert.h>
17260 /* Override any gcc2 internal prototype to avoid an error.  */
17261 /* We use char because int might match the return type of a gcc2
17262     builtin and then its argument prototype would still apply.  */
17263 char $ac_func();
17264
17265 int main() {
17266
17267 /* The GNU C library defines this for functions which it implements
17268     to always fail with ENOSYS.  Some functions are actually named
17269     something starting with __ and the normal name is an alias.  */
17270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17271 choke me
17272 #else
17273 $ac_func();
17274 #endif
17275
17276 ; return 0; }
17277 EOF
17278 if { (eval echo configure:17279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17279   rm -rf conftest*
17280   eval "ac_cv_func_$ac_func=yes"
17281 else
17282   echo "configure: failed program was:" >&5
17283   cat conftest.$ac_ext >&5
17284   rm -rf conftest*
17285   eval "ac_cv_func_$ac_func=no"
17286 fi
17287 rm -f conftest*
17288 fi
17289
17290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17291   echo "$ac_t""yes" 1>&6
17292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17293   cat >> confdefs.h <<EOF
17294 #define $ac_tr_func 1
17295 EOF
17296  
17297 else
17298   echo "$ac_t""no" 1>&6
17299 fi
17300 done
17301     
17302     fi
17303   fi
17304
17305   
17306   
17307   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
17308 echo "configure:17309: checking for powl declaration" >&5
17309   if test x${glibcpp_cv_func_powl_use+set} != xset; then
17310     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
17311   echo $ac_n "(cached) $ac_c" 1>&6
17312 else
17313   
17314       
17315       ac_ext=C
17316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17317 ac_cpp='$CXXCPP $CPPFLAGS'
17318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17320 cross_compiling=$ac_cv_prog_cxx_cross
17321
17322       cat > conftest.$ac_ext <<EOF
17323 #line 17324 "configure"
17324 #include "confdefs.h"
17325 #include <math.h>
17326 int main() {
17327  powl(0, 0);
17328 ; return 0; }
17329 EOF
17330 if { (eval echo configure:17331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17331   rm -rf conftest*
17332   glibcpp_cv_func_powl_use=yes
17333 else
17334   echo "configure: failed program was:" >&5
17335   cat conftest.$ac_ext >&5
17336   rm -rf conftest*
17337   glibcpp_cv_func_powl_use=no
17338 fi
17339 rm -f conftest*
17340       ac_ext=c
17341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17342 ac_cpp='$CPP $CPPFLAGS'
17343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17345 cross_compiling=$ac_cv_prog_cc_cross
17346
17347     
17348 fi
17349
17350   fi
17351   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
17352
17353   if test x$glibcpp_cv_func_powl_use = x"yes"; then
17354     for ac_func in powl
17355 do
17356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17357 echo "configure:17358: checking for $ac_func" >&5
17358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17359   echo $ac_n "(cached) $ac_c" 1>&6
17360 else
17361   cat > conftest.$ac_ext <<EOF
17362 #line 17363 "configure"
17363 #include "confdefs.h"
17364 /* System header to define __stub macros and hopefully few prototypes,
17365     which can conflict with char $ac_func(); below.  */
17366 #include <assert.h>
17367 /* Override any gcc2 internal prototype to avoid an error.  */
17368 /* We use char because int might match the return type of a gcc2
17369     builtin and then its argument prototype would still apply.  */
17370 char $ac_func();
17371
17372 int main() {
17373
17374 /* The GNU C library defines this for functions which it implements
17375     to always fail with ENOSYS.  Some functions are actually named
17376     something starting with __ and the normal name is an alias.  */
17377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17378 choke me
17379 #else
17380 $ac_func();
17381 #endif
17382
17383 ; return 0; }
17384 EOF
17385 if { (eval echo configure:17386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17386   rm -rf conftest*
17387   eval "ac_cv_func_$ac_func=yes"
17388 else
17389   echo "configure: failed program was:" >&5
17390   cat conftest.$ac_ext >&5
17391   rm -rf conftest*
17392   eval "ac_cv_func_$ac_func=no"
17393 fi
17394 rm -f conftest*
17395 fi
17396
17397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17398   echo "$ac_t""yes" 1>&6
17399     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17400   cat >> confdefs.h <<EOF
17401 #define $ac_tr_func 1
17402 EOF
17403  
17404 else
17405   echo "$ac_t""no" 1>&6
17406 fi
17407 done
17408     
17409   else
17410     
17411   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
17412 echo "configure:17413: checking for _powl declaration" >&5
17413   if test x${glibcpp_cv_func__powl_use+set} != xset; then
17414     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
17415   echo $ac_n "(cached) $ac_c" 1>&6
17416 else
17417   
17418       
17419       ac_ext=C
17420 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17421 ac_cpp='$CXXCPP $CPPFLAGS'
17422 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17423 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17424 cross_compiling=$ac_cv_prog_cxx_cross
17425
17426       cat > conftest.$ac_ext <<EOF
17427 #line 17428 "configure"
17428 #include "confdefs.h"
17429 #include <math.h>
17430 int main() {
17431  _powl(0, 0);
17432 ; return 0; }
17433 EOF
17434 if { (eval echo configure:17435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17435   rm -rf conftest*
17436   glibcpp_cv_func__powl_use=yes
17437 else
17438   echo "configure: failed program was:" >&5
17439   cat conftest.$ac_ext >&5
17440   rm -rf conftest*
17441   glibcpp_cv_func__powl_use=no
17442 fi
17443 rm -f conftest*
17444       ac_ext=c
17445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17446 ac_cpp='$CPP $CPPFLAGS'
17447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17449 cross_compiling=$ac_cv_prog_cc_cross
17450
17451     
17452 fi
17453
17454   fi
17455   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
17456
17457     if test x$glibcpp_cv_func__powl_use = x"yes"; then
17458       for ac_func in _powl
17459 do
17460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17461 echo "configure:17462: checking for $ac_func" >&5
17462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17463   echo $ac_n "(cached) $ac_c" 1>&6
17464 else
17465   cat > conftest.$ac_ext <<EOF
17466 #line 17467 "configure"
17467 #include "confdefs.h"
17468 /* System header to define __stub macros and hopefully few prototypes,
17469     which can conflict with char $ac_func(); below.  */
17470 #include <assert.h>
17471 /* Override any gcc2 internal prototype to avoid an error.  */
17472 /* We use char because int might match the return type of a gcc2
17473     builtin and then its argument prototype would still apply.  */
17474 char $ac_func();
17475
17476 int main() {
17477
17478 /* The GNU C library defines this for functions which it implements
17479     to always fail with ENOSYS.  Some functions are actually named
17480     something starting with __ and the normal name is an alias.  */
17481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17482 choke me
17483 #else
17484 $ac_func();
17485 #endif
17486
17487 ; return 0; }
17488 EOF
17489 if { (eval echo configure:17490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17490   rm -rf conftest*
17491   eval "ac_cv_func_$ac_func=yes"
17492 else
17493   echo "configure: failed program was:" >&5
17494   cat conftest.$ac_ext >&5
17495   rm -rf conftest*
17496   eval "ac_cv_func_$ac_func=no"
17497 fi
17498 rm -f conftest*
17499 fi
17500
17501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17502   echo "$ac_t""yes" 1>&6
17503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17504   cat >> confdefs.h <<EOF
17505 #define $ac_tr_func 1
17506 EOF
17507  
17508 else
17509   echo "$ac_t""no" 1>&6
17510 fi
17511 done
17512     
17513     fi
17514   fi
17515
17516   
17517   
17518   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
17519 echo "configure:17520: checking for sqrtl declaration" >&5
17520   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
17521     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
17522   echo $ac_n "(cached) $ac_c" 1>&6
17523 else
17524   
17525       
17526       ac_ext=C
17527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17528 ac_cpp='$CXXCPP $CPPFLAGS'
17529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17531 cross_compiling=$ac_cv_prog_cxx_cross
17532
17533       cat > conftest.$ac_ext <<EOF
17534 #line 17535 "configure"
17535 #include "confdefs.h"
17536 #include <math.h>
17537                       #ifdef HAVE_IEEEFP_H
17538                       #include <ieeefp.h>
17539                       #endif
17540                      
17541 int main() {
17542  sqrtl(0);
17543 ; return 0; }
17544 EOF
17545 if { (eval echo configure:17546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17546   rm -rf conftest*
17547   glibcpp_cv_func_sqrtl_use=yes
17548 else
17549   echo "configure: failed program was:" >&5
17550   cat conftest.$ac_ext >&5
17551   rm -rf conftest*
17552   glibcpp_cv_func_sqrtl_use=no
17553 fi
17554 rm -f conftest*
17555       ac_ext=c
17556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17557 ac_cpp='$CPP $CPPFLAGS'
17558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17560 cross_compiling=$ac_cv_prog_cc_cross
17561
17562     
17563 fi
17564
17565   fi
17566   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
17567
17568   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
17569     for ac_func in sqrtl
17570 do
17571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17572 echo "configure:17573: checking for $ac_func" >&5
17573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17574   echo $ac_n "(cached) $ac_c" 1>&6
17575 else
17576   cat > conftest.$ac_ext <<EOF
17577 #line 17578 "configure"
17578 #include "confdefs.h"
17579 /* System header to define __stub macros and hopefully few prototypes,
17580     which can conflict with char $ac_func(); below.  */
17581 #include <assert.h>
17582 /* Override any gcc2 internal prototype to avoid an error.  */
17583 /* We use char because int might match the return type of a gcc2
17584     builtin and then its argument prototype would still apply.  */
17585 char $ac_func();
17586
17587 int main() {
17588
17589 /* The GNU C library defines this for functions which it implements
17590     to always fail with ENOSYS.  Some functions are actually named
17591     something starting with __ and the normal name is an alias.  */
17592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17593 choke me
17594 #else
17595 $ac_func();
17596 #endif
17597
17598 ; return 0; }
17599 EOF
17600 if { (eval echo configure:17601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17601   rm -rf conftest*
17602   eval "ac_cv_func_$ac_func=yes"
17603 else
17604   echo "configure: failed program was:" >&5
17605   cat conftest.$ac_ext >&5
17606   rm -rf conftest*
17607   eval "ac_cv_func_$ac_func=no"
17608 fi
17609 rm -f conftest*
17610 fi
17611
17612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17613   echo "$ac_t""yes" 1>&6
17614     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17615   cat >> confdefs.h <<EOF
17616 #define $ac_tr_func 1
17617 EOF
17618  
17619 else
17620   echo "$ac_t""no" 1>&6
17621 fi
17622 done
17623     
17624   else
17625     
17626   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
17627 echo "configure:17628: checking for _sqrtl declaration" >&5
17628   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
17629     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
17630   echo $ac_n "(cached) $ac_c" 1>&6
17631 else
17632   
17633       
17634       ac_ext=C
17635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17636 ac_cpp='$CXXCPP $CPPFLAGS'
17637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17639 cross_compiling=$ac_cv_prog_cxx_cross
17640
17641       cat > conftest.$ac_ext <<EOF
17642 #line 17643 "configure"
17643 #include "confdefs.h"
17644 #include <math.h>
17645                       #ifdef HAVE_IEEEFP_H
17646                       #include <ieeefp.h>
17647                       #endif
17648                      
17649 int main() {
17650  _sqrtl(0);
17651 ; return 0; }
17652 EOF
17653 if { (eval echo configure:17654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17654   rm -rf conftest*
17655   glibcpp_cv_func__sqrtl_use=yes
17656 else
17657   echo "configure: failed program was:" >&5
17658   cat conftest.$ac_ext >&5
17659   rm -rf conftest*
17660   glibcpp_cv_func__sqrtl_use=no
17661 fi
17662 rm -f conftest*
17663       ac_ext=c
17664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17668 cross_compiling=$ac_cv_prog_cc_cross
17669
17670     
17671 fi
17672
17673   fi
17674   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
17675
17676     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
17677       for ac_func in _sqrtl
17678 do
17679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17680 echo "configure:17681: checking for $ac_func" >&5
17681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17682   echo $ac_n "(cached) $ac_c" 1>&6
17683 else
17684   cat > conftest.$ac_ext <<EOF
17685 #line 17686 "configure"
17686 #include "confdefs.h"
17687 /* System header to define __stub macros and hopefully few prototypes,
17688     which can conflict with char $ac_func(); below.  */
17689 #include <assert.h>
17690 /* Override any gcc2 internal prototype to avoid an error.  */
17691 /* We use char because int might match the return type of a gcc2
17692     builtin and then its argument prototype would still apply.  */
17693 char $ac_func();
17694
17695 int main() {
17696
17697 /* The GNU C library defines this for functions which it implements
17698     to always fail with ENOSYS.  Some functions are actually named
17699     something starting with __ and the normal name is an alias.  */
17700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17701 choke me
17702 #else
17703 $ac_func();
17704 #endif
17705
17706 ; return 0; }
17707 EOF
17708 if { (eval echo configure:17709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17709   rm -rf conftest*
17710   eval "ac_cv_func_$ac_func=yes"
17711 else
17712   echo "configure: failed program was:" >&5
17713   cat conftest.$ac_ext >&5
17714   rm -rf conftest*
17715   eval "ac_cv_func_$ac_func=no"
17716 fi
17717 rm -f conftest*
17718 fi
17719
17720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17721   echo "$ac_t""yes" 1>&6
17722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17723   cat >> confdefs.h <<EOF
17724 #define $ac_tr_func 1
17725 EOF
17726  
17727 else
17728   echo "$ac_t""no" 1>&6
17729 fi
17730 done
17731     
17732     fi
17733   fi
17734
17735   
17736   
17737   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
17738 echo "configure:17739: checking for sincosl declaration" >&5
17739   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
17740     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
17741   echo $ac_n "(cached) $ac_c" 1>&6
17742 else
17743   
17744       
17745       ac_ext=C
17746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17747 ac_cpp='$CXXCPP $CPPFLAGS'
17748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17750 cross_compiling=$ac_cv_prog_cxx_cross
17751
17752       cat > conftest.$ac_ext <<EOF
17753 #line 17754 "configure"
17754 #include "confdefs.h"
17755 #include <math.h>
17756 int main() {
17757  sincosl(0, 0, 0);
17758 ; return 0; }
17759 EOF
17760 if { (eval echo configure:17761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17761   rm -rf conftest*
17762   glibcpp_cv_func_sincosl_use=yes
17763 else
17764   echo "configure: failed program was:" >&5
17765   cat conftest.$ac_ext >&5
17766   rm -rf conftest*
17767   glibcpp_cv_func_sincosl_use=no
17768 fi
17769 rm -f conftest*
17770       ac_ext=c
17771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17772 ac_cpp='$CPP $CPPFLAGS'
17773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17775 cross_compiling=$ac_cv_prog_cc_cross
17776
17777     
17778 fi
17779
17780   fi
17781   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
17782
17783   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
17784     for ac_func in sincosl
17785 do
17786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17787 echo "configure:17788: checking for $ac_func" >&5
17788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17789   echo $ac_n "(cached) $ac_c" 1>&6
17790 else
17791   cat > conftest.$ac_ext <<EOF
17792 #line 17793 "configure"
17793 #include "confdefs.h"
17794 /* System header to define __stub macros and hopefully few prototypes,
17795     which can conflict with char $ac_func(); below.  */
17796 #include <assert.h>
17797 /* Override any gcc2 internal prototype to avoid an error.  */
17798 /* We use char because int might match the return type of a gcc2
17799     builtin and then its argument prototype would still apply.  */
17800 char $ac_func();
17801
17802 int main() {
17803
17804 /* The GNU C library defines this for functions which it implements
17805     to always fail with ENOSYS.  Some functions are actually named
17806     something starting with __ and the normal name is an alias.  */
17807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17808 choke me
17809 #else
17810 $ac_func();
17811 #endif
17812
17813 ; return 0; }
17814 EOF
17815 if { (eval echo configure:17816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17816   rm -rf conftest*
17817   eval "ac_cv_func_$ac_func=yes"
17818 else
17819   echo "configure: failed program was:" >&5
17820   cat conftest.$ac_ext >&5
17821   rm -rf conftest*
17822   eval "ac_cv_func_$ac_func=no"
17823 fi
17824 rm -f conftest*
17825 fi
17826
17827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17828   echo "$ac_t""yes" 1>&6
17829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17830   cat >> confdefs.h <<EOF
17831 #define $ac_tr_func 1
17832 EOF
17833  
17834 else
17835   echo "$ac_t""no" 1>&6
17836 fi
17837 done
17838     
17839   else
17840     
17841   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
17842 echo "configure:17843: checking for _sincosl declaration" >&5
17843   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
17844     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
17845   echo $ac_n "(cached) $ac_c" 1>&6
17846 else
17847   
17848       
17849       ac_ext=C
17850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17851 ac_cpp='$CXXCPP $CPPFLAGS'
17852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17854 cross_compiling=$ac_cv_prog_cxx_cross
17855
17856       cat > conftest.$ac_ext <<EOF
17857 #line 17858 "configure"
17858 #include "confdefs.h"
17859 #include <math.h>
17860 int main() {
17861  _sincosl(0, 0, 0);
17862 ; return 0; }
17863 EOF
17864 if { (eval echo configure:17865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17865   rm -rf conftest*
17866   glibcpp_cv_func__sincosl_use=yes
17867 else
17868   echo "configure: failed program was:" >&5
17869   cat conftest.$ac_ext >&5
17870   rm -rf conftest*
17871   glibcpp_cv_func__sincosl_use=no
17872 fi
17873 rm -f conftest*
17874       ac_ext=c
17875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17876 ac_cpp='$CPP $CPPFLAGS'
17877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17879 cross_compiling=$ac_cv_prog_cc_cross
17880
17881     
17882 fi
17883
17884   fi
17885   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
17886
17887     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
17888       for ac_func in _sincosl
17889 do
17890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17891 echo "configure:17892: checking for $ac_func" >&5
17892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17893   echo $ac_n "(cached) $ac_c" 1>&6
17894 else
17895   cat > conftest.$ac_ext <<EOF
17896 #line 17897 "configure"
17897 #include "confdefs.h"
17898 /* System header to define __stub macros and hopefully few prototypes,
17899     which can conflict with char $ac_func(); below.  */
17900 #include <assert.h>
17901 /* Override any gcc2 internal prototype to avoid an error.  */
17902 /* We use char because int might match the return type of a gcc2
17903     builtin and then its argument prototype would still apply.  */
17904 char $ac_func();
17905
17906 int main() {
17907
17908 /* The GNU C library defines this for functions which it implements
17909     to always fail with ENOSYS.  Some functions are actually named
17910     something starting with __ and the normal name is an alias.  */
17911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17912 choke me
17913 #else
17914 $ac_func();
17915 #endif
17916
17917 ; return 0; }
17918 EOF
17919 if { (eval echo configure:17920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17920   rm -rf conftest*
17921   eval "ac_cv_func_$ac_func=yes"
17922 else
17923   echo "configure: failed program was:" >&5
17924   cat conftest.$ac_ext >&5
17925   rm -rf conftest*
17926   eval "ac_cv_func_$ac_func=no"
17927 fi
17928 rm -f conftest*
17929 fi
17930
17931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17932   echo "$ac_t""yes" 1>&6
17933     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17934   cat >> confdefs.h <<EOF
17935 #define $ac_tr_func 1
17936 EOF
17937  
17938 else
17939   echo "$ac_t""no" 1>&6
17940 fi
17941 done
17942     
17943     fi
17944   fi
17945
17946   
17947   
17948   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
17949 echo "configure:17950: checking for finitel declaration" >&5
17950   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
17951     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
17952   echo $ac_n "(cached) $ac_c" 1>&6
17953 else
17954   
17955       
17956       ac_ext=C
17957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17958 ac_cpp='$CXXCPP $CPPFLAGS'
17959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17961 cross_compiling=$ac_cv_prog_cxx_cross
17962
17963       cat > conftest.$ac_ext <<EOF
17964 #line 17965 "configure"
17965 #include "confdefs.h"
17966 #include <math.h>
17967                       #ifdef HAVE_IEEEFP_H
17968                       #include <ieeefp.h>
17969                       #endif
17970                      
17971 int main() {
17972  finitel(0);
17973 ; return 0; }
17974 EOF
17975 if { (eval echo configure:17976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17976   rm -rf conftest*
17977   glibcpp_cv_func_finitel_use=yes
17978 else
17979   echo "configure: failed program was:" >&5
17980   cat conftest.$ac_ext >&5
17981   rm -rf conftest*
17982   glibcpp_cv_func_finitel_use=no
17983 fi
17984 rm -f conftest*
17985       ac_ext=c
17986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17987 ac_cpp='$CPP $CPPFLAGS'
17988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17990 cross_compiling=$ac_cv_prog_cc_cross
17991
17992     
17993 fi
17994
17995   fi
17996   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17997
17998   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17999     for ac_func in finitel
18000 do
18001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18002 echo "configure:18003: checking for $ac_func" >&5
18003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18004   echo $ac_n "(cached) $ac_c" 1>&6
18005 else
18006   cat > conftest.$ac_ext <<EOF
18007 #line 18008 "configure"
18008 #include "confdefs.h"
18009 /* System header to define __stub macros and hopefully few prototypes,
18010     which can conflict with char $ac_func(); below.  */
18011 #include <assert.h>
18012 /* Override any gcc2 internal prototype to avoid an error.  */
18013 /* We use char because int might match the return type of a gcc2
18014     builtin and then its argument prototype would still apply.  */
18015 char $ac_func();
18016
18017 int main() {
18018
18019 /* The GNU C library defines this for functions which it implements
18020     to always fail with ENOSYS.  Some functions are actually named
18021     something starting with __ and the normal name is an alias.  */
18022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18023 choke me
18024 #else
18025 $ac_func();
18026 #endif
18027
18028 ; return 0; }
18029 EOF
18030 if { (eval echo configure:18031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18031   rm -rf conftest*
18032   eval "ac_cv_func_$ac_func=yes"
18033 else
18034   echo "configure: failed program was:" >&5
18035   cat conftest.$ac_ext >&5
18036   rm -rf conftest*
18037   eval "ac_cv_func_$ac_func=no"
18038 fi
18039 rm -f conftest*
18040 fi
18041
18042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18043   echo "$ac_t""yes" 1>&6
18044     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18045   cat >> confdefs.h <<EOF
18046 #define $ac_tr_func 1
18047 EOF
18048  
18049 else
18050   echo "$ac_t""no" 1>&6
18051 fi
18052 done
18053     
18054   else
18055     
18056   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18057 echo "configure:18058: checking for _finitel declaration" >&5
18058   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18059     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18060   echo $ac_n "(cached) $ac_c" 1>&6
18061 else
18062   
18063       
18064       ac_ext=C
18065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18066 ac_cpp='$CXXCPP $CPPFLAGS'
18067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18069 cross_compiling=$ac_cv_prog_cxx_cross
18070
18071       cat > conftest.$ac_ext <<EOF
18072 #line 18073 "configure"
18073 #include "confdefs.h"
18074 #include <math.h>
18075                       #ifdef HAVE_IEEEFP_H
18076                       #include <ieeefp.h>
18077                       #endif
18078                      
18079 int main() {
18080  _finitel(0);
18081 ; return 0; }
18082 EOF
18083 if { (eval echo configure:18084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18084   rm -rf conftest*
18085   glibcpp_cv_func__finitel_use=yes
18086 else
18087   echo "configure: failed program was:" >&5
18088   cat conftest.$ac_ext >&5
18089   rm -rf conftest*
18090   glibcpp_cv_func__finitel_use=no
18091 fi
18092 rm -f conftest*
18093       ac_ext=c
18094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18095 ac_cpp='$CPP $CPPFLAGS'
18096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18098 cross_compiling=$ac_cv_prog_cc_cross
18099
18100     
18101 fi
18102
18103   fi
18104   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18105
18106     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18107       for ac_func in _finitel
18108 do
18109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18110 echo "configure:18111: checking for $ac_func" >&5
18111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18112   echo $ac_n "(cached) $ac_c" 1>&6
18113 else
18114   cat > conftest.$ac_ext <<EOF
18115 #line 18116 "configure"
18116 #include "confdefs.h"
18117 /* System header to define __stub macros and hopefully few prototypes,
18118     which can conflict with char $ac_func(); below.  */
18119 #include <assert.h>
18120 /* Override any gcc2 internal prototype to avoid an error.  */
18121 /* We use char because int might match the return type of a gcc2
18122     builtin and then its argument prototype would still apply.  */
18123 char $ac_func();
18124
18125 int main() {
18126
18127 /* The GNU C library defines this for functions which it implements
18128     to always fail with ENOSYS.  Some functions are actually named
18129     something starting with __ and the normal name is an alias.  */
18130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18131 choke me
18132 #else
18133 $ac_func();
18134 #endif
18135
18136 ; return 0; }
18137 EOF
18138 if { (eval echo configure:18139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18139   rm -rf conftest*
18140   eval "ac_cv_func_$ac_func=yes"
18141 else
18142   echo "configure: failed program was:" >&5
18143   cat conftest.$ac_ext >&5
18144   rm -rf conftest*
18145   eval "ac_cv_func_$ac_func=no"
18146 fi
18147 rm -f conftest*
18148 fi
18149
18150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18151   echo "$ac_t""yes" 1>&6
18152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18153   cat >> confdefs.h <<EOF
18154 #define $ac_tr_func 1
18155 EOF
18156  
18157 else
18158   echo "$ac_t""no" 1>&6
18159 fi
18160 done
18161     
18162     fi
18163   fi
18164
18165
18166         
18167     
18168   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
18169 echo "configure:18170: checking for _float trig functions" >&5
18170   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
18171   echo $ac_n "(cached) $ac_c" 1>&6
18172 else
18173   
18174     
18175     ac_ext=C
18176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18177 ac_cpp='$CXXCPP $CPPFLAGS'
18178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18180 cross_compiling=$ac_cv_prog_cxx_cross
18181
18182     cat > conftest.$ac_ext <<EOF
18183 #line 18184 "configure"
18184 #include "confdefs.h"
18185 #include <math.h>
18186 int main() {
18187  `for x in _acosf _asinf _atanf \
18188                                           _cosf _sinf _tanf \
18189                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
18190 ; return 0; }
18191 EOF
18192 if { (eval echo configure:18193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18193   rm -rf conftest*
18194   glibcpp_cv_func__float_trig_use=yes
18195 else
18196   echo "configure: failed program was:" >&5
18197   cat conftest.$ac_ext >&5
18198   rm -rf conftest*
18199   glibcpp_cv_func__float_trig_use=no
18200 fi
18201 rm -f conftest*
18202     ac_ext=c
18203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18204 ac_cpp='$CPP $CPPFLAGS'
18205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18207 cross_compiling=$ac_cv_prog_cc_cross
18208
18209 fi
18210
18211   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
18212   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
18213     for ac_func in _acosf _asinf _atanf \
18214                                           _cosf _sinf _tanf \
18215                                           _coshf _sinhf _tanhf
18216 do
18217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18218 echo "configure:18219: checking for $ac_func" >&5
18219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18220   echo $ac_n "(cached) $ac_c" 1>&6
18221 else
18222   cat > conftest.$ac_ext <<EOF
18223 #line 18224 "configure"
18224 #include "confdefs.h"
18225 /* System header to define __stub macros and hopefully few prototypes,
18226     which can conflict with char $ac_func(); below.  */
18227 #include <assert.h>
18228 /* Override any gcc2 internal prototype to avoid an error.  */
18229 /* We use char because int might match the return type of a gcc2
18230     builtin and then its argument prototype would still apply.  */
18231 char $ac_func();
18232
18233 int main() {
18234
18235 /* The GNU C library defines this for functions which it implements
18236     to always fail with ENOSYS.  Some functions are actually named
18237     something starting with __ and the normal name is an alias.  */
18238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18239 choke me
18240 #else
18241 $ac_func();
18242 #endif
18243
18244 ; return 0; }
18245 EOF
18246 if { (eval echo configure:18247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18247   rm -rf conftest*
18248   eval "ac_cv_func_$ac_func=yes"
18249 else
18250   echo "configure: failed program was:" >&5
18251   cat conftest.$ac_ext >&5
18252   rm -rf conftest*
18253   eval "ac_cv_func_$ac_func=no"
18254 fi
18255 rm -f conftest*
18256 fi
18257
18258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18259   echo "$ac_t""yes" 1>&6
18260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18261   cat >> confdefs.h <<EOF
18262 #define $ac_tr_func 1
18263 EOF
18264  
18265 else
18266   echo "$ac_t""no" 1>&6
18267 fi
18268 done
18269
18270   fi
18271
18272   
18273   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
18274 echo "configure:18275: checking for _float round functions" >&5
18275   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
18276   echo $ac_n "(cached) $ac_c" 1>&6
18277 else
18278   
18279     
18280     ac_ext=C
18281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18282 ac_cpp='$CXXCPP $CPPFLAGS'
18283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18285 cross_compiling=$ac_cv_prog_cxx_cross
18286
18287     cat > conftest.$ac_ext <<EOF
18288 #line 18289 "configure"
18289 #include "confdefs.h"
18290 #include <math.h>
18291 int main() {
18292  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
18293 ; return 0; }
18294 EOF
18295 if { (eval echo configure:18296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18296   rm -rf conftest*
18297   glibcpp_cv_func__float_round_use=yes
18298 else
18299   echo "configure: failed program was:" >&5
18300   cat conftest.$ac_ext >&5
18301   rm -rf conftest*
18302   glibcpp_cv_func__float_round_use=no
18303 fi
18304 rm -f conftest*
18305     ac_ext=c
18306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18307 ac_cpp='$CPP $CPPFLAGS'
18308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18310 cross_compiling=$ac_cv_prog_cc_cross
18311
18312 fi
18313
18314   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
18315   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
18316     for ac_func in _ceilf _floorf
18317 do
18318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18319 echo "configure:18320: checking for $ac_func" >&5
18320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18321   echo $ac_n "(cached) $ac_c" 1>&6
18322 else
18323   cat > conftest.$ac_ext <<EOF
18324 #line 18325 "configure"
18325 #include "confdefs.h"
18326 /* System header to define __stub macros and hopefully few prototypes,
18327     which can conflict with char $ac_func(); below.  */
18328 #include <assert.h>
18329 /* Override any gcc2 internal prototype to avoid an error.  */
18330 /* We use char because int might match the return type of a gcc2
18331     builtin and then its argument prototype would still apply.  */
18332 char $ac_func();
18333
18334 int main() {
18335
18336 /* The GNU C library defines this for functions which it implements
18337     to always fail with ENOSYS.  Some functions are actually named
18338     something starting with __ and the normal name is an alias.  */
18339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18340 choke me
18341 #else
18342 $ac_func();
18343 #endif
18344
18345 ; return 0; }
18346 EOF
18347 if { (eval echo configure:18348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18348   rm -rf conftest*
18349   eval "ac_cv_func_$ac_func=yes"
18350 else
18351   echo "configure: failed program was:" >&5
18352   cat conftest.$ac_ext >&5
18353   rm -rf conftest*
18354   eval "ac_cv_func_$ac_func=no"
18355 fi
18356 rm -f conftest*
18357 fi
18358
18359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18360   echo "$ac_t""yes" 1>&6
18361     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18362   cat >> confdefs.h <<EOF
18363 #define $ac_tr_func 1
18364 EOF
18365  
18366 else
18367   echo "$ac_t""no" 1>&6
18368 fi
18369 done
18370
18371   fi
18372
18373
18374     
18375   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
18376 echo "configure:18377: checking for _long double trig functions" >&5
18377   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
18378   echo $ac_n "(cached) $ac_c" 1>&6
18379 else
18380   
18381     
18382     ac_ext=C
18383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18384 ac_cpp='$CXXCPP $CPPFLAGS'
18385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18387 cross_compiling=$ac_cv_prog_cxx_cross
18388
18389     cat > conftest.$ac_ext <<EOF
18390 #line 18391 "configure"
18391 #include "confdefs.h"
18392 #include <math.h>
18393 int main() {
18394  `for x in _acosl _asinl _atanl \
18395                                           _cosl _sinl _tanl \
18396                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
18397 ; return 0; }
18398 EOF
18399 if { (eval echo configure:18400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18400   rm -rf conftest*
18401   glibcpp_cv_func__long_double_trig_use=yes
18402 else
18403   echo "configure: failed program was:" >&5
18404   cat conftest.$ac_ext >&5
18405   rm -rf conftest*
18406   glibcpp_cv_func__long_double_trig_use=no
18407 fi
18408 rm -f conftest*
18409     ac_ext=c
18410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18411 ac_cpp='$CPP $CPPFLAGS'
18412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18414 cross_compiling=$ac_cv_prog_cc_cross
18415
18416 fi
18417
18418   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
18419   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
18420     for ac_func in _acosl _asinl _atanl \
18421                                           _cosl _sinl _tanl \
18422                                           _coshl _sinhl _tanhl
18423 do
18424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18425 echo "configure:18426: checking for $ac_func" >&5
18426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18427   echo $ac_n "(cached) $ac_c" 1>&6
18428 else
18429   cat > conftest.$ac_ext <<EOF
18430 #line 18431 "configure"
18431 #include "confdefs.h"
18432 /* System header to define __stub macros and hopefully few prototypes,
18433     which can conflict with char $ac_func(); below.  */
18434 #include <assert.h>
18435 /* Override any gcc2 internal prototype to avoid an error.  */
18436 /* We use char because int might match the return type of a gcc2
18437     builtin and then its argument prototype would still apply.  */
18438 char $ac_func();
18439
18440 int main() {
18441
18442 /* The GNU C library defines this for functions which it implements
18443     to always fail with ENOSYS.  Some functions are actually named
18444     something starting with __ and the normal name is an alias.  */
18445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18446 choke me
18447 #else
18448 $ac_func();
18449 #endif
18450
18451 ; return 0; }
18452 EOF
18453 if { (eval echo configure:18454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18454   rm -rf conftest*
18455   eval "ac_cv_func_$ac_func=yes"
18456 else
18457   echo "configure: failed program was:" >&5
18458   cat conftest.$ac_ext >&5
18459   rm -rf conftest*
18460   eval "ac_cv_func_$ac_func=no"
18461 fi
18462 rm -f conftest*
18463 fi
18464
18465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18466   echo "$ac_t""yes" 1>&6
18467     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18468   cat >> confdefs.h <<EOF
18469 #define $ac_tr_func 1
18470 EOF
18471  
18472 else
18473   echo "$ac_t""no" 1>&6
18474 fi
18475 done
18476
18477   fi
18478
18479   
18480   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
18481 echo "configure:18482: checking for _long double round functions" >&5
18482   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
18483   echo $ac_n "(cached) $ac_c" 1>&6
18484 else
18485   
18486     
18487     ac_ext=C
18488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18489 ac_cpp='$CXXCPP $CPPFLAGS'
18490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18492 cross_compiling=$ac_cv_prog_cxx_cross
18493
18494     cat > conftest.$ac_ext <<EOF
18495 #line 18496 "configure"
18496 #include "confdefs.h"
18497 #include <math.h>
18498 int main() {
18499  `for x in _ceill _floorl; do echo "$x (0);"; done` 
18500 ; return 0; }
18501 EOF
18502 if { (eval echo configure:18503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18503   rm -rf conftest*
18504   glibcpp_cv_func__long_double_round_use=yes
18505 else
18506   echo "configure: failed program was:" >&5
18507   cat conftest.$ac_ext >&5
18508   rm -rf conftest*
18509   glibcpp_cv_func__long_double_round_use=no
18510 fi
18511 rm -f conftest*
18512     ac_ext=c
18513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18514 ac_cpp='$CPP $CPPFLAGS'
18515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18517 cross_compiling=$ac_cv_prog_cc_cross
18518
18519 fi
18520
18521   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
18522   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
18523     for ac_func in _ceill _floorl
18524 do
18525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18526 echo "configure:18527: checking for $ac_func" >&5
18527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18528   echo $ac_n "(cached) $ac_c" 1>&6
18529 else
18530   cat > conftest.$ac_ext <<EOF
18531 #line 18532 "configure"
18532 #include "confdefs.h"
18533 /* System header to define __stub macros and hopefully few prototypes,
18534     which can conflict with char $ac_func(); below.  */
18535 #include <assert.h>
18536 /* Override any gcc2 internal prototype to avoid an error.  */
18537 /* We use char because int might match the return type of a gcc2
18538     builtin and then its argument prototype would still apply.  */
18539 char $ac_func();
18540
18541 int main() {
18542
18543 /* The GNU C library defines this for functions which it implements
18544     to always fail with ENOSYS.  Some functions are actually named
18545     something starting with __ and the normal name is an alias.  */
18546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18547 choke me
18548 #else
18549 $ac_func();
18550 #endif
18551
18552 ; return 0; }
18553 EOF
18554 if { (eval echo configure:18555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18555   rm -rf conftest*
18556   eval "ac_cv_func_$ac_func=yes"
18557 else
18558   echo "configure: failed program was:" >&5
18559   cat conftest.$ac_ext >&5
18560   rm -rf conftest*
18561   eval "ac_cv_func_$ac_func=no"
18562 fi
18563 rm -f conftest*
18564 fi
18565
18566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18567   echo "$ac_t""yes" 1>&6
18568     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18569   cat >> confdefs.h <<EOF
18570 #define $ac_tr_func 1
18571 EOF
18572  
18573 else
18574   echo "$ac_t""no" 1>&6
18575 fi
18576 done
18577
18578   fi
18579
18580
18581   LIBS="$ac_save_LIBS"
18582   CXXFLAGS="$ac_save_CXXFLAGS"
18583
18584   
18585     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
18586 echo "configure:18587: checking for main in -lm" >&5
18587 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
18588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18589   echo $ac_n "(cached) $ac_c" 1>&6
18590 else
18591   ac_save_LIBS="$LIBS"
18592 LIBS="-lm  $LIBS"
18593 cat > conftest.$ac_ext <<EOF
18594 #line 18595 "configure"
18595 #include "confdefs.h"
18596
18597 int main() {
18598 main()
18599 ; return 0; }
18600 EOF
18601 if { (eval echo configure:18602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18602   rm -rf conftest*
18603   eval "ac_cv_lib_$ac_lib_var=yes"
18604 else
18605   echo "configure: failed program was:" >&5
18606   cat conftest.$ac_ext >&5
18607   rm -rf conftest*
18608   eval "ac_cv_lib_$ac_lib_var=no"
18609 fi
18610 rm -f conftest*
18611 LIBS="$ac_save_LIBS"
18612
18613 fi
18614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18615   echo "$ac_t""yes" 1>&6
18616     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
18617     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
18618   cat >> confdefs.h <<EOF
18619 #define $ac_tr_lib 1
18620 EOF
18621
18622   LIBS="-lm $LIBS"
18623
18624 else
18625   echo "$ac_t""no" 1>&6
18626 fi
18627
18628   for ac_func in nan copysignf
18629 do
18630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18631 echo "configure:18632: checking for $ac_func" >&5
18632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18633   echo $ac_n "(cached) $ac_c" 1>&6
18634 else
18635   cat > conftest.$ac_ext <<EOF
18636 #line 18637 "configure"
18637 #include "confdefs.h"
18638 /* System header to define __stub macros and hopefully few prototypes,
18639     which can conflict with char $ac_func(); below.  */
18640 #include <assert.h>
18641 /* Override any gcc2 internal prototype to avoid an error.  */
18642 /* We use char because int might match the return type of a gcc2
18643     builtin and then its argument prototype would still apply.  */
18644 char $ac_func();
18645
18646 int main() {
18647
18648 /* The GNU C library defines this for functions which it implements
18649     to always fail with ENOSYS.  Some functions are actually named
18650     something starting with __ and the normal name is an alias.  */
18651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18652 choke me
18653 #else
18654 $ac_func();
18655 #endif
18656
18657 ; return 0; }
18658 EOF
18659 if { (eval echo configure:18660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18660   rm -rf conftest*
18661   eval "ac_cv_func_$ac_func=yes"
18662 else
18663   echo "configure: failed program was:" >&5
18664   cat conftest.$ac_ext >&5
18665   rm -rf conftest*
18666   eval "ac_cv_func_$ac_func=no"
18667 fi
18668 rm -f conftest*
18669 fi
18670
18671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18672   echo "$ac_t""yes" 1>&6
18673     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18674   cat >> confdefs.h <<EOF
18675 #define $ac_tr_func 1
18676 EOF
18677  
18678 else
18679   echo "$ac_t""no" 1>&6
18680 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
18681 fi
18682 done
18683
18684
18685
18686           USE_COMPLEX_LONG_DOUBLE=no
18687   if test x$ac_cv_func_copysignl = x"yes"; then
18688     USE_COMPLEX_LONG_DOUBLE=yes
18689     for ac_func in signbitl
18690 do
18691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18692 echo "configure:18693: checking for $ac_func" >&5
18693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18694   echo $ac_n "(cached) $ac_c" 1>&6
18695 else
18696   cat > conftest.$ac_ext <<EOF
18697 #line 18698 "configure"
18698 #include "confdefs.h"
18699 /* System header to define __stub macros and hopefully few prototypes,
18700     which can conflict with char $ac_func(); below.  */
18701 #include <assert.h>
18702 /* Override any gcc2 internal prototype to avoid an error.  */
18703 /* We use char because int might match the return type of a gcc2
18704     builtin and then its argument prototype would still apply.  */
18705 char $ac_func();
18706
18707 int main() {
18708
18709 /* The GNU C library defines this for functions which it implements
18710     to always fail with ENOSYS.  Some functions are actually named
18711     something starting with __ and the normal name is an alias.  */
18712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18713 choke me
18714 #else
18715 $ac_func();
18716 #endif
18717
18718 ; return 0; }
18719 EOF
18720 if { (eval echo configure:18721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18721   rm -rf conftest*
18722   eval "ac_cv_func_$ac_func=yes"
18723 else
18724   echo "configure: failed program was:" >&5
18725   cat conftest.$ac_ext >&5
18726   rm -rf conftest*
18727   eval "ac_cv_func_$ac_func=no"
18728 fi
18729 rm -f conftest*
18730 fi
18731
18732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18733   echo "$ac_t""yes" 1>&6
18734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18735   cat >> confdefs.h <<EOF
18736 #define $ac_tr_func 1
18737 EOF
18738  
18739 else
18740   echo "$ac_t""no" 1>&6
18741 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
18742 fi
18743 done
18744
18745
18746   fi
18747
18748   
18749
18750   
18751
18752       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
18753 echo "configure:18754: checking for mbstate_t" >&5
18754   cat > conftest.$ac_ext <<EOF
18755 #line 18756 "configure"
18756 #include "confdefs.h"
18757 #include <wchar.h>
18758 int main() {
18759 mbstate_t teststate;
18760 ; return 0; }
18761 EOF
18762 if { (eval echo configure:18763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18763   rm -rf conftest*
18764   have_mbstate_t=yes
18765 else
18766   echo "configure: failed program was:" >&5
18767   cat conftest.$ac_ext >&5
18768   rm -rf conftest*
18769   have_mbstate_t=no
18770 fi
18771 rm -f conftest*
18772   echo "$ac_t""$have_mbstate_t" 1>&6
18773   if test x"$have_mbstate_t" = xyes; then
18774     cat >> confdefs.h <<\EOF
18775 #define HAVE_MBSTATE_T 1
18776 EOF
18777
18778   fi
18779
18780     for ac_hdr in wchar.h
18781 do
18782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18784 echo "configure:18785: checking for $ac_hdr" >&5
18785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18786   echo $ac_n "(cached) $ac_c" 1>&6
18787 else
18788   cat > conftest.$ac_ext <<EOF
18789 #line 18790 "configure"
18790 #include "confdefs.h"
18791 #include <$ac_hdr>
18792 EOF
18793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18794 { (eval echo configure:18795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18796 if test -z "$ac_err"; then
18797   rm -rf conftest*
18798   eval "ac_cv_header_$ac_safe=yes"
18799 else
18800   echo "$ac_err" >&5
18801   echo "configure: failed program was:" >&5
18802   cat conftest.$ac_ext >&5
18803   rm -rf conftest*
18804   eval "ac_cv_header_$ac_safe=no"
18805 fi
18806 rm -f conftest*
18807 fi
18808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18809   echo "$ac_t""yes" 1>&6
18810     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18811   cat >> confdefs.h <<EOF
18812 #define $ac_tr_hdr 1
18813 EOF
18814  ac_has_wchar_h=yes
18815 else
18816   echo "$ac_t""no" 1>&6
18817 ac_has_wchar_h=no
18818 fi
18819 done
18820
18821   for ac_hdr in wctype.h
18822 do
18823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18825 echo "configure:18826: checking for $ac_hdr" >&5
18826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
18833 EOF
18834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18835 { (eval echo configure:18836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18837 if test -z "$ac_err"; then
18838   rm -rf conftest*
18839   eval "ac_cv_header_$ac_safe=yes"
18840 else
18841   echo "$ac_err" >&5
18842   echo "configure: failed program was:" >&5
18843   cat conftest.$ac_ext >&5
18844   rm -rf conftest*
18845   eval "ac_cv_header_$ac_safe=no"
18846 fi
18847 rm -f conftest*
18848 fi
18849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18850   echo "$ac_t""yes" 1>&6
18851     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18852   cat >> confdefs.h <<EOF
18853 #define $ac_tr_hdr 1
18854 EOF
18855  ac_has_wctype_h=yes
18856 else
18857   echo "$ac_t""no" 1>&6
18858 ac_has_wctype_h=no
18859 fi
18860 done
18861
18862   
18863     if test x"$ac_has_wchar_h" = xyes &&
18864      test x"$ac_has_wctype_h" = xyes &&
18865      test x"$enable_c_mbchar" != xno; then
18866       
18867             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
18868 echo "configure:18869: checking for WCHAR_MIN and WCHAR_MAX" >&5
18869     cat > conftest.$ac_ext <<EOF
18870 #line 18871 "configure"
18871 #include "confdefs.h"
18872 #include <wchar.h>
18873 int main() {
18874 int i = WCHAR_MIN; int j = WCHAR_MAX;
18875 ; return 0; }
18876 EOF
18877 if { (eval echo configure:18878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18878   rm -rf conftest*
18879   has_wchar_minmax=yes
18880 else
18881   echo "configure: failed program was:" >&5
18882   cat conftest.$ac_ext >&5
18883   rm -rf conftest*
18884   has_wchar_minmax=no
18885 fi
18886 rm -f conftest*
18887     echo "$ac_t""$has_wchar_minmax" 1>&6
18888     
18889             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
18890 echo "configure:18891: checking for WEOF" >&5
18891     cat > conftest.$ac_ext <<EOF
18892 #line 18893 "configure"
18893 #include "confdefs.h"
18894
18895       #include <wchar.h>
18896       #include <stddef.h>
18897 int main() {
18898 wint_t i = WEOF;
18899 ; return 0; }
18900 EOF
18901 if { (eval echo configure:18902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18902   rm -rf conftest*
18903   has_weof=yes
18904 else
18905   echo "configure: failed program was:" >&5
18906   cat conftest.$ac_ext >&5
18907   rm -rf conftest*
18908   has_weof=no
18909 fi
18910 rm -f conftest*
18911     echo "$ac_t""$has_weof" 1>&6
18912   
18913         ac_wfuncs=yes
18914     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
18915 do
18916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18917 echo "configure:18918: checking for $ac_func" >&5
18918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18919   echo $ac_n "(cached) $ac_c" 1>&6
18920 else
18921   cat > conftest.$ac_ext <<EOF
18922 #line 18923 "configure"
18923 #include "confdefs.h"
18924 /* System header to define __stub macros and hopefully few prototypes,
18925     which can conflict with char $ac_func(); below.  */
18926 #include <assert.h>
18927 /* Override any gcc2 internal prototype to avoid an error.  */
18928 /* We use char because int might match the return type of a gcc2
18929     builtin and then its argument prototype would still apply.  */
18930 char $ac_func();
18931
18932 int main() {
18933
18934 /* The GNU C library defines this for functions which it implements
18935     to always fail with ENOSYS.  Some functions are actually named
18936     something starting with __ and the normal name is an alias.  */
18937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18938 choke me
18939 #else
18940 $ac_func();
18941 #endif
18942
18943 ; return 0; }
18944 EOF
18945 if { (eval echo configure:18946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18946   rm -rf conftest*
18947   eval "ac_cv_func_$ac_func=yes"
18948 else
18949   echo "configure: failed program was:" >&5
18950   cat conftest.$ac_ext >&5
18951   rm -rf conftest*
18952   eval "ac_cv_func_$ac_func=no"
18953 fi
18954 rm -f conftest*
18955 fi
18956
18957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18958   echo "$ac_t""yes" 1>&6
18959     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18960   cat >> confdefs.h <<EOF
18961 #define $ac_tr_func 1
18962 EOF
18963  
18964 else
18965   echo "$ac_t""no" 1>&6
18966 \
18967     ac_wfuncs=no
18968 fi
18969 done
18970
18971   
18972         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
18973     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
18974     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
18975     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
18976     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
18977     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
18978 do
18979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18980 echo "configure:18981: checking for $ac_func" >&5
18981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18982   echo $ac_n "(cached) $ac_c" 1>&6
18983 else
18984   cat > conftest.$ac_ext <<EOF
18985 #line 18986 "configure"
18986 #include "confdefs.h"
18987 /* System header to define __stub macros and hopefully few prototypes,
18988     which can conflict with char $ac_func(); below.  */
18989 #include <assert.h>
18990 /* Override any gcc2 internal prototype to avoid an error.  */
18991 /* We use char because int might match the return type of a gcc2
18992     builtin and then its argument prototype would still apply.  */
18993 char $ac_func();
18994
18995 int main() {
18996
18997 /* The GNU C library defines this for functions which it implements
18998     to always fail with ENOSYS.  Some functions are actually named
18999     something starting with __ and the normal name is an alias.  */
19000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19001 choke me
19002 #else
19003 $ac_func();
19004 #endif
19005
19006 ; return 0; }
19007 EOF
19008 if { (eval echo configure:19009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19009   rm -rf conftest*
19010   eval "ac_cv_func_$ac_func=yes"
19011 else
19012   echo "configure: failed program was:" >&5
19013   cat conftest.$ac_ext >&5
19014   rm -rf conftest*
19015   eval "ac_cv_func_$ac_func=no"
19016 fi
19017 rm -f conftest*
19018 fi
19019
19020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19021   echo "$ac_t""yes" 1>&6
19022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19023   cat >> confdefs.h <<EOF
19024 #define $ac_tr_func 1
19025 EOF
19026  
19027 else
19028   echo "$ac_t""no" 1>&6
19029 \
19030     ac_wfuncs=no
19031 fi
19032 done
19033
19034
19035     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
19036 echo "configure:19037: checking for ISO C99 wchar_t support" >&5
19037     if test x"$has_weof" = xyes &&
19038        test x"$has_wchar_minmax" = xyes &&
19039        test x"$ac_wfuncs" = xyes; then
19040       ac_isoC99_wchar_t=yes
19041     else
19042       ac_isoC99_wchar_t=no
19043     fi
19044     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
19045   
19046             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
19047 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
19048 echo "configure:19049: checking for iconv.h" >&5
19049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19050   echo $ac_n "(cached) $ac_c" 1>&6
19051 else
19052   cat > conftest.$ac_ext <<EOF
19053 #line 19054 "configure"
19054 #include "confdefs.h"
19055 #include <iconv.h>
19056 EOF
19057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19058 { (eval echo configure:19059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19060 if test -z "$ac_err"; then
19061   rm -rf conftest*
19062   eval "ac_cv_header_$ac_safe=yes"
19063 else
19064   echo "$ac_err" >&5
19065   echo "configure: failed program was:" >&5
19066   cat conftest.$ac_ext >&5
19067   rm -rf conftest*
19068   eval "ac_cv_header_$ac_safe=no"
19069 fi
19070 rm -f conftest*
19071 fi
19072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19073   echo "$ac_t""yes" 1>&6
19074   ac_has_iconv_h=yes
19075 else
19076   echo "$ac_t""no" 1>&6
19077 ac_has_iconv_h=no
19078 fi
19079
19080     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
19081 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
19082 echo "configure:19083: checking for langinfo.h" >&5
19083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19084   echo $ac_n "(cached) $ac_c" 1>&6
19085 else
19086   cat > conftest.$ac_ext <<EOF
19087 #line 19088 "configure"
19088 #include "confdefs.h"
19089 #include <langinfo.h>
19090 EOF
19091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19092 { (eval echo configure:19093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19094 if test -z "$ac_err"; then
19095   rm -rf conftest*
19096   eval "ac_cv_header_$ac_safe=yes"
19097 else
19098   echo "$ac_err" >&5
19099   echo "configure: failed program was:" >&5
19100   cat conftest.$ac_ext >&5
19101   rm -rf conftest*
19102   eval "ac_cv_header_$ac_safe=no"
19103 fi
19104 rm -f conftest*
19105 fi
19106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19107   echo "$ac_t""yes" 1>&6
19108   ac_has_langinfo_h=yes
19109 else
19110   echo "$ac_t""no" 1>&6
19111 ac_has_langinfo_h=no
19112 fi
19113
19114
19115         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
19116 echo "configure:19117: checking for iconv in -liconv" >&5
19117 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
19118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19119   echo $ac_n "(cached) $ac_c" 1>&6
19120 else
19121   ac_save_LIBS="$LIBS"
19122 LIBS="-liconv  $LIBS"
19123 cat > conftest.$ac_ext <<EOF
19124 #line 19125 "configure"
19125 #include "confdefs.h"
19126 /* Override any gcc2 internal prototype to avoid an error.  */
19127 /* We use char because int might match the return type of a gcc2
19128     builtin and then its argument prototype would still apply.  */
19129 char iconv();
19130
19131 int main() {
19132 iconv()
19133 ; return 0; }
19134 EOF
19135 if { (eval echo configure:19136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19136   rm -rf conftest*
19137   eval "ac_cv_lib_$ac_lib_var=yes"
19138 else
19139   echo "configure: failed program was:" >&5
19140   cat conftest.$ac_ext >&5
19141   rm -rf conftest*
19142   eval "ac_cv_lib_$ac_lib_var=no"
19143 fi
19144 rm -f conftest*
19145 LIBS="$ac_save_LIBS"
19146
19147 fi
19148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19149   echo "$ac_t""yes" 1>&6
19150   libiconv="-liconv"
19151 else
19152   echo "$ac_t""no" 1>&6
19153 fi
19154
19155     ac_save_LIBS="$LIBS"
19156     LIBS="$LIBS $libiconv"
19157
19158     for ac_func in iconv_open iconv_close iconv nl_langinfo
19159 do
19160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19161 echo "configure:19162: checking for $ac_func" >&5
19162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19163   echo $ac_n "(cached) $ac_c" 1>&6
19164 else
19165   cat > conftest.$ac_ext <<EOF
19166 #line 19167 "configure"
19167 #include "confdefs.h"
19168 /* System header to define __stub macros and hopefully few prototypes,
19169     which can conflict with char $ac_func(); below.  */
19170 #include <assert.h>
19171 /* Override any gcc2 internal prototype to avoid an error.  */
19172 /* We use char because int might match the return type of a gcc2
19173     builtin and then its argument prototype would still apply.  */
19174 char $ac_func();
19175
19176 int main() {
19177
19178 /* The GNU C library defines this for functions which it implements
19179     to always fail with ENOSYS.  Some functions are actually named
19180     something starting with __ and the normal name is an alias.  */
19181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19182 choke me
19183 #else
19184 $ac_func();
19185 #endif
19186
19187 ; return 0; }
19188 EOF
19189 if { (eval echo configure:19190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19190   rm -rf conftest*
19191   eval "ac_cv_func_$ac_func=yes"
19192 else
19193   echo "configure: failed program was:" >&5
19194   cat conftest.$ac_ext >&5
19195   rm -rf conftest*
19196   eval "ac_cv_func_$ac_func=no"
19197 fi
19198 rm -f conftest*
19199 fi
19200
19201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19202   echo "$ac_t""yes" 1>&6
19203     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19204   cat >> confdefs.h <<EOF
19205 #define $ac_tr_func 1
19206 EOF
19207  \
19208     ac_XPG2funcs=yes
19209 else
19210   echo "$ac_t""no" 1>&6
19211 ac_XPG2funcs=no
19212 fi
19213 done
19214
19215   
19216     LIBS="$ac_save_LIBS"
19217
19218     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
19219 echo "configure:19220: checking for XPG2 wchar_t support" >&5
19220     if test x"$ac_has_iconv_h" = xyes &&
19221        test x"$ac_has_langinfo_h" = xyes &&
19222        test x"$ac_XPG2funcs" = xyes; then
19223       ac_XPG2_wchar_t=yes
19224     else
19225       ac_XPG2_wchar_t=no
19226     fi
19227     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
19228   
19229             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
19230 echo "configure:19231: checking for enabled wchar_t specializations" >&5
19231     if test x"$ac_isoC99_wchar_t" = xyes &&
19232        test x"$ac_XPG2_wchar_t" = xyes; then
19233       cat >> confdefs.h <<\EOF
19234 #define _GLIBCPP_USE_WCHAR_T 1
19235 EOF
19236
19237       echo "$ac_t"""yes"" 1>&6
19238     else
19239       echo "$ac_t"""no"" 1>&6
19240     fi
19241   else
19242         echo "configure: warning: wchar_t support disabled." 1>&2
19243   fi
19244
19245   
19246   ac_test_CXXFLAGS="${CXXFLAGS+set}"
19247   ac_save_CXXFLAGS="$CXXFLAGS"
19248   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
19249
19250   
19251   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
19252 echo "configure:19253: checking for strtold declaration" >&5
19253   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
19254     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
19255   echo $ac_n "(cached) $ac_c" 1>&6
19256 else
19257   
19258       
19259       ac_ext=C
19260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19261 ac_cpp='$CXXCPP $CPPFLAGS'
19262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19264 cross_compiling=$ac_cv_prog_cxx_cross
19265
19266       cat > conftest.$ac_ext <<EOF
19267 #line 19268 "configure"
19268 #include "confdefs.h"
19269 #include <stdlib.h>
19270 int main() {
19271  strtold(0, 0);
19272 ; return 0; }
19273 EOF
19274 if { (eval echo configure:19275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19275   rm -rf conftest*
19276   glibcpp_cv_func_strtold_use=yes
19277 else
19278   echo "configure: failed program was:" >&5
19279   cat conftest.$ac_ext >&5
19280   rm -rf conftest*
19281   glibcpp_cv_func_strtold_use=no
19282 fi
19283 rm -f conftest*
19284       ac_ext=c
19285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19286 ac_cpp='$CPP $CPPFLAGS'
19287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19289 cross_compiling=$ac_cv_prog_cc_cross
19290
19291     
19292 fi
19293
19294   fi
19295   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
19296   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
19297     for ac_func in strtold
19298 do
19299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19300 echo "configure:19301: checking for $ac_func" >&5
19301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19302   echo $ac_n "(cached) $ac_c" 1>&6
19303 else
19304   cat > conftest.$ac_ext <<EOF
19305 #line 19306 "configure"
19306 #include "confdefs.h"
19307 /* System header to define __stub macros and hopefully few prototypes,
19308     which can conflict with char $ac_func(); below.  */
19309 #include <assert.h>
19310 /* Override any gcc2 internal prototype to avoid an error.  */
19311 /* We use char because int might match the return type of a gcc2
19312     builtin and then its argument prototype would still apply.  */
19313 char $ac_func();
19314
19315 int main() {
19316
19317 /* The GNU C library defines this for functions which it implements
19318     to always fail with ENOSYS.  Some functions are actually named
19319     something starting with __ and the normal name is an alias.  */
19320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19321 choke me
19322 #else
19323 $ac_func();
19324 #endif
19325
19326 ; return 0; }
19327 EOF
19328 if { (eval echo configure:19329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19329   rm -rf conftest*
19330   eval "ac_cv_func_$ac_func=yes"
19331 else
19332   echo "configure: failed program was:" >&5
19333   cat conftest.$ac_ext >&5
19334   rm -rf conftest*
19335   eval "ac_cv_func_$ac_func=no"
19336 fi
19337 rm -f conftest*
19338 fi
19339
19340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19341   echo "$ac_t""yes" 1>&6
19342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19343   cat >> confdefs.h <<EOF
19344 #define $ac_tr_func 1
19345 EOF
19346  
19347 else
19348   echo "$ac_t""no" 1>&6
19349 fi
19350 done
19351     
19352   fi
19353
19354   
19355   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
19356 echo "configure:19357: checking for strtof declaration" >&5
19357   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
19358     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
19359   echo $ac_n "(cached) $ac_c" 1>&6
19360 else
19361   
19362       
19363       ac_ext=C
19364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19365 ac_cpp='$CXXCPP $CPPFLAGS'
19366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19368 cross_compiling=$ac_cv_prog_cxx_cross
19369
19370       cat > conftest.$ac_ext <<EOF
19371 #line 19372 "configure"
19372 #include "confdefs.h"
19373 #include <stdlib.h>
19374 int main() {
19375  strtof(0, 0);
19376 ; return 0; }
19377 EOF
19378 if { (eval echo configure:19379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19379   rm -rf conftest*
19380   glibcpp_cv_func_strtof_use=yes
19381 else
19382   echo "configure: failed program was:" >&5
19383   cat conftest.$ac_ext >&5
19384   rm -rf conftest*
19385   glibcpp_cv_func_strtof_use=no
19386 fi
19387 rm -f conftest*
19388       ac_ext=c
19389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19390 ac_cpp='$CPP $CPPFLAGS'
19391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19393 cross_compiling=$ac_cv_prog_cc_cross
19394
19395     
19396 fi
19397
19398   fi
19399   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
19400   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
19401     for ac_func in strtof
19402 do
19403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19404 echo "configure:19405: checking for $ac_func" >&5
19405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19406   echo $ac_n "(cached) $ac_c" 1>&6
19407 else
19408   cat > conftest.$ac_ext <<EOF
19409 #line 19410 "configure"
19410 #include "confdefs.h"
19411 /* System header to define __stub macros and hopefully few prototypes,
19412     which can conflict with char $ac_func(); below.  */
19413 #include <assert.h>
19414 /* Override any gcc2 internal prototype to avoid an error.  */
19415 /* We use char because int might match the return type of a gcc2
19416     builtin and then its argument prototype would still apply.  */
19417 char $ac_func();
19418
19419 int main() {
19420
19421 /* The GNU C library defines this for functions which it implements
19422     to always fail with ENOSYS.  Some functions are actually named
19423     something starting with __ and the normal name is an alias.  */
19424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19425 choke me
19426 #else
19427 $ac_func();
19428 #endif
19429
19430 ; return 0; }
19431 EOF
19432 if { (eval echo configure:19433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19433   rm -rf conftest*
19434   eval "ac_cv_func_$ac_func=yes"
19435 else
19436   echo "configure: failed program was:" >&5
19437   cat conftest.$ac_ext >&5
19438   rm -rf conftest*
19439   eval "ac_cv_func_$ac_func=no"
19440 fi
19441 rm -f conftest*
19442 fi
19443
19444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19445   echo "$ac_t""yes" 1>&6
19446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19447   cat >> confdefs.h <<EOF
19448 #define $ac_tr_func 1
19449 EOF
19450  
19451 else
19452   echo "$ac_t""no" 1>&6
19453 fi
19454 done
19455     
19456   fi
19457
19458   for ac_func in drand48
19459 do
19460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19461 echo "configure:19462: checking for $ac_func" >&5
19462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19463   echo $ac_n "(cached) $ac_c" 1>&6
19464 else
19465   cat > conftest.$ac_ext <<EOF
19466 #line 19467 "configure"
19467 #include "confdefs.h"
19468 /* System header to define __stub macros and hopefully few prototypes,
19469     which can conflict with char $ac_func(); below.  */
19470 #include <assert.h>
19471 /* Override any gcc2 internal prototype to avoid an error.  */
19472 /* We use char because int might match the return type of a gcc2
19473     builtin and then its argument prototype would still apply.  */
19474 char $ac_func();
19475
19476 int main() {
19477
19478 /* The GNU C library defines this for functions which it implements
19479     to always fail with ENOSYS.  Some functions are actually named
19480     something starting with __ and the normal name is an alias.  */
19481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19482 choke me
19483 #else
19484 $ac_func();
19485 #endif
19486
19487 ; return 0; }
19488 EOF
19489 if { (eval echo configure:19490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19490   rm -rf conftest*
19491   eval "ac_cv_func_$ac_func=yes"
19492 else
19493   echo "configure: failed program was:" >&5
19494   cat conftest.$ac_ext >&5
19495   rm -rf conftest*
19496   eval "ac_cv_func_$ac_func=no"
19497 fi
19498 rm -f conftest*
19499 fi
19500
19501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19502   echo "$ac_t""yes" 1>&6
19503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19504   cat >> confdefs.h <<EOF
19505 #define $ac_tr_func 1
19506 EOF
19507  
19508 else
19509   echo "$ac_t""no" 1>&6
19510 fi
19511 done
19512
19513
19514   CXXFLAGS="$ac_save_CXXFLAGS"
19515
19516   
19517   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
19518 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
19519 echo "configure:19520: checking for locale.h" >&5
19520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19521   echo $ac_n "(cached) $ac_c" 1>&6
19522 else
19523   cat > conftest.$ac_ext <<EOF
19524 #line 19525 "configure"
19525 #include "confdefs.h"
19526 #include <locale.h>
19527 EOF
19528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19529 { (eval echo configure:19530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19531 if test -z "$ac_err"; then
19532   rm -rf conftest*
19533   eval "ac_cv_header_$ac_safe=yes"
19534 else
19535   echo "$ac_err" >&5
19536   echo "configure: failed program was:" >&5
19537   cat conftest.$ac_ext >&5
19538   rm -rf conftest*
19539   eval "ac_cv_header_$ac_safe=no"
19540 fi
19541 rm -f conftest*
19542 fi
19543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19544   echo "$ac_t""yes" 1>&6
19545   
19546     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
19547 echo "configure:19548: checking for LC_MESSAGES" >&5
19548 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
19549   echo $ac_n "(cached) $ac_c" 1>&6
19550 else
19551   cat > conftest.$ac_ext <<EOF
19552 #line 19553 "configure"
19553 #include "confdefs.h"
19554 #include <locale.h>
19555 int main() {
19556 return LC_MESSAGES
19557 ; return 0; }
19558 EOF
19559 if { (eval echo configure:19560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19560   rm -rf conftest*
19561   ac_cv_val_LC_MESSAGES=yes
19562 else
19563   echo "configure: failed program was:" >&5
19564   cat conftest.$ac_ext >&5
19565   rm -rf conftest*
19566   ac_cv_val_LC_MESSAGES=no
19567 fi
19568 rm -f conftest*
19569 fi
19570
19571 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
19572     if test $ac_cv_val_LC_MESSAGES = yes; then
19573       cat >> confdefs.h <<\EOF
19574 #define HAVE_LC_MESSAGES 1
19575 EOF
19576
19577     fi
19578   
19579 else
19580   echo "$ac_t""no" 1>&6
19581 fi
19582
19583
19584
19585   cat > conftest.$ac_ext <<EOF
19586 #line 19587 "configure"
19587 #include "confdefs.h"
19588
19589   #include <setjmp.h>
19590   
19591 int main() {
19592 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
19593 ; return 0; }
19594 EOF
19595 if { (eval echo configure:19596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19596   rm -rf conftest*
19597   cat >> confdefs.h <<\EOF
19598 #define HAVE_SIGSETJMP 1
19599 EOF
19600
19601   
19602 else
19603   echo "configure: failed program was:" >&5
19604   cat conftest.$ac_ext >&5
19605 fi
19606 rm -f conftest*
19607
19608   for ac_hdr in unistd.h
19609 do
19610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19612 echo "configure:19613: checking for $ac_hdr" >&5
19613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19614   echo $ac_n "(cached) $ac_c" 1>&6
19615 else
19616   cat > conftest.$ac_ext <<EOF
19617 #line 19618 "configure"
19618 #include "confdefs.h"
19619 #include <$ac_hdr>
19620 EOF
19621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19622 { (eval echo configure:19623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19624 if test -z "$ac_err"; then
19625   rm -rf conftest*
19626   eval "ac_cv_header_$ac_safe=yes"
19627 else
19628   echo "$ac_err" >&5
19629   echo "configure: failed program was:" >&5
19630   cat conftest.$ac_ext >&5
19631   rm -rf conftest*
19632   eval "ac_cv_header_$ac_safe=no"
19633 fi
19634 rm -f conftest*
19635 fi
19636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19637   echo "$ac_t""yes" 1>&6
19638     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19639   cat >> confdefs.h <<EOF
19640 #define $ac_tr_hdr 1
19641 EOF
19642  
19643 else
19644   echo "$ac_t""no" 1>&6
19645 fi
19646 done
19647
19648 for ac_func in getpagesize
19649 do
19650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19651 echo "configure:19652: checking for $ac_func" >&5
19652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19653   echo $ac_n "(cached) $ac_c" 1>&6
19654 else
19655   cat > conftest.$ac_ext <<EOF
19656 #line 19657 "configure"
19657 #include "confdefs.h"
19658 /* System header to define __stub macros and hopefully few prototypes,
19659     which can conflict with char $ac_func(); below.  */
19660 #include <assert.h>
19661 /* Override any gcc2 internal prototype to avoid an error.  */
19662 /* We use char because int might match the return type of a gcc2
19663     builtin and then its argument prototype would still apply.  */
19664 char $ac_func();
19665
19666 int main() {
19667
19668 /* The GNU C library defines this for functions which it implements
19669     to always fail with ENOSYS.  Some functions are actually named
19670     something starting with __ and the normal name is an alias.  */
19671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19672 choke me
19673 #else
19674 $ac_func();
19675 #endif
19676
19677 ; return 0; }
19678 EOF
19679 if { (eval echo configure:19680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19680   rm -rf conftest*
19681   eval "ac_cv_func_$ac_func=yes"
19682 else
19683   echo "configure: failed program was:" >&5
19684   cat conftest.$ac_ext >&5
19685   rm -rf conftest*
19686   eval "ac_cv_func_$ac_func=no"
19687 fi
19688 rm -f conftest*
19689 fi
19690
19691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19692   echo "$ac_t""yes" 1>&6
19693     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19694   cat >> confdefs.h <<EOF
19695 #define $ac_tr_func 1
19696 EOF
19697  
19698 else
19699   echo "$ac_t""no" 1>&6
19700 fi
19701 done
19702
19703 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
19704 echo "configure:19705: checking for working mmap" >&5
19705 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
19706   echo $ac_n "(cached) $ac_c" 1>&6
19707 else
19708   if test "$cross_compiling" = yes; then
19709   ac_cv_func_mmap_fixed_mapped=no
19710 else
19711   cat > conftest.$ac_ext <<EOF
19712 #line 19713 "configure"
19713 #include "confdefs.h"
19714
19715 /* Thanks to Mike Haertel and Jim Avera for this test.
19716    Here is a matrix of mmap possibilities:
19717         mmap private not fixed
19718         mmap private fixed at somewhere currently unmapped
19719         mmap private fixed at somewhere already mapped
19720         mmap shared not fixed
19721         mmap shared fixed at somewhere currently unmapped
19722         mmap shared fixed at somewhere already mapped
19723    For private mappings, we should verify that changes cannot be read()
19724    back from the file, nor mmap's back from the file at a different
19725    address.  (There have been systems where private was not correctly
19726    implemented like the infamous i386 svr4.0, and systems where the
19727    VM page cache was not coherent with the filesystem buffer cache
19728    like early versions of FreeBSD and possibly contemporary NetBSD.)
19729    For shared mappings, we should conversely verify that changes get
19730    propogated back to all the places they're supposed to be.
19731
19732    Grep wants private fixed already mapped.
19733    The main things grep needs to know about mmap are:
19734    * does it exist and is it safe to write into the mmap'd area
19735    * how to use it (BSD variants)  */
19736 #include <sys/types.h>
19737 #include <fcntl.h>
19738 #include <sys/mman.h>
19739
19740 /* This mess was copied from the GNU getpagesize.h.  */
19741 #ifndef HAVE_GETPAGESIZE
19742 # ifdef HAVE_UNISTD_H
19743 #  include <unistd.h>
19744 # endif
19745
19746 /* Assume that all systems that can run configure have sys/param.h.  */
19747 # ifndef HAVE_SYS_PARAM_H
19748 #  define HAVE_SYS_PARAM_H 1
19749 # endif
19750
19751 # ifdef _SC_PAGESIZE
19752 #  define getpagesize() sysconf(_SC_PAGESIZE)
19753 # else /* no _SC_PAGESIZE */
19754 #  ifdef HAVE_SYS_PARAM_H
19755 #   include <sys/param.h>
19756 #   ifdef EXEC_PAGESIZE
19757 #    define getpagesize() EXEC_PAGESIZE
19758 #   else /* no EXEC_PAGESIZE */
19759 #    ifdef NBPG
19760 #     define getpagesize() NBPG * CLSIZE
19761 #     ifndef CLSIZE
19762 #      define CLSIZE 1
19763 #     endif /* no CLSIZE */
19764 #    else /* no NBPG */
19765 #     ifdef NBPC
19766 #      define getpagesize() NBPC
19767 #     else /* no NBPC */
19768 #      ifdef PAGESIZE
19769 #       define getpagesize() PAGESIZE
19770 #      endif /* PAGESIZE */
19771 #     endif /* no NBPC */
19772 #    endif /* no NBPG */
19773 #   endif /* no EXEC_PAGESIZE */
19774 #  else /* no HAVE_SYS_PARAM_H */
19775 #   define getpagesize() 8192   /* punt totally */
19776 #  endif /* no HAVE_SYS_PARAM_H */
19777 # endif /* no _SC_PAGESIZE */
19778
19779 #endif /* no HAVE_GETPAGESIZE */
19780
19781 #ifdef __cplusplus
19782 extern "C" { void *malloc(unsigned); }
19783 #else
19784 char *malloc();
19785 #endif
19786
19787 int
19788 main()
19789 {
19790         char *data, *data2, *data3;
19791         int i, pagesize;
19792         int fd;
19793
19794         pagesize = getpagesize();
19795
19796         /*
19797          * First, make a file with some known garbage in it.
19798          */
19799         data = malloc(pagesize);
19800         if (!data)
19801                 exit(1);
19802         for (i = 0; i < pagesize; ++i)
19803                 *(data + i) = rand();
19804         umask(0);
19805         fd = creat("conftestmmap", 0600);
19806         if (fd < 0)
19807                 exit(1);
19808         if (write(fd, data, pagesize) != pagesize)
19809                 exit(1);
19810         close(fd);
19811
19812         /*
19813          * Next, try to mmap the file at a fixed address which
19814          * already has something else allocated at it.  If we can,
19815          * also make sure that we see the same garbage.
19816          */
19817         fd = open("conftestmmap", O_RDWR);
19818         if (fd < 0)
19819                 exit(1);
19820         data2 = malloc(2 * pagesize);
19821         if (!data2)
19822                 exit(1);
19823         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
19824         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
19825             MAP_PRIVATE | MAP_FIXED, fd, 0L))
19826                 exit(1);
19827         for (i = 0; i < pagesize; ++i)
19828                 if (*(data + i) != *(data2 + i))
19829                         exit(1);
19830
19831         /*
19832          * Finally, make sure that changes to the mapped area
19833          * do not percolate back to the file as seen by read().
19834          * (This is a bug on some variants of i386 svr4.0.)
19835          */
19836         for (i = 0; i < pagesize; ++i)
19837                 *(data2 + i) = *(data2 + i) + 1;
19838         data3 = malloc(pagesize);
19839         if (!data3)
19840                 exit(1);
19841         if (read(fd, data3, pagesize) != pagesize)
19842                 exit(1);
19843         for (i = 0; i < pagesize; ++i)
19844                 if (*(data + i) != *(data3 + i))
19845                         exit(1);
19846         close(fd);
19847         unlink("conftestmmap");
19848         exit(0);
19849 }
19850
19851 EOF
19852 if { (eval echo configure:19853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19853 then
19854   ac_cv_func_mmap_fixed_mapped=yes
19855 else
19856   echo "configure: failed program was:" >&5
19857   cat conftest.$ac_ext >&5
19858   rm -fr conftest*
19859   ac_cv_func_mmap_fixed_mapped=no
19860 fi
19861 rm -fr conftest*
19862 fi
19863
19864 fi
19865
19866 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
19867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19868   cat >> confdefs.h <<\EOF
19869 #define HAVE_MMAP 1
19870 EOF
19871
19872 fi
19873
19874
19875   # Establish limits on memory usage during 'make check'
19876   
19877   
19878   setrlimit_have_headers=yes
19879   for ac_hdr in sys/resource.h unistd.h
19880 do
19881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19883 echo "configure:19884: checking for $ac_hdr" >&5
19884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19885   echo $ac_n "(cached) $ac_c" 1>&6
19886 else
19887   cat > conftest.$ac_ext <<EOF
19888 #line 19889 "configure"
19889 #include "confdefs.h"
19890 #include <$ac_hdr>
19891 EOF
19892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19893 { (eval echo configure:19894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19895 if test -z "$ac_err"; then
19896   rm -rf conftest*
19897   eval "ac_cv_header_$ac_safe=yes"
19898 else
19899   echo "$ac_err" >&5
19900   echo "configure: failed program was:" >&5
19901   cat conftest.$ac_ext >&5
19902   rm -rf conftest*
19903   eval "ac_cv_header_$ac_safe=no"
19904 fi
19905 rm -f conftest*
19906 fi
19907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19908   echo "$ac_t""yes" 1>&6
19909     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19910   cat >> confdefs.h <<EOF
19911 #define $ac_tr_hdr 1
19912 EOF
19913  
19914 else
19915   echo "$ac_t""no" 1>&6
19916 setrlimit_have_headers=no
19917 fi
19918 done
19919
19920   # If don't have the headers, then we can't run the tests now, and we
19921   # won't be seeing any of these during testsuite compilation.
19922   if test $setrlimit_have_headers = yes; then
19923     # Can't do these in a loop, else the resulting syntax is wrong.
19924     
19925   cat > conftest.$ac_ext <<EOF
19926 #line 19927 "configure"
19927 #include "confdefs.h"
19928 #include <sys/resource.h>
19929                   #include <unistd.h>
19930                  
19931 int main() {
19932  int f = RLIMIT_DATA ; 
19933 ; return 0; }
19934 EOF
19935 if { (eval echo configure:19936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19936   rm -rf conftest*
19937   glibcpp_mresult=1
19938 else
19939   echo "configure: failed program was:" >&5
19940   cat conftest.$ac_ext >&5
19941   rm -rf conftest*
19942   glibcpp_mresult=0
19943 fi
19944 rm -f conftest*
19945   cat >> confdefs.h <<EOF
19946 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
19947 EOF
19948
19949
19950     
19951   cat > conftest.$ac_ext <<EOF
19952 #line 19953 "configure"
19953 #include "confdefs.h"
19954 #include <sys/resource.h>
19955                   #include <unistd.h>
19956                  
19957 int main() {
19958  int f = RLIMIT_RSS ; 
19959 ; return 0; }
19960 EOF
19961 if { (eval echo configure:19962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19962   rm -rf conftest*
19963   glibcpp_mresult=1
19964 else
19965   echo "configure: failed program was:" >&5
19966   cat conftest.$ac_ext >&5
19967   rm -rf conftest*
19968   glibcpp_mresult=0
19969 fi
19970 rm -f conftest*
19971   cat >> confdefs.h <<EOF
19972 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
19973 EOF
19974
19975
19976     
19977   cat > conftest.$ac_ext <<EOF
19978 #line 19979 "configure"
19979 #include "confdefs.h"
19980 #include <sys/resource.h>
19981                   #include <unistd.h>
19982                  
19983 int main() {
19984  int f = RLIMIT_VMEM ; 
19985 ; return 0; }
19986 EOF
19987 if { (eval echo configure:19988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19988   rm -rf conftest*
19989   glibcpp_mresult=1
19990 else
19991   echo "configure: failed program was:" >&5
19992   cat conftest.$ac_ext >&5
19993   rm -rf conftest*
19994   glibcpp_mresult=0
19995 fi
19996 rm -f conftest*
19997   cat >> confdefs.h <<EOF
19998 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
19999 EOF
20000
20001
20002     
20003   cat > conftest.$ac_ext <<EOF
20004 #line 20005 "configure"
20005 #include "confdefs.h"
20006 #include <sys/resource.h>
20007                   #include <unistd.h>
20008                  
20009 int main() {
20010  int f = RLIMIT_AS ; 
20011 ; return 0; }
20012 EOF
20013 if { (eval echo configure:20014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20014   rm -rf conftest*
20015   glibcpp_mresult=1
20016 else
20017   echo "configure: failed program was:" >&5
20018   cat conftest.$ac_ext >&5
20019   rm -rf conftest*
20020   glibcpp_mresult=0
20021 fi
20022 rm -f conftest*
20023   cat >> confdefs.h <<EOF
20024 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
20025 EOF
20026
20027
20028
20029     # Check for rlimit, setrlimit.
20030     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
20031   echo $ac_n "(cached) $ac_c" 1>&6
20032 else
20033   
20034       cat > conftest.$ac_ext <<EOF
20035 #line 20036 "configure"
20036 #include "confdefs.h"
20037 #include <sys/resource.h>
20038                       #include <unistd.h>
20039                      
20040 int main() {
20041  struct rlimit r; setrlimit(0, &r);
20042 ; return 0; }
20043 EOF
20044 if { (eval echo configure:20045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20045   rm -rf conftest*
20046   ac_setrlimit=yes
20047 else
20048   echo "configure: failed program was:" >&5
20049   cat conftest.$ac_ext >&5
20050   rm -rf conftest*
20051   ac_setrlimit=no
20052 fi
20053 rm -f conftest*
20054     
20055 fi
20056
20057   fi
20058
20059   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
20060 echo "configure:20061: checking for testsuite memory limit support" >&5
20061   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
20062     ac_mem_limits=yes
20063     cat >> confdefs.h <<\EOF
20064 #define _GLIBCPP_MEM_LIMITS 1
20065 EOF
20066
20067   else
20068     ac_mem_limits=no
20069   fi
20070   echo "$ac_t""$ac_mem_limits" 1>&6
20071
20072
20073   # Look for setenv, so that extended locale tests can be performed.
20074   
20075   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
20076 echo "configure:20077: checking for setenv declaration" >&5
20077   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
20078     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
20079   echo $ac_n "(cached) $ac_c" 1>&6
20080 else
20081   
20082       
20083       ac_ext=C
20084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20085 ac_cpp='$CXXCPP $CPPFLAGS'
20086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20088 cross_compiling=$ac_cv_prog_cxx_cross
20089
20090       cat > conftest.$ac_ext <<EOF
20091 #line 20092 "configure"
20092 #include "confdefs.h"
20093 #include <stdlib.h>
20094 int main() {
20095  setenv(0, 0, 0);
20096 ; return 0; }
20097 EOF
20098 if { (eval echo configure:20099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20099   rm -rf conftest*
20100   glibcpp_cv_func_setenv_use=yes
20101 else
20102   echo "configure: failed program was:" >&5
20103   cat conftest.$ac_ext >&5
20104   rm -rf conftest*
20105   glibcpp_cv_func_setenv_use=no
20106 fi
20107 rm -f conftest*
20108       ac_ext=c
20109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20110 ac_cpp='$CPP $CPPFLAGS'
20111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20113 cross_compiling=$ac_cv_prog_cc_cross
20114
20115     
20116 fi
20117
20118   fi
20119   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
20120   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
20121     for ac_func in setenv
20122 do
20123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20124 echo "configure:20125: checking for $ac_func" >&5
20125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20126   echo $ac_n "(cached) $ac_c" 1>&6
20127 else
20128   cat > conftest.$ac_ext <<EOF
20129 #line 20130 "configure"
20130 #include "confdefs.h"
20131 /* System header to define __stub macros and hopefully few prototypes,
20132     which can conflict with char $ac_func(); below.  */
20133 #include <assert.h>
20134 /* Override any gcc2 internal prototype to avoid an error.  */
20135 /* We use char because int might match the return type of a gcc2
20136     builtin and then its argument prototype would still apply.  */
20137 char $ac_func();
20138
20139 int main() {
20140
20141 /* The GNU C library defines this for functions which it implements
20142     to always fail with ENOSYS.  Some functions are actually named
20143     something starting with __ and the normal name is an alias.  */
20144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20145 choke me
20146 #else
20147 $ac_func();
20148 #endif
20149
20150 ; return 0; }
20151 EOF
20152 if { (eval echo configure:20153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20153   rm -rf conftest*
20154   eval "ac_cv_func_$ac_func=yes"
20155 else
20156   echo "configure: failed program was:" >&5
20157   cat conftest.$ac_ext >&5
20158   rm -rf conftest*
20159   eval "ac_cv_func_$ac_func=no"
20160 fi
20161 rm -f conftest*
20162 fi
20163
20164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20165   echo "$ac_t""yes" 1>&6
20166     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20167   cat >> confdefs.h <<EOF
20168 #define $ac_tr_func 1
20169 EOF
20170  
20171 else
20172   echo "$ac_t""no" 1>&6
20173 fi
20174 done
20175     
20176   fi
20177
20178
20179 fi
20180
20181 # This depends on the possibly-skipped linker test above.
20182 # Check whether --enable-symvers or --disable-symvers was given.
20183 if test "${enable_symvers+set}" = set; then
20184   enableval="$enable_symvers"
20185   case "$enableval" in
20186  yes) enable_symvers=yes ;;
20187  no)  enable_symvers=no ;;
20188  # other names here, just as sanity checks
20189  #gnu|sun|etcetera) enable_symvers=$enableval ;;
20190  gnu) enable_symvers=$enableval ;;
20191  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
20192  esac
20193 else
20194   enable_symvers=yes
20195 fi
20196
20197 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
20198 # don't know enough about $LD to do tricks... 
20199 if test x$enable_shared = xno || 
20200         test x$LD = x || 
20201         test x$glibcpp_gnu_ld_version = x; then
20202   enable_symvers=no
20203 fi
20204
20205 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
20206 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
20207 echo "configure:20208: checking for shared libgcc" >&5
20208 ac_save_CFLAGS="$CFLAGS"
20209 CFLAGS=' -lgcc_s'
20210 cat > conftest.$ac_ext <<EOF
20211 #line 20212 "configure"
20212 #include "confdefs.h"
20213
20214 int main() {
20215 return 0
20216 ; return 0; }
20217 EOF
20218 if { (eval echo configure:20219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20219   rm -rf conftest*
20220   glibcpp_shared_libgcc=yes
20221 else
20222   echo "configure: failed program was:" >&5
20223   cat conftest.$ac_ext >&5
20224   rm -rf conftest*
20225   glibcpp_shared_libgcc=no
20226 fi
20227 rm -f conftest*
20228 CFLAGS="$ac_save_CFLAGS"
20229 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
20230
20231 # For GNU ld, we need at least this version.  It's 2.12 in the same format
20232 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
20233 glibcpp_min_gnu_ld_version=21200
20234
20235 # Check to see if unspecified "yes" value can win, given results
20236 # above.  
20237 if test $enable_symvers = yes ; then
20238   if test $with_gnu_ld = yes &&
20239     test $glibcpp_shared_libgcc = yes ;
20240   then
20241     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
20242         enable_symvers=gnu
20243     else
20244       ac_test_CFLAGS="${CFLAGS+set}"
20245       ac_save_CFLAGS="$CFLAGS"
20246       CFLAGS='-shared -Wl,--version-script,conftest.map'
20247       enable_symvers=no
20248       
20249       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
20250       
20251       cat > conftest.$ac_ext <<EOF
20252 #line 20253 "configure"
20253 #include "confdefs.h"
20254 int foo;
20255 int main() {
20256
20257 ; return 0; }
20258 EOF
20259 if { (eval echo configure:20260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20260   rm -rf conftest*
20261   enable_symvers=gnu
20262 else
20263   echo "configure: failed program was:" >&5
20264   cat conftest.$ac_ext >&5
20265 fi
20266 rm -f conftest*
20267       if test "$ac_test_CFLAGS" = set; then
20268         CFLAGS="$ac_save_CFLAGS"
20269       else
20270         # this is the suspicious part
20271         CFLAGS=''
20272       fi
20273       rm -f conftest.map
20274     fi
20275   else
20276     # just fail for now
20277     enable_symvers=no
20278   fi
20279 fi
20280
20281 case $enable_symvers in
20282   no)
20283       LINKER_MAP=config/linker-map.dummy
20284       ;;
20285   gnu)
20286       LINKER_MAP=config/linker-map.gnu
20287       ;;
20288 esac
20289
20290
20291
20292
20293 if test $enable_symvers != no; then
20294   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
20295   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
20296 else
20297   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
20298   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
20299 fi
20300 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
20301 echo "configure:20302: checking versioning on shared library symbols" >&5
20302 echo "$ac_t""$enable_symvers" 1>&6
20303
20304
20305 # Propagate the target-specific source directories through the build chain.
20306 OS_INC_SRCDIR=$os_include_dir/bits
20307 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
20308 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
20309
20310
20311
20312
20313 # Set up cross-compile flags
20314
20315
20316
20317 if test "$CANADIAN" = yes; then
20318   CANADIAN_TRUE=
20319   CANADIAN_FALSE='#'
20320 else
20321   CANADIAN_TRUE='#'
20322   CANADIAN_FALSE=
20323 fi
20324  
20325 cat > confcache <<\EOF
20326 # This file is a shell script that caches the results of configure
20327 # tests run on this system so they can be shared between configure
20328 # scripts and configure runs.  It is not useful on other systems.
20329 # If it contains results you don't want to keep, you may remove or edit it.
20330 #
20331 # By default, configure uses ./config.cache as the cache file,
20332 # creating it if it does not exist already.  You can give configure
20333 # the --cache-file=FILE option to use a different cache file; that is
20334 # what configure does when it calls configure scripts in
20335 # subdirectories, so they share the cache.
20336 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20337 # config.status only pays attention to the cache file if you give it the
20338 # --recheck option to rerun configure.
20339 #
20340 EOF
20341 # The following way of writing the cache mishandles newlines in values,
20342 # but we know of no workaround that is simple, portable, and efficient.
20343 # So, don't put newlines in cache variables' values.
20344 # Ultrix sh set writes to stderr and can't be redirected directly,
20345 # and sets the high bit in the cache file unless we assign to the vars.
20346 (set) 2>&1 |
20347   case `(ac_space=' '; set | grep ac_space) 2>&1` in
20348   *ac_space=\ *)
20349     # `set' does not quote correctly, so add quotes (double-quote substitution
20350     # turns \\\\ into \\, and sed turns \\ into \).
20351     sed -n \
20352       -e "s/'/'\\\\''/g" \
20353       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20354     ;;
20355   *)
20356     # `set' quotes correctly as required by POSIX, so do not add quotes.
20357     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20358     ;;
20359   esac >> confcache
20360 if cmp -s $cache_file confcache; then
20361   :
20362 else
20363   if test -w $cache_file; then
20364     echo "updating cache $cache_file"
20365     cat confcache > $cache_file
20366   else
20367     echo "not updating unwritable cache $cache_file"
20368   fi
20369 fi
20370 rm -f confcache
20371
20372
20373 if test "${multilib}" = "yes"; then
20374   multilib_arg="--enable-multilib"
20375 else
20376   multilib_arg=
20377 fi
20378
20379 # Needed so that g++ can find the correct include subdir automatically.
20380 INTERFACE=v3
20381
20382 # Export all the install information
20383
20384 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
20385 # exported correctly in GLIBCPP_CONFIGURE.
20386 glibcpp_toolexecdir=no
20387 glibcpp_toolexeclibdir=no
20388 glibcpp_prefixdir=${prefix}
20389
20390 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
20391 echo "configure:20392: checking for interface version number" >&5
20392 libstdcxx_interface=$INTERFACE
20393 echo "$ac_t""$libstdcxx_interface" 1>&6
20394
20395 # Process the option --with-gxx-include-dir=<path to include-files directory>
20396 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
20397 echo "configure:20398: checking for --with-gxx-include-dir" >&5
20398 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
20399 if test "${with_gxx_include_dir+set}" = set; then
20400   withval="$with_gxx_include_dir"
20401   case "${withval}" in
20402   yes)
20403     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
20404     gxx_include_dir=no
20405     ;;
20406   no)
20407     gxx_include_dir=no
20408     ;;
20409   *)
20410     gxx_include_dir=${withval}
20411     ;;
20412 esac
20413 else
20414   gxx_include_dir=no
20415 fi
20416
20417 echo "$ac_t""$gxx_include_dir" 1>&6
20418
20419 # Process the option "--enable-version-specific-runtime-libs"
20420 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
20421 echo "configure:20422: checking for --enable-version-specific-runtime-libs" >&5
20422 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
20423 if test "${enable_version_specific_runtime_libs+set}" = set; then
20424   enableval="$enable_version_specific_runtime_libs"
20425   case "$enableval" in
20426  yes) version_specific_libs=yes ;;
20427  no)  version_specific_libs=no ;;
20428  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
20429  esac
20430 else
20431   version_specific_libs=no
20432 fi
20433 # Option set, now we can test it.
20434 echo "$ac_t""$version_specific_libs" 1>&6
20435
20436 if test $version_specific_libs = yes; then
20437   # Need the gcc compiler version to know where to install libraries
20438   # and header files if --enable-version-specific-runtime-libs option
20439   # is selected.
20440     gcc_version_trigger=${srcdir}/../gcc/version.c
20441   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
20442   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
20443   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
20444   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
20445   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
20446   fi
20447
20448 # Default case for install directory for include files.
20449 if test $version_specific_libs = no &&
20450    test $gxx_include_dir = no; then
20451   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
20452 fi
20453
20454 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
20455 # Install a library built with a cross compiler in tooldir, not libdir.
20456 if test x"$glibcpp_toolexecdir" = x"no"; then 
20457   if test -n "$with_cross_host" &&
20458      test x"$with_cross_host" != x"no"; then
20459     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
20460     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
20461   else
20462     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
20463     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
20464   fi
20465 fi
20466
20467 echo $ac_n "checking for install location""... $ac_c" 1>&6
20468 echo "configure:20469: checking for install location" >&5
20469 echo "$ac_t""$gxx_include_dir" 1>&6
20470
20471
20472
20473
20474
20475
20476
20477 # Export all the include and flag information to makefiles.
20478
20479   # Root level of the build directory include sources.
20480   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
20481
20482   # Passed down for canadian crosses.
20483   if test x"$CANADIAN" = xyes; then
20484     TOPLEVEL_INCLUDES='-I$(includedir)'
20485   fi
20486
20487   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
20488
20489   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
20490
20491   if test x"$need_libio" = xyes; then
20492     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
20493     
20494   fi
20495
20496   # Now, export this to all the little Makefiles....
20497   
20498   
20499   
20500   
20501
20502
20503   # Optimization flags that are probably a good idea for thrill-seekers. Just
20504   # uncomment the lines below and make, everything else is ready to go... 
20505   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
20506   OPTIMIZE_CXXFLAGS=
20507   
20508
20509   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
20510   
20511
20512
20513 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
20514    grep "enable shared" > /dev/null; then
20515   LIBSUPCXX_PICFLAGS=-prefer-pic
20516 else
20517   LIBSUPCXX_PICFLAGS=
20518 fi
20519
20520
20521 # Generate the various Makefiles, include files, and scripts.
20522 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
20523 # and libsupc++/Makefile.am so that multilib installs will end up
20524 # installed in the correct place. To work around this not being passed
20525 # down from config-ml.in -> top_srcdir/Makefile.am ->
20526 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
20527 trap '' 1 2 15
20528 cat > confcache <<\EOF
20529 # This file is a shell script that caches the results of configure
20530 # tests run on this system so they can be shared between configure
20531 # scripts and configure runs.  It is not useful on other systems.
20532 # If it contains results you don't want to keep, you may remove or edit it.
20533 #
20534 # By default, configure uses ./config.cache as the cache file,
20535 # creating it if it does not exist already.  You can give configure
20536 # the --cache-file=FILE option to use a different cache file; that is
20537 # what configure does when it calls configure scripts in
20538 # subdirectories, so they share the cache.
20539 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20540 # config.status only pays attention to the cache file if you give it the
20541 # --recheck option to rerun configure.
20542 #
20543 EOF
20544 # The following way of writing the cache mishandles newlines in values,
20545 # but we know of no workaround that is simple, portable, and efficient.
20546 # So, don't put newlines in cache variables' values.
20547 # Ultrix sh set writes to stderr and can't be redirected directly,
20548 # and sets the high bit in the cache file unless we assign to the vars.
20549 (set) 2>&1 |
20550   case `(ac_space=' '; set | grep ac_space) 2>&1` in
20551   *ac_space=\ *)
20552     # `set' does not quote correctly, so add quotes (double-quote substitution
20553     # turns \\\\ into \\, and sed turns \\ into \).
20554     sed -n \
20555       -e "s/'/'\\\\''/g" \
20556       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20557     ;;
20558   *)
20559     # `set' quotes correctly as required by POSIX, so do not add quotes.
20560     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20561     ;;
20562   esac >> confcache
20563 if cmp -s $cache_file confcache; then
20564   :
20565 else
20566   if test -w $cache_file; then
20567     echo "updating cache $cache_file"
20568     cat confcache > $cache_file
20569   else
20570     echo "not updating unwritable cache $cache_file"
20571   fi
20572 fi
20573 rm -f confcache
20574
20575 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20576
20577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20578 # Let make expand exec_prefix.
20579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20580
20581 # Any assignment to VPATH causes Sun make to only execute
20582 # the first set of double-colon rules, so remove it if not needed.
20583 # If there is a colon in the path, we need to keep it.
20584 if test "x$srcdir" = x.; then
20585   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
20586 fi
20587
20588 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20589
20590 DEFS=-DHAVE_CONFIG_H
20591
20592 # Without the "./", some shells look in PATH for config.status.
20593 : ${CONFIG_STATUS=./config.status}
20594
20595 echo creating $CONFIG_STATUS
20596 rm -f $CONFIG_STATUS
20597 cat > $CONFIG_STATUS <<EOF
20598 #! /bin/sh
20599 # Generated automatically by configure.
20600 # Run this file to recreate the current configuration.
20601 # This directory was configured as follows,
20602 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20603 #
20604 # $0 $ac_configure_args
20605 #
20606 # Compiler output produced by configure, useful for debugging
20607 # configure, is in ./config.log if it exists.
20608
20609 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20610 for ac_option
20611 do
20612   case "\$ac_option" in
20613   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20614     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20615     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20616   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20617     echo "$CONFIG_STATUS generated by autoconf version 2.13"
20618     exit 0 ;;
20619   -help | --help | --hel | --he | --h)
20620     echo "\$ac_cs_usage"; exit 0 ;;
20621   *) echo "\$ac_cs_usage"; exit 1 ;;
20622   esac
20623 done
20624
20625 ac_given_srcdir=$srcdir
20626 ac_given_INSTALL="$INSTALL"
20627
20628 trap 'rm -fr `echo "Makefile \
20629     include/Makefile src/Makefile \
20630     libmath/Makefile libio/Makefile libsupc++/Makefile \
20631     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20632 EOF
20633 cat >> $CONFIG_STATUS <<EOF
20634
20635 # Protect against being on the right side of a sed subst in config.status.
20636 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20637  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20638 $ac_vpsub
20639 $extrasub
20640 s%@SHELL@%$SHELL%g
20641 s%@CFLAGS@%$CFLAGS%g
20642 s%@CPPFLAGS@%$CPPFLAGS%g
20643 s%@CXXFLAGS@%$CXXFLAGS%g
20644 s%@FFLAGS@%$FFLAGS%g
20645 s%@DEFS@%$DEFS%g
20646 s%@LDFLAGS@%$LDFLAGS%g
20647 s%@LIBS@%$LIBS%g
20648 s%@exec_prefix@%$exec_prefix%g
20649 s%@prefix@%$prefix%g
20650 s%@program_transform_name@%$program_transform_name%g
20651 s%@bindir@%$bindir%g
20652 s%@sbindir@%$sbindir%g
20653 s%@libexecdir@%$libexecdir%g
20654 s%@datadir@%$datadir%g
20655 s%@sysconfdir@%$sysconfdir%g
20656 s%@sharedstatedir@%$sharedstatedir%g
20657 s%@localstatedir@%$localstatedir%g
20658 s%@libdir@%$libdir%g
20659 s%@includedir@%$includedir%g
20660 s%@oldincludedir@%$oldincludedir%g
20661 s%@infodir@%$infodir%g
20662 s%@mandir@%$mandir%g
20663 s%@PACKAGE@%$PACKAGE%g
20664 s%@release_VERSION@%$release_VERSION%g
20665 s%@libtool_VERSION@%$libtool_VERSION%g
20666 s%@host@%$host%g
20667 s%@host_alias@%$host_alias%g
20668 s%@host_cpu@%$host_cpu%g
20669 s%@host_vendor@%$host_vendor%g
20670 s%@host_os@%$host_os%g
20671 s%@target@%$target%g
20672 s%@target_alias@%$target_alias%g
20673 s%@target_cpu@%$target_cpu%g
20674 s%@target_vendor@%$target_vendor%g
20675 s%@target_os@%$target_os%g
20676 s%@build@%$build%g
20677 s%@build_alias@%$build_alias%g
20678 s%@build_cpu@%$build_cpu%g
20679 s%@build_vendor@%$build_vendor%g
20680 s%@build_os@%$build_os%g
20681 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20682 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20683 s%@INSTALL_DATA@%$INSTALL_DATA%g
20684 s%@VERSION@%$VERSION%g
20685 s%@ACLOCAL@%$ACLOCAL%g
20686 s%@AUTOCONF@%$AUTOCONF%g
20687 s%@AUTOMAKE@%$AUTOMAKE%g
20688 s%@AUTOHEADER@%$AUTOHEADER%g
20689 s%@MAKEINFO@%$MAKEINFO%g
20690 s%@SET_MAKE@%$SET_MAKE%g
20691 s%@toplevel_srcdir@%$toplevel_srcdir%g
20692 s%@glibcpp_builddir@%$glibcpp_builddir%g
20693 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
20694 s%@AWK@%$AWK%g
20695 s%@LN_S@%$LN_S%g
20696 s%@glibcpp_basedir@%$glibcpp_basedir%g
20697 s%@CC@%$CC%g
20698 s%@glibcpp_CXX@%$glibcpp_CXX%g
20699 s%@AS@%$AS%g
20700 s%@AR@%$AR%g
20701 s%@RANLIB@%$RANLIB%g
20702 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
20703 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
20704 s%@MAINT@%$MAINT%g
20705 s%@EXEEXT@%$EXEEXT%g
20706 s%@OBJEXT@%$OBJEXT%g
20707 s%@STRIP@%$STRIP%g
20708 s%@LIBTOOL@%$LIBTOOL%g
20709 s%@CXXCPP@%$CXXCPP%g
20710 s%@enable_shared@%$enable_shared%g
20711 s%@enable_static@%$enable_static%g
20712 s%@ifGNUmake@%$ifGNUmake%g
20713 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
20714 s%@CPP@%$CPP%g
20715 s%@CSTDIO_H@%$CSTDIO_H%g
20716 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
20717 s%@CCODECVT_C@%$CCODECVT_C%g
20718 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
20719 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
20720 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
20721 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
20722 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
20723 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
20724 s%@libio_la@%$libio_la%g
20725 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
20726 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
20727 s%@glibcpp_localedir@%$glibcpp_localedir%g
20728 s%@USE_NLS@%$USE_NLS%g
20729 s%@CLOCALE_H@%$CLOCALE_H%g
20730 s%@CCODECVT_H@%$CCODECVT_H%g
20731 s%@CMESSAGES_H@%$CMESSAGES_H%g
20732 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
20733 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
20734 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
20735 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
20736 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
20737 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
20738 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
20739 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
20740 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
20741 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
20742 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
20743 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
20744 s%@WERROR@%$WERROR%g
20745 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
20746 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
20747 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
20748 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
20749 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
20750 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
20751 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
20752 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
20753 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
20754 s%@gxx_include_dir@%$gxx_include_dir%g
20755 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
20756 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
20757 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
20758 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
20759 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
20760 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
20761 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
20762 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
20763 s%@WARN_FLAGS@%$WARN_FLAGS%g
20764 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
20765
20766 CEOF
20767 EOF
20768
20769 cat >> $CONFIG_STATUS <<\EOF
20770
20771 # Split the substitutions into bite-sized pieces for seds with
20772 # small command number limits, like on Digital OSF/1 and HP-UX.
20773 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20774 ac_file=1 # Number of current file.
20775 ac_beg=1 # First line for current file.
20776 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20777 ac_more_lines=:
20778 ac_sed_cmds=""
20779 while $ac_more_lines; do
20780   if test $ac_beg -gt 1; then
20781     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20782   else
20783     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20784   fi
20785   if test ! -s conftest.s$ac_file; then
20786     ac_more_lines=false
20787     rm -f conftest.s$ac_file
20788   else
20789     if test -z "$ac_sed_cmds"; then
20790       ac_sed_cmds="sed -f conftest.s$ac_file"
20791     else
20792       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20793     fi
20794     ac_file=`expr $ac_file + 1`
20795     ac_beg=$ac_end
20796     ac_end=`expr $ac_end + $ac_max_sed_cmds`
20797   fi
20798 done
20799 if test -z "$ac_sed_cmds"; then
20800   ac_sed_cmds=cat
20801 fi
20802 EOF
20803
20804 cat >> $CONFIG_STATUS <<EOF
20805
20806 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
20807     include/Makefile src/Makefile \
20808     libmath/Makefile libio/Makefile libsupc++/Makefile \
20809     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
20810 EOF
20811 cat >> $CONFIG_STATUS <<\EOF
20812 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20813   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20814   case "$ac_file" in
20815   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20816        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20817   *) ac_file_in="${ac_file}.in" ;;
20818   esac
20819
20820   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20821
20822   # Remove last slash and all that follows it.  Not all systems have dirname.
20823   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20824   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20825     # The file is in a subdirectory.
20826     test ! -d "$ac_dir" && mkdir "$ac_dir"
20827     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20828     # A "../" for each directory in $ac_dir_suffix.
20829     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20830   else
20831     ac_dir_suffix= ac_dots=
20832   fi
20833
20834   case "$ac_given_srcdir" in
20835   .)  srcdir=.
20836       if test -z "$ac_dots"; then top_srcdir=.
20837       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20838   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20839   *) # Relative path.
20840     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20841     top_srcdir="$ac_dots$ac_given_srcdir" ;;
20842   esac
20843
20844   case "$ac_given_INSTALL" in
20845   [/$]*) INSTALL="$ac_given_INSTALL" ;;
20846   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20847   esac
20848
20849   echo creating "$ac_file"
20850   rm -f "$ac_file"
20851   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20852   case "$ac_file" in
20853   *Makefile*) ac_comsub="1i\\
20854 # $configure_input" ;;
20855   *) ac_comsub= ;;
20856   esac
20857
20858   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20859   sed -e "$ac_comsub
20860 s%@configure_input@%$configure_input%g
20861 s%@srcdir@%$srcdir%g
20862 s%@top_srcdir@%$top_srcdir%g
20863 s%@INSTALL@%$INSTALL%g
20864 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20865 fi; done
20866 rm -f conftest.s*
20867
20868 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20869 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20870 #
20871 # ac_d sets the value in "#define NAME VALUE" lines.
20872 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20873 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
20874 ac_dC='\3'
20875 ac_dD='%g'
20876 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20877 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20878 ac_uB='\([      ]\)%\1#\2define\3'
20879 ac_uC=' '
20880 ac_uD='\4%g'
20881 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20882 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20883 ac_eB='$%\1#\2define\3'
20884 ac_eC=' '
20885 ac_eD='%g'
20886
20887 if test "${CONFIG_HEADERS+set}" != set; then
20888 EOF
20889 cat >> $CONFIG_STATUS <<EOF
20890   CONFIG_HEADERS="config.h"
20891 EOF
20892 cat >> $CONFIG_STATUS <<\EOF
20893 fi
20894 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20895   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20896   case "$ac_file" in
20897   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20898        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20899   *) ac_file_in="${ac_file}.in" ;;
20900   esac
20901
20902   echo creating $ac_file
20903
20904   rm -f conftest.frag conftest.in conftest.out
20905   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20906   cat $ac_file_inputs > conftest.in
20907
20908 EOF
20909
20910 # Transform confdefs.h into a sed script conftest.vals that substitutes
20911 # the proper values into config.h.in to produce config.h.  And first:
20912 # Protect against being on the right side of a sed subst in config.status.
20913 # Protect against being in an unquoted here document in config.status.
20914 rm -f conftest.vals
20915 cat > conftest.hdr <<\EOF
20916 s/[\\&%]/\\&/g
20917 s%[\\$`]%\\&%g
20918 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20919 s%ac_d%ac_u%gp
20920 s%ac_u%ac_e%gp
20921 EOF
20922 sed -n -f conftest.hdr confdefs.h > conftest.vals
20923 rm -f conftest.hdr
20924
20925 # This sed command replaces #undef with comments.  This is necessary, for
20926 # example, in the case of _POSIX_SOURCE, which is predefined and required
20927 # on some systems where configure will not decide to define it.
20928 cat >> conftest.vals <<\EOF
20929 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20930 EOF
20931
20932 # Break up conftest.vals because some shells have a limit on
20933 # the size of here documents, and old seds have small limits too.
20934
20935 rm -f conftest.tail
20936 while :
20937 do
20938   ac_lines=`grep -c . conftest.vals`
20939   # grep -c gives empty output for an empty file on some AIX systems.
20940   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20941   # Write a limited-size here document to conftest.frag.
20942   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20943   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20944   echo 'CEOF
20945   sed -f conftest.frag conftest.in > conftest.out
20946   rm -f conftest.in
20947   mv conftest.out conftest.in
20948 ' >> $CONFIG_STATUS
20949   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20950   rm -f conftest.vals
20951   mv conftest.tail conftest.vals
20952 done
20953 rm -f conftest.vals
20954
20955 cat >> $CONFIG_STATUS <<\EOF
20956   rm -f conftest.frag conftest.h
20957   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
20958   cat conftest.in >> conftest.h
20959   rm -f conftest.in
20960   if cmp -s $ac_file conftest.h 2>/dev/null; then
20961     echo "$ac_file is unchanged"
20962     rm -f conftest.h
20963   else
20964     # Remove last slash and all that follows it.  Not all systems have dirname.
20965       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20966       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20967       # The file is in a subdirectory.
20968       test ! -d "$ac_dir" && mkdir "$ac_dir"
20969     fi
20970     rm -f $ac_file
20971     mv conftest.h $ac_file
20972   fi
20973 fi; done
20974
20975 EOF
20976
20977 cat >> $CONFIG_STATUS <<EOF
20978 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
20979 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
20980 EOF
20981
20982 cat >> $CONFIG_STATUS <<\EOF
20983 srcdir=$ac_given_srcdir
20984 while test -n "$ac_sources"; do
20985   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20986   set $ac_sources; ac_source=$1; shift; ac_sources=$*
20987
20988   echo "linking $srcdir/$ac_source to $ac_dest"
20989
20990   if test ! -r $srcdir/$ac_source; then
20991     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
20992   fi
20993   rm -f $ac_dest
20994
20995   # Make relative symlinks.
20996   # Remove last slash and all that follows it.  Not all systems have dirname.
20997   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
20998   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
20999     # The dest file is in a subdirectory.
21000     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
21001     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
21002     # A "../" for each directory in $ac_dest_dir_suffix.
21003     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
21004   else
21005     ac_dest_dir_suffix= ac_dots=
21006   fi
21007
21008   case "$srcdir" in
21009   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
21010   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
21011   esac
21012
21013   # Make a symlink if possible; otherwise try a hard link.
21014   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21015     ln $srcdir/$ac_source $ac_dest; then :
21016   else
21017     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
21018   fi
21019 done
21020 EOF
21021 cat >> $CONFIG_STATUS <<EOF
21022
21023 srcdir=${srcdir}
21024 host=${host}
21025 target=${target}
21026 with_multisubdir=${with_multisubdir}
21027 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21028 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21029 glibcpp_basedir=${glibcpp_basedir}
21030 CC="${CC}"
21031 CXX="${CXX}"
21032
21033 EOF
21034 cat >> $CONFIG_STATUS <<\EOF
21035 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
21036 if test -n "$CONFIG_FILES"; then
21037   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
21038   grep '^MULTISUBDIR =' Makefile >> src/Makefile
21039   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
21040 fi
21041 chmod +x mkcheck
21042 chmod +x testsuite_flags
21043
21044 exit 0
21045 EOF
21046 chmod +x $CONFIG_STATUS
21047 rm -fr confdefs* $ac_clean_files
21048 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21049
21050
21051
21052 # Sanity checking & User-visible messages.
21053 # Checks down here, otherwise they get scrolled off before
21054 # the user will notice.
21055
21056 # Trying to get more people to read documentation.  Possibly remove
21057 # check and warn all the time. There is no "informational" AC_MSG_
21058 # macro, so these are going to be printed even when --quiet/--silent
21059 # is given.
21060 if test ! -f stamp-sanity-warned; then
21061   touch stamp-sanity-warned
21062   echo ""
21063   echo "Please make certain that you read the installation information here:"
21064   echo "  faster => ${srcdir}/docs/install.html"
21065   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
21066   echo ""
21067   echo "and the configuration information here:"
21068   echo "  faster => ${srcdir}/docs/configopts.html"
21069   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
21070   echo ""
21071   echo "before proceeding with ${_cv_gnu_make_command}."
21072   echo ""
21073 fi