OSDN Git Service

2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
[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 gawk mawk 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         ;;
3840     c_std)   
3841         CSHADOW_FLAGS=""
3842         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3843         ;;
3844     c)   
3845         CSHADOW_FLAGS=""
3846         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3847         ;;
3848   esac
3849
3850   
3851   
3852   
3853
3854 if test "$enable_cheaders" = c; then
3855   GLIBCPP_C_HEADERS_C_TRUE=
3856   GLIBCPP_C_HEADERS_C_FALSE='#'
3857 else
3858   GLIBCPP_C_HEADERS_C_TRUE='#'
3859   GLIBCPP_C_HEADERS_C_FALSE=
3860 fi
3861   
3862
3863 if test "$enable_cheaders" = c_std; then
3864   GLIBCPP_C_HEADERS_C_STD_TRUE=
3865   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3866 else
3867   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3868   GLIBCPP_C_HEADERS_C_STD_FALSE=
3869 fi
3870
3871
3872   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3873 echo "configure:3874: checking for thread model used by GCC" >&5
3874   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3875   echo "$ac_t""$target_thread_file" 1>&6
3876
3877   if test $target_thread_file != single; then
3878     cat >> confdefs.h <<\EOF
3879 #define HAVE_GTHR_DEFAULT 1
3880 EOF
3881
3882     cat >> confdefs.h <<\EOF
3883 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3884 EOF
3885
3886   fi
3887
3888   glibcpp_thread_h=gthr-$target_thread_file.h
3889   
3890
3891 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3892 if test "${enable_cxx_flags+set}" = set; then
3893   enableval="$enable_cxx_flags"
3894   case "x$enableval" in
3895  xyes)   
3896         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3897  xno|x)  
3898         enable_cxx_flags='' ;;
3899  *)      
3900         enable_cxx_flags="$enableval" ;;
3901  esac
3902 else
3903   enable_cxx_flags='none'
3904 fi
3905
3906
3907 if test "$enable_cxx_flags" = "none"; then 
3908   enable_cxx_flags=''; 
3909 fi
3910
3911 if test -n "$enable_cxx_flags"; then
3912     for f in $enable_cxx_flags; do
3913         case "$f" in
3914             -fhonor-std)  ;;
3915             -*)  ;;
3916             *)   # and we're trying to pass /what/ exactly?
3917                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3918         esac
3919     done
3920 fi
3921 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3922
3923
3924
3925   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3926 echo "configure:3927: checking for exception model to use" >&5
3927   
3928   ac_ext=C
3929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3930 ac_cpp='$CXXCPP $CPPFLAGS'
3931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3933 cross_compiling=$ac_cv_prog_cxx_cross
3934
3935   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3936 if test "${enable_sjlj_exceptions+set}" = set; then
3937   enableval="$enable_sjlj_exceptions"
3938   :
3939 else
3940                        cat > conftest.$ac_ext << EOF
3941 #line 3942 "configure"
3942 struct S { ~S(); };
3943 void bar();
3944 void foo()
3945 {
3946   S s;
3947   bar();
3948 }
3949 EOF
3950    old_CXXFLAGS="$CXXFLAGS"  
3951    CXXFLAGS=-S
3952    if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3953      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3954        enable_sjlj_exceptions=yes
3955      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3956        enable_sjlj_exceptions=no
3957      fi
3958    fi
3959    CXXFLAGS="$old_CXXFLAGS"
3960    rm -f conftest*
3961 fi
3962
3963    if test x$enable_sjlj_exceptions = xyes; then
3964      cat >> confdefs.h <<\EOF
3965 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3966 EOF
3967
3968      ac_exception_model_name=sjlj
3969    elif test x$enable_sjlj_exceptions = xno; then
3970      ac_exception_model_name="call frame"
3971    else
3972      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3973    fi
3974    ac_ext=c
3975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3979 cross_compiling=$ac_cv_prog_cc_cross
3980
3981    echo "$ac_t""$ac_exception_model_name" 1>&6
3982
3983
3984   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3985 echo "configure:3986: checking for use of libunwind" >&5
3986   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3987 if test "${enable_libunwind_exceptions+set}" = set; then
3988   enableval="$enable_libunwind_exceptions"
3989   use_libunwind_exceptions=$enableval
3990 else
3991   use_libunwind_exceptions=no
3992 fi
3993
3994   echo "$ac_t""$use_libunwind_exceptions" 1>&6
3995     if test x"$use_libunwind_exceptions" = xyes; then
3996     LIBUNWIND_FLAG="-lunwind"
3997   else
3998     LIBUNWIND_FLAG=""
3999   fi
4000   
4001
4002 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4003 if test "${enable_concept_checks+set}" = set; then
4004   enableval="$enable_concept_checks"
4005   case "$enableval" in
4006  yes) enable_concept_checks=yes ;;
4007  no)  enable_concept_checks=no ;;
4008  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4009  esac
4010 else
4011   enable_concept_checks=no
4012 fi
4013 if test x"$enable_concept_checks" = xyes; then
4014   cat >> confdefs.h <<\EOF
4015 #define _GLIBCPP_CONCEPT_CHECKS 1
4016 EOF
4017
4018 fi
4019
4020
4021
4022 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4023
4024   # This lets us hard-code the functionality we know
4025   # we'll have in the cross target environment. "Let" is a
4026   # sugar-coated word placed on an especially dull and tedious hack, actually.
4027   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4028   # that involve linking can't be used:
4029   # "cannot open sim-crt0.o"
4030   # "cannot open crt0.o"
4031   # etc. All this is because there currently exists no unified,
4032   # consistent way for top level CC information to be passed down
4033   # to target directories: newlib includes, newlib linking info,
4034   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4035   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4036
4037   # We are being configured with some form of cross compiler.
4038   GLIBCPP_IS_CROSS_COMPILING=1
4039
4040   # If Canadian cross, then don't pick up tools from the build
4041   # directory.
4042   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4043     CANADIAN=yes
4044   else
4045     CANADIAN=no
4046   fi
4047
4048   # Construct crosses by hand, eliminating bits that need ld...
4049   # GLIBCPP_CHECK_COMPILER_FEATURES
4050   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4051   # GLIBCPP_CHECK_MATH_SUPPORT
4052
4053   case "$target_alias" in
4054     *-linux*)
4055       # Check for available headers.
4056       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4057         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4058         fp.h locale.h float.h inttypes.h
4059 do
4060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4062 echo "configure:4063: checking for $ac_hdr" >&5
4063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4064   echo $ac_n "(cached) $ac_c" 1>&6
4065 else
4066   cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 #include <$ac_hdr>
4070 EOF
4071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4072 { (eval echo configure:4073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4074 if test -z "$ac_err"; then
4075   rm -rf conftest*
4076   eval "ac_cv_header_$ac_safe=yes"
4077 else
4078   echo "$ac_err" >&5
4079   echo "configure: failed program was:" >&5
4080   cat conftest.$ac_ext >&5
4081   rm -rf conftest*
4082   eval "ac_cv_header_$ac_safe=no"
4083 fi
4084 rm -f conftest*
4085 fi
4086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4087   echo "$ac_t""yes" 1>&6
4088     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4089   cat >> confdefs.h <<EOF
4090 #define $ac_tr_hdr 1
4091 EOF
4092  
4093 else
4094   echo "$ac_t""no" 1>&6
4095 fi
4096 done
4097
4098       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4099       
4100       
4101   # If we're not using GNU ld, then there's no point in even trying these
4102   # tests.  Check for that first.  We should have already tested for gld
4103   # by now (in libtool), but require it now just to be safe...
4104   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4105   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4106   
4107
4108   # The name set by libtool depends on the version of libtool.  Shame on us
4109   # for depending on an impl detail, but c'est la vie.  Older versions used
4110   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4111   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4112   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4113   # set (hence we're using an older libtool), then set it.
4114   if test x${with_gnu_ld+set} != xset; then
4115     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4116       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4117       with_gnu_ld=no
4118     else
4119       with_gnu_ld=$ac_cv_prog_gnu_ld
4120     fi
4121   fi
4122
4123   # Start by getting the version number.  I think the libtool test already
4124   # does some of this, but throws away the result.
4125   
4126   ldver=`$LD --version 2>/dev/null | head -1 | \
4127          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4128   
4129   glibcpp_gnu_ld_version=`echo $ldver | \
4130          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4131
4132   # Set --gc-sections.
4133   if test "$with_gnu_ld" = "notbroken"; then
4134     # GNU ld it is!  Joy and bunny rabbits!
4135
4136     # All these tests are for C++; save the language and the compiler flags.
4137     # Need to do this so that g++ won't try to link in libstdc++
4138     ac_test_CFLAGS="${CFLAGS+set}"
4139     ac_save_CFLAGS="$CFLAGS"
4140     CFLAGS='-x c++  -Wl,--gc-sections'
4141
4142     # Check for -Wl,--gc-sections
4143     # XXX This test is broken at the moment, as symbols required for
4144     # linking are now in libsupc++ (not built yet.....). In addition, 
4145     # this test has cored on solaris in the past. In addition,
4146     # --gc-sections doesn't really work at the moment (keeps on discarding
4147     # used sections, first .eh_frame and now some of the glibc sections for
4148     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4149     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4150 echo "configure:4151: checking for ld that supports -Wl,--gc-sections" >&5
4151     if test "$cross_compiling" = yes; then
4152   ac_sectionLDflags=yes
4153 else
4154   cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157
4158      int main(void) 
4159      {
4160        try { throw 1; }
4161        catch (...) { };
4162        return 0;
4163      }
4164     
4165 EOF
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4167 then
4168   ac_sectionLDflags=yes
4169 else
4170   echo "configure: failed program was:" >&5
4171   cat conftest.$ac_ext >&5
4172   rm -fr conftest*
4173   ac_sectionLDflags=no
4174 fi
4175 rm -fr conftest*
4176 fi
4177
4178     if test "$ac_test_CFLAGS" = set; then
4179       CFLAGS="$ac_save_CFLAGS"
4180     else
4181       # this is the suspicious part
4182       CFLAGS=''
4183     fi
4184     if test "$ac_sectionLDflags" = "yes"; then
4185       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4186     fi
4187     echo "$ac_t""$ac_sectionLDflags" 1>&6
4188   fi
4189
4190   # Set linker optimization flags.
4191   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4192     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4193   fi
4194
4195   
4196   
4197
4198       
4199     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4200 echo "configure:4201: checking for main in -lm" >&5
4201 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4203   echo $ac_n "(cached) $ac_c" 1>&6
4204 else
4205   ac_save_LIBS="$LIBS"
4206 LIBS="-lm  $LIBS"
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210
4211 int main() {
4212 main()
4213 ; return 0; }
4214 EOF
4215 if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4216   rm -rf conftest*
4217   eval "ac_cv_lib_$ac_lib_var=yes"
4218 else
4219   echo "configure: failed program was:" >&5
4220   cat conftest.$ac_ext >&5
4221   rm -rf conftest*
4222   eval "ac_cv_lib_$ac_lib_var=no"
4223 fi
4224 rm -f conftest*
4225 LIBS="$ac_save_LIBS"
4226
4227 fi
4228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4229   echo "$ac_t""yes" 1>&6
4230     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4231     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4232   cat >> confdefs.h <<EOF
4233 #define $ac_tr_lib 1
4234 EOF
4235
4236   LIBS="-lm $LIBS"
4237
4238 else
4239   echo "$ac_t""no" 1>&6
4240 fi
4241
4242   for ac_func in nan copysignf
4243 do
4244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4245 echo "configure:4246: checking for $ac_func" >&5
4246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4247   echo $ac_n "(cached) $ac_c" 1>&6
4248 else
4249   cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 /* System header to define __stub macros and hopefully few prototypes,
4253     which can conflict with char $ac_func(); below.  */
4254 #include <assert.h>
4255 /* Override any gcc2 internal prototype to avoid an error.  */
4256 /* We use char because int might match the return type of a gcc2
4257     builtin and then its argument prototype would still apply.  */
4258 char $ac_func();
4259
4260 int main() {
4261
4262 /* The GNU C library defines this for functions which it implements
4263     to always fail with ENOSYS.  Some functions are actually named
4264     something starting with __ and the normal name is an alias.  */
4265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4266 choke me
4267 #else
4268 $ac_func();
4269 #endif
4270
4271 ; return 0; }
4272 EOF
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4274   rm -rf conftest*
4275   eval "ac_cv_func_$ac_func=yes"
4276 else
4277   echo "configure: failed program was:" >&5
4278   cat conftest.$ac_ext >&5
4279   rm -rf conftest*
4280   eval "ac_cv_func_$ac_func=no"
4281 fi
4282 rm -f conftest*
4283 fi
4284
4285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4286   echo "$ac_t""yes" 1>&6
4287     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4288   cat >> confdefs.h <<EOF
4289 #define $ac_tr_func 1
4290 EOF
4291  
4292 else
4293   echo "$ac_t""no" 1>&6
4294 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4295 fi
4296 done
4297
4298
4299     for ac_func in __signbit
4300 do
4301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4302 echo "configure:4303: checking for $ac_func" >&5
4303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4304   echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306   cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* System header to define __stub macros and hopefully few prototypes,
4310     which can conflict with char $ac_func(); below.  */
4311 #include <assert.h>
4312 /* Override any gcc2 internal prototype to avoid an error.  */
4313 /* We use char because int might match the return type of a gcc2
4314     builtin and then its argument prototype would still apply.  */
4315 char $ac_func();
4316
4317 int main() {
4318
4319 /* The GNU C library defines this for functions which it implements
4320     to always fail with ENOSYS.  Some functions are actually named
4321     something starting with __ and the normal name is an alias.  */
4322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4323 choke me
4324 #else
4325 $ac_func();
4326 #endif
4327
4328 ; return 0; }
4329 EOF
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331   rm -rf conftest*
4332   eval "ac_cv_func_$ac_func=yes"
4333 else
4334   echo "configure: failed program was:" >&5
4335   cat conftest.$ac_ext >&5
4336   rm -rf conftest*
4337   eval "ac_cv_func_$ac_func=no"
4338 fi
4339 rm -f conftest*
4340 fi
4341
4342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4343   echo "$ac_t""yes" 1>&6
4344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4345   cat >> confdefs.h <<EOF
4346 #define $ac_tr_func 1
4347 EOF
4348  
4349 else
4350   echo "$ac_t""no" 1>&6
4351 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4352 fi
4353 done
4354
4355   for ac_func in __signbitf
4356 do
4357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4358 echo "configure:4359: checking for $ac_func" >&5
4359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4360   echo $ac_n "(cached) $ac_c" 1>&6
4361 else
4362   cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 /* System header to define __stub macros and hopefully few prototypes,
4366     which can conflict with char $ac_func(); below.  */
4367 #include <assert.h>
4368 /* Override any gcc2 internal prototype to avoid an error.  */
4369 /* We use char because int might match the return type of a gcc2
4370     builtin and then its argument prototype would still apply.  */
4371 char $ac_func();
4372
4373 int main() {
4374
4375 /* The GNU C library defines this for functions which it implements
4376     to always fail with ENOSYS.  Some functions are actually named
4377     something starting with __ and the normal name is an alias.  */
4378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4379 choke me
4380 #else
4381 $ac_func();
4382 #endif
4383
4384 ; return 0; }
4385 EOF
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4387   rm -rf conftest*
4388   eval "ac_cv_func_$ac_func=yes"
4389 else
4390   echo "configure: failed program was:" >&5
4391   cat conftest.$ac_ext >&5
4392   rm -rf conftest*
4393   eval "ac_cv_func_$ac_func=no"
4394 fi
4395 rm -f conftest*
4396 fi
4397
4398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4399   echo "$ac_t""yes" 1>&6
4400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4401   cat >> confdefs.h <<EOF
4402 #define $ac_tr_func 1
4403 EOF
4404  
4405 else
4406   echo "$ac_t""no" 1>&6
4407 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4408 fi
4409 done
4410
4411
4412           if test x$ac_cv_func_copysignl = x"yes"; then
4413     for ac_func in __signbitl
4414 do
4415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4416 echo "configure:4417: checking for $ac_func" >&5
4417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4418   echo $ac_n "(cached) $ac_c" 1>&6
4419 else
4420   cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 /* System header to define __stub macros and hopefully few prototypes,
4424     which can conflict with char $ac_func(); below.  */
4425 #include <assert.h>
4426 /* Override any gcc2 internal prototype to avoid an error.  */
4427 /* We use char because int might match the return type of a gcc2
4428     builtin and then its argument prototype would still apply.  */
4429 char $ac_func();
4430
4431 int main() {
4432
4433 /* The GNU C library defines this for functions which it implements
4434     to always fail with ENOSYS.  Some functions are actually named
4435     something starting with __ and the normal name is an alias.  */
4436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4437 choke me
4438 #else
4439 $ac_func();
4440 #endif
4441
4442 ; return 0; }
4443 EOF
4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4445   rm -rf conftest*
4446   eval "ac_cv_func_$ac_func=yes"
4447 else
4448   echo "configure: failed program was:" >&5
4449   cat conftest.$ac_ext >&5
4450   rm -rf conftest*
4451   eval "ac_cv_func_$ac_func=no"
4452 fi
4453 rm -f conftest*
4454 fi
4455
4456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4457   echo "$ac_t""yes" 1>&6
4458     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4459   cat >> confdefs.h <<EOF
4460 #define $ac_tr_func 1
4461 EOF
4462  
4463 else
4464   echo "$ac_t""no" 1>&6
4465 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4466 fi
4467 done
4468
4469   fi
4470
4471   
4472
4473       
4474
4475       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4476 echo "configure:4477: checking for mbstate_t" >&5
4477   cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 #include <wchar.h>
4481 int main() {
4482 mbstate_t teststate;
4483 ; return 0; }
4484 EOF
4485 if { (eval echo configure:4486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4486   rm -rf conftest*
4487   have_mbstate_t=yes
4488 else
4489   echo "configure: failed program was:" >&5
4490   cat conftest.$ac_ext >&5
4491   rm -rf conftest*
4492   have_mbstate_t=no
4493 fi
4494 rm -f conftest*
4495   echo "$ac_t""$have_mbstate_t" 1>&6
4496   if test x"$have_mbstate_t" = xyes; then
4497     cat >> confdefs.h <<\EOF
4498 #define HAVE_MBSTATE_T 1
4499 EOF
4500
4501   fi
4502
4503     for ac_hdr in wchar.h
4504 do
4505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4507 echo "configure:4508: checking for $ac_hdr" >&5
4508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4509   echo $ac_n "(cached) $ac_c" 1>&6
4510 else
4511   cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 #include <$ac_hdr>
4515 EOF
4516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4517 { (eval echo configure:4518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4519 if test -z "$ac_err"; then
4520   rm -rf conftest*
4521   eval "ac_cv_header_$ac_safe=yes"
4522 else
4523   echo "$ac_err" >&5
4524   echo "configure: failed program was:" >&5
4525   cat conftest.$ac_ext >&5
4526   rm -rf conftest*
4527   eval "ac_cv_header_$ac_safe=no"
4528 fi
4529 rm -f conftest*
4530 fi
4531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4532   echo "$ac_t""yes" 1>&6
4533     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4534   cat >> confdefs.h <<EOF
4535 #define $ac_tr_hdr 1
4536 EOF
4537  ac_has_wchar_h=yes
4538 else
4539   echo "$ac_t""no" 1>&6
4540 ac_has_wchar_h=no
4541 fi
4542 done
4543
4544   for ac_hdr in wctype.h
4545 do
4546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_hdr" >&5
4549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4550   echo $ac_n "(cached) $ac_c" 1>&6
4551 else
4552   cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 #include <$ac_hdr>
4556 EOF
4557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4558 { (eval echo configure:4559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4560 if test -z "$ac_err"; then
4561   rm -rf conftest*
4562   eval "ac_cv_header_$ac_safe=yes"
4563 else
4564   echo "$ac_err" >&5
4565   echo "configure: failed program was:" >&5
4566   cat conftest.$ac_ext >&5
4567   rm -rf conftest*
4568   eval "ac_cv_header_$ac_safe=no"
4569 fi
4570 rm -f conftest*
4571 fi
4572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4573   echo "$ac_t""yes" 1>&6
4574     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4575   cat >> confdefs.h <<EOF
4576 #define $ac_tr_hdr 1
4577 EOF
4578  ac_has_wctype_h=yes
4579 else
4580   echo "$ac_t""no" 1>&6
4581 ac_has_wctype_h=no
4582 fi
4583 done
4584
4585   
4586     if test x"$ac_has_wchar_h" = xyes &&
4587      test x"$ac_has_wctype_h" = xyes &&
4588      test x"$enable_c_mbchar" != xno; then
4589       
4590             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4591 echo "configure:4592: checking for WCHAR_MIN and WCHAR_MAX" >&5
4592     cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 #include <wchar.h>
4596 int main() {
4597 int i = WCHAR_MIN; int j = WCHAR_MAX;
4598 ; return 0; }
4599 EOF
4600 if { (eval echo configure:4601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4601   rm -rf conftest*
4602   has_wchar_minmax=yes
4603 else
4604   echo "configure: failed program was:" >&5
4605   cat conftest.$ac_ext >&5
4606   rm -rf conftest*
4607   has_wchar_minmax=no
4608 fi
4609 rm -f conftest*
4610     echo "$ac_t""$has_wchar_minmax" 1>&6
4611     
4612             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4613 echo "configure:4614: checking for WEOF" >&5
4614     cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617
4618       #include <wchar.h>
4619       #include <stddef.h>
4620 int main() {
4621 wint_t i = WEOF;
4622 ; return 0; }
4623 EOF
4624 if { (eval echo configure:4625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4625   rm -rf conftest*
4626   has_weof=yes
4627 else
4628   echo "configure: failed program was:" >&5
4629   cat conftest.$ac_ext >&5
4630   rm -rf conftest*
4631   has_weof=no
4632 fi
4633 rm -f conftest*
4634     echo "$ac_t""$has_weof" 1>&6
4635   
4636         ac_wfuncs=yes
4637     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4638 do
4639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4640 echo "configure:4641: checking for $ac_func" >&5
4641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4642   echo $ac_n "(cached) $ac_c" 1>&6
4643 else
4644   cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4647 /* System header to define __stub macros and hopefully few prototypes,
4648     which can conflict with char $ac_func(); below.  */
4649 #include <assert.h>
4650 /* Override any gcc2 internal prototype to avoid an error.  */
4651 /* We use char because int might match the return type of a gcc2
4652     builtin and then its argument prototype would still apply.  */
4653 char $ac_func();
4654
4655 int main() {
4656
4657 /* The GNU C library defines this for functions which it implements
4658     to always fail with ENOSYS.  Some functions are actually named
4659     something starting with __ and the normal name is an alias.  */
4660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4661 choke me
4662 #else
4663 $ac_func();
4664 #endif
4665
4666 ; return 0; }
4667 EOF
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4669   rm -rf conftest*
4670   eval "ac_cv_func_$ac_func=yes"
4671 else
4672   echo "configure: failed program was:" >&5
4673   cat conftest.$ac_ext >&5
4674   rm -rf conftest*
4675   eval "ac_cv_func_$ac_func=no"
4676 fi
4677 rm -f conftest*
4678 fi
4679
4680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4681   echo "$ac_t""yes" 1>&6
4682     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4683   cat >> confdefs.h <<EOF
4684 #define $ac_tr_func 1
4685 EOF
4686  
4687 else
4688   echo "$ac_t""no" 1>&6
4689 \
4690     ac_wfuncs=no
4691 fi
4692 done
4693
4694   
4695         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4696     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4697     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4698     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4699     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4700     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4701 do
4702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_func" >&5
4704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4705   echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707   cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* System header to define __stub macros and hopefully few prototypes,
4711     which can conflict with char $ac_func(); below.  */
4712 #include <assert.h>
4713 /* Override any gcc2 internal prototype to avoid an error.  */
4714 /* We use char because int might match the return type of a gcc2
4715     builtin and then its argument prototype would still apply.  */
4716 char $ac_func();
4717
4718 int main() {
4719
4720 /* The GNU C library defines this for functions which it implements
4721     to always fail with ENOSYS.  Some functions are actually named
4722     something starting with __ and the normal name is an alias.  */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 choke me
4725 #else
4726 $ac_func();
4727 #endif
4728
4729 ; return 0; }
4730 EOF
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732   rm -rf conftest*
4733   eval "ac_cv_func_$ac_func=yes"
4734 else
4735   echo "configure: failed program was:" >&5
4736   cat conftest.$ac_ext >&5
4737   rm -rf conftest*
4738   eval "ac_cv_func_$ac_func=no"
4739 fi
4740 rm -f conftest*
4741 fi
4742
4743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4744   echo "$ac_t""yes" 1>&6
4745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4746   cat >> confdefs.h <<EOF
4747 #define $ac_tr_func 1
4748 EOF
4749  
4750 else
4751   echo "$ac_t""no" 1>&6
4752 \
4753     ac_wfuncs=no
4754 fi
4755 done
4756
4757
4758     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4759 echo "configure:4760: checking for ISO C99 wchar_t support" >&5
4760     if test x"$has_weof" = xyes &&
4761        test x"$has_wchar_minmax" = xyes &&
4762        test x"$ac_wfuncs" = xyes; then
4763       ac_isoC99_wchar_t=yes
4764     else
4765       ac_isoC99_wchar_t=no
4766     fi
4767     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4768   
4769             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4770 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4771 echo "configure:4772: checking for iconv.h" >&5
4772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4773   echo $ac_n "(cached) $ac_c" 1>&6
4774 else
4775   cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 #include <iconv.h>
4779 EOF
4780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4781 { (eval echo configure:4782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4783 if test -z "$ac_err"; then
4784   rm -rf conftest*
4785   eval "ac_cv_header_$ac_safe=yes"
4786 else
4787   echo "$ac_err" >&5
4788   echo "configure: failed program was:" >&5
4789   cat conftest.$ac_ext >&5
4790   rm -rf conftest*
4791   eval "ac_cv_header_$ac_safe=no"
4792 fi
4793 rm -f conftest*
4794 fi
4795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4796   echo "$ac_t""yes" 1>&6
4797   ac_has_iconv_h=yes
4798 else
4799   echo "$ac_t""no" 1>&6
4800 ac_has_iconv_h=no
4801 fi
4802
4803     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4804 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4805 echo "configure:4806: checking for langinfo.h" >&5
4806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4807   echo $ac_n "(cached) $ac_c" 1>&6
4808 else
4809   cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4812 #include <langinfo.h>
4813 EOF
4814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4815 { (eval echo configure:4816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4817 if test -z "$ac_err"; then
4818   rm -rf conftest*
4819   eval "ac_cv_header_$ac_safe=yes"
4820 else
4821   echo "$ac_err" >&5
4822   echo "configure: failed program was:" >&5
4823   cat conftest.$ac_ext >&5
4824   rm -rf conftest*
4825   eval "ac_cv_header_$ac_safe=no"
4826 fi
4827 rm -f conftest*
4828 fi
4829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4830   echo "$ac_t""yes" 1>&6
4831   ac_has_langinfo_h=yes
4832 else
4833   echo "$ac_t""no" 1>&6
4834 ac_has_langinfo_h=no
4835 fi
4836
4837
4838         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4839 echo "configure:4840: checking for iconv in -liconv" >&5
4840 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4842   echo $ac_n "(cached) $ac_c" 1>&6
4843 else
4844   ac_save_LIBS="$LIBS"
4845 LIBS="-liconv  $LIBS"
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 /* Override any gcc2 internal prototype to avoid an error.  */
4850 /* We use char because int might match the return type of a gcc2
4851     builtin and then its argument prototype would still apply.  */
4852 char iconv();
4853
4854 int main() {
4855 iconv()
4856 ; return 0; }
4857 EOF
4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859   rm -rf conftest*
4860   eval "ac_cv_lib_$ac_lib_var=yes"
4861 else
4862   echo "configure: failed program was:" >&5
4863   cat conftest.$ac_ext >&5
4864   rm -rf conftest*
4865   eval "ac_cv_lib_$ac_lib_var=no"
4866 fi
4867 rm -f conftest*
4868 LIBS="$ac_save_LIBS"
4869
4870 fi
4871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4872   echo "$ac_t""yes" 1>&6
4873   libiconv="-liconv"
4874 else
4875   echo "$ac_t""no" 1>&6
4876 fi
4877
4878     ac_save_LIBS="$LIBS"
4879     LIBS="$LIBS $libiconv"
4880
4881     for ac_func in iconv_open iconv_close iconv nl_langinfo
4882 do
4883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_func" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886   echo $ac_n "(cached) $ac_c" 1>&6
4887 else
4888   cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892     which can conflict with char $ac_func(); below.  */
4893 #include <assert.h>
4894 /* Override any gcc2 internal prototype to avoid an error.  */
4895 /* We use char because int might match the return type of a gcc2
4896     builtin and then its argument prototype would still apply.  */
4897 char $ac_func();
4898
4899 int main() {
4900
4901 /* The GNU C library defines this for functions which it implements
4902     to always fail with ENOSYS.  Some functions are actually named
4903     something starting with __ and the normal name is an alias.  */
4904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4905 choke me
4906 #else
4907 $ac_func();
4908 #endif
4909
4910 ; return 0; }
4911 EOF
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913   rm -rf conftest*
4914   eval "ac_cv_func_$ac_func=yes"
4915 else
4916   echo "configure: failed program was:" >&5
4917   cat conftest.$ac_ext >&5
4918   rm -rf conftest*
4919   eval "ac_cv_func_$ac_func=no"
4920 fi
4921 rm -f conftest*
4922 fi
4923
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925   echo "$ac_t""yes" 1>&6
4926     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927   cat >> confdefs.h <<EOF
4928 #define $ac_tr_func 1
4929 EOF
4930  \
4931     ac_XPG2funcs=yes
4932 else
4933   echo "$ac_t""no" 1>&6
4934 ac_XPG2funcs=no
4935 fi
4936 done
4937
4938   
4939     LIBS="$ac_save_LIBS"
4940
4941     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4942 echo "configure:4943: checking for XPG2 wchar_t support" >&5
4943     if test x"$ac_has_iconv_h" = xyes &&
4944        test x"$ac_has_langinfo_h" = xyes &&
4945        test x"$ac_XPG2funcs" = xyes; then
4946       ac_XPG2_wchar_t=yes
4947     else
4948       ac_XPG2_wchar_t=no
4949     fi
4950     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4951   
4952             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4953 echo "configure:4954: checking for enabled wchar_t specializations" >&5
4954     if test x"$ac_isoC99_wchar_t" = xyes &&
4955        test x"$ac_XPG2_wchar_t" = xyes; then
4956       cat >> confdefs.h <<\EOF
4957 #define _GLIBCPP_USE_WCHAR_T 1
4958 EOF
4959
4960       echo "$ac_t"""yes"" 1>&6
4961     else
4962       echo "$ac_t"""no"" 1>&6
4963     fi
4964   else
4965         echo "configure: warning: wchar_t support disabled." 1>&2
4966   fi
4967
4968       os_include_dir="config/os/gnu-linux"
4969       cat >> confdefs.h <<\EOF
4970 #define HAVE_COPYSIGN 1
4971 EOF
4972
4973       cat >> confdefs.h <<\EOF
4974 #define HAVE_COPYSIGNF 1
4975 EOF
4976
4977       cat >> confdefs.h <<\EOF
4978 #define HAVE_FINITEF 1
4979 EOF
4980
4981       cat >> confdefs.h <<\EOF
4982 #define HAVE_FREXPF 1
4983 EOF
4984
4985       cat >> confdefs.h <<\EOF
4986 #define HAVE_HYPOTF 1
4987 EOF
4988
4989       cat >> confdefs.h <<\EOF
4990 #define HAVE_SINCOS 1
4991 EOF
4992
4993       cat >> confdefs.h <<\EOF
4994 #define HAVE_SINCOSF 1
4995 EOF
4996
4997       if test x"long_double_math_on_this_cpu" = x"yes"; then
4998         cat >> confdefs.h <<\EOF
4999 #define HAVE_HYPOTL 1
5000 EOF
5001
5002       fi
5003       ;;
5004     *-hpux*)
5005       # Check for available headers.
5006       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5007         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5008         fp.h locale.h float.h inttypes.h
5009 do
5010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_hdr" >&5
5013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5014   echo $ac_n "(cached) $ac_c" 1>&6
5015 else
5016   cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 #include <$ac_hdr>
5020 EOF
5021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5022 { (eval echo configure:5023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5024 if test -z "$ac_err"; then
5025   rm -rf conftest*
5026   eval "ac_cv_header_$ac_safe=yes"
5027 else
5028   echo "$ac_err" >&5
5029   echo "configure: failed program was:" >&5
5030   cat conftest.$ac_ext >&5
5031   rm -rf conftest*
5032   eval "ac_cv_header_$ac_safe=no"
5033 fi
5034 rm -f conftest*
5035 fi
5036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5037   echo "$ac_t""yes" 1>&6
5038     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5039   cat >> confdefs.h <<EOF
5040 #define $ac_tr_hdr 1
5041 EOF
5042  
5043 else
5044   echo "$ac_t""no" 1>&6
5045 fi
5046 done
5047
5048       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5049       
5050       
5051   # If we're not using GNU ld, then there's no point in even trying these
5052   # tests.  Check for that first.  We should have already tested for gld
5053   # by now (in libtool), but require it now just to be safe...
5054   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5055   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5056   
5057
5058   # The name set by libtool depends on the version of libtool.  Shame on us
5059   # for depending on an impl detail, but c'est la vie.  Older versions used
5060   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5061   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5062   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5063   # set (hence we're using an older libtool), then set it.
5064   if test x${with_gnu_ld+set} != xset; then
5065     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5066       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5067       with_gnu_ld=no
5068     else
5069       with_gnu_ld=$ac_cv_prog_gnu_ld
5070     fi
5071   fi
5072
5073   # Start by getting the version number.  I think the libtool test already
5074   # does some of this, but throws away the result.
5075   
5076   ldver=`$LD --version 2>/dev/null | head -1 | \
5077          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5078   
5079   glibcpp_gnu_ld_version=`echo $ldver | \
5080          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5081
5082   # Set --gc-sections.
5083   if test "$with_gnu_ld" = "notbroken"; then
5084     # GNU ld it is!  Joy and bunny rabbits!
5085
5086     # All these tests are for C++; save the language and the compiler flags.
5087     # Need to do this so that g++ won't try to link in libstdc++
5088     ac_test_CFLAGS="${CFLAGS+set}"
5089     ac_save_CFLAGS="$CFLAGS"
5090     CFLAGS='-x c++  -Wl,--gc-sections'
5091
5092     # Check for -Wl,--gc-sections
5093     # XXX This test is broken at the moment, as symbols required for
5094     # linking are now in libsupc++ (not built yet.....). In addition, 
5095     # this test has cored on solaris in the past. In addition,
5096     # --gc-sections doesn't really work at the moment (keeps on discarding
5097     # used sections, first .eh_frame and now some of the glibc sections for
5098     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5099     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5100 echo "configure:5101: checking for ld that supports -Wl,--gc-sections" >&5
5101     if test "$cross_compiling" = yes; then
5102   ac_sectionLDflags=yes
5103 else
5104   cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107
5108      int main(void) 
5109      {
5110        try { throw 1; }
5111        catch (...) { };
5112        return 0;
5113      }
5114     
5115 EOF
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5117 then
5118   ac_sectionLDflags=yes
5119 else
5120   echo "configure: failed program was:" >&5
5121   cat conftest.$ac_ext >&5
5122   rm -fr conftest*
5123   ac_sectionLDflags=no
5124 fi
5125 rm -fr conftest*
5126 fi
5127
5128     if test "$ac_test_CFLAGS" = set; then
5129       CFLAGS="$ac_save_CFLAGS"
5130     else
5131       # this is the suspicious part
5132       CFLAGS=''
5133     fi
5134     if test "$ac_sectionLDflags" = "yes"; then
5135       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5136     fi
5137     echo "$ac_t""$ac_sectionLDflags" 1>&6
5138   fi
5139
5140   # Set linker optimization flags.
5141   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5142     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5143   fi
5144
5145   
5146   
5147
5148       
5149     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5150 echo "configure:5151: checking for main in -lm" >&5
5151 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5153   echo $ac_n "(cached) $ac_c" 1>&6
5154 else
5155   ac_save_LIBS="$LIBS"
5156 LIBS="-lm  $LIBS"
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5160
5161 int main() {
5162 main()
5163 ; return 0; }
5164 EOF
5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5166   rm -rf conftest*
5167   eval "ac_cv_lib_$ac_lib_var=yes"
5168 else
5169   echo "configure: failed program was:" >&5
5170   cat conftest.$ac_ext >&5
5171   rm -rf conftest*
5172   eval "ac_cv_lib_$ac_lib_var=no"
5173 fi
5174 rm -f conftest*
5175 LIBS="$ac_save_LIBS"
5176
5177 fi
5178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5179   echo "$ac_t""yes" 1>&6
5180     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5181     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5182   cat >> confdefs.h <<EOF
5183 #define $ac_tr_lib 1
5184 EOF
5185
5186   LIBS="-lm $LIBS"
5187
5188 else
5189   echo "$ac_t""no" 1>&6
5190 fi
5191
5192   for ac_func in nan copysignf
5193 do
5194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5195 echo "configure:5196: checking for $ac_func" >&5
5196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5197   echo $ac_n "(cached) $ac_c" 1>&6
5198 else
5199   cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* System header to define __stub macros and hopefully few prototypes,
5203     which can conflict with char $ac_func(); below.  */
5204 #include <assert.h>
5205 /* Override any gcc2 internal prototype to avoid an error.  */
5206 /* We use char because int might match the return type of a gcc2
5207     builtin and then its argument prototype would still apply.  */
5208 char $ac_func();
5209
5210 int main() {
5211
5212 /* The GNU C library defines this for functions which it implements
5213     to always fail with ENOSYS.  Some functions are actually named
5214     something starting with __ and the normal name is an alias.  */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5216 choke me
5217 #else
5218 $ac_func();
5219 #endif
5220
5221 ; return 0; }
5222 EOF
5223 if { (eval echo configure:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5224   rm -rf conftest*
5225   eval "ac_cv_func_$ac_func=yes"
5226 else
5227   echo "configure: failed program was:" >&5
5228   cat conftest.$ac_ext >&5
5229   rm -rf conftest*
5230   eval "ac_cv_func_$ac_func=no"
5231 fi
5232 rm -f conftest*
5233 fi
5234
5235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5236   echo "$ac_t""yes" 1>&6
5237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5238   cat >> confdefs.h <<EOF
5239 #define $ac_tr_func 1
5240 EOF
5241  
5242 else
5243   echo "$ac_t""no" 1>&6
5244 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5245 fi
5246 done
5247
5248
5249     for ac_func in __signbit
5250 do
5251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_func" >&5
5253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5254   echo $ac_n "(cached) $ac_c" 1>&6
5255 else
5256   cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* System header to define __stub macros and hopefully few prototypes,
5260     which can conflict with char $ac_func(); below.  */
5261 #include <assert.h>
5262 /* Override any gcc2 internal prototype to avoid an error.  */
5263 /* We use char because int might match the return type of a gcc2
5264     builtin and then its argument prototype would still apply.  */
5265 char $ac_func();
5266
5267 int main() {
5268
5269 /* The GNU C library defines this for functions which it implements
5270     to always fail with ENOSYS.  Some functions are actually named
5271     something starting with __ and the normal name is an alias.  */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273 choke me
5274 #else
5275 $ac_func();
5276 #endif
5277
5278 ; return 0; }
5279 EOF
5280 if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5281   rm -rf conftest*
5282   eval "ac_cv_func_$ac_func=yes"
5283 else
5284   echo "configure: failed program was:" >&5
5285   cat conftest.$ac_ext >&5
5286   rm -rf conftest*
5287   eval "ac_cv_func_$ac_func=no"
5288 fi
5289 rm -f conftest*
5290 fi
5291
5292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5293   echo "$ac_t""yes" 1>&6
5294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5295   cat >> confdefs.h <<EOF
5296 #define $ac_tr_func 1
5297 EOF
5298  
5299 else
5300   echo "$ac_t""no" 1>&6
5301 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5302 fi
5303 done
5304
5305   for ac_func in __signbitf
5306 do
5307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5308 echo "configure:5309: checking for $ac_func" >&5
5309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5310   echo $ac_n "(cached) $ac_c" 1>&6
5311 else
5312   cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 /* System header to define __stub macros and hopefully few prototypes,
5316     which can conflict with char $ac_func(); below.  */
5317 #include <assert.h>
5318 /* Override any gcc2 internal prototype to avoid an error.  */
5319 /* We use char because int might match the return type of a gcc2
5320     builtin and then its argument prototype would still apply.  */
5321 char $ac_func();
5322
5323 int main() {
5324
5325 /* The GNU C library defines this for functions which it implements
5326     to always fail with ENOSYS.  Some functions are actually named
5327     something starting with __ and the normal name is an alias.  */
5328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5329 choke me
5330 #else
5331 $ac_func();
5332 #endif
5333
5334 ; return 0; }
5335 EOF
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5337   rm -rf conftest*
5338   eval "ac_cv_func_$ac_func=yes"
5339 else
5340   echo "configure: failed program was:" >&5
5341   cat conftest.$ac_ext >&5
5342   rm -rf conftest*
5343   eval "ac_cv_func_$ac_func=no"
5344 fi
5345 rm -f conftest*
5346 fi
5347
5348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5349   echo "$ac_t""yes" 1>&6
5350     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5351   cat >> confdefs.h <<EOF
5352 #define $ac_tr_func 1
5353 EOF
5354  
5355 else
5356   echo "$ac_t""no" 1>&6
5357 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5358 fi
5359 done
5360
5361
5362           if test x$ac_cv_func_copysignl = x"yes"; then
5363     for ac_func in __signbitl
5364 do
5365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5366 echo "configure:5367: checking for $ac_func" >&5
5367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5368   echo $ac_n "(cached) $ac_c" 1>&6
5369 else
5370   cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 /* System header to define __stub macros and hopefully few prototypes,
5374     which can conflict with char $ac_func(); below.  */
5375 #include <assert.h>
5376 /* Override any gcc2 internal prototype to avoid an error.  */
5377 /* We use char because int might match the return type of a gcc2
5378     builtin and then its argument prototype would still apply.  */
5379 char $ac_func();
5380
5381 int main() {
5382
5383 /* The GNU C library defines this for functions which it implements
5384     to always fail with ENOSYS.  Some functions are actually named
5385     something starting with __ and the normal name is an alias.  */
5386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5387 choke me
5388 #else
5389 $ac_func();
5390 #endif
5391
5392 ; return 0; }
5393 EOF
5394 if { (eval echo configure:5395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5395   rm -rf conftest*
5396   eval "ac_cv_func_$ac_func=yes"
5397 else
5398   echo "configure: failed program was:" >&5
5399   cat conftest.$ac_ext >&5
5400   rm -rf conftest*
5401   eval "ac_cv_func_$ac_func=no"
5402 fi
5403 rm -f conftest*
5404 fi
5405
5406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5407   echo "$ac_t""yes" 1>&6
5408     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5409   cat >> confdefs.h <<EOF
5410 #define $ac_tr_func 1
5411 EOF
5412  
5413 else
5414   echo "$ac_t""no" 1>&6
5415 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5416 fi
5417 done
5418
5419   fi
5420
5421   
5422
5423       
5424
5425       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5426 echo "configure:5427: checking for mbstate_t" >&5
5427   cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 #include <wchar.h>
5431 int main() {
5432 mbstate_t teststate;
5433 ; return 0; }
5434 EOF
5435 if { (eval echo configure:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5436   rm -rf conftest*
5437   have_mbstate_t=yes
5438 else
5439   echo "configure: failed program was:" >&5
5440   cat conftest.$ac_ext >&5
5441   rm -rf conftest*
5442   have_mbstate_t=no
5443 fi
5444 rm -f conftest*
5445   echo "$ac_t""$have_mbstate_t" 1>&6
5446   if test x"$have_mbstate_t" = xyes; then
5447     cat >> confdefs.h <<\EOF
5448 #define HAVE_MBSTATE_T 1
5449 EOF
5450
5451   fi
5452
5453     for ac_hdr in wchar.h
5454 do
5455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5457 echo "configure:5458: checking for $ac_hdr" >&5
5458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5459   echo $ac_n "(cached) $ac_c" 1>&6
5460 else
5461   cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 #include <$ac_hdr>
5465 EOF
5466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5467 { (eval echo configure:5468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5469 if test -z "$ac_err"; then
5470   rm -rf conftest*
5471   eval "ac_cv_header_$ac_safe=yes"
5472 else
5473   echo "$ac_err" >&5
5474   echo "configure: failed program was:" >&5
5475   cat conftest.$ac_ext >&5
5476   rm -rf conftest*
5477   eval "ac_cv_header_$ac_safe=no"
5478 fi
5479 rm -f conftest*
5480 fi
5481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5482   echo "$ac_t""yes" 1>&6
5483     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5484   cat >> confdefs.h <<EOF
5485 #define $ac_tr_hdr 1
5486 EOF
5487  ac_has_wchar_h=yes
5488 else
5489   echo "$ac_t""no" 1>&6
5490 ac_has_wchar_h=no
5491 fi
5492 done
5493
5494   for ac_hdr in wctype.h
5495 do
5496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_hdr" >&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 <$ac_hdr>
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_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5525   cat >> confdefs.h <<EOF
5526 #define $ac_tr_hdr 1
5527 EOF
5528  ac_has_wctype_h=yes
5529 else
5530   echo "$ac_t""no" 1>&6
5531 ac_has_wctype_h=no
5532 fi
5533 done
5534
5535   
5536     if test x"$ac_has_wchar_h" = xyes &&
5537      test x"$ac_has_wctype_h" = xyes &&
5538      test x"$enable_c_mbchar" != xno; then
5539       
5540             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5541 echo "configure:5542: checking for WCHAR_MIN and WCHAR_MAX" >&5
5542     cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 #include <wchar.h>
5546 int main() {
5547 int i = WCHAR_MIN; int j = WCHAR_MAX;
5548 ; return 0; }
5549 EOF
5550 if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5551   rm -rf conftest*
5552   has_wchar_minmax=yes
5553 else
5554   echo "configure: failed program was:" >&5
5555   cat conftest.$ac_ext >&5
5556   rm -rf conftest*
5557   has_wchar_minmax=no
5558 fi
5559 rm -f conftest*
5560     echo "$ac_t""$has_wchar_minmax" 1>&6
5561     
5562             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5563 echo "configure:5564: checking for WEOF" >&5
5564     cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567
5568       #include <wchar.h>
5569       #include <stddef.h>
5570 int main() {
5571 wint_t i = WEOF;
5572 ; return 0; }
5573 EOF
5574 if { (eval echo configure:5575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5575   rm -rf conftest*
5576   has_weof=yes
5577 else
5578   echo "configure: failed program was:" >&5
5579   cat conftest.$ac_ext >&5
5580   rm -rf conftest*
5581   has_weof=no
5582 fi
5583 rm -f conftest*
5584     echo "$ac_t""$has_weof" 1>&6
5585   
5586         ac_wfuncs=yes
5587     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5588 do
5589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_func" >&5
5591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5592   echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594   cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598     which can conflict with char $ac_func(); below.  */
5599 #include <assert.h>
5600 /* Override any gcc2 internal prototype to avoid an error.  */
5601 /* We use char because int might match the return type of a gcc2
5602     builtin and then its argument prototype would still apply.  */
5603 char $ac_func();
5604
5605 int main() {
5606
5607 /* The GNU C library defines this for functions which it implements
5608     to always fail with ENOSYS.  Some functions are actually named
5609     something starting with __ and the normal name is an alias.  */
5610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5611 choke me
5612 #else
5613 $ac_func();
5614 #endif
5615
5616 ; return 0; }
5617 EOF
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5619   rm -rf conftest*
5620   eval "ac_cv_func_$ac_func=yes"
5621 else
5622   echo "configure: failed program was:" >&5
5623   cat conftest.$ac_ext >&5
5624   rm -rf conftest*
5625   eval "ac_cv_func_$ac_func=no"
5626 fi
5627 rm -f conftest*
5628 fi
5629
5630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5631   echo "$ac_t""yes" 1>&6
5632     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633   cat >> confdefs.h <<EOF
5634 #define $ac_tr_func 1
5635 EOF
5636  
5637 else
5638   echo "$ac_t""no" 1>&6
5639 \
5640     ac_wfuncs=no
5641 fi
5642 done
5643
5644   
5645         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5646     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5647     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5648     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5649     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5650     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5651 do
5652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5653 echo "configure:5654: checking for $ac_func" >&5
5654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5655   echo $ac_n "(cached) $ac_c" 1>&6
5656 else
5657   cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 /* System header to define __stub macros and hopefully few prototypes,
5661     which can conflict with char $ac_func(); below.  */
5662 #include <assert.h>
5663 /* Override any gcc2 internal prototype to avoid an error.  */
5664 /* We use char because int might match the return type of a gcc2
5665     builtin and then its argument prototype would still apply.  */
5666 char $ac_func();
5667
5668 int main() {
5669
5670 /* The GNU C library defines this for functions which it implements
5671     to always fail with ENOSYS.  Some functions are actually named
5672     something starting with __ and the normal name is an alias.  */
5673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5674 choke me
5675 #else
5676 $ac_func();
5677 #endif
5678
5679 ; return 0; }
5680 EOF
5681 if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5682   rm -rf conftest*
5683   eval "ac_cv_func_$ac_func=yes"
5684 else
5685   echo "configure: failed program was:" >&5
5686   cat conftest.$ac_ext >&5
5687   rm -rf conftest*
5688   eval "ac_cv_func_$ac_func=no"
5689 fi
5690 rm -f conftest*
5691 fi
5692
5693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5694   echo "$ac_t""yes" 1>&6
5695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5696   cat >> confdefs.h <<EOF
5697 #define $ac_tr_func 1
5698 EOF
5699  
5700 else
5701   echo "$ac_t""no" 1>&6
5702 \
5703     ac_wfuncs=no
5704 fi
5705 done
5706
5707
5708     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5709 echo "configure:5710: checking for ISO C99 wchar_t support" >&5
5710     if test x"$has_weof" = xyes &&
5711        test x"$has_wchar_minmax" = xyes &&
5712        test x"$ac_wfuncs" = xyes; then
5713       ac_isoC99_wchar_t=yes
5714     else
5715       ac_isoC99_wchar_t=no
5716     fi
5717     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5718   
5719             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5720 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5721 echo "configure:5722: checking for iconv.h" >&5
5722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5723   echo $ac_n "(cached) $ac_c" 1>&6
5724 else
5725   cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 #include <iconv.h>
5729 EOF
5730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5731 { (eval echo configure:5732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5733 if test -z "$ac_err"; then
5734   rm -rf conftest*
5735   eval "ac_cv_header_$ac_safe=yes"
5736 else
5737   echo "$ac_err" >&5
5738   echo "configure: failed program was:" >&5
5739   cat conftest.$ac_ext >&5
5740   rm -rf conftest*
5741   eval "ac_cv_header_$ac_safe=no"
5742 fi
5743 rm -f conftest*
5744 fi
5745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5746   echo "$ac_t""yes" 1>&6
5747   ac_has_iconv_h=yes
5748 else
5749   echo "$ac_t""no" 1>&6
5750 ac_has_iconv_h=no
5751 fi
5752
5753     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5754 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5755 echo "configure:5756: checking for langinfo.h" >&5
5756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5757   echo $ac_n "(cached) $ac_c" 1>&6
5758 else
5759   cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 #include <langinfo.h>
5763 EOF
5764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5765 { (eval echo configure:5766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5767 if test -z "$ac_err"; then
5768   rm -rf conftest*
5769   eval "ac_cv_header_$ac_safe=yes"
5770 else
5771   echo "$ac_err" >&5
5772   echo "configure: failed program was:" >&5
5773   cat conftest.$ac_ext >&5
5774   rm -rf conftest*
5775   eval "ac_cv_header_$ac_safe=no"
5776 fi
5777 rm -f conftest*
5778 fi
5779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5780   echo "$ac_t""yes" 1>&6
5781   ac_has_langinfo_h=yes
5782 else
5783   echo "$ac_t""no" 1>&6
5784 ac_has_langinfo_h=no
5785 fi
5786
5787
5788         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5789 echo "configure:5790: checking for iconv in -liconv" >&5
5790 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5792   echo $ac_n "(cached) $ac_c" 1>&6
5793 else
5794   ac_save_LIBS="$LIBS"
5795 LIBS="-liconv  $LIBS"
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799 /* Override any gcc2 internal prototype to avoid an error.  */
5800 /* We use char because int might match the return type of a gcc2
5801     builtin and then its argument prototype would still apply.  */
5802 char iconv();
5803
5804 int main() {
5805 iconv()
5806 ; return 0; }
5807 EOF
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809   rm -rf conftest*
5810   eval "ac_cv_lib_$ac_lib_var=yes"
5811 else
5812   echo "configure: failed program was:" >&5
5813   cat conftest.$ac_ext >&5
5814   rm -rf conftest*
5815   eval "ac_cv_lib_$ac_lib_var=no"
5816 fi
5817 rm -f conftest*
5818 LIBS="$ac_save_LIBS"
5819
5820 fi
5821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5822   echo "$ac_t""yes" 1>&6
5823   libiconv="-liconv"
5824 else
5825   echo "$ac_t""no" 1>&6
5826 fi
5827
5828     ac_save_LIBS="$LIBS"
5829     LIBS="$LIBS $libiconv"
5830
5831     for ac_func in iconv_open iconv_close iconv nl_langinfo
5832 do
5833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5834 echo "configure:5835: checking for $ac_func" >&5
5835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5836   echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838   cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 /* System header to define __stub macros and hopefully few prototypes,
5842     which can conflict with char $ac_func(); below.  */
5843 #include <assert.h>
5844 /* Override any gcc2 internal prototype to avoid an error.  */
5845 /* We use char because int might match the return type of a gcc2
5846     builtin and then its argument prototype would still apply.  */
5847 char $ac_func();
5848
5849 int main() {
5850
5851 /* The GNU C library defines this for functions which it implements
5852     to always fail with ENOSYS.  Some functions are actually named
5853     something starting with __ and the normal name is an alias.  */
5854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5855 choke me
5856 #else
5857 $ac_func();
5858 #endif
5859
5860 ; return 0; }
5861 EOF
5862 if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5863   rm -rf conftest*
5864   eval "ac_cv_func_$ac_func=yes"
5865 else
5866   echo "configure: failed program was:" >&5
5867   cat conftest.$ac_ext >&5
5868   rm -rf conftest*
5869   eval "ac_cv_func_$ac_func=no"
5870 fi
5871 rm -f conftest*
5872 fi
5873
5874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5875   echo "$ac_t""yes" 1>&6
5876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5877   cat >> confdefs.h <<EOF
5878 #define $ac_tr_func 1
5879 EOF
5880  \
5881     ac_XPG2funcs=yes
5882 else
5883   echo "$ac_t""no" 1>&6
5884 ac_XPG2funcs=no
5885 fi
5886 done
5887
5888   
5889     LIBS="$ac_save_LIBS"
5890
5891     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5892 echo "configure:5893: checking for XPG2 wchar_t support" >&5
5893     if test x"$ac_has_iconv_h" = xyes &&
5894        test x"$ac_has_langinfo_h" = xyes &&
5895        test x"$ac_XPG2funcs" = xyes; then
5896       ac_XPG2_wchar_t=yes
5897     else
5898       ac_XPG2_wchar_t=no
5899     fi
5900     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5901   
5902             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5903 echo "configure:5904: checking for enabled wchar_t specializations" >&5
5904     if test x"$ac_isoC99_wchar_t" = xyes &&
5905        test x"$ac_XPG2_wchar_t" = xyes; then
5906       cat >> confdefs.h <<\EOF
5907 #define _GLIBCPP_USE_WCHAR_T 1
5908 EOF
5909
5910       echo "$ac_t"""yes"" 1>&6
5911     else
5912       echo "$ac_t"""no"" 1>&6
5913     fi
5914   else
5915         echo "configure: warning: wchar_t support disabled." 1>&2
5916   fi
5917
5918       os_include_dir="config/os/hpux"
5919       cat >> confdefs.h <<\EOF
5920 #define HAVE_COPYSIGN 1
5921 EOF
5922
5923       cat >> confdefs.h <<\EOF
5924 #define HAVE_COPYSIGNF 1
5925 EOF
5926
5927       cat >> confdefs.h <<\EOF
5928 #define HAVE_FINITEF 1
5929 EOF
5930
5931       cat >> confdefs.h <<\EOF
5932 #define HAVE_FREXPF 1
5933 EOF
5934
5935       cat >> confdefs.h <<\EOF
5936 #define HAVE_HYPOT 1
5937 EOF
5938
5939       cat >> confdefs.h <<\EOF
5940 #define HAVE_SINCOS 1
5941 EOF
5942
5943       cat >> confdefs.h <<\EOF
5944 #define HAVE_SINCOSF 1
5945 EOF
5946
5947       ;;
5948     *-netbsd*)
5949       # Check for available headers.
5950       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5951         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5952         fp.h locale.h float.h inttypes.h
5953 do
5954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5956 echo "configure:5957: checking for $ac_hdr" >&5
5957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5958   echo $ac_n "(cached) $ac_c" 1>&6
5959 else
5960   cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5963 #include <$ac_hdr>
5964 EOF
5965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5966 { (eval echo configure:5967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5968 if test -z "$ac_err"; then
5969   rm -rf conftest*
5970   eval "ac_cv_header_$ac_safe=yes"
5971 else
5972   echo "$ac_err" >&5
5973   echo "configure: failed program was:" >&5
5974   cat conftest.$ac_ext >&5
5975   rm -rf conftest*
5976   eval "ac_cv_header_$ac_safe=no"
5977 fi
5978 rm -f conftest*
5979 fi
5980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5981   echo "$ac_t""yes" 1>&6
5982     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5983   cat >> confdefs.h <<EOF
5984 #define $ac_tr_hdr 1
5985 EOF
5986  
5987 else
5988   echo "$ac_t""no" 1>&6
5989 fi
5990 done
5991
5992       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5993        
5994       
5995   # If we're not using GNU ld, then there's no point in even trying these
5996   # tests.  Check for that first.  We should have already tested for gld
5997   # by now (in libtool), but require it now just to be safe...
5998   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5999   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6000   
6001
6002   # The name set by libtool depends on the version of libtool.  Shame on us
6003   # for depending on an impl detail, but c'est la vie.  Older versions used
6004   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6005   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6006   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6007   # set (hence we're using an older libtool), then set it.
6008   if test x${with_gnu_ld+set} != xset; then
6009     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6010       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6011       with_gnu_ld=no
6012     else
6013       with_gnu_ld=$ac_cv_prog_gnu_ld
6014     fi
6015   fi
6016
6017   # Start by getting the version number.  I think the libtool test already
6018   # does some of this, but throws away the result.
6019   
6020   ldver=`$LD --version 2>/dev/null | head -1 | \
6021          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6022   
6023   glibcpp_gnu_ld_version=`echo $ldver | \
6024          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6025
6026   # Set --gc-sections.
6027   if test "$with_gnu_ld" = "notbroken"; then
6028     # GNU ld it is!  Joy and bunny rabbits!
6029
6030     # All these tests are for C++; save the language and the compiler flags.
6031     # Need to do this so that g++ won't try to link in libstdc++
6032     ac_test_CFLAGS="${CFLAGS+set}"
6033     ac_save_CFLAGS="$CFLAGS"
6034     CFLAGS='-x c++  -Wl,--gc-sections'
6035
6036     # Check for -Wl,--gc-sections
6037     # XXX This test is broken at the moment, as symbols required for
6038     # linking are now in libsupc++ (not built yet.....). In addition, 
6039     # this test has cored on solaris in the past. In addition,
6040     # --gc-sections doesn't really work at the moment (keeps on discarding
6041     # used sections, first .eh_frame and now some of the glibc sections for
6042     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6043     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6044 echo "configure:6045: checking for ld that supports -Wl,--gc-sections" >&5
6045     if test "$cross_compiling" = yes; then
6046   ac_sectionLDflags=yes
6047 else
6048   cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051
6052      int main(void) 
6053      {
6054        try { throw 1; }
6055        catch (...) { };
6056        return 0;
6057      }
6058     
6059 EOF
6060 if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6061 then
6062   ac_sectionLDflags=yes
6063 else
6064   echo "configure: failed program was:" >&5
6065   cat conftest.$ac_ext >&5
6066   rm -fr conftest*
6067   ac_sectionLDflags=no
6068 fi
6069 rm -fr conftest*
6070 fi
6071
6072     if test "$ac_test_CFLAGS" = set; then
6073       CFLAGS="$ac_save_CFLAGS"
6074     else
6075       # this is the suspicious part
6076       CFLAGS=''
6077     fi
6078     if test "$ac_sectionLDflags" = "yes"; then
6079       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6080     fi
6081     echo "$ac_t""$ac_sectionLDflags" 1>&6
6082   fi
6083
6084   # Set linker optimization flags.
6085   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6086     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6087   fi
6088
6089   
6090   
6091
6092       
6093     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6094 echo "configure:6095: checking for main in -lm" >&5
6095 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6097   echo $ac_n "(cached) $ac_c" 1>&6
6098 else
6099   ac_save_LIBS="$LIBS"
6100 LIBS="-lm  $LIBS"
6101 cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6104
6105 int main() {
6106 main()
6107 ; return 0; }
6108 EOF
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6110   rm -rf conftest*
6111   eval "ac_cv_lib_$ac_lib_var=yes"
6112 else
6113   echo "configure: failed program was:" >&5
6114   cat conftest.$ac_ext >&5
6115   rm -rf conftest*
6116   eval "ac_cv_lib_$ac_lib_var=no"
6117 fi
6118 rm -f conftest*
6119 LIBS="$ac_save_LIBS"
6120
6121 fi
6122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6123   echo "$ac_t""yes" 1>&6
6124     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6125     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6126   cat >> confdefs.h <<EOF
6127 #define $ac_tr_lib 1
6128 EOF
6129
6130   LIBS="-lm $LIBS"
6131
6132 else
6133   echo "$ac_t""no" 1>&6
6134 fi
6135
6136   for ac_func in nan copysignf
6137 do
6138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6139 echo "configure:6140: checking for $ac_func" >&5
6140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6141   echo $ac_n "(cached) $ac_c" 1>&6
6142 else
6143   cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 /* System header to define __stub macros and hopefully few prototypes,
6147     which can conflict with char $ac_func(); below.  */
6148 #include <assert.h>
6149 /* Override any gcc2 internal prototype to avoid an error.  */
6150 /* We use char because int might match the return type of a gcc2
6151     builtin and then its argument prototype would still apply.  */
6152 char $ac_func();
6153
6154 int main() {
6155
6156 /* The GNU C library defines this for functions which it implements
6157     to always fail with ENOSYS.  Some functions are actually named
6158     something starting with __ and the normal name is an alias.  */
6159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6160 choke me
6161 #else
6162 $ac_func();
6163 #endif
6164
6165 ; return 0; }
6166 EOF
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6168   rm -rf conftest*
6169   eval "ac_cv_func_$ac_func=yes"
6170 else
6171   echo "configure: failed program was:" >&5
6172   cat conftest.$ac_ext >&5
6173   rm -rf conftest*
6174   eval "ac_cv_func_$ac_func=no"
6175 fi
6176 rm -f conftest*
6177 fi
6178
6179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6180   echo "$ac_t""yes" 1>&6
6181     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6182   cat >> confdefs.h <<EOF
6183 #define $ac_tr_func 1
6184 EOF
6185  
6186 else
6187   echo "$ac_t""no" 1>&6
6188 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6189 fi
6190 done
6191
6192
6193     for ac_func in __signbit
6194 do
6195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_func" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6198   echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200   cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204     which can conflict with char $ac_func(); below.  */
6205 #include <assert.h>
6206 /* Override any gcc2 internal prototype to avoid an error.  */
6207 /* We use char because int might match the return type of a gcc2
6208     builtin and then its argument prototype would still apply.  */
6209 char $ac_func();
6210
6211 int main() {
6212
6213 /* The GNU C library defines this for functions which it implements
6214     to always fail with ENOSYS.  Some functions are actually named
6215     something starting with __ and the normal name is an alias.  */
6216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217 choke me
6218 #else
6219 $ac_func();
6220 #endif
6221
6222 ; return 0; }
6223 EOF
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6225   rm -rf conftest*
6226   eval "ac_cv_func_$ac_func=yes"
6227 else
6228   echo "configure: failed program was:" >&5
6229   cat conftest.$ac_ext >&5
6230   rm -rf conftest*
6231   eval "ac_cv_func_$ac_func=no"
6232 fi
6233 rm -f conftest*
6234 fi
6235
6236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6237   echo "$ac_t""yes" 1>&6
6238     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6239   cat >> confdefs.h <<EOF
6240 #define $ac_tr_func 1
6241 EOF
6242  
6243 else
6244   echo "$ac_t""no" 1>&6
6245 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6246 fi
6247 done
6248
6249   for ac_func in __signbitf
6250 do
6251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6252 echo "configure:6253: checking for $ac_func" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6254   echo $ac_n "(cached) $ac_c" 1>&6
6255 else
6256   cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* System header to define __stub macros and hopefully few prototypes,
6260     which can conflict with char $ac_func(); below.  */
6261 #include <assert.h>
6262 /* Override any gcc2 internal prototype to avoid an error.  */
6263 /* We use char because int might match the return type of a gcc2
6264     builtin and then its argument prototype would still apply.  */
6265 char $ac_func();
6266
6267 int main() {
6268
6269 /* The GNU C library defines this for functions which it implements
6270     to always fail with ENOSYS.  Some functions are actually named
6271     something starting with __ and the normal name is an alias.  */
6272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6273 choke me
6274 #else
6275 $ac_func();
6276 #endif
6277
6278 ; return 0; }
6279 EOF
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6281   rm -rf conftest*
6282   eval "ac_cv_func_$ac_func=yes"
6283 else
6284   echo "configure: failed program was:" >&5
6285   cat conftest.$ac_ext >&5
6286   rm -rf conftest*
6287   eval "ac_cv_func_$ac_func=no"
6288 fi
6289 rm -f conftest*
6290 fi
6291
6292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6293   echo "$ac_t""yes" 1>&6
6294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6295   cat >> confdefs.h <<EOF
6296 #define $ac_tr_func 1
6297 EOF
6298  
6299 else
6300   echo "$ac_t""no" 1>&6
6301 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6302 fi
6303 done
6304
6305
6306           if test x$ac_cv_func_copysignl = x"yes"; then
6307     for ac_func in __signbitl
6308 do
6309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_func" >&5
6311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6312   echo $ac_n "(cached) $ac_c" 1>&6
6313 else
6314   cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* System header to define __stub macros and hopefully few prototypes,
6318     which can conflict with char $ac_func(); below.  */
6319 #include <assert.h>
6320 /* Override any gcc2 internal prototype to avoid an error.  */
6321 /* We use char because int might match the return type of a gcc2
6322     builtin and then its argument prototype would still apply.  */
6323 char $ac_func();
6324
6325 int main() {
6326
6327 /* The GNU C library defines this for functions which it implements
6328     to always fail with ENOSYS.  Some functions are actually named
6329     something starting with __ and the normal name is an alias.  */
6330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6331 choke me
6332 #else
6333 $ac_func();
6334 #endif
6335
6336 ; return 0; }
6337 EOF
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6339   rm -rf conftest*
6340   eval "ac_cv_func_$ac_func=yes"
6341 else
6342   echo "configure: failed program was:" >&5
6343   cat conftest.$ac_ext >&5
6344   rm -rf conftest*
6345   eval "ac_cv_func_$ac_func=no"
6346 fi
6347 rm -f conftest*
6348 fi
6349
6350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6351   echo "$ac_t""yes" 1>&6
6352     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6353   cat >> confdefs.h <<EOF
6354 #define $ac_tr_func 1
6355 EOF
6356  
6357 else
6358   echo "$ac_t""no" 1>&6
6359 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6360 fi
6361 done
6362
6363   fi
6364
6365   
6366
6367       
6368
6369       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6370 echo "configure:6371: checking for mbstate_t" >&5
6371   cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 #include <wchar.h>
6375 int main() {
6376 mbstate_t teststate;
6377 ; return 0; }
6378 EOF
6379 if { (eval echo configure:6380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6380   rm -rf conftest*
6381   have_mbstate_t=yes
6382 else
6383   echo "configure: failed program was:" >&5
6384   cat conftest.$ac_ext >&5
6385   rm -rf conftest*
6386   have_mbstate_t=no
6387 fi
6388 rm -f conftest*
6389   echo "$ac_t""$have_mbstate_t" 1>&6
6390   if test x"$have_mbstate_t" = xyes; then
6391     cat >> confdefs.h <<\EOF
6392 #define HAVE_MBSTATE_T 1
6393 EOF
6394
6395   fi
6396
6397     for ac_hdr in wchar.h
6398 do
6399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6401 echo "configure:6402: checking for $ac_hdr" >&5
6402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6403   echo $ac_n "(cached) $ac_c" 1>&6
6404 else
6405   cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 #include <$ac_hdr>
6409 EOF
6410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6411 { (eval echo configure:6412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6413 if test -z "$ac_err"; then
6414   rm -rf conftest*
6415   eval "ac_cv_header_$ac_safe=yes"
6416 else
6417   echo "$ac_err" >&5
6418   echo "configure: failed program was:" >&5
6419   cat conftest.$ac_ext >&5
6420   rm -rf conftest*
6421   eval "ac_cv_header_$ac_safe=no"
6422 fi
6423 rm -f conftest*
6424 fi
6425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6426   echo "$ac_t""yes" 1>&6
6427     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6428   cat >> confdefs.h <<EOF
6429 #define $ac_tr_hdr 1
6430 EOF
6431  ac_has_wchar_h=yes
6432 else
6433   echo "$ac_t""no" 1>&6
6434 ac_has_wchar_h=no
6435 fi
6436 done
6437
6438   for ac_hdr in wctype.h
6439 do
6440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6442 echo "configure:6443: checking for $ac_hdr" >&5
6443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6444   echo $ac_n "(cached) $ac_c" 1>&6
6445 else
6446   cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6449 #include <$ac_hdr>
6450 EOF
6451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6452 { (eval echo configure:6453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6454 if test -z "$ac_err"; then
6455   rm -rf conftest*
6456   eval "ac_cv_header_$ac_safe=yes"
6457 else
6458   echo "$ac_err" >&5
6459   echo "configure: failed program was:" >&5
6460   cat conftest.$ac_ext >&5
6461   rm -rf conftest*
6462   eval "ac_cv_header_$ac_safe=no"
6463 fi
6464 rm -f conftest*
6465 fi
6466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6467   echo "$ac_t""yes" 1>&6
6468     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6469   cat >> confdefs.h <<EOF
6470 #define $ac_tr_hdr 1
6471 EOF
6472  ac_has_wctype_h=yes
6473 else
6474   echo "$ac_t""no" 1>&6
6475 ac_has_wctype_h=no
6476 fi
6477 done
6478
6479   
6480     if test x"$ac_has_wchar_h" = xyes &&
6481      test x"$ac_has_wctype_h" = xyes &&
6482      test x"$enable_c_mbchar" != xno; then
6483       
6484             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6485 echo "configure:6486: checking for WCHAR_MIN and WCHAR_MAX" >&5
6486     cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6489 #include <wchar.h>
6490 int main() {
6491 int i = WCHAR_MIN; int j = WCHAR_MAX;
6492 ; return 0; }
6493 EOF
6494 if { (eval echo configure:6495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6495   rm -rf conftest*
6496   has_wchar_minmax=yes
6497 else
6498   echo "configure: failed program was:" >&5
6499   cat conftest.$ac_ext >&5
6500   rm -rf conftest*
6501   has_wchar_minmax=no
6502 fi
6503 rm -f conftest*
6504     echo "$ac_t""$has_wchar_minmax" 1>&6
6505     
6506             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6507 echo "configure:6508: checking for WEOF" >&5
6508     cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511
6512       #include <wchar.h>
6513       #include <stddef.h>
6514 int main() {
6515 wint_t i = WEOF;
6516 ; return 0; }
6517 EOF
6518 if { (eval echo configure:6519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6519   rm -rf conftest*
6520   has_weof=yes
6521 else
6522   echo "configure: failed program was:" >&5
6523   cat conftest.$ac_ext >&5
6524   rm -rf conftest*
6525   has_weof=no
6526 fi
6527 rm -f conftest*
6528     echo "$ac_t""$has_weof" 1>&6
6529   
6530         ac_wfuncs=yes
6531     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6532 do
6533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6534 echo "configure:6535: checking for $ac_func" >&5
6535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6536   echo $ac_n "(cached) $ac_c" 1>&6
6537 else
6538   cat > conftest.$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 /* System header to define __stub macros and hopefully few prototypes,
6542     which can conflict with char $ac_func(); below.  */
6543 #include <assert.h>
6544 /* Override any gcc2 internal prototype to avoid an error.  */
6545 /* We use char because int might match the return type of a gcc2
6546     builtin and then its argument prototype would still apply.  */
6547 char $ac_func();
6548
6549 int main() {
6550
6551 /* The GNU C library defines this for functions which it implements
6552     to always fail with ENOSYS.  Some functions are actually named
6553     something starting with __ and the normal name is an alias.  */
6554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 choke me
6556 #else
6557 $ac_func();
6558 #endif
6559
6560 ; return 0; }
6561 EOF
6562 if { (eval echo configure:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6563   rm -rf conftest*
6564   eval "ac_cv_func_$ac_func=yes"
6565 else
6566   echo "configure: failed program was:" >&5
6567   cat conftest.$ac_ext >&5
6568   rm -rf conftest*
6569   eval "ac_cv_func_$ac_func=no"
6570 fi
6571 rm -f conftest*
6572 fi
6573
6574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6575   echo "$ac_t""yes" 1>&6
6576     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6577   cat >> confdefs.h <<EOF
6578 #define $ac_tr_func 1
6579 EOF
6580  
6581 else
6582   echo "$ac_t""no" 1>&6
6583 \
6584     ac_wfuncs=no
6585 fi
6586 done
6587
6588   
6589         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6590     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6591     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6592     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6593     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6594     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6595 do
6596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6597 echo "configure:6598: checking for $ac_func" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6599   echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601   cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605     which can conflict with char $ac_func(); below.  */
6606 #include <assert.h>
6607 /* Override any gcc2 internal prototype to avoid an error.  */
6608 /* We use char because int might match the return type of a gcc2
6609     builtin and then its argument prototype would still apply.  */
6610 char $ac_func();
6611
6612 int main() {
6613
6614 /* The GNU C library defines this for functions which it implements
6615     to always fail with ENOSYS.  Some functions are actually named
6616     something starting with __ and the normal name is an alias.  */
6617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6618 choke me
6619 #else
6620 $ac_func();
6621 #endif
6622
6623 ; return 0; }
6624 EOF
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626   rm -rf conftest*
6627   eval "ac_cv_func_$ac_func=yes"
6628 else
6629   echo "configure: failed program was:" >&5
6630   cat conftest.$ac_ext >&5
6631   rm -rf conftest*
6632   eval "ac_cv_func_$ac_func=no"
6633 fi
6634 rm -f conftest*
6635 fi
6636
6637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6638   echo "$ac_t""yes" 1>&6
6639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6640   cat >> confdefs.h <<EOF
6641 #define $ac_tr_func 1
6642 EOF
6643  
6644 else
6645   echo "$ac_t""no" 1>&6
6646 \
6647     ac_wfuncs=no
6648 fi
6649 done
6650
6651
6652     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6653 echo "configure:6654: checking for ISO C99 wchar_t support" >&5
6654     if test x"$has_weof" = xyes &&
6655        test x"$has_wchar_minmax" = xyes &&
6656        test x"$ac_wfuncs" = xyes; then
6657       ac_isoC99_wchar_t=yes
6658     else
6659       ac_isoC99_wchar_t=no
6660     fi
6661     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6662   
6663             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6664 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6665 echo "configure:6666: checking for iconv.h" >&5
6666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6667   echo $ac_n "(cached) $ac_c" 1>&6
6668 else
6669   cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 #include <iconv.h>
6673 EOF
6674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6675 { (eval echo configure:6676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6677 if test -z "$ac_err"; then
6678   rm -rf conftest*
6679   eval "ac_cv_header_$ac_safe=yes"
6680 else
6681   echo "$ac_err" >&5
6682   echo "configure: failed program was:" >&5
6683   cat conftest.$ac_ext >&5
6684   rm -rf conftest*
6685   eval "ac_cv_header_$ac_safe=no"
6686 fi
6687 rm -f conftest*
6688 fi
6689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6690   echo "$ac_t""yes" 1>&6
6691   ac_has_iconv_h=yes
6692 else
6693   echo "$ac_t""no" 1>&6
6694 ac_has_iconv_h=no
6695 fi
6696
6697     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6698 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6699 echo "configure:6700: checking for langinfo.h" >&5
6700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6701   echo $ac_n "(cached) $ac_c" 1>&6
6702 else
6703   cat > conftest.$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6706 #include <langinfo.h>
6707 EOF
6708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6709 { (eval echo configure:6710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6711 if test -z "$ac_err"; then
6712   rm -rf conftest*
6713   eval "ac_cv_header_$ac_safe=yes"
6714 else
6715   echo "$ac_err" >&5
6716   echo "configure: failed program was:" >&5
6717   cat conftest.$ac_ext >&5
6718   rm -rf conftest*
6719   eval "ac_cv_header_$ac_safe=no"
6720 fi
6721 rm -f conftest*
6722 fi
6723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6724   echo "$ac_t""yes" 1>&6
6725   ac_has_langinfo_h=yes
6726 else
6727   echo "$ac_t""no" 1>&6
6728 ac_has_langinfo_h=no
6729 fi
6730
6731
6732         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6733 echo "configure:6734: checking for iconv in -liconv" >&5
6734 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6736   echo $ac_n "(cached) $ac_c" 1>&6
6737 else
6738   ac_save_LIBS="$LIBS"
6739 LIBS="-liconv  $LIBS"
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* Override any gcc2 internal prototype to avoid an error.  */
6744 /* We use char because int might match the return type of a gcc2
6745     builtin and then its argument prototype would still apply.  */
6746 char iconv();
6747
6748 int main() {
6749 iconv()
6750 ; return 0; }
6751 EOF
6752 if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6753   rm -rf conftest*
6754   eval "ac_cv_lib_$ac_lib_var=yes"
6755 else
6756   echo "configure: failed program was:" >&5
6757   cat conftest.$ac_ext >&5
6758   rm -rf conftest*
6759   eval "ac_cv_lib_$ac_lib_var=no"
6760 fi
6761 rm -f conftest*
6762 LIBS="$ac_save_LIBS"
6763
6764 fi
6765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6766   echo "$ac_t""yes" 1>&6
6767   libiconv="-liconv"
6768 else
6769   echo "$ac_t""no" 1>&6
6770 fi
6771
6772     ac_save_LIBS="$LIBS"
6773     LIBS="$LIBS $libiconv"
6774
6775     for ac_func in iconv_open iconv_close iconv nl_langinfo
6776 do
6777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6778 echo "configure:6779: checking for $ac_func" >&5
6779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6780   echo $ac_n "(cached) $ac_c" 1>&6
6781 else
6782   cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 /* System header to define __stub macros and hopefully few prototypes,
6786     which can conflict with char $ac_func(); below.  */
6787 #include <assert.h>
6788 /* Override any gcc2 internal prototype to avoid an error.  */
6789 /* We use char because int might match the return type of a gcc2
6790     builtin and then its argument prototype would still apply.  */
6791 char $ac_func();
6792
6793 int main() {
6794
6795 /* The GNU C library defines this for functions which it implements
6796     to always fail with ENOSYS.  Some functions are actually named
6797     something starting with __ and the normal name is an alias.  */
6798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6799 choke me
6800 #else
6801 $ac_func();
6802 #endif
6803
6804 ; return 0; }
6805 EOF
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6807   rm -rf conftest*
6808   eval "ac_cv_func_$ac_func=yes"
6809 else
6810   echo "configure: failed program was:" >&5
6811   cat conftest.$ac_ext >&5
6812   rm -rf conftest*
6813   eval "ac_cv_func_$ac_func=no"
6814 fi
6815 rm -f conftest*
6816 fi
6817
6818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6819   echo "$ac_t""yes" 1>&6
6820     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6821   cat >> confdefs.h <<EOF
6822 #define $ac_tr_func 1
6823 EOF
6824  \
6825     ac_XPG2funcs=yes
6826 else
6827   echo "$ac_t""no" 1>&6
6828 ac_XPG2funcs=no
6829 fi
6830 done
6831
6832   
6833     LIBS="$ac_save_LIBS"
6834
6835     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6836 echo "configure:6837: checking for XPG2 wchar_t support" >&5
6837     if test x"$ac_has_iconv_h" = xyes &&
6838        test x"$ac_has_langinfo_h" = xyes &&
6839        test x"$ac_XPG2funcs" = xyes; then
6840       ac_XPG2_wchar_t=yes
6841     else
6842       ac_XPG2_wchar_t=no
6843     fi
6844     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6845   
6846             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6847 echo "configure:6848: checking for enabled wchar_t specializations" >&5
6848     if test x"$ac_isoC99_wchar_t" = xyes &&
6849        test x"$ac_XPG2_wchar_t" = xyes; then
6850       cat >> confdefs.h <<\EOF
6851 #define _GLIBCPP_USE_WCHAR_T 1
6852 EOF
6853
6854       echo "$ac_t"""yes"" 1>&6
6855     else
6856       echo "$ac_t"""no"" 1>&6
6857     fi
6858   else
6859         echo "configure: warning: wchar_t support disabled." 1>&2
6860   fi
6861
6862       os_include_dir="config/os/bsd/netbsd"
6863       cat >> confdefs.h <<\EOF
6864 #define HAVE_COPYSIGN 1
6865 EOF
6866
6867       cat >> confdefs.h <<\EOF
6868 #define HAVE_COPYSIGNF 1
6869 EOF
6870
6871       cat >> confdefs.h <<\EOF
6872 #define HAVE_FINITEF 1
6873 EOF
6874
6875       cat >> confdefs.h <<\EOF
6876 #define HAVE_FREXPF 1
6877 EOF
6878
6879       cat >> confdefs.h <<\EOF
6880 #define HAVE_HYPOTF 1
6881 EOF
6882
6883       ;;
6884     *-mingw32*)
6885       for ac_hdr in sys/types.h locale.h float.h
6886 do
6887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6889 echo "configure:6890: checking for $ac_hdr" >&5
6890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6891   echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6893   cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 #include <$ac_hdr>
6897 EOF
6898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6899 { (eval echo configure:6900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6901 if test -z "$ac_err"; then
6902   rm -rf conftest*
6903   eval "ac_cv_header_$ac_safe=yes"
6904 else
6905   echo "$ac_err" >&5
6906   echo "configure: failed program was:" >&5
6907   cat conftest.$ac_ext >&5
6908   rm -rf conftest*
6909   eval "ac_cv_header_$ac_safe=no"
6910 fi
6911 rm -f conftest*
6912 fi
6913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6914   echo "$ac_t""yes" 1>&6
6915     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6916   cat >> confdefs.h <<EOF
6917 #define $ac_tr_hdr 1
6918 EOF
6919  
6920 else
6921   echo "$ac_t""no" 1>&6
6922 fi
6923 done
6924
6925       
6926   # If we're not using GNU ld, then there's no point in even trying these
6927   # tests.  Check for that first.  We should have already tested for gld
6928   # by now (in libtool), but require it now just to be safe...
6929   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6930   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6931   
6932
6933   # The name set by libtool depends on the version of libtool.  Shame on us
6934   # for depending on an impl detail, but c'est la vie.  Older versions used
6935   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6936   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6937   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6938   # set (hence we're using an older libtool), then set it.
6939   if test x${with_gnu_ld+set} != xset; then
6940     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6941       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6942       with_gnu_ld=no
6943     else
6944       with_gnu_ld=$ac_cv_prog_gnu_ld
6945     fi
6946   fi
6947
6948   # Start by getting the version number.  I think the libtool test already
6949   # does some of this, but throws away the result.
6950   
6951   ldver=`$LD --version 2>/dev/null | head -1 | \
6952          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6953   
6954   glibcpp_gnu_ld_version=`echo $ldver | \
6955          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6956
6957   # Set --gc-sections.
6958   if test "$with_gnu_ld" = "notbroken"; then
6959     # GNU ld it is!  Joy and bunny rabbits!
6960
6961     # All these tests are for C++; save the language and the compiler flags.
6962     # Need to do this so that g++ won't try to link in libstdc++
6963     ac_test_CFLAGS="${CFLAGS+set}"
6964     ac_save_CFLAGS="$CFLAGS"
6965     CFLAGS='-x c++  -Wl,--gc-sections'
6966
6967     # Check for -Wl,--gc-sections
6968     # XXX This test is broken at the moment, as symbols required for
6969     # linking are now in libsupc++ (not built yet.....). In addition, 
6970     # this test has cored on solaris in the past. In addition,
6971     # --gc-sections doesn't really work at the moment (keeps on discarding
6972     # used sections, first .eh_frame and now some of the glibc sections for
6973     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6974     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6975 echo "configure:6976: checking for ld that supports -Wl,--gc-sections" >&5
6976     if test "$cross_compiling" = yes; then
6977   ac_sectionLDflags=yes
6978 else
6979   cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6982
6983      int main(void) 
6984      {
6985        try { throw 1; }
6986        catch (...) { };
6987        return 0;
6988      }
6989     
6990 EOF
6991 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6992 then
6993   ac_sectionLDflags=yes
6994 else
6995   echo "configure: failed program was:" >&5
6996   cat conftest.$ac_ext >&5
6997   rm -fr conftest*
6998   ac_sectionLDflags=no
6999 fi
7000 rm -fr conftest*
7001 fi
7002
7003     if test "$ac_test_CFLAGS" = set; then
7004       CFLAGS="$ac_save_CFLAGS"
7005     else
7006       # this is the suspicious part
7007       CFLAGS=''
7008     fi
7009     if test "$ac_sectionLDflags" = "yes"; then
7010       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7011     fi
7012     echo "$ac_t""$ac_sectionLDflags" 1>&6
7013   fi
7014
7015   # Set linker optimization flags.
7016   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7017     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7018   fi
7019
7020   
7021   
7022
7023       
7024     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7025 echo "configure:7026: checking for main in -lm" >&5
7026 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7028   echo $ac_n "(cached) $ac_c" 1>&6
7029 else
7030   ac_save_LIBS="$LIBS"
7031 LIBS="-lm  $LIBS"
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7035
7036 int main() {
7037 main()
7038 ; return 0; }
7039 EOF
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7041   rm -rf conftest*
7042   eval "ac_cv_lib_$ac_lib_var=yes"
7043 else
7044   echo "configure: failed program was:" >&5
7045   cat conftest.$ac_ext >&5
7046   rm -rf conftest*
7047   eval "ac_cv_lib_$ac_lib_var=no"
7048 fi
7049 rm -f conftest*
7050 LIBS="$ac_save_LIBS"
7051
7052 fi
7053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7054   echo "$ac_t""yes" 1>&6
7055     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7056     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7057   cat >> confdefs.h <<EOF
7058 #define $ac_tr_lib 1
7059 EOF
7060
7061   LIBS="-lm $LIBS"
7062
7063 else
7064   echo "$ac_t""no" 1>&6
7065 fi
7066
7067   for ac_func in nan copysignf
7068 do
7069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_func" >&5
7071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7072   echo $ac_n "(cached) $ac_c" 1>&6
7073 else
7074   cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 /* System header to define __stub macros and hopefully few prototypes,
7078     which can conflict with char $ac_func(); below.  */
7079 #include <assert.h>
7080 /* Override any gcc2 internal prototype to avoid an error.  */
7081 /* We use char because int might match the return type of a gcc2
7082     builtin and then its argument prototype would still apply.  */
7083 char $ac_func();
7084
7085 int main() {
7086
7087 /* The GNU C library defines this for functions which it implements
7088     to always fail with ENOSYS.  Some functions are actually named
7089     something starting with __ and the normal name is an alias.  */
7090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 choke me
7092 #else
7093 $ac_func();
7094 #endif
7095
7096 ; return 0; }
7097 EOF
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7099   rm -rf conftest*
7100   eval "ac_cv_func_$ac_func=yes"
7101 else
7102   echo "configure: failed program was:" >&5
7103   cat conftest.$ac_ext >&5
7104   rm -rf conftest*
7105   eval "ac_cv_func_$ac_func=no"
7106 fi
7107 rm -f conftest*
7108 fi
7109
7110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7111   echo "$ac_t""yes" 1>&6
7112     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7113   cat >> confdefs.h <<EOF
7114 #define $ac_tr_func 1
7115 EOF
7116  
7117 else
7118   echo "$ac_t""no" 1>&6
7119 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7120 fi
7121 done
7122
7123
7124     for ac_func in __signbit
7125 do
7126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7127 echo "configure:7128: checking for $ac_func" >&5
7128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7129   echo $ac_n "(cached) $ac_c" 1>&6
7130 else
7131   cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* System header to define __stub macros and hopefully few prototypes,
7135     which can conflict with char $ac_func(); below.  */
7136 #include <assert.h>
7137 /* Override any gcc2 internal prototype to avoid an error.  */
7138 /* We use char because int might match the return type of a gcc2
7139     builtin and then its argument prototype would still apply.  */
7140 char $ac_func();
7141
7142 int main() {
7143
7144 /* The GNU C library defines this for functions which it implements
7145     to always fail with ENOSYS.  Some functions are actually named
7146     something starting with __ and the normal name is an alias.  */
7147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7148 choke me
7149 #else
7150 $ac_func();
7151 #endif
7152
7153 ; return 0; }
7154 EOF
7155 if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7156   rm -rf conftest*
7157   eval "ac_cv_func_$ac_func=yes"
7158 else
7159   echo "configure: failed program was:" >&5
7160   cat conftest.$ac_ext >&5
7161   rm -rf conftest*
7162   eval "ac_cv_func_$ac_func=no"
7163 fi
7164 rm -f conftest*
7165 fi
7166
7167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7168   echo "$ac_t""yes" 1>&6
7169     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7170   cat >> confdefs.h <<EOF
7171 #define $ac_tr_func 1
7172 EOF
7173  
7174 else
7175   echo "$ac_t""no" 1>&6
7176 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7177 fi
7178 done
7179
7180   for ac_func in __signbitf
7181 do
7182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7183 echo "configure:7184: checking for $ac_func" >&5
7184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7185   echo $ac_n "(cached) $ac_c" 1>&6
7186 else
7187   cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* System header to define __stub macros and hopefully few prototypes,
7191     which can conflict with char $ac_func(); below.  */
7192 #include <assert.h>
7193 /* Override any gcc2 internal prototype to avoid an error.  */
7194 /* We use char because int might match the return type of a gcc2
7195     builtin and then its argument prototype would still apply.  */
7196 char $ac_func();
7197
7198 int main() {
7199
7200 /* The GNU C library defines this for functions which it implements
7201     to always fail with ENOSYS.  Some functions are actually named
7202     something starting with __ and the normal name is an alias.  */
7203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7204 choke me
7205 #else
7206 $ac_func();
7207 #endif
7208
7209 ; return 0; }
7210 EOF
7211 if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7212   rm -rf conftest*
7213   eval "ac_cv_func_$ac_func=yes"
7214 else
7215   echo "configure: failed program was:" >&5
7216   cat conftest.$ac_ext >&5
7217   rm -rf conftest*
7218   eval "ac_cv_func_$ac_func=no"
7219 fi
7220 rm -f conftest*
7221 fi
7222
7223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7224   echo "$ac_t""yes" 1>&6
7225     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7226   cat >> confdefs.h <<EOF
7227 #define $ac_tr_func 1
7228 EOF
7229  
7230 else
7231   echo "$ac_t""no" 1>&6
7232 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7233 fi
7234 done
7235
7236
7237           if test x$ac_cv_func_copysignl = x"yes"; then
7238     for ac_func in __signbitl
7239 do
7240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7241 echo "configure:7242: checking for $ac_func" >&5
7242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7243   echo $ac_n "(cached) $ac_c" 1>&6
7244 else
7245   cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* System header to define __stub macros and hopefully few prototypes,
7249     which can conflict with char $ac_func(); below.  */
7250 #include <assert.h>
7251 /* Override any gcc2 internal prototype to avoid an error.  */
7252 /* We use char because int might match the return type of a gcc2
7253     builtin and then its argument prototype would still apply.  */
7254 char $ac_func();
7255
7256 int main() {
7257
7258 /* The GNU C library defines this for functions which it implements
7259     to always fail with ENOSYS.  Some functions are actually named
7260     something starting with __ and the normal name is an alias.  */
7261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 choke me
7263 #else
7264 $ac_func();
7265 #endif
7266
7267 ; return 0; }
7268 EOF
7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7270   rm -rf conftest*
7271   eval "ac_cv_func_$ac_func=yes"
7272 else
7273   echo "configure: failed program was:" >&5
7274   cat conftest.$ac_ext >&5
7275   rm -rf conftest*
7276   eval "ac_cv_func_$ac_func=no"
7277 fi
7278 rm -f conftest*
7279 fi
7280
7281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7282   echo "$ac_t""yes" 1>&6
7283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7284   cat >> confdefs.h <<EOF
7285 #define $ac_tr_func 1
7286 EOF
7287  
7288 else
7289   echo "$ac_t""no" 1>&6
7290 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7291 fi
7292 done
7293
7294   fi
7295
7296   
7297
7298       
7299
7300       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7301 echo "configure:7302: checking for mbstate_t" >&5
7302   cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 #include <wchar.h>
7306 int main() {
7307 mbstate_t teststate;
7308 ; return 0; }
7309 EOF
7310 if { (eval echo configure:7311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7311   rm -rf conftest*
7312   have_mbstate_t=yes
7313 else
7314   echo "configure: failed program was:" >&5
7315   cat conftest.$ac_ext >&5
7316   rm -rf conftest*
7317   have_mbstate_t=no
7318 fi
7319 rm -f conftest*
7320   echo "$ac_t""$have_mbstate_t" 1>&6
7321   if test x"$have_mbstate_t" = xyes; then
7322     cat >> confdefs.h <<\EOF
7323 #define HAVE_MBSTATE_T 1
7324 EOF
7325
7326   fi
7327
7328     for ac_hdr in wchar.h
7329 do
7330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7332 echo "configure:7333: checking for $ac_hdr" >&5
7333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7334   echo $ac_n "(cached) $ac_c" 1>&6
7335 else
7336   cat > conftest.$ac_ext <<EOF
7337 #line 7338 "configure"
7338 #include "confdefs.h"
7339 #include <$ac_hdr>
7340 EOF
7341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7342 { (eval echo configure:7343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7344 if test -z "$ac_err"; then
7345   rm -rf conftest*
7346   eval "ac_cv_header_$ac_safe=yes"
7347 else
7348   echo "$ac_err" >&5
7349   echo "configure: failed program was:" >&5
7350   cat conftest.$ac_ext >&5
7351   rm -rf conftest*
7352   eval "ac_cv_header_$ac_safe=no"
7353 fi
7354 rm -f conftest*
7355 fi
7356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7357   echo "$ac_t""yes" 1>&6
7358     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7359   cat >> confdefs.h <<EOF
7360 #define $ac_tr_hdr 1
7361 EOF
7362  ac_has_wchar_h=yes
7363 else
7364   echo "$ac_t""no" 1>&6
7365 ac_has_wchar_h=no
7366 fi
7367 done
7368
7369   for ac_hdr in wctype.h
7370 do
7371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7373 echo "configure:7374: checking for $ac_hdr" >&5
7374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7375   echo $ac_n "(cached) $ac_c" 1>&6
7376 else
7377   cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7380 #include <$ac_hdr>
7381 EOF
7382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7383 { (eval echo configure:7384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7385 if test -z "$ac_err"; then
7386   rm -rf conftest*
7387   eval "ac_cv_header_$ac_safe=yes"
7388 else
7389   echo "$ac_err" >&5
7390   echo "configure: failed program was:" >&5
7391   cat conftest.$ac_ext >&5
7392   rm -rf conftest*
7393   eval "ac_cv_header_$ac_safe=no"
7394 fi
7395 rm -f conftest*
7396 fi
7397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7398   echo "$ac_t""yes" 1>&6
7399     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7400   cat >> confdefs.h <<EOF
7401 #define $ac_tr_hdr 1
7402 EOF
7403  ac_has_wctype_h=yes
7404 else
7405   echo "$ac_t""no" 1>&6
7406 ac_has_wctype_h=no
7407 fi
7408 done
7409
7410   
7411     if test x"$ac_has_wchar_h" = xyes &&
7412      test x"$ac_has_wctype_h" = xyes &&
7413      test x"$enable_c_mbchar" != xno; then
7414       
7415             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7416 echo "configure:7417: checking for WCHAR_MIN and WCHAR_MAX" >&5
7417     cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 #include <wchar.h>
7421 int main() {
7422 int i = WCHAR_MIN; int j = WCHAR_MAX;
7423 ; return 0; }
7424 EOF
7425 if { (eval echo configure:7426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7426   rm -rf conftest*
7427   has_wchar_minmax=yes
7428 else
7429   echo "configure: failed program was:" >&5
7430   cat conftest.$ac_ext >&5
7431   rm -rf conftest*
7432   has_wchar_minmax=no
7433 fi
7434 rm -f conftest*
7435     echo "$ac_t""$has_wchar_minmax" 1>&6
7436     
7437             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7438 echo "configure:7439: checking for WEOF" >&5
7439     cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442
7443       #include <wchar.h>
7444       #include <stddef.h>
7445 int main() {
7446 wint_t i = WEOF;
7447 ; return 0; }
7448 EOF
7449 if { (eval echo configure:7450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7450   rm -rf conftest*
7451   has_weof=yes
7452 else
7453   echo "configure: failed program was:" >&5
7454   cat conftest.$ac_ext >&5
7455   rm -rf conftest*
7456   has_weof=no
7457 fi
7458 rm -f conftest*
7459     echo "$ac_t""$has_weof" 1>&6
7460   
7461         ac_wfuncs=yes
7462     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7463 do
7464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7465 echo "configure:7466: checking for $ac_func" >&5
7466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7467   echo $ac_n "(cached) $ac_c" 1>&6
7468 else
7469   cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 /* System header to define __stub macros and hopefully few prototypes,
7473     which can conflict with char $ac_func(); below.  */
7474 #include <assert.h>
7475 /* Override any gcc2 internal prototype to avoid an error.  */
7476 /* We use char because int might match the return type of a gcc2
7477     builtin and then its argument prototype would still apply.  */
7478 char $ac_func();
7479
7480 int main() {
7481
7482 /* The GNU C library defines this for functions which it implements
7483     to always fail with ENOSYS.  Some functions are actually named
7484     something starting with __ and the normal name is an alias.  */
7485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7486 choke me
7487 #else
7488 $ac_func();
7489 #endif
7490
7491 ; return 0; }
7492 EOF
7493 if { (eval echo configure:7494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7494   rm -rf conftest*
7495   eval "ac_cv_func_$ac_func=yes"
7496 else
7497   echo "configure: failed program was:" >&5
7498   cat conftest.$ac_ext >&5
7499   rm -rf conftest*
7500   eval "ac_cv_func_$ac_func=no"
7501 fi
7502 rm -f conftest*
7503 fi
7504
7505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7506   echo "$ac_t""yes" 1>&6
7507     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7508   cat >> confdefs.h <<EOF
7509 #define $ac_tr_func 1
7510 EOF
7511  
7512 else
7513   echo "$ac_t""no" 1>&6
7514 \
7515     ac_wfuncs=no
7516 fi
7517 done
7518
7519   
7520         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7521     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7522     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7523     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7524     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7525     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7526 do
7527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7528 echo "configure:7529: checking for $ac_func" >&5
7529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7530   echo $ac_n "(cached) $ac_c" 1>&6
7531 else
7532   cat > conftest.$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7535 /* System header to define __stub macros and hopefully few prototypes,
7536     which can conflict with char $ac_func(); below.  */
7537 #include <assert.h>
7538 /* Override any gcc2 internal prototype to avoid an error.  */
7539 /* We use char because int might match the return type of a gcc2
7540     builtin and then its argument prototype would still apply.  */
7541 char $ac_func();
7542
7543 int main() {
7544
7545 /* The GNU C library defines this for functions which it implements
7546     to always fail with ENOSYS.  Some functions are actually named
7547     something starting with __ and the normal name is an alias.  */
7548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7549 choke me
7550 #else
7551 $ac_func();
7552 #endif
7553
7554 ; return 0; }
7555 EOF
7556 if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7557   rm -rf conftest*
7558   eval "ac_cv_func_$ac_func=yes"
7559 else
7560   echo "configure: failed program was:" >&5
7561   cat conftest.$ac_ext >&5
7562   rm -rf conftest*
7563   eval "ac_cv_func_$ac_func=no"
7564 fi
7565 rm -f conftest*
7566 fi
7567
7568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7569   echo "$ac_t""yes" 1>&6
7570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7571   cat >> confdefs.h <<EOF
7572 #define $ac_tr_func 1
7573 EOF
7574  
7575 else
7576   echo "$ac_t""no" 1>&6
7577 \
7578     ac_wfuncs=no
7579 fi
7580 done
7581
7582
7583     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7584 echo "configure:7585: checking for ISO C99 wchar_t support" >&5
7585     if test x"$has_weof" = xyes &&
7586        test x"$has_wchar_minmax" = xyes &&
7587        test x"$ac_wfuncs" = xyes; then
7588       ac_isoC99_wchar_t=yes
7589     else
7590       ac_isoC99_wchar_t=no
7591     fi
7592     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7593   
7594             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7595 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7596 echo "configure:7597: checking for iconv.h" >&5
7597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7598   echo $ac_n "(cached) $ac_c" 1>&6
7599 else
7600   cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 #include <iconv.h>
7604 EOF
7605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7606 { (eval echo configure:7607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7608 if test -z "$ac_err"; then
7609   rm -rf conftest*
7610   eval "ac_cv_header_$ac_safe=yes"
7611 else
7612   echo "$ac_err" >&5
7613   echo "configure: failed program was:" >&5
7614   cat conftest.$ac_ext >&5
7615   rm -rf conftest*
7616   eval "ac_cv_header_$ac_safe=no"
7617 fi
7618 rm -f conftest*
7619 fi
7620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7621   echo "$ac_t""yes" 1>&6
7622   ac_has_iconv_h=yes
7623 else
7624   echo "$ac_t""no" 1>&6
7625 ac_has_iconv_h=no
7626 fi
7627
7628     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7629 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7630 echo "configure:7631: checking for langinfo.h" >&5
7631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7632   echo $ac_n "(cached) $ac_c" 1>&6
7633 else
7634   cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7637 #include <langinfo.h>
7638 EOF
7639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7640 { (eval echo configure:7641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7642 if test -z "$ac_err"; then
7643   rm -rf conftest*
7644   eval "ac_cv_header_$ac_safe=yes"
7645 else
7646   echo "$ac_err" >&5
7647   echo "configure: failed program was:" >&5
7648   cat conftest.$ac_ext >&5
7649   rm -rf conftest*
7650   eval "ac_cv_header_$ac_safe=no"
7651 fi
7652 rm -f conftest*
7653 fi
7654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7655   echo "$ac_t""yes" 1>&6
7656   ac_has_langinfo_h=yes
7657 else
7658   echo "$ac_t""no" 1>&6
7659 ac_has_langinfo_h=no
7660 fi
7661
7662
7663         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7664 echo "configure:7665: checking for iconv in -liconv" >&5
7665 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7667   echo $ac_n "(cached) $ac_c" 1>&6
7668 else
7669   ac_save_LIBS="$LIBS"
7670 LIBS="-liconv  $LIBS"
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* Override any gcc2 internal prototype to avoid an error.  */
7675 /* We use char because int might match the return type of a gcc2
7676     builtin and then its argument prototype would still apply.  */
7677 char iconv();
7678
7679 int main() {
7680 iconv()
7681 ; return 0; }
7682 EOF
7683 if { (eval echo configure:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7684   rm -rf conftest*
7685   eval "ac_cv_lib_$ac_lib_var=yes"
7686 else
7687   echo "configure: failed program was:" >&5
7688   cat conftest.$ac_ext >&5
7689   rm -rf conftest*
7690   eval "ac_cv_lib_$ac_lib_var=no"
7691 fi
7692 rm -f conftest*
7693 LIBS="$ac_save_LIBS"
7694
7695 fi
7696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7697   echo "$ac_t""yes" 1>&6
7698   libiconv="-liconv"
7699 else
7700   echo "$ac_t""no" 1>&6
7701 fi
7702
7703     ac_save_LIBS="$LIBS"
7704     LIBS="$LIBS $libiconv"
7705
7706     for ac_func in iconv_open iconv_close iconv nl_langinfo
7707 do
7708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7709 echo "configure:7710: checking for $ac_func" >&5
7710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7711   echo $ac_n "(cached) $ac_c" 1>&6
7712 else
7713   cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 /* System header to define __stub macros and hopefully few prototypes,
7717     which can conflict with char $ac_func(); below.  */
7718 #include <assert.h>
7719 /* Override any gcc2 internal prototype to avoid an error.  */
7720 /* We use char because int might match the return type of a gcc2
7721     builtin and then its argument prototype would still apply.  */
7722 char $ac_func();
7723
7724 int main() {
7725
7726 /* The GNU C library defines this for functions which it implements
7727     to always fail with ENOSYS.  Some functions are actually named
7728     something starting with __ and the normal name is an alias.  */
7729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7730 choke me
7731 #else
7732 $ac_func();
7733 #endif
7734
7735 ; return 0; }
7736 EOF
7737 if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7738   rm -rf conftest*
7739   eval "ac_cv_func_$ac_func=yes"
7740 else
7741   echo "configure: failed program was:" >&5
7742   cat conftest.$ac_ext >&5
7743   rm -rf conftest*
7744   eval "ac_cv_func_$ac_func=no"
7745 fi
7746 rm -f conftest*
7747 fi
7748
7749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7750   echo "$ac_t""yes" 1>&6
7751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7752   cat >> confdefs.h <<EOF
7753 #define $ac_tr_func 1
7754 EOF
7755  \
7756     ac_XPG2funcs=yes
7757 else
7758   echo "$ac_t""no" 1>&6
7759 ac_XPG2funcs=no
7760 fi
7761 done
7762
7763   
7764     LIBS="$ac_save_LIBS"
7765
7766     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7767 echo "configure:7768: checking for XPG2 wchar_t support" >&5
7768     if test x"$ac_has_iconv_h" = xyes &&
7769        test x"$ac_has_langinfo_h" = xyes &&
7770        test x"$ac_XPG2funcs" = xyes; then
7771       ac_XPG2_wchar_t=yes
7772     else
7773       ac_XPG2_wchar_t=no
7774     fi
7775     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7776   
7777             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7778 echo "configure:7779: checking for enabled wchar_t specializations" >&5
7779     if test x"$ac_isoC99_wchar_t" = xyes &&
7780        test x"$ac_XPG2_wchar_t" = xyes; then
7781       cat >> confdefs.h <<\EOF
7782 #define _GLIBCPP_USE_WCHAR_T 1
7783 EOF
7784
7785       echo "$ac_t"""yes"" 1>&6
7786     else
7787       echo "$ac_t"""no"" 1>&6
7788     fi
7789   else
7790         echo "configure: warning: wchar_t support disabled." 1>&2
7791   fi
7792
7793       os_include_dir="config/os/mingw32"
7794       ;;
7795     *)
7796       os_include_dir="config/os/newlib"
7797       cat >> confdefs.h <<\EOF
7798 #define HAVE_HYPOT 1
7799 EOF
7800
7801       ;;
7802   esac
7803
7804   case "$target_alias" in
7805     *-mingw32*)
7806       ;;
7807     *)
7808       # GLIBCPP_CHECK_STDLIB_SUPPORT
7809       cat >> confdefs.h <<\EOF
7810 #define HAVE_STRTOF 1
7811 EOF
7812         
7813       cat >> confdefs.h <<\EOF
7814 #define HAVE_STRTOLD 1
7815 EOF
7816         
7817       # AC_FUNC_MMAP
7818       cat >> confdefs.h <<\EOF
7819 #define HAVE_MMAP 1
7820 EOF
7821
7822
7823       cat >> confdefs.h <<\EOF
7824 #define HAVE_ACOSF 1
7825 EOF
7826
7827       cat >> confdefs.h <<\EOF
7828 #define HAVE_ASINF 1
7829 EOF
7830
7831       cat >> confdefs.h <<\EOF
7832 #define HAVE_ATAN2F 1
7833 EOF
7834
7835       cat >> confdefs.h <<\EOF
7836 #define HAVE_ATANF 1
7837 EOF
7838
7839       cat >> confdefs.h <<\EOF
7840 #define HAVE_CEILF 1
7841 EOF
7842
7843       cat >> confdefs.h <<\EOF
7844 #define HAVE_COPYSIGN 1
7845 EOF
7846
7847       cat >> confdefs.h <<\EOF
7848 #define HAVE_COPYSIGNF 1
7849 EOF
7850
7851       cat >> confdefs.h <<\EOF
7852 #define HAVE_COSF 1
7853 EOF
7854
7855       cat >> confdefs.h <<\EOF
7856 #define HAVE_COSHF 1
7857 EOF
7858
7859       cat >> confdefs.h <<\EOF
7860 #define HAVE_EXPF 1
7861 EOF
7862
7863       cat >> confdefs.h <<\EOF
7864 #define HAVE_FABSF 1
7865 EOF
7866
7867       cat >> confdefs.h <<\EOF
7868 #define HAVE_FINITE 1
7869 EOF
7870
7871       cat >> confdefs.h <<\EOF
7872 #define HAVE_FINITEF 1
7873 EOF
7874
7875       cat >> confdefs.h <<\EOF
7876 #define HAVE_FLOORF 1
7877 EOF
7878
7879       cat >> confdefs.h <<\EOF
7880 #define HAVE_FMODF 1
7881 EOF
7882
7883       cat >> confdefs.h <<\EOF
7884 #define HAVE_FREXPF 1
7885 EOF
7886
7887       cat >> confdefs.h <<\EOF
7888 #define HAVE_ISINF 1
7889 EOF
7890
7891       cat >> confdefs.h <<\EOF
7892 #define HAVE_ISINFF 1
7893 EOF
7894
7895       cat >> confdefs.h <<\EOF
7896 #define HAVE_ISNAN 1
7897 EOF
7898
7899       cat >> confdefs.h <<\EOF
7900 #define HAVE_ISNANF 1
7901 EOF
7902
7903       cat >> confdefs.h <<\EOF
7904 #define HAVE_LDEXPF 1
7905 EOF
7906
7907       cat >> confdefs.h <<\EOF
7908 #define HAVE_LOG10F 1
7909 EOF
7910
7911       cat >> confdefs.h <<\EOF
7912 #define HAVE_LOGF 1
7913 EOF
7914
7915       cat >> confdefs.h <<\EOF
7916 #define HAVE_MODFF 1
7917 EOF
7918
7919       cat >> confdefs.h <<\EOF
7920 #define HAVE_POWF 1
7921 EOF
7922
7923       cat >> confdefs.h <<\EOF
7924 #define HAVE_SINF 1
7925 EOF
7926
7927       cat >> confdefs.h <<\EOF
7928 #define HAVE_SINHF 1
7929 EOF
7930
7931       cat >> confdefs.h <<\EOF
7932 #define HAVE_SQRTF 1
7933 EOF
7934
7935       cat >> confdefs.h <<\EOF
7936 #define HAVE_TANF 1
7937 EOF
7938
7939       cat >> confdefs.h <<\EOF
7940 #define HAVE_TANHF 1
7941 EOF
7942
7943       ;;
7944   esac
7945
7946   # At some point, we should differentiate between architectures
7947   # like x86, which have long double versions, and alpha/powerpc/etc.,
7948   # which don't. For the time being, punt.
7949   if test x"long_double_math_on_this_cpu" = x"yes"; then
7950     cat >> confdefs.h <<\EOF
7951 #define HAVE_ACOSL 1
7952 EOF
7953
7954     cat >> confdefs.h <<\EOF
7955 #define HAVE_ASINL 1
7956 EOF
7957
7958     cat >> confdefs.h <<\EOF
7959 #define HAVE_ATAN2L 1
7960 EOF
7961
7962     cat >> confdefs.h <<\EOF
7963 #define HAVE_ATANL 1
7964 EOF
7965
7966     cat >> confdefs.h <<\EOF
7967 #define HAVE_CEILL 1
7968 EOF
7969
7970     cat >> confdefs.h <<\EOF
7971 #define HAVE_COPYSIGNL 1
7972 EOF
7973
7974     cat >> confdefs.h <<\EOF
7975 #define HAVE_COSL 1
7976 EOF
7977
7978     cat >> confdefs.h <<\EOF
7979 #define HAVE_COSHL 1
7980 EOF
7981
7982     cat >> confdefs.h <<\EOF
7983 #define HAVE_EXPL 1
7984 EOF
7985
7986     cat >> confdefs.h <<\EOF
7987 #define HAVE_FABSL 1
7988 EOF
7989
7990     cat >> confdefs.h <<\EOF
7991 #define HAVE_FINITEL 1
7992 EOF
7993
7994     cat >> confdefs.h <<\EOF
7995 #define HAVE_FLOORL 1
7996 EOF
7997
7998     cat >> confdefs.h <<\EOF
7999 #define HAVE_FMODL 1
8000 EOF
8001
8002     cat >> confdefs.h <<\EOF
8003 #define HAVE_FREXPL 1
8004 EOF
8005
8006     cat >> confdefs.h <<\EOF
8007 #define HAVE_ISINFL 1
8008 EOF
8009
8010     cat >> confdefs.h <<\EOF
8011 #define HAVE_ISNANL 1
8012 EOF
8013
8014     cat >> confdefs.h <<\EOF
8015 #define HAVE_LDEXPL 1
8016 EOF
8017
8018     cat >> confdefs.h <<\EOF
8019 #define HAVE_LOG10L 1
8020 EOF
8021
8022     cat >> confdefs.h <<\EOF
8023 #define HAVE_LOGL 1
8024 EOF
8025
8026     cat >> confdefs.h <<\EOF
8027 #define HAVE_MODFL 1
8028 EOF
8029
8030     cat >> confdefs.h <<\EOF
8031 #define HAVE_POWL 1
8032 EOF
8033
8034     cat >> confdefs.h <<\EOF
8035 #define HAVE_SINCOSL 1
8036 EOF
8037
8038     cat >> confdefs.h <<\EOF
8039 #define HAVE_SINL 1
8040 EOF
8041
8042     cat >> confdefs.h <<\EOF
8043 #define HAVE_SINHL 1
8044 EOF
8045
8046     cat >> confdefs.h <<\EOF
8047 #define HAVE_SQRTL 1
8048 EOF
8049
8050     cat >> confdefs.h <<\EOF
8051 #define HAVE_TANL 1
8052 EOF
8053
8054     cat >> confdefs.h <<\EOF
8055 #define HAVE_TANHL 1
8056 EOF
8057
8058   fi
8059 else
8060
8061   # We are being configured natively. We can do more elaborate tests
8062   # that include AC_TRY_COMPILE now, as the linker is assumed to be
8063   # working.
8064   GLIBCPP_IS_CROSS_COMPILING=0
8065   CANADIAN=no
8066
8067   # Check for available headers.
8068   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8069   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
8070 do
8071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8073 echo "configure:8074: checking for $ac_hdr" >&5
8074 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8075   echo $ac_n "(cached) $ac_c" 1>&6
8076 else
8077   cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8080 #include <$ac_hdr>
8081 EOF
8082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8083 { (eval echo configure:8084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8085 if test -z "$ac_err"; then
8086   rm -rf conftest*
8087   eval "ac_cv_header_$ac_safe=yes"
8088 else
8089   echo "$ac_err" >&5
8090   echo "configure: failed program was:" >&5
8091   cat conftest.$ac_ext >&5
8092   rm -rf conftest*
8093   eval "ac_cv_header_$ac_safe=no"
8094 fi
8095 rm -f conftest*
8096 fi
8097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8098   echo "$ac_t""yes" 1>&6
8099     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8100   cat >> confdefs.h <<EOF
8101 #define $ac_tr_hdr 1
8102 EOF
8103  
8104 else
8105   echo "$ac_t""no" 1>&6
8106 fi
8107 done
8108
8109
8110   
8111   # All these tests are for C++; save the language and the compiler flags.
8112   # The CXXFLAGS thing is suspicious, but based on similar bits previously
8113   # found in GLIBCPP_CONFIGURE.
8114   
8115   ac_ext=C
8116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8117 ac_cpp='$CXXCPP $CPPFLAGS'
8118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8120 cross_compiling=$ac_cv_prog_cxx_cross
8121
8122   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8123   ac_save_CXXFLAGS="$CXXFLAGS"
8124
8125   # Check for maintainer-mode bits.
8126   if test x"$USE_MAINTAINER_MODE" = xno; then
8127     WERROR=''
8128   else
8129     WERROR='-Werror'
8130   fi
8131
8132   # Check for -ffunction-sections -fdata-sections
8133   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
8134 echo "configure:8135: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8135   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8136   cat > conftest.$ac_ext <<EOF
8137 #line 8138 "configure"
8138 #include "confdefs.h"
8139
8140 int main() {
8141 int foo;
8142   
8143 ; return 0; }
8144 EOF
8145 if { (eval echo configure:8146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8146   rm -rf conftest*
8147   ac_fdsections=yes
8148 else
8149   echo "configure: failed program was:" >&5
8150   cat conftest.$ac_ext >&5
8151   rm -rf conftest*
8152   ac_fdsections=no
8153 fi
8154 rm -f conftest*
8155   if test "$ac_test_CXXFLAGS" = set; then
8156     CXXFLAGS="$ac_save_CXXFLAGS"
8157   else
8158     # this is the suspicious part
8159     CXXFLAGS=''
8160   fi
8161   if test x"$ac_fdsections" = x"yes" &&
8162      test x"$enable_debug" = x"no"; then
8163     SECTION_FLAGS='-ffunction-sections -fdata-sections'
8164   fi
8165   echo "$ac_t""$ac_fdsections" 1>&6
8166
8167   ac_ext=c
8168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8169 ac_cpp='$CPP $CPPFLAGS'
8170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8171 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8172 cross_compiling=$ac_cv_prog_cc_cross
8173
8174   
8175   
8176
8177   
8178   # If we're not using GNU ld, then there's no point in even trying these
8179   # tests.  Check for that first.  We should have already tested for gld
8180   # by now (in libtool), but require it now just to be safe...
8181   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8182   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8183   
8184
8185   # The name set by libtool depends on the version of libtool.  Shame on us
8186   # for depending on an impl detail, but c'est la vie.  Older versions used
8187   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8188   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8189   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8190   # set (hence we're using an older libtool), then set it.
8191   if test x${with_gnu_ld+set} != xset; then
8192     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8193       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8194       with_gnu_ld=no
8195     else
8196       with_gnu_ld=$ac_cv_prog_gnu_ld
8197     fi
8198   fi
8199
8200   # Start by getting the version number.  I think the libtool test already
8201   # does some of this, but throws away the result.
8202   
8203   ldver=`$LD --version 2>/dev/null | head -1 | \
8204          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8205   
8206   glibcpp_gnu_ld_version=`echo $ldver | \
8207          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8208
8209   # Set --gc-sections.
8210   if test "$with_gnu_ld" = "notbroken"; then
8211     # GNU ld it is!  Joy and bunny rabbits!
8212
8213     # All these tests are for C++; save the language and the compiler flags.
8214     # Need to do this so that g++ won't try to link in libstdc++
8215     ac_test_CFLAGS="${CFLAGS+set}"
8216     ac_save_CFLAGS="$CFLAGS"
8217     CFLAGS='-x c++  -Wl,--gc-sections'
8218
8219     # Check for -Wl,--gc-sections
8220     # XXX This test is broken at the moment, as symbols required for
8221     # linking are now in libsupc++ (not built yet.....). In addition, 
8222     # this test has cored on solaris in the past. In addition,
8223     # --gc-sections doesn't really work at the moment (keeps on discarding
8224     # used sections, first .eh_frame and now some of the glibc sections for
8225     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8226     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8227 echo "configure:8228: checking for ld that supports -Wl,--gc-sections" >&5
8228     if test "$cross_compiling" = yes; then
8229   ac_sectionLDflags=yes
8230 else
8231   cat > conftest.$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234
8235      int main(void) 
8236      {
8237        try { throw 1; }
8238        catch (...) { };
8239        return 0;
8240      }
8241     
8242 EOF
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8244 then
8245   ac_sectionLDflags=yes
8246 else
8247   echo "configure: failed program was:" >&5
8248   cat conftest.$ac_ext >&5
8249   rm -fr conftest*
8250   ac_sectionLDflags=no
8251 fi
8252 rm -fr conftest*
8253 fi
8254
8255     if test "$ac_test_CFLAGS" = set; then
8256       CFLAGS="$ac_save_CFLAGS"
8257     else
8258       # this is the suspicious part
8259       CFLAGS=''
8260     fi
8261     if test "$ac_sectionLDflags" = "yes"; then
8262       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8263     fi
8264     echo "$ac_t""$ac_sectionLDflags" 1>&6
8265   fi
8266
8267   # Set linker optimization flags.
8268   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8269     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8270   fi
8271
8272   
8273   
8274
8275   
8276       
8277   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
8278 echo "configure:8279: checking for __builtin_abs declaration" >&5
8279   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
8280     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
8281   echo $ac_n "(cached) $ac_c" 1>&6
8282 else
8283   
8284       
8285       ac_ext=C
8286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8287 ac_cpp='$CXXCPP $CPPFLAGS'
8288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8290 cross_compiling=$ac_cv_prog_cxx_cross
8291
8292       cat > conftest.$ac_ext <<EOF
8293 #line 8294 "configure"
8294 #include "confdefs.h"
8295 #include <math.h>
8296 int main() {
8297  __builtin_abs(0);
8298 ; return 0; }
8299 EOF
8300 if { (eval echo configure:8301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8301   rm -rf conftest*
8302   glibcpp_cv_func___builtin_abs_use=yes
8303 else
8304   echo "configure: failed program was:" >&5
8305   cat conftest.$ac_ext >&5
8306   rm -rf conftest*
8307   glibcpp_cv_func___builtin_abs_use=no
8308 fi
8309 rm -f conftest*
8310       ac_ext=c
8311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8312 ac_cpp='$CPP $CPPFLAGS'
8313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8315 cross_compiling=$ac_cv_prog_cc_cross
8316
8317     
8318 fi
8319
8320   fi
8321   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
8322   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
8323     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
8324 echo "configure:8325: checking for __builtin_abs linkage" >&5
8325     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
8326       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
8327   echo $ac_n "(cached) $ac_c" 1>&6
8328 else
8329   
8330         cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8333 #include <math.h>
8334 int main() {
8335  __builtin_abs(0);
8336 ; return 0; }
8337 EOF
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8339   rm -rf conftest*
8340   glibcpp_cv_func___builtin_abs_link=yes
8341 else
8342   echo "configure: failed program was:" >&5
8343   cat conftest.$ac_ext >&5
8344   rm -rf conftest*
8345   glibcpp_cv_func___builtin_abs_link=no
8346 fi
8347 rm -f conftest*
8348       
8349 fi
8350
8351     fi
8352     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
8353     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
8354       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8355       cat >> confdefs.h <<EOF
8356 #define ${ac_tr_func} 1
8357 EOF
8358
8359     fi
8360   fi
8361
8362   
8363   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
8364 echo "configure:8365: checking for __builtin_fabsf declaration" >&5
8365   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
8366     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
8367   echo $ac_n "(cached) $ac_c" 1>&6
8368 else
8369   
8370       
8371       ac_ext=C
8372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8373 ac_cpp='$CXXCPP $CPPFLAGS'
8374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8376 cross_compiling=$ac_cv_prog_cxx_cross
8377
8378       cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 #include <math.h>
8382 int main() {
8383  __builtin_fabsf(0);
8384 ; return 0; }
8385 EOF
8386 if { (eval echo configure:8387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8387   rm -rf conftest*
8388   glibcpp_cv_func___builtin_fabsf_use=yes
8389 else
8390   echo "configure: failed program was:" >&5
8391   cat conftest.$ac_ext >&5
8392   rm -rf conftest*
8393   glibcpp_cv_func___builtin_fabsf_use=no
8394 fi
8395 rm -f conftest*
8396       ac_ext=c
8397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8398 ac_cpp='$CPP $CPPFLAGS'
8399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8401 cross_compiling=$ac_cv_prog_cc_cross
8402
8403     
8404 fi
8405
8406   fi
8407   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
8408   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
8409     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
8410 echo "configure:8411: checking for __builtin_fabsf linkage" >&5
8411     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
8412       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
8413   echo $ac_n "(cached) $ac_c" 1>&6
8414 else
8415   
8416         cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419 #include <math.h>
8420 int main() {
8421  __builtin_fabsf(0);
8422 ; return 0; }
8423 EOF
8424 if { (eval echo configure:8425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8425   rm -rf conftest*
8426   glibcpp_cv_func___builtin_fabsf_link=yes
8427 else
8428   echo "configure: failed program was:" >&5
8429   cat conftest.$ac_ext >&5
8430   rm -rf conftest*
8431   glibcpp_cv_func___builtin_fabsf_link=no
8432 fi
8433 rm -f conftest*
8434       
8435 fi
8436
8437     fi
8438     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
8439     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
8440       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8441       cat >> confdefs.h <<EOF
8442 #define ${ac_tr_func} 1
8443 EOF
8444
8445     fi
8446   fi
8447
8448   
8449   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
8450 echo "configure:8451: checking for __builtin_fabs declaration" >&5
8451   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
8452     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
8453   echo $ac_n "(cached) $ac_c" 1>&6
8454 else
8455   
8456       
8457       ac_ext=C
8458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8459 ac_cpp='$CXXCPP $CPPFLAGS'
8460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8462 cross_compiling=$ac_cv_prog_cxx_cross
8463
8464       cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 #include <math.h>
8468 int main() {
8469  __builtin_fabs(0);
8470 ; return 0; }
8471 EOF
8472 if { (eval echo configure:8473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8473   rm -rf conftest*
8474   glibcpp_cv_func___builtin_fabs_use=yes
8475 else
8476   echo "configure: failed program was:" >&5
8477   cat conftest.$ac_ext >&5
8478   rm -rf conftest*
8479   glibcpp_cv_func___builtin_fabs_use=no
8480 fi
8481 rm -f conftest*
8482       ac_ext=c
8483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8484 ac_cpp='$CPP $CPPFLAGS'
8485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8487 cross_compiling=$ac_cv_prog_cc_cross
8488
8489     
8490 fi
8491
8492   fi
8493   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8494   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8495     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8496 echo "configure:8497: checking for __builtin_fabs linkage" >&5
8497     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8498       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8499   echo $ac_n "(cached) $ac_c" 1>&6
8500 else
8501   
8502         cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 #include <math.h>
8506 int main() {
8507  __builtin_fabs(0);
8508 ; return 0; }
8509 EOF
8510 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8511   rm -rf conftest*
8512   glibcpp_cv_func___builtin_fabs_link=yes
8513 else
8514   echo "configure: failed program was:" >&5
8515   cat conftest.$ac_ext >&5
8516   rm -rf conftest*
8517   glibcpp_cv_func___builtin_fabs_link=no
8518 fi
8519 rm -f conftest*
8520       
8521 fi
8522
8523     fi
8524     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8525     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8526       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8527       cat >> confdefs.h <<EOF
8528 #define ${ac_tr_func} 1
8529 EOF
8530
8531     fi
8532   fi
8533
8534   
8535   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8536 echo "configure:8537: checking for __builtin_fabsl declaration" >&5
8537   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8538     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8539   echo $ac_n "(cached) $ac_c" 1>&6
8540 else
8541   
8542       
8543       ac_ext=C
8544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8545 ac_cpp='$CXXCPP $CPPFLAGS'
8546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8548 cross_compiling=$ac_cv_prog_cxx_cross
8549
8550       cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure"
8552 #include "confdefs.h"
8553 #include <math.h>
8554 int main() {
8555  __builtin_fabsl(0);
8556 ; return 0; }
8557 EOF
8558 if { (eval echo configure:8559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8559   rm -rf conftest*
8560   glibcpp_cv_func___builtin_fabsl_use=yes
8561 else
8562   echo "configure: failed program was:" >&5
8563   cat conftest.$ac_ext >&5
8564   rm -rf conftest*
8565   glibcpp_cv_func___builtin_fabsl_use=no
8566 fi
8567 rm -f conftest*
8568       ac_ext=c
8569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8570 ac_cpp='$CPP $CPPFLAGS'
8571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8573 cross_compiling=$ac_cv_prog_cc_cross
8574
8575     
8576 fi
8577
8578   fi
8579   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8580   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8581     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8582 echo "configure:8583: checking for __builtin_fabsl linkage" >&5
8583     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8584       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8585   echo $ac_n "(cached) $ac_c" 1>&6
8586 else
8587   
8588         cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8591 #include <math.h>
8592 int main() {
8593  __builtin_fabsl(0);
8594 ; return 0; }
8595 EOF
8596 if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8597   rm -rf conftest*
8598   glibcpp_cv_func___builtin_fabsl_link=yes
8599 else
8600   echo "configure: failed program was:" >&5
8601   cat conftest.$ac_ext >&5
8602   rm -rf conftest*
8603   glibcpp_cv_func___builtin_fabsl_link=no
8604 fi
8605 rm -f conftest*
8606       
8607 fi
8608
8609     fi
8610     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8611     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8612       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8613       cat >> confdefs.h <<EOF
8614 #define ${ac_tr_func} 1
8615 EOF
8616
8617     fi
8618   fi
8619
8620   
8621   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8622 echo "configure:8623: checking for __builtin_labs declaration" >&5
8623   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8624     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8625   echo $ac_n "(cached) $ac_c" 1>&6
8626 else
8627   
8628       
8629       ac_ext=C
8630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8631 ac_cpp='$CXXCPP $CPPFLAGS'
8632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8634 cross_compiling=$ac_cv_prog_cxx_cross
8635
8636       cat > conftest.$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 #include <math.h>
8640 int main() {
8641  __builtin_labs(0);
8642 ; return 0; }
8643 EOF
8644 if { (eval echo configure:8645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8645   rm -rf conftest*
8646   glibcpp_cv_func___builtin_labs_use=yes
8647 else
8648   echo "configure: failed program was:" >&5
8649   cat conftest.$ac_ext >&5
8650   rm -rf conftest*
8651   glibcpp_cv_func___builtin_labs_use=no
8652 fi
8653 rm -f conftest*
8654       ac_ext=c
8655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8659 cross_compiling=$ac_cv_prog_cc_cross
8660
8661     
8662 fi
8663
8664   fi
8665   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8666   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8667     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8668 echo "configure:8669: checking for __builtin_labs linkage" >&5
8669     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8670       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8671   echo $ac_n "(cached) $ac_c" 1>&6
8672 else
8673   
8674         cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 #include <math.h>
8678 int main() {
8679  __builtin_labs(0);
8680 ; return 0; }
8681 EOF
8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8683   rm -rf conftest*
8684   glibcpp_cv_func___builtin_labs_link=yes
8685 else
8686   echo "configure: failed program was:" >&5
8687   cat conftest.$ac_ext >&5
8688   rm -rf conftest*
8689   glibcpp_cv_func___builtin_labs_link=no
8690 fi
8691 rm -f conftest*
8692       
8693 fi
8694
8695     fi
8696     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8697     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8698       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8699       cat >> confdefs.h <<EOF
8700 #define ${ac_tr_func} 1
8701 EOF
8702
8703     fi
8704   fi
8705
8706
8707   
8708   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8709 echo "configure:8710: checking for __builtin_sqrtf declaration" >&5
8710   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8711     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8712   echo $ac_n "(cached) $ac_c" 1>&6
8713 else
8714   
8715       
8716       ac_ext=C
8717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8718 ac_cpp='$CXXCPP $CPPFLAGS'
8719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8721 cross_compiling=$ac_cv_prog_cxx_cross
8722
8723       cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8726 #include <math.h>
8727 int main() {
8728  __builtin_sqrtf(0);
8729 ; return 0; }
8730 EOF
8731 if { (eval echo configure:8732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8732   rm -rf conftest*
8733   glibcpp_cv_func___builtin_sqrtf_use=yes
8734 else
8735   echo "configure: failed program was:" >&5
8736   cat conftest.$ac_ext >&5
8737   rm -rf conftest*
8738   glibcpp_cv_func___builtin_sqrtf_use=no
8739 fi
8740 rm -f conftest*
8741       ac_ext=c
8742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8743 ac_cpp='$CPP $CPPFLAGS'
8744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8746 cross_compiling=$ac_cv_prog_cc_cross
8747
8748     
8749 fi
8750
8751   fi
8752   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8753   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8754     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8755 echo "configure:8756: checking for __builtin_sqrtf linkage" >&5
8756     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8757       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8758   echo $ac_n "(cached) $ac_c" 1>&6
8759 else
8760   
8761         cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 #include <math.h>
8765 int main() {
8766  __builtin_sqrtf(0);
8767 ; return 0; }
8768 EOF
8769 if { (eval echo configure:8770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8770   rm -rf conftest*
8771   glibcpp_cv_func___builtin_sqrtf_link=yes
8772 else
8773   echo "configure: failed program was:" >&5
8774   cat conftest.$ac_ext >&5
8775   rm -rf conftest*
8776   glibcpp_cv_func___builtin_sqrtf_link=no
8777 fi
8778 rm -f conftest*
8779       
8780 fi
8781
8782     fi
8783     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8784     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8785       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8786       cat >> confdefs.h <<EOF
8787 #define ${ac_tr_func} 1
8788 EOF
8789
8790     fi
8791   fi
8792
8793   
8794   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8795 echo "configure:8796: checking for __builtin_sqrt declaration" >&5
8796   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8797     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8798   echo $ac_n "(cached) $ac_c" 1>&6
8799 else
8800   
8801       
8802       ac_ext=C
8803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8804 ac_cpp='$CXXCPP $CPPFLAGS'
8805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8807 cross_compiling=$ac_cv_prog_cxx_cross
8808
8809       cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8812 #include <math.h>
8813 int main() {
8814  __builtin_sqrt(0);
8815 ; return 0; }
8816 EOF
8817 if { (eval echo configure:8818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8818   rm -rf conftest*
8819   glibcpp_cv_func___builtin_sqrt_use=yes
8820 else
8821   echo "configure: failed program was:" >&5
8822   cat conftest.$ac_ext >&5
8823   rm -rf conftest*
8824   glibcpp_cv_func___builtin_sqrt_use=no
8825 fi
8826 rm -f conftest*
8827       ac_ext=c
8828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8829 ac_cpp='$CPP $CPPFLAGS'
8830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8832 cross_compiling=$ac_cv_prog_cc_cross
8833
8834     
8835 fi
8836
8837   fi
8838   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
8839   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
8840     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
8841 echo "configure:8842: checking for __builtin_sqrt linkage" >&5
8842     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
8843       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
8844   echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846   
8847         cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 #include <math.h>
8851 int main() {
8852  __builtin_sqrt(0);
8853 ; return 0; }
8854 EOF
8855 if { (eval echo configure:8856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8856   rm -rf conftest*
8857   glibcpp_cv_func___builtin_sqrt_link=yes
8858 else
8859   echo "configure: failed program was:" >&5
8860   cat conftest.$ac_ext >&5
8861   rm -rf conftest*
8862   glibcpp_cv_func___builtin_sqrt_link=no
8863 fi
8864 rm -f conftest*
8865       
8866 fi
8867
8868     fi
8869     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
8870     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
8871       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8872       cat >> confdefs.h <<EOF
8873 #define ${ac_tr_func} 1
8874 EOF
8875
8876     fi
8877   fi
8878
8879   
8880   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
8881 echo "configure:8882: checking for __builtin_sqrtl declaration" >&5
8882   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
8883     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
8884   echo $ac_n "(cached) $ac_c" 1>&6
8885 else
8886   
8887       
8888       ac_ext=C
8889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8890 ac_cpp='$CXXCPP $CPPFLAGS'
8891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8893 cross_compiling=$ac_cv_prog_cxx_cross
8894
8895       cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 #include <math.h>
8899 int main() {
8900  __builtin_sqrtl(0);
8901 ; return 0; }
8902 EOF
8903 if { (eval echo configure:8904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8904   rm -rf conftest*
8905   glibcpp_cv_func___builtin_sqrtl_use=yes
8906 else
8907   echo "configure: failed program was:" >&5
8908   cat conftest.$ac_ext >&5
8909   rm -rf conftest*
8910   glibcpp_cv_func___builtin_sqrtl_use=no
8911 fi
8912 rm -f conftest*
8913       ac_ext=c
8914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8915 ac_cpp='$CPP $CPPFLAGS'
8916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8918 cross_compiling=$ac_cv_prog_cc_cross
8919
8920     
8921 fi
8922
8923   fi
8924   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
8925   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
8926     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
8927 echo "configure:8928: checking for __builtin_sqrtl linkage" >&5
8928     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
8929       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
8930   echo $ac_n "(cached) $ac_c" 1>&6
8931 else
8932   
8933         cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <math.h>
8937 int main() {
8938  __builtin_sqrtl(0);
8939 ; return 0; }
8940 EOF
8941 if { (eval echo configure:8942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8942   rm -rf conftest*
8943   glibcpp_cv_func___builtin_sqrtl_link=yes
8944 else
8945   echo "configure: failed program was:" >&5
8946   cat conftest.$ac_ext >&5
8947   rm -rf conftest*
8948   glibcpp_cv_func___builtin_sqrtl_link=no
8949 fi
8950 rm -f conftest*
8951       
8952 fi
8953
8954     fi
8955     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
8956     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
8957       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8958       cat >> confdefs.h <<EOF
8959 #define ${ac_tr_func} 1
8960 EOF
8961
8962     fi
8963   fi
8964
8965
8966   
8967   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
8968 echo "configure:8969: checking for __builtin_sinf declaration" >&5
8969   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
8970     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
8971   echo $ac_n "(cached) $ac_c" 1>&6
8972 else
8973   
8974       
8975       ac_ext=C
8976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8977 ac_cpp='$CXXCPP $CPPFLAGS'
8978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8980 cross_compiling=$ac_cv_prog_cxx_cross
8981
8982       cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 #include <math.h>
8986 int main() {
8987  __builtin_sinf(0);
8988 ; return 0; }
8989 EOF
8990 if { (eval echo configure:8991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8991   rm -rf conftest*
8992   glibcpp_cv_func___builtin_sinf_use=yes
8993 else
8994   echo "configure: failed program was:" >&5
8995   cat conftest.$ac_ext >&5
8996   rm -rf conftest*
8997   glibcpp_cv_func___builtin_sinf_use=no
8998 fi
8999 rm -f conftest*
9000       ac_ext=c
9001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9002 ac_cpp='$CPP $CPPFLAGS'
9003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9005 cross_compiling=$ac_cv_prog_cc_cross
9006
9007     
9008 fi
9009
9010   fi
9011   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
9012   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
9013     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
9014 echo "configure:9015: checking for __builtin_sinf linkage" >&5
9015     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
9016       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
9017   echo $ac_n "(cached) $ac_c" 1>&6
9018 else
9019   
9020         cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9023 #include <math.h>
9024 int main() {
9025  __builtin_sinf(0);
9026 ; return 0; }
9027 EOF
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029   rm -rf conftest*
9030   glibcpp_cv_func___builtin_sinf_link=yes
9031 else
9032   echo "configure: failed program was:" >&5
9033   cat conftest.$ac_ext >&5
9034   rm -rf conftest*
9035   glibcpp_cv_func___builtin_sinf_link=no
9036 fi
9037 rm -f conftest*
9038       
9039 fi
9040
9041     fi
9042     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
9043     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
9044       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9045       cat >> confdefs.h <<EOF
9046 #define ${ac_tr_func} 1
9047 EOF
9048
9049     fi
9050   fi
9051
9052   
9053   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
9054 echo "configure:9055: checking for __builtin_sin declaration" >&5
9055   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
9056     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
9057   echo $ac_n "(cached) $ac_c" 1>&6
9058 else
9059   
9060       
9061       ac_ext=C
9062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9063 ac_cpp='$CXXCPP $CPPFLAGS'
9064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9066 cross_compiling=$ac_cv_prog_cxx_cross
9067
9068       cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 #include <math.h>
9072 int main() {
9073  __builtin_sin(0);
9074 ; return 0; }
9075 EOF
9076 if { (eval echo configure:9077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9077   rm -rf conftest*
9078   glibcpp_cv_func___builtin_sin_use=yes
9079 else
9080   echo "configure: failed program was:" >&5
9081   cat conftest.$ac_ext >&5
9082   rm -rf conftest*
9083   glibcpp_cv_func___builtin_sin_use=no
9084 fi
9085 rm -f conftest*
9086       ac_ext=c
9087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9088 ac_cpp='$CPP $CPPFLAGS'
9089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9091 cross_compiling=$ac_cv_prog_cc_cross
9092
9093     
9094 fi
9095
9096   fi
9097   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
9098   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
9099     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
9100 echo "configure:9101: checking for __builtin_sin linkage" >&5
9101     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
9102       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
9103   echo $ac_n "(cached) $ac_c" 1>&6
9104 else
9105   
9106         cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 #include <math.h>
9110 int main() {
9111  __builtin_sin(0);
9112 ; return 0; }
9113 EOF
9114 if { (eval echo configure:9115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9115   rm -rf conftest*
9116   glibcpp_cv_func___builtin_sin_link=yes
9117 else
9118   echo "configure: failed program was:" >&5
9119   cat conftest.$ac_ext >&5
9120   rm -rf conftest*
9121   glibcpp_cv_func___builtin_sin_link=no
9122 fi
9123 rm -f conftest*
9124       
9125 fi
9126
9127     fi
9128     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
9129     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
9130       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9131       cat >> confdefs.h <<EOF
9132 #define ${ac_tr_func} 1
9133 EOF
9134
9135     fi
9136   fi
9137
9138   
9139   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
9140 echo "configure:9141: checking for __builtin_sinl declaration" >&5
9141   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
9142     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
9143   echo $ac_n "(cached) $ac_c" 1>&6
9144 else
9145   
9146       
9147       ac_ext=C
9148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9149 ac_cpp='$CXXCPP $CPPFLAGS'
9150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9152 cross_compiling=$ac_cv_prog_cxx_cross
9153
9154       cat > conftest.$ac_ext <<EOF
9155 #line 9156 "configure"
9156 #include "confdefs.h"
9157 #include <math.h>
9158 int main() {
9159  __builtin_sinl(0);
9160 ; return 0; }
9161 EOF
9162 if { (eval echo configure:9163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9163   rm -rf conftest*
9164   glibcpp_cv_func___builtin_sinl_use=yes
9165 else
9166   echo "configure: failed program was:" >&5
9167   cat conftest.$ac_ext >&5
9168   rm -rf conftest*
9169   glibcpp_cv_func___builtin_sinl_use=no
9170 fi
9171 rm -f conftest*
9172       ac_ext=c
9173 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9176 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9177 cross_compiling=$ac_cv_prog_cc_cross
9178
9179     
9180 fi
9181
9182   fi
9183   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
9184   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
9185     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
9186 echo "configure:9187: checking for __builtin_sinl linkage" >&5
9187     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
9188       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
9189   echo $ac_n "(cached) $ac_c" 1>&6
9190 else
9191   
9192         cat > conftest.$ac_ext <<EOF
9193 #line 9194 "configure"
9194 #include "confdefs.h"
9195 #include <math.h>
9196 int main() {
9197  __builtin_sinl(0);
9198 ; return 0; }
9199 EOF
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9201   rm -rf conftest*
9202   glibcpp_cv_func___builtin_sinl_link=yes
9203 else
9204   echo "configure: failed program was:" >&5
9205   cat conftest.$ac_ext >&5
9206   rm -rf conftest*
9207   glibcpp_cv_func___builtin_sinl_link=no
9208 fi
9209 rm -f conftest*
9210       
9211 fi
9212
9213     fi
9214     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
9215     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
9216       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9217       cat >> confdefs.h <<EOF
9218 #define ${ac_tr_func} 1
9219 EOF
9220
9221     fi
9222   fi
9223
9224
9225   
9226   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
9227 echo "configure:9228: checking for __builtin_cosf declaration" >&5
9228   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
9229     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
9230   echo $ac_n "(cached) $ac_c" 1>&6
9231 else
9232   
9233       
9234       ac_ext=C
9235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9236 ac_cpp='$CXXCPP $CPPFLAGS'
9237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9239 cross_compiling=$ac_cv_prog_cxx_cross
9240
9241       cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9244 #include <math.h>
9245 int main() {
9246  __builtin_cosf(0);
9247 ; return 0; }
9248 EOF
9249 if { (eval echo configure:9250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9250   rm -rf conftest*
9251   glibcpp_cv_func___builtin_cosf_use=yes
9252 else
9253   echo "configure: failed program was:" >&5
9254   cat conftest.$ac_ext >&5
9255   rm -rf conftest*
9256   glibcpp_cv_func___builtin_cosf_use=no
9257 fi
9258 rm -f conftest*
9259       ac_ext=c
9260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9261 ac_cpp='$CPP $CPPFLAGS'
9262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9264 cross_compiling=$ac_cv_prog_cc_cross
9265
9266     
9267 fi
9268
9269   fi
9270   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
9271   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
9272     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
9273 echo "configure:9274: checking for __builtin_cosf linkage" >&5
9274     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
9275       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
9276   echo $ac_n "(cached) $ac_c" 1>&6
9277 else
9278   
9279         cat > conftest.$ac_ext <<EOF
9280 #line 9281 "configure"
9281 #include "confdefs.h"
9282 #include <math.h>
9283 int main() {
9284  __builtin_cosf(0);
9285 ; return 0; }
9286 EOF
9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9288   rm -rf conftest*
9289   glibcpp_cv_func___builtin_cosf_link=yes
9290 else
9291   echo "configure: failed program was:" >&5
9292   cat conftest.$ac_ext >&5
9293   rm -rf conftest*
9294   glibcpp_cv_func___builtin_cosf_link=no
9295 fi
9296 rm -f conftest*
9297       
9298 fi
9299
9300     fi
9301     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
9302     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
9303       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9304       cat >> confdefs.h <<EOF
9305 #define ${ac_tr_func} 1
9306 EOF
9307
9308     fi
9309   fi
9310
9311   
9312   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
9313 echo "configure:9314: checking for __builtin_cos declaration" >&5
9314   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
9315     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
9316   echo $ac_n "(cached) $ac_c" 1>&6
9317 else
9318   
9319       
9320       ac_ext=C
9321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9322 ac_cpp='$CXXCPP $CPPFLAGS'
9323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9325 cross_compiling=$ac_cv_prog_cxx_cross
9326
9327       cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 #include <math.h>
9331 int main() {
9332  __builtin_cos(0);
9333 ; return 0; }
9334 EOF
9335 if { (eval echo configure:9336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9336   rm -rf conftest*
9337   glibcpp_cv_func___builtin_cos_use=yes
9338 else
9339   echo "configure: failed program was:" >&5
9340   cat conftest.$ac_ext >&5
9341   rm -rf conftest*
9342   glibcpp_cv_func___builtin_cos_use=no
9343 fi
9344 rm -f conftest*
9345       ac_ext=c
9346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9347 ac_cpp='$CPP $CPPFLAGS'
9348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9350 cross_compiling=$ac_cv_prog_cc_cross
9351
9352     
9353 fi
9354
9355   fi
9356   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
9357   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
9358     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
9359 echo "configure:9360: checking for __builtin_cos linkage" >&5
9360     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
9361       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
9362   echo $ac_n "(cached) $ac_c" 1>&6
9363 else
9364   
9365         cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 #include <math.h>
9369 int main() {
9370  __builtin_cos(0);
9371 ; return 0; }
9372 EOF
9373 if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9374   rm -rf conftest*
9375   glibcpp_cv_func___builtin_cos_link=yes
9376 else
9377   echo "configure: failed program was:" >&5
9378   cat conftest.$ac_ext >&5
9379   rm -rf conftest*
9380   glibcpp_cv_func___builtin_cos_link=no
9381 fi
9382 rm -f conftest*
9383       
9384 fi
9385
9386     fi
9387     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
9388     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
9389       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9390       cat >> confdefs.h <<EOF
9391 #define ${ac_tr_func} 1
9392 EOF
9393
9394     fi
9395   fi
9396
9397   
9398   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
9399 echo "configure:9400: checking for __builtin_cosl declaration" >&5
9400   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
9401     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
9402   echo $ac_n "(cached) $ac_c" 1>&6
9403 else
9404   
9405       
9406       ac_ext=C
9407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9408 ac_cpp='$CXXCPP $CPPFLAGS'
9409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9411 cross_compiling=$ac_cv_prog_cxx_cross
9412
9413       cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 #include <math.h>
9417 int main() {
9418  __builtin_cosl(0);
9419 ; return 0; }
9420 EOF
9421 if { (eval echo configure:9422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9422   rm -rf conftest*
9423   glibcpp_cv_func___builtin_cosl_use=yes
9424 else
9425   echo "configure: failed program was:" >&5
9426   cat conftest.$ac_ext >&5
9427   rm -rf conftest*
9428   glibcpp_cv_func___builtin_cosl_use=no
9429 fi
9430 rm -f conftest*
9431       ac_ext=c
9432 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9433 ac_cpp='$CPP $CPPFLAGS'
9434 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9435 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9436 cross_compiling=$ac_cv_prog_cc_cross
9437
9438     
9439 fi
9440
9441   fi
9442   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
9443   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
9444     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
9445 echo "configure:9446: checking for __builtin_cosl linkage" >&5
9446     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
9447       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
9448   echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9450   
9451         cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <math.h>
9455 int main() {
9456  __builtin_cosl(0);
9457 ; return 0; }
9458 EOF
9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9460   rm -rf conftest*
9461   glibcpp_cv_func___builtin_cosl_link=yes
9462 else
9463   echo "configure: failed program was:" >&5
9464   cat conftest.$ac_ext >&5
9465   rm -rf conftest*
9466   glibcpp_cv_func___builtin_cosl_link=no
9467 fi
9468 rm -f conftest*
9469       
9470 fi
9471
9472     fi
9473     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
9474     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
9475       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9476       cat >> confdefs.h <<EOF
9477 #define ${ac_tr_func} 1
9478 EOF
9479
9480     fi
9481   fi
9482
9483
9484               dummyvar=no
9485   if test x$dummyvar = x"yes"; then
9486     cat >> confdefs.h <<\EOF
9487 #define HAVE___BUILTIN_ABS 1
9488 EOF
9489
9490     cat >> confdefs.h <<\EOF
9491 #define HAVE___BUILTIN_LABS 1
9492 EOF
9493
9494     cat >> confdefs.h <<\EOF
9495 #define HAVE___BUILTIN_COS 1
9496 EOF
9497
9498     cat >> confdefs.h <<\EOF
9499 #define HAVE___BUILTIN_COSF 1
9500 EOF
9501
9502     cat >> confdefs.h <<\EOF
9503 #define HAVE___BUILTIN_COSL 1
9504 EOF
9505
9506     cat >> confdefs.h <<\EOF
9507 #define HAVE___BUILTIN_FABS 1
9508 EOF
9509
9510     cat >> confdefs.h <<\EOF
9511 #define HAVE___BUILTIN_FABSF 1
9512 EOF
9513
9514     cat >> confdefs.h <<\EOF
9515 #define HAVE___BUILTIN_FABSL 1
9516 EOF
9517
9518     cat >> confdefs.h <<\EOF
9519 #define HAVE___BUILTIN_SIN 1
9520 EOF
9521
9522     cat >> confdefs.h <<\EOF
9523 #define HAVE___BUILTIN_SINF 1
9524 EOF
9525
9526     cat >> confdefs.h <<\EOF
9527 #define HAVE___BUILTIN_SINL 1
9528 EOF
9529
9530     cat >> confdefs.h <<\EOF
9531 #define HAVE___BUILTIN_SQRT 1
9532 EOF
9533
9534     cat >> confdefs.h <<\EOF
9535 #define HAVE___BUILTIN_SQRTF 1
9536 EOF
9537
9538     cat >> confdefs.h <<\EOF
9539 #define HAVE___BUILTIN_SQRTL 1
9540 EOF
9541
9542   fi
9543
9544   
9545   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9546   ac_save_CXXFLAGS="$CXXFLAGS"
9547   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9548
9549     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9550 echo "configure:9551: checking for sin in -lm" >&5
9551 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9553   echo $ac_n "(cached) $ac_c" 1>&6
9554 else
9555   ac_save_LIBS="$LIBS"
9556 LIBS="-lm  $LIBS"
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 /* Override any gcc2 internal prototype to avoid an error.  */
9561 /* We use char because int might match the return type of a gcc2
9562     builtin and then its argument prototype would still apply.  */
9563 char sin();
9564
9565 int main() {
9566 sin()
9567 ; return 0; }
9568 EOF
9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9570   rm -rf conftest*
9571   eval "ac_cv_lib_$ac_lib_var=yes"
9572 else
9573   echo "configure: failed program was:" >&5
9574   cat conftest.$ac_ext >&5
9575   rm -rf conftest*
9576   eval "ac_cv_lib_$ac_lib_var=no"
9577 fi
9578 rm -f conftest*
9579 LIBS="$ac_save_LIBS"
9580
9581 fi
9582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9583   echo "$ac_t""yes" 1>&6
9584   libm="-lm"
9585 else
9586   echo "$ac_t""no" 1>&6
9587 fi
9588
9589   ac_save_LIBS="$LIBS"
9590   LIBS="$LIBS $libm"
9591
9592     
9593   
9594   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9595 echo "configure:9596: checking for isinf declaration" >&5
9596   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9597     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9598   echo $ac_n "(cached) $ac_c" 1>&6
9599 else
9600   
9601       
9602       ac_ext=C
9603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9604 ac_cpp='$CXXCPP $CPPFLAGS'
9605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9607 cross_compiling=$ac_cv_prog_cxx_cross
9608
9609       cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9612 #include <math.h>
9613                       #ifdef HAVE_IEEEFP_H
9614                       #include <ieeefp.h>
9615                       #endif
9616                      
9617 int main() {
9618  isinf(0);
9619 ; return 0; }
9620 EOF
9621 if { (eval echo configure:9622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9622   rm -rf conftest*
9623   glibcpp_cv_func_isinf_use=yes
9624 else
9625   echo "configure: failed program was:" >&5
9626   cat conftest.$ac_ext >&5
9627   rm -rf conftest*
9628   glibcpp_cv_func_isinf_use=no
9629 fi
9630 rm -f conftest*
9631       ac_ext=c
9632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9633 ac_cpp='$CPP $CPPFLAGS'
9634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9636 cross_compiling=$ac_cv_prog_cc_cross
9637
9638     
9639 fi
9640
9641   fi
9642   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9643
9644   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9645     for ac_func in isinf
9646 do
9647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9648 echo "configure:9649: checking for $ac_func" >&5
9649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9650   echo $ac_n "(cached) $ac_c" 1>&6
9651 else
9652   cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 /* System header to define __stub macros and hopefully few prototypes,
9656     which can conflict with char $ac_func(); below.  */
9657 #include <assert.h>
9658 /* Override any gcc2 internal prototype to avoid an error.  */
9659 /* We use char because int might match the return type of a gcc2
9660     builtin and then its argument prototype would still apply.  */
9661 char $ac_func();
9662
9663 int main() {
9664
9665 /* The GNU C library defines this for functions which it implements
9666     to always fail with ENOSYS.  Some functions are actually named
9667     something starting with __ and the normal name is an alias.  */
9668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9669 choke me
9670 #else
9671 $ac_func();
9672 #endif
9673
9674 ; return 0; }
9675 EOF
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9677   rm -rf conftest*
9678   eval "ac_cv_func_$ac_func=yes"
9679 else
9680   echo "configure: failed program was:" >&5
9681   cat conftest.$ac_ext >&5
9682   rm -rf conftest*
9683   eval "ac_cv_func_$ac_func=no"
9684 fi
9685 rm -f conftest*
9686 fi
9687
9688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9689   echo "$ac_t""yes" 1>&6
9690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9691   cat >> confdefs.h <<EOF
9692 #define $ac_tr_func 1
9693 EOF
9694  
9695 else
9696   echo "$ac_t""no" 1>&6
9697 fi
9698 done
9699     
9700   else
9701     
9702   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9703 echo "configure:9704: checking for _isinf declaration" >&5
9704   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9705     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9706   echo $ac_n "(cached) $ac_c" 1>&6
9707 else
9708   
9709       
9710       ac_ext=C
9711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9712 ac_cpp='$CXXCPP $CPPFLAGS'
9713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9715 cross_compiling=$ac_cv_prog_cxx_cross
9716
9717       cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9720 #include <math.h>
9721                       #ifdef HAVE_IEEEFP_H
9722                       #include <ieeefp.h>
9723                       #endif
9724                      
9725 int main() {
9726  _isinf(0);
9727 ; return 0; }
9728 EOF
9729 if { (eval echo configure:9730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9730   rm -rf conftest*
9731   glibcpp_cv_func__isinf_use=yes
9732 else
9733   echo "configure: failed program was:" >&5
9734   cat conftest.$ac_ext >&5
9735   rm -rf conftest*
9736   glibcpp_cv_func__isinf_use=no
9737 fi
9738 rm -f conftest*
9739       ac_ext=c
9740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9741 ac_cpp='$CPP $CPPFLAGS'
9742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9744 cross_compiling=$ac_cv_prog_cc_cross
9745
9746     
9747 fi
9748
9749   fi
9750   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9751
9752     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9753       for ac_func in _isinf
9754 do
9755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9756 echo "configure:9757: checking for $ac_func" >&5
9757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9758   echo $ac_n "(cached) $ac_c" 1>&6
9759 else
9760   cat > conftest.$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9763 /* System header to define __stub macros and hopefully few prototypes,
9764     which can conflict with char $ac_func(); below.  */
9765 #include <assert.h>
9766 /* Override any gcc2 internal prototype to avoid an error.  */
9767 /* We use char because int might match the return type of a gcc2
9768     builtin and then its argument prototype would still apply.  */
9769 char $ac_func();
9770
9771 int main() {
9772
9773 /* The GNU C library defines this for functions which it implements
9774     to always fail with ENOSYS.  Some functions are actually named
9775     something starting with __ and the normal name is an alias.  */
9776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9777 choke me
9778 #else
9779 $ac_func();
9780 #endif
9781
9782 ; return 0; }
9783 EOF
9784 if { (eval echo configure:9785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9785   rm -rf conftest*
9786   eval "ac_cv_func_$ac_func=yes"
9787 else
9788   echo "configure: failed program was:" >&5
9789   cat conftest.$ac_ext >&5
9790   rm -rf conftest*
9791   eval "ac_cv_func_$ac_func=no"
9792 fi
9793 rm -f conftest*
9794 fi
9795
9796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9797   echo "$ac_t""yes" 1>&6
9798     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9799   cat >> confdefs.h <<EOF
9800 #define $ac_tr_func 1
9801 EOF
9802  
9803 else
9804   echo "$ac_t""no" 1>&6
9805 fi
9806 done
9807     
9808     fi
9809   fi
9810
9811   
9812   
9813   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
9814 echo "configure:9815: checking for isnan declaration" >&5
9815   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
9816     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
9817   echo $ac_n "(cached) $ac_c" 1>&6
9818 else
9819   
9820       
9821       ac_ext=C
9822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9823 ac_cpp='$CXXCPP $CPPFLAGS'
9824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9826 cross_compiling=$ac_cv_prog_cxx_cross
9827
9828       cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 #include <math.h>
9832                       #ifdef HAVE_IEEEFP_H
9833                       #include <ieeefp.h>
9834                       #endif
9835                      
9836 int main() {
9837  isnan(0);
9838 ; return 0; }
9839 EOF
9840 if { (eval echo configure:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9841   rm -rf conftest*
9842   glibcpp_cv_func_isnan_use=yes
9843 else
9844   echo "configure: failed program was:" >&5
9845   cat conftest.$ac_ext >&5
9846   rm -rf conftest*
9847   glibcpp_cv_func_isnan_use=no
9848 fi
9849 rm -f conftest*
9850       ac_ext=c
9851 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9852 ac_cpp='$CPP $CPPFLAGS'
9853 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9854 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9855 cross_compiling=$ac_cv_prog_cc_cross
9856
9857     
9858 fi
9859
9860   fi
9861   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
9862
9863   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
9864     for ac_func in isnan
9865 do
9866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9867 echo "configure:9868: checking for $ac_func" >&5
9868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9869   echo $ac_n "(cached) $ac_c" 1>&6
9870 else
9871   cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 /* System header to define __stub macros and hopefully few prototypes,
9875     which can conflict with char $ac_func(); below.  */
9876 #include <assert.h>
9877 /* Override any gcc2 internal prototype to avoid an error.  */
9878 /* We use char because int might match the return type of a gcc2
9879     builtin and then its argument prototype would still apply.  */
9880 char $ac_func();
9881
9882 int main() {
9883
9884 /* The GNU C library defines this for functions which it implements
9885     to always fail with ENOSYS.  Some functions are actually named
9886     something starting with __ and the normal name is an alias.  */
9887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9888 choke me
9889 #else
9890 $ac_func();
9891 #endif
9892
9893 ; return 0; }
9894 EOF
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9896   rm -rf conftest*
9897   eval "ac_cv_func_$ac_func=yes"
9898 else
9899   echo "configure: failed program was:" >&5
9900   cat conftest.$ac_ext >&5
9901   rm -rf conftest*
9902   eval "ac_cv_func_$ac_func=no"
9903 fi
9904 rm -f conftest*
9905 fi
9906
9907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9908   echo "$ac_t""yes" 1>&6
9909     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9910   cat >> confdefs.h <<EOF
9911 #define $ac_tr_func 1
9912 EOF
9913  
9914 else
9915   echo "$ac_t""no" 1>&6
9916 fi
9917 done
9918     
9919   else
9920     
9921   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
9922 echo "configure:9923: checking for _isnan declaration" >&5
9923   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
9924     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
9925   echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9927   
9928       
9929       ac_ext=C
9930 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9931 ac_cpp='$CXXCPP $CPPFLAGS'
9932 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9933 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9934 cross_compiling=$ac_cv_prog_cxx_cross
9935
9936       cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 #include <math.h>
9940                       #ifdef HAVE_IEEEFP_H
9941                       #include <ieeefp.h>
9942                       #endif
9943                      
9944 int main() {
9945  _isnan(0);
9946 ; return 0; }
9947 EOF
9948 if { (eval echo configure:9949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9949   rm -rf conftest*
9950   glibcpp_cv_func__isnan_use=yes
9951 else
9952   echo "configure: failed program was:" >&5
9953   cat conftest.$ac_ext >&5
9954   rm -rf conftest*
9955   glibcpp_cv_func__isnan_use=no
9956 fi
9957 rm -f conftest*
9958       ac_ext=c
9959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9960 ac_cpp='$CPP $CPPFLAGS'
9961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9963 cross_compiling=$ac_cv_prog_cc_cross
9964
9965     
9966 fi
9967
9968   fi
9969   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
9970
9971     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
9972       for ac_func in _isnan
9973 do
9974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9975 echo "configure:9976: checking for $ac_func" >&5
9976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9977   echo $ac_n "(cached) $ac_c" 1>&6
9978 else
9979   cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982 /* System header to define __stub macros and hopefully few prototypes,
9983     which can conflict with char $ac_func(); below.  */
9984 #include <assert.h>
9985 /* Override any gcc2 internal prototype to avoid an error.  */
9986 /* We use char because int might match the return type of a gcc2
9987     builtin and then its argument prototype would still apply.  */
9988 char $ac_func();
9989
9990 int main() {
9991
9992 /* The GNU C library defines this for functions which it implements
9993     to always fail with ENOSYS.  Some functions are actually named
9994     something starting with __ and the normal name is an alias.  */
9995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9996 choke me
9997 #else
9998 $ac_func();
9999 #endif
10000
10001 ; return 0; }
10002 EOF
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10004   rm -rf conftest*
10005   eval "ac_cv_func_$ac_func=yes"
10006 else
10007   echo "configure: failed program was:" >&5
10008   cat conftest.$ac_ext >&5
10009   rm -rf conftest*
10010   eval "ac_cv_func_$ac_func=no"
10011 fi
10012 rm -f conftest*
10013 fi
10014
10015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10016   echo "$ac_t""yes" 1>&6
10017     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10018   cat >> confdefs.h <<EOF
10019 #define $ac_tr_func 1
10020 EOF
10021  
10022 else
10023   echo "$ac_t""no" 1>&6
10024 fi
10025 done
10026     
10027     fi
10028   fi
10029
10030   
10031   
10032   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
10033 echo "configure:10034: checking for finite declaration" >&5
10034   if test x${glibcpp_cv_func_finite_use+set} != xset; then
10035     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
10036   echo $ac_n "(cached) $ac_c" 1>&6
10037 else
10038   
10039       
10040       ac_ext=C
10041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10042 ac_cpp='$CXXCPP $CPPFLAGS'
10043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10045 cross_compiling=$ac_cv_prog_cxx_cross
10046
10047       cat > conftest.$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 #include <math.h>
10051                       #ifdef HAVE_IEEEFP_H
10052                       #include <ieeefp.h>
10053                       #endif
10054                      
10055 int main() {
10056  finite(0);
10057 ; return 0; }
10058 EOF
10059 if { (eval echo configure:10060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10060   rm -rf conftest*
10061   glibcpp_cv_func_finite_use=yes
10062 else
10063   echo "configure: failed program was:" >&5
10064   cat conftest.$ac_ext >&5
10065   rm -rf conftest*
10066   glibcpp_cv_func_finite_use=no
10067 fi
10068 rm -f conftest*
10069       ac_ext=c
10070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10071 ac_cpp='$CPP $CPPFLAGS'
10072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10074 cross_compiling=$ac_cv_prog_cc_cross
10075
10076     
10077 fi
10078
10079   fi
10080   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
10081
10082   if test x$glibcpp_cv_func_finite_use = x"yes"; then
10083     for ac_func in finite
10084 do
10085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10086 echo "configure:10087: checking for $ac_func" >&5
10087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10088   echo $ac_n "(cached) $ac_c" 1>&6
10089 else
10090   cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093 /* System header to define __stub macros and hopefully few prototypes,
10094     which can conflict with char $ac_func(); below.  */
10095 #include <assert.h>
10096 /* Override any gcc2 internal prototype to avoid an error.  */
10097 /* We use char because int might match the return type of a gcc2
10098     builtin and then its argument prototype would still apply.  */
10099 char $ac_func();
10100
10101 int main() {
10102
10103 /* The GNU C library defines this for functions which it implements
10104     to always fail with ENOSYS.  Some functions are actually named
10105     something starting with __ and the normal name is an alias.  */
10106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10107 choke me
10108 #else
10109 $ac_func();
10110 #endif
10111
10112 ; return 0; }
10113 EOF
10114 if { (eval echo configure:10115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10115   rm -rf conftest*
10116   eval "ac_cv_func_$ac_func=yes"
10117 else
10118   echo "configure: failed program was:" >&5
10119   cat conftest.$ac_ext >&5
10120   rm -rf conftest*
10121   eval "ac_cv_func_$ac_func=no"
10122 fi
10123 rm -f conftest*
10124 fi
10125
10126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10127   echo "$ac_t""yes" 1>&6
10128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10129   cat >> confdefs.h <<EOF
10130 #define $ac_tr_func 1
10131 EOF
10132  
10133 else
10134   echo "$ac_t""no" 1>&6
10135 fi
10136 done
10137     
10138   else
10139     
10140   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
10141 echo "configure:10142: checking for _finite declaration" >&5
10142   if test x${glibcpp_cv_func__finite_use+set} != xset; then
10143     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
10144   echo $ac_n "(cached) $ac_c" 1>&6
10145 else
10146   
10147       
10148       ac_ext=C
10149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10150 ac_cpp='$CXXCPP $CPPFLAGS'
10151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10153 cross_compiling=$ac_cv_prog_cxx_cross
10154
10155       cat > conftest.$ac_ext <<EOF
10156 #line 10157 "configure"
10157 #include "confdefs.h"
10158 #include <math.h>
10159                       #ifdef HAVE_IEEEFP_H
10160                       #include <ieeefp.h>
10161                       #endif
10162                      
10163 int main() {
10164  _finite(0);
10165 ; return 0; }
10166 EOF
10167 if { (eval echo configure:10168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10168   rm -rf conftest*
10169   glibcpp_cv_func__finite_use=yes
10170 else
10171   echo "configure: failed program was:" >&5
10172   cat conftest.$ac_ext >&5
10173   rm -rf conftest*
10174   glibcpp_cv_func__finite_use=no
10175 fi
10176 rm -f conftest*
10177       ac_ext=c
10178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10182 cross_compiling=$ac_cv_prog_cc_cross
10183
10184     
10185 fi
10186
10187   fi
10188   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
10189
10190     if test x$glibcpp_cv_func__finite_use = x"yes"; then
10191       for ac_func in _finite
10192 do
10193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10194 echo "configure:10195: checking for $ac_func" >&5
10195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10196   echo $ac_n "(cached) $ac_c" 1>&6
10197 else
10198   cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 /* System header to define __stub macros and hopefully few prototypes,
10202     which can conflict with char $ac_func(); below.  */
10203 #include <assert.h>
10204 /* Override any gcc2 internal prototype to avoid an error.  */
10205 /* We use char because int might match the return type of a gcc2
10206     builtin and then its argument prototype would still apply.  */
10207 char $ac_func();
10208
10209 int main() {
10210
10211 /* The GNU C library defines this for functions which it implements
10212     to always fail with ENOSYS.  Some functions are actually named
10213     something starting with __ and the normal name is an alias.  */
10214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10215 choke me
10216 #else
10217 $ac_func();
10218 #endif
10219
10220 ; return 0; }
10221 EOF
10222 if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10223   rm -rf conftest*
10224   eval "ac_cv_func_$ac_func=yes"
10225 else
10226   echo "configure: failed program was:" >&5
10227   cat conftest.$ac_ext >&5
10228   rm -rf conftest*
10229   eval "ac_cv_func_$ac_func=no"
10230 fi
10231 rm -f conftest*
10232 fi
10233
10234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10235   echo "$ac_t""yes" 1>&6
10236     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10237   cat >> confdefs.h <<EOF
10238 #define $ac_tr_func 1
10239 EOF
10240  
10241 else
10242   echo "$ac_t""no" 1>&6
10243 fi
10244 done
10245     
10246     fi
10247   fi
10248
10249   
10250   
10251   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
10252 echo "configure:10253: checking for copysign declaration" >&5
10253   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
10254     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
10255   echo $ac_n "(cached) $ac_c" 1>&6
10256 else
10257   
10258       
10259       ac_ext=C
10260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10261 ac_cpp='$CXXCPP $CPPFLAGS'
10262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10264 cross_compiling=$ac_cv_prog_cxx_cross
10265
10266       cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure"
10268 #include "confdefs.h"
10269 #include <math.h>
10270 int main() {
10271  copysign(0, 0);
10272 ; return 0; }
10273 EOF
10274 if { (eval echo configure:10275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10275   rm -rf conftest*
10276   glibcpp_cv_func_copysign_use=yes
10277 else
10278   echo "configure: failed program was:" >&5
10279   cat conftest.$ac_ext >&5
10280   rm -rf conftest*
10281   glibcpp_cv_func_copysign_use=no
10282 fi
10283 rm -f conftest*
10284       ac_ext=c
10285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10286 ac_cpp='$CPP $CPPFLAGS'
10287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10289 cross_compiling=$ac_cv_prog_cc_cross
10290
10291     
10292 fi
10293
10294   fi
10295   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
10296
10297   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
10298     for ac_func in copysign
10299 do
10300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10301 echo "configure:10302: checking for $ac_func" >&5
10302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10303   echo $ac_n "(cached) $ac_c" 1>&6
10304 else
10305   cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 /* System header to define __stub macros and hopefully few prototypes,
10309     which can conflict with char $ac_func(); below.  */
10310 #include <assert.h>
10311 /* Override any gcc2 internal prototype to avoid an error.  */
10312 /* We use char because int might match the return type of a gcc2
10313     builtin and then its argument prototype would still apply.  */
10314 char $ac_func();
10315
10316 int main() {
10317
10318 /* The GNU C library defines this for functions which it implements
10319     to always fail with ENOSYS.  Some functions are actually named
10320     something starting with __ and the normal name is an alias.  */
10321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10322 choke me
10323 #else
10324 $ac_func();
10325 #endif
10326
10327 ; return 0; }
10328 EOF
10329 if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10330   rm -rf conftest*
10331   eval "ac_cv_func_$ac_func=yes"
10332 else
10333   echo "configure: failed program was:" >&5
10334   cat conftest.$ac_ext >&5
10335   rm -rf conftest*
10336   eval "ac_cv_func_$ac_func=no"
10337 fi
10338 rm -f conftest*
10339 fi
10340
10341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10342   echo "$ac_t""yes" 1>&6
10343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10344   cat >> confdefs.h <<EOF
10345 #define $ac_tr_func 1
10346 EOF
10347  
10348 else
10349   echo "$ac_t""no" 1>&6
10350 fi
10351 done
10352     
10353   else
10354     
10355   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
10356 echo "configure:10357: checking for _copysign declaration" >&5
10357   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
10358     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
10359   echo $ac_n "(cached) $ac_c" 1>&6
10360 else
10361   
10362       
10363       ac_ext=C
10364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10365 ac_cpp='$CXXCPP $CPPFLAGS'
10366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10368 cross_compiling=$ac_cv_prog_cxx_cross
10369
10370       cat > conftest.$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10373 #include <math.h>
10374 int main() {
10375  _copysign(0, 0);
10376 ; return 0; }
10377 EOF
10378 if { (eval echo configure:10379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10379   rm -rf conftest*
10380   glibcpp_cv_func__copysign_use=yes
10381 else
10382   echo "configure: failed program was:" >&5
10383   cat conftest.$ac_ext >&5
10384   rm -rf conftest*
10385   glibcpp_cv_func__copysign_use=no
10386 fi
10387 rm -f conftest*
10388       ac_ext=c
10389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10390 ac_cpp='$CPP $CPPFLAGS'
10391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10393 cross_compiling=$ac_cv_prog_cc_cross
10394
10395     
10396 fi
10397
10398   fi
10399   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
10400
10401     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
10402       for ac_func in _copysign
10403 do
10404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10405 echo "configure:10406: checking for $ac_func" >&5
10406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10407   echo $ac_n "(cached) $ac_c" 1>&6
10408 else
10409   cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 /* System header to define __stub macros and hopefully few prototypes,
10413     which can conflict with char $ac_func(); below.  */
10414 #include <assert.h>
10415 /* Override any gcc2 internal prototype to avoid an error.  */
10416 /* We use char because int might match the return type of a gcc2
10417     builtin and then its argument prototype would still apply.  */
10418 char $ac_func();
10419
10420 int main() {
10421
10422 /* The GNU C library defines this for functions which it implements
10423     to always fail with ENOSYS.  Some functions are actually named
10424     something starting with __ and the normal name is an alias.  */
10425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10426 choke me
10427 #else
10428 $ac_func();
10429 #endif
10430
10431 ; return 0; }
10432 EOF
10433 if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10434   rm -rf conftest*
10435   eval "ac_cv_func_$ac_func=yes"
10436 else
10437   echo "configure: failed program was:" >&5
10438   cat conftest.$ac_ext >&5
10439   rm -rf conftest*
10440   eval "ac_cv_func_$ac_func=no"
10441 fi
10442 rm -f conftest*
10443 fi
10444
10445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10446   echo "$ac_t""yes" 1>&6
10447     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10448   cat >> confdefs.h <<EOF
10449 #define $ac_tr_func 1
10450 EOF
10451  
10452 else
10453   echo "$ac_t""no" 1>&6
10454 fi
10455 done
10456     
10457     fi
10458   fi
10459
10460   
10461   
10462   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
10463 echo "configure:10464: checking for sincos declaration" >&5
10464   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
10465     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
10466   echo $ac_n "(cached) $ac_c" 1>&6
10467 else
10468   
10469       
10470       ac_ext=C
10471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10472 ac_cpp='$CXXCPP $CPPFLAGS'
10473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10475 cross_compiling=$ac_cv_prog_cxx_cross
10476
10477       cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10480 #include <math.h>
10481 int main() {
10482  sincos(0, 0, 0);
10483 ; return 0; }
10484 EOF
10485 if { (eval echo configure:10486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10486   rm -rf conftest*
10487   glibcpp_cv_func_sincos_use=yes
10488 else
10489   echo "configure: failed program was:" >&5
10490   cat conftest.$ac_ext >&5
10491   rm -rf conftest*
10492   glibcpp_cv_func_sincos_use=no
10493 fi
10494 rm -f conftest*
10495       ac_ext=c
10496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10497 ac_cpp='$CPP $CPPFLAGS'
10498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10500 cross_compiling=$ac_cv_prog_cc_cross
10501
10502     
10503 fi
10504
10505   fi
10506   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10507
10508   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10509     for ac_func in sincos
10510 do
10511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10512 echo "configure:10513: checking for $ac_func" >&5
10513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10514   echo $ac_n "(cached) $ac_c" 1>&6
10515 else
10516   cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 /* System header to define __stub macros and hopefully few prototypes,
10520     which can conflict with char $ac_func(); below.  */
10521 #include <assert.h>
10522 /* Override any gcc2 internal prototype to avoid an error.  */
10523 /* We use char because int might match the return type of a gcc2
10524     builtin and then its argument prototype would still apply.  */
10525 char $ac_func();
10526
10527 int main() {
10528
10529 /* The GNU C library defines this for functions which it implements
10530     to always fail with ENOSYS.  Some functions are actually named
10531     something starting with __ and the normal name is an alias.  */
10532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10533 choke me
10534 #else
10535 $ac_func();
10536 #endif
10537
10538 ; return 0; }
10539 EOF
10540 if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10541   rm -rf conftest*
10542   eval "ac_cv_func_$ac_func=yes"
10543 else
10544   echo "configure: failed program was:" >&5
10545   cat conftest.$ac_ext >&5
10546   rm -rf conftest*
10547   eval "ac_cv_func_$ac_func=no"
10548 fi
10549 rm -f conftest*
10550 fi
10551
10552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10553   echo "$ac_t""yes" 1>&6
10554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10555   cat >> confdefs.h <<EOF
10556 #define $ac_tr_func 1
10557 EOF
10558  
10559 else
10560   echo "$ac_t""no" 1>&6
10561 fi
10562 done
10563     
10564   else
10565     
10566   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10567 echo "configure:10568: checking for _sincos declaration" >&5
10568   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10569     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10570   echo $ac_n "(cached) $ac_c" 1>&6
10571 else
10572   
10573       
10574       ac_ext=C
10575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10576 ac_cpp='$CXXCPP $CPPFLAGS'
10577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10579 cross_compiling=$ac_cv_prog_cxx_cross
10580
10581       cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10584 #include <math.h>
10585 int main() {
10586  _sincos(0, 0, 0);
10587 ; return 0; }
10588 EOF
10589 if { (eval echo configure:10590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10590   rm -rf conftest*
10591   glibcpp_cv_func__sincos_use=yes
10592 else
10593   echo "configure: failed program was:" >&5
10594   cat conftest.$ac_ext >&5
10595   rm -rf conftest*
10596   glibcpp_cv_func__sincos_use=no
10597 fi
10598 rm -f conftest*
10599       ac_ext=c
10600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10601 ac_cpp='$CPP $CPPFLAGS'
10602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10604 cross_compiling=$ac_cv_prog_cc_cross
10605
10606     
10607 fi
10608
10609   fi
10610   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10611
10612     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10613       for ac_func in _sincos
10614 do
10615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10616 echo "configure:10617: checking for $ac_func" >&5
10617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10618   echo $ac_n "(cached) $ac_c" 1>&6
10619 else
10620   cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 /* System header to define __stub macros and hopefully few prototypes,
10624     which can conflict with char $ac_func(); below.  */
10625 #include <assert.h>
10626 /* Override any gcc2 internal prototype to avoid an error.  */
10627 /* We use char because int might match the return type of a gcc2
10628     builtin and then its argument prototype would still apply.  */
10629 char $ac_func();
10630
10631 int main() {
10632
10633 /* The GNU C library defines this for functions which it implements
10634     to always fail with ENOSYS.  Some functions are actually named
10635     something starting with __ and the normal name is an alias.  */
10636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10637 choke me
10638 #else
10639 $ac_func();
10640 #endif
10641
10642 ; return 0; }
10643 EOF
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10645   rm -rf conftest*
10646   eval "ac_cv_func_$ac_func=yes"
10647 else
10648   echo "configure: failed program was:" >&5
10649   cat conftest.$ac_ext >&5
10650   rm -rf conftest*
10651   eval "ac_cv_func_$ac_func=no"
10652 fi
10653 rm -f conftest*
10654 fi
10655
10656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10657   echo "$ac_t""yes" 1>&6
10658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10659   cat >> confdefs.h <<EOF
10660 #define $ac_tr_func 1
10661 EOF
10662  
10663 else
10664   echo "$ac_t""no" 1>&6
10665 fi
10666 done
10667     
10668     fi
10669   fi
10670
10671   
10672   
10673   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10674 echo "configure:10675: checking for fpclass declaration" >&5
10675   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10676     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10677   echo $ac_n "(cached) $ac_c" 1>&6
10678 else
10679   
10680       
10681       ac_ext=C
10682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10683 ac_cpp='$CXXCPP $CPPFLAGS'
10684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10686 cross_compiling=$ac_cv_prog_cxx_cross
10687
10688       cat > conftest.$ac_ext <<EOF
10689 #line 10690 "configure"
10690 #include "confdefs.h"
10691 #include <math.h>
10692                       #ifdef HAVE_IEEEFP_H
10693                       #include <ieeefp.h>
10694                       #endif
10695                      
10696 int main() {
10697  fpclass(0);
10698 ; return 0; }
10699 EOF
10700 if { (eval echo configure:10701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10701   rm -rf conftest*
10702   glibcpp_cv_func_fpclass_use=yes
10703 else
10704   echo "configure: failed program was:" >&5
10705   cat conftest.$ac_ext >&5
10706   rm -rf conftest*
10707   glibcpp_cv_func_fpclass_use=no
10708 fi
10709 rm -f conftest*
10710       ac_ext=c
10711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10712 ac_cpp='$CPP $CPPFLAGS'
10713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10715 cross_compiling=$ac_cv_prog_cc_cross
10716
10717     
10718 fi
10719
10720   fi
10721   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10722
10723   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10724     for ac_func in fpclass
10725 do
10726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10727 echo "configure:10728: checking for $ac_func" >&5
10728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10729   echo $ac_n "(cached) $ac_c" 1>&6
10730 else
10731   cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 /* System header to define __stub macros and hopefully few prototypes,
10735     which can conflict with char $ac_func(); below.  */
10736 #include <assert.h>
10737 /* Override any gcc2 internal prototype to avoid an error.  */
10738 /* We use char because int might match the return type of a gcc2
10739     builtin and then its argument prototype would still apply.  */
10740 char $ac_func();
10741
10742 int main() {
10743
10744 /* The GNU C library defines this for functions which it implements
10745     to always fail with ENOSYS.  Some functions are actually named
10746     something starting with __ and the normal name is an alias.  */
10747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10748 choke me
10749 #else
10750 $ac_func();
10751 #endif
10752
10753 ; return 0; }
10754 EOF
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10756   rm -rf conftest*
10757   eval "ac_cv_func_$ac_func=yes"
10758 else
10759   echo "configure: failed program was:" >&5
10760   cat conftest.$ac_ext >&5
10761   rm -rf conftest*
10762   eval "ac_cv_func_$ac_func=no"
10763 fi
10764 rm -f conftest*
10765 fi
10766
10767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10768   echo "$ac_t""yes" 1>&6
10769     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10770   cat >> confdefs.h <<EOF
10771 #define $ac_tr_func 1
10772 EOF
10773  
10774 else
10775   echo "$ac_t""no" 1>&6
10776 fi
10777 done
10778     
10779   else
10780     
10781   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10782 echo "configure:10783: checking for _fpclass declaration" >&5
10783   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10784     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10785   echo $ac_n "(cached) $ac_c" 1>&6
10786 else
10787   
10788       
10789       ac_ext=C
10790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10791 ac_cpp='$CXXCPP $CPPFLAGS'
10792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10794 cross_compiling=$ac_cv_prog_cxx_cross
10795
10796       cat > conftest.$ac_ext <<EOF
10797 #line 10798 "configure"
10798 #include "confdefs.h"
10799 #include <math.h>
10800                       #ifdef HAVE_IEEEFP_H
10801                       #include <ieeefp.h>
10802                       #endif
10803                      
10804 int main() {
10805  _fpclass(0);
10806 ; return 0; }
10807 EOF
10808 if { (eval echo configure:10809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10809   rm -rf conftest*
10810   glibcpp_cv_func__fpclass_use=yes
10811 else
10812   echo "configure: failed program was:" >&5
10813   cat conftest.$ac_ext >&5
10814   rm -rf conftest*
10815   glibcpp_cv_func__fpclass_use=no
10816 fi
10817 rm -f conftest*
10818       ac_ext=c
10819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10820 ac_cpp='$CPP $CPPFLAGS'
10821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10823 cross_compiling=$ac_cv_prog_cc_cross
10824
10825     
10826 fi
10827
10828   fi
10829   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
10830
10831     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
10832       for ac_func in _fpclass
10833 do
10834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10835 echo "configure:10836: checking for $ac_func" >&5
10836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10837   echo $ac_n "(cached) $ac_c" 1>&6
10838 else
10839   cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10842 /* System header to define __stub macros and hopefully few prototypes,
10843     which can conflict with char $ac_func(); below.  */
10844 #include <assert.h>
10845 /* Override any gcc2 internal prototype to avoid an error.  */
10846 /* We use char because int might match the return type of a gcc2
10847     builtin and then its argument prototype would still apply.  */
10848 char $ac_func();
10849
10850 int main() {
10851
10852 /* The GNU C library defines this for functions which it implements
10853     to always fail with ENOSYS.  Some functions are actually named
10854     something starting with __ and the normal name is an alias.  */
10855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10856 choke me
10857 #else
10858 $ac_func();
10859 #endif
10860
10861 ; return 0; }
10862 EOF
10863 if { (eval echo configure:10864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10864   rm -rf conftest*
10865   eval "ac_cv_func_$ac_func=yes"
10866 else
10867   echo "configure: failed program was:" >&5
10868   cat conftest.$ac_ext >&5
10869   rm -rf conftest*
10870   eval "ac_cv_func_$ac_func=no"
10871 fi
10872 rm -f conftest*
10873 fi
10874
10875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10876   echo "$ac_t""yes" 1>&6
10877     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10878   cat >> confdefs.h <<EOF
10879 #define $ac_tr_func 1
10880 EOF
10881  
10882 else
10883   echo "$ac_t""no" 1>&6
10884 fi
10885 done
10886     
10887     fi
10888   fi
10889
10890   
10891   
10892   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
10893 echo "configure:10894: checking for qfpclass declaration" >&5
10894   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
10895     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
10896   echo $ac_n "(cached) $ac_c" 1>&6
10897 else
10898   
10899       
10900       ac_ext=C
10901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10902 ac_cpp='$CXXCPP $CPPFLAGS'
10903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10905 cross_compiling=$ac_cv_prog_cxx_cross
10906
10907       cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10910 #include <math.h>
10911                       #ifdef HAVE_IEEEFP_H
10912                       #include <ieeefp.h>
10913                       #endif
10914                      
10915 int main() {
10916  qfpclass(0);
10917 ; return 0; }
10918 EOF
10919 if { (eval echo configure:10920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10920   rm -rf conftest*
10921   glibcpp_cv_func_qfpclass_use=yes
10922 else
10923   echo "configure: failed program was:" >&5
10924   cat conftest.$ac_ext >&5
10925   rm -rf conftest*
10926   glibcpp_cv_func_qfpclass_use=no
10927 fi
10928 rm -f conftest*
10929       ac_ext=c
10930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10931 ac_cpp='$CPP $CPPFLAGS'
10932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10934 cross_compiling=$ac_cv_prog_cc_cross
10935
10936     
10937 fi
10938
10939   fi
10940   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
10941
10942   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
10943     for ac_func in qfpclass
10944 do
10945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10946 echo "configure:10947: checking for $ac_func" >&5
10947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10948   echo $ac_n "(cached) $ac_c" 1>&6
10949 else
10950   cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10953 /* System header to define __stub macros and hopefully few prototypes,
10954     which can conflict with char $ac_func(); below.  */
10955 #include <assert.h>
10956 /* Override any gcc2 internal prototype to avoid an error.  */
10957 /* We use char because int might match the return type of a gcc2
10958     builtin and then its argument prototype would still apply.  */
10959 char $ac_func();
10960
10961 int main() {
10962
10963 /* The GNU C library defines this for functions which it implements
10964     to always fail with ENOSYS.  Some functions are actually named
10965     something starting with __ and the normal name is an alias.  */
10966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10967 choke me
10968 #else
10969 $ac_func();
10970 #endif
10971
10972 ; return 0; }
10973 EOF
10974 if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10975   rm -rf conftest*
10976   eval "ac_cv_func_$ac_func=yes"
10977 else
10978   echo "configure: failed program was:" >&5
10979   cat conftest.$ac_ext >&5
10980   rm -rf conftest*
10981   eval "ac_cv_func_$ac_func=no"
10982 fi
10983 rm -f conftest*
10984 fi
10985
10986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10987   echo "$ac_t""yes" 1>&6
10988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10989   cat >> confdefs.h <<EOF
10990 #define $ac_tr_func 1
10991 EOF
10992  
10993 else
10994   echo "$ac_t""no" 1>&6
10995 fi
10996 done
10997     
10998   else
10999     
11000   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
11001 echo "configure:11002: checking for _qfpclass declaration" >&5
11002   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
11003     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
11004   echo $ac_n "(cached) $ac_c" 1>&6
11005 else
11006   
11007       
11008       ac_ext=C
11009 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11010 ac_cpp='$CXXCPP $CPPFLAGS'
11011 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11012 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11013 cross_compiling=$ac_cv_prog_cxx_cross
11014
11015       cat > conftest.$ac_ext <<EOF
11016 #line 11017 "configure"
11017 #include "confdefs.h"
11018 #include <math.h>
11019                       #ifdef HAVE_IEEEFP_H
11020                       #include <ieeefp.h>
11021                       #endif
11022                      
11023 int main() {
11024  _qfpclass(0);
11025 ; return 0; }
11026 EOF
11027 if { (eval echo configure:11028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11028   rm -rf conftest*
11029   glibcpp_cv_func__qfpclass_use=yes
11030 else
11031   echo "configure: failed program was:" >&5
11032   cat conftest.$ac_ext >&5
11033   rm -rf conftest*
11034   glibcpp_cv_func__qfpclass_use=no
11035 fi
11036 rm -f conftest*
11037       ac_ext=c
11038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11039 ac_cpp='$CPP $CPPFLAGS'
11040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11042 cross_compiling=$ac_cv_prog_cc_cross
11043
11044     
11045 fi
11046
11047   fi
11048   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
11049
11050     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
11051       for ac_func in _qfpclass
11052 do
11053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11054 echo "configure:11055: checking for $ac_func" >&5
11055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11056   echo $ac_n "(cached) $ac_c" 1>&6
11057 else
11058   cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11061 /* System header to define __stub macros and hopefully few prototypes,
11062     which can conflict with char $ac_func(); below.  */
11063 #include <assert.h>
11064 /* Override any gcc2 internal prototype to avoid an error.  */
11065 /* We use char because int might match the return type of a gcc2
11066     builtin and then its argument prototype would still apply.  */
11067 char $ac_func();
11068
11069 int main() {
11070
11071 /* The GNU C library defines this for functions which it implements
11072     to always fail with ENOSYS.  Some functions are actually named
11073     something starting with __ and the normal name is an alias.  */
11074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11075 choke me
11076 #else
11077 $ac_func();
11078 #endif
11079
11080 ; return 0; }
11081 EOF
11082 if { (eval echo configure:11083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11083   rm -rf conftest*
11084   eval "ac_cv_func_$ac_func=yes"
11085 else
11086   echo "configure: failed program was:" >&5
11087   cat conftest.$ac_ext >&5
11088   rm -rf conftest*
11089   eval "ac_cv_func_$ac_func=no"
11090 fi
11091 rm -f conftest*
11092 fi
11093
11094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11095   echo "$ac_t""yes" 1>&6
11096     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11097   cat >> confdefs.h <<EOF
11098 #define $ac_tr_func 1
11099 EOF
11100  
11101 else
11102   echo "$ac_t""no" 1>&6
11103 fi
11104 done
11105     
11106     fi
11107   fi
11108
11109   
11110   
11111   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
11112 echo "configure:11113: checking for hypot declaration" >&5
11113   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
11114     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
11115   echo $ac_n "(cached) $ac_c" 1>&6
11116 else
11117   
11118       
11119       ac_ext=C
11120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11121 ac_cpp='$CXXCPP $CPPFLAGS'
11122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11124 cross_compiling=$ac_cv_prog_cxx_cross
11125
11126       cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 #include <math.h>
11130 int main() {
11131  hypot(0, 0);
11132 ; return 0; }
11133 EOF
11134 if { (eval echo configure:11135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11135   rm -rf conftest*
11136   glibcpp_cv_func_hypot_use=yes
11137 else
11138   echo "configure: failed program was:" >&5
11139   cat conftest.$ac_ext >&5
11140   rm -rf conftest*
11141   glibcpp_cv_func_hypot_use=no
11142 fi
11143 rm -f conftest*
11144       ac_ext=c
11145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11146 ac_cpp='$CPP $CPPFLAGS'
11147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11149 cross_compiling=$ac_cv_prog_cc_cross
11150
11151     
11152 fi
11153
11154   fi
11155   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
11156
11157   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
11158     for ac_func in hypot
11159 do
11160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11161 echo "configure:11162: checking for $ac_func" >&5
11162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11163   echo $ac_n "(cached) $ac_c" 1>&6
11164 else
11165   cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 /* System header to define __stub macros and hopefully few prototypes,
11169     which can conflict with char $ac_func(); below.  */
11170 #include <assert.h>
11171 /* Override any gcc2 internal prototype to avoid an error.  */
11172 /* We use char because int might match the return type of a gcc2
11173     builtin and then its argument prototype would still apply.  */
11174 char $ac_func();
11175
11176 int main() {
11177
11178 /* The GNU C library defines this for functions which it implements
11179     to always fail with ENOSYS.  Some functions are actually named
11180     something starting with __ and the normal name is an alias.  */
11181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11182 choke me
11183 #else
11184 $ac_func();
11185 #endif
11186
11187 ; return 0; }
11188 EOF
11189 if { (eval echo configure:11190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11190   rm -rf conftest*
11191   eval "ac_cv_func_$ac_func=yes"
11192 else
11193   echo "configure: failed program was:" >&5
11194   cat conftest.$ac_ext >&5
11195   rm -rf conftest*
11196   eval "ac_cv_func_$ac_func=no"
11197 fi
11198 rm -f conftest*
11199 fi
11200
11201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11202   echo "$ac_t""yes" 1>&6
11203     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11204   cat >> confdefs.h <<EOF
11205 #define $ac_tr_func 1
11206 EOF
11207  
11208 else
11209   echo "$ac_t""no" 1>&6
11210 fi
11211 done
11212     
11213   else
11214     
11215   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
11216 echo "configure:11217: checking for _hypot declaration" >&5
11217   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
11218     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
11219   echo $ac_n "(cached) $ac_c" 1>&6
11220 else
11221   
11222       
11223       ac_ext=C
11224 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11225 ac_cpp='$CXXCPP $CPPFLAGS'
11226 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11227 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11228 cross_compiling=$ac_cv_prog_cxx_cross
11229
11230       cat > conftest.$ac_ext <<EOF
11231 #line 11232 "configure"
11232 #include "confdefs.h"
11233 #include <math.h>
11234 int main() {
11235  _hypot(0, 0);
11236 ; return 0; }
11237 EOF
11238 if { (eval echo configure:11239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11239   rm -rf conftest*
11240   glibcpp_cv_func__hypot_use=yes
11241 else
11242   echo "configure: failed program was:" >&5
11243   cat conftest.$ac_ext >&5
11244   rm -rf conftest*
11245   glibcpp_cv_func__hypot_use=no
11246 fi
11247 rm -f conftest*
11248       ac_ext=c
11249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11250 ac_cpp='$CPP $CPPFLAGS'
11251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11253 cross_compiling=$ac_cv_prog_cc_cross
11254
11255     
11256 fi
11257
11258   fi
11259   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
11260
11261     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
11262       for ac_func in _hypot
11263 do
11264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11265 echo "configure:11266: checking for $ac_func" >&5
11266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11267   echo $ac_n "(cached) $ac_c" 1>&6
11268 else
11269   cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11272 /* System header to define __stub macros and hopefully few prototypes,
11273     which can conflict with char $ac_func(); below.  */
11274 #include <assert.h>
11275 /* Override any gcc2 internal prototype to avoid an error.  */
11276 /* We use char because int might match the return type of a gcc2
11277     builtin and then its argument prototype would still apply.  */
11278 char $ac_func();
11279
11280 int main() {
11281
11282 /* The GNU C library defines this for functions which it implements
11283     to always fail with ENOSYS.  Some functions are actually named
11284     something starting with __ and the normal name is an alias.  */
11285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11286 choke me
11287 #else
11288 $ac_func();
11289 #endif
11290
11291 ; return 0; }
11292 EOF
11293 if { (eval echo configure:11294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11294   rm -rf conftest*
11295   eval "ac_cv_func_$ac_func=yes"
11296 else
11297   echo "configure: failed program was:" >&5
11298   cat conftest.$ac_ext >&5
11299   rm -rf conftest*
11300   eval "ac_cv_func_$ac_func=no"
11301 fi
11302 rm -f conftest*
11303 fi
11304
11305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11306   echo "$ac_t""yes" 1>&6
11307     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11308   cat >> confdefs.h <<EOF
11309 #define $ac_tr_func 1
11310 EOF
11311  
11312 else
11313   echo "$ac_t""no" 1>&6
11314 fi
11315 done
11316     
11317     fi
11318   fi
11319
11320
11321     
11322   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
11323 echo "configure:11324: checking for float trig functions" >&5
11324   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
11325   echo $ac_n "(cached) $ac_c" 1>&6
11326 else
11327   
11328     
11329     ac_ext=C
11330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11331 ac_cpp='$CXXCPP $CPPFLAGS'
11332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11334 cross_compiling=$ac_cv_prog_cxx_cross
11335
11336     cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11339 #include <math.h>
11340 int main() {
11341  `for x in acosf asinf atanf \
11342                                           cosf sinf tanf \
11343                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
11344 ; return 0; }
11345 EOF
11346 if { (eval echo configure:11347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11347   rm -rf conftest*
11348   glibcpp_cv_func_float_trig_use=yes
11349 else
11350   echo "configure: failed program was:" >&5
11351   cat conftest.$ac_ext >&5
11352   rm -rf conftest*
11353   glibcpp_cv_func_float_trig_use=no
11354 fi
11355 rm -f conftest*
11356     ac_ext=c
11357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11358 ac_cpp='$CPP $CPPFLAGS'
11359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11361 cross_compiling=$ac_cv_prog_cc_cross
11362
11363 fi
11364
11365   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
11366   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
11367     for ac_func in acosf asinf atanf \
11368                                           cosf sinf tanf \
11369                                           coshf sinhf tanhf
11370 do
11371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11372 echo "configure:11373: checking for $ac_func" >&5
11373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11374   echo $ac_n "(cached) $ac_c" 1>&6
11375 else
11376   cat > conftest.$ac_ext <<EOF
11377 #line 11378 "configure"
11378 #include "confdefs.h"
11379 /* System header to define __stub macros and hopefully few prototypes,
11380     which can conflict with char $ac_func(); below.  */
11381 #include <assert.h>
11382 /* Override any gcc2 internal prototype to avoid an error.  */
11383 /* We use char because int might match the return type of a gcc2
11384     builtin and then its argument prototype would still apply.  */
11385 char $ac_func();
11386
11387 int main() {
11388
11389 /* The GNU C library defines this for functions which it implements
11390     to always fail with ENOSYS.  Some functions are actually named
11391     something starting with __ and the normal name is an alias.  */
11392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11393 choke me
11394 #else
11395 $ac_func();
11396 #endif
11397
11398 ; return 0; }
11399 EOF
11400 if { (eval echo configure:11401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11401   rm -rf conftest*
11402   eval "ac_cv_func_$ac_func=yes"
11403 else
11404   echo "configure: failed program was:" >&5
11405   cat conftest.$ac_ext >&5
11406   rm -rf conftest*
11407   eval "ac_cv_func_$ac_func=no"
11408 fi
11409 rm -f conftest*
11410 fi
11411
11412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11413   echo "$ac_t""yes" 1>&6
11414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11415   cat >> confdefs.h <<EOF
11416 #define $ac_tr_func 1
11417 EOF
11418  
11419 else
11420   echo "$ac_t""no" 1>&6
11421 fi
11422 done
11423
11424   fi
11425
11426   
11427   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
11428 echo "configure:11429: checking for float round functions" >&5
11429   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
11430   echo $ac_n "(cached) $ac_c" 1>&6
11431 else
11432   
11433     
11434     ac_ext=C
11435 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11436 ac_cpp='$CXXCPP $CPPFLAGS'
11437 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11438 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11439 cross_compiling=$ac_cv_prog_cxx_cross
11440
11441     cat > conftest.$ac_ext <<EOF
11442 #line 11443 "configure"
11443 #include "confdefs.h"
11444 #include <math.h>
11445 int main() {
11446  `for x in ceilf floorf; do echo "$x (0);"; done` 
11447 ; return 0; }
11448 EOF
11449 if { (eval echo configure:11450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11450   rm -rf conftest*
11451   glibcpp_cv_func_float_round_use=yes
11452 else
11453   echo "configure: failed program was:" >&5
11454   cat conftest.$ac_ext >&5
11455   rm -rf conftest*
11456   glibcpp_cv_func_float_round_use=no
11457 fi
11458 rm -f conftest*
11459     ac_ext=c
11460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11461 ac_cpp='$CPP $CPPFLAGS'
11462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11464 cross_compiling=$ac_cv_prog_cc_cross
11465
11466 fi
11467
11468   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
11469   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
11470     for ac_func in ceilf floorf
11471 do
11472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11473 echo "configure:11474: checking for $ac_func" >&5
11474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11475   echo $ac_n "(cached) $ac_c" 1>&6
11476 else
11477   cat > conftest.$ac_ext <<EOF
11478 #line 11479 "configure"
11479 #include "confdefs.h"
11480 /* System header to define __stub macros and hopefully few prototypes,
11481     which can conflict with char $ac_func(); below.  */
11482 #include <assert.h>
11483 /* Override any gcc2 internal prototype to avoid an error.  */
11484 /* We use char because int might match the return type of a gcc2
11485     builtin and then its argument prototype would still apply.  */
11486 char $ac_func();
11487
11488 int main() {
11489
11490 /* The GNU C library defines this for functions which it implements
11491     to always fail with ENOSYS.  Some functions are actually named
11492     something starting with __ and the normal name is an alias.  */
11493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11494 choke me
11495 #else
11496 $ac_func();
11497 #endif
11498
11499 ; return 0; }
11500 EOF
11501 if { (eval echo configure:11502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11502   rm -rf conftest*
11503   eval "ac_cv_func_$ac_func=yes"
11504 else
11505   echo "configure: failed program was:" >&5
11506   cat conftest.$ac_ext >&5
11507   rm -rf conftest*
11508   eval "ac_cv_func_$ac_func=no"
11509 fi
11510 rm -f conftest*
11511 fi
11512
11513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11514   echo "$ac_t""yes" 1>&6
11515     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11516   cat >> confdefs.h <<EOF
11517 #define $ac_tr_func 1
11518 EOF
11519  
11520 else
11521   echo "$ac_t""no" 1>&6
11522 fi
11523 done
11524
11525   fi
11526
11527   
11528   
11529   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
11530 echo "configure:11531: checking for expf declaration" >&5
11531   if test x${glibcpp_cv_func_expf_use+set} != xset; then
11532     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
11533   echo $ac_n "(cached) $ac_c" 1>&6
11534 else
11535   
11536       
11537       ac_ext=C
11538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11539 ac_cpp='$CXXCPP $CPPFLAGS'
11540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11541 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11542 cross_compiling=$ac_cv_prog_cxx_cross
11543
11544       cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 #include <math.h>
11548                       #ifdef HAVE_IEEEFP_H
11549                       #include <ieeefp.h>
11550                       #endif
11551                      
11552 int main() {
11553  expf(0);
11554 ; return 0; }
11555 EOF
11556 if { (eval echo configure:11557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11557   rm -rf conftest*
11558   glibcpp_cv_func_expf_use=yes
11559 else
11560   echo "configure: failed program was:" >&5
11561   cat conftest.$ac_ext >&5
11562   rm -rf conftest*
11563   glibcpp_cv_func_expf_use=no
11564 fi
11565 rm -f conftest*
11566       ac_ext=c
11567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11568 ac_cpp='$CPP $CPPFLAGS'
11569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11571 cross_compiling=$ac_cv_prog_cc_cross
11572
11573     
11574 fi
11575
11576   fi
11577   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
11578
11579   if test x$glibcpp_cv_func_expf_use = x"yes"; then
11580     for ac_func in expf
11581 do
11582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11583 echo "configure:11584: checking for $ac_func" >&5
11584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11585   echo $ac_n "(cached) $ac_c" 1>&6
11586 else
11587   cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590 /* System header to define __stub macros and hopefully few prototypes,
11591     which can conflict with char $ac_func(); below.  */
11592 #include <assert.h>
11593 /* Override any gcc2 internal prototype to avoid an error.  */
11594 /* We use char because int might match the return type of a gcc2
11595     builtin and then its argument prototype would still apply.  */
11596 char $ac_func();
11597
11598 int main() {
11599
11600 /* The GNU C library defines this for functions which it implements
11601     to always fail with ENOSYS.  Some functions are actually named
11602     something starting with __ and the normal name is an alias.  */
11603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11604 choke me
11605 #else
11606 $ac_func();
11607 #endif
11608
11609 ; return 0; }
11610 EOF
11611 if { (eval echo configure:11612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11612   rm -rf conftest*
11613   eval "ac_cv_func_$ac_func=yes"
11614 else
11615   echo "configure: failed program was:" >&5
11616   cat conftest.$ac_ext >&5
11617   rm -rf conftest*
11618   eval "ac_cv_func_$ac_func=no"
11619 fi
11620 rm -f conftest*
11621 fi
11622
11623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11624   echo "$ac_t""yes" 1>&6
11625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11626   cat >> confdefs.h <<EOF
11627 #define $ac_tr_func 1
11628 EOF
11629  
11630 else
11631   echo "$ac_t""no" 1>&6
11632 fi
11633 done
11634     
11635   else
11636     
11637   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
11638 echo "configure:11639: checking for _expf declaration" >&5
11639   if test x${glibcpp_cv_func__expf_use+set} != xset; then
11640     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
11641   echo $ac_n "(cached) $ac_c" 1>&6
11642 else
11643   
11644       
11645       ac_ext=C
11646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11647 ac_cpp='$CXXCPP $CPPFLAGS'
11648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11650 cross_compiling=$ac_cv_prog_cxx_cross
11651
11652       cat > conftest.$ac_ext <<EOF
11653 #line 11654 "configure"
11654 #include "confdefs.h"
11655 #include <math.h>
11656                       #ifdef HAVE_IEEEFP_H
11657                       #include <ieeefp.h>
11658                       #endif
11659                      
11660 int main() {
11661  _expf(0);
11662 ; return 0; }
11663 EOF
11664 if { (eval echo configure:11665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11665   rm -rf conftest*
11666   glibcpp_cv_func__expf_use=yes
11667 else
11668   echo "configure: failed program was:" >&5
11669   cat conftest.$ac_ext >&5
11670   rm -rf conftest*
11671   glibcpp_cv_func__expf_use=no
11672 fi
11673 rm -f conftest*
11674       ac_ext=c
11675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11676 ac_cpp='$CPP $CPPFLAGS'
11677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11679 cross_compiling=$ac_cv_prog_cc_cross
11680
11681     
11682 fi
11683
11684   fi
11685   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
11686
11687     if test x$glibcpp_cv_func__expf_use = x"yes"; then
11688       for ac_func in _expf
11689 do
11690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11691 echo "configure:11692: checking for $ac_func" >&5
11692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11693   echo $ac_n "(cached) $ac_c" 1>&6
11694 else
11695   cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11698 /* System header to define __stub macros and hopefully few prototypes,
11699     which can conflict with char $ac_func(); below.  */
11700 #include <assert.h>
11701 /* Override any gcc2 internal prototype to avoid an error.  */
11702 /* We use char because int might match the return type of a gcc2
11703     builtin and then its argument prototype would still apply.  */
11704 char $ac_func();
11705
11706 int main() {
11707
11708 /* The GNU C library defines this for functions which it implements
11709     to always fail with ENOSYS.  Some functions are actually named
11710     something starting with __ and the normal name is an alias.  */
11711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11712 choke me
11713 #else
11714 $ac_func();
11715 #endif
11716
11717 ; return 0; }
11718 EOF
11719 if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11720   rm -rf conftest*
11721   eval "ac_cv_func_$ac_func=yes"
11722 else
11723   echo "configure: failed program was:" >&5
11724   cat conftest.$ac_ext >&5
11725   rm -rf conftest*
11726   eval "ac_cv_func_$ac_func=no"
11727 fi
11728 rm -f conftest*
11729 fi
11730
11731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11732   echo "$ac_t""yes" 1>&6
11733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11734   cat >> confdefs.h <<EOF
11735 #define $ac_tr_func 1
11736 EOF
11737  
11738 else
11739   echo "$ac_t""no" 1>&6
11740 fi
11741 done
11742     
11743     fi
11744   fi
11745
11746   
11747   
11748   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11749 echo "configure:11750: checking for isnanf declaration" >&5
11750   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11751     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11752   echo $ac_n "(cached) $ac_c" 1>&6
11753 else
11754   
11755       
11756       ac_ext=C
11757 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11758 ac_cpp='$CXXCPP $CPPFLAGS'
11759 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11760 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11761 cross_compiling=$ac_cv_prog_cxx_cross
11762
11763       cat > conftest.$ac_ext <<EOF
11764 #line 11765 "configure"
11765 #include "confdefs.h"
11766 #include <math.h>
11767                       #ifdef HAVE_IEEEFP_H
11768                       #include <ieeefp.h>
11769                       #endif
11770                      
11771 int main() {
11772  isnanf(0);
11773 ; return 0; }
11774 EOF
11775 if { (eval echo configure:11776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11776   rm -rf conftest*
11777   glibcpp_cv_func_isnanf_use=yes
11778 else
11779   echo "configure: failed program was:" >&5
11780   cat conftest.$ac_ext >&5
11781   rm -rf conftest*
11782   glibcpp_cv_func_isnanf_use=no
11783 fi
11784 rm -f conftest*
11785       ac_ext=c
11786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11790 cross_compiling=$ac_cv_prog_cc_cross
11791
11792     
11793 fi
11794
11795   fi
11796   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11797
11798   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11799     for ac_func in isnanf
11800 do
11801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11802 echo "configure:11803: checking for $ac_func" >&5
11803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11804   echo $ac_n "(cached) $ac_c" 1>&6
11805 else
11806   cat > conftest.$ac_ext <<EOF
11807 #line 11808 "configure"
11808 #include "confdefs.h"
11809 /* System header to define __stub macros and hopefully few prototypes,
11810     which can conflict with char $ac_func(); below.  */
11811 #include <assert.h>
11812 /* Override any gcc2 internal prototype to avoid an error.  */
11813 /* We use char because int might match the return type of a gcc2
11814     builtin and then its argument prototype would still apply.  */
11815 char $ac_func();
11816
11817 int main() {
11818
11819 /* The GNU C library defines this for functions which it implements
11820     to always fail with ENOSYS.  Some functions are actually named
11821     something starting with __ and the normal name is an alias.  */
11822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11823 choke me
11824 #else
11825 $ac_func();
11826 #endif
11827
11828 ; return 0; }
11829 EOF
11830 if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11831   rm -rf conftest*
11832   eval "ac_cv_func_$ac_func=yes"
11833 else
11834   echo "configure: failed program was:" >&5
11835   cat conftest.$ac_ext >&5
11836   rm -rf conftest*
11837   eval "ac_cv_func_$ac_func=no"
11838 fi
11839 rm -f conftest*
11840 fi
11841
11842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11843   echo "$ac_t""yes" 1>&6
11844     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11845   cat >> confdefs.h <<EOF
11846 #define $ac_tr_func 1
11847 EOF
11848  
11849 else
11850   echo "$ac_t""no" 1>&6
11851 fi
11852 done
11853     
11854   else
11855     
11856   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
11857 echo "configure:11858: checking for _isnanf declaration" >&5
11858   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
11859     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
11860   echo $ac_n "(cached) $ac_c" 1>&6
11861 else
11862   
11863       
11864       ac_ext=C
11865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11866 ac_cpp='$CXXCPP $CPPFLAGS'
11867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11869 cross_compiling=$ac_cv_prog_cxx_cross
11870
11871       cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11874 #include <math.h>
11875                       #ifdef HAVE_IEEEFP_H
11876                       #include <ieeefp.h>
11877                       #endif
11878                      
11879 int main() {
11880  _isnanf(0);
11881 ; return 0; }
11882 EOF
11883 if { (eval echo configure:11884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11884   rm -rf conftest*
11885   glibcpp_cv_func__isnanf_use=yes
11886 else
11887   echo "configure: failed program was:" >&5
11888   cat conftest.$ac_ext >&5
11889   rm -rf conftest*
11890   glibcpp_cv_func__isnanf_use=no
11891 fi
11892 rm -f conftest*
11893       ac_ext=c
11894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11895 ac_cpp='$CPP $CPPFLAGS'
11896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11898 cross_compiling=$ac_cv_prog_cc_cross
11899
11900     
11901 fi
11902
11903   fi
11904   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
11905
11906     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
11907       for ac_func in _isnanf
11908 do
11909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11910 echo "configure:11911: checking for $ac_func" >&5
11911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11912   echo $ac_n "(cached) $ac_c" 1>&6
11913 else
11914   cat > conftest.$ac_ext <<EOF
11915 #line 11916 "configure"
11916 #include "confdefs.h"
11917 /* System header to define __stub macros and hopefully few prototypes,
11918     which can conflict with char $ac_func(); below.  */
11919 #include <assert.h>
11920 /* Override any gcc2 internal prototype to avoid an error.  */
11921 /* We use char because int might match the return type of a gcc2
11922     builtin and then its argument prototype would still apply.  */
11923 char $ac_func();
11924
11925 int main() {
11926
11927 /* The GNU C library defines this for functions which it implements
11928     to always fail with ENOSYS.  Some functions are actually named
11929     something starting with __ and the normal name is an alias.  */
11930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11931 choke me
11932 #else
11933 $ac_func();
11934 #endif
11935
11936 ; return 0; }
11937 EOF
11938 if { (eval echo configure:11939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11939   rm -rf conftest*
11940   eval "ac_cv_func_$ac_func=yes"
11941 else
11942   echo "configure: failed program was:" >&5
11943   cat conftest.$ac_ext >&5
11944   rm -rf conftest*
11945   eval "ac_cv_func_$ac_func=no"
11946 fi
11947 rm -f conftest*
11948 fi
11949
11950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11951   echo "$ac_t""yes" 1>&6
11952     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11953   cat >> confdefs.h <<EOF
11954 #define $ac_tr_func 1
11955 EOF
11956  
11957 else
11958   echo "$ac_t""no" 1>&6
11959 fi
11960 done
11961     
11962     fi
11963   fi
11964
11965   
11966   
11967   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
11968 echo "configure:11969: checking for isinff declaration" >&5
11969   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
11970     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
11971   echo $ac_n "(cached) $ac_c" 1>&6
11972 else
11973   
11974       
11975       ac_ext=C
11976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11977 ac_cpp='$CXXCPP $CPPFLAGS'
11978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11980 cross_compiling=$ac_cv_prog_cxx_cross
11981
11982       cat > conftest.$ac_ext <<EOF
11983 #line 11984 "configure"
11984 #include "confdefs.h"
11985 #include <math.h>
11986                       #ifdef HAVE_IEEEFP_H
11987                       #include <ieeefp.h>
11988                       #endif
11989                      
11990 int main() {
11991  isinff(0);
11992 ; return 0; }
11993 EOF
11994 if { (eval echo configure:11995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11995   rm -rf conftest*
11996   glibcpp_cv_func_isinff_use=yes
11997 else
11998   echo "configure: failed program was:" >&5
11999   cat conftest.$ac_ext >&5
12000   rm -rf conftest*
12001   glibcpp_cv_func_isinff_use=no
12002 fi
12003 rm -f conftest*
12004       ac_ext=c
12005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12006 ac_cpp='$CPP $CPPFLAGS'
12007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12009 cross_compiling=$ac_cv_prog_cc_cross
12010
12011     
12012 fi
12013
12014   fi
12015   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
12016
12017   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
12018     for ac_func in isinff
12019 do
12020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12021 echo "configure:12022: checking for $ac_func" >&5
12022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12023   echo $ac_n "(cached) $ac_c" 1>&6
12024 else
12025   cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12028 /* System header to define __stub macros and hopefully few prototypes,
12029     which can conflict with char $ac_func(); below.  */
12030 #include <assert.h>
12031 /* Override any gcc2 internal prototype to avoid an error.  */
12032 /* We use char because int might match the return type of a gcc2
12033     builtin and then its argument prototype would still apply.  */
12034 char $ac_func();
12035
12036 int main() {
12037
12038 /* The GNU C library defines this for functions which it implements
12039     to always fail with ENOSYS.  Some functions are actually named
12040     something starting with __ and the normal name is an alias.  */
12041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12042 choke me
12043 #else
12044 $ac_func();
12045 #endif
12046
12047 ; return 0; }
12048 EOF
12049 if { (eval echo configure:12050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12050   rm -rf conftest*
12051   eval "ac_cv_func_$ac_func=yes"
12052 else
12053   echo "configure: failed program was:" >&5
12054   cat conftest.$ac_ext >&5
12055   rm -rf conftest*
12056   eval "ac_cv_func_$ac_func=no"
12057 fi
12058 rm -f conftest*
12059 fi
12060
12061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12062   echo "$ac_t""yes" 1>&6
12063     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12064   cat >> confdefs.h <<EOF
12065 #define $ac_tr_func 1
12066 EOF
12067  
12068 else
12069   echo "$ac_t""no" 1>&6
12070 fi
12071 done
12072     
12073   else
12074     
12075   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
12076 echo "configure:12077: checking for _isinff declaration" >&5
12077   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
12078     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
12079   echo $ac_n "(cached) $ac_c" 1>&6
12080 else
12081   
12082       
12083       ac_ext=C
12084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12085 ac_cpp='$CXXCPP $CPPFLAGS'
12086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12088 cross_compiling=$ac_cv_prog_cxx_cross
12089
12090       cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12093 #include <math.h>
12094                       #ifdef HAVE_IEEEFP_H
12095                       #include <ieeefp.h>
12096                       #endif
12097                      
12098 int main() {
12099  _isinff(0);
12100 ; return 0; }
12101 EOF
12102 if { (eval echo configure:12103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12103   rm -rf conftest*
12104   glibcpp_cv_func__isinff_use=yes
12105 else
12106   echo "configure: failed program was:" >&5
12107   cat conftest.$ac_ext >&5
12108   rm -rf conftest*
12109   glibcpp_cv_func__isinff_use=no
12110 fi
12111 rm -f conftest*
12112       ac_ext=c
12113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12114 ac_cpp='$CPP $CPPFLAGS'
12115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12117 cross_compiling=$ac_cv_prog_cc_cross
12118
12119     
12120 fi
12121
12122   fi
12123   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
12124
12125     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
12126       for ac_func in _isinff
12127 do
12128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12129 echo "configure:12130: checking for $ac_func" >&5
12130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12131   echo $ac_n "(cached) $ac_c" 1>&6
12132 else
12133   cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12136 /* System header to define __stub macros and hopefully few prototypes,
12137     which can conflict with char $ac_func(); below.  */
12138 #include <assert.h>
12139 /* Override any gcc2 internal prototype to avoid an error.  */
12140 /* We use char because int might match the return type of a gcc2
12141     builtin and then its argument prototype would still apply.  */
12142 char $ac_func();
12143
12144 int main() {
12145
12146 /* The GNU C library defines this for functions which it implements
12147     to always fail with ENOSYS.  Some functions are actually named
12148     something starting with __ and the normal name is an alias.  */
12149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12150 choke me
12151 #else
12152 $ac_func();
12153 #endif
12154
12155 ; return 0; }
12156 EOF
12157 if { (eval echo configure:12158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12158   rm -rf conftest*
12159   eval "ac_cv_func_$ac_func=yes"
12160 else
12161   echo "configure: failed program was:" >&5
12162   cat conftest.$ac_ext >&5
12163   rm -rf conftest*
12164   eval "ac_cv_func_$ac_func=no"
12165 fi
12166 rm -f conftest*
12167 fi
12168
12169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12170   echo "$ac_t""yes" 1>&6
12171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12172   cat >> confdefs.h <<EOF
12173 #define $ac_tr_func 1
12174 EOF
12175  
12176 else
12177   echo "$ac_t""no" 1>&6
12178 fi
12179 done
12180     
12181     fi
12182   fi
12183
12184   
12185   
12186   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
12187 echo "configure:12188: checking for atan2f declaration" >&5
12188   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
12189     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
12190   echo $ac_n "(cached) $ac_c" 1>&6
12191 else
12192   
12193       
12194       ac_ext=C
12195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12196 ac_cpp='$CXXCPP $CPPFLAGS'
12197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12199 cross_compiling=$ac_cv_prog_cxx_cross
12200
12201       cat > conftest.$ac_ext <<EOF
12202 #line 12203 "configure"
12203 #include "confdefs.h"
12204 #include <math.h>
12205 int main() {
12206  atan2f(0, 0);
12207 ; return 0; }
12208 EOF
12209 if { (eval echo configure:12210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12210   rm -rf conftest*
12211   glibcpp_cv_func_atan2f_use=yes
12212 else
12213   echo "configure: failed program was:" >&5
12214   cat conftest.$ac_ext >&5
12215   rm -rf conftest*
12216   glibcpp_cv_func_atan2f_use=no
12217 fi
12218 rm -f conftest*
12219       ac_ext=c
12220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12221 ac_cpp='$CPP $CPPFLAGS'
12222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12224 cross_compiling=$ac_cv_prog_cc_cross
12225
12226     
12227 fi
12228
12229   fi
12230   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
12231
12232   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
12233     for ac_func in atan2f
12234 do
12235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12236 echo "configure:12237: checking for $ac_func" >&5
12237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12238   echo $ac_n "(cached) $ac_c" 1>&6
12239 else
12240   cat > conftest.$ac_ext <<EOF
12241 #line 12242 "configure"
12242 #include "confdefs.h"
12243 /* System header to define __stub macros and hopefully few prototypes,
12244     which can conflict with char $ac_func(); below.  */
12245 #include <assert.h>
12246 /* Override any gcc2 internal prototype to avoid an error.  */
12247 /* We use char because int might match the return type of a gcc2
12248     builtin and then its argument prototype would still apply.  */
12249 char $ac_func();
12250
12251 int main() {
12252
12253 /* The GNU C library defines this for functions which it implements
12254     to always fail with ENOSYS.  Some functions are actually named
12255     something starting with __ and the normal name is an alias.  */
12256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12257 choke me
12258 #else
12259 $ac_func();
12260 #endif
12261
12262 ; return 0; }
12263 EOF
12264 if { (eval echo configure:12265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12265   rm -rf conftest*
12266   eval "ac_cv_func_$ac_func=yes"
12267 else
12268   echo "configure: failed program was:" >&5
12269   cat conftest.$ac_ext >&5
12270   rm -rf conftest*
12271   eval "ac_cv_func_$ac_func=no"
12272 fi
12273 rm -f conftest*
12274 fi
12275
12276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12277   echo "$ac_t""yes" 1>&6
12278     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12279   cat >> confdefs.h <<EOF
12280 #define $ac_tr_func 1
12281 EOF
12282  
12283 else
12284   echo "$ac_t""no" 1>&6
12285 fi
12286 done
12287     
12288   else
12289     
12290   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
12291 echo "configure:12292: checking for _atan2f declaration" >&5
12292   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
12293     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
12294   echo $ac_n "(cached) $ac_c" 1>&6
12295 else
12296   
12297       
12298       ac_ext=C
12299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12300 ac_cpp='$CXXCPP $CPPFLAGS'
12301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12303 cross_compiling=$ac_cv_prog_cxx_cross
12304
12305       cat > conftest.$ac_ext <<EOF
12306 #line 12307 "configure"
12307 #include "confdefs.h"
12308 #include <math.h>
12309 int main() {
12310  _atan2f(0, 0);
12311 ; return 0; }
12312 EOF
12313 if { (eval echo configure:12314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12314   rm -rf conftest*
12315   glibcpp_cv_func__atan2f_use=yes
12316 else
12317   echo "configure: failed program was:" >&5
12318   cat conftest.$ac_ext >&5
12319   rm -rf conftest*
12320   glibcpp_cv_func__atan2f_use=no
12321 fi
12322 rm -f conftest*
12323       ac_ext=c
12324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12325 ac_cpp='$CPP $CPPFLAGS'
12326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12328 cross_compiling=$ac_cv_prog_cc_cross
12329
12330     
12331 fi
12332
12333   fi
12334   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
12335
12336     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
12337       for ac_func in _atan2f
12338 do
12339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12340 echo "configure:12341: checking for $ac_func" >&5
12341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12342   echo $ac_n "(cached) $ac_c" 1>&6
12343 else
12344   cat > conftest.$ac_ext <<EOF
12345 #line 12346 "configure"
12346 #include "confdefs.h"
12347 /* System header to define __stub macros and hopefully few prototypes,
12348     which can conflict with char $ac_func(); below.  */
12349 #include <assert.h>
12350 /* Override any gcc2 internal prototype to avoid an error.  */
12351 /* We use char because int might match the return type of a gcc2
12352     builtin and then its argument prototype would still apply.  */
12353 char $ac_func();
12354
12355 int main() {
12356
12357 /* The GNU C library defines this for functions which it implements
12358     to always fail with ENOSYS.  Some functions are actually named
12359     something starting with __ and the normal name is an alias.  */
12360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12361 choke me
12362 #else
12363 $ac_func();
12364 #endif
12365
12366 ; return 0; }
12367 EOF
12368 if { (eval echo configure:12369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12369   rm -rf conftest*
12370   eval "ac_cv_func_$ac_func=yes"
12371 else
12372   echo "configure: failed program was:" >&5
12373   cat conftest.$ac_ext >&5
12374   rm -rf conftest*
12375   eval "ac_cv_func_$ac_func=no"
12376 fi
12377 rm -f conftest*
12378 fi
12379
12380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12381   echo "$ac_t""yes" 1>&6
12382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12383   cat >> confdefs.h <<EOF
12384 #define $ac_tr_func 1
12385 EOF
12386  
12387 else
12388   echo "$ac_t""no" 1>&6
12389 fi
12390 done
12391     
12392     fi
12393   fi
12394
12395   
12396   
12397   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
12398 echo "configure:12399: checking for fabsf declaration" >&5
12399   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
12400     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
12401   echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12403   
12404       
12405       ac_ext=C
12406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12407 ac_cpp='$CXXCPP $CPPFLAGS'
12408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12410 cross_compiling=$ac_cv_prog_cxx_cross
12411
12412       cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415 #include <math.h>
12416                       #ifdef HAVE_IEEEFP_H
12417                       #include <ieeefp.h>
12418                       #endif
12419                      
12420 int main() {
12421  fabsf(0);
12422 ; return 0; }
12423 EOF
12424 if { (eval echo configure:12425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12425   rm -rf conftest*
12426   glibcpp_cv_func_fabsf_use=yes
12427 else
12428   echo "configure: failed program was:" >&5
12429   cat conftest.$ac_ext >&5
12430   rm -rf conftest*
12431   glibcpp_cv_func_fabsf_use=no
12432 fi
12433 rm -f conftest*
12434       ac_ext=c
12435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12436 ac_cpp='$CPP $CPPFLAGS'
12437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12439 cross_compiling=$ac_cv_prog_cc_cross
12440
12441     
12442 fi
12443
12444   fi
12445   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
12446
12447   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
12448     for ac_func in fabsf
12449 do
12450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12451 echo "configure:12452: checking for $ac_func" >&5
12452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12453   echo $ac_n "(cached) $ac_c" 1>&6
12454 else
12455   cat > conftest.$ac_ext <<EOF
12456 #line 12457 "configure"
12457 #include "confdefs.h"
12458 /* System header to define __stub macros and hopefully few prototypes,
12459     which can conflict with char $ac_func(); below.  */
12460 #include <assert.h>
12461 /* Override any gcc2 internal prototype to avoid an error.  */
12462 /* We use char because int might match the return type of a gcc2
12463     builtin and then its argument prototype would still apply.  */
12464 char $ac_func();
12465
12466 int main() {
12467
12468 /* The GNU C library defines this for functions which it implements
12469     to always fail with ENOSYS.  Some functions are actually named
12470     something starting with __ and the normal name is an alias.  */
12471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12472 choke me
12473 #else
12474 $ac_func();
12475 #endif
12476
12477 ; return 0; }
12478 EOF
12479 if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12480   rm -rf conftest*
12481   eval "ac_cv_func_$ac_func=yes"
12482 else
12483   echo "configure: failed program was:" >&5
12484   cat conftest.$ac_ext >&5
12485   rm -rf conftest*
12486   eval "ac_cv_func_$ac_func=no"
12487 fi
12488 rm -f conftest*
12489 fi
12490
12491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12492   echo "$ac_t""yes" 1>&6
12493     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12494   cat >> confdefs.h <<EOF
12495 #define $ac_tr_func 1
12496 EOF
12497  
12498 else
12499   echo "$ac_t""no" 1>&6
12500 fi
12501 done
12502     
12503   else
12504     
12505   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
12506 echo "configure:12507: checking for _fabsf declaration" >&5
12507   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
12508     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
12509   echo $ac_n "(cached) $ac_c" 1>&6
12510 else
12511   
12512       
12513       ac_ext=C
12514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12515 ac_cpp='$CXXCPP $CPPFLAGS'
12516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12518 cross_compiling=$ac_cv_prog_cxx_cross
12519
12520       cat > conftest.$ac_ext <<EOF
12521 #line 12522 "configure"
12522 #include "confdefs.h"
12523 #include <math.h>
12524                       #ifdef HAVE_IEEEFP_H
12525                       #include <ieeefp.h>
12526                       #endif
12527                      
12528 int main() {
12529  _fabsf(0);
12530 ; return 0; }
12531 EOF
12532 if { (eval echo configure:12533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12533   rm -rf conftest*
12534   glibcpp_cv_func__fabsf_use=yes
12535 else
12536   echo "configure: failed program was:" >&5
12537   cat conftest.$ac_ext >&5
12538   rm -rf conftest*
12539   glibcpp_cv_func__fabsf_use=no
12540 fi
12541 rm -f conftest*
12542       ac_ext=c
12543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12544 ac_cpp='$CPP $CPPFLAGS'
12545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12547 cross_compiling=$ac_cv_prog_cc_cross
12548
12549     
12550 fi
12551
12552   fi
12553   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
12554
12555     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
12556       for ac_func in _fabsf
12557 do
12558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12559 echo "configure:12560: checking for $ac_func" >&5
12560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12561   echo $ac_n "(cached) $ac_c" 1>&6
12562 else
12563   cat > conftest.$ac_ext <<EOF
12564 #line 12565 "configure"
12565 #include "confdefs.h"
12566 /* System header to define __stub macros and hopefully few prototypes,
12567     which can conflict with char $ac_func(); below.  */
12568 #include <assert.h>
12569 /* Override any gcc2 internal prototype to avoid an error.  */
12570 /* We use char because int might match the return type of a gcc2
12571     builtin and then its argument prototype would still apply.  */
12572 char $ac_func();
12573
12574 int main() {
12575
12576 /* The GNU C library defines this for functions which it implements
12577     to always fail with ENOSYS.  Some functions are actually named
12578     something starting with __ and the normal name is an alias.  */
12579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12580 choke me
12581 #else
12582 $ac_func();
12583 #endif
12584
12585 ; return 0; }
12586 EOF
12587 if { (eval echo configure:12588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12588   rm -rf conftest*
12589   eval "ac_cv_func_$ac_func=yes"
12590 else
12591   echo "configure: failed program was:" >&5
12592   cat conftest.$ac_ext >&5
12593   rm -rf conftest*
12594   eval "ac_cv_func_$ac_func=no"
12595 fi
12596 rm -f conftest*
12597 fi
12598
12599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12600   echo "$ac_t""yes" 1>&6
12601     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12602   cat >> confdefs.h <<EOF
12603 #define $ac_tr_func 1
12604 EOF
12605  
12606 else
12607   echo "$ac_t""no" 1>&6
12608 fi
12609 done
12610     
12611     fi
12612   fi
12613
12614   
12615   
12616   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
12617 echo "configure:12618: checking for fmodf declaration" >&5
12618   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
12619     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
12620   echo $ac_n "(cached) $ac_c" 1>&6
12621 else
12622   
12623       
12624       ac_ext=C
12625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12626 ac_cpp='$CXXCPP $CPPFLAGS'
12627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12629 cross_compiling=$ac_cv_prog_cxx_cross
12630
12631       cat > conftest.$ac_ext <<EOF
12632 #line 12633 "configure"
12633 #include "confdefs.h"
12634 #include <math.h>
12635 int main() {
12636  fmodf(0, 0);
12637 ; return 0; }
12638 EOF
12639 if { (eval echo configure:12640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12640   rm -rf conftest*
12641   glibcpp_cv_func_fmodf_use=yes
12642 else
12643   echo "configure: failed program was:" >&5
12644   cat conftest.$ac_ext >&5
12645   rm -rf conftest*
12646   glibcpp_cv_func_fmodf_use=no
12647 fi
12648 rm -f conftest*
12649       ac_ext=c
12650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12651 ac_cpp='$CPP $CPPFLAGS'
12652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12654 cross_compiling=$ac_cv_prog_cc_cross
12655
12656     
12657 fi
12658
12659   fi
12660   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
12661
12662   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
12663     for ac_func in fmodf
12664 do
12665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12666 echo "configure:12667: checking for $ac_func" >&5
12667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12668   echo $ac_n "(cached) $ac_c" 1>&6
12669 else
12670   cat > conftest.$ac_ext <<EOF
12671 #line 12672 "configure"
12672 #include "confdefs.h"
12673 /* System header to define __stub macros and hopefully few prototypes,
12674     which can conflict with char $ac_func(); below.  */
12675 #include <assert.h>
12676 /* Override any gcc2 internal prototype to avoid an error.  */
12677 /* We use char because int might match the return type of a gcc2
12678     builtin and then its argument prototype would still apply.  */
12679 char $ac_func();
12680
12681 int main() {
12682
12683 /* The GNU C library defines this for functions which it implements
12684     to always fail with ENOSYS.  Some functions are actually named
12685     something starting with __ and the normal name is an alias.  */
12686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12687 choke me
12688 #else
12689 $ac_func();
12690 #endif
12691
12692 ; return 0; }
12693 EOF
12694 if { (eval echo configure:12695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12695   rm -rf conftest*
12696   eval "ac_cv_func_$ac_func=yes"
12697 else
12698   echo "configure: failed program was:" >&5
12699   cat conftest.$ac_ext >&5
12700   rm -rf conftest*
12701   eval "ac_cv_func_$ac_func=no"
12702 fi
12703 rm -f conftest*
12704 fi
12705
12706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12707   echo "$ac_t""yes" 1>&6
12708     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12709   cat >> confdefs.h <<EOF
12710 #define $ac_tr_func 1
12711 EOF
12712  
12713 else
12714   echo "$ac_t""no" 1>&6
12715 fi
12716 done
12717     
12718   else
12719     
12720   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12721 echo "configure:12722: checking for _fmodf declaration" >&5
12722   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12723     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12724   echo $ac_n "(cached) $ac_c" 1>&6
12725 else
12726   
12727       
12728       ac_ext=C
12729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12730 ac_cpp='$CXXCPP $CPPFLAGS'
12731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12733 cross_compiling=$ac_cv_prog_cxx_cross
12734
12735       cat > conftest.$ac_ext <<EOF
12736 #line 12737 "configure"
12737 #include "confdefs.h"
12738 #include <math.h>
12739 int main() {
12740  _fmodf(0, 0);
12741 ; return 0; }
12742 EOF
12743 if { (eval echo configure:12744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12744   rm -rf conftest*
12745   glibcpp_cv_func__fmodf_use=yes
12746 else
12747   echo "configure: failed program was:" >&5
12748   cat conftest.$ac_ext >&5
12749   rm -rf conftest*
12750   glibcpp_cv_func__fmodf_use=no
12751 fi
12752 rm -f conftest*
12753       ac_ext=c
12754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12755 ac_cpp='$CPP $CPPFLAGS'
12756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12758 cross_compiling=$ac_cv_prog_cc_cross
12759
12760     
12761 fi
12762
12763   fi
12764   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12765
12766     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12767       for ac_func in _fmodf
12768 do
12769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12770 echo "configure:12771: checking for $ac_func" >&5
12771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12772   echo $ac_n "(cached) $ac_c" 1>&6
12773 else
12774   cat > conftest.$ac_ext <<EOF
12775 #line 12776 "configure"
12776 #include "confdefs.h"
12777 /* System header to define __stub macros and hopefully few prototypes,
12778     which can conflict with char $ac_func(); below.  */
12779 #include <assert.h>
12780 /* Override any gcc2 internal prototype to avoid an error.  */
12781 /* We use char because int might match the return type of a gcc2
12782     builtin and then its argument prototype would still apply.  */
12783 char $ac_func();
12784
12785 int main() {
12786
12787 /* The GNU C library defines this for functions which it implements
12788     to always fail with ENOSYS.  Some functions are actually named
12789     something starting with __ and the normal name is an alias.  */
12790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12791 choke me
12792 #else
12793 $ac_func();
12794 #endif
12795
12796 ; return 0; }
12797 EOF
12798 if { (eval echo configure:12799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12799   rm -rf conftest*
12800   eval "ac_cv_func_$ac_func=yes"
12801 else
12802   echo "configure: failed program was:" >&5
12803   cat conftest.$ac_ext >&5
12804   rm -rf conftest*
12805   eval "ac_cv_func_$ac_func=no"
12806 fi
12807 rm -f conftest*
12808 fi
12809
12810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12811   echo "$ac_t""yes" 1>&6
12812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12813   cat >> confdefs.h <<EOF
12814 #define $ac_tr_func 1
12815 EOF
12816  
12817 else
12818   echo "$ac_t""no" 1>&6
12819 fi
12820 done
12821     
12822     fi
12823   fi
12824
12825   
12826   
12827   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
12828 echo "configure:12829: checking for frexpf declaration" >&5
12829   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
12830     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
12831   echo $ac_n "(cached) $ac_c" 1>&6
12832 else
12833   
12834       
12835       ac_ext=C
12836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12837 ac_cpp='$CXXCPP $CPPFLAGS'
12838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12840 cross_compiling=$ac_cv_prog_cxx_cross
12841
12842       cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 #include <math.h>
12846 int main() {
12847  frexpf(0, 0);
12848 ; return 0; }
12849 EOF
12850 if { (eval echo configure:12851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12851   rm -rf conftest*
12852   glibcpp_cv_func_frexpf_use=yes
12853 else
12854   echo "configure: failed program was:" >&5
12855   cat conftest.$ac_ext >&5
12856   rm -rf conftest*
12857   glibcpp_cv_func_frexpf_use=no
12858 fi
12859 rm -f conftest*
12860       ac_ext=c
12861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12862 ac_cpp='$CPP $CPPFLAGS'
12863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12865 cross_compiling=$ac_cv_prog_cc_cross
12866
12867     
12868 fi
12869
12870   fi
12871   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
12872
12873   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
12874     for ac_func in frexpf
12875 do
12876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12877 echo "configure:12878: checking for $ac_func" >&5
12878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12879   echo $ac_n "(cached) $ac_c" 1>&6
12880 else
12881   cat > conftest.$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 /* System header to define __stub macros and hopefully few prototypes,
12885     which can conflict with char $ac_func(); below.  */
12886 #include <assert.h>
12887 /* Override any gcc2 internal prototype to avoid an error.  */
12888 /* We use char because int might match the return type of a gcc2
12889     builtin and then its argument prototype would still apply.  */
12890 char $ac_func();
12891
12892 int main() {
12893
12894 /* The GNU C library defines this for functions which it implements
12895     to always fail with ENOSYS.  Some functions are actually named
12896     something starting with __ and the normal name is an alias.  */
12897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12898 choke me
12899 #else
12900 $ac_func();
12901 #endif
12902
12903 ; return 0; }
12904 EOF
12905 if { (eval echo configure:12906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12906   rm -rf conftest*
12907   eval "ac_cv_func_$ac_func=yes"
12908 else
12909   echo "configure: failed program was:" >&5
12910   cat conftest.$ac_ext >&5
12911   rm -rf conftest*
12912   eval "ac_cv_func_$ac_func=no"
12913 fi
12914 rm -f conftest*
12915 fi
12916
12917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12918   echo "$ac_t""yes" 1>&6
12919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12920   cat >> confdefs.h <<EOF
12921 #define $ac_tr_func 1
12922 EOF
12923  
12924 else
12925   echo "$ac_t""no" 1>&6
12926 fi
12927 done
12928     
12929   else
12930     
12931   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
12932 echo "configure:12933: checking for _frexpf declaration" >&5
12933   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
12934     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
12935   echo $ac_n "(cached) $ac_c" 1>&6
12936 else
12937   
12938       
12939       ac_ext=C
12940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12941 ac_cpp='$CXXCPP $CPPFLAGS'
12942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12944 cross_compiling=$ac_cv_prog_cxx_cross
12945
12946       cat > conftest.$ac_ext <<EOF
12947 #line 12948 "configure"
12948 #include "confdefs.h"
12949 #include <math.h>
12950 int main() {
12951  _frexpf(0, 0);
12952 ; return 0; }
12953 EOF
12954 if { (eval echo configure:12955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12955   rm -rf conftest*
12956   glibcpp_cv_func__frexpf_use=yes
12957 else
12958   echo "configure: failed program was:" >&5
12959   cat conftest.$ac_ext >&5
12960   rm -rf conftest*
12961   glibcpp_cv_func__frexpf_use=no
12962 fi
12963 rm -f conftest*
12964       ac_ext=c
12965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12966 ac_cpp='$CPP $CPPFLAGS'
12967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12969 cross_compiling=$ac_cv_prog_cc_cross
12970
12971     
12972 fi
12973
12974   fi
12975   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
12976
12977     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
12978       for ac_func in _frexpf
12979 do
12980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12981 echo "configure:12982: checking for $ac_func" >&5
12982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12983   echo $ac_n "(cached) $ac_c" 1>&6
12984 else
12985   cat > conftest.$ac_ext <<EOF
12986 #line 12987 "configure"
12987 #include "confdefs.h"
12988 /* System header to define __stub macros and hopefully few prototypes,
12989     which can conflict with char $ac_func(); below.  */
12990 #include <assert.h>
12991 /* Override any gcc2 internal prototype to avoid an error.  */
12992 /* We use char because int might match the return type of a gcc2
12993     builtin and then its argument prototype would still apply.  */
12994 char $ac_func();
12995
12996 int main() {
12997
12998 /* The GNU C library defines this for functions which it implements
12999     to always fail with ENOSYS.  Some functions are actually named
13000     something starting with __ and the normal name is an alias.  */
13001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13002 choke me
13003 #else
13004 $ac_func();
13005 #endif
13006
13007 ; return 0; }
13008 EOF
13009 if { (eval echo configure:13010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13010   rm -rf conftest*
13011   eval "ac_cv_func_$ac_func=yes"
13012 else
13013   echo "configure: failed program was:" >&5
13014   cat conftest.$ac_ext >&5
13015   rm -rf conftest*
13016   eval "ac_cv_func_$ac_func=no"
13017 fi
13018 rm -f conftest*
13019 fi
13020
13021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13022   echo "$ac_t""yes" 1>&6
13023     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13024   cat >> confdefs.h <<EOF
13025 #define $ac_tr_func 1
13026 EOF
13027  
13028 else
13029   echo "$ac_t""no" 1>&6
13030 fi
13031 done
13032     
13033     fi
13034   fi
13035
13036   
13037   
13038   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
13039 echo "configure:13040: checking for hypotf declaration" >&5
13040   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
13041     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
13042   echo $ac_n "(cached) $ac_c" 1>&6
13043 else
13044   
13045       
13046       ac_ext=C
13047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13048 ac_cpp='$CXXCPP $CPPFLAGS'
13049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13051 cross_compiling=$ac_cv_prog_cxx_cross
13052
13053       cat > conftest.$ac_ext <<EOF
13054 #line 13055 "configure"
13055 #include "confdefs.h"
13056 #include <math.h>
13057 int main() {
13058  hypotf(0, 0);
13059 ; return 0; }
13060 EOF
13061 if { (eval echo configure:13062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13062   rm -rf conftest*
13063   glibcpp_cv_func_hypotf_use=yes
13064 else
13065   echo "configure: failed program was:" >&5
13066   cat conftest.$ac_ext >&5
13067   rm -rf conftest*
13068   glibcpp_cv_func_hypotf_use=no
13069 fi
13070 rm -f conftest*
13071       ac_ext=c
13072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13073 ac_cpp='$CPP $CPPFLAGS'
13074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13076 cross_compiling=$ac_cv_prog_cc_cross
13077
13078     
13079 fi
13080
13081   fi
13082   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
13083
13084   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
13085     for ac_func in hypotf
13086 do
13087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13088 echo "configure:13089: checking for $ac_func" >&5
13089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13090   echo $ac_n "(cached) $ac_c" 1>&6
13091 else
13092   cat > conftest.$ac_ext <<EOF
13093 #line 13094 "configure"
13094 #include "confdefs.h"
13095 /* System header to define __stub macros and hopefully few prototypes,
13096     which can conflict with char $ac_func(); below.  */
13097 #include <assert.h>
13098 /* Override any gcc2 internal prototype to avoid an error.  */
13099 /* We use char because int might match the return type of a gcc2
13100     builtin and then its argument prototype would still apply.  */
13101 char $ac_func();
13102
13103 int main() {
13104
13105 /* The GNU C library defines this for functions which it implements
13106     to always fail with ENOSYS.  Some functions are actually named
13107     something starting with __ and the normal name is an alias.  */
13108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13109 choke me
13110 #else
13111 $ac_func();
13112 #endif
13113
13114 ; return 0; }
13115 EOF
13116 if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13117   rm -rf conftest*
13118   eval "ac_cv_func_$ac_func=yes"
13119 else
13120   echo "configure: failed program was:" >&5
13121   cat conftest.$ac_ext >&5
13122   rm -rf conftest*
13123   eval "ac_cv_func_$ac_func=no"
13124 fi
13125 rm -f conftest*
13126 fi
13127
13128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13129   echo "$ac_t""yes" 1>&6
13130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13131   cat >> confdefs.h <<EOF
13132 #define $ac_tr_func 1
13133 EOF
13134  
13135 else
13136   echo "$ac_t""no" 1>&6
13137 fi
13138 done
13139     
13140   else
13141     
13142   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
13143 echo "configure:13144: checking for _hypotf declaration" >&5
13144   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
13145     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
13146   echo $ac_n "(cached) $ac_c" 1>&6
13147 else
13148   
13149       
13150       ac_ext=C
13151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13152 ac_cpp='$CXXCPP $CPPFLAGS'
13153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13155 cross_compiling=$ac_cv_prog_cxx_cross
13156
13157       cat > conftest.$ac_ext <<EOF
13158 #line 13159 "configure"
13159 #include "confdefs.h"
13160 #include <math.h>
13161 int main() {
13162  _hypotf(0, 0);
13163 ; return 0; }
13164 EOF
13165 if { (eval echo configure:13166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13166   rm -rf conftest*
13167   glibcpp_cv_func__hypotf_use=yes
13168 else
13169   echo "configure: failed program was:" >&5
13170   cat conftest.$ac_ext >&5
13171   rm -rf conftest*
13172   glibcpp_cv_func__hypotf_use=no
13173 fi
13174 rm -f conftest*
13175       ac_ext=c
13176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13177 ac_cpp='$CPP $CPPFLAGS'
13178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13180 cross_compiling=$ac_cv_prog_cc_cross
13181
13182     
13183 fi
13184
13185   fi
13186   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
13187
13188     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
13189       for ac_func in _hypotf
13190 do
13191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13192 echo "configure:13193: checking for $ac_func" >&5
13193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13194   echo $ac_n "(cached) $ac_c" 1>&6
13195 else
13196   cat > conftest.$ac_ext <<EOF
13197 #line 13198 "configure"
13198 #include "confdefs.h"
13199 /* System header to define __stub macros and hopefully few prototypes,
13200     which can conflict with char $ac_func(); below.  */
13201 #include <assert.h>
13202 /* Override any gcc2 internal prototype to avoid an error.  */
13203 /* We use char because int might match the return type of a gcc2
13204     builtin and then its argument prototype would still apply.  */
13205 char $ac_func();
13206
13207 int main() {
13208
13209 /* The GNU C library defines this for functions which it implements
13210     to always fail with ENOSYS.  Some functions are actually named
13211     something starting with __ and the normal name is an alias.  */
13212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13213 choke me
13214 #else
13215 $ac_func();
13216 #endif
13217
13218 ; return 0; }
13219 EOF
13220 if { (eval echo configure:13221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13221   rm -rf conftest*
13222   eval "ac_cv_func_$ac_func=yes"
13223 else
13224   echo "configure: failed program was:" >&5
13225   cat conftest.$ac_ext >&5
13226   rm -rf conftest*
13227   eval "ac_cv_func_$ac_func=no"
13228 fi
13229 rm -f conftest*
13230 fi
13231
13232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13233   echo "$ac_t""yes" 1>&6
13234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13235   cat >> confdefs.h <<EOF
13236 #define $ac_tr_func 1
13237 EOF
13238  
13239 else
13240   echo "$ac_t""no" 1>&6
13241 fi
13242 done
13243     
13244     fi
13245   fi
13246
13247   
13248   
13249   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
13250 echo "configure:13251: checking for ldexpf declaration" >&5
13251   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
13252     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
13253   echo $ac_n "(cached) $ac_c" 1>&6
13254 else
13255   
13256       
13257       ac_ext=C
13258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13259 ac_cpp='$CXXCPP $CPPFLAGS'
13260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13262 cross_compiling=$ac_cv_prog_cxx_cross
13263
13264       cat > conftest.$ac_ext <<EOF
13265 #line 13266 "configure"
13266 #include "confdefs.h"
13267 #include <math.h>
13268 int main() {
13269  ldexpf(0, 0);
13270 ; return 0; }
13271 EOF
13272 if { (eval echo configure:13273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13273   rm -rf conftest*
13274   glibcpp_cv_func_ldexpf_use=yes
13275 else
13276   echo "configure: failed program was:" >&5
13277   cat conftest.$ac_ext >&5
13278   rm -rf conftest*
13279   glibcpp_cv_func_ldexpf_use=no
13280 fi
13281 rm -f conftest*
13282       ac_ext=c
13283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13284 ac_cpp='$CPP $CPPFLAGS'
13285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13287 cross_compiling=$ac_cv_prog_cc_cross
13288
13289     
13290 fi
13291
13292   fi
13293   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
13294
13295   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
13296     for ac_func in ldexpf
13297 do
13298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13299 echo "configure:13300: checking for $ac_func" >&5
13300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13301   echo $ac_n "(cached) $ac_c" 1>&6
13302 else
13303   cat > conftest.$ac_ext <<EOF
13304 #line 13305 "configure"
13305 #include "confdefs.h"
13306 /* System header to define __stub macros and hopefully few prototypes,
13307     which can conflict with char $ac_func(); below.  */
13308 #include <assert.h>
13309 /* Override any gcc2 internal prototype to avoid an error.  */
13310 /* We use char because int might match the return type of a gcc2
13311     builtin and then its argument prototype would still apply.  */
13312 char $ac_func();
13313
13314 int main() {
13315
13316 /* The GNU C library defines this for functions which it implements
13317     to always fail with ENOSYS.  Some functions are actually named
13318     something starting with __ and the normal name is an alias.  */
13319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13320 choke me
13321 #else
13322 $ac_func();
13323 #endif
13324
13325 ; return 0; }
13326 EOF
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13328   rm -rf conftest*
13329   eval "ac_cv_func_$ac_func=yes"
13330 else
13331   echo "configure: failed program was:" >&5
13332   cat conftest.$ac_ext >&5
13333   rm -rf conftest*
13334   eval "ac_cv_func_$ac_func=no"
13335 fi
13336 rm -f conftest*
13337 fi
13338
13339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13340   echo "$ac_t""yes" 1>&6
13341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13342   cat >> confdefs.h <<EOF
13343 #define $ac_tr_func 1
13344 EOF
13345  
13346 else
13347   echo "$ac_t""no" 1>&6
13348 fi
13349 done
13350     
13351   else
13352     
13353   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
13354 echo "configure:13355: checking for _ldexpf declaration" >&5
13355   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
13356     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
13357   echo $ac_n "(cached) $ac_c" 1>&6
13358 else
13359   
13360       
13361       ac_ext=C
13362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13363 ac_cpp='$CXXCPP $CPPFLAGS'
13364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13366 cross_compiling=$ac_cv_prog_cxx_cross
13367
13368       cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 #include <math.h>
13372 int main() {
13373  _ldexpf(0, 0);
13374 ; return 0; }
13375 EOF
13376 if { (eval echo configure:13377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13377   rm -rf conftest*
13378   glibcpp_cv_func__ldexpf_use=yes
13379 else
13380   echo "configure: failed program was:" >&5
13381   cat conftest.$ac_ext >&5
13382   rm -rf conftest*
13383   glibcpp_cv_func__ldexpf_use=no
13384 fi
13385 rm -f conftest*
13386       ac_ext=c
13387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13388 ac_cpp='$CPP $CPPFLAGS'
13389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13391 cross_compiling=$ac_cv_prog_cc_cross
13392
13393     
13394 fi
13395
13396   fi
13397   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
13398
13399     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
13400       for ac_func in _ldexpf
13401 do
13402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13403 echo "configure:13404: checking for $ac_func" >&5
13404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13405   echo $ac_n "(cached) $ac_c" 1>&6
13406 else
13407   cat > conftest.$ac_ext <<EOF
13408 #line 13409 "configure"
13409 #include "confdefs.h"
13410 /* System header to define __stub macros and hopefully few prototypes,
13411     which can conflict with char $ac_func(); below.  */
13412 #include <assert.h>
13413 /* Override any gcc2 internal prototype to avoid an error.  */
13414 /* We use char because int might match the return type of a gcc2
13415     builtin and then its argument prototype would still apply.  */
13416 char $ac_func();
13417
13418 int main() {
13419
13420 /* The GNU C library defines this for functions which it implements
13421     to always fail with ENOSYS.  Some functions are actually named
13422     something starting with __ and the normal name is an alias.  */
13423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13424 choke me
13425 #else
13426 $ac_func();
13427 #endif
13428
13429 ; return 0; }
13430 EOF
13431 if { (eval echo configure:13432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13432   rm -rf conftest*
13433   eval "ac_cv_func_$ac_func=yes"
13434 else
13435   echo "configure: failed program was:" >&5
13436   cat conftest.$ac_ext >&5
13437   rm -rf conftest*
13438   eval "ac_cv_func_$ac_func=no"
13439 fi
13440 rm -f conftest*
13441 fi
13442
13443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13444   echo "$ac_t""yes" 1>&6
13445     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13446   cat >> confdefs.h <<EOF
13447 #define $ac_tr_func 1
13448 EOF
13449  
13450 else
13451   echo "$ac_t""no" 1>&6
13452 fi
13453 done
13454     
13455     fi
13456   fi
13457
13458   
13459   
13460   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
13461 echo "configure:13462: checking for logf declaration" >&5
13462   if test x${glibcpp_cv_func_logf_use+set} != xset; then
13463     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
13464   echo $ac_n "(cached) $ac_c" 1>&6
13465 else
13466   
13467       
13468       ac_ext=C
13469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13470 ac_cpp='$CXXCPP $CPPFLAGS'
13471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13473 cross_compiling=$ac_cv_prog_cxx_cross
13474
13475       cat > conftest.$ac_ext <<EOF
13476 #line 13477 "configure"
13477 #include "confdefs.h"
13478 #include <math.h>
13479                       #ifdef HAVE_IEEEFP_H
13480                       #include <ieeefp.h>
13481                       #endif
13482                      
13483 int main() {
13484  logf(0);
13485 ; return 0; }
13486 EOF
13487 if { (eval echo configure:13488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13488   rm -rf conftest*
13489   glibcpp_cv_func_logf_use=yes
13490 else
13491   echo "configure: failed program was:" >&5
13492   cat conftest.$ac_ext >&5
13493   rm -rf conftest*
13494   glibcpp_cv_func_logf_use=no
13495 fi
13496 rm -f conftest*
13497       ac_ext=c
13498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13499 ac_cpp='$CPP $CPPFLAGS'
13500 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13501 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13502 cross_compiling=$ac_cv_prog_cc_cross
13503
13504     
13505 fi
13506
13507   fi
13508   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
13509
13510   if test x$glibcpp_cv_func_logf_use = x"yes"; then
13511     for ac_func in logf
13512 do
13513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13514 echo "configure:13515: checking for $ac_func" >&5
13515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13516   echo $ac_n "(cached) $ac_c" 1>&6
13517 else
13518   cat > conftest.$ac_ext <<EOF
13519 #line 13520 "configure"
13520 #include "confdefs.h"
13521 /* System header to define __stub macros and hopefully few prototypes,
13522     which can conflict with char $ac_func(); below.  */
13523 #include <assert.h>
13524 /* Override any gcc2 internal prototype to avoid an error.  */
13525 /* We use char because int might match the return type of a gcc2
13526     builtin and then its argument prototype would still apply.  */
13527 char $ac_func();
13528
13529 int main() {
13530
13531 /* The GNU C library defines this for functions which it implements
13532     to always fail with ENOSYS.  Some functions are actually named
13533     something starting with __ and the normal name is an alias.  */
13534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13535 choke me
13536 #else
13537 $ac_func();
13538 #endif
13539
13540 ; return 0; }
13541 EOF
13542 if { (eval echo configure:13543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13543   rm -rf conftest*
13544   eval "ac_cv_func_$ac_func=yes"
13545 else
13546   echo "configure: failed program was:" >&5
13547   cat conftest.$ac_ext >&5
13548   rm -rf conftest*
13549   eval "ac_cv_func_$ac_func=no"
13550 fi
13551 rm -f conftest*
13552 fi
13553
13554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13555   echo "$ac_t""yes" 1>&6
13556     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13557   cat >> confdefs.h <<EOF
13558 #define $ac_tr_func 1
13559 EOF
13560  
13561 else
13562   echo "$ac_t""no" 1>&6
13563 fi
13564 done
13565     
13566   else
13567     
13568   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
13569 echo "configure:13570: checking for _logf declaration" >&5
13570   if test x${glibcpp_cv_func__logf_use+set} != xset; then
13571     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
13572   echo $ac_n "(cached) $ac_c" 1>&6
13573 else
13574   
13575       
13576       ac_ext=C
13577 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13578 ac_cpp='$CXXCPP $CPPFLAGS'
13579 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13580 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13581 cross_compiling=$ac_cv_prog_cxx_cross
13582
13583       cat > conftest.$ac_ext <<EOF
13584 #line 13585 "configure"
13585 #include "confdefs.h"
13586 #include <math.h>
13587                       #ifdef HAVE_IEEEFP_H
13588                       #include <ieeefp.h>
13589                       #endif
13590                      
13591 int main() {
13592  _logf(0);
13593 ; return 0; }
13594 EOF
13595 if { (eval echo configure:13596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13596   rm -rf conftest*
13597   glibcpp_cv_func__logf_use=yes
13598 else
13599   echo "configure: failed program was:" >&5
13600   cat conftest.$ac_ext >&5
13601   rm -rf conftest*
13602   glibcpp_cv_func__logf_use=no
13603 fi
13604 rm -f conftest*
13605       ac_ext=c
13606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13607 ac_cpp='$CPP $CPPFLAGS'
13608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13610 cross_compiling=$ac_cv_prog_cc_cross
13611
13612     
13613 fi
13614
13615   fi
13616   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
13617
13618     if test x$glibcpp_cv_func__logf_use = x"yes"; then
13619       for ac_func in _logf
13620 do
13621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13622 echo "configure:13623: checking for $ac_func" >&5
13623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13624   echo $ac_n "(cached) $ac_c" 1>&6
13625 else
13626   cat > conftest.$ac_ext <<EOF
13627 #line 13628 "configure"
13628 #include "confdefs.h"
13629 /* System header to define __stub macros and hopefully few prototypes,
13630     which can conflict with char $ac_func(); below.  */
13631 #include <assert.h>
13632 /* Override any gcc2 internal prototype to avoid an error.  */
13633 /* We use char because int might match the return type of a gcc2
13634     builtin and then its argument prototype would still apply.  */
13635 char $ac_func();
13636
13637 int main() {
13638
13639 /* The GNU C library defines this for functions which it implements
13640     to always fail with ENOSYS.  Some functions are actually named
13641     something starting with __ and the normal name is an alias.  */
13642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13643 choke me
13644 #else
13645 $ac_func();
13646 #endif
13647
13648 ; return 0; }
13649 EOF
13650 if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13651   rm -rf conftest*
13652   eval "ac_cv_func_$ac_func=yes"
13653 else
13654   echo "configure: failed program was:" >&5
13655   cat conftest.$ac_ext >&5
13656   rm -rf conftest*
13657   eval "ac_cv_func_$ac_func=no"
13658 fi
13659 rm -f conftest*
13660 fi
13661
13662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13663   echo "$ac_t""yes" 1>&6
13664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13665   cat >> confdefs.h <<EOF
13666 #define $ac_tr_func 1
13667 EOF
13668  
13669 else
13670   echo "$ac_t""no" 1>&6
13671 fi
13672 done
13673     
13674     fi
13675   fi
13676
13677   
13678   
13679   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
13680 echo "configure:13681: checking for log10f declaration" >&5
13681   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
13682     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
13683   echo $ac_n "(cached) $ac_c" 1>&6
13684 else
13685   
13686       
13687       ac_ext=C
13688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13689 ac_cpp='$CXXCPP $CPPFLAGS'
13690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13692 cross_compiling=$ac_cv_prog_cxx_cross
13693
13694       cat > conftest.$ac_ext <<EOF
13695 #line 13696 "configure"
13696 #include "confdefs.h"
13697 #include <math.h>
13698                       #ifdef HAVE_IEEEFP_H
13699                       #include <ieeefp.h>
13700                       #endif
13701                      
13702 int main() {
13703  log10f(0);
13704 ; return 0; }
13705 EOF
13706 if { (eval echo configure:13707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13707   rm -rf conftest*
13708   glibcpp_cv_func_log10f_use=yes
13709 else
13710   echo "configure: failed program was:" >&5
13711   cat conftest.$ac_ext >&5
13712   rm -rf conftest*
13713   glibcpp_cv_func_log10f_use=no
13714 fi
13715 rm -f conftest*
13716       ac_ext=c
13717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13718 ac_cpp='$CPP $CPPFLAGS'
13719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13721 cross_compiling=$ac_cv_prog_cc_cross
13722
13723     
13724 fi
13725
13726   fi
13727   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13728
13729   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13730     for ac_func in log10f
13731 do
13732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13733 echo "configure:13734: checking for $ac_func" >&5
13734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13735   echo $ac_n "(cached) $ac_c" 1>&6
13736 else
13737   cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure"
13739 #include "confdefs.h"
13740 /* System header to define __stub macros and hopefully few prototypes,
13741     which can conflict with char $ac_func(); below.  */
13742 #include <assert.h>
13743 /* Override any gcc2 internal prototype to avoid an error.  */
13744 /* We use char because int might match the return type of a gcc2
13745     builtin and then its argument prototype would still apply.  */
13746 char $ac_func();
13747
13748 int main() {
13749
13750 /* The GNU C library defines this for functions which it implements
13751     to always fail with ENOSYS.  Some functions are actually named
13752     something starting with __ and the normal name is an alias.  */
13753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13754 choke me
13755 #else
13756 $ac_func();
13757 #endif
13758
13759 ; return 0; }
13760 EOF
13761 if { (eval echo configure:13762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13762   rm -rf conftest*
13763   eval "ac_cv_func_$ac_func=yes"
13764 else
13765   echo "configure: failed program was:" >&5
13766   cat conftest.$ac_ext >&5
13767   rm -rf conftest*
13768   eval "ac_cv_func_$ac_func=no"
13769 fi
13770 rm -f conftest*
13771 fi
13772
13773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13774   echo "$ac_t""yes" 1>&6
13775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13776   cat >> confdefs.h <<EOF
13777 #define $ac_tr_func 1
13778 EOF
13779  
13780 else
13781   echo "$ac_t""no" 1>&6
13782 fi
13783 done
13784     
13785   else
13786     
13787   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13788 echo "configure:13789: checking for _log10f declaration" >&5
13789   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13790     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13791   echo $ac_n "(cached) $ac_c" 1>&6
13792 else
13793   
13794       
13795       ac_ext=C
13796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13797 ac_cpp='$CXXCPP $CPPFLAGS'
13798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13800 cross_compiling=$ac_cv_prog_cxx_cross
13801
13802       cat > conftest.$ac_ext <<EOF
13803 #line 13804 "configure"
13804 #include "confdefs.h"
13805 #include <math.h>
13806                       #ifdef HAVE_IEEEFP_H
13807                       #include <ieeefp.h>
13808                       #endif
13809                      
13810 int main() {
13811  _log10f(0);
13812 ; return 0; }
13813 EOF
13814 if { (eval echo configure:13815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13815   rm -rf conftest*
13816   glibcpp_cv_func__log10f_use=yes
13817 else
13818   echo "configure: failed program was:" >&5
13819   cat conftest.$ac_ext >&5
13820   rm -rf conftest*
13821   glibcpp_cv_func__log10f_use=no
13822 fi
13823 rm -f conftest*
13824       ac_ext=c
13825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13826 ac_cpp='$CPP $CPPFLAGS'
13827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13829 cross_compiling=$ac_cv_prog_cc_cross
13830
13831     
13832 fi
13833
13834   fi
13835   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
13836
13837     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
13838       for ac_func in _log10f
13839 do
13840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13841 echo "configure:13842: checking for $ac_func" >&5
13842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13843   echo $ac_n "(cached) $ac_c" 1>&6
13844 else
13845   cat > conftest.$ac_ext <<EOF
13846 #line 13847 "configure"
13847 #include "confdefs.h"
13848 /* System header to define __stub macros and hopefully few prototypes,
13849     which can conflict with char $ac_func(); below.  */
13850 #include <assert.h>
13851 /* Override any gcc2 internal prototype to avoid an error.  */
13852 /* We use char because int might match the return type of a gcc2
13853     builtin and then its argument prototype would still apply.  */
13854 char $ac_func();
13855
13856 int main() {
13857
13858 /* The GNU C library defines this for functions which it implements
13859     to always fail with ENOSYS.  Some functions are actually named
13860     something starting with __ and the normal name is an alias.  */
13861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13862 choke me
13863 #else
13864 $ac_func();
13865 #endif
13866
13867 ; return 0; }
13868 EOF
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13870   rm -rf conftest*
13871   eval "ac_cv_func_$ac_func=yes"
13872 else
13873   echo "configure: failed program was:" >&5
13874   cat conftest.$ac_ext >&5
13875   rm -rf conftest*
13876   eval "ac_cv_func_$ac_func=no"
13877 fi
13878 rm -f conftest*
13879 fi
13880
13881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13882   echo "$ac_t""yes" 1>&6
13883     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13884   cat >> confdefs.h <<EOF
13885 #define $ac_tr_func 1
13886 EOF
13887  
13888 else
13889   echo "$ac_t""no" 1>&6
13890 fi
13891 done
13892     
13893     fi
13894   fi
13895
13896   
13897   
13898   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
13899 echo "configure:13900: checking for modff declaration" >&5
13900   if test x${glibcpp_cv_func_modff_use+set} != xset; then
13901     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
13902   echo $ac_n "(cached) $ac_c" 1>&6
13903 else
13904   
13905       
13906       ac_ext=C
13907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13908 ac_cpp='$CXXCPP $CPPFLAGS'
13909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13911 cross_compiling=$ac_cv_prog_cxx_cross
13912
13913       cat > conftest.$ac_ext <<EOF
13914 #line 13915 "configure"
13915 #include "confdefs.h"
13916 #include <math.h>
13917 int main() {
13918  modff(0, 0);
13919 ; return 0; }
13920 EOF
13921 if { (eval echo configure:13922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13922   rm -rf conftest*
13923   glibcpp_cv_func_modff_use=yes
13924 else
13925   echo "configure: failed program was:" >&5
13926   cat conftest.$ac_ext >&5
13927   rm -rf conftest*
13928   glibcpp_cv_func_modff_use=no
13929 fi
13930 rm -f conftest*
13931       ac_ext=c
13932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13933 ac_cpp='$CPP $CPPFLAGS'
13934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13936 cross_compiling=$ac_cv_prog_cc_cross
13937
13938     
13939 fi
13940
13941   fi
13942   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
13943
13944   if test x$glibcpp_cv_func_modff_use = x"yes"; then
13945     for ac_func in modff
13946 do
13947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13948 echo "configure:13949: checking for $ac_func" >&5
13949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13950   echo $ac_n "(cached) $ac_c" 1>&6
13951 else
13952   cat > conftest.$ac_ext <<EOF
13953 #line 13954 "configure"
13954 #include "confdefs.h"
13955 /* System header to define __stub macros and hopefully few prototypes,
13956     which can conflict with char $ac_func(); below.  */
13957 #include <assert.h>
13958 /* Override any gcc2 internal prototype to avoid an error.  */
13959 /* We use char because int might match the return type of a gcc2
13960     builtin and then its argument prototype would still apply.  */
13961 char $ac_func();
13962
13963 int main() {
13964
13965 /* The GNU C library defines this for functions which it implements
13966     to always fail with ENOSYS.  Some functions are actually named
13967     something starting with __ and the normal name is an alias.  */
13968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13969 choke me
13970 #else
13971 $ac_func();
13972 #endif
13973
13974 ; return 0; }
13975 EOF
13976 if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13977   rm -rf conftest*
13978   eval "ac_cv_func_$ac_func=yes"
13979 else
13980   echo "configure: failed program was:" >&5
13981   cat conftest.$ac_ext >&5
13982   rm -rf conftest*
13983   eval "ac_cv_func_$ac_func=no"
13984 fi
13985 rm -f conftest*
13986 fi
13987
13988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13989   echo "$ac_t""yes" 1>&6
13990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13991   cat >> confdefs.h <<EOF
13992 #define $ac_tr_func 1
13993 EOF
13994  
13995 else
13996   echo "$ac_t""no" 1>&6
13997 fi
13998 done
13999     
14000   else
14001     
14002   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
14003 echo "configure:14004: checking for _modff declaration" >&5
14004   if test x${glibcpp_cv_func__modff_use+set} != xset; then
14005     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
14006   echo $ac_n "(cached) $ac_c" 1>&6
14007 else
14008   
14009       
14010       ac_ext=C
14011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14012 ac_cpp='$CXXCPP $CPPFLAGS'
14013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14015 cross_compiling=$ac_cv_prog_cxx_cross
14016
14017       cat > conftest.$ac_ext <<EOF
14018 #line 14019 "configure"
14019 #include "confdefs.h"
14020 #include <math.h>
14021 int main() {
14022  _modff(0, 0);
14023 ; return 0; }
14024 EOF
14025 if { (eval echo configure:14026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14026   rm -rf conftest*
14027   glibcpp_cv_func__modff_use=yes
14028 else
14029   echo "configure: failed program was:" >&5
14030   cat conftest.$ac_ext >&5
14031   rm -rf conftest*
14032   glibcpp_cv_func__modff_use=no
14033 fi
14034 rm -f conftest*
14035       ac_ext=c
14036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14037 ac_cpp='$CPP $CPPFLAGS'
14038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14040 cross_compiling=$ac_cv_prog_cc_cross
14041
14042     
14043 fi
14044
14045   fi
14046   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
14047
14048     if test x$glibcpp_cv_func__modff_use = x"yes"; then
14049       for ac_func in _modff
14050 do
14051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14052 echo "configure:14053: checking for $ac_func" >&5
14053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14054   echo $ac_n "(cached) $ac_c" 1>&6
14055 else
14056   cat > conftest.$ac_ext <<EOF
14057 #line 14058 "configure"
14058 #include "confdefs.h"
14059 /* System header to define __stub macros and hopefully few prototypes,
14060     which can conflict with char $ac_func(); below.  */
14061 #include <assert.h>
14062 /* Override any gcc2 internal prototype to avoid an error.  */
14063 /* We use char because int might match the return type of a gcc2
14064     builtin and then its argument prototype would still apply.  */
14065 char $ac_func();
14066
14067 int main() {
14068
14069 /* The GNU C library defines this for functions which it implements
14070     to always fail with ENOSYS.  Some functions are actually named
14071     something starting with __ and the normal name is an alias.  */
14072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14073 choke me
14074 #else
14075 $ac_func();
14076 #endif
14077
14078 ; return 0; }
14079 EOF
14080 if { (eval echo configure:14081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14081   rm -rf conftest*
14082   eval "ac_cv_func_$ac_func=yes"
14083 else
14084   echo "configure: failed program was:" >&5
14085   cat conftest.$ac_ext >&5
14086   rm -rf conftest*
14087   eval "ac_cv_func_$ac_func=no"
14088 fi
14089 rm -f conftest*
14090 fi
14091
14092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14093   echo "$ac_t""yes" 1>&6
14094     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14095   cat >> confdefs.h <<EOF
14096 #define $ac_tr_func 1
14097 EOF
14098  
14099 else
14100   echo "$ac_t""no" 1>&6
14101 fi
14102 done
14103     
14104     fi
14105   fi
14106
14107   
14108   
14109   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
14110 echo "configure:14111: checking for powf declaration" >&5
14111   if test x${glibcpp_cv_func_powf_use+set} != xset; then
14112     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
14113   echo $ac_n "(cached) $ac_c" 1>&6
14114 else
14115   
14116       
14117       ac_ext=C
14118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14119 ac_cpp='$CXXCPP $CPPFLAGS'
14120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14122 cross_compiling=$ac_cv_prog_cxx_cross
14123
14124       cat > conftest.$ac_ext <<EOF
14125 #line 14126 "configure"
14126 #include "confdefs.h"
14127 #include <math.h>
14128 int main() {
14129  powf(0, 0);
14130 ; return 0; }
14131 EOF
14132 if { (eval echo configure:14133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14133   rm -rf conftest*
14134   glibcpp_cv_func_powf_use=yes
14135 else
14136   echo "configure: failed program was:" >&5
14137   cat conftest.$ac_ext >&5
14138   rm -rf conftest*
14139   glibcpp_cv_func_powf_use=no
14140 fi
14141 rm -f conftest*
14142       ac_ext=c
14143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14144 ac_cpp='$CPP $CPPFLAGS'
14145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14147 cross_compiling=$ac_cv_prog_cc_cross
14148
14149     
14150 fi
14151
14152   fi
14153   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
14154
14155   if test x$glibcpp_cv_func_powf_use = x"yes"; then
14156     for ac_func in powf
14157 do
14158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14159 echo "configure:14160: checking for $ac_func" >&5
14160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14161   echo $ac_n "(cached) $ac_c" 1>&6
14162 else
14163   cat > conftest.$ac_ext <<EOF
14164 #line 14165 "configure"
14165 #include "confdefs.h"
14166 /* System header to define __stub macros and hopefully few prototypes,
14167     which can conflict with char $ac_func(); below.  */
14168 #include <assert.h>
14169 /* Override any gcc2 internal prototype to avoid an error.  */
14170 /* We use char because int might match the return type of a gcc2
14171     builtin and then its argument prototype would still apply.  */
14172 char $ac_func();
14173
14174 int main() {
14175
14176 /* The GNU C library defines this for functions which it implements
14177     to always fail with ENOSYS.  Some functions are actually named
14178     something starting with __ and the normal name is an alias.  */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14180 choke me
14181 #else
14182 $ac_func();
14183 #endif
14184
14185 ; return 0; }
14186 EOF
14187 if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14188   rm -rf conftest*
14189   eval "ac_cv_func_$ac_func=yes"
14190 else
14191   echo "configure: failed program was:" >&5
14192   cat conftest.$ac_ext >&5
14193   rm -rf conftest*
14194   eval "ac_cv_func_$ac_func=no"
14195 fi
14196 rm -f conftest*
14197 fi
14198
14199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14200   echo "$ac_t""yes" 1>&6
14201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14202   cat >> confdefs.h <<EOF
14203 #define $ac_tr_func 1
14204 EOF
14205  
14206 else
14207   echo "$ac_t""no" 1>&6
14208 fi
14209 done
14210     
14211   else
14212     
14213   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
14214 echo "configure:14215: checking for _powf declaration" >&5
14215   if test x${glibcpp_cv_func__powf_use+set} != xset; then
14216     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
14217   echo $ac_n "(cached) $ac_c" 1>&6
14218 else
14219   
14220       
14221       ac_ext=C
14222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14223 ac_cpp='$CXXCPP $CPPFLAGS'
14224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14226 cross_compiling=$ac_cv_prog_cxx_cross
14227
14228       cat > conftest.$ac_ext <<EOF
14229 #line 14230 "configure"
14230 #include "confdefs.h"
14231 #include <math.h>
14232 int main() {
14233  _powf(0, 0);
14234 ; return 0; }
14235 EOF
14236 if { (eval echo configure:14237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14237   rm -rf conftest*
14238   glibcpp_cv_func__powf_use=yes
14239 else
14240   echo "configure: failed program was:" >&5
14241   cat conftest.$ac_ext >&5
14242   rm -rf conftest*
14243   glibcpp_cv_func__powf_use=no
14244 fi
14245 rm -f conftest*
14246       ac_ext=c
14247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14248 ac_cpp='$CPP $CPPFLAGS'
14249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14251 cross_compiling=$ac_cv_prog_cc_cross
14252
14253     
14254 fi
14255
14256   fi
14257   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
14258
14259     if test x$glibcpp_cv_func__powf_use = x"yes"; then
14260       for ac_func in _powf
14261 do
14262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14263 echo "configure:14264: checking for $ac_func" >&5
14264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14265   echo $ac_n "(cached) $ac_c" 1>&6
14266 else
14267   cat > conftest.$ac_ext <<EOF
14268 #line 14269 "configure"
14269 #include "confdefs.h"
14270 /* System header to define __stub macros and hopefully few prototypes,
14271     which can conflict with char $ac_func(); below.  */
14272 #include <assert.h>
14273 /* Override any gcc2 internal prototype to avoid an error.  */
14274 /* We use char because int might match the return type of a gcc2
14275     builtin and then its argument prototype would still apply.  */
14276 char $ac_func();
14277
14278 int main() {
14279
14280 /* The GNU C library defines this for functions which it implements
14281     to always fail with ENOSYS.  Some functions are actually named
14282     something starting with __ and the normal name is an alias.  */
14283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14284 choke me
14285 #else
14286 $ac_func();
14287 #endif
14288
14289 ; return 0; }
14290 EOF
14291 if { (eval echo configure:14292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14292   rm -rf conftest*
14293   eval "ac_cv_func_$ac_func=yes"
14294 else
14295   echo "configure: failed program was:" >&5
14296   cat conftest.$ac_ext >&5
14297   rm -rf conftest*
14298   eval "ac_cv_func_$ac_func=no"
14299 fi
14300 rm -f conftest*
14301 fi
14302
14303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14304   echo "$ac_t""yes" 1>&6
14305     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14306   cat >> confdefs.h <<EOF
14307 #define $ac_tr_func 1
14308 EOF
14309  
14310 else
14311   echo "$ac_t""no" 1>&6
14312 fi
14313 done
14314     
14315     fi
14316   fi
14317
14318   
14319   
14320   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
14321 echo "configure:14322: checking for sqrtf declaration" >&5
14322   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
14323     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
14324   echo $ac_n "(cached) $ac_c" 1>&6
14325 else
14326   
14327       
14328       ac_ext=C
14329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14330 ac_cpp='$CXXCPP $CPPFLAGS'
14331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14333 cross_compiling=$ac_cv_prog_cxx_cross
14334
14335       cat > conftest.$ac_ext <<EOF
14336 #line 14337 "configure"
14337 #include "confdefs.h"
14338 #include <math.h>
14339                       #ifdef HAVE_IEEEFP_H
14340                       #include <ieeefp.h>
14341                       #endif
14342                      
14343 int main() {
14344  sqrtf(0);
14345 ; return 0; }
14346 EOF
14347 if { (eval echo configure:14348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14348   rm -rf conftest*
14349   glibcpp_cv_func_sqrtf_use=yes
14350 else
14351   echo "configure: failed program was:" >&5
14352   cat conftest.$ac_ext >&5
14353   rm -rf conftest*
14354   glibcpp_cv_func_sqrtf_use=no
14355 fi
14356 rm -f conftest*
14357       ac_ext=c
14358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14359 ac_cpp='$CPP $CPPFLAGS'
14360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14362 cross_compiling=$ac_cv_prog_cc_cross
14363
14364     
14365 fi
14366
14367   fi
14368   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
14369
14370   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
14371     for ac_func in sqrtf
14372 do
14373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14374 echo "configure:14375: checking for $ac_func" >&5
14375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14376   echo $ac_n "(cached) $ac_c" 1>&6
14377 else
14378   cat > conftest.$ac_ext <<EOF
14379 #line 14380 "configure"
14380 #include "confdefs.h"
14381 /* System header to define __stub macros and hopefully few prototypes,
14382     which can conflict with char $ac_func(); below.  */
14383 #include <assert.h>
14384 /* Override any gcc2 internal prototype to avoid an error.  */
14385 /* We use char because int might match the return type of a gcc2
14386     builtin and then its argument prototype would still apply.  */
14387 char $ac_func();
14388
14389 int main() {
14390
14391 /* The GNU C library defines this for functions which it implements
14392     to always fail with ENOSYS.  Some functions are actually named
14393     something starting with __ and the normal name is an alias.  */
14394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14395 choke me
14396 #else
14397 $ac_func();
14398 #endif
14399
14400 ; return 0; }
14401 EOF
14402 if { (eval echo configure:14403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14403   rm -rf conftest*
14404   eval "ac_cv_func_$ac_func=yes"
14405 else
14406   echo "configure: failed program was:" >&5
14407   cat conftest.$ac_ext >&5
14408   rm -rf conftest*
14409   eval "ac_cv_func_$ac_func=no"
14410 fi
14411 rm -f conftest*
14412 fi
14413
14414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14415   echo "$ac_t""yes" 1>&6
14416     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14417   cat >> confdefs.h <<EOF
14418 #define $ac_tr_func 1
14419 EOF
14420  
14421 else
14422   echo "$ac_t""no" 1>&6
14423 fi
14424 done
14425     
14426   else
14427     
14428   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
14429 echo "configure:14430: checking for _sqrtf declaration" >&5
14430   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
14431     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
14432   echo $ac_n "(cached) $ac_c" 1>&6
14433 else
14434   
14435       
14436       ac_ext=C
14437 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14438 ac_cpp='$CXXCPP $CPPFLAGS'
14439 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14440 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14441 cross_compiling=$ac_cv_prog_cxx_cross
14442
14443       cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14446 #include <math.h>
14447                       #ifdef HAVE_IEEEFP_H
14448                       #include <ieeefp.h>
14449                       #endif
14450                      
14451 int main() {
14452  _sqrtf(0);
14453 ; return 0; }
14454 EOF
14455 if { (eval echo configure:14456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14456   rm -rf conftest*
14457   glibcpp_cv_func__sqrtf_use=yes
14458 else
14459   echo "configure: failed program was:" >&5
14460   cat conftest.$ac_ext >&5
14461   rm -rf conftest*
14462   glibcpp_cv_func__sqrtf_use=no
14463 fi
14464 rm -f conftest*
14465       ac_ext=c
14466 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14467 ac_cpp='$CPP $CPPFLAGS'
14468 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14469 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14470 cross_compiling=$ac_cv_prog_cc_cross
14471
14472     
14473 fi
14474
14475   fi
14476   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
14477
14478     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
14479       for ac_func in _sqrtf
14480 do
14481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14482 echo "configure:14483: checking for $ac_func" >&5
14483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14484   echo $ac_n "(cached) $ac_c" 1>&6
14485 else
14486   cat > conftest.$ac_ext <<EOF
14487 #line 14488 "configure"
14488 #include "confdefs.h"
14489 /* System header to define __stub macros and hopefully few prototypes,
14490     which can conflict with char $ac_func(); below.  */
14491 #include <assert.h>
14492 /* Override any gcc2 internal prototype to avoid an error.  */
14493 /* We use char because int might match the return type of a gcc2
14494     builtin and then its argument prototype would still apply.  */
14495 char $ac_func();
14496
14497 int main() {
14498
14499 /* The GNU C library defines this for functions which it implements
14500     to always fail with ENOSYS.  Some functions are actually named
14501     something starting with __ and the normal name is an alias.  */
14502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14503 choke me
14504 #else
14505 $ac_func();
14506 #endif
14507
14508 ; return 0; }
14509 EOF
14510 if { (eval echo configure:14511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14511   rm -rf conftest*
14512   eval "ac_cv_func_$ac_func=yes"
14513 else
14514   echo "configure: failed program was:" >&5
14515   cat conftest.$ac_ext >&5
14516   rm -rf conftest*
14517   eval "ac_cv_func_$ac_func=no"
14518 fi
14519 rm -f conftest*
14520 fi
14521
14522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14523   echo "$ac_t""yes" 1>&6
14524     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14525   cat >> confdefs.h <<EOF
14526 #define $ac_tr_func 1
14527 EOF
14528  
14529 else
14530   echo "$ac_t""no" 1>&6
14531 fi
14532 done
14533     
14534     fi
14535   fi
14536
14537   
14538   
14539   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
14540 echo "configure:14541: checking for sincosf declaration" >&5
14541   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
14542     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
14543   echo $ac_n "(cached) $ac_c" 1>&6
14544 else
14545   
14546       
14547       ac_ext=C
14548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14549 ac_cpp='$CXXCPP $CPPFLAGS'
14550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14552 cross_compiling=$ac_cv_prog_cxx_cross
14553
14554       cat > conftest.$ac_ext <<EOF
14555 #line 14556 "configure"
14556 #include "confdefs.h"
14557 #include <math.h>
14558 int main() {
14559  sincosf(0, 0, 0);
14560 ; return 0; }
14561 EOF
14562 if { (eval echo configure:14563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14563   rm -rf conftest*
14564   glibcpp_cv_func_sincosf_use=yes
14565 else
14566   echo "configure: failed program was:" >&5
14567   cat conftest.$ac_ext >&5
14568   rm -rf conftest*
14569   glibcpp_cv_func_sincosf_use=no
14570 fi
14571 rm -f conftest*
14572       ac_ext=c
14573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14574 ac_cpp='$CPP $CPPFLAGS'
14575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14577 cross_compiling=$ac_cv_prog_cc_cross
14578
14579     
14580 fi
14581
14582   fi
14583   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
14584
14585   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
14586     for ac_func in sincosf
14587 do
14588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14589 echo "configure:14590: checking for $ac_func" >&5
14590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14591   echo $ac_n "(cached) $ac_c" 1>&6
14592 else
14593   cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14596 /* System header to define __stub macros and hopefully few prototypes,
14597     which can conflict with char $ac_func(); below.  */
14598 #include <assert.h>
14599 /* Override any gcc2 internal prototype to avoid an error.  */
14600 /* We use char because int might match the return type of a gcc2
14601     builtin and then its argument prototype would still apply.  */
14602 char $ac_func();
14603
14604 int main() {
14605
14606 /* The GNU C library defines this for functions which it implements
14607     to always fail with ENOSYS.  Some functions are actually named
14608     something starting with __ and the normal name is an alias.  */
14609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14610 choke me
14611 #else
14612 $ac_func();
14613 #endif
14614
14615 ; return 0; }
14616 EOF
14617 if { (eval echo configure:14618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14618   rm -rf conftest*
14619   eval "ac_cv_func_$ac_func=yes"
14620 else
14621   echo "configure: failed program was:" >&5
14622   cat conftest.$ac_ext >&5
14623   rm -rf conftest*
14624   eval "ac_cv_func_$ac_func=no"
14625 fi
14626 rm -f conftest*
14627 fi
14628
14629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14630   echo "$ac_t""yes" 1>&6
14631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14632   cat >> confdefs.h <<EOF
14633 #define $ac_tr_func 1
14634 EOF
14635  
14636 else
14637   echo "$ac_t""no" 1>&6
14638 fi
14639 done
14640     
14641   else
14642     
14643   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
14644 echo "configure:14645: checking for _sincosf declaration" >&5
14645   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
14646     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
14647   echo $ac_n "(cached) $ac_c" 1>&6
14648 else
14649   
14650       
14651       ac_ext=C
14652 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14653 ac_cpp='$CXXCPP $CPPFLAGS'
14654 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14655 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14656 cross_compiling=$ac_cv_prog_cxx_cross
14657
14658       cat > conftest.$ac_ext <<EOF
14659 #line 14660 "configure"
14660 #include "confdefs.h"
14661 #include <math.h>
14662 int main() {
14663  _sincosf(0, 0, 0);
14664 ; return 0; }
14665 EOF
14666 if { (eval echo configure:14667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14667   rm -rf conftest*
14668   glibcpp_cv_func__sincosf_use=yes
14669 else
14670   echo "configure: failed program was:" >&5
14671   cat conftest.$ac_ext >&5
14672   rm -rf conftest*
14673   glibcpp_cv_func__sincosf_use=no
14674 fi
14675 rm -f conftest*
14676       ac_ext=c
14677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14678 ac_cpp='$CPP $CPPFLAGS'
14679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14681 cross_compiling=$ac_cv_prog_cc_cross
14682
14683     
14684 fi
14685
14686   fi
14687   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
14688
14689     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
14690       for ac_func in _sincosf
14691 do
14692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14693 echo "configure:14694: checking for $ac_func" >&5
14694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14695   echo $ac_n "(cached) $ac_c" 1>&6
14696 else
14697   cat > conftest.$ac_ext <<EOF
14698 #line 14699 "configure"
14699 #include "confdefs.h"
14700 /* System header to define __stub macros and hopefully few prototypes,
14701     which can conflict with char $ac_func(); below.  */
14702 #include <assert.h>
14703 /* Override any gcc2 internal prototype to avoid an error.  */
14704 /* We use char because int might match the return type of a gcc2
14705     builtin and then its argument prototype would still apply.  */
14706 char $ac_func();
14707
14708 int main() {
14709
14710 /* The GNU C library defines this for functions which it implements
14711     to always fail with ENOSYS.  Some functions are actually named
14712     something starting with __ and the normal name is an alias.  */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14714 choke me
14715 #else
14716 $ac_func();
14717 #endif
14718
14719 ; return 0; }
14720 EOF
14721 if { (eval echo configure:14722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14722   rm -rf conftest*
14723   eval "ac_cv_func_$ac_func=yes"
14724 else
14725   echo "configure: failed program was:" >&5
14726   cat conftest.$ac_ext >&5
14727   rm -rf conftest*
14728   eval "ac_cv_func_$ac_func=no"
14729 fi
14730 rm -f conftest*
14731 fi
14732
14733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14734   echo "$ac_t""yes" 1>&6
14735     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14736   cat >> confdefs.h <<EOF
14737 #define $ac_tr_func 1
14738 EOF
14739  
14740 else
14741   echo "$ac_t""no" 1>&6
14742 fi
14743 done
14744     
14745     fi
14746   fi
14747
14748   
14749   
14750   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14751 echo "configure:14752: checking for finitef declaration" >&5
14752   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14753     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14754   echo $ac_n "(cached) $ac_c" 1>&6
14755 else
14756   
14757       
14758       ac_ext=C
14759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14760 ac_cpp='$CXXCPP $CPPFLAGS'
14761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14763 cross_compiling=$ac_cv_prog_cxx_cross
14764
14765       cat > conftest.$ac_ext <<EOF
14766 #line 14767 "configure"
14767 #include "confdefs.h"
14768 #include <math.h>
14769                       #ifdef HAVE_IEEEFP_H
14770                       #include <ieeefp.h>
14771                       #endif
14772                      
14773 int main() {
14774  finitef(0);
14775 ; return 0; }
14776 EOF
14777 if { (eval echo configure:14778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14778   rm -rf conftest*
14779   glibcpp_cv_func_finitef_use=yes
14780 else
14781   echo "configure: failed program was:" >&5
14782   cat conftest.$ac_ext >&5
14783   rm -rf conftest*
14784   glibcpp_cv_func_finitef_use=no
14785 fi
14786 rm -f conftest*
14787       ac_ext=c
14788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14789 ac_cpp='$CPP $CPPFLAGS'
14790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14792 cross_compiling=$ac_cv_prog_cc_cross
14793
14794     
14795 fi
14796
14797   fi
14798   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14799
14800   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14801     for ac_func in finitef
14802 do
14803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14804 echo "configure:14805: checking for $ac_func" >&5
14805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14806   echo $ac_n "(cached) $ac_c" 1>&6
14807 else
14808   cat > conftest.$ac_ext <<EOF
14809 #line 14810 "configure"
14810 #include "confdefs.h"
14811 /* System header to define __stub macros and hopefully few prototypes,
14812     which can conflict with char $ac_func(); below.  */
14813 #include <assert.h>
14814 /* Override any gcc2 internal prototype to avoid an error.  */
14815 /* We use char because int might match the return type of a gcc2
14816     builtin and then its argument prototype would still apply.  */
14817 char $ac_func();
14818
14819 int main() {
14820
14821 /* The GNU C library defines this for functions which it implements
14822     to always fail with ENOSYS.  Some functions are actually named
14823     something starting with __ and the normal name is an alias.  */
14824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14825 choke me
14826 #else
14827 $ac_func();
14828 #endif
14829
14830 ; return 0; }
14831 EOF
14832 if { (eval echo configure:14833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14833   rm -rf conftest*
14834   eval "ac_cv_func_$ac_func=yes"
14835 else
14836   echo "configure: failed program was:" >&5
14837   cat conftest.$ac_ext >&5
14838   rm -rf conftest*
14839   eval "ac_cv_func_$ac_func=no"
14840 fi
14841 rm -f conftest*
14842 fi
14843
14844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14845   echo "$ac_t""yes" 1>&6
14846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14847   cat >> confdefs.h <<EOF
14848 #define $ac_tr_func 1
14849 EOF
14850  
14851 else
14852   echo "$ac_t""no" 1>&6
14853 fi
14854 done
14855     
14856   else
14857     
14858   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
14859 echo "configure:14860: checking for _finitef declaration" >&5
14860   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
14861     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
14862   echo $ac_n "(cached) $ac_c" 1>&6
14863 else
14864   
14865       
14866       ac_ext=C
14867 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14868 ac_cpp='$CXXCPP $CPPFLAGS'
14869 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14870 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14871 cross_compiling=$ac_cv_prog_cxx_cross
14872
14873       cat > conftest.$ac_ext <<EOF
14874 #line 14875 "configure"
14875 #include "confdefs.h"
14876 #include <math.h>
14877                       #ifdef HAVE_IEEEFP_H
14878                       #include <ieeefp.h>
14879                       #endif
14880                      
14881 int main() {
14882  _finitef(0);
14883 ; return 0; }
14884 EOF
14885 if { (eval echo configure:14886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14886   rm -rf conftest*
14887   glibcpp_cv_func__finitef_use=yes
14888 else
14889   echo "configure: failed program was:" >&5
14890   cat conftest.$ac_ext >&5
14891   rm -rf conftest*
14892   glibcpp_cv_func__finitef_use=no
14893 fi
14894 rm -f conftest*
14895       ac_ext=c
14896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14897 ac_cpp='$CPP $CPPFLAGS'
14898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14900 cross_compiling=$ac_cv_prog_cc_cross
14901
14902     
14903 fi
14904
14905   fi
14906   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
14907
14908     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
14909       for ac_func in _finitef
14910 do
14911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14912 echo "configure:14913: checking for $ac_func" >&5
14913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14914   echo $ac_n "(cached) $ac_c" 1>&6
14915 else
14916   cat > conftest.$ac_ext <<EOF
14917 #line 14918 "configure"
14918 #include "confdefs.h"
14919 /* System header to define __stub macros and hopefully few prototypes,
14920     which can conflict with char $ac_func(); below.  */
14921 #include <assert.h>
14922 /* Override any gcc2 internal prototype to avoid an error.  */
14923 /* We use char because int might match the return type of a gcc2
14924     builtin and then its argument prototype would still apply.  */
14925 char $ac_func();
14926
14927 int main() {
14928
14929 /* The GNU C library defines this for functions which it implements
14930     to always fail with ENOSYS.  Some functions are actually named
14931     something starting with __ and the normal name is an alias.  */
14932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14933 choke me
14934 #else
14935 $ac_func();
14936 #endif
14937
14938 ; return 0; }
14939 EOF
14940 if { (eval echo configure:14941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14941   rm -rf conftest*
14942   eval "ac_cv_func_$ac_func=yes"
14943 else
14944   echo "configure: failed program was:" >&5
14945   cat conftest.$ac_ext >&5
14946   rm -rf conftest*
14947   eval "ac_cv_func_$ac_func=no"
14948 fi
14949 rm -f conftest*
14950 fi
14951
14952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14953   echo "$ac_t""yes" 1>&6
14954     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14955   cat >> confdefs.h <<EOF
14956 #define $ac_tr_func 1
14957 EOF
14958  
14959 else
14960   echo "$ac_t""no" 1>&6
14961 fi
14962 done
14963     
14964     fi
14965   fi
14966
14967
14968     
14969   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
14970 echo "configure:14971: checking for long double trig functions" >&5
14971   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
14972   echo $ac_n "(cached) $ac_c" 1>&6
14973 else
14974   
14975     
14976     ac_ext=C
14977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14978 ac_cpp='$CXXCPP $CPPFLAGS'
14979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14981 cross_compiling=$ac_cv_prog_cxx_cross
14982
14983     cat > conftest.$ac_ext <<EOF
14984 #line 14985 "configure"
14985 #include "confdefs.h"
14986 #include <math.h>
14987 int main() {
14988  `for x in acosl asinl atanl \
14989                                           cosl sinl tanl \
14990                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
14991 ; return 0; }
14992 EOF
14993 if { (eval echo configure:14994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14994   rm -rf conftest*
14995   glibcpp_cv_func_long_double_trig_use=yes
14996 else
14997   echo "configure: failed program was:" >&5
14998   cat conftest.$ac_ext >&5
14999   rm -rf conftest*
15000   glibcpp_cv_func_long_double_trig_use=no
15001 fi
15002 rm -f conftest*
15003     ac_ext=c
15004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15008 cross_compiling=$ac_cv_prog_cc_cross
15009
15010 fi
15011
15012   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
15013   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
15014     for ac_func in acosl asinl atanl \
15015                                           cosl sinl tanl \
15016                                           coshl sinhl tanhl
15017 do
15018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15019 echo "configure:15020: checking for $ac_func" >&5
15020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15021   echo $ac_n "(cached) $ac_c" 1>&6
15022 else
15023   cat > conftest.$ac_ext <<EOF
15024 #line 15025 "configure"
15025 #include "confdefs.h"
15026 /* System header to define __stub macros and hopefully few prototypes,
15027     which can conflict with char $ac_func(); below.  */
15028 #include <assert.h>
15029 /* Override any gcc2 internal prototype to avoid an error.  */
15030 /* We use char because int might match the return type of a gcc2
15031     builtin and then its argument prototype would still apply.  */
15032 char $ac_func();
15033
15034 int main() {
15035
15036 /* The GNU C library defines this for functions which it implements
15037     to always fail with ENOSYS.  Some functions are actually named
15038     something starting with __ and the normal name is an alias.  */
15039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15040 choke me
15041 #else
15042 $ac_func();
15043 #endif
15044
15045 ; return 0; }
15046 EOF
15047 if { (eval echo configure:15048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15048   rm -rf conftest*
15049   eval "ac_cv_func_$ac_func=yes"
15050 else
15051   echo "configure: failed program was:" >&5
15052   cat conftest.$ac_ext >&5
15053   rm -rf conftest*
15054   eval "ac_cv_func_$ac_func=no"
15055 fi
15056 rm -f conftest*
15057 fi
15058
15059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15060   echo "$ac_t""yes" 1>&6
15061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15062   cat >> confdefs.h <<EOF
15063 #define $ac_tr_func 1
15064 EOF
15065  
15066 else
15067   echo "$ac_t""no" 1>&6
15068 fi
15069 done
15070
15071   fi
15072
15073   
15074   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
15075 echo "configure:15076: checking for long double round functions" >&5
15076   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
15077   echo $ac_n "(cached) $ac_c" 1>&6
15078 else
15079   
15080     
15081     ac_ext=C
15082 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15083 ac_cpp='$CXXCPP $CPPFLAGS'
15084 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15085 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15086 cross_compiling=$ac_cv_prog_cxx_cross
15087
15088     cat > conftest.$ac_ext <<EOF
15089 #line 15090 "configure"
15090 #include "confdefs.h"
15091 #include <math.h>
15092 int main() {
15093  `for x in ceill floorl; do echo "$x (0);"; done` 
15094 ; return 0; }
15095 EOF
15096 if { (eval echo configure:15097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15097   rm -rf conftest*
15098   glibcpp_cv_func_long_double_round_use=yes
15099 else
15100   echo "configure: failed program was:" >&5
15101   cat conftest.$ac_ext >&5
15102   rm -rf conftest*
15103   glibcpp_cv_func_long_double_round_use=no
15104 fi
15105 rm -f conftest*
15106     ac_ext=c
15107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15108 ac_cpp='$CPP $CPPFLAGS'
15109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15111 cross_compiling=$ac_cv_prog_cc_cross
15112
15113 fi
15114
15115   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
15116   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
15117     for ac_func in ceill floorl
15118 do
15119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15120 echo "configure:15121: checking for $ac_func" >&5
15121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15122   echo $ac_n "(cached) $ac_c" 1>&6
15123 else
15124   cat > conftest.$ac_ext <<EOF
15125 #line 15126 "configure"
15126 #include "confdefs.h"
15127 /* System header to define __stub macros and hopefully few prototypes,
15128     which can conflict with char $ac_func(); below.  */
15129 #include <assert.h>
15130 /* Override any gcc2 internal prototype to avoid an error.  */
15131 /* We use char because int might match the return type of a gcc2
15132     builtin and then its argument prototype would still apply.  */
15133 char $ac_func();
15134
15135 int main() {
15136
15137 /* The GNU C library defines this for functions which it implements
15138     to always fail with ENOSYS.  Some functions are actually named
15139     something starting with __ and the normal name is an alias.  */
15140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15141 choke me
15142 #else
15143 $ac_func();
15144 #endif
15145
15146 ; return 0; }
15147 EOF
15148 if { (eval echo configure:15149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15149   rm -rf conftest*
15150   eval "ac_cv_func_$ac_func=yes"
15151 else
15152   echo "configure: failed program was:" >&5
15153   cat conftest.$ac_ext >&5
15154   rm -rf conftest*
15155   eval "ac_cv_func_$ac_func=no"
15156 fi
15157 rm -f conftest*
15158 fi
15159
15160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15161   echo "$ac_t""yes" 1>&6
15162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15163   cat >> confdefs.h <<EOF
15164 #define $ac_tr_func 1
15165 EOF
15166  
15167 else
15168   echo "$ac_t""no" 1>&6
15169 fi
15170 done
15171
15172   fi
15173
15174   
15175   
15176   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
15177 echo "configure:15178: checking for isnanl declaration" >&5
15178   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
15179     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
15180   echo $ac_n "(cached) $ac_c" 1>&6
15181 else
15182   
15183       
15184       ac_ext=C
15185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15186 ac_cpp='$CXXCPP $CPPFLAGS'
15187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15189 cross_compiling=$ac_cv_prog_cxx_cross
15190
15191       cat > conftest.$ac_ext <<EOF
15192 #line 15193 "configure"
15193 #include "confdefs.h"
15194 #include <math.h>
15195                       #ifdef HAVE_IEEEFP_H
15196                       #include <ieeefp.h>
15197                       #endif
15198                      
15199 int main() {
15200  isnanl(0);
15201 ; return 0; }
15202 EOF
15203 if { (eval echo configure:15204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15204   rm -rf conftest*
15205   glibcpp_cv_func_isnanl_use=yes
15206 else
15207   echo "configure: failed program was:" >&5
15208   cat conftest.$ac_ext >&5
15209   rm -rf conftest*
15210   glibcpp_cv_func_isnanl_use=no
15211 fi
15212 rm -f conftest*
15213       ac_ext=c
15214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15215 ac_cpp='$CPP $CPPFLAGS'
15216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15218 cross_compiling=$ac_cv_prog_cc_cross
15219
15220     
15221 fi
15222
15223   fi
15224   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
15225
15226   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
15227     for ac_func in isnanl
15228 do
15229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15230 echo "configure:15231: checking for $ac_func" >&5
15231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15232   echo $ac_n "(cached) $ac_c" 1>&6
15233 else
15234   cat > conftest.$ac_ext <<EOF
15235 #line 15236 "configure"
15236 #include "confdefs.h"
15237 /* System header to define __stub macros and hopefully few prototypes,
15238     which can conflict with char $ac_func(); below.  */
15239 #include <assert.h>
15240 /* Override any gcc2 internal prototype to avoid an error.  */
15241 /* We use char because int might match the return type of a gcc2
15242     builtin and then its argument prototype would still apply.  */
15243 char $ac_func();
15244
15245 int main() {
15246
15247 /* The GNU C library defines this for functions which it implements
15248     to always fail with ENOSYS.  Some functions are actually named
15249     something starting with __ and the normal name is an alias.  */
15250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15251 choke me
15252 #else
15253 $ac_func();
15254 #endif
15255
15256 ; return 0; }
15257 EOF
15258 if { (eval echo configure:15259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15259   rm -rf conftest*
15260   eval "ac_cv_func_$ac_func=yes"
15261 else
15262   echo "configure: failed program was:" >&5
15263   cat conftest.$ac_ext >&5
15264   rm -rf conftest*
15265   eval "ac_cv_func_$ac_func=no"
15266 fi
15267 rm -f conftest*
15268 fi
15269
15270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15271   echo "$ac_t""yes" 1>&6
15272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15273   cat >> confdefs.h <<EOF
15274 #define $ac_tr_func 1
15275 EOF
15276  
15277 else
15278   echo "$ac_t""no" 1>&6
15279 fi
15280 done
15281     
15282   else
15283     
15284   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
15285 echo "configure:15286: checking for _isnanl declaration" >&5
15286   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
15287     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
15288   echo $ac_n "(cached) $ac_c" 1>&6
15289 else
15290   
15291       
15292       ac_ext=C
15293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15294 ac_cpp='$CXXCPP $CPPFLAGS'
15295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15297 cross_compiling=$ac_cv_prog_cxx_cross
15298
15299       cat > conftest.$ac_ext <<EOF
15300 #line 15301 "configure"
15301 #include "confdefs.h"
15302 #include <math.h>
15303                       #ifdef HAVE_IEEEFP_H
15304                       #include <ieeefp.h>
15305                       #endif
15306                      
15307 int main() {
15308  _isnanl(0);
15309 ; return 0; }
15310 EOF
15311 if { (eval echo configure:15312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15312   rm -rf conftest*
15313   glibcpp_cv_func__isnanl_use=yes
15314 else
15315   echo "configure: failed program was:" >&5
15316   cat conftest.$ac_ext >&5
15317   rm -rf conftest*
15318   glibcpp_cv_func__isnanl_use=no
15319 fi
15320 rm -f conftest*
15321       ac_ext=c
15322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15323 ac_cpp='$CPP $CPPFLAGS'
15324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15326 cross_compiling=$ac_cv_prog_cc_cross
15327
15328     
15329 fi
15330
15331   fi
15332   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
15333
15334     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
15335       for ac_func in _isnanl
15336 do
15337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15338 echo "configure:15339: checking for $ac_func" >&5
15339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15340   echo $ac_n "(cached) $ac_c" 1>&6
15341 else
15342   cat > conftest.$ac_ext <<EOF
15343 #line 15344 "configure"
15344 #include "confdefs.h"
15345 /* System header to define __stub macros and hopefully few prototypes,
15346     which can conflict with char $ac_func(); below.  */
15347 #include <assert.h>
15348 /* Override any gcc2 internal prototype to avoid an error.  */
15349 /* We use char because int might match the return type of a gcc2
15350     builtin and then its argument prototype would still apply.  */
15351 char $ac_func();
15352
15353 int main() {
15354
15355 /* The GNU C library defines this for functions which it implements
15356     to always fail with ENOSYS.  Some functions are actually named
15357     something starting with __ and the normal name is an alias.  */
15358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15359 choke me
15360 #else
15361 $ac_func();
15362 #endif
15363
15364 ; return 0; }
15365 EOF
15366 if { (eval echo configure:15367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15367   rm -rf conftest*
15368   eval "ac_cv_func_$ac_func=yes"
15369 else
15370   echo "configure: failed program was:" >&5
15371   cat conftest.$ac_ext >&5
15372   rm -rf conftest*
15373   eval "ac_cv_func_$ac_func=no"
15374 fi
15375 rm -f conftest*
15376 fi
15377
15378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15379   echo "$ac_t""yes" 1>&6
15380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15381   cat >> confdefs.h <<EOF
15382 #define $ac_tr_func 1
15383 EOF
15384  
15385 else
15386   echo "$ac_t""no" 1>&6
15387 fi
15388 done
15389     
15390     fi
15391   fi
15392
15393   
15394   
15395   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
15396 echo "configure:15397: checking for isinfl declaration" >&5
15397   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
15398     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
15399   echo $ac_n "(cached) $ac_c" 1>&6
15400 else
15401   
15402       
15403       ac_ext=C
15404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15405 ac_cpp='$CXXCPP $CPPFLAGS'
15406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15408 cross_compiling=$ac_cv_prog_cxx_cross
15409
15410       cat > conftest.$ac_ext <<EOF
15411 #line 15412 "configure"
15412 #include "confdefs.h"
15413 #include <math.h>
15414                       #ifdef HAVE_IEEEFP_H
15415                       #include <ieeefp.h>
15416                       #endif
15417                      
15418 int main() {
15419  isinfl(0);
15420 ; return 0; }
15421 EOF
15422 if { (eval echo configure:15423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15423   rm -rf conftest*
15424   glibcpp_cv_func_isinfl_use=yes
15425 else
15426   echo "configure: failed program was:" >&5
15427   cat conftest.$ac_ext >&5
15428   rm -rf conftest*
15429   glibcpp_cv_func_isinfl_use=no
15430 fi
15431 rm -f conftest*
15432       ac_ext=c
15433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15437 cross_compiling=$ac_cv_prog_cc_cross
15438
15439     
15440 fi
15441
15442   fi
15443   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
15444
15445   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
15446     for ac_func in isinfl
15447 do
15448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15449 echo "configure:15450: checking for $ac_func" >&5
15450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15451   echo $ac_n "(cached) $ac_c" 1>&6
15452 else
15453   cat > conftest.$ac_ext <<EOF
15454 #line 15455 "configure"
15455 #include "confdefs.h"
15456 /* System header to define __stub macros and hopefully few prototypes,
15457     which can conflict with char $ac_func(); below.  */
15458 #include <assert.h>
15459 /* Override any gcc2 internal prototype to avoid an error.  */
15460 /* We use char because int might match the return type of a gcc2
15461     builtin and then its argument prototype would still apply.  */
15462 char $ac_func();
15463
15464 int main() {
15465
15466 /* The GNU C library defines this for functions which it implements
15467     to always fail with ENOSYS.  Some functions are actually named
15468     something starting with __ and the normal name is an alias.  */
15469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15470 choke me
15471 #else
15472 $ac_func();
15473 #endif
15474
15475 ; return 0; }
15476 EOF
15477 if { (eval echo configure:15478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15478   rm -rf conftest*
15479   eval "ac_cv_func_$ac_func=yes"
15480 else
15481   echo "configure: failed program was:" >&5
15482   cat conftest.$ac_ext >&5
15483   rm -rf conftest*
15484   eval "ac_cv_func_$ac_func=no"
15485 fi
15486 rm -f conftest*
15487 fi
15488
15489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15490   echo "$ac_t""yes" 1>&6
15491     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15492   cat >> confdefs.h <<EOF
15493 #define $ac_tr_func 1
15494 EOF
15495  
15496 else
15497   echo "$ac_t""no" 1>&6
15498 fi
15499 done
15500     
15501   else
15502     
15503   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
15504 echo "configure:15505: checking for _isinfl declaration" >&5
15505   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
15506     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
15507   echo $ac_n "(cached) $ac_c" 1>&6
15508 else
15509   
15510       
15511       ac_ext=C
15512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15513 ac_cpp='$CXXCPP $CPPFLAGS'
15514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15516 cross_compiling=$ac_cv_prog_cxx_cross
15517
15518       cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15521 #include <math.h>
15522                       #ifdef HAVE_IEEEFP_H
15523                       #include <ieeefp.h>
15524                       #endif
15525                      
15526 int main() {
15527  _isinfl(0);
15528 ; return 0; }
15529 EOF
15530 if { (eval echo configure:15531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15531   rm -rf conftest*
15532   glibcpp_cv_func__isinfl_use=yes
15533 else
15534   echo "configure: failed program was:" >&5
15535   cat conftest.$ac_ext >&5
15536   rm -rf conftest*
15537   glibcpp_cv_func__isinfl_use=no
15538 fi
15539 rm -f conftest*
15540       ac_ext=c
15541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15542 ac_cpp='$CPP $CPPFLAGS'
15543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15545 cross_compiling=$ac_cv_prog_cc_cross
15546
15547     
15548 fi
15549
15550   fi
15551   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
15552
15553     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
15554       for ac_func in _isinfl
15555 do
15556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15557 echo "configure:15558: checking for $ac_func" >&5
15558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15559   echo $ac_n "(cached) $ac_c" 1>&6
15560 else
15561   cat > conftest.$ac_ext <<EOF
15562 #line 15563 "configure"
15563 #include "confdefs.h"
15564 /* System header to define __stub macros and hopefully few prototypes,
15565     which can conflict with char $ac_func(); below.  */
15566 #include <assert.h>
15567 /* Override any gcc2 internal prototype to avoid an error.  */
15568 /* We use char because int might match the return type of a gcc2
15569     builtin and then its argument prototype would still apply.  */
15570 char $ac_func();
15571
15572 int main() {
15573
15574 /* The GNU C library defines this for functions which it implements
15575     to always fail with ENOSYS.  Some functions are actually named
15576     something starting with __ and the normal name is an alias.  */
15577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15578 choke me
15579 #else
15580 $ac_func();
15581 #endif
15582
15583 ; return 0; }
15584 EOF
15585 if { (eval echo configure:15586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15586   rm -rf conftest*
15587   eval "ac_cv_func_$ac_func=yes"
15588 else
15589   echo "configure: failed program was:" >&5
15590   cat conftest.$ac_ext >&5
15591   rm -rf conftest*
15592   eval "ac_cv_func_$ac_func=no"
15593 fi
15594 rm -f conftest*
15595 fi
15596
15597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15598   echo "$ac_t""yes" 1>&6
15599     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15600   cat >> confdefs.h <<EOF
15601 #define $ac_tr_func 1
15602 EOF
15603  
15604 else
15605   echo "$ac_t""no" 1>&6
15606 fi
15607 done
15608     
15609     fi
15610   fi
15611
15612   
15613   
15614   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
15615 echo "configure:15616: checking for copysignl declaration" >&5
15616   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
15617     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
15618   echo $ac_n "(cached) $ac_c" 1>&6
15619 else
15620   
15621       
15622       ac_ext=C
15623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15624 ac_cpp='$CXXCPP $CPPFLAGS'
15625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15627 cross_compiling=$ac_cv_prog_cxx_cross
15628
15629       cat > conftest.$ac_ext <<EOF
15630 #line 15631 "configure"
15631 #include "confdefs.h"
15632 #include <math.h>
15633 int main() {
15634  copysignl(0, 0);
15635 ; return 0; }
15636 EOF
15637 if { (eval echo configure:15638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15638   rm -rf conftest*
15639   glibcpp_cv_func_copysignl_use=yes
15640 else
15641   echo "configure: failed program was:" >&5
15642   cat conftest.$ac_ext >&5
15643   rm -rf conftest*
15644   glibcpp_cv_func_copysignl_use=no
15645 fi
15646 rm -f conftest*
15647       ac_ext=c
15648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15649 ac_cpp='$CPP $CPPFLAGS'
15650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15652 cross_compiling=$ac_cv_prog_cc_cross
15653
15654     
15655 fi
15656
15657   fi
15658   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
15659
15660   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
15661     for ac_func in copysignl
15662 do
15663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15664 echo "configure:15665: checking for $ac_func" >&5
15665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15666   echo $ac_n "(cached) $ac_c" 1>&6
15667 else
15668   cat > conftest.$ac_ext <<EOF
15669 #line 15670 "configure"
15670 #include "confdefs.h"
15671 /* System header to define __stub macros and hopefully few prototypes,
15672     which can conflict with char $ac_func(); below.  */
15673 #include <assert.h>
15674 /* Override any gcc2 internal prototype to avoid an error.  */
15675 /* We use char because int might match the return type of a gcc2
15676     builtin and then its argument prototype would still apply.  */
15677 char $ac_func();
15678
15679 int main() {
15680
15681 /* The GNU C library defines this for functions which it implements
15682     to always fail with ENOSYS.  Some functions are actually named
15683     something starting with __ and the normal name is an alias.  */
15684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15685 choke me
15686 #else
15687 $ac_func();
15688 #endif
15689
15690 ; return 0; }
15691 EOF
15692 if { (eval echo configure:15693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15693   rm -rf conftest*
15694   eval "ac_cv_func_$ac_func=yes"
15695 else
15696   echo "configure: failed program was:" >&5
15697   cat conftest.$ac_ext >&5
15698   rm -rf conftest*
15699   eval "ac_cv_func_$ac_func=no"
15700 fi
15701 rm -f conftest*
15702 fi
15703
15704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15705   echo "$ac_t""yes" 1>&6
15706     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15707   cat >> confdefs.h <<EOF
15708 #define $ac_tr_func 1
15709 EOF
15710  
15711 else
15712   echo "$ac_t""no" 1>&6
15713 fi
15714 done
15715     
15716   else
15717     
15718   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15719 echo "configure:15720: checking for _copysignl declaration" >&5
15720   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15721     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15722   echo $ac_n "(cached) $ac_c" 1>&6
15723 else
15724   
15725       
15726       ac_ext=C
15727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15728 ac_cpp='$CXXCPP $CPPFLAGS'
15729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15731 cross_compiling=$ac_cv_prog_cxx_cross
15732
15733       cat > conftest.$ac_ext <<EOF
15734 #line 15735 "configure"
15735 #include "confdefs.h"
15736 #include <math.h>
15737 int main() {
15738  _copysignl(0, 0);
15739 ; return 0; }
15740 EOF
15741 if { (eval echo configure:15742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15742   rm -rf conftest*
15743   glibcpp_cv_func__copysignl_use=yes
15744 else
15745   echo "configure: failed program was:" >&5
15746   cat conftest.$ac_ext >&5
15747   rm -rf conftest*
15748   glibcpp_cv_func__copysignl_use=no
15749 fi
15750 rm -f conftest*
15751       ac_ext=c
15752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15753 ac_cpp='$CPP $CPPFLAGS'
15754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15756 cross_compiling=$ac_cv_prog_cc_cross
15757
15758     
15759 fi
15760
15761   fi
15762   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15763
15764     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15765       for ac_func in _copysignl
15766 do
15767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15768 echo "configure:15769: checking for $ac_func" >&5
15769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15770   echo $ac_n "(cached) $ac_c" 1>&6
15771 else
15772   cat > conftest.$ac_ext <<EOF
15773 #line 15774 "configure"
15774 #include "confdefs.h"
15775 /* System header to define __stub macros and hopefully few prototypes,
15776     which can conflict with char $ac_func(); below.  */
15777 #include <assert.h>
15778 /* Override any gcc2 internal prototype to avoid an error.  */
15779 /* We use char because int might match the return type of a gcc2
15780     builtin and then its argument prototype would still apply.  */
15781 char $ac_func();
15782
15783 int main() {
15784
15785 /* The GNU C library defines this for functions which it implements
15786     to always fail with ENOSYS.  Some functions are actually named
15787     something starting with __ and the normal name is an alias.  */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 choke me
15790 #else
15791 $ac_func();
15792 #endif
15793
15794 ; return 0; }
15795 EOF
15796 if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15797   rm -rf conftest*
15798   eval "ac_cv_func_$ac_func=yes"
15799 else
15800   echo "configure: failed program was:" >&5
15801   cat conftest.$ac_ext >&5
15802   rm -rf conftest*
15803   eval "ac_cv_func_$ac_func=no"
15804 fi
15805 rm -f conftest*
15806 fi
15807
15808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15809   echo "$ac_t""yes" 1>&6
15810     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15811   cat >> confdefs.h <<EOF
15812 #define $ac_tr_func 1
15813 EOF
15814  
15815 else
15816   echo "$ac_t""no" 1>&6
15817 fi
15818 done
15819     
15820     fi
15821   fi
15822
15823   
15824   
15825   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
15826 echo "configure:15827: checking for atan2l declaration" >&5
15827   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
15828     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
15829   echo $ac_n "(cached) $ac_c" 1>&6
15830 else
15831   
15832       
15833       ac_ext=C
15834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15835 ac_cpp='$CXXCPP $CPPFLAGS'
15836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15838 cross_compiling=$ac_cv_prog_cxx_cross
15839
15840       cat > conftest.$ac_ext <<EOF
15841 #line 15842 "configure"
15842 #include "confdefs.h"
15843 #include <math.h>
15844 int main() {
15845  atan2l(0, 0);
15846 ; return 0; }
15847 EOF
15848 if { (eval echo configure:15849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15849   rm -rf conftest*
15850   glibcpp_cv_func_atan2l_use=yes
15851 else
15852   echo "configure: failed program was:" >&5
15853   cat conftest.$ac_ext >&5
15854   rm -rf conftest*
15855   glibcpp_cv_func_atan2l_use=no
15856 fi
15857 rm -f conftest*
15858       ac_ext=c
15859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15860 ac_cpp='$CPP $CPPFLAGS'
15861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15863 cross_compiling=$ac_cv_prog_cc_cross
15864
15865     
15866 fi
15867
15868   fi
15869   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
15870
15871   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
15872     for ac_func in atan2l
15873 do
15874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15875 echo "configure:15876: checking for $ac_func" >&5
15876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15877   echo $ac_n "(cached) $ac_c" 1>&6
15878 else
15879   cat > conftest.$ac_ext <<EOF
15880 #line 15881 "configure"
15881 #include "confdefs.h"
15882 /* System header to define __stub macros and hopefully few prototypes,
15883     which can conflict with char $ac_func(); below.  */
15884 #include <assert.h>
15885 /* Override any gcc2 internal prototype to avoid an error.  */
15886 /* We use char because int might match the return type of a gcc2
15887     builtin and then its argument prototype would still apply.  */
15888 char $ac_func();
15889
15890 int main() {
15891
15892 /* The GNU C library defines this for functions which it implements
15893     to always fail with ENOSYS.  Some functions are actually named
15894     something starting with __ and the normal name is an alias.  */
15895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15896 choke me
15897 #else
15898 $ac_func();
15899 #endif
15900
15901 ; return 0; }
15902 EOF
15903 if { (eval echo configure:15904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15904   rm -rf conftest*
15905   eval "ac_cv_func_$ac_func=yes"
15906 else
15907   echo "configure: failed program was:" >&5
15908   cat conftest.$ac_ext >&5
15909   rm -rf conftest*
15910   eval "ac_cv_func_$ac_func=no"
15911 fi
15912 rm -f conftest*
15913 fi
15914
15915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15916   echo "$ac_t""yes" 1>&6
15917     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15918   cat >> confdefs.h <<EOF
15919 #define $ac_tr_func 1
15920 EOF
15921  
15922 else
15923   echo "$ac_t""no" 1>&6
15924 fi
15925 done
15926     
15927   else
15928     
15929   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
15930 echo "configure:15931: checking for _atan2l declaration" >&5
15931   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
15932     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
15933   echo $ac_n "(cached) $ac_c" 1>&6
15934 else
15935   
15936       
15937       ac_ext=C
15938 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15939 ac_cpp='$CXXCPP $CPPFLAGS'
15940 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15941 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15942 cross_compiling=$ac_cv_prog_cxx_cross
15943
15944       cat > conftest.$ac_ext <<EOF
15945 #line 15946 "configure"
15946 #include "confdefs.h"
15947 #include <math.h>
15948 int main() {
15949  _atan2l(0, 0);
15950 ; return 0; }
15951 EOF
15952 if { (eval echo configure:15953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15953   rm -rf conftest*
15954   glibcpp_cv_func__atan2l_use=yes
15955 else
15956   echo "configure: failed program was:" >&5
15957   cat conftest.$ac_ext >&5
15958   rm -rf conftest*
15959   glibcpp_cv_func__atan2l_use=no
15960 fi
15961 rm -f conftest*
15962       ac_ext=c
15963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15964 ac_cpp='$CPP $CPPFLAGS'
15965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15967 cross_compiling=$ac_cv_prog_cc_cross
15968
15969     
15970 fi
15971
15972   fi
15973   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
15974
15975     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
15976       for ac_func in _atan2l
15977 do
15978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15979 echo "configure:15980: checking for $ac_func" >&5
15980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15981   echo $ac_n "(cached) $ac_c" 1>&6
15982 else
15983   cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15986 /* System header to define __stub macros and hopefully few prototypes,
15987     which can conflict with char $ac_func(); below.  */
15988 #include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error.  */
15990 /* We use char because int might match the return type of a gcc2
15991     builtin and then its argument prototype would still apply.  */
15992 char $ac_func();
15993
15994 int main() {
15995
15996 /* The GNU C library defines this for functions which it implements
15997     to always fail with ENOSYS.  Some functions are actually named
15998     something starting with __ and the normal name is an alias.  */
15999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16000 choke me
16001 #else
16002 $ac_func();
16003 #endif
16004
16005 ; return 0; }
16006 EOF
16007 if { (eval echo configure:16008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16008   rm -rf conftest*
16009   eval "ac_cv_func_$ac_func=yes"
16010 else
16011   echo "configure: failed program was:" >&5
16012   cat conftest.$ac_ext >&5
16013   rm -rf conftest*
16014   eval "ac_cv_func_$ac_func=no"
16015 fi
16016 rm -f conftest*
16017 fi
16018
16019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16020   echo "$ac_t""yes" 1>&6
16021     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16022   cat >> confdefs.h <<EOF
16023 #define $ac_tr_func 1
16024 EOF
16025  
16026 else
16027   echo "$ac_t""no" 1>&6
16028 fi
16029 done
16030     
16031     fi
16032   fi
16033
16034   
16035   
16036   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
16037 echo "configure:16038: checking for expl declaration" >&5
16038   if test x${glibcpp_cv_func_expl_use+set} != xset; then
16039     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
16040   echo $ac_n "(cached) $ac_c" 1>&6
16041 else
16042   
16043       
16044       ac_ext=C
16045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16046 ac_cpp='$CXXCPP $CPPFLAGS'
16047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16049 cross_compiling=$ac_cv_prog_cxx_cross
16050
16051       cat > conftest.$ac_ext <<EOF
16052 #line 16053 "configure"
16053 #include "confdefs.h"
16054 #include <math.h>
16055                       #ifdef HAVE_IEEEFP_H
16056                       #include <ieeefp.h>
16057                       #endif
16058                      
16059 int main() {
16060  expl(0);
16061 ; return 0; }
16062 EOF
16063 if { (eval echo configure:16064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16064   rm -rf conftest*
16065   glibcpp_cv_func_expl_use=yes
16066 else
16067   echo "configure: failed program was:" >&5
16068   cat conftest.$ac_ext >&5
16069   rm -rf conftest*
16070   glibcpp_cv_func_expl_use=no
16071 fi
16072 rm -f conftest*
16073       ac_ext=c
16074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16075 ac_cpp='$CPP $CPPFLAGS'
16076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16078 cross_compiling=$ac_cv_prog_cc_cross
16079
16080     
16081 fi
16082
16083   fi
16084   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
16085
16086   if test x$glibcpp_cv_func_expl_use = x"yes"; then
16087     for ac_func in expl
16088 do
16089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16090 echo "configure:16091: checking for $ac_func" >&5
16091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16092   echo $ac_n "(cached) $ac_c" 1>&6
16093 else
16094   cat > conftest.$ac_ext <<EOF
16095 #line 16096 "configure"
16096 #include "confdefs.h"
16097 /* System header to define __stub macros and hopefully few prototypes,
16098     which can conflict with char $ac_func(); below.  */
16099 #include <assert.h>
16100 /* Override any gcc2 internal prototype to avoid an error.  */
16101 /* We use char because int might match the return type of a gcc2
16102     builtin and then its argument prototype would still apply.  */
16103 char $ac_func();
16104
16105 int main() {
16106
16107 /* The GNU C library defines this for functions which it implements
16108     to always fail with ENOSYS.  Some functions are actually named
16109     something starting with __ and the normal name is an alias.  */
16110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16111 choke me
16112 #else
16113 $ac_func();
16114 #endif
16115
16116 ; return 0; }
16117 EOF
16118 if { (eval echo configure:16119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16119   rm -rf conftest*
16120   eval "ac_cv_func_$ac_func=yes"
16121 else
16122   echo "configure: failed program was:" >&5
16123   cat conftest.$ac_ext >&5
16124   rm -rf conftest*
16125   eval "ac_cv_func_$ac_func=no"
16126 fi
16127 rm -f conftest*
16128 fi
16129
16130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16131   echo "$ac_t""yes" 1>&6
16132     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16133   cat >> confdefs.h <<EOF
16134 #define $ac_tr_func 1
16135 EOF
16136  
16137 else
16138   echo "$ac_t""no" 1>&6
16139 fi
16140 done
16141     
16142   else
16143     
16144   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
16145 echo "configure:16146: checking for _expl declaration" >&5
16146   if test x${glibcpp_cv_func__expl_use+set} != xset; then
16147     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
16148   echo $ac_n "(cached) $ac_c" 1>&6
16149 else
16150   
16151       
16152       ac_ext=C
16153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16154 ac_cpp='$CXXCPP $CPPFLAGS'
16155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16157 cross_compiling=$ac_cv_prog_cxx_cross
16158
16159       cat > conftest.$ac_ext <<EOF
16160 #line 16161 "configure"
16161 #include "confdefs.h"
16162 #include <math.h>
16163                       #ifdef HAVE_IEEEFP_H
16164                       #include <ieeefp.h>
16165                       #endif
16166                      
16167 int main() {
16168  _expl(0);
16169 ; return 0; }
16170 EOF
16171 if { (eval echo configure:16172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16172   rm -rf conftest*
16173   glibcpp_cv_func__expl_use=yes
16174 else
16175   echo "configure: failed program was:" >&5
16176   cat conftest.$ac_ext >&5
16177   rm -rf conftest*
16178   glibcpp_cv_func__expl_use=no
16179 fi
16180 rm -f conftest*
16181       ac_ext=c
16182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16183 ac_cpp='$CPP $CPPFLAGS'
16184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16186 cross_compiling=$ac_cv_prog_cc_cross
16187
16188     
16189 fi
16190
16191   fi
16192   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
16193
16194     if test x$glibcpp_cv_func__expl_use = x"yes"; then
16195       for ac_func in _expl
16196 do
16197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16198 echo "configure:16199: checking for $ac_func" >&5
16199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16200   echo $ac_n "(cached) $ac_c" 1>&6
16201 else
16202   cat > conftest.$ac_ext <<EOF
16203 #line 16204 "configure"
16204 #include "confdefs.h"
16205 /* System header to define __stub macros and hopefully few prototypes,
16206     which can conflict with char $ac_func(); below.  */
16207 #include <assert.h>
16208 /* Override any gcc2 internal prototype to avoid an error.  */
16209 /* We use char because int might match the return type of a gcc2
16210     builtin and then its argument prototype would still apply.  */
16211 char $ac_func();
16212
16213 int main() {
16214
16215 /* The GNU C library defines this for functions which it implements
16216     to always fail with ENOSYS.  Some functions are actually named
16217     something starting with __ and the normal name is an alias.  */
16218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16219 choke me
16220 #else
16221 $ac_func();
16222 #endif
16223
16224 ; return 0; }
16225 EOF
16226 if { (eval echo configure:16227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16227   rm -rf conftest*
16228   eval "ac_cv_func_$ac_func=yes"
16229 else
16230   echo "configure: failed program was:" >&5
16231   cat conftest.$ac_ext >&5
16232   rm -rf conftest*
16233   eval "ac_cv_func_$ac_func=no"
16234 fi
16235 rm -f conftest*
16236 fi
16237
16238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16239   echo "$ac_t""yes" 1>&6
16240     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16241   cat >> confdefs.h <<EOF
16242 #define $ac_tr_func 1
16243 EOF
16244  
16245 else
16246   echo "$ac_t""no" 1>&6
16247 fi
16248 done
16249     
16250     fi
16251   fi
16252
16253   
16254   
16255   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
16256 echo "configure:16257: checking for fabsl declaration" >&5
16257   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
16258     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
16259   echo $ac_n "(cached) $ac_c" 1>&6
16260 else
16261   
16262       
16263       ac_ext=C
16264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16265 ac_cpp='$CXXCPP $CPPFLAGS'
16266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16268 cross_compiling=$ac_cv_prog_cxx_cross
16269
16270       cat > conftest.$ac_ext <<EOF
16271 #line 16272 "configure"
16272 #include "confdefs.h"
16273 #include <math.h>
16274                       #ifdef HAVE_IEEEFP_H
16275                       #include <ieeefp.h>
16276                       #endif
16277                      
16278 int main() {
16279  fabsl(0);
16280 ; return 0; }
16281 EOF
16282 if { (eval echo configure:16283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16283   rm -rf conftest*
16284   glibcpp_cv_func_fabsl_use=yes
16285 else
16286   echo "configure: failed program was:" >&5
16287   cat conftest.$ac_ext >&5
16288   rm -rf conftest*
16289   glibcpp_cv_func_fabsl_use=no
16290 fi
16291 rm -f conftest*
16292       ac_ext=c
16293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16294 ac_cpp='$CPP $CPPFLAGS'
16295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16297 cross_compiling=$ac_cv_prog_cc_cross
16298
16299     
16300 fi
16301
16302   fi
16303   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
16304
16305   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
16306     for ac_func in fabsl
16307 do
16308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16309 echo "configure:16310: checking for $ac_func" >&5
16310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16311   echo $ac_n "(cached) $ac_c" 1>&6
16312 else
16313   cat > conftest.$ac_ext <<EOF
16314 #line 16315 "configure"
16315 #include "confdefs.h"
16316 /* System header to define __stub macros and hopefully few prototypes,
16317     which can conflict with char $ac_func(); below.  */
16318 #include <assert.h>
16319 /* Override any gcc2 internal prototype to avoid an error.  */
16320 /* We use char because int might match the return type of a gcc2
16321     builtin and then its argument prototype would still apply.  */
16322 char $ac_func();
16323
16324 int main() {
16325
16326 /* The GNU C library defines this for functions which it implements
16327     to always fail with ENOSYS.  Some functions are actually named
16328     something starting with __ and the normal name is an alias.  */
16329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16330 choke me
16331 #else
16332 $ac_func();
16333 #endif
16334
16335 ; return 0; }
16336 EOF
16337 if { (eval echo configure:16338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16338   rm -rf conftest*
16339   eval "ac_cv_func_$ac_func=yes"
16340 else
16341   echo "configure: failed program was:" >&5
16342   cat conftest.$ac_ext >&5
16343   rm -rf conftest*
16344   eval "ac_cv_func_$ac_func=no"
16345 fi
16346 rm -f conftest*
16347 fi
16348
16349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16350   echo "$ac_t""yes" 1>&6
16351     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16352   cat >> confdefs.h <<EOF
16353 #define $ac_tr_func 1
16354 EOF
16355  
16356 else
16357   echo "$ac_t""no" 1>&6
16358 fi
16359 done
16360     
16361   else
16362     
16363   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
16364 echo "configure:16365: checking for _fabsl declaration" >&5
16365   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
16366     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
16367   echo $ac_n "(cached) $ac_c" 1>&6
16368 else
16369   
16370       
16371       ac_ext=C
16372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16373 ac_cpp='$CXXCPP $CPPFLAGS'
16374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16376 cross_compiling=$ac_cv_prog_cxx_cross
16377
16378       cat > conftest.$ac_ext <<EOF
16379 #line 16380 "configure"
16380 #include "confdefs.h"
16381 #include <math.h>
16382                       #ifdef HAVE_IEEEFP_H
16383                       #include <ieeefp.h>
16384                       #endif
16385                      
16386 int main() {
16387  _fabsl(0);
16388 ; return 0; }
16389 EOF
16390 if { (eval echo configure:16391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16391   rm -rf conftest*
16392   glibcpp_cv_func__fabsl_use=yes
16393 else
16394   echo "configure: failed program was:" >&5
16395   cat conftest.$ac_ext >&5
16396   rm -rf conftest*
16397   glibcpp_cv_func__fabsl_use=no
16398 fi
16399 rm -f conftest*
16400       ac_ext=c
16401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16402 ac_cpp='$CPP $CPPFLAGS'
16403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16405 cross_compiling=$ac_cv_prog_cc_cross
16406
16407     
16408 fi
16409
16410   fi
16411   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
16412
16413     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
16414       for ac_func in _fabsl
16415 do
16416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16417 echo "configure:16418: checking for $ac_func" >&5
16418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16419   echo $ac_n "(cached) $ac_c" 1>&6
16420 else
16421   cat > conftest.$ac_ext <<EOF
16422 #line 16423 "configure"
16423 #include "confdefs.h"
16424 /* System header to define __stub macros and hopefully few prototypes,
16425     which can conflict with char $ac_func(); below.  */
16426 #include <assert.h>
16427 /* Override any gcc2 internal prototype to avoid an error.  */
16428 /* We use char because int might match the return type of a gcc2
16429     builtin and then its argument prototype would still apply.  */
16430 char $ac_func();
16431
16432 int main() {
16433
16434 /* The GNU C library defines this for functions which it implements
16435     to always fail with ENOSYS.  Some functions are actually named
16436     something starting with __ and the normal name is an alias.  */
16437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16438 choke me
16439 #else
16440 $ac_func();
16441 #endif
16442
16443 ; return 0; }
16444 EOF
16445 if { (eval echo configure:16446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16446   rm -rf conftest*
16447   eval "ac_cv_func_$ac_func=yes"
16448 else
16449   echo "configure: failed program was:" >&5
16450   cat conftest.$ac_ext >&5
16451   rm -rf conftest*
16452   eval "ac_cv_func_$ac_func=no"
16453 fi
16454 rm -f conftest*
16455 fi
16456
16457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16458   echo "$ac_t""yes" 1>&6
16459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16460   cat >> confdefs.h <<EOF
16461 #define $ac_tr_func 1
16462 EOF
16463  
16464 else
16465   echo "$ac_t""no" 1>&6
16466 fi
16467 done
16468     
16469     fi
16470   fi
16471
16472   
16473   
16474   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
16475 echo "configure:16476: checking for fmodl declaration" >&5
16476   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
16477     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
16478   echo $ac_n "(cached) $ac_c" 1>&6
16479 else
16480   
16481       
16482       ac_ext=C
16483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16484 ac_cpp='$CXXCPP $CPPFLAGS'
16485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16487 cross_compiling=$ac_cv_prog_cxx_cross
16488
16489       cat > conftest.$ac_ext <<EOF
16490 #line 16491 "configure"
16491 #include "confdefs.h"
16492 #include <math.h>
16493 int main() {
16494  fmodl(0, 0);
16495 ; return 0; }
16496 EOF
16497 if { (eval echo configure:16498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16498   rm -rf conftest*
16499   glibcpp_cv_func_fmodl_use=yes
16500 else
16501   echo "configure: failed program was:" >&5
16502   cat conftest.$ac_ext >&5
16503   rm -rf conftest*
16504   glibcpp_cv_func_fmodl_use=no
16505 fi
16506 rm -f conftest*
16507       ac_ext=c
16508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16512 cross_compiling=$ac_cv_prog_cc_cross
16513
16514     
16515 fi
16516
16517   fi
16518   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
16519
16520   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
16521     for ac_func in fmodl
16522 do
16523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16524 echo "configure:16525: checking for $ac_func" >&5
16525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16526   echo $ac_n "(cached) $ac_c" 1>&6
16527 else
16528   cat > conftest.$ac_ext <<EOF
16529 #line 16530 "configure"
16530 #include "confdefs.h"
16531 /* System header to define __stub macros and hopefully few prototypes,
16532     which can conflict with char $ac_func(); below.  */
16533 #include <assert.h>
16534 /* Override any gcc2 internal prototype to avoid an error.  */
16535 /* We use char because int might match the return type of a gcc2
16536     builtin and then its argument prototype would still apply.  */
16537 char $ac_func();
16538
16539 int main() {
16540
16541 /* The GNU C library defines this for functions which it implements
16542     to always fail with ENOSYS.  Some functions are actually named
16543     something starting with __ and the normal name is an alias.  */
16544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16545 choke me
16546 #else
16547 $ac_func();
16548 #endif
16549
16550 ; return 0; }
16551 EOF
16552 if { (eval echo configure:16553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16553   rm -rf conftest*
16554   eval "ac_cv_func_$ac_func=yes"
16555 else
16556   echo "configure: failed program was:" >&5
16557   cat conftest.$ac_ext >&5
16558   rm -rf conftest*
16559   eval "ac_cv_func_$ac_func=no"
16560 fi
16561 rm -f conftest*
16562 fi
16563
16564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16565   echo "$ac_t""yes" 1>&6
16566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16567   cat >> confdefs.h <<EOF
16568 #define $ac_tr_func 1
16569 EOF
16570  
16571 else
16572   echo "$ac_t""no" 1>&6
16573 fi
16574 done
16575     
16576   else
16577     
16578   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
16579 echo "configure:16580: checking for _fmodl declaration" >&5
16580   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
16581     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
16582   echo $ac_n "(cached) $ac_c" 1>&6
16583 else
16584   
16585       
16586       ac_ext=C
16587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16588 ac_cpp='$CXXCPP $CPPFLAGS'
16589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16591 cross_compiling=$ac_cv_prog_cxx_cross
16592
16593       cat > conftest.$ac_ext <<EOF
16594 #line 16595 "configure"
16595 #include "confdefs.h"
16596 #include <math.h>
16597 int main() {
16598  _fmodl(0, 0);
16599 ; return 0; }
16600 EOF
16601 if { (eval echo configure:16602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16602   rm -rf conftest*
16603   glibcpp_cv_func__fmodl_use=yes
16604 else
16605   echo "configure: failed program was:" >&5
16606   cat conftest.$ac_ext >&5
16607   rm -rf conftest*
16608   glibcpp_cv_func__fmodl_use=no
16609 fi
16610 rm -f conftest*
16611       ac_ext=c
16612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16613 ac_cpp='$CPP $CPPFLAGS'
16614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16616 cross_compiling=$ac_cv_prog_cc_cross
16617
16618     
16619 fi
16620
16621   fi
16622   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
16623
16624     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
16625       for ac_func in _fmodl
16626 do
16627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16628 echo "configure:16629: checking for $ac_func" >&5
16629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16630   echo $ac_n "(cached) $ac_c" 1>&6
16631 else
16632   cat > conftest.$ac_ext <<EOF
16633 #line 16634 "configure"
16634 #include "confdefs.h"
16635 /* System header to define __stub macros and hopefully few prototypes,
16636     which can conflict with char $ac_func(); below.  */
16637 #include <assert.h>
16638 /* Override any gcc2 internal prototype to avoid an error.  */
16639 /* We use char because int might match the return type of a gcc2
16640     builtin and then its argument prototype would still apply.  */
16641 char $ac_func();
16642
16643 int main() {
16644
16645 /* The GNU C library defines this for functions which it implements
16646     to always fail with ENOSYS.  Some functions are actually named
16647     something starting with __ and the normal name is an alias.  */
16648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16649 choke me
16650 #else
16651 $ac_func();
16652 #endif
16653
16654 ; return 0; }
16655 EOF
16656 if { (eval echo configure:16657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16657   rm -rf conftest*
16658   eval "ac_cv_func_$ac_func=yes"
16659 else
16660   echo "configure: failed program was:" >&5
16661   cat conftest.$ac_ext >&5
16662   rm -rf conftest*
16663   eval "ac_cv_func_$ac_func=no"
16664 fi
16665 rm -f conftest*
16666 fi
16667
16668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16669   echo "$ac_t""yes" 1>&6
16670     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16671   cat >> confdefs.h <<EOF
16672 #define $ac_tr_func 1
16673 EOF
16674  
16675 else
16676   echo "$ac_t""no" 1>&6
16677 fi
16678 done
16679     
16680     fi
16681   fi
16682
16683   
16684   
16685   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
16686 echo "configure:16687: checking for frexpl declaration" >&5
16687   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
16688     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
16689   echo $ac_n "(cached) $ac_c" 1>&6
16690 else
16691   
16692       
16693       ac_ext=C
16694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16695 ac_cpp='$CXXCPP $CPPFLAGS'
16696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16698 cross_compiling=$ac_cv_prog_cxx_cross
16699
16700       cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16703 #include <math.h>
16704 int main() {
16705  frexpl(0, 0);
16706 ; return 0; }
16707 EOF
16708 if { (eval echo configure:16709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16709   rm -rf conftest*
16710   glibcpp_cv_func_frexpl_use=yes
16711 else
16712   echo "configure: failed program was:" >&5
16713   cat conftest.$ac_ext >&5
16714   rm -rf conftest*
16715   glibcpp_cv_func_frexpl_use=no
16716 fi
16717 rm -f conftest*
16718       ac_ext=c
16719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16720 ac_cpp='$CPP $CPPFLAGS'
16721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16723 cross_compiling=$ac_cv_prog_cc_cross
16724
16725     
16726 fi
16727
16728   fi
16729   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16730
16731   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16732     for ac_func in frexpl
16733 do
16734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16735 echo "configure:16736: checking for $ac_func" >&5
16736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16737   echo $ac_n "(cached) $ac_c" 1>&6
16738 else
16739   cat > conftest.$ac_ext <<EOF
16740 #line 16741 "configure"
16741 #include "confdefs.h"
16742 /* System header to define __stub macros and hopefully few prototypes,
16743     which can conflict with char $ac_func(); below.  */
16744 #include <assert.h>
16745 /* Override any gcc2 internal prototype to avoid an error.  */
16746 /* We use char because int might match the return type of a gcc2
16747     builtin and then its argument prototype would still apply.  */
16748 char $ac_func();
16749
16750 int main() {
16751
16752 /* The GNU C library defines this for functions which it implements
16753     to always fail with ENOSYS.  Some functions are actually named
16754     something starting with __ and the normal name is an alias.  */
16755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16756 choke me
16757 #else
16758 $ac_func();
16759 #endif
16760
16761 ; return 0; }
16762 EOF
16763 if { (eval echo configure:16764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16764   rm -rf conftest*
16765   eval "ac_cv_func_$ac_func=yes"
16766 else
16767   echo "configure: failed program was:" >&5
16768   cat conftest.$ac_ext >&5
16769   rm -rf conftest*
16770   eval "ac_cv_func_$ac_func=no"
16771 fi
16772 rm -f conftest*
16773 fi
16774
16775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16776   echo "$ac_t""yes" 1>&6
16777     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16778   cat >> confdefs.h <<EOF
16779 #define $ac_tr_func 1
16780 EOF
16781  
16782 else
16783   echo "$ac_t""no" 1>&6
16784 fi
16785 done
16786     
16787   else
16788     
16789   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16790 echo "configure:16791: checking for _frexpl declaration" >&5
16791   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16792     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16793   echo $ac_n "(cached) $ac_c" 1>&6
16794 else
16795   
16796       
16797       ac_ext=C
16798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16799 ac_cpp='$CXXCPP $CPPFLAGS'
16800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16802 cross_compiling=$ac_cv_prog_cxx_cross
16803
16804       cat > conftest.$ac_ext <<EOF
16805 #line 16806 "configure"
16806 #include "confdefs.h"
16807 #include <math.h>
16808 int main() {
16809  _frexpl(0, 0);
16810 ; return 0; }
16811 EOF
16812 if { (eval echo configure:16813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16813   rm -rf conftest*
16814   glibcpp_cv_func__frexpl_use=yes
16815 else
16816   echo "configure: failed program was:" >&5
16817   cat conftest.$ac_ext >&5
16818   rm -rf conftest*
16819   glibcpp_cv_func__frexpl_use=no
16820 fi
16821 rm -f conftest*
16822       ac_ext=c
16823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16824 ac_cpp='$CPP $CPPFLAGS'
16825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16827 cross_compiling=$ac_cv_prog_cc_cross
16828
16829     
16830 fi
16831
16832   fi
16833   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
16834
16835     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
16836       for ac_func in _frexpl
16837 do
16838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16839 echo "configure:16840: checking for $ac_func" >&5
16840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16841   echo $ac_n "(cached) $ac_c" 1>&6
16842 else
16843   cat > conftest.$ac_ext <<EOF
16844 #line 16845 "configure"
16845 #include "confdefs.h"
16846 /* System header to define __stub macros and hopefully few prototypes,
16847     which can conflict with char $ac_func(); below.  */
16848 #include <assert.h>
16849 /* Override any gcc2 internal prototype to avoid an error.  */
16850 /* We use char because int might match the return type of a gcc2
16851     builtin and then its argument prototype would still apply.  */
16852 char $ac_func();
16853
16854 int main() {
16855
16856 /* The GNU C library defines this for functions which it implements
16857     to always fail with ENOSYS.  Some functions are actually named
16858     something starting with __ and the normal name is an alias.  */
16859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16860 choke me
16861 #else
16862 $ac_func();
16863 #endif
16864
16865 ; return 0; }
16866 EOF
16867 if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16868   rm -rf conftest*
16869   eval "ac_cv_func_$ac_func=yes"
16870 else
16871   echo "configure: failed program was:" >&5
16872   cat conftest.$ac_ext >&5
16873   rm -rf conftest*
16874   eval "ac_cv_func_$ac_func=no"
16875 fi
16876 rm -f conftest*
16877 fi
16878
16879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16880   echo "$ac_t""yes" 1>&6
16881     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16882   cat >> confdefs.h <<EOF
16883 #define $ac_tr_func 1
16884 EOF
16885  
16886 else
16887   echo "$ac_t""no" 1>&6
16888 fi
16889 done
16890     
16891     fi
16892   fi
16893
16894   
16895   
16896   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
16897 echo "configure:16898: checking for hypotl declaration" >&5
16898   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
16899     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
16900   echo $ac_n "(cached) $ac_c" 1>&6
16901 else
16902   
16903       
16904       ac_ext=C
16905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16906 ac_cpp='$CXXCPP $CPPFLAGS'
16907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16909 cross_compiling=$ac_cv_prog_cxx_cross
16910
16911       cat > conftest.$ac_ext <<EOF
16912 #line 16913 "configure"
16913 #include "confdefs.h"
16914 #include <math.h>
16915 int main() {
16916  hypotl(0, 0);
16917 ; return 0; }
16918 EOF
16919 if { (eval echo configure:16920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16920   rm -rf conftest*
16921   glibcpp_cv_func_hypotl_use=yes
16922 else
16923   echo "configure: failed program was:" >&5
16924   cat conftest.$ac_ext >&5
16925   rm -rf conftest*
16926   glibcpp_cv_func_hypotl_use=no
16927 fi
16928 rm -f conftest*
16929       ac_ext=c
16930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16931 ac_cpp='$CPP $CPPFLAGS'
16932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16934 cross_compiling=$ac_cv_prog_cc_cross
16935
16936     
16937 fi
16938
16939   fi
16940   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
16941
16942   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
16943     for ac_func in hypotl
16944 do
16945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16946 echo "configure:16947: checking for $ac_func" >&5
16947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16948   echo $ac_n "(cached) $ac_c" 1>&6
16949 else
16950   cat > conftest.$ac_ext <<EOF
16951 #line 16952 "configure"
16952 #include "confdefs.h"
16953 /* System header to define __stub macros and hopefully few prototypes,
16954     which can conflict with char $ac_func(); below.  */
16955 #include <assert.h>
16956 /* Override any gcc2 internal prototype to avoid an error.  */
16957 /* We use char because int might match the return type of a gcc2
16958     builtin and then its argument prototype would still apply.  */
16959 char $ac_func();
16960
16961 int main() {
16962
16963 /* The GNU C library defines this for functions which it implements
16964     to always fail with ENOSYS.  Some functions are actually named
16965     something starting with __ and the normal name is an alias.  */
16966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16967 choke me
16968 #else
16969 $ac_func();
16970 #endif
16971
16972 ; return 0; }
16973 EOF
16974 if { (eval echo configure:16975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16975   rm -rf conftest*
16976   eval "ac_cv_func_$ac_func=yes"
16977 else
16978   echo "configure: failed program was:" >&5
16979   cat conftest.$ac_ext >&5
16980   rm -rf conftest*
16981   eval "ac_cv_func_$ac_func=no"
16982 fi
16983 rm -f conftest*
16984 fi
16985
16986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16987   echo "$ac_t""yes" 1>&6
16988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16989   cat >> confdefs.h <<EOF
16990 #define $ac_tr_func 1
16991 EOF
16992  
16993 else
16994   echo "$ac_t""no" 1>&6
16995 fi
16996 done
16997     
16998   else
16999     
17000   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
17001 echo "configure:17002: checking for _hypotl declaration" >&5
17002   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
17003     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
17004   echo $ac_n "(cached) $ac_c" 1>&6
17005 else
17006   
17007       
17008       ac_ext=C
17009 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17010 ac_cpp='$CXXCPP $CPPFLAGS'
17011 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17012 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17013 cross_compiling=$ac_cv_prog_cxx_cross
17014
17015       cat > conftest.$ac_ext <<EOF
17016 #line 17017 "configure"
17017 #include "confdefs.h"
17018 #include <math.h>
17019 int main() {
17020  _hypotl(0, 0);
17021 ; return 0; }
17022 EOF
17023 if { (eval echo configure:17024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17024   rm -rf conftest*
17025   glibcpp_cv_func__hypotl_use=yes
17026 else
17027   echo "configure: failed program was:" >&5
17028   cat conftest.$ac_ext >&5
17029   rm -rf conftest*
17030   glibcpp_cv_func__hypotl_use=no
17031 fi
17032 rm -f conftest*
17033       ac_ext=c
17034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17035 ac_cpp='$CPP $CPPFLAGS'
17036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17038 cross_compiling=$ac_cv_prog_cc_cross
17039
17040     
17041 fi
17042
17043   fi
17044   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
17045
17046     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
17047       for ac_func in _hypotl
17048 do
17049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17050 echo "configure:17051: checking for $ac_func" >&5
17051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17052   echo $ac_n "(cached) $ac_c" 1>&6
17053 else
17054   cat > conftest.$ac_ext <<EOF
17055 #line 17056 "configure"
17056 #include "confdefs.h"
17057 /* System header to define __stub macros and hopefully few prototypes,
17058     which can conflict with char $ac_func(); below.  */
17059 #include <assert.h>
17060 /* Override any gcc2 internal prototype to avoid an error.  */
17061 /* We use char because int might match the return type of a gcc2
17062     builtin and then its argument prototype would still apply.  */
17063 char $ac_func();
17064
17065 int main() {
17066
17067 /* The GNU C library defines this for functions which it implements
17068     to always fail with ENOSYS.  Some functions are actually named
17069     something starting with __ and the normal name is an alias.  */
17070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17071 choke me
17072 #else
17073 $ac_func();
17074 #endif
17075
17076 ; return 0; }
17077 EOF
17078 if { (eval echo configure:17079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17079   rm -rf conftest*
17080   eval "ac_cv_func_$ac_func=yes"
17081 else
17082   echo "configure: failed program was:" >&5
17083   cat conftest.$ac_ext >&5
17084   rm -rf conftest*
17085   eval "ac_cv_func_$ac_func=no"
17086 fi
17087 rm -f conftest*
17088 fi
17089
17090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17091   echo "$ac_t""yes" 1>&6
17092     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17093   cat >> confdefs.h <<EOF
17094 #define $ac_tr_func 1
17095 EOF
17096  
17097 else
17098   echo "$ac_t""no" 1>&6
17099 fi
17100 done
17101     
17102     fi
17103   fi
17104
17105   
17106   
17107   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
17108 echo "configure:17109: checking for ldexpl declaration" >&5
17109   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
17110     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
17111   echo $ac_n "(cached) $ac_c" 1>&6
17112 else
17113   
17114       
17115       ac_ext=C
17116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17117 ac_cpp='$CXXCPP $CPPFLAGS'
17118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17120 cross_compiling=$ac_cv_prog_cxx_cross
17121
17122       cat > conftest.$ac_ext <<EOF
17123 #line 17124 "configure"
17124 #include "confdefs.h"
17125 #include <math.h>
17126 int main() {
17127  ldexpl(0, 0);
17128 ; return 0; }
17129 EOF
17130 if { (eval echo configure:17131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17131   rm -rf conftest*
17132   glibcpp_cv_func_ldexpl_use=yes
17133 else
17134   echo "configure: failed program was:" >&5
17135   cat conftest.$ac_ext >&5
17136   rm -rf conftest*
17137   glibcpp_cv_func_ldexpl_use=no
17138 fi
17139 rm -f conftest*
17140       ac_ext=c
17141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17142 ac_cpp='$CPP $CPPFLAGS'
17143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17145 cross_compiling=$ac_cv_prog_cc_cross
17146
17147     
17148 fi
17149
17150   fi
17151   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
17152
17153   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
17154     for ac_func in ldexpl
17155 do
17156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17157 echo "configure:17158: checking for $ac_func" >&5
17158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17159   echo $ac_n "(cached) $ac_c" 1>&6
17160 else
17161   cat > conftest.$ac_ext <<EOF
17162 #line 17163 "configure"
17163 #include "confdefs.h"
17164 /* System header to define __stub macros and hopefully few prototypes,
17165     which can conflict with char $ac_func(); below.  */
17166 #include <assert.h>
17167 /* Override any gcc2 internal prototype to avoid an error.  */
17168 /* We use char because int might match the return type of a gcc2
17169     builtin and then its argument prototype would still apply.  */
17170 char $ac_func();
17171
17172 int main() {
17173
17174 /* The GNU C library defines this for functions which it implements
17175     to always fail with ENOSYS.  Some functions are actually named
17176     something starting with __ and the normal name is an alias.  */
17177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17178 choke me
17179 #else
17180 $ac_func();
17181 #endif
17182
17183 ; return 0; }
17184 EOF
17185 if { (eval echo configure:17186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17186   rm -rf conftest*
17187   eval "ac_cv_func_$ac_func=yes"
17188 else
17189   echo "configure: failed program was:" >&5
17190   cat conftest.$ac_ext >&5
17191   rm -rf conftest*
17192   eval "ac_cv_func_$ac_func=no"
17193 fi
17194 rm -f conftest*
17195 fi
17196
17197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17198   echo "$ac_t""yes" 1>&6
17199     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17200   cat >> confdefs.h <<EOF
17201 #define $ac_tr_func 1
17202 EOF
17203  
17204 else
17205   echo "$ac_t""no" 1>&6
17206 fi
17207 done
17208     
17209   else
17210     
17211   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
17212 echo "configure:17213: checking for _ldexpl declaration" >&5
17213   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
17214     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
17215   echo $ac_n "(cached) $ac_c" 1>&6
17216 else
17217   
17218       
17219       ac_ext=C
17220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17221 ac_cpp='$CXXCPP $CPPFLAGS'
17222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17224 cross_compiling=$ac_cv_prog_cxx_cross
17225
17226       cat > conftest.$ac_ext <<EOF
17227 #line 17228 "configure"
17228 #include "confdefs.h"
17229 #include <math.h>
17230 int main() {
17231  _ldexpl(0, 0);
17232 ; return 0; }
17233 EOF
17234 if { (eval echo configure:17235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17235   rm -rf conftest*
17236   glibcpp_cv_func__ldexpl_use=yes
17237 else
17238   echo "configure: failed program was:" >&5
17239   cat conftest.$ac_ext >&5
17240   rm -rf conftest*
17241   glibcpp_cv_func__ldexpl_use=no
17242 fi
17243 rm -f conftest*
17244       ac_ext=c
17245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17246 ac_cpp='$CPP $CPPFLAGS'
17247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17249 cross_compiling=$ac_cv_prog_cc_cross
17250
17251     
17252 fi
17253
17254   fi
17255   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
17256
17257     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
17258       for ac_func in _ldexpl
17259 do
17260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17261 echo "configure:17262: checking for $ac_func" >&5
17262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17263   echo $ac_n "(cached) $ac_c" 1>&6
17264 else
17265   cat > conftest.$ac_ext <<EOF
17266 #line 17267 "configure"
17267 #include "confdefs.h"
17268 /* System header to define __stub macros and hopefully few prototypes,
17269     which can conflict with char $ac_func(); below.  */
17270 #include <assert.h>
17271 /* Override any gcc2 internal prototype to avoid an error.  */
17272 /* We use char because int might match the return type of a gcc2
17273     builtin and then its argument prototype would still apply.  */
17274 char $ac_func();
17275
17276 int main() {
17277
17278 /* The GNU C library defines this for functions which it implements
17279     to always fail with ENOSYS.  Some functions are actually named
17280     something starting with __ and the normal name is an alias.  */
17281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17282 choke me
17283 #else
17284 $ac_func();
17285 #endif
17286
17287 ; return 0; }
17288 EOF
17289 if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17290   rm -rf conftest*
17291   eval "ac_cv_func_$ac_func=yes"
17292 else
17293   echo "configure: failed program was:" >&5
17294   cat conftest.$ac_ext >&5
17295   rm -rf conftest*
17296   eval "ac_cv_func_$ac_func=no"
17297 fi
17298 rm -f conftest*
17299 fi
17300
17301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17302   echo "$ac_t""yes" 1>&6
17303     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17304   cat >> confdefs.h <<EOF
17305 #define $ac_tr_func 1
17306 EOF
17307  
17308 else
17309   echo "$ac_t""no" 1>&6
17310 fi
17311 done
17312     
17313     fi
17314   fi
17315
17316   
17317   
17318   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
17319 echo "configure:17320: checking for logl declaration" >&5
17320   if test x${glibcpp_cv_func_logl_use+set} != xset; then
17321     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
17322   echo $ac_n "(cached) $ac_c" 1>&6
17323 else
17324   
17325       
17326       ac_ext=C
17327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17328 ac_cpp='$CXXCPP $CPPFLAGS'
17329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17331 cross_compiling=$ac_cv_prog_cxx_cross
17332
17333       cat > conftest.$ac_ext <<EOF
17334 #line 17335 "configure"
17335 #include "confdefs.h"
17336 #include <math.h>
17337                       #ifdef HAVE_IEEEFP_H
17338                       #include <ieeefp.h>
17339                       #endif
17340                      
17341 int main() {
17342  logl(0);
17343 ; return 0; }
17344 EOF
17345 if { (eval echo configure:17346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17346   rm -rf conftest*
17347   glibcpp_cv_func_logl_use=yes
17348 else
17349   echo "configure: failed program was:" >&5
17350   cat conftest.$ac_ext >&5
17351   rm -rf conftest*
17352   glibcpp_cv_func_logl_use=no
17353 fi
17354 rm -f conftest*
17355       ac_ext=c
17356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17357 ac_cpp='$CPP $CPPFLAGS'
17358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17360 cross_compiling=$ac_cv_prog_cc_cross
17361
17362     
17363 fi
17364
17365   fi
17366   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
17367
17368   if test x$glibcpp_cv_func_logl_use = x"yes"; then
17369     for ac_func in logl
17370 do
17371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17372 echo "configure:17373: checking for $ac_func" >&5
17373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17374   echo $ac_n "(cached) $ac_c" 1>&6
17375 else
17376   cat > conftest.$ac_ext <<EOF
17377 #line 17378 "configure"
17378 #include "confdefs.h"
17379 /* System header to define __stub macros and hopefully few prototypes,
17380     which can conflict with char $ac_func(); below.  */
17381 #include <assert.h>
17382 /* Override any gcc2 internal prototype to avoid an error.  */
17383 /* We use char because int might match the return type of a gcc2
17384     builtin and then its argument prototype would still apply.  */
17385 char $ac_func();
17386
17387 int main() {
17388
17389 /* The GNU C library defines this for functions which it implements
17390     to always fail with ENOSYS.  Some functions are actually named
17391     something starting with __ and the normal name is an alias.  */
17392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17393 choke me
17394 #else
17395 $ac_func();
17396 #endif
17397
17398 ; return 0; }
17399 EOF
17400 if { (eval echo configure:17401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17401   rm -rf conftest*
17402   eval "ac_cv_func_$ac_func=yes"
17403 else
17404   echo "configure: failed program was:" >&5
17405   cat conftest.$ac_ext >&5
17406   rm -rf conftest*
17407   eval "ac_cv_func_$ac_func=no"
17408 fi
17409 rm -f conftest*
17410 fi
17411
17412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17413   echo "$ac_t""yes" 1>&6
17414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17415   cat >> confdefs.h <<EOF
17416 #define $ac_tr_func 1
17417 EOF
17418  
17419 else
17420   echo "$ac_t""no" 1>&6
17421 fi
17422 done
17423     
17424   else
17425     
17426   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
17427 echo "configure:17428: checking for _logl declaration" >&5
17428   if test x${glibcpp_cv_func__logl_use+set} != xset; then
17429     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
17430   echo $ac_n "(cached) $ac_c" 1>&6
17431 else
17432   
17433       
17434       ac_ext=C
17435 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17436 ac_cpp='$CXXCPP $CPPFLAGS'
17437 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17438 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17439 cross_compiling=$ac_cv_prog_cxx_cross
17440
17441       cat > conftest.$ac_ext <<EOF
17442 #line 17443 "configure"
17443 #include "confdefs.h"
17444 #include <math.h>
17445                       #ifdef HAVE_IEEEFP_H
17446                       #include <ieeefp.h>
17447                       #endif
17448                      
17449 int main() {
17450  _logl(0);
17451 ; return 0; }
17452 EOF
17453 if { (eval echo configure:17454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17454   rm -rf conftest*
17455   glibcpp_cv_func__logl_use=yes
17456 else
17457   echo "configure: failed program was:" >&5
17458   cat conftest.$ac_ext >&5
17459   rm -rf conftest*
17460   glibcpp_cv_func__logl_use=no
17461 fi
17462 rm -f conftest*
17463       ac_ext=c
17464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17465 ac_cpp='$CPP $CPPFLAGS'
17466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17468 cross_compiling=$ac_cv_prog_cc_cross
17469
17470     
17471 fi
17472
17473   fi
17474   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
17475
17476     if test x$glibcpp_cv_func__logl_use = x"yes"; then
17477       for ac_func in _logl
17478 do
17479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17480 echo "configure:17481: checking for $ac_func" >&5
17481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17482   echo $ac_n "(cached) $ac_c" 1>&6
17483 else
17484   cat > conftest.$ac_ext <<EOF
17485 #line 17486 "configure"
17486 #include "confdefs.h"
17487 /* System header to define __stub macros and hopefully few prototypes,
17488     which can conflict with char $ac_func(); below.  */
17489 #include <assert.h>
17490 /* Override any gcc2 internal prototype to avoid an error.  */
17491 /* We use char because int might match the return type of a gcc2
17492     builtin and then its argument prototype would still apply.  */
17493 char $ac_func();
17494
17495 int main() {
17496
17497 /* The GNU C library defines this for functions which it implements
17498     to always fail with ENOSYS.  Some functions are actually named
17499     something starting with __ and the normal name is an alias.  */
17500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17501 choke me
17502 #else
17503 $ac_func();
17504 #endif
17505
17506 ; return 0; }
17507 EOF
17508 if { (eval echo configure:17509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17509   rm -rf conftest*
17510   eval "ac_cv_func_$ac_func=yes"
17511 else
17512   echo "configure: failed program was:" >&5
17513   cat conftest.$ac_ext >&5
17514   rm -rf conftest*
17515   eval "ac_cv_func_$ac_func=no"
17516 fi
17517 rm -f conftest*
17518 fi
17519
17520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17521   echo "$ac_t""yes" 1>&6
17522     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17523   cat >> confdefs.h <<EOF
17524 #define $ac_tr_func 1
17525 EOF
17526  
17527 else
17528   echo "$ac_t""no" 1>&6
17529 fi
17530 done
17531     
17532     fi
17533   fi
17534
17535   
17536   
17537   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
17538 echo "configure:17539: checking for log10l declaration" >&5
17539   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
17540     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
17541   echo $ac_n "(cached) $ac_c" 1>&6
17542 else
17543   
17544       
17545       ac_ext=C
17546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17547 ac_cpp='$CXXCPP $CPPFLAGS'
17548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17550 cross_compiling=$ac_cv_prog_cxx_cross
17551
17552       cat > conftest.$ac_ext <<EOF
17553 #line 17554 "configure"
17554 #include "confdefs.h"
17555 #include <math.h>
17556                       #ifdef HAVE_IEEEFP_H
17557                       #include <ieeefp.h>
17558                       #endif
17559                      
17560 int main() {
17561  log10l(0);
17562 ; return 0; }
17563 EOF
17564 if { (eval echo configure:17565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17565   rm -rf conftest*
17566   glibcpp_cv_func_log10l_use=yes
17567 else
17568   echo "configure: failed program was:" >&5
17569   cat conftest.$ac_ext >&5
17570   rm -rf conftest*
17571   glibcpp_cv_func_log10l_use=no
17572 fi
17573 rm -f conftest*
17574       ac_ext=c
17575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17576 ac_cpp='$CPP $CPPFLAGS'
17577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17579 cross_compiling=$ac_cv_prog_cc_cross
17580
17581     
17582 fi
17583
17584   fi
17585   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
17586
17587   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
17588     for ac_func in log10l
17589 do
17590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17591 echo "configure:17592: checking for $ac_func" >&5
17592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17593   echo $ac_n "(cached) $ac_c" 1>&6
17594 else
17595   cat > conftest.$ac_ext <<EOF
17596 #line 17597 "configure"
17597 #include "confdefs.h"
17598 /* System header to define __stub macros and hopefully few prototypes,
17599     which can conflict with char $ac_func(); below.  */
17600 #include <assert.h>
17601 /* Override any gcc2 internal prototype to avoid an error.  */
17602 /* We use char because int might match the return type of a gcc2
17603     builtin and then its argument prototype would still apply.  */
17604 char $ac_func();
17605
17606 int main() {
17607
17608 /* The GNU C library defines this for functions which it implements
17609     to always fail with ENOSYS.  Some functions are actually named
17610     something starting with __ and the normal name is an alias.  */
17611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17612 choke me
17613 #else
17614 $ac_func();
17615 #endif
17616
17617 ; return 0; }
17618 EOF
17619 if { (eval echo configure:17620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17620   rm -rf conftest*
17621   eval "ac_cv_func_$ac_func=yes"
17622 else
17623   echo "configure: failed program was:" >&5
17624   cat conftest.$ac_ext >&5
17625   rm -rf conftest*
17626   eval "ac_cv_func_$ac_func=no"
17627 fi
17628 rm -f conftest*
17629 fi
17630
17631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17632   echo "$ac_t""yes" 1>&6
17633     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17634   cat >> confdefs.h <<EOF
17635 #define $ac_tr_func 1
17636 EOF
17637  
17638 else
17639   echo "$ac_t""no" 1>&6
17640 fi
17641 done
17642     
17643   else
17644     
17645   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
17646 echo "configure:17647: checking for _log10l declaration" >&5
17647   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
17648     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
17649   echo $ac_n "(cached) $ac_c" 1>&6
17650 else
17651   
17652       
17653       ac_ext=C
17654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17655 ac_cpp='$CXXCPP $CPPFLAGS'
17656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17658 cross_compiling=$ac_cv_prog_cxx_cross
17659
17660       cat > conftest.$ac_ext <<EOF
17661 #line 17662 "configure"
17662 #include "confdefs.h"
17663 #include <math.h>
17664                       #ifdef HAVE_IEEEFP_H
17665                       #include <ieeefp.h>
17666                       #endif
17667                      
17668 int main() {
17669  _log10l(0);
17670 ; return 0; }
17671 EOF
17672 if { (eval echo configure:17673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17673   rm -rf conftest*
17674   glibcpp_cv_func__log10l_use=yes
17675 else
17676   echo "configure: failed program was:" >&5
17677   cat conftest.$ac_ext >&5
17678   rm -rf conftest*
17679   glibcpp_cv_func__log10l_use=no
17680 fi
17681 rm -f conftest*
17682       ac_ext=c
17683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17684 ac_cpp='$CPP $CPPFLAGS'
17685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17687 cross_compiling=$ac_cv_prog_cc_cross
17688
17689     
17690 fi
17691
17692   fi
17693   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
17694
17695     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
17696       for ac_func in _log10l
17697 do
17698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17699 echo "configure:17700: checking for $ac_func" >&5
17700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17701   echo $ac_n "(cached) $ac_c" 1>&6
17702 else
17703   cat > conftest.$ac_ext <<EOF
17704 #line 17705 "configure"
17705 #include "confdefs.h"
17706 /* System header to define __stub macros and hopefully few prototypes,
17707     which can conflict with char $ac_func(); below.  */
17708 #include <assert.h>
17709 /* Override any gcc2 internal prototype to avoid an error.  */
17710 /* We use char because int might match the return type of a gcc2
17711     builtin and then its argument prototype would still apply.  */
17712 char $ac_func();
17713
17714 int main() {
17715
17716 /* The GNU C library defines this for functions which it implements
17717     to always fail with ENOSYS.  Some functions are actually named
17718     something starting with __ and the normal name is an alias.  */
17719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17720 choke me
17721 #else
17722 $ac_func();
17723 #endif
17724
17725 ; return 0; }
17726 EOF
17727 if { (eval echo configure:17728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17728   rm -rf conftest*
17729   eval "ac_cv_func_$ac_func=yes"
17730 else
17731   echo "configure: failed program was:" >&5
17732   cat conftest.$ac_ext >&5
17733   rm -rf conftest*
17734   eval "ac_cv_func_$ac_func=no"
17735 fi
17736 rm -f conftest*
17737 fi
17738
17739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17740   echo "$ac_t""yes" 1>&6
17741     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17742   cat >> confdefs.h <<EOF
17743 #define $ac_tr_func 1
17744 EOF
17745  
17746 else
17747   echo "$ac_t""no" 1>&6
17748 fi
17749 done
17750     
17751     fi
17752   fi
17753
17754   
17755   
17756   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17757 echo "configure:17758: checking for modfl declaration" >&5
17758   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17759     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17760   echo $ac_n "(cached) $ac_c" 1>&6
17761 else
17762   
17763       
17764       ac_ext=C
17765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17766 ac_cpp='$CXXCPP $CPPFLAGS'
17767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17769 cross_compiling=$ac_cv_prog_cxx_cross
17770
17771       cat > conftest.$ac_ext <<EOF
17772 #line 17773 "configure"
17773 #include "confdefs.h"
17774 #include <math.h>
17775 int main() {
17776  modfl(0, 0);
17777 ; return 0; }
17778 EOF
17779 if { (eval echo configure:17780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17780   rm -rf conftest*
17781   glibcpp_cv_func_modfl_use=yes
17782 else
17783   echo "configure: failed program was:" >&5
17784   cat conftest.$ac_ext >&5
17785   rm -rf conftest*
17786   glibcpp_cv_func_modfl_use=no
17787 fi
17788 rm -f conftest*
17789       ac_ext=c
17790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17791 ac_cpp='$CPP $CPPFLAGS'
17792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17794 cross_compiling=$ac_cv_prog_cc_cross
17795
17796     
17797 fi
17798
17799   fi
17800   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17801
17802   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
17803     for ac_func in modfl
17804 do
17805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17806 echo "configure:17807: checking for $ac_func" >&5
17807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17808   echo $ac_n "(cached) $ac_c" 1>&6
17809 else
17810   cat > conftest.$ac_ext <<EOF
17811 #line 17812 "configure"
17812 #include "confdefs.h"
17813 /* System header to define __stub macros and hopefully few prototypes,
17814     which can conflict with char $ac_func(); below.  */
17815 #include <assert.h>
17816 /* Override any gcc2 internal prototype to avoid an error.  */
17817 /* We use char because int might match the return type of a gcc2
17818     builtin and then its argument prototype would still apply.  */
17819 char $ac_func();
17820
17821 int main() {
17822
17823 /* The GNU C library defines this for functions which it implements
17824     to always fail with ENOSYS.  Some functions are actually named
17825     something starting with __ and the normal name is an alias.  */
17826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17827 choke me
17828 #else
17829 $ac_func();
17830 #endif
17831
17832 ; return 0; }
17833 EOF
17834 if { (eval echo configure:17835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17835   rm -rf conftest*
17836   eval "ac_cv_func_$ac_func=yes"
17837 else
17838   echo "configure: failed program was:" >&5
17839   cat conftest.$ac_ext >&5
17840   rm -rf conftest*
17841   eval "ac_cv_func_$ac_func=no"
17842 fi
17843 rm -f conftest*
17844 fi
17845
17846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17847   echo "$ac_t""yes" 1>&6
17848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17849   cat >> confdefs.h <<EOF
17850 #define $ac_tr_func 1
17851 EOF
17852  
17853 else
17854   echo "$ac_t""no" 1>&6
17855 fi
17856 done
17857     
17858   else
17859     
17860   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
17861 echo "configure:17862: checking for _modfl declaration" >&5
17862   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
17863     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
17864   echo $ac_n "(cached) $ac_c" 1>&6
17865 else
17866   
17867       
17868       ac_ext=C
17869 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17870 ac_cpp='$CXXCPP $CPPFLAGS'
17871 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17872 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17873 cross_compiling=$ac_cv_prog_cxx_cross
17874
17875       cat > conftest.$ac_ext <<EOF
17876 #line 17877 "configure"
17877 #include "confdefs.h"
17878 #include <math.h>
17879 int main() {
17880  _modfl(0, 0);
17881 ; return 0; }
17882 EOF
17883 if { (eval echo configure:17884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17884   rm -rf conftest*
17885   glibcpp_cv_func__modfl_use=yes
17886 else
17887   echo "configure: failed program was:" >&5
17888   cat conftest.$ac_ext >&5
17889   rm -rf conftest*
17890   glibcpp_cv_func__modfl_use=no
17891 fi
17892 rm -f conftest*
17893       ac_ext=c
17894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17895 ac_cpp='$CPP $CPPFLAGS'
17896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17898 cross_compiling=$ac_cv_prog_cc_cross
17899
17900     
17901 fi
17902
17903   fi
17904   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
17905
17906     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
17907       for ac_func in _modfl
17908 do
17909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17910 echo "configure:17911: checking for $ac_func" >&5
17911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17912   echo $ac_n "(cached) $ac_c" 1>&6
17913 else
17914   cat > conftest.$ac_ext <<EOF
17915 #line 17916 "configure"
17916 #include "confdefs.h"
17917 /* System header to define __stub macros and hopefully few prototypes,
17918     which can conflict with char $ac_func(); below.  */
17919 #include <assert.h>
17920 /* Override any gcc2 internal prototype to avoid an error.  */
17921 /* We use char because int might match the return type of a gcc2
17922     builtin and then its argument prototype would still apply.  */
17923 char $ac_func();
17924
17925 int main() {
17926
17927 /* The GNU C library defines this for functions which it implements
17928     to always fail with ENOSYS.  Some functions are actually named
17929     something starting with __ and the normal name is an alias.  */
17930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17931 choke me
17932 #else
17933 $ac_func();
17934 #endif
17935
17936 ; return 0; }
17937 EOF
17938 if { (eval echo configure:17939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17939   rm -rf conftest*
17940   eval "ac_cv_func_$ac_func=yes"
17941 else
17942   echo "configure: failed program was:" >&5
17943   cat conftest.$ac_ext >&5
17944   rm -rf conftest*
17945   eval "ac_cv_func_$ac_func=no"
17946 fi
17947 rm -f conftest*
17948 fi
17949
17950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17951   echo "$ac_t""yes" 1>&6
17952     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17953   cat >> confdefs.h <<EOF
17954 #define $ac_tr_func 1
17955 EOF
17956  
17957 else
17958   echo "$ac_t""no" 1>&6
17959 fi
17960 done
17961     
17962     fi
17963   fi
17964
17965   
17966   
17967   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
17968 echo "configure:17969: checking for powl declaration" >&5
17969   if test x${glibcpp_cv_func_powl_use+set} != xset; then
17970     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
17971   echo $ac_n "(cached) $ac_c" 1>&6
17972 else
17973   
17974       
17975       ac_ext=C
17976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17977 ac_cpp='$CXXCPP $CPPFLAGS'
17978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17980 cross_compiling=$ac_cv_prog_cxx_cross
17981
17982       cat > conftest.$ac_ext <<EOF
17983 #line 17984 "configure"
17984 #include "confdefs.h"
17985 #include <math.h>
17986 int main() {
17987  powl(0, 0);
17988 ; return 0; }
17989 EOF
17990 if { (eval echo configure:17991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17991   rm -rf conftest*
17992   glibcpp_cv_func_powl_use=yes
17993 else
17994   echo "configure: failed program was:" >&5
17995   cat conftest.$ac_ext >&5
17996   rm -rf conftest*
17997   glibcpp_cv_func_powl_use=no
17998 fi
17999 rm -f conftest*
18000       ac_ext=c
18001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18002 ac_cpp='$CPP $CPPFLAGS'
18003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18005 cross_compiling=$ac_cv_prog_cc_cross
18006
18007     
18008 fi
18009
18010   fi
18011   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
18012
18013   if test x$glibcpp_cv_func_powl_use = x"yes"; then
18014     for ac_func in powl
18015 do
18016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18017 echo "configure:18018: checking for $ac_func" >&5
18018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18019   echo $ac_n "(cached) $ac_c" 1>&6
18020 else
18021   cat > conftest.$ac_ext <<EOF
18022 #line 18023 "configure"
18023 #include "confdefs.h"
18024 /* System header to define __stub macros and hopefully few prototypes,
18025     which can conflict with char $ac_func(); below.  */
18026 #include <assert.h>
18027 /* Override any gcc2 internal prototype to avoid an error.  */
18028 /* We use char because int might match the return type of a gcc2
18029     builtin and then its argument prototype would still apply.  */
18030 char $ac_func();
18031
18032 int main() {
18033
18034 /* The GNU C library defines this for functions which it implements
18035     to always fail with ENOSYS.  Some functions are actually named
18036     something starting with __ and the normal name is an alias.  */
18037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18038 choke me
18039 #else
18040 $ac_func();
18041 #endif
18042
18043 ; return 0; }
18044 EOF
18045 if { (eval echo configure:18046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18046   rm -rf conftest*
18047   eval "ac_cv_func_$ac_func=yes"
18048 else
18049   echo "configure: failed program was:" >&5
18050   cat conftest.$ac_ext >&5
18051   rm -rf conftest*
18052   eval "ac_cv_func_$ac_func=no"
18053 fi
18054 rm -f conftest*
18055 fi
18056
18057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18058   echo "$ac_t""yes" 1>&6
18059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18060   cat >> confdefs.h <<EOF
18061 #define $ac_tr_func 1
18062 EOF
18063  
18064 else
18065   echo "$ac_t""no" 1>&6
18066 fi
18067 done
18068     
18069   else
18070     
18071   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
18072 echo "configure:18073: checking for _powl declaration" >&5
18073   if test x${glibcpp_cv_func__powl_use+set} != xset; then
18074     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
18075   echo $ac_n "(cached) $ac_c" 1>&6
18076 else
18077   
18078       
18079       ac_ext=C
18080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18081 ac_cpp='$CXXCPP $CPPFLAGS'
18082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18084 cross_compiling=$ac_cv_prog_cxx_cross
18085
18086       cat > conftest.$ac_ext <<EOF
18087 #line 18088 "configure"
18088 #include "confdefs.h"
18089 #include <math.h>
18090 int main() {
18091  _powl(0, 0);
18092 ; return 0; }
18093 EOF
18094 if { (eval echo configure:18095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18095   rm -rf conftest*
18096   glibcpp_cv_func__powl_use=yes
18097 else
18098   echo "configure: failed program was:" >&5
18099   cat conftest.$ac_ext >&5
18100   rm -rf conftest*
18101   glibcpp_cv_func__powl_use=no
18102 fi
18103 rm -f conftest*
18104       ac_ext=c
18105 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18106 ac_cpp='$CPP $CPPFLAGS'
18107 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18108 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18109 cross_compiling=$ac_cv_prog_cc_cross
18110
18111     
18112 fi
18113
18114   fi
18115   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
18116
18117     if test x$glibcpp_cv_func__powl_use = x"yes"; then
18118       for ac_func in _powl
18119 do
18120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18121 echo "configure:18122: checking for $ac_func" >&5
18122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18123   echo $ac_n "(cached) $ac_c" 1>&6
18124 else
18125   cat > conftest.$ac_ext <<EOF
18126 #line 18127 "configure"
18127 #include "confdefs.h"
18128 /* System header to define __stub macros and hopefully few prototypes,
18129     which can conflict with char $ac_func(); below.  */
18130 #include <assert.h>
18131 /* Override any gcc2 internal prototype to avoid an error.  */
18132 /* We use char because int might match the return type of a gcc2
18133     builtin and then its argument prototype would still apply.  */
18134 char $ac_func();
18135
18136 int main() {
18137
18138 /* The GNU C library defines this for functions which it implements
18139     to always fail with ENOSYS.  Some functions are actually named
18140     something starting with __ and the normal name is an alias.  */
18141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18142 choke me
18143 #else
18144 $ac_func();
18145 #endif
18146
18147 ; return 0; }
18148 EOF
18149 if { (eval echo configure:18150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18150   rm -rf conftest*
18151   eval "ac_cv_func_$ac_func=yes"
18152 else
18153   echo "configure: failed program was:" >&5
18154   cat conftest.$ac_ext >&5
18155   rm -rf conftest*
18156   eval "ac_cv_func_$ac_func=no"
18157 fi
18158 rm -f conftest*
18159 fi
18160
18161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18162   echo "$ac_t""yes" 1>&6
18163     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18164   cat >> confdefs.h <<EOF
18165 #define $ac_tr_func 1
18166 EOF
18167  
18168 else
18169   echo "$ac_t""no" 1>&6
18170 fi
18171 done
18172     
18173     fi
18174   fi
18175
18176   
18177   
18178   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
18179 echo "configure:18180: checking for sqrtl declaration" >&5
18180   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
18181     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
18182   echo $ac_n "(cached) $ac_c" 1>&6
18183 else
18184   
18185       
18186       ac_ext=C
18187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18188 ac_cpp='$CXXCPP $CPPFLAGS'
18189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18191 cross_compiling=$ac_cv_prog_cxx_cross
18192
18193       cat > conftest.$ac_ext <<EOF
18194 #line 18195 "configure"
18195 #include "confdefs.h"
18196 #include <math.h>
18197                       #ifdef HAVE_IEEEFP_H
18198                       #include <ieeefp.h>
18199                       #endif
18200                      
18201 int main() {
18202  sqrtl(0);
18203 ; return 0; }
18204 EOF
18205 if { (eval echo configure:18206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18206   rm -rf conftest*
18207   glibcpp_cv_func_sqrtl_use=yes
18208 else
18209   echo "configure: failed program was:" >&5
18210   cat conftest.$ac_ext >&5
18211   rm -rf conftest*
18212   glibcpp_cv_func_sqrtl_use=no
18213 fi
18214 rm -f conftest*
18215       ac_ext=c
18216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18217 ac_cpp='$CPP $CPPFLAGS'
18218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18220 cross_compiling=$ac_cv_prog_cc_cross
18221
18222     
18223 fi
18224
18225   fi
18226   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
18227
18228   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
18229     for ac_func in sqrtl
18230 do
18231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18232 echo "configure:18233: checking for $ac_func" >&5
18233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18234   echo $ac_n "(cached) $ac_c" 1>&6
18235 else
18236   cat > conftest.$ac_ext <<EOF
18237 #line 18238 "configure"
18238 #include "confdefs.h"
18239 /* System header to define __stub macros and hopefully few prototypes,
18240     which can conflict with char $ac_func(); below.  */
18241 #include <assert.h>
18242 /* Override any gcc2 internal prototype to avoid an error.  */
18243 /* We use char because int might match the return type of a gcc2
18244     builtin and then its argument prototype would still apply.  */
18245 char $ac_func();
18246
18247 int main() {
18248
18249 /* The GNU C library defines this for functions which it implements
18250     to always fail with ENOSYS.  Some functions are actually named
18251     something starting with __ and the normal name is an alias.  */
18252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18253 choke me
18254 #else
18255 $ac_func();
18256 #endif
18257
18258 ; return 0; }
18259 EOF
18260 if { (eval echo configure:18261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18261   rm -rf conftest*
18262   eval "ac_cv_func_$ac_func=yes"
18263 else
18264   echo "configure: failed program was:" >&5
18265   cat conftest.$ac_ext >&5
18266   rm -rf conftest*
18267   eval "ac_cv_func_$ac_func=no"
18268 fi
18269 rm -f conftest*
18270 fi
18271
18272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18273   echo "$ac_t""yes" 1>&6
18274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18275   cat >> confdefs.h <<EOF
18276 #define $ac_tr_func 1
18277 EOF
18278  
18279 else
18280   echo "$ac_t""no" 1>&6
18281 fi
18282 done
18283     
18284   else
18285     
18286   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
18287 echo "configure:18288: checking for _sqrtl declaration" >&5
18288   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
18289     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
18290   echo $ac_n "(cached) $ac_c" 1>&6
18291 else
18292   
18293       
18294       ac_ext=C
18295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18296 ac_cpp='$CXXCPP $CPPFLAGS'
18297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18299 cross_compiling=$ac_cv_prog_cxx_cross
18300
18301       cat > conftest.$ac_ext <<EOF
18302 #line 18303 "configure"
18303 #include "confdefs.h"
18304 #include <math.h>
18305                       #ifdef HAVE_IEEEFP_H
18306                       #include <ieeefp.h>
18307                       #endif
18308                      
18309 int main() {
18310  _sqrtl(0);
18311 ; return 0; }
18312 EOF
18313 if { (eval echo configure:18314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18314   rm -rf conftest*
18315   glibcpp_cv_func__sqrtl_use=yes
18316 else
18317   echo "configure: failed program was:" >&5
18318   cat conftest.$ac_ext >&5
18319   rm -rf conftest*
18320   glibcpp_cv_func__sqrtl_use=no
18321 fi
18322 rm -f conftest*
18323       ac_ext=c
18324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18325 ac_cpp='$CPP $CPPFLAGS'
18326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18328 cross_compiling=$ac_cv_prog_cc_cross
18329
18330     
18331 fi
18332
18333   fi
18334   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
18335
18336     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
18337       for ac_func in _sqrtl
18338 do
18339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18340 echo "configure:18341: checking for $ac_func" >&5
18341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18342   echo $ac_n "(cached) $ac_c" 1>&6
18343 else
18344   cat > conftest.$ac_ext <<EOF
18345 #line 18346 "configure"
18346 #include "confdefs.h"
18347 /* System header to define __stub macros and hopefully few prototypes,
18348     which can conflict with char $ac_func(); below.  */
18349 #include <assert.h>
18350 /* Override any gcc2 internal prototype to avoid an error.  */
18351 /* We use char because int might match the return type of a gcc2
18352     builtin and then its argument prototype would still apply.  */
18353 char $ac_func();
18354
18355 int main() {
18356
18357 /* The GNU C library defines this for functions which it implements
18358     to always fail with ENOSYS.  Some functions are actually named
18359     something starting with __ and the normal name is an alias.  */
18360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18361 choke me
18362 #else
18363 $ac_func();
18364 #endif
18365
18366 ; return 0; }
18367 EOF
18368 if { (eval echo configure:18369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18369   rm -rf conftest*
18370   eval "ac_cv_func_$ac_func=yes"
18371 else
18372   echo "configure: failed program was:" >&5
18373   cat conftest.$ac_ext >&5
18374   rm -rf conftest*
18375   eval "ac_cv_func_$ac_func=no"
18376 fi
18377 rm -f conftest*
18378 fi
18379
18380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18381   echo "$ac_t""yes" 1>&6
18382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18383   cat >> confdefs.h <<EOF
18384 #define $ac_tr_func 1
18385 EOF
18386  
18387 else
18388   echo "$ac_t""no" 1>&6
18389 fi
18390 done
18391     
18392     fi
18393   fi
18394
18395   
18396   
18397   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
18398 echo "configure:18399: checking for sincosl declaration" >&5
18399   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
18400     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
18401   echo $ac_n "(cached) $ac_c" 1>&6
18402 else
18403   
18404       
18405       ac_ext=C
18406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18407 ac_cpp='$CXXCPP $CPPFLAGS'
18408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18410 cross_compiling=$ac_cv_prog_cxx_cross
18411
18412       cat > conftest.$ac_ext <<EOF
18413 #line 18414 "configure"
18414 #include "confdefs.h"
18415 #include <math.h>
18416 int main() {
18417  sincosl(0, 0, 0);
18418 ; return 0; }
18419 EOF
18420 if { (eval echo configure:18421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18421   rm -rf conftest*
18422   glibcpp_cv_func_sincosl_use=yes
18423 else
18424   echo "configure: failed program was:" >&5
18425   cat conftest.$ac_ext >&5
18426   rm -rf conftest*
18427   glibcpp_cv_func_sincosl_use=no
18428 fi
18429 rm -f conftest*
18430       ac_ext=c
18431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18432 ac_cpp='$CPP $CPPFLAGS'
18433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18435 cross_compiling=$ac_cv_prog_cc_cross
18436
18437     
18438 fi
18439
18440   fi
18441   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
18442
18443   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
18444     for ac_func in sincosl
18445 do
18446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18447 echo "configure:18448: checking for $ac_func" >&5
18448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18449   echo $ac_n "(cached) $ac_c" 1>&6
18450 else
18451   cat > conftest.$ac_ext <<EOF
18452 #line 18453 "configure"
18453 #include "confdefs.h"
18454 /* System header to define __stub macros and hopefully few prototypes,
18455     which can conflict with char $ac_func(); below.  */
18456 #include <assert.h>
18457 /* Override any gcc2 internal prototype to avoid an error.  */
18458 /* We use char because int might match the return type of a gcc2
18459     builtin and then its argument prototype would still apply.  */
18460 char $ac_func();
18461
18462 int main() {
18463
18464 /* The GNU C library defines this for functions which it implements
18465     to always fail with ENOSYS.  Some functions are actually named
18466     something starting with __ and the normal name is an alias.  */
18467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18468 choke me
18469 #else
18470 $ac_func();
18471 #endif
18472
18473 ; return 0; }
18474 EOF
18475 if { (eval echo configure:18476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18476   rm -rf conftest*
18477   eval "ac_cv_func_$ac_func=yes"
18478 else
18479   echo "configure: failed program was:" >&5
18480   cat conftest.$ac_ext >&5
18481   rm -rf conftest*
18482   eval "ac_cv_func_$ac_func=no"
18483 fi
18484 rm -f conftest*
18485 fi
18486
18487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18488   echo "$ac_t""yes" 1>&6
18489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18490   cat >> confdefs.h <<EOF
18491 #define $ac_tr_func 1
18492 EOF
18493  
18494 else
18495   echo "$ac_t""no" 1>&6
18496 fi
18497 done
18498     
18499   else
18500     
18501   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
18502 echo "configure:18503: checking for _sincosl declaration" >&5
18503   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
18504     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
18505   echo $ac_n "(cached) $ac_c" 1>&6
18506 else
18507   
18508       
18509       ac_ext=C
18510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18511 ac_cpp='$CXXCPP $CPPFLAGS'
18512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18514 cross_compiling=$ac_cv_prog_cxx_cross
18515
18516       cat > conftest.$ac_ext <<EOF
18517 #line 18518 "configure"
18518 #include "confdefs.h"
18519 #include <math.h>
18520 int main() {
18521  _sincosl(0, 0, 0);
18522 ; return 0; }
18523 EOF
18524 if { (eval echo configure:18525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18525   rm -rf conftest*
18526   glibcpp_cv_func__sincosl_use=yes
18527 else
18528   echo "configure: failed program was:" >&5
18529   cat conftest.$ac_ext >&5
18530   rm -rf conftest*
18531   glibcpp_cv_func__sincosl_use=no
18532 fi
18533 rm -f conftest*
18534       ac_ext=c
18535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18536 ac_cpp='$CPP $CPPFLAGS'
18537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18539 cross_compiling=$ac_cv_prog_cc_cross
18540
18541     
18542 fi
18543
18544   fi
18545   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
18546
18547     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
18548       for ac_func in _sincosl
18549 do
18550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18551 echo "configure:18552: checking for $ac_func" >&5
18552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18553   echo $ac_n "(cached) $ac_c" 1>&6
18554 else
18555   cat > conftest.$ac_ext <<EOF
18556 #line 18557 "configure"
18557 #include "confdefs.h"
18558 /* System header to define __stub macros and hopefully few prototypes,
18559     which can conflict with char $ac_func(); below.  */
18560 #include <assert.h>
18561 /* Override any gcc2 internal prototype to avoid an error.  */
18562 /* We use char because int might match the return type of a gcc2
18563     builtin and then its argument prototype would still apply.  */
18564 char $ac_func();
18565
18566 int main() {
18567
18568 /* The GNU C library defines this for functions which it implements
18569     to always fail with ENOSYS.  Some functions are actually named
18570     something starting with __ and the normal name is an alias.  */
18571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18572 choke me
18573 #else
18574 $ac_func();
18575 #endif
18576
18577 ; return 0; }
18578 EOF
18579 if { (eval echo configure:18580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18580   rm -rf conftest*
18581   eval "ac_cv_func_$ac_func=yes"
18582 else
18583   echo "configure: failed program was:" >&5
18584   cat conftest.$ac_ext >&5
18585   rm -rf conftest*
18586   eval "ac_cv_func_$ac_func=no"
18587 fi
18588 rm -f conftest*
18589 fi
18590
18591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18592   echo "$ac_t""yes" 1>&6
18593     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18594   cat >> confdefs.h <<EOF
18595 #define $ac_tr_func 1
18596 EOF
18597  
18598 else
18599   echo "$ac_t""no" 1>&6
18600 fi
18601 done
18602     
18603     fi
18604   fi
18605
18606   
18607   
18608   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
18609 echo "configure:18610: checking for finitel declaration" >&5
18610   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
18611     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
18612   echo $ac_n "(cached) $ac_c" 1>&6
18613 else
18614   
18615       
18616       ac_ext=C
18617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18618 ac_cpp='$CXXCPP $CPPFLAGS'
18619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18621 cross_compiling=$ac_cv_prog_cxx_cross
18622
18623       cat > conftest.$ac_ext <<EOF
18624 #line 18625 "configure"
18625 #include "confdefs.h"
18626 #include <math.h>
18627                       #ifdef HAVE_IEEEFP_H
18628                       #include <ieeefp.h>
18629                       #endif
18630                      
18631 int main() {
18632  finitel(0);
18633 ; return 0; }
18634 EOF
18635 if { (eval echo configure:18636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18636   rm -rf conftest*
18637   glibcpp_cv_func_finitel_use=yes
18638 else
18639   echo "configure: failed program was:" >&5
18640   cat conftest.$ac_ext >&5
18641   rm -rf conftest*
18642   glibcpp_cv_func_finitel_use=no
18643 fi
18644 rm -f conftest*
18645       ac_ext=c
18646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18647 ac_cpp='$CPP $CPPFLAGS'
18648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18650 cross_compiling=$ac_cv_prog_cc_cross
18651
18652     
18653 fi
18654
18655   fi
18656   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
18657
18658   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
18659     for ac_func in finitel
18660 do
18661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18662 echo "configure:18663: checking for $ac_func" >&5
18663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18664   echo $ac_n "(cached) $ac_c" 1>&6
18665 else
18666   cat > conftest.$ac_ext <<EOF
18667 #line 18668 "configure"
18668 #include "confdefs.h"
18669 /* System header to define __stub macros and hopefully few prototypes,
18670     which can conflict with char $ac_func(); below.  */
18671 #include <assert.h>
18672 /* Override any gcc2 internal prototype to avoid an error.  */
18673 /* We use char because int might match the return type of a gcc2
18674     builtin and then its argument prototype would still apply.  */
18675 char $ac_func();
18676
18677 int main() {
18678
18679 /* The GNU C library defines this for functions which it implements
18680     to always fail with ENOSYS.  Some functions are actually named
18681     something starting with __ and the normal name is an alias.  */
18682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18683 choke me
18684 #else
18685 $ac_func();
18686 #endif
18687
18688 ; return 0; }
18689 EOF
18690 if { (eval echo configure:18691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18691   rm -rf conftest*
18692   eval "ac_cv_func_$ac_func=yes"
18693 else
18694   echo "configure: failed program was:" >&5
18695   cat conftest.$ac_ext >&5
18696   rm -rf conftest*
18697   eval "ac_cv_func_$ac_func=no"
18698 fi
18699 rm -f conftest*
18700 fi
18701
18702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18703   echo "$ac_t""yes" 1>&6
18704     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18705   cat >> confdefs.h <<EOF
18706 #define $ac_tr_func 1
18707 EOF
18708  
18709 else
18710   echo "$ac_t""no" 1>&6
18711 fi
18712 done
18713     
18714   else
18715     
18716   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18717 echo "configure:18718: checking for _finitel declaration" >&5
18718   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18719     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18720   echo $ac_n "(cached) $ac_c" 1>&6
18721 else
18722   
18723       
18724       ac_ext=C
18725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18726 ac_cpp='$CXXCPP $CPPFLAGS'
18727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18729 cross_compiling=$ac_cv_prog_cxx_cross
18730
18731       cat > conftest.$ac_ext <<EOF
18732 #line 18733 "configure"
18733 #include "confdefs.h"
18734 #include <math.h>
18735                       #ifdef HAVE_IEEEFP_H
18736                       #include <ieeefp.h>
18737                       #endif
18738                      
18739 int main() {
18740  _finitel(0);
18741 ; return 0; }
18742 EOF
18743 if { (eval echo configure:18744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18744   rm -rf conftest*
18745   glibcpp_cv_func__finitel_use=yes
18746 else
18747   echo "configure: failed program was:" >&5
18748   cat conftest.$ac_ext >&5
18749   rm -rf conftest*
18750   glibcpp_cv_func__finitel_use=no
18751 fi
18752 rm -f conftest*
18753       ac_ext=c
18754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18755 ac_cpp='$CPP $CPPFLAGS'
18756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18758 cross_compiling=$ac_cv_prog_cc_cross
18759
18760     
18761 fi
18762
18763   fi
18764   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18765
18766     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18767       for ac_func in _finitel
18768 do
18769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18770 echo "configure:18771: checking for $ac_func" >&5
18771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18772   echo $ac_n "(cached) $ac_c" 1>&6
18773 else
18774   cat > conftest.$ac_ext <<EOF
18775 #line 18776 "configure"
18776 #include "confdefs.h"
18777 /* System header to define __stub macros and hopefully few prototypes,
18778     which can conflict with char $ac_func(); below.  */
18779 #include <assert.h>
18780 /* Override any gcc2 internal prototype to avoid an error.  */
18781 /* We use char because int might match the return type of a gcc2
18782     builtin and then its argument prototype would still apply.  */
18783 char $ac_func();
18784
18785 int main() {
18786
18787 /* The GNU C library defines this for functions which it implements
18788     to always fail with ENOSYS.  Some functions are actually named
18789     something starting with __ and the normal name is an alias.  */
18790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18791 choke me
18792 #else
18793 $ac_func();
18794 #endif
18795
18796 ; return 0; }
18797 EOF
18798 if { (eval echo configure:18799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18799   rm -rf conftest*
18800   eval "ac_cv_func_$ac_func=yes"
18801 else
18802   echo "configure: failed program was:" >&5
18803   cat conftest.$ac_ext >&5
18804   rm -rf conftest*
18805   eval "ac_cv_func_$ac_func=no"
18806 fi
18807 rm -f conftest*
18808 fi
18809
18810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18811   echo "$ac_t""yes" 1>&6
18812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18813   cat >> confdefs.h <<EOF
18814 #define $ac_tr_func 1
18815 EOF
18816  
18817 else
18818   echo "$ac_t""no" 1>&6
18819 fi
18820 done
18821     
18822     fi
18823   fi
18824
18825
18826         
18827     
18828   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
18829 echo "configure:18830: checking for _float trig functions" >&5
18830   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
18831   echo $ac_n "(cached) $ac_c" 1>&6
18832 else
18833   
18834     
18835     ac_ext=C
18836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18837 ac_cpp='$CXXCPP $CPPFLAGS'
18838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18840 cross_compiling=$ac_cv_prog_cxx_cross
18841
18842     cat > conftest.$ac_ext <<EOF
18843 #line 18844 "configure"
18844 #include "confdefs.h"
18845 #include <math.h>
18846 int main() {
18847  `for x in _acosf _asinf _atanf \
18848                                           _cosf _sinf _tanf \
18849                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
18850 ; return 0; }
18851 EOF
18852 if { (eval echo configure:18853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18853   rm -rf conftest*
18854   glibcpp_cv_func__float_trig_use=yes
18855 else
18856   echo "configure: failed program was:" >&5
18857   cat conftest.$ac_ext >&5
18858   rm -rf conftest*
18859   glibcpp_cv_func__float_trig_use=no
18860 fi
18861 rm -f conftest*
18862     ac_ext=c
18863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18864 ac_cpp='$CPP $CPPFLAGS'
18865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18867 cross_compiling=$ac_cv_prog_cc_cross
18868
18869 fi
18870
18871   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
18872   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
18873     for ac_func in _acosf _asinf _atanf \
18874                                           _cosf _sinf _tanf \
18875                                           _coshf _sinhf _tanhf
18876 do
18877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18878 echo "configure:18879: checking for $ac_func" >&5
18879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18880   echo $ac_n "(cached) $ac_c" 1>&6
18881 else
18882   cat > conftest.$ac_ext <<EOF
18883 #line 18884 "configure"
18884 #include "confdefs.h"
18885 /* System header to define __stub macros and hopefully few prototypes,
18886     which can conflict with char $ac_func(); below.  */
18887 #include <assert.h>
18888 /* Override any gcc2 internal prototype to avoid an error.  */
18889 /* We use char because int might match the return type of a gcc2
18890     builtin and then its argument prototype would still apply.  */
18891 char $ac_func();
18892
18893 int main() {
18894
18895 /* The GNU C library defines this for functions which it implements
18896     to always fail with ENOSYS.  Some functions are actually named
18897     something starting with __ and the normal name is an alias.  */
18898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18899 choke me
18900 #else
18901 $ac_func();
18902 #endif
18903
18904 ; return 0; }
18905 EOF
18906 if { (eval echo configure:18907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18907   rm -rf conftest*
18908   eval "ac_cv_func_$ac_func=yes"
18909 else
18910   echo "configure: failed program was:" >&5
18911   cat conftest.$ac_ext >&5
18912   rm -rf conftest*
18913   eval "ac_cv_func_$ac_func=no"
18914 fi
18915 rm -f conftest*
18916 fi
18917
18918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18919   echo "$ac_t""yes" 1>&6
18920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18921   cat >> confdefs.h <<EOF
18922 #define $ac_tr_func 1
18923 EOF
18924  
18925 else
18926   echo "$ac_t""no" 1>&6
18927 fi
18928 done
18929
18930   fi
18931
18932   
18933   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
18934 echo "configure:18935: checking for _float round functions" >&5
18935   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
18936   echo $ac_n "(cached) $ac_c" 1>&6
18937 else
18938   
18939     
18940     ac_ext=C
18941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18942 ac_cpp='$CXXCPP $CPPFLAGS'
18943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18945 cross_compiling=$ac_cv_prog_cxx_cross
18946
18947     cat > conftest.$ac_ext <<EOF
18948 #line 18949 "configure"
18949 #include "confdefs.h"
18950 #include <math.h>
18951 int main() {
18952  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
18953 ; return 0; }
18954 EOF
18955 if { (eval echo configure:18956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18956   rm -rf conftest*
18957   glibcpp_cv_func__float_round_use=yes
18958 else
18959   echo "configure: failed program was:" >&5
18960   cat conftest.$ac_ext >&5
18961   rm -rf conftest*
18962   glibcpp_cv_func__float_round_use=no
18963 fi
18964 rm -f conftest*
18965     ac_ext=c
18966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18970 cross_compiling=$ac_cv_prog_cc_cross
18971
18972 fi
18973
18974   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
18975   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
18976     for ac_func in _ceilf _floorf
18977 do
18978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18979 echo "configure:18980: checking for $ac_func" >&5
18980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18981   echo $ac_n "(cached) $ac_c" 1>&6
18982 else
18983   cat > conftest.$ac_ext <<EOF
18984 #line 18985 "configure"
18985 #include "confdefs.h"
18986 /* System header to define __stub macros and hopefully few prototypes,
18987     which can conflict with char $ac_func(); below.  */
18988 #include <assert.h>
18989 /* Override any gcc2 internal prototype to avoid an error.  */
18990 /* We use char because int might match the return type of a gcc2
18991     builtin and then its argument prototype would still apply.  */
18992 char $ac_func();
18993
18994 int main() {
18995
18996 /* The GNU C library defines this for functions which it implements
18997     to always fail with ENOSYS.  Some functions are actually named
18998     something starting with __ and the normal name is an alias.  */
18999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19000 choke me
19001 #else
19002 $ac_func();
19003 #endif
19004
19005 ; return 0; }
19006 EOF
19007 if { (eval echo configure:19008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19008   rm -rf conftest*
19009   eval "ac_cv_func_$ac_func=yes"
19010 else
19011   echo "configure: failed program was:" >&5
19012   cat conftest.$ac_ext >&5
19013   rm -rf conftest*
19014   eval "ac_cv_func_$ac_func=no"
19015 fi
19016 rm -f conftest*
19017 fi
19018
19019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19020   echo "$ac_t""yes" 1>&6
19021     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19022   cat >> confdefs.h <<EOF
19023 #define $ac_tr_func 1
19024 EOF
19025  
19026 else
19027   echo "$ac_t""no" 1>&6
19028 fi
19029 done
19030
19031   fi
19032
19033
19034     
19035   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
19036 echo "configure:19037: checking for _long double trig functions" >&5
19037   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
19038   echo $ac_n "(cached) $ac_c" 1>&6
19039 else
19040   
19041     
19042     ac_ext=C
19043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19044 ac_cpp='$CXXCPP $CPPFLAGS'
19045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19047 cross_compiling=$ac_cv_prog_cxx_cross
19048
19049     cat > conftest.$ac_ext <<EOF
19050 #line 19051 "configure"
19051 #include "confdefs.h"
19052 #include <math.h>
19053 int main() {
19054  `for x in _acosl _asinl _atanl \
19055                                           _cosl _sinl _tanl \
19056                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
19057 ; return 0; }
19058 EOF
19059 if { (eval echo configure:19060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19060   rm -rf conftest*
19061   glibcpp_cv_func__long_double_trig_use=yes
19062 else
19063   echo "configure: failed program was:" >&5
19064   cat conftest.$ac_ext >&5
19065   rm -rf conftest*
19066   glibcpp_cv_func__long_double_trig_use=no
19067 fi
19068 rm -f conftest*
19069     ac_ext=c
19070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19071 ac_cpp='$CPP $CPPFLAGS'
19072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19074 cross_compiling=$ac_cv_prog_cc_cross
19075
19076 fi
19077
19078   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
19079   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
19080     for ac_func in _acosl _asinl _atanl \
19081                                           _cosl _sinl _tanl \
19082                                           _coshl _sinhl _tanhl
19083 do
19084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19085 echo "configure:19086: checking for $ac_func" >&5
19086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19087   echo $ac_n "(cached) $ac_c" 1>&6
19088 else
19089   cat > conftest.$ac_ext <<EOF
19090 #line 19091 "configure"
19091 #include "confdefs.h"
19092 /* System header to define __stub macros and hopefully few prototypes,
19093     which can conflict with char $ac_func(); below.  */
19094 #include <assert.h>
19095 /* Override any gcc2 internal prototype to avoid an error.  */
19096 /* We use char because int might match the return type of a gcc2
19097     builtin and then its argument prototype would still apply.  */
19098 char $ac_func();
19099
19100 int main() {
19101
19102 /* The GNU C library defines this for functions which it implements
19103     to always fail with ENOSYS.  Some functions are actually named
19104     something starting with __ and the normal name is an alias.  */
19105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19106 choke me
19107 #else
19108 $ac_func();
19109 #endif
19110
19111 ; return 0; }
19112 EOF
19113 if { (eval echo configure:19114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19114   rm -rf conftest*
19115   eval "ac_cv_func_$ac_func=yes"
19116 else
19117   echo "configure: failed program was:" >&5
19118   cat conftest.$ac_ext >&5
19119   rm -rf conftest*
19120   eval "ac_cv_func_$ac_func=no"
19121 fi
19122 rm -f conftest*
19123 fi
19124
19125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19126   echo "$ac_t""yes" 1>&6
19127     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19128   cat >> confdefs.h <<EOF
19129 #define $ac_tr_func 1
19130 EOF
19131  
19132 else
19133   echo "$ac_t""no" 1>&6
19134 fi
19135 done
19136
19137   fi
19138
19139   
19140   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
19141 echo "configure:19142: checking for _long double round functions" >&5
19142   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
19143   echo $ac_n "(cached) $ac_c" 1>&6
19144 else
19145   
19146     
19147     ac_ext=C
19148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19149 ac_cpp='$CXXCPP $CPPFLAGS'
19150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19152 cross_compiling=$ac_cv_prog_cxx_cross
19153
19154     cat > conftest.$ac_ext <<EOF
19155 #line 19156 "configure"
19156 #include "confdefs.h"
19157 #include <math.h>
19158 int main() {
19159  `for x in _ceill _floorl; do echo "$x (0);"; done` 
19160 ; return 0; }
19161 EOF
19162 if { (eval echo configure:19163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19163   rm -rf conftest*
19164   glibcpp_cv_func__long_double_round_use=yes
19165 else
19166   echo "configure: failed program was:" >&5
19167   cat conftest.$ac_ext >&5
19168   rm -rf conftest*
19169   glibcpp_cv_func__long_double_round_use=no
19170 fi
19171 rm -f conftest*
19172     ac_ext=c
19173 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19174 ac_cpp='$CPP $CPPFLAGS'
19175 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19176 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19177 cross_compiling=$ac_cv_prog_cc_cross
19178
19179 fi
19180
19181   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
19182   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
19183     for ac_func in _ceill _floorl
19184 do
19185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19186 echo "configure:19187: checking for $ac_func" >&5
19187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19188   echo $ac_n "(cached) $ac_c" 1>&6
19189 else
19190   cat > conftest.$ac_ext <<EOF
19191 #line 19192 "configure"
19192 #include "confdefs.h"
19193 /* System header to define __stub macros and hopefully few prototypes,
19194     which can conflict with char $ac_func(); below.  */
19195 #include <assert.h>
19196 /* Override any gcc2 internal prototype to avoid an error.  */
19197 /* We use char because int might match the return type of a gcc2
19198     builtin and then its argument prototype would still apply.  */
19199 char $ac_func();
19200
19201 int main() {
19202
19203 /* The GNU C library defines this for functions which it implements
19204     to always fail with ENOSYS.  Some functions are actually named
19205     something starting with __ and the normal name is an alias.  */
19206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19207 choke me
19208 #else
19209 $ac_func();
19210 #endif
19211
19212 ; return 0; }
19213 EOF
19214 if { (eval echo configure:19215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19215   rm -rf conftest*
19216   eval "ac_cv_func_$ac_func=yes"
19217 else
19218   echo "configure: failed program was:" >&5
19219   cat conftest.$ac_ext >&5
19220   rm -rf conftest*
19221   eval "ac_cv_func_$ac_func=no"
19222 fi
19223 rm -f conftest*
19224 fi
19225
19226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19227   echo "$ac_t""yes" 1>&6
19228     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19229   cat >> confdefs.h <<EOF
19230 #define $ac_tr_func 1
19231 EOF
19232  
19233 else
19234   echo "$ac_t""no" 1>&6
19235 fi
19236 done
19237
19238   fi
19239
19240
19241   LIBS="$ac_save_LIBS"
19242   CXXFLAGS="$ac_save_CXXFLAGS"
19243
19244   
19245     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
19246 echo "configure:19247: checking for main in -lm" >&5
19247 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
19248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19249   echo $ac_n "(cached) $ac_c" 1>&6
19250 else
19251   ac_save_LIBS="$LIBS"
19252 LIBS="-lm  $LIBS"
19253 cat > conftest.$ac_ext <<EOF
19254 #line 19255 "configure"
19255 #include "confdefs.h"
19256
19257 int main() {
19258 main()
19259 ; return 0; }
19260 EOF
19261 if { (eval echo configure:19262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19262   rm -rf conftest*
19263   eval "ac_cv_lib_$ac_lib_var=yes"
19264 else
19265   echo "configure: failed program was:" >&5
19266   cat conftest.$ac_ext >&5
19267   rm -rf conftest*
19268   eval "ac_cv_lib_$ac_lib_var=no"
19269 fi
19270 rm -f conftest*
19271 LIBS="$ac_save_LIBS"
19272
19273 fi
19274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19275   echo "$ac_t""yes" 1>&6
19276     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19277     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19278   cat >> confdefs.h <<EOF
19279 #define $ac_tr_lib 1
19280 EOF
19281
19282   LIBS="-lm $LIBS"
19283
19284 else
19285   echo "$ac_t""no" 1>&6
19286 fi
19287
19288   for ac_func in nan copysignf
19289 do
19290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19291 echo "configure:19292: checking for $ac_func" >&5
19292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19293   echo $ac_n "(cached) $ac_c" 1>&6
19294 else
19295   cat > conftest.$ac_ext <<EOF
19296 #line 19297 "configure"
19297 #include "confdefs.h"
19298 /* System header to define __stub macros and hopefully few prototypes,
19299     which can conflict with char $ac_func(); below.  */
19300 #include <assert.h>
19301 /* Override any gcc2 internal prototype to avoid an error.  */
19302 /* We use char because int might match the return type of a gcc2
19303     builtin and then its argument prototype would still apply.  */
19304 char $ac_func();
19305
19306 int main() {
19307
19308 /* The GNU C library defines this for functions which it implements
19309     to always fail with ENOSYS.  Some functions are actually named
19310     something starting with __ and the normal name is an alias.  */
19311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19312 choke me
19313 #else
19314 $ac_func();
19315 #endif
19316
19317 ; return 0; }
19318 EOF
19319 if { (eval echo configure:19320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19320   rm -rf conftest*
19321   eval "ac_cv_func_$ac_func=yes"
19322 else
19323   echo "configure: failed program was:" >&5
19324   cat conftest.$ac_ext >&5
19325   rm -rf conftest*
19326   eval "ac_cv_func_$ac_func=no"
19327 fi
19328 rm -f conftest*
19329 fi
19330
19331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19332   echo "$ac_t""yes" 1>&6
19333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19334   cat >> confdefs.h <<EOF
19335 #define $ac_tr_func 1
19336 EOF
19337  
19338 else
19339   echo "$ac_t""no" 1>&6
19340 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
19341 fi
19342 done
19343
19344
19345     for ac_func in __signbit
19346 do
19347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19348 echo "configure:19349: checking for $ac_func" >&5
19349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19350   echo $ac_n "(cached) $ac_c" 1>&6
19351 else
19352   cat > conftest.$ac_ext <<EOF
19353 #line 19354 "configure"
19354 #include "confdefs.h"
19355 /* System header to define __stub macros and hopefully few prototypes,
19356     which can conflict with char $ac_func(); below.  */
19357 #include <assert.h>
19358 /* Override any gcc2 internal prototype to avoid an error.  */
19359 /* We use char because int might match the return type of a gcc2
19360     builtin and then its argument prototype would still apply.  */
19361 char $ac_func();
19362
19363 int main() {
19364
19365 /* The GNU C library defines this for functions which it implements
19366     to always fail with ENOSYS.  Some functions are actually named
19367     something starting with __ and the normal name is an alias.  */
19368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19369 choke me
19370 #else
19371 $ac_func();
19372 #endif
19373
19374 ; return 0; }
19375 EOF
19376 if { (eval echo configure:19377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19377   rm -rf conftest*
19378   eval "ac_cv_func_$ac_func=yes"
19379 else
19380   echo "configure: failed program was:" >&5
19381   cat conftest.$ac_ext >&5
19382   rm -rf conftest*
19383   eval "ac_cv_func_$ac_func=no"
19384 fi
19385 rm -f conftest*
19386 fi
19387
19388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19389   echo "$ac_t""yes" 1>&6
19390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19391   cat >> confdefs.h <<EOF
19392 #define $ac_tr_func 1
19393 EOF
19394  
19395 else
19396   echo "$ac_t""no" 1>&6
19397 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
19398 fi
19399 done
19400
19401   for ac_func in __signbitf
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 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
19454 fi
19455 done
19456
19457
19458           if test x$ac_cv_func_copysignl = x"yes"; then
19459     for ac_func in __signbitl
19460 do
19461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19462 echo "configure:19463: checking for $ac_func" >&5
19463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19464   echo $ac_n "(cached) $ac_c" 1>&6
19465 else
19466   cat > conftest.$ac_ext <<EOF
19467 #line 19468 "configure"
19468 #include "confdefs.h"
19469 /* System header to define __stub macros and hopefully few prototypes,
19470     which can conflict with char $ac_func(); below.  */
19471 #include <assert.h>
19472 /* Override any gcc2 internal prototype to avoid an error.  */
19473 /* We use char because int might match the return type of a gcc2
19474     builtin and then its argument prototype would still apply.  */
19475 char $ac_func();
19476
19477 int main() {
19478
19479 /* The GNU C library defines this for functions which it implements
19480     to always fail with ENOSYS.  Some functions are actually named
19481     something starting with __ and the normal name is an alias.  */
19482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19483 choke me
19484 #else
19485 $ac_func();
19486 #endif
19487
19488 ; return 0; }
19489 EOF
19490 if { (eval echo configure:19491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19491   rm -rf conftest*
19492   eval "ac_cv_func_$ac_func=yes"
19493 else
19494   echo "configure: failed program was:" >&5
19495   cat conftest.$ac_ext >&5
19496   rm -rf conftest*
19497   eval "ac_cv_func_$ac_func=no"
19498 fi
19499 rm -f conftest*
19500 fi
19501
19502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19503   echo "$ac_t""yes" 1>&6
19504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19505   cat >> confdefs.h <<EOF
19506 #define $ac_tr_func 1
19507 EOF
19508  
19509 else
19510   echo "$ac_t""no" 1>&6
19511 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
19512 fi
19513 done
19514
19515   fi
19516
19517   
19518
19519   
19520
19521       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
19522 echo "configure:19523: checking for mbstate_t" >&5
19523   cat > conftest.$ac_ext <<EOF
19524 #line 19525 "configure"
19525 #include "confdefs.h"
19526 #include <wchar.h>
19527 int main() {
19528 mbstate_t teststate;
19529 ; return 0; }
19530 EOF
19531 if { (eval echo configure:19532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19532   rm -rf conftest*
19533   have_mbstate_t=yes
19534 else
19535   echo "configure: failed program was:" >&5
19536   cat conftest.$ac_ext >&5
19537   rm -rf conftest*
19538   have_mbstate_t=no
19539 fi
19540 rm -f conftest*
19541   echo "$ac_t""$have_mbstate_t" 1>&6
19542   if test x"$have_mbstate_t" = xyes; then
19543     cat >> confdefs.h <<\EOF
19544 #define HAVE_MBSTATE_T 1
19545 EOF
19546
19547   fi
19548
19549     for ac_hdr in wchar.h
19550 do
19551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19553 echo "configure:19554: checking for $ac_hdr" >&5
19554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19555   echo $ac_n "(cached) $ac_c" 1>&6
19556 else
19557   cat > conftest.$ac_ext <<EOF
19558 #line 19559 "configure"
19559 #include "confdefs.h"
19560 #include <$ac_hdr>
19561 EOF
19562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19563 { (eval echo configure:19564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19565 if test -z "$ac_err"; then
19566   rm -rf conftest*
19567   eval "ac_cv_header_$ac_safe=yes"
19568 else
19569   echo "$ac_err" >&5
19570   echo "configure: failed program was:" >&5
19571   cat conftest.$ac_ext >&5
19572   rm -rf conftest*
19573   eval "ac_cv_header_$ac_safe=no"
19574 fi
19575 rm -f conftest*
19576 fi
19577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19578   echo "$ac_t""yes" 1>&6
19579     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19580   cat >> confdefs.h <<EOF
19581 #define $ac_tr_hdr 1
19582 EOF
19583  ac_has_wchar_h=yes
19584 else
19585   echo "$ac_t""no" 1>&6
19586 ac_has_wchar_h=no
19587 fi
19588 done
19589
19590   for ac_hdr in wctype.h
19591 do
19592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19594 echo "configure:19595: checking for $ac_hdr" >&5
19595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19596   echo $ac_n "(cached) $ac_c" 1>&6
19597 else
19598   cat > conftest.$ac_ext <<EOF
19599 #line 19600 "configure"
19600 #include "confdefs.h"
19601 #include <$ac_hdr>
19602 EOF
19603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19604 { (eval echo configure:19605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19606 if test -z "$ac_err"; then
19607   rm -rf conftest*
19608   eval "ac_cv_header_$ac_safe=yes"
19609 else
19610   echo "$ac_err" >&5
19611   echo "configure: failed program was:" >&5
19612   cat conftest.$ac_ext >&5
19613   rm -rf conftest*
19614   eval "ac_cv_header_$ac_safe=no"
19615 fi
19616 rm -f conftest*
19617 fi
19618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19619   echo "$ac_t""yes" 1>&6
19620     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19621   cat >> confdefs.h <<EOF
19622 #define $ac_tr_hdr 1
19623 EOF
19624  ac_has_wctype_h=yes
19625 else
19626   echo "$ac_t""no" 1>&6
19627 ac_has_wctype_h=no
19628 fi
19629 done
19630
19631   
19632     if test x"$ac_has_wchar_h" = xyes &&
19633      test x"$ac_has_wctype_h" = xyes &&
19634      test x"$enable_c_mbchar" != xno; then
19635       
19636             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
19637 echo "configure:19638: checking for WCHAR_MIN and WCHAR_MAX" >&5
19638     cat > conftest.$ac_ext <<EOF
19639 #line 19640 "configure"
19640 #include "confdefs.h"
19641 #include <wchar.h>
19642 int main() {
19643 int i = WCHAR_MIN; int j = WCHAR_MAX;
19644 ; return 0; }
19645 EOF
19646 if { (eval echo configure:19647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19647   rm -rf conftest*
19648   has_wchar_minmax=yes
19649 else
19650   echo "configure: failed program was:" >&5
19651   cat conftest.$ac_ext >&5
19652   rm -rf conftest*
19653   has_wchar_minmax=no
19654 fi
19655 rm -f conftest*
19656     echo "$ac_t""$has_wchar_minmax" 1>&6
19657     
19658             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
19659 echo "configure:19660: checking for WEOF" >&5
19660     cat > conftest.$ac_ext <<EOF
19661 #line 19662 "configure"
19662 #include "confdefs.h"
19663
19664       #include <wchar.h>
19665       #include <stddef.h>
19666 int main() {
19667 wint_t i = WEOF;
19668 ; return 0; }
19669 EOF
19670 if { (eval echo configure:19671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19671   rm -rf conftest*
19672   has_weof=yes
19673 else
19674   echo "configure: failed program was:" >&5
19675   cat conftest.$ac_ext >&5
19676   rm -rf conftest*
19677   has_weof=no
19678 fi
19679 rm -f conftest*
19680     echo "$ac_t""$has_weof" 1>&6
19681   
19682         ac_wfuncs=yes
19683     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
19684 do
19685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19686 echo "configure:19687: checking for $ac_func" >&5
19687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19688   echo $ac_n "(cached) $ac_c" 1>&6
19689 else
19690   cat > conftest.$ac_ext <<EOF
19691 #line 19692 "configure"
19692 #include "confdefs.h"
19693 /* System header to define __stub macros and hopefully few prototypes,
19694     which can conflict with char $ac_func(); below.  */
19695 #include <assert.h>
19696 /* Override any gcc2 internal prototype to avoid an error.  */
19697 /* We use char because int might match the return type of a gcc2
19698     builtin and then its argument prototype would still apply.  */
19699 char $ac_func();
19700
19701 int main() {
19702
19703 /* The GNU C library defines this for functions which it implements
19704     to always fail with ENOSYS.  Some functions are actually named
19705     something starting with __ and the normal name is an alias.  */
19706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19707 choke me
19708 #else
19709 $ac_func();
19710 #endif
19711
19712 ; return 0; }
19713 EOF
19714 if { (eval echo configure:19715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19715   rm -rf conftest*
19716   eval "ac_cv_func_$ac_func=yes"
19717 else
19718   echo "configure: failed program was:" >&5
19719   cat conftest.$ac_ext >&5
19720   rm -rf conftest*
19721   eval "ac_cv_func_$ac_func=no"
19722 fi
19723 rm -f conftest*
19724 fi
19725
19726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19727   echo "$ac_t""yes" 1>&6
19728     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19729   cat >> confdefs.h <<EOF
19730 #define $ac_tr_func 1
19731 EOF
19732  
19733 else
19734   echo "$ac_t""no" 1>&6
19735 \
19736     ac_wfuncs=no
19737 fi
19738 done
19739
19740   
19741         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
19742     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
19743     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
19744     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
19745     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
19746     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
19747 do
19748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19749 echo "configure:19750: checking for $ac_func" >&5
19750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19751   echo $ac_n "(cached) $ac_c" 1>&6
19752 else
19753   cat > conftest.$ac_ext <<EOF
19754 #line 19755 "configure"
19755 #include "confdefs.h"
19756 /* System header to define __stub macros and hopefully few prototypes,
19757     which can conflict with char $ac_func(); below.  */
19758 #include <assert.h>
19759 /* Override any gcc2 internal prototype to avoid an error.  */
19760 /* We use char because int might match the return type of a gcc2
19761     builtin and then its argument prototype would still apply.  */
19762 char $ac_func();
19763
19764 int main() {
19765
19766 /* The GNU C library defines this for functions which it implements
19767     to always fail with ENOSYS.  Some functions are actually named
19768     something starting with __ and the normal name is an alias.  */
19769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19770 choke me
19771 #else
19772 $ac_func();
19773 #endif
19774
19775 ; return 0; }
19776 EOF
19777 if { (eval echo configure:19778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19778   rm -rf conftest*
19779   eval "ac_cv_func_$ac_func=yes"
19780 else
19781   echo "configure: failed program was:" >&5
19782   cat conftest.$ac_ext >&5
19783   rm -rf conftest*
19784   eval "ac_cv_func_$ac_func=no"
19785 fi
19786 rm -f conftest*
19787 fi
19788
19789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19790   echo "$ac_t""yes" 1>&6
19791     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19792   cat >> confdefs.h <<EOF
19793 #define $ac_tr_func 1
19794 EOF
19795  
19796 else
19797   echo "$ac_t""no" 1>&6
19798 \
19799     ac_wfuncs=no
19800 fi
19801 done
19802
19803
19804     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
19805 echo "configure:19806: checking for ISO C99 wchar_t support" >&5
19806     if test x"$has_weof" = xyes &&
19807        test x"$has_wchar_minmax" = xyes &&
19808        test x"$ac_wfuncs" = xyes; then
19809       ac_isoC99_wchar_t=yes
19810     else
19811       ac_isoC99_wchar_t=no
19812     fi
19813     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
19814   
19815             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
19816 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
19817 echo "configure:19818: checking for iconv.h" >&5
19818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19819   echo $ac_n "(cached) $ac_c" 1>&6
19820 else
19821   cat > conftest.$ac_ext <<EOF
19822 #line 19823 "configure"
19823 #include "confdefs.h"
19824 #include <iconv.h>
19825 EOF
19826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19827 { (eval echo configure:19828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19829 if test -z "$ac_err"; then
19830   rm -rf conftest*
19831   eval "ac_cv_header_$ac_safe=yes"
19832 else
19833   echo "$ac_err" >&5
19834   echo "configure: failed program was:" >&5
19835   cat conftest.$ac_ext >&5
19836   rm -rf conftest*
19837   eval "ac_cv_header_$ac_safe=no"
19838 fi
19839 rm -f conftest*
19840 fi
19841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19842   echo "$ac_t""yes" 1>&6
19843   ac_has_iconv_h=yes
19844 else
19845   echo "$ac_t""no" 1>&6
19846 ac_has_iconv_h=no
19847 fi
19848
19849     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
19850 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
19851 echo "configure:19852: checking for langinfo.h" >&5
19852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19853   echo $ac_n "(cached) $ac_c" 1>&6
19854 else
19855   cat > conftest.$ac_ext <<EOF
19856 #line 19857 "configure"
19857 #include "confdefs.h"
19858 #include <langinfo.h>
19859 EOF
19860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19861 { (eval echo configure:19862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19863 if test -z "$ac_err"; then
19864   rm -rf conftest*
19865   eval "ac_cv_header_$ac_safe=yes"
19866 else
19867   echo "$ac_err" >&5
19868   echo "configure: failed program was:" >&5
19869   cat conftest.$ac_ext >&5
19870   rm -rf conftest*
19871   eval "ac_cv_header_$ac_safe=no"
19872 fi
19873 rm -f conftest*
19874 fi
19875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19876   echo "$ac_t""yes" 1>&6
19877   ac_has_langinfo_h=yes
19878 else
19879   echo "$ac_t""no" 1>&6
19880 ac_has_langinfo_h=no
19881 fi
19882
19883
19884         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
19885 echo "configure:19886: checking for iconv in -liconv" >&5
19886 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
19887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19888   echo $ac_n "(cached) $ac_c" 1>&6
19889 else
19890   ac_save_LIBS="$LIBS"
19891 LIBS="-liconv  $LIBS"
19892 cat > conftest.$ac_ext <<EOF
19893 #line 19894 "configure"
19894 #include "confdefs.h"
19895 /* Override any gcc2 internal prototype to avoid an error.  */
19896 /* We use char because int might match the return type of a gcc2
19897     builtin and then its argument prototype would still apply.  */
19898 char iconv();
19899
19900 int main() {
19901 iconv()
19902 ; return 0; }
19903 EOF
19904 if { (eval echo configure:19905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19905   rm -rf conftest*
19906   eval "ac_cv_lib_$ac_lib_var=yes"
19907 else
19908   echo "configure: failed program was:" >&5
19909   cat conftest.$ac_ext >&5
19910   rm -rf conftest*
19911   eval "ac_cv_lib_$ac_lib_var=no"
19912 fi
19913 rm -f conftest*
19914 LIBS="$ac_save_LIBS"
19915
19916 fi
19917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19918   echo "$ac_t""yes" 1>&6
19919   libiconv="-liconv"
19920 else
19921   echo "$ac_t""no" 1>&6
19922 fi
19923
19924     ac_save_LIBS="$LIBS"
19925     LIBS="$LIBS $libiconv"
19926
19927     for ac_func in iconv_open iconv_close iconv nl_langinfo
19928 do
19929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19930 echo "configure:19931: checking for $ac_func" >&5
19931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19932   echo $ac_n "(cached) $ac_c" 1>&6
19933 else
19934   cat > conftest.$ac_ext <<EOF
19935 #line 19936 "configure"
19936 #include "confdefs.h"
19937 /* System header to define __stub macros and hopefully few prototypes,
19938     which can conflict with char $ac_func(); below.  */
19939 #include <assert.h>
19940 /* Override any gcc2 internal prototype to avoid an error.  */
19941 /* We use char because int might match the return type of a gcc2
19942     builtin and then its argument prototype would still apply.  */
19943 char $ac_func();
19944
19945 int main() {
19946
19947 /* The GNU C library defines this for functions which it implements
19948     to always fail with ENOSYS.  Some functions are actually named
19949     something starting with __ and the normal name is an alias.  */
19950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19951 choke me
19952 #else
19953 $ac_func();
19954 #endif
19955
19956 ; return 0; }
19957 EOF
19958 if { (eval echo configure:19959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19959   rm -rf conftest*
19960   eval "ac_cv_func_$ac_func=yes"
19961 else
19962   echo "configure: failed program was:" >&5
19963   cat conftest.$ac_ext >&5
19964   rm -rf conftest*
19965   eval "ac_cv_func_$ac_func=no"
19966 fi
19967 rm -f conftest*
19968 fi
19969
19970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19971   echo "$ac_t""yes" 1>&6
19972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19973   cat >> confdefs.h <<EOF
19974 #define $ac_tr_func 1
19975 EOF
19976  \
19977     ac_XPG2funcs=yes
19978 else
19979   echo "$ac_t""no" 1>&6
19980 ac_XPG2funcs=no
19981 fi
19982 done
19983
19984   
19985     LIBS="$ac_save_LIBS"
19986
19987     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
19988 echo "configure:19989: checking for XPG2 wchar_t support" >&5
19989     if test x"$ac_has_iconv_h" = xyes &&
19990        test x"$ac_has_langinfo_h" = xyes &&
19991        test x"$ac_XPG2funcs" = xyes; then
19992       ac_XPG2_wchar_t=yes
19993     else
19994       ac_XPG2_wchar_t=no
19995     fi
19996     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
19997   
19998             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
19999 echo "configure:20000: checking for enabled wchar_t specializations" >&5
20000     if test x"$ac_isoC99_wchar_t" = xyes &&
20001        test x"$ac_XPG2_wchar_t" = xyes; then
20002       cat >> confdefs.h <<\EOF
20003 #define _GLIBCPP_USE_WCHAR_T 1
20004 EOF
20005
20006       echo "$ac_t"""yes"" 1>&6
20007     else
20008       echo "$ac_t"""no"" 1>&6
20009     fi
20010   else
20011         echo "configure: warning: wchar_t support disabled." 1>&2
20012   fi
20013
20014   
20015   ac_test_CXXFLAGS="${CXXFLAGS+set}"
20016   ac_save_CXXFLAGS="$CXXFLAGS"
20017   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
20018
20019   
20020   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
20021 echo "configure:20022: checking for strtold declaration" >&5
20022   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
20023     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
20024   echo $ac_n "(cached) $ac_c" 1>&6
20025 else
20026   
20027       
20028       ac_ext=C
20029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20030 ac_cpp='$CXXCPP $CPPFLAGS'
20031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20033 cross_compiling=$ac_cv_prog_cxx_cross
20034
20035       cat > conftest.$ac_ext <<EOF
20036 #line 20037 "configure"
20037 #include "confdefs.h"
20038 #include <stdlib.h>
20039 int main() {
20040  strtold(0, 0);
20041 ; return 0; }
20042 EOF
20043 if { (eval echo configure:20044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20044   rm -rf conftest*
20045   glibcpp_cv_func_strtold_use=yes
20046 else
20047   echo "configure: failed program was:" >&5
20048   cat conftest.$ac_ext >&5
20049   rm -rf conftest*
20050   glibcpp_cv_func_strtold_use=no
20051 fi
20052 rm -f conftest*
20053       ac_ext=c
20054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20055 ac_cpp='$CPP $CPPFLAGS'
20056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20058 cross_compiling=$ac_cv_prog_cc_cross
20059
20060     
20061 fi
20062
20063   fi
20064   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
20065   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
20066     for ac_func in strtold
20067 do
20068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20069 echo "configure:20070: checking for $ac_func" >&5
20070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20071   echo $ac_n "(cached) $ac_c" 1>&6
20072 else
20073   cat > conftest.$ac_ext <<EOF
20074 #line 20075 "configure"
20075 #include "confdefs.h"
20076 /* System header to define __stub macros and hopefully few prototypes,
20077     which can conflict with char $ac_func(); below.  */
20078 #include <assert.h>
20079 /* Override any gcc2 internal prototype to avoid an error.  */
20080 /* We use char because int might match the return type of a gcc2
20081     builtin and then its argument prototype would still apply.  */
20082 char $ac_func();
20083
20084 int main() {
20085
20086 /* The GNU C library defines this for functions which it implements
20087     to always fail with ENOSYS.  Some functions are actually named
20088     something starting with __ and the normal name is an alias.  */
20089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20090 choke me
20091 #else
20092 $ac_func();
20093 #endif
20094
20095 ; return 0; }
20096 EOF
20097 if { (eval echo configure:20098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20098   rm -rf conftest*
20099   eval "ac_cv_func_$ac_func=yes"
20100 else
20101   echo "configure: failed program was:" >&5
20102   cat conftest.$ac_ext >&5
20103   rm -rf conftest*
20104   eval "ac_cv_func_$ac_func=no"
20105 fi
20106 rm -f conftest*
20107 fi
20108
20109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20110   echo "$ac_t""yes" 1>&6
20111     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20112   cat >> confdefs.h <<EOF
20113 #define $ac_tr_func 1
20114 EOF
20115  
20116 else
20117   echo "$ac_t""no" 1>&6
20118 fi
20119 done
20120     
20121   fi
20122
20123   
20124   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
20125 echo "configure:20126: checking for strtof declaration" >&5
20126   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
20127     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
20128   echo $ac_n "(cached) $ac_c" 1>&6
20129 else
20130   
20131       
20132       ac_ext=C
20133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20134 ac_cpp='$CXXCPP $CPPFLAGS'
20135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20137 cross_compiling=$ac_cv_prog_cxx_cross
20138
20139       cat > conftest.$ac_ext <<EOF
20140 #line 20141 "configure"
20141 #include "confdefs.h"
20142 #include <stdlib.h>
20143 int main() {
20144  strtof(0, 0);
20145 ; return 0; }
20146 EOF
20147 if { (eval echo configure:20148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20148   rm -rf conftest*
20149   glibcpp_cv_func_strtof_use=yes
20150 else
20151   echo "configure: failed program was:" >&5
20152   cat conftest.$ac_ext >&5
20153   rm -rf conftest*
20154   glibcpp_cv_func_strtof_use=no
20155 fi
20156 rm -f conftest*
20157       ac_ext=c
20158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20159 ac_cpp='$CPP $CPPFLAGS'
20160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20162 cross_compiling=$ac_cv_prog_cc_cross
20163
20164     
20165 fi
20166
20167   fi
20168   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
20169   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
20170     for ac_func in strtof
20171 do
20172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20173 echo "configure:20174: checking for $ac_func" >&5
20174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20175   echo $ac_n "(cached) $ac_c" 1>&6
20176 else
20177   cat > conftest.$ac_ext <<EOF
20178 #line 20179 "configure"
20179 #include "confdefs.h"
20180 /* System header to define __stub macros and hopefully few prototypes,
20181     which can conflict with char $ac_func(); below.  */
20182 #include <assert.h>
20183 /* Override any gcc2 internal prototype to avoid an error.  */
20184 /* We use char because int might match the return type of a gcc2
20185     builtin and then its argument prototype would still apply.  */
20186 char $ac_func();
20187
20188 int main() {
20189
20190 /* The GNU C library defines this for functions which it implements
20191     to always fail with ENOSYS.  Some functions are actually named
20192     something starting with __ and the normal name is an alias.  */
20193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20194 choke me
20195 #else
20196 $ac_func();
20197 #endif
20198
20199 ; return 0; }
20200 EOF
20201 if { (eval echo configure:20202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20202   rm -rf conftest*
20203   eval "ac_cv_func_$ac_func=yes"
20204 else
20205   echo "configure: failed program was:" >&5
20206   cat conftest.$ac_ext >&5
20207   rm -rf conftest*
20208   eval "ac_cv_func_$ac_func=no"
20209 fi
20210 rm -f conftest*
20211 fi
20212
20213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20214   echo "$ac_t""yes" 1>&6
20215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20216   cat >> confdefs.h <<EOF
20217 #define $ac_tr_func 1
20218 EOF
20219  
20220 else
20221   echo "$ac_t""no" 1>&6
20222 fi
20223 done
20224     
20225   fi
20226
20227   for ac_func in drand48
20228 do
20229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20230 echo "configure:20231: checking for $ac_func" >&5
20231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20232   echo $ac_n "(cached) $ac_c" 1>&6
20233 else
20234   cat > conftest.$ac_ext <<EOF
20235 #line 20236 "configure"
20236 #include "confdefs.h"
20237 /* System header to define __stub macros and hopefully few prototypes,
20238     which can conflict with char $ac_func(); below.  */
20239 #include <assert.h>
20240 /* Override any gcc2 internal prototype to avoid an error.  */
20241 /* We use char because int might match the return type of a gcc2
20242     builtin and then its argument prototype would still apply.  */
20243 char $ac_func();
20244
20245 int main() {
20246
20247 /* The GNU C library defines this for functions which it implements
20248     to always fail with ENOSYS.  Some functions are actually named
20249     something starting with __ and the normal name is an alias.  */
20250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20251 choke me
20252 #else
20253 $ac_func();
20254 #endif
20255
20256 ; return 0; }
20257 EOF
20258 if { (eval echo configure:20259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20259   rm -rf conftest*
20260   eval "ac_cv_func_$ac_func=yes"
20261 else
20262   echo "configure: failed program was:" >&5
20263   cat conftest.$ac_ext >&5
20264   rm -rf conftest*
20265   eval "ac_cv_func_$ac_func=no"
20266 fi
20267 rm -f conftest*
20268 fi
20269
20270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20271   echo "$ac_t""yes" 1>&6
20272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20273   cat >> confdefs.h <<EOF
20274 #define $ac_tr_func 1
20275 EOF
20276  
20277 else
20278   echo "$ac_t""no" 1>&6
20279 fi
20280 done
20281
20282
20283   CXXFLAGS="$ac_save_CXXFLAGS"
20284
20285   
20286   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
20287 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
20288 echo "configure:20289: checking for locale.h" >&5
20289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20290   echo $ac_n "(cached) $ac_c" 1>&6
20291 else
20292   cat > conftest.$ac_ext <<EOF
20293 #line 20294 "configure"
20294 #include "confdefs.h"
20295 #include <locale.h>
20296 EOF
20297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20298 { (eval echo configure:20299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20300 if test -z "$ac_err"; then
20301   rm -rf conftest*
20302   eval "ac_cv_header_$ac_safe=yes"
20303 else
20304   echo "$ac_err" >&5
20305   echo "configure: failed program was:" >&5
20306   cat conftest.$ac_ext >&5
20307   rm -rf conftest*
20308   eval "ac_cv_header_$ac_safe=no"
20309 fi
20310 rm -f conftest*
20311 fi
20312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20313   echo "$ac_t""yes" 1>&6
20314   
20315     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
20316 echo "configure:20317: checking for LC_MESSAGES" >&5
20317 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
20318   echo $ac_n "(cached) $ac_c" 1>&6
20319 else
20320   cat > conftest.$ac_ext <<EOF
20321 #line 20322 "configure"
20322 #include "confdefs.h"
20323 #include <locale.h>
20324 int main() {
20325 return LC_MESSAGES
20326 ; return 0; }
20327 EOF
20328 if { (eval echo configure:20329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20329   rm -rf conftest*
20330   ac_cv_val_LC_MESSAGES=yes
20331 else
20332   echo "configure: failed program was:" >&5
20333   cat conftest.$ac_ext >&5
20334   rm -rf conftest*
20335   ac_cv_val_LC_MESSAGES=no
20336 fi
20337 rm -f conftest*
20338 fi
20339
20340 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
20341     if test $ac_cv_val_LC_MESSAGES = yes; then
20342       cat >> confdefs.h <<\EOF
20343 #define HAVE_LC_MESSAGES 1
20344 EOF
20345
20346     fi
20347   
20348 else
20349   echo "$ac_t""no" 1>&6
20350 fi
20351
20352
20353
20354   cat > conftest.$ac_ext <<EOF
20355 #line 20356 "configure"
20356 #include "confdefs.h"
20357
20358   #include <setjmp.h>
20359   
20360 int main() {
20361 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20362 ; return 0; }
20363 EOF
20364 if { (eval echo configure:20365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20365   rm -rf conftest*
20366   cat >> confdefs.h <<\EOF
20367 #define HAVE_SIGSETJMP 1
20368 EOF
20369
20370   
20371 else
20372   echo "configure: failed program was:" >&5
20373   cat conftest.$ac_ext >&5
20374 fi
20375 rm -f conftest*
20376
20377   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
20378 do
20379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20381 echo "configure:20382: checking for $ac_hdr" >&5
20382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20383   echo $ac_n "(cached) $ac_c" 1>&6
20384 else
20385   cat > conftest.$ac_ext <<EOF
20386 #line 20387 "configure"
20387 #include "confdefs.h"
20388 #include <$ac_hdr>
20389 EOF
20390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20391 { (eval echo configure:20392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20393 if test -z "$ac_err"; then
20394   rm -rf conftest*
20395   eval "ac_cv_header_$ac_safe=yes"
20396 else
20397   echo "$ac_err" >&5
20398   echo "configure: failed program was:" >&5
20399   cat conftest.$ac_ext >&5
20400   rm -rf conftest*
20401   eval "ac_cv_header_$ac_safe=no"
20402 fi
20403 rm -f conftest*
20404 fi
20405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20406   echo "$ac_t""yes" 1>&6
20407     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20408   cat >> confdefs.h <<EOF
20409 #define $ac_tr_hdr 1
20410 EOF
20411  
20412 else
20413   echo "$ac_t""no" 1>&6
20414 fi
20415 done
20416
20417 for ac_func in getpagesize
20418 do
20419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20420 echo "configure:20421: checking for $ac_func" >&5
20421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20422   echo $ac_n "(cached) $ac_c" 1>&6
20423 else
20424   cat > conftest.$ac_ext <<EOF
20425 #line 20426 "configure"
20426 #include "confdefs.h"
20427 /* System header to define __stub macros and hopefully few prototypes,
20428     which can conflict with char $ac_func(); below.  */
20429 #include <assert.h>
20430 /* Override any gcc2 internal prototype to avoid an error.  */
20431 /* We use char because int might match the return type of a gcc2
20432     builtin and then its argument prototype would still apply.  */
20433 char $ac_func();
20434
20435 int main() {
20436
20437 /* The GNU C library defines this for functions which it implements
20438     to always fail with ENOSYS.  Some functions are actually named
20439     something starting with __ and the normal name is an alias.  */
20440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20441 choke me
20442 #else
20443 $ac_func();
20444 #endif
20445
20446 ; return 0; }
20447 EOF
20448 if { (eval echo configure:20449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20449   rm -rf conftest*
20450   eval "ac_cv_func_$ac_func=yes"
20451 else
20452   echo "configure: failed program was:" >&5
20453   cat conftest.$ac_ext >&5
20454   rm -rf conftest*
20455   eval "ac_cv_func_$ac_func=no"
20456 fi
20457 rm -f conftest*
20458 fi
20459
20460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20461   echo "$ac_t""yes" 1>&6
20462     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20463   cat >> confdefs.h <<EOF
20464 #define $ac_tr_func 1
20465 EOF
20466  
20467 else
20468   echo "$ac_t""no" 1>&6
20469 fi
20470 done
20471
20472 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
20473 echo "configure:20474: checking for working mmap" >&5
20474 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
20475   echo $ac_n "(cached) $ac_c" 1>&6
20476 else
20477   if test "$cross_compiling" = yes; then
20478   ac_cv_func_mmap_fixed_mapped=no
20479 else
20480   cat > conftest.$ac_ext <<EOF
20481 #line 20482 "configure"
20482 #include "confdefs.h"
20483
20484 /* Thanks to Mike Haertel and Jim Avera for this test.
20485    Here is a matrix of mmap possibilities:
20486         mmap private not fixed
20487         mmap private fixed at somewhere currently unmapped
20488         mmap private fixed at somewhere already mapped
20489         mmap shared not fixed
20490         mmap shared fixed at somewhere currently unmapped
20491         mmap shared fixed at somewhere already mapped
20492    For private mappings, we should verify that changes cannot be read()
20493    back from the file, nor mmap's back from the file at a different
20494    address.  (There have been systems where private was not correctly
20495    implemented like the infamous i386 svr4.0, and systems where the
20496    VM page cache was not coherent with the filesystem buffer cache
20497    like early versions of FreeBSD and possibly contemporary NetBSD.)
20498    For shared mappings, we should conversely verify that changes get
20499    propogated back to all the places they're supposed to be.
20500
20501    Grep wants private fixed already mapped.
20502    The main things grep needs to know about mmap are:
20503    * does it exist and is it safe to write into the mmap'd area
20504    * how to use it (BSD variants)  */
20505 #include <sys/types.h>
20506 #include <fcntl.h>
20507 #include <sys/mman.h>
20508
20509 #if HAVE_SYS_TYPES_H
20510 # include <sys/types.h>
20511 #endif
20512
20513 #if HAVE_STDLIB_H
20514 # include <stdlib.h>
20515 #endif
20516
20517 #if HAVE_SYS_STAT_H
20518 # include <sys/stat.h>
20519 #endif
20520
20521 #if HAVE_UNISTD_H
20522 # include <unistd.h>
20523 #endif
20524
20525 /* This mess was copied from the GNU getpagesize.h.  */
20526 #ifndef HAVE_GETPAGESIZE
20527
20528 /* Assume that all systems that can run configure have sys/param.h.  */
20529 # ifndef HAVE_SYS_PARAM_H
20530 #  define HAVE_SYS_PARAM_H 1
20531 # endif
20532
20533 # ifdef _SC_PAGESIZE
20534 #  define getpagesize() sysconf(_SC_PAGESIZE)
20535 # else /* no _SC_PAGESIZE */
20536 #  ifdef HAVE_SYS_PARAM_H
20537 #   include <sys/param.h>
20538 #   ifdef EXEC_PAGESIZE
20539 #    define getpagesize() EXEC_PAGESIZE
20540 #   else /* no EXEC_PAGESIZE */
20541 #    ifdef NBPG
20542 #     define getpagesize() NBPG * CLSIZE
20543 #     ifndef CLSIZE
20544 #      define CLSIZE 1
20545 #     endif /* no CLSIZE */
20546 #    else /* no NBPG */
20547 #     ifdef NBPC
20548 #      define getpagesize() NBPC
20549 #     else /* no NBPC */
20550 #      ifdef PAGESIZE
20551 #       define getpagesize() PAGESIZE
20552 #      endif /* PAGESIZE */
20553 #     endif /* no NBPC */
20554 #    endif /* no NBPG */
20555 #   endif /* no EXEC_PAGESIZE */
20556 #  else /* no HAVE_SYS_PARAM_H */
20557 #   define getpagesize() 8192   /* punt totally */
20558 #  endif /* no HAVE_SYS_PARAM_H */
20559 # endif /* no _SC_PAGESIZE */
20560
20561 #endif /* no HAVE_GETPAGESIZE */
20562
20563 #ifdef __cplusplus
20564 extern "C" { void *malloc(unsigned); }
20565 #else
20566 char *malloc();
20567 #endif
20568
20569 int
20570 main()
20571 {
20572         char *data, *data2, *data3;
20573         int i, pagesize;
20574         int fd;
20575
20576         pagesize = getpagesize();
20577
20578         /*
20579          * First, make a file with some known garbage in it.
20580          */
20581         data = malloc(pagesize);
20582         if (!data)
20583                 exit(1);
20584         for (i = 0; i < pagesize; ++i)
20585                 *(data + i) = rand();
20586         umask(0);
20587         fd = creat("conftestmmap", 0600);
20588         if (fd < 0)
20589                 exit(1);
20590         if (write(fd, data, pagesize) != pagesize)
20591                 exit(1);
20592         close(fd);
20593
20594         /*
20595          * Next, try to mmap the file at a fixed address which
20596          * already has something else allocated at it.  If we can,
20597          * also make sure that we see the same garbage.
20598          */
20599         fd = open("conftestmmap", O_RDWR);
20600         if (fd < 0)
20601                 exit(1);
20602         data2 = malloc(2 * pagesize);
20603         if (!data2)
20604                 exit(1);
20605         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20606         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
20607             MAP_PRIVATE | MAP_FIXED, fd, 0L))
20608                 exit(1);
20609         for (i = 0; i < pagesize; ++i)
20610                 if (*(data + i) != *(data2 + i))
20611                         exit(1);
20612
20613         /*
20614          * Finally, make sure that changes to the mapped area
20615          * do not percolate back to the file as seen by read().
20616          * (This is a bug on some variants of i386 svr4.0.)
20617          */
20618         for (i = 0; i < pagesize; ++i)
20619                 *(data2 + i) = *(data2 + i) + 1;
20620         data3 = malloc(pagesize);
20621         if (!data3)
20622                 exit(1);
20623         if (read(fd, data3, pagesize) != pagesize)
20624                 exit(1);
20625         for (i = 0; i < pagesize; ++i)
20626                 if (*(data + i) != *(data3 + i))
20627                         exit(1);
20628         close(fd);
20629         unlink("conftestmmap");
20630         exit(0);
20631 }
20632
20633 EOF
20634 if { (eval echo configure:20635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20635 then
20636   ac_cv_func_mmap_fixed_mapped=yes
20637 else
20638   echo "configure: failed program was:" >&5
20639   cat conftest.$ac_ext >&5
20640   rm -fr conftest*
20641   ac_cv_func_mmap_fixed_mapped=no
20642 fi
20643 rm -fr conftest*
20644 fi
20645
20646 fi
20647
20648 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
20649 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20650   cat >> confdefs.h <<\EOF
20651 #define HAVE_MMAP 1
20652 EOF
20653
20654 fi
20655
20656
20657   # Establish limits on memory usage during 'make check'
20658   
20659   
20660   setrlimit_have_headers=yes
20661   for ac_hdr in sys/resource.h unistd.h
20662 do
20663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20665 echo "configure:20666: checking for $ac_hdr" >&5
20666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20667   echo $ac_n "(cached) $ac_c" 1>&6
20668 else
20669   cat > conftest.$ac_ext <<EOF
20670 #line 20671 "configure"
20671 #include "confdefs.h"
20672 #include <$ac_hdr>
20673 EOF
20674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20675 { (eval echo configure:20676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20677 if test -z "$ac_err"; then
20678   rm -rf conftest*
20679   eval "ac_cv_header_$ac_safe=yes"
20680 else
20681   echo "$ac_err" >&5
20682   echo "configure: failed program was:" >&5
20683   cat conftest.$ac_ext >&5
20684   rm -rf conftest*
20685   eval "ac_cv_header_$ac_safe=no"
20686 fi
20687 rm -f conftest*
20688 fi
20689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20690   echo "$ac_t""yes" 1>&6
20691     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20692   cat >> confdefs.h <<EOF
20693 #define $ac_tr_hdr 1
20694 EOF
20695  
20696 else
20697   echo "$ac_t""no" 1>&6
20698 setrlimit_have_headers=no
20699 fi
20700 done
20701
20702   # If don't have the headers, then we can't run the tests now, and we
20703   # won't be seeing any of these during testsuite compilation.
20704   if test $setrlimit_have_headers = yes; then
20705     # Can't do these in a loop, else the resulting syntax is wrong.
20706     
20707   cat > conftest.$ac_ext <<EOF
20708 #line 20709 "configure"
20709 #include "confdefs.h"
20710 #include <sys/resource.h>
20711                   #include <unistd.h>
20712                  
20713 int main() {
20714  int f = RLIMIT_DATA ; 
20715 ; return 0; }
20716 EOF
20717 if { (eval echo configure:20718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20718   rm -rf conftest*
20719   glibcpp_mresult=1
20720 else
20721   echo "configure: failed program was:" >&5
20722   cat conftest.$ac_ext >&5
20723   rm -rf conftest*
20724   glibcpp_mresult=0
20725 fi
20726 rm -f conftest*
20727   cat >> confdefs.h <<EOF
20728 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
20729 EOF
20730
20731
20732     
20733   cat > conftest.$ac_ext <<EOF
20734 #line 20735 "configure"
20735 #include "confdefs.h"
20736 #include <sys/resource.h>
20737                   #include <unistd.h>
20738                  
20739 int main() {
20740  int f = RLIMIT_RSS ; 
20741 ; return 0; }
20742 EOF
20743 if { (eval echo configure:20744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20744   rm -rf conftest*
20745   glibcpp_mresult=1
20746 else
20747   echo "configure: failed program was:" >&5
20748   cat conftest.$ac_ext >&5
20749   rm -rf conftest*
20750   glibcpp_mresult=0
20751 fi
20752 rm -f conftest*
20753   cat >> confdefs.h <<EOF
20754 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
20755 EOF
20756
20757
20758     
20759   cat > conftest.$ac_ext <<EOF
20760 #line 20761 "configure"
20761 #include "confdefs.h"
20762 #include <sys/resource.h>
20763                   #include <unistd.h>
20764                  
20765 int main() {
20766  int f = RLIMIT_VMEM ; 
20767 ; return 0; }
20768 EOF
20769 if { (eval echo configure:20770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20770   rm -rf conftest*
20771   glibcpp_mresult=1
20772 else
20773   echo "configure: failed program was:" >&5
20774   cat conftest.$ac_ext >&5
20775   rm -rf conftest*
20776   glibcpp_mresult=0
20777 fi
20778 rm -f conftest*
20779   cat >> confdefs.h <<EOF
20780 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
20781 EOF
20782
20783
20784     
20785   cat > conftest.$ac_ext <<EOF
20786 #line 20787 "configure"
20787 #include "confdefs.h"
20788 #include <sys/resource.h>
20789                   #include <unistd.h>
20790                  
20791 int main() {
20792  int f = RLIMIT_AS ; 
20793 ; return 0; }
20794 EOF
20795 if { (eval echo configure:20796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20796   rm -rf conftest*
20797   glibcpp_mresult=1
20798 else
20799   echo "configure: failed program was:" >&5
20800   cat conftest.$ac_ext >&5
20801   rm -rf conftest*
20802   glibcpp_mresult=0
20803 fi
20804 rm -f conftest*
20805   cat >> confdefs.h <<EOF
20806 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
20807 EOF
20808
20809
20810
20811     # Check for rlimit, setrlimit.
20812     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
20813   echo $ac_n "(cached) $ac_c" 1>&6
20814 else
20815   
20816       cat > conftest.$ac_ext <<EOF
20817 #line 20818 "configure"
20818 #include "confdefs.h"
20819 #include <sys/resource.h>
20820                       #include <unistd.h>
20821                      
20822 int main() {
20823  struct rlimit r; setrlimit(0, &r);
20824 ; return 0; }
20825 EOF
20826 if { (eval echo configure:20827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20827   rm -rf conftest*
20828   ac_setrlimit=yes
20829 else
20830   echo "configure: failed program was:" >&5
20831   cat conftest.$ac_ext >&5
20832   rm -rf conftest*
20833   ac_setrlimit=no
20834 fi
20835 rm -f conftest*
20836     
20837 fi
20838
20839   fi
20840
20841   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
20842 echo "configure:20843: checking for testsuite memory limit support" >&5
20843   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
20844     ac_mem_limits=yes
20845     cat >> confdefs.h <<\EOF
20846 #define _GLIBCPP_MEM_LIMITS 1
20847 EOF
20848
20849   else
20850     ac_mem_limits=no
20851   fi
20852   echo "$ac_t""$ac_mem_limits" 1>&6
20853
20854
20855   # Look for setenv, so that extended locale tests can be performed.
20856   
20857   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
20858 echo "configure:20859: checking for setenv declaration" >&5
20859   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
20860     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
20861   echo $ac_n "(cached) $ac_c" 1>&6
20862 else
20863   
20864       
20865       ac_ext=C
20866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20867 ac_cpp='$CXXCPP $CPPFLAGS'
20868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20870 cross_compiling=$ac_cv_prog_cxx_cross
20871
20872       cat > conftest.$ac_ext <<EOF
20873 #line 20874 "configure"
20874 #include "confdefs.h"
20875 #include <stdlib.h>
20876 int main() {
20877  setenv(0, 0, 0);
20878 ; return 0; }
20879 EOF
20880 if { (eval echo configure:20881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20881   rm -rf conftest*
20882   glibcpp_cv_func_setenv_use=yes
20883 else
20884   echo "configure: failed program was:" >&5
20885   cat conftest.$ac_ext >&5
20886   rm -rf conftest*
20887   glibcpp_cv_func_setenv_use=no
20888 fi
20889 rm -f conftest*
20890       ac_ext=c
20891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20892 ac_cpp='$CPP $CPPFLAGS'
20893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20895 cross_compiling=$ac_cv_prog_cc_cross
20896
20897     
20898 fi
20899
20900   fi
20901   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
20902   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
20903     for ac_func in setenv
20904 do
20905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20906 echo "configure:20907: checking for $ac_func" >&5
20907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20908   echo $ac_n "(cached) $ac_c" 1>&6
20909 else
20910   cat > conftest.$ac_ext <<EOF
20911 #line 20912 "configure"
20912 #include "confdefs.h"
20913 /* System header to define __stub macros and hopefully few prototypes,
20914     which can conflict with char $ac_func(); below.  */
20915 #include <assert.h>
20916 /* Override any gcc2 internal prototype to avoid an error.  */
20917 /* We use char because int might match the return type of a gcc2
20918     builtin and then its argument prototype would still apply.  */
20919 char $ac_func();
20920
20921 int main() {
20922
20923 /* The GNU C library defines this for functions which it implements
20924     to always fail with ENOSYS.  Some functions are actually named
20925     something starting with __ and the normal name is an alias.  */
20926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20927 choke me
20928 #else
20929 $ac_func();
20930 #endif
20931
20932 ; return 0; }
20933 EOF
20934 if { (eval echo configure:20935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20935   rm -rf conftest*
20936   eval "ac_cv_func_$ac_func=yes"
20937 else
20938   echo "configure: failed program was:" >&5
20939   cat conftest.$ac_ext >&5
20940   rm -rf conftest*
20941   eval "ac_cv_func_$ac_func=no"
20942 fi
20943 rm -f conftest*
20944 fi
20945
20946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20947   echo "$ac_t""yes" 1>&6
20948     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20949   cat >> confdefs.h <<EOF
20950 #define $ac_tr_func 1
20951 EOF
20952  
20953 else
20954   echo "$ac_t""no" 1>&6
20955 fi
20956 done
20957     
20958   fi
20959
20960
20961 fi
20962
20963 # This depends on the possibly-skipped linker test above.
20964 # Check whether --enable-symvers or --disable-symvers was given.
20965 if test "${enable_symvers+set}" = set; then
20966   enableval="$enable_symvers"
20967   case "$enableval" in
20968  yes) enable_symvers=yes ;;
20969  no)  enable_symvers=no ;;
20970  # other names here, just as sanity checks
20971  #gnu|sun|etcetera) enable_symvers=$enableval ;;
20972  gnu) enable_symvers=$enableval ;;
20973  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
20974  esac
20975 else
20976   enable_symvers=yes
20977 fi
20978
20979 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
20980 # don't know enough about $LD to do tricks... 
20981 if test x$enable_shared = xno || 
20982         test x$LD = x || 
20983         test x$glibcpp_gnu_ld_version = x; then
20984   enable_symvers=no
20985 fi
20986
20987 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
20988 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
20989 echo "configure:20990: checking for shared libgcc" >&5
20990 ac_save_CFLAGS="$CFLAGS"
20991 CFLAGS=' -lgcc_s'
20992 cat > conftest.$ac_ext <<EOF
20993 #line 20994 "configure"
20994 #include "confdefs.h"
20995
20996 int main() {
20997 return 0
20998 ; return 0; }
20999 EOF
21000 if { (eval echo configure:21001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21001   rm -rf conftest*
21002   glibcpp_shared_libgcc=yes
21003 else
21004   echo "configure: failed program was:" >&5
21005   cat conftest.$ac_ext >&5
21006   rm -rf conftest*
21007   glibcpp_shared_libgcc=no
21008 fi
21009 rm -f conftest*
21010 CFLAGS="$ac_save_CFLAGS"
21011 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
21012
21013 # For GNU ld, we need at least this version.  It's 2.12 in the same format
21014 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
21015 glibcpp_min_gnu_ld_version=21200
21016
21017 # Check to see if unspecified "yes" value can win, given results
21018 # above.  
21019 if test $enable_symvers = yes ; then
21020   if test $with_gnu_ld = yes &&
21021     test $glibcpp_shared_libgcc = yes ;
21022   then
21023     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
21024         enable_symvers=gnu
21025     else
21026       ac_test_CFLAGS="${CFLAGS+set}"
21027       ac_save_CFLAGS="$CFLAGS"
21028       CFLAGS='-shared -Wl,--version-script,conftest.map'
21029       enable_symvers=no
21030       
21031       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
21032       
21033       cat > conftest.$ac_ext <<EOF
21034 #line 21035 "configure"
21035 #include "confdefs.h"
21036 int foo;
21037 int main() {
21038
21039 ; return 0; }
21040 EOF
21041 if { (eval echo configure:21042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21042   rm -rf conftest*
21043   enable_symvers=gnu
21044 else
21045   echo "configure: failed program was:" >&5
21046   cat conftest.$ac_ext >&5
21047 fi
21048 rm -f conftest*
21049       if test "$ac_test_CFLAGS" = set; then
21050         CFLAGS="$ac_save_CFLAGS"
21051       else
21052         # this is the suspicious part
21053         CFLAGS=''
21054       fi
21055       rm -f conftest.map
21056     fi
21057   else
21058     # just fail for now
21059     enable_symvers=no
21060   fi
21061 fi
21062
21063 case $enable_symvers in
21064   no)
21065       LINKER_MAP=config/linker-map.dummy
21066       ;;
21067   gnu)
21068       LINKER_MAP=config/linker-map.gnu
21069       ;;
21070 esac
21071
21072
21073
21074
21075 if test $enable_symvers != no; then
21076   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
21077   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
21078 else
21079   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
21080   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
21081 fi
21082 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
21083 echo "configure:21084: checking versioning on shared library symbols" >&5
21084 echo "$ac_t""$enable_symvers" 1>&6
21085
21086
21087 # Propagate the target-specific source directories through the build chain.
21088 OS_INC_SRCDIR=$os_include_dir/bits
21089 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
21090 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
21091
21092
21093
21094
21095 # Set up cross-compile flags
21096
21097
21098
21099 if test "$CANADIAN" = yes; then
21100   CANADIAN_TRUE=
21101   CANADIAN_FALSE='#'
21102 else
21103   CANADIAN_TRUE='#'
21104   CANADIAN_FALSE=
21105 fi
21106  
21107 cat > confcache <<\EOF
21108 # This file is a shell script that caches the results of configure
21109 # tests run on this system so they can be shared between configure
21110 # scripts and configure runs.  It is not useful on other systems.
21111 # If it contains results you don't want to keep, you may remove or edit it.
21112 #
21113 # By default, configure uses ./config.cache as the cache file,
21114 # creating it if it does not exist already.  You can give configure
21115 # the --cache-file=FILE option to use a different cache file; that is
21116 # what configure does when it calls configure scripts in
21117 # subdirectories, so they share the cache.
21118 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21119 # config.status only pays attention to the cache file if you give it the
21120 # --recheck option to rerun configure.
21121 #
21122 EOF
21123 # The following way of writing the cache mishandles newlines in values,
21124 # but we know of no workaround that is simple, portable, and efficient.
21125 # So, don't put newlines in cache variables' values.
21126 # Ultrix sh set writes to stderr and can't be redirected directly,
21127 # and sets the high bit in the cache file unless we assign to the vars.
21128 (set) 2>&1 |
21129   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21130   *ac_space=\ *)
21131     # `set' does not quote correctly, so add quotes (double-quote substitution
21132     # turns \\\\ into \\, and sed turns \\ into \).
21133     sed -n \
21134       -e "s/'/'\\\\''/g" \
21135       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21136     ;;
21137   *)
21138     # `set' quotes correctly as required by POSIX, so do not add quotes.
21139     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21140     ;;
21141   esac >> confcache
21142 if cmp -s $cache_file confcache; then
21143   :
21144 else
21145   if test -w $cache_file; then
21146     echo "updating cache $cache_file"
21147     cat confcache > $cache_file
21148   else
21149     echo "not updating unwritable cache $cache_file"
21150   fi
21151 fi
21152 rm -f confcache
21153
21154
21155 if test "${multilib}" = "yes"; then
21156   multilib_arg="--enable-multilib"
21157 else
21158   multilib_arg=
21159 fi
21160
21161 # Needed so that g++ can find the correct include subdir automatically.
21162 INTERFACE=v3
21163
21164 # Export all the install information
21165
21166 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
21167 # exported correctly in GLIBCPP_CONFIGURE.
21168 glibcpp_toolexecdir=no
21169 glibcpp_toolexeclibdir=no
21170 glibcpp_prefixdir=${prefix}
21171
21172 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
21173 echo "configure:21174: checking for interface version number" >&5
21174 libstdcxx_interface=$INTERFACE
21175 echo "$ac_t""$libstdcxx_interface" 1>&6
21176
21177 # Process the option --with-gxx-include-dir=<path to include-files directory>
21178 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
21179 echo "configure:21180: checking for --with-gxx-include-dir" >&5
21180 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
21181 if test "${with_gxx_include_dir+set}" = set; then
21182   withval="$with_gxx_include_dir"
21183   case "${withval}" in
21184   yes)
21185     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
21186     gxx_include_dir=no
21187     ;;
21188   no)
21189     gxx_include_dir=no
21190     ;;
21191   *)
21192     gxx_include_dir=${withval}
21193     ;;
21194 esac
21195 else
21196   gxx_include_dir=no
21197 fi
21198
21199 echo "$ac_t""$gxx_include_dir" 1>&6
21200
21201 # Process the option "--enable-version-specific-runtime-libs"
21202 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
21203 echo "configure:21204: checking for --enable-version-specific-runtime-libs" >&5
21204 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
21205 if test "${enable_version_specific_runtime_libs+set}" = set; then
21206   enableval="$enable_version_specific_runtime_libs"
21207   case "$enableval" in
21208  yes) version_specific_libs=yes ;;
21209  no)  version_specific_libs=no ;;
21210  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
21211  esac
21212 else
21213   version_specific_libs=no
21214 fi
21215 # Option set, now we can test it.
21216 echo "$ac_t""$version_specific_libs" 1>&6
21217
21218 if test $version_specific_libs = yes; then
21219   # Need the gcc compiler version to know where to install libraries
21220   # and header files if --enable-version-specific-runtime-libs option
21221   # is selected.
21222     gcc_version_trigger=${srcdir}/../gcc/version.c
21223   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
21224   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
21225   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
21226   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21227   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
21228   fi
21229
21230 # Default case for install directory for include files.
21231 if test $version_specific_libs = no &&
21232    test $gxx_include_dir = no; then
21233   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
21234 fi
21235
21236 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
21237 # Install a library built with a cross compiler in tooldir, not libdir.
21238 if test x"$glibcpp_toolexecdir" = x"no"; then 
21239   if test -n "$with_cross_host" &&
21240      test x"$with_cross_host" != x"no"; then
21241     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
21242     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
21243   else
21244     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21245     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
21246   fi
21247 fi
21248
21249 echo $ac_n "checking for install location""... $ac_c" 1>&6
21250 echo "configure:21251: checking for install location" >&5
21251 echo "$ac_t""$gxx_include_dir" 1>&6
21252
21253
21254
21255
21256
21257
21258
21259 # Export all the include and flag information to makefiles.
21260
21261   # Root level of the build directory include sources.
21262   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
21263
21264   # Passed down for canadian crosses.
21265   if test x"$CANADIAN" = xyes; then
21266     TOPLEVEL_INCLUDES='-I$(includedir)'
21267   fi
21268
21269   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
21270
21271   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
21272
21273   if test x"$need_libio" = xyes; then
21274     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
21275     
21276   fi
21277
21278   # Now, export this to all the little Makefiles....
21279   
21280   
21281   
21282   
21283
21284
21285   # Optimization flags that are probably a good idea for thrill-seekers. Just
21286   # uncomment the lines below and make, everything else is ready to go... 
21287   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
21288   OPTIMIZE_CXXFLAGS=
21289   
21290
21291   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
21292   
21293
21294
21295 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
21296    grep "enable shared" > /dev/null; then
21297   LIBSUPCXX_PICFLAGS=-prefer-pic
21298 else
21299   LIBSUPCXX_PICFLAGS=
21300 fi
21301
21302
21303 # Generate the various Makefiles, include files, and scripts.
21304 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
21305 # and libsupc++/Makefile.am so that multilib installs will end up
21306 # installed in the correct place. To work around this not being passed
21307 # down from config-ml.in -> top_srcdir/Makefile.am ->
21308 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
21309 trap '' 1 2 15
21310 cat > confcache <<\EOF
21311 # This file is a shell script that caches the results of configure
21312 # tests run on this system so they can be shared between configure
21313 # scripts and configure runs.  It is not useful on other systems.
21314 # If it contains results you don't want to keep, you may remove or edit it.
21315 #
21316 # By default, configure uses ./config.cache as the cache file,
21317 # creating it if it does not exist already.  You can give configure
21318 # the --cache-file=FILE option to use a different cache file; that is
21319 # what configure does when it calls configure scripts in
21320 # subdirectories, so they share the cache.
21321 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21322 # config.status only pays attention to the cache file if you give it the
21323 # --recheck option to rerun configure.
21324 #
21325 EOF
21326 # The following way of writing the cache mishandles newlines in values,
21327 # but we know of no workaround that is simple, portable, and efficient.
21328 # So, don't put newlines in cache variables' values.
21329 # Ultrix sh set writes to stderr and can't be redirected directly,
21330 # and sets the high bit in the cache file unless we assign to the vars.
21331 (set) 2>&1 |
21332   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21333   *ac_space=\ *)
21334     # `set' does not quote correctly, so add quotes (double-quote substitution
21335     # turns \\\\ into \\, and sed turns \\ into \).
21336     sed -n \
21337       -e "s/'/'\\\\''/g" \
21338       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21339     ;;
21340   *)
21341     # `set' quotes correctly as required by POSIX, so do not add quotes.
21342     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21343     ;;
21344   esac >> confcache
21345 if cmp -s $cache_file confcache; then
21346   :
21347 else
21348   if test -w $cache_file; then
21349     echo "updating cache $cache_file"
21350     cat confcache > $cache_file
21351   else
21352     echo "not updating unwritable cache $cache_file"
21353   fi
21354 fi
21355 rm -f confcache
21356
21357 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21358
21359 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21360 # Let make expand exec_prefix.
21361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21362
21363 # Any assignment to VPATH causes Sun make to only execute
21364 # the first set of double-colon rules, so remove it if not needed.
21365 # If there is a colon in the path, we need to keep it.
21366 if test "x$srcdir" = x.; then
21367   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
21368 fi
21369
21370 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21371
21372 DEFS=-DHAVE_CONFIG_H
21373
21374 # Without the "./", some shells look in PATH for config.status.
21375 : ${CONFIG_STATUS=./config.status}
21376
21377 echo creating $CONFIG_STATUS
21378 rm -f $CONFIG_STATUS
21379 cat > $CONFIG_STATUS <<EOF
21380 #! /bin/sh
21381 # Generated automatically by configure.
21382 # Run this file to recreate the current configuration.
21383 # This directory was configured as follows,
21384 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21385 #
21386 # $0 $ac_configure_args
21387 #
21388 # Compiler output produced by configure, useful for debugging
21389 # configure, is in ./config.log if it exists.
21390
21391 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21392 for ac_option
21393 do
21394   case "\$ac_option" in
21395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21396     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21397     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21398   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21399     echo "$CONFIG_STATUS generated by autoconf version 2.13"
21400     exit 0 ;;
21401   -help | --help | --hel | --he | --h)
21402     echo "\$ac_cs_usage"; exit 0 ;;
21403   *) echo "\$ac_cs_usage"; exit 1 ;;
21404   esac
21405 done
21406
21407 ac_given_srcdir=$srcdir
21408 ac_given_INSTALL="$INSTALL"
21409
21410 trap 'rm -fr `echo "Makefile \
21411     include/Makefile src/Makefile \
21412     libmath/Makefile libio/Makefile libsupc++/Makefile \
21413     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21414 EOF
21415 cat >> $CONFIG_STATUS <<EOF
21416
21417 # Protect against being on the right side of a sed subst in config.status.
21418 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21419  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21420 $ac_vpsub
21421 $extrasub
21422 s%@SHELL@%$SHELL%g
21423 s%@CFLAGS@%$CFLAGS%g
21424 s%@CPPFLAGS@%$CPPFLAGS%g
21425 s%@CXXFLAGS@%$CXXFLAGS%g
21426 s%@FFLAGS@%$FFLAGS%g
21427 s%@DEFS@%$DEFS%g
21428 s%@LDFLAGS@%$LDFLAGS%g
21429 s%@LIBS@%$LIBS%g
21430 s%@exec_prefix@%$exec_prefix%g
21431 s%@prefix@%$prefix%g
21432 s%@program_transform_name@%$program_transform_name%g
21433 s%@bindir@%$bindir%g
21434 s%@sbindir@%$sbindir%g
21435 s%@libexecdir@%$libexecdir%g
21436 s%@datadir@%$datadir%g
21437 s%@sysconfdir@%$sysconfdir%g
21438 s%@sharedstatedir@%$sharedstatedir%g
21439 s%@localstatedir@%$localstatedir%g
21440 s%@libdir@%$libdir%g
21441 s%@includedir@%$includedir%g
21442 s%@oldincludedir@%$oldincludedir%g
21443 s%@infodir@%$infodir%g
21444 s%@mandir@%$mandir%g
21445 s%@PACKAGE@%$PACKAGE%g
21446 s%@release_VERSION@%$release_VERSION%g
21447 s%@libtool_VERSION@%$libtool_VERSION%g
21448 s%@host@%$host%g
21449 s%@host_alias@%$host_alias%g
21450 s%@host_cpu@%$host_cpu%g
21451 s%@host_vendor@%$host_vendor%g
21452 s%@host_os@%$host_os%g
21453 s%@target@%$target%g
21454 s%@target_alias@%$target_alias%g
21455 s%@target_cpu@%$target_cpu%g
21456 s%@target_vendor@%$target_vendor%g
21457 s%@target_os@%$target_os%g
21458 s%@build@%$build%g
21459 s%@build_alias@%$build_alias%g
21460 s%@build_cpu@%$build_cpu%g
21461 s%@build_vendor@%$build_vendor%g
21462 s%@build_os@%$build_os%g
21463 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21464 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21465 s%@INSTALL_DATA@%$INSTALL_DATA%g
21466 s%@VERSION@%$VERSION%g
21467 s%@ACLOCAL@%$ACLOCAL%g
21468 s%@AUTOCONF@%$AUTOCONF%g
21469 s%@AUTOMAKE@%$AUTOMAKE%g
21470 s%@AUTOHEADER@%$AUTOHEADER%g
21471 s%@MAKEINFO@%$MAKEINFO%g
21472 s%@SET_MAKE@%$SET_MAKE%g
21473 s%@toplevel_srcdir@%$toplevel_srcdir%g
21474 s%@glibcpp_builddir@%$glibcpp_builddir%g
21475 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
21476 s%@AWK@%$AWK%g
21477 s%@LN_S@%$LN_S%g
21478 s%@glibcpp_basedir@%$glibcpp_basedir%g
21479 s%@CC@%$CC%g
21480 s%@glibcpp_CXX@%$glibcpp_CXX%g
21481 s%@AS@%$AS%g
21482 s%@AR@%$AR%g
21483 s%@RANLIB@%$RANLIB%g
21484 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
21485 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
21486 s%@MAINT@%$MAINT%g
21487 s%@EXEEXT@%$EXEEXT%g
21488 s%@OBJEXT@%$OBJEXT%g
21489 s%@STRIP@%$STRIP%g
21490 s%@LIBTOOL@%$LIBTOOL%g
21491 s%@CXXCPP@%$CXXCPP%g
21492 s%@enable_shared@%$enable_shared%g
21493 s%@enable_static@%$enable_static%g
21494 s%@ifGNUmake@%$ifGNUmake%g
21495 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
21496 s%@CPP@%$CPP%g
21497 s%@CSTDIO_H@%$CSTDIO_H%g
21498 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
21499 s%@CCODECVT_C@%$CCODECVT_C%g
21500 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
21501 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
21502 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
21503 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
21504 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
21505 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
21506 s%@libio_la@%$libio_la%g
21507 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
21508 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
21509 s%@glibcpp_localedir@%$glibcpp_localedir%g
21510 s%@USE_NLS@%$USE_NLS%g
21511 s%@CLOCALE_H@%$CLOCALE_H%g
21512 s%@CCODECVT_H@%$CCODECVT_H%g
21513 s%@CMESSAGES_H@%$CMESSAGES_H%g
21514 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
21515 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
21516 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
21517 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
21518 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
21519 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
21520 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
21521 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
21522 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
21523 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
21524 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
21525 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
21526 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
21527 s%@WERROR@%$WERROR%g
21528 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
21529 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
21530 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
21531 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
21532 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
21533 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
21534 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
21535 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
21536 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
21537 s%@gxx_include_dir@%$gxx_include_dir%g
21538 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
21539 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
21540 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
21541 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
21542 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
21543 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
21544 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
21545 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
21546 s%@WARN_FLAGS@%$WARN_FLAGS%g
21547 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
21548
21549 CEOF
21550 EOF
21551
21552 cat >> $CONFIG_STATUS <<\EOF
21553
21554 # Split the substitutions into bite-sized pieces for seds with
21555 # small command number limits, like on Digital OSF/1 and HP-UX.
21556 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21557 ac_file=1 # Number of current file.
21558 ac_beg=1 # First line for current file.
21559 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21560 ac_more_lines=:
21561 ac_sed_cmds=""
21562 while $ac_more_lines; do
21563   if test $ac_beg -gt 1; then
21564     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21565   else
21566     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21567   fi
21568   if test ! -s conftest.s$ac_file; then
21569     ac_more_lines=false
21570     rm -f conftest.s$ac_file
21571   else
21572     if test -z "$ac_sed_cmds"; then
21573       ac_sed_cmds="sed -f conftest.s$ac_file"
21574     else
21575       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21576     fi
21577     ac_file=`expr $ac_file + 1`
21578     ac_beg=$ac_end
21579     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21580   fi
21581 done
21582 if test -z "$ac_sed_cmds"; then
21583   ac_sed_cmds=cat
21584 fi
21585 EOF
21586
21587 cat >> $CONFIG_STATUS <<EOF
21588
21589 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
21590     include/Makefile src/Makefile \
21591     libmath/Makefile libio/Makefile libsupc++/Makefile \
21592     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
21593 EOF
21594 cat >> $CONFIG_STATUS <<\EOF
21595 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21596   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21597   case "$ac_file" in
21598   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21599        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21600   *) ac_file_in="${ac_file}.in" ;;
21601   esac
21602
21603   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21604
21605   # Remove last slash and all that follows it.  Not all systems have dirname.
21606   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21607   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21608     # The file is in a subdirectory.
21609     test ! -d "$ac_dir" && mkdir "$ac_dir"
21610     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21611     # A "../" for each directory in $ac_dir_suffix.
21612     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21613   else
21614     ac_dir_suffix= ac_dots=
21615   fi
21616
21617   case "$ac_given_srcdir" in
21618   .)  srcdir=.
21619       if test -z "$ac_dots"; then top_srcdir=.
21620       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21621   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21622   *) # Relative path.
21623     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21624     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21625   esac
21626
21627   case "$ac_given_INSTALL" in
21628   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21629   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21630   esac
21631
21632   echo creating "$ac_file"
21633   rm -f "$ac_file"
21634   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21635   case "$ac_file" in
21636   *Makefile*) ac_comsub="1i\\
21637 # $configure_input" ;;
21638   *) ac_comsub= ;;
21639   esac
21640
21641   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21642   sed -e "$ac_comsub
21643 s%@configure_input@%$configure_input%g
21644 s%@srcdir@%$srcdir%g
21645 s%@top_srcdir@%$top_srcdir%g
21646 s%@INSTALL@%$INSTALL%g
21647 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21648 fi; done
21649 rm -f conftest.s*
21650
21651 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21652 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21653 #
21654 # ac_d sets the value in "#define NAME VALUE" lines.
21655 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21656 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21657 ac_dC='\3'
21658 ac_dD='%g'
21659 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21660 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21661 ac_uB='\([      ]\)%\1#\2define\3'
21662 ac_uC=' '
21663 ac_uD='\4%g'
21664 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21665 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21666 ac_eB='$%\1#\2define\3'
21667 ac_eC=' '
21668 ac_eD='%g'
21669
21670 if test "${CONFIG_HEADERS+set}" != set; then
21671 EOF
21672 cat >> $CONFIG_STATUS <<EOF
21673   CONFIG_HEADERS="config.h"
21674 EOF
21675 cat >> $CONFIG_STATUS <<\EOF
21676 fi
21677 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21678   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21679   case "$ac_file" in
21680   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21681        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21682   *) ac_file_in="${ac_file}.in" ;;
21683   esac
21684
21685   echo creating $ac_file
21686
21687   rm -f conftest.frag conftest.in conftest.out
21688   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21689   cat $ac_file_inputs > conftest.in
21690
21691 EOF
21692
21693 # Transform confdefs.h into a sed script conftest.vals that substitutes
21694 # the proper values into config.h.in to produce config.h.  And first:
21695 # Protect against being on the right side of a sed subst in config.status.
21696 # Protect against being in an unquoted here document in config.status.
21697 rm -f conftest.vals
21698 cat > conftest.hdr <<\EOF
21699 s/[\\&%]/\\&/g
21700 s%[\\$`]%\\&%g
21701 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21702 s%ac_d%ac_u%gp
21703 s%ac_u%ac_e%gp
21704 EOF
21705 sed -n -f conftest.hdr confdefs.h > conftest.vals
21706 rm -f conftest.hdr
21707
21708 # This sed command replaces #undef with comments.  This is necessary, for
21709 # example, in the case of _POSIX_SOURCE, which is predefined and required
21710 # on some systems where configure will not decide to define it.
21711 cat >> conftest.vals <<\EOF
21712 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21713 EOF
21714
21715 # Break up conftest.vals because some shells have a limit on
21716 # the size of here documents, and old seds have small limits too.
21717
21718 rm -f conftest.tail
21719 while :
21720 do
21721   ac_lines=`grep -c . conftest.vals`
21722   # grep -c gives empty output for an empty file on some AIX systems.
21723   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21724   # Write a limited-size here document to conftest.frag.
21725   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21726   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21727   echo 'CEOF
21728   sed -f conftest.frag conftest.in > conftest.out
21729   rm -f conftest.in
21730   mv conftest.out conftest.in
21731 ' >> $CONFIG_STATUS
21732   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21733   rm -f conftest.vals
21734   mv conftest.tail conftest.vals
21735 done
21736 rm -f conftest.vals
21737
21738 cat >> $CONFIG_STATUS <<\EOF
21739   rm -f conftest.frag conftest.h
21740   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21741   cat conftest.in >> conftest.h
21742   rm -f conftest.in
21743   if cmp -s $ac_file conftest.h 2>/dev/null; then
21744     echo "$ac_file is unchanged"
21745     rm -f conftest.h
21746   else
21747     # Remove last slash and all that follows it.  Not all systems have dirname.
21748       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21749       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21750       # The file is in a subdirectory.
21751       test ! -d "$ac_dir" && mkdir "$ac_dir"
21752     fi
21753     rm -f $ac_file
21754     mv conftest.h $ac_file
21755   fi
21756 fi; done
21757
21758 EOF
21759
21760 cat >> $CONFIG_STATUS <<EOF
21761 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
21762 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"
21763 EOF
21764
21765 cat >> $CONFIG_STATUS <<\EOF
21766 srcdir=$ac_given_srcdir
21767 while test -n "$ac_sources"; do
21768   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21769   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21770
21771   echo "linking $srcdir/$ac_source to $ac_dest"
21772
21773   if test ! -r $srcdir/$ac_source; then
21774     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
21775   fi
21776   rm -f $ac_dest
21777
21778   # Make relative symlinks.
21779   # Remove last slash and all that follows it.  Not all systems have dirname.
21780   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
21781   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
21782     # The dest file is in a subdirectory.
21783     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
21784     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
21785     # A "../" for each directory in $ac_dest_dir_suffix.
21786     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
21787   else
21788     ac_dest_dir_suffix= ac_dots=
21789   fi
21790
21791   case "$srcdir" in
21792   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
21793   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
21794   esac
21795
21796   # Make a symlink if possible; otherwise try a hard link.
21797   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21798     ln $srcdir/$ac_source $ac_dest; then :
21799   else
21800     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
21801   fi
21802 done
21803 EOF
21804 cat >> $CONFIG_STATUS <<EOF
21805
21806 srcdir=${srcdir}
21807 host=${host}
21808 target=${target}
21809 with_multisubdir=${with_multisubdir}
21810 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21811 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21812 glibcpp_basedir=${glibcpp_basedir}
21813 CC="${CC}"
21814 CXX="${CXX}"
21815
21816 EOF
21817 cat >> $CONFIG_STATUS <<\EOF
21818 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
21819 if test -n "$CONFIG_FILES"; then
21820   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
21821   grep '^MULTISUBDIR =' Makefile >> src/Makefile
21822   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
21823 fi
21824 chmod +x mkcheck
21825 chmod +x testsuite_flags
21826
21827 exit 0
21828 EOF
21829 chmod +x $CONFIG_STATUS
21830 rm -fr confdefs* $ac_clean_files
21831 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21832
21833
21834
21835 # Sanity checking & User-visible messages.
21836 # Checks down here, otherwise they get scrolled off before
21837 # the user will notice.
21838
21839 # Trying to get more people to read documentation.  Possibly remove
21840 # check and warn all the time. There is no "informational" AC_MSG_
21841 # macro, so these are going to be printed even when --quiet/--silent
21842 # is given.
21843 if test ! -f stamp-sanity-warned; then
21844   touch stamp-sanity-warned
21845   echo ""
21846   echo "Please make certain that you read the installation information here:"
21847   echo "  faster => ${srcdir}/docs/install.html"
21848   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
21849   echo ""
21850   echo "and the configuration information here:"
21851   echo "  faster => ${srcdir}/docs/configopts.html"
21852   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
21853   echo ""
21854   echo "before proceeding with ${_cv_gnu_make_command}."
21855   echo ""
21856 fi