OSDN Git Service

2002-06-18 Phil Edwards <pme@gcc.gnu.org>
[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-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 sitefile=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
106
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
113
114 ac_prev=
115 for ac_option
116 do
117
118   # If the previous option needs an argument, assign it.
119   if test -n "$ac_prev"; then
120     eval "$ac_prev=\$ac_option"
121     ac_prev=
122     continue
123   fi
124
125   case "$ac_option" in
126   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127   *) ac_optarg= ;;
128   esac
129
130   # Accept the important Cygnus configure options, so we can diagnose typos.
131
132   case "$ac_option" in
133
134   -bindir | --bindir | --bindi | --bind | --bin | --bi)
135     ac_prev=bindir ;;
136   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137     bindir="$ac_optarg" ;;
138
139   -build | --build | --buil | --bui | --bu)
140     ac_prev=build ;;
141   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142     build="$ac_optarg" ;;
143
144   -cache-file | --cache-file | --cache-fil | --cache-fi \
145   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146     ac_prev=cache_file ;;
147   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149     cache_file="$ac_optarg" ;;
150
151   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152     ac_prev=datadir ;;
153   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154   | --da=*)
155     datadir="$ac_optarg" ;;
156
157   -disable-* | --disable-*)
158     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159     # Reject names that are not valid shell variable names.
160     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162     fi
163     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164     eval "enable_${ac_feature}=no" ;;
165
166   -enable-* | --enable-*)
167     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168     # Reject names that are not valid shell variable names.
169     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171     fi
172     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173     case "$ac_option" in
174       *=*) ;;
175       *) ac_optarg=yes ;;
176     esac
177     eval "enable_${ac_feature}='$ac_optarg'" ;;
178
179   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181   | --exec | --exe | --ex)
182     ac_prev=exec_prefix ;;
183   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185   | --exec=* | --exe=* | --ex=*)
186     exec_prefix="$ac_optarg" ;;
187
188   -gas | --gas | --ga | --g)
189     # Obsolete; use --with-gas.
190     with_gas=yes ;;
191
192   -help | --help | --hel | --he)
193     # Omit some internal or obsolete options to make the list less imposing.
194     # This message is too long to be a string in the A/UX 3.1 sh.
195     cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199   --cache-file=FILE       cache test results in FILE
200   --help                  print this message
201   --no-create             do not create output files
202   --quiet, --silent       do not print \`checking...' messages
203   --site-file=FILE        use FILE as the site file
204   --version               print the version of autoconf that created configure
205 Directory and file names:
206   --prefix=PREFIX         install architecture-independent files in PREFIX
207                           [$ac_default_prefix]
208   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
209                           [same as prefix]
210   --bindir=DIR            user executables in DIR [EPREFIX/bin]
211   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
212   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
213   --datadir=DIR           read-only architecture-independent data in DIR
214                           [PREFIX/share]
215   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
216   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
217                           [PREFIX/com]
218   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
219   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
220   --includedir=DIR        C header files in DIR [PREFIX/include]
221   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
222   --infodir=DIR           info documentation in DIR [PREFIX/info]
223   --mandir=DIR            man documentation in DIR [PREFIX/man]
224   --srcdir=DIR            find the sources in DIR [configure dir or ..]
225   --program-prefix=PREFIX prepend PREFIX to installed program names
226   --program-suffix=SUFFIX append SUFFIX to installed program names
227   --program-transform-name=PROGRAM
228                           run sed PROGRAM on installed program names
229 EOF
230     cat << EOF
231 Host type:
232   --build=BUILD           configure for building on BUILD [BUILD=HOST]
233   --host=HOST             configure for HOST [guessed]
234   --target=TARGET         configure for TARGET [TARGET=HOST]
235 Features and packages:
236   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
237   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
238   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
239   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
240   --x-includes=DIR        X include files are in DIR
241   --x-libraries=DIR       X library files are in DIR
242 EOF
243     if test -n "$ac_help"; then
244       echo "--enable and --with options recognized:$ac_help"
245     fi
246     exit 0 ;;
247
248   -host | --host | --hos | --ho)
249     ac_prev=host ;;
250   -host=* | --host=* | --hos=* | --ho=*)
251     host="$ac_optarg" ;;
252
253   -includedir | --includedir | --includedi | --included | --include \
254   | --includ | --inclu | --incl | --inc)
255     ac_prev=includedir ;;
256   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257   | --includ=* | --inclu=* | --incl=* | --inc=*)
258     includedir="$ac_optarg" ;;
259
260   -infodir | --infodir | --infodi | --infod | --info | --inf)
261     ac_prev=infodir ;;
262   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263     infodir="$ac_optarg" ;;
264
265   -libdir | --libdir | --libdi | --libd)
266     ac_prev=libdir ;;
267   -libdir=* | --libdir=* | --libdi=* | --libd=*)
268     libdir="$ac_optarg" ;;
269
270   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271   | --libexe | --libex | --libe)
272     ac_prev=libexecdir ;;
273   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274   | --libexe=* | --libex=* | --libe=*)
275     libexecdir="$ac_optarg" ;;
276
277   -localstatedir | --localstatedir | --localstatedi | --localstated \
278   | --localstate | --localstat | --localsta | --localst \
279   | --locals | --local | --loca | --loc | --lo)
280     ac_prev=localstatedir ;;
281   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284     localstatedir="$ac_optarg" ;;
285
286   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287     ac_prev=mandir ;;
288   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289     mandir="$ac_optarg" ;;
290
291   -nfp | --nfp | --nf)
292     # Obsolete; use --without-fp.
293     with_fp=no ;;
294
295   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296   | --no-cr | --no-c)
297     no_create=yes ;;
298
299   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301     no_recursion=yes ;;
302
303   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305   | --oldin | --oldi | --old | --ol | --o)
306     ac_prev=oldincludedir ;;
307   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310     oldincludedir="$ac_optarg" ;;
311
312   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313     ac_prev=prefix ;;
314   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315     prefix="$ac_optarg" ;;
316
317   -program-prefix | --program-prefix | --program-prefi | --program-pref \
318   | --program-pre | --program-pr | --program-p)
319     ac_prev=program_prefix ;;
320   -program-prefix=* | --program-prefix=* | --program-prefi=* \
321   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322     program_prefix="$ac_optarg" ;;
323
324   -program-suffix | --program-suffix | --program-suffi | --program-suff \
325   | --program-suf | --program-su | --program-s)
326     ac_prev=program_suffix ;;
327   -program-suffix=* | --program-suffix=* | --program-suffi=* \
328   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329     program_suffix="$ac_optarg" ;;
330
331   -program-transform-name | --program-transform-name \
332   | --program-transform-nam | --program-transform-na \
333   | --program-transform-n | --program-transform- \
334   | --program-transform | --program-transfor \
335   | --program-transfo | --program-transf \
336   | --program-trans | --program-tran \
337   | --progr-tra | --program-tr | --program-t)
338     ac_prev=program_transform_name ;;
339   -program-transform-name=* | --program-transform-name=* \
340   | --program-transform-nam=* | --program-transform-na=* \
341   | --program-transform-n=* | --program-transform-=* \
342   | --program-transform=* | --program-transfor=* \
343   | --program-transfo=* | --program-transf=* \
344   | --program-trans=* | --program-tran=* \
345   | --progr-tra=* | --program-tr=* | --program-t=*)
346     program_transform_name="$ac_optarg" ;;
347
348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349   | -silent | --silent | --silen | --sile | --sil)
350     silent=yes ;;
351
352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353     ac_prev=sbindir ;;
354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355   | --sbi=* | --sb=*)
356     sbindir="$ac_optarg" ;;
357
358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360   | --sharedst | --shareds | --shared | --share | --shar \
361   | --sha | --sh)
362     ac_prev=sharedstatedir ;;
363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366   | --sha=* | --sh=*)
367     sharedstatedir="$ac_optarg" ;;
368
369   -site | --site | --sit)
370     ac_prev=site ;;
371   -site=* | --site=* | --sit=*)
372     site="$ac_optarg" ;;
373
374   -site-file | --site-file | --site-fil | --site-fi | --site-f)
375     ac_prev=sitefile ;;
376   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
377     sitefile="$ac_optarg" ;;
378
379   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380     ac_prev=srcdir ;;
381   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382     srcdir="$ac_optarg" ;;
383
384   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385   | --syscon | --sysco | --sysc | --sys | --sy)
386     ac_prev=sysconfdir ;;
387   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389     sysconfdir="$ac_optarg" ;;
390
391   -target | --target | --targe | --targ | --tar | --ta | --t)
392     ac_prev=target ;;
393   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394     target="$ac_optarg" ;;
395
396   -v | -verbose | --verbose | --verbos | --verbo | --verb)
397     verbose=yes ;;
398
399   -version | --version | --versio | --versi | --vers)
400     echo "configure generated by autoconf version 2.13"
401     exit 0 ;;
402
403   -with-* | --with-*)
404     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     case "$ac_option" in
411       *=*) ;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "with_${ac_package}='$ac_optarg'" ;;
415
416   -without-* | --without-*)
417     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418     # Reject names that are not valid shell variable names.
419     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421     fi
422     ac_package=`echo $ac_package| sed 's/-/_/g'`
423     eval "with_${ac_package}=no" ;;
424
425   --x)
426     # Obsolete; use --with-x.
427     with_x=yes ;;
428
429   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430   | --x-incl | --x-inc | --x-in | --x-i)
431     ac_prev=x_includes ;;
432   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434     x_includes="$ac_optarg" ;;
435
436   -x-libraries | --x-libraries | --x-librarie | --x-librari \
437   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438     ac_prev=x_libraries ;;
439   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441     x_libraries="$ac_optarg" ;;
442
443   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444     ;;
445
446   *)
447     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448       echo "configure: warning: $ac_option: invalid host type" 1>&2
449     fi
450     if test "x$nonopt" != xNONE; then
451       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452     fi
453     nonopt="$ac_option"
454     ;;
455
456   esac
457 done
458
459 if test -n "$ac_prev"; then
460   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 fi
462
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464
465 # File descriptor usage:
466 # 0 standard input
467 # 1 file creation
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
474   exec 6>/dev/null
475 else
476   exec 6>&1
477 fi
478 exec 5>./config.log
479
480 echo "\
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
483 " 1>&5
484
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
487 ac_configure_args=
488 for ac_arg
489 do
490   case "$ac_arg" in
491   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492   | --no-cr | --no-c) ;;
493   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498   esac
499 done
500
501 # NLS nuisances.
502 # Only set these to C if already set.  These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
510
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 echo > confdefs.h
515
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=src/ios.cc
519
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522   ac_srcdir_defaulted=yes
523   # Try the directory containing this script, then its parent.
524   ac_prog=$0
525   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527   srcdir=$ac_confdir
528   if test ! -r $srcdir/$ac_unique_file; then
529     srcdir=..
530   fi
531 else
532   ac_srcdir_defaulted=no
533 fi
534 if test ! -r $srcdir/$ac_unique_file; then
535   if test "$ac_srcdir_defaulted" = yes; then
536     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537   else
538     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539   fi
540 fi
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$sitefile"; then
545   if test -z "$CONFIG_SITE"; then
546     if test "x$prefix" != xNONE; then
547       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548     else
549       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550     fi
551   fi
552 else
553   CONFIG_SITE="$sitefile"
554 fi
555 for ac_site_file in $CONFIG_SITE; do
556   if test -r "$ac_site_file"; then
557     echo "loading site script $ac_site_file"
558     . "$ac_site_file"
559   fi
560 done
561
562 if test -r "$cache_file"; then
563   echo "loading cache $cache_file"
564   . $cache_file
565 else
566   echo "creating cache $cache_file"
567   > $cache_file
568 fi
569
570 ac_ext=c
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
576
577 ac_exeext=
578 ac_objext=o
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582     ac_n= ac_c='
583 ' ac_t='        '
584   else
585     ac_n=-n ac_c= ac_t=
586   fi
587 else
588   ac_n= ac_c='\c' ac_t=
589 fi
590
591
592
593 # This works around the fact that libtool configuration may change LD
594 # for this particular configuration, but some shells, instead of
595 # keeping the changes in LD private, export them just because LD is
596 # exported.  Only used at the end of this file.
597 ORIGINAL_LD_FOR_MULTILIBS=$LD
598
599 PACKAGE=libstdc++
600
601 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
602 release_VERSION=3.1.1
603
604 # For libtool versioning info, format is CURRENT:REVISION:AGE
605 libtool_VERSION=4:1:0
606
607
608 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
609 #
610 # You will slowly go insane if you do not grok the following fact:  when
611 # building v3 as part of the compiler, the top-level /target/ becomes the
612 # library's /host/.  `configure' then causes --target to default to --host,
613 # exactly like any other package using autoconf.  Therefore, 'target' and
614 # 'host' will always be the same.  This makes sense both for native and
615 # cross compilers, just think about it for a little while.  :-)
616 #
617 # Also, if v3 is being configured as part of a cross compiler, the top-level
618 # configure script will pass the "real" host as $with_cross_host.
619 #
620 # AC 2.5x sets target_alias iff the user specified --target, but we use it
621 # everywhere, so we set it here just to be sure.  In AC 2.13
622 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
623 ac_aux_dir=
624 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
625   if test -f $ac_dir/install-sh; then
626     ac_aux_dir=$ac_dir
627     ac_install_sh="$ac_aux_dir/install-sh -c"
628     break
629   elif test -f $ac_dir/install.sh; then
630     ac_aux_dir=$ac_dir
631     ac_install_sh="$ac_aux_dir/install.sh -c"
632     break
633   fi
634 done
635 if test -z "$ac_aux_dir"; then
636   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
637 fi
638 ac_config_guess=$ac_aux_dir/config.guess
639 ac_config_sub=$ac_aux_dir/config.sub
640 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641
642
643 # Do some error checking and defaulting for the host and target type.
644 # The inputs are:
645 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
646 #
647 # The rules are:
648 # 1. You are not allowed to specify --host, --target, and nonopt at the
649 #    same time.
650 # 2. Host defaults to nonopt.
651 # 3. If nonopt is not specified, then host defaults to the current host,
652 #    as determined by config.guess.
653 # 4. Target and build default to nonopt.
654 # 5. If nonopt is not specified, then target and build default to host.
655
656 # The aliases save the names the user supplied, while $host etc.
657 # will get canonicalized.
658 case $host---$target---$nonopt in
659 NONE---*---* | *---NONE---* | *---*---NONE) ;;
660 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
661 esac
662
663
664 # Make sure we can run config.sub.
665 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
666 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
667 fi
668
669 echo $ac_n "checking host system type""... $ac_c" 1>&6
670 echo "configure:671: checking host system type" >&5
671
672 host_alias=$host
673 case "$host_alias" in
674 NONE)
675   case $nonopt in
676   NONE)
677     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
679     fi ;;
680   *) host_alias=$nonopt ;;
681   esac ;;
682 esac
683
684 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$host" 1>&6
689
690 echo $ac_n "checking target system type""... $ac_c" 1>&6
691 echo "configure:692: checking target system type" >&5
692
693 target_alias=$target
694 case "$target_alias" in
695 NONE)
696   case $nonopt in
697   NONE) target_alias=$host_alias ;;
698   *) target_alias=$nonopt ;;
699   esac ;;
700 esac
701
702 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$target" 1>&6
707
708 echo $ac_n "checking build system type""... $ac_c" 1>&6
709 echo "configure:710: checking build system type" >&5
710
711 build_alias=$build
712 case "$build_alias" in
713 NONE)
714   case $nonopt in
715   NONE) build_alias=$host_alias ;;
716   *) build_alias=$nonopt ;;
717   esac ;;
718 esac
719
720 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$build" 1>&6
725
726 test "$host_alias" != "$target_alias" &&
727   test "$program_prefix$program_suffix$program_transform_name" = \
728     NONENONEs,x,x, &&
729   program_prefix=${target_alias}-
730
731 target_alias=${target_alias-$target}
732
733
734 # Find a good install program.  We prefer a C program (faster),
735 # so one script is as good as another.  But avoid the broken or
736 # incompatible versions:
737 # SysV /etc/install, /usr/sbin/install
738 # SunOS /usr/etc/install
739 # IRIX /sbin/install
740 # AIX /bin/install
741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
744 # ./install, which can be erroneously created by make from ./install.sh.
745 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
746 echo "configure:747: checking for a BSD compatible install" >&5
747 if test -z "$INSTALL"; then
748 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
749   echo $ac_n "(cached) $ac_c" 1>&6
750 else
751     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
752   for ac_dir in $PATH; do
753     # Account for people who put trailing slashes in PATH elements.
754     case "$ac_dir/" in
755     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
756     *)
757       # OSF1 and SCO ODT 3.0 have their own names for install.
758       # Don't use installbsd from OSF since it installs stuff as root
759       # by default.
760       for ac_prog in ginstall scoinst install; do
761         if test -f $ac_dir/$ac_prog; then
762           if test $ac_prog = install &&
763             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
764             # AIX install.  It has an incompatible calling convention.
765             :
766           else
767             ac_cv_path_install="$ac_dir/$ac_prog -c"
768             break 2
769           fi
770         fi
771       done
772       ;;
773     esac
774   done
775   IFS="$ac_save_IFS"
776
777 fi
778   if test "${ac_cv_path_install+set}" = set; then
779     INSTALL="$ac_cv_path_install"
780   else
781     # As a last resort, use the slow shell script.  We don't cache a
782     # path for INSTALL within a source directory, because that will
783     # break other packages using the cache if that directory is
784     # removed, or if the path is relative.
785     INSTALL="$ac_install_sh"
786   fi
787 fi
788 echo "$ac_t""$INSTALL" 1>&6
789
790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
791 # It thinks the first close brace ends the variable substitution.
792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
793
794 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
795
796 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
797
798 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
799 echo "configure:800: checking whether build environment is sane" >&5
800 # Just in case
801 sleep 1
802 echo timestamp > conftestfile
803 # Do `set' in a subshell so we don't clobber the current shell's
804 # arguments.  Must try -L first in case configure is actually a
805 # symlink; some systems play weird games with the mod time of symlinks
806 # (eg FreeBSD returns the mod time of the symlink's containing
807 # directory).
808 if (
809    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
810    if test "$*" = "X"; then
811       # -L didn't work.
812       set X `ls -t $srcdir/configure conftestfile`
813    fi
814    if test "$*" != "X $srcdir/configure conftestfile" \
815       && test "$*" != "X conftestfile $srcdir/configure"; then
816
817       # If neither matched, then we have a broken ls.  This can happen
818       # if, for instance, CONFIG_SHELL is bash and it inherits a
819       # broken ls alias from the environment.  This has actually
820       # happened.  Such a system could not be considered "sane".
821       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
822 alias in your environment" 1>&2; exit 1; }
823    fi
824
825    test "$2" = conftestfile
826    )
827 then
828    # Ok.
829    :
830 else
831    { echo "configure: error: newly created file is older than distributed files!
832 Check your system clock" 1>&2; exit 1; }
833 fi
834 rm -f conftest*
835 echo "$ac_t""yes" 1>&6
836 if test "$program_transform_name" = s,x,x,; then
837   program_transform_name=
838 else
839   # Double any \ or $.  echo might interpret backslashes.
840   cat <<\EOF_SED > conftestsed
841 s,\\,\\\\,g; s,\$,$$,g
842 EOF_SED
843   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
844   rm -f conftestsed
845 fi
846 test "$program_prefix" != NONE &&
847   program_transform_name="s,^,${program_prefix},; $program_transform_name"
848 # Use a double $ so make ignores it.
849 test "$program_suffix" != NONE &&
850   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
851
852 # sed with no file args requires a program.
853 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
854
855 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
856 echo "configure:857: checking whether ${MAKE-make} sets \${MAKE}" >&5
857 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
858 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
859   echo $ac_n "(cached) $ac_c" 1>&6
860 else
861   cat > conftestmake <<\EOF
862 all:
863         @echo 'ac_maketemp="${MAKE}"'
864 EOF
865 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
866 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
867 if test -n "$ac_maketemp"; then
868   eval ac_cv_prog_make_${ac_make}_set=yes
869 else
870   eval ac_cv_prog_make_${ac_make}_set=no
871 fi
872 rm -f conftestmake
873 fi
874 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
875   echo "$ac_t""yes" 1>&6
876   SET_MAKE=
877 else
878   echo "$ac_t""no" 1>&6
879   SET_MAKE="MAKE=${MAKE-make}"
880 fi
881
882
883 PACKAGE=$PACKAGE
884
885 VERSION=$release_VERSION
886
887 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
888   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
889 fi
890 cat >> confdefs.h <<EOF
891 #define PACKAGE "$PACKAGE"
892 EOF
893
894 cat >> confdefs.h <<EOF
895 #define VERSION "$VERSION"
896 EOF
897
898
899
900 missing_dir=`cd $ac_aux_dir && pwd`
901 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
902 echo "configure:903: checking for working aclocal" >&5
903 # Run test in a subshell; some versions of sh will print an error if
904 # an executable is not found, even if stderr is redirected.
905 # Redirect stdin to placate older versions of autoconf.  Sigh.
906 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
907    ACLOCAL=aclocal
908    echo "$ac_t""found" 1>&6
909 else
910    ACLOCAL="$missing_dir/missing aclocal"
911    echo "$ac_t""missing" 1>&6
912 fi
913
914 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
915 echo "configure:916: checking for working autoconf" >&5
916 # Run test in a subshell; some versions of sh will print an error if
917 # an executable is not found, even if stderr is redirected.
918 # Redirect stdin to placate older versions of autoconf.  Sigh.
919 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
920    AUTOCONF=autoconf
921    echo "$ac_t""found" 1>&6
922 else
923    AUTOCONF="$missing_dir/missing autoconf"
924    echo "$ac_t""missing" 1>&6
925 fi
926
927 echo $ac_n "checking for working automake""... $ac_c" 1>&6
928 echo "configure:929: checking for working automake" >&5
929 # Run test in a subshell; some versions of sh will print an error if
930 # an executable is not found, even if stderr is redirected.
931 # Redirect stdin to placate older versions of autoconf.  Sigh.
932 if (automake --version) < /dev/null > /dev/null 2>&1; then
933    AUTOMAKE=automake
934    echo "$ac_t""found" 1>&6
935 else
936    AUTOMAKE="$missing_dir/missing automake"
937    echo "$ac_t""missing" 1>&6
938 fi
939
940 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
941 echo "configure:942: checking for working autoheader" >&5
942 # Run test in a subshell; some versions of sh will print an error if
943 # an executable is not found, even if stderr is redirected.
944 # Redirect stdin to placate older versions of autoconf.  Sigh.
945 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
946    AUTOHEADER=autoheader
947    echo "$ac_t""found" 1>&6
948 else
949    AUTOHEADER="$missing_dir/missing autoheader"
950    echo "$ac_t""missing" 1>&6
951 fi
952
953 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
954 echo "configure:955: checking for working makeinfo" >&5
955 # Run test in a subshell; some versions of sh will print an error if
956 # an executable is not found, even if stderr is redirected.
957 # Redirect stdin to placate older versions of autoconf.  Sigh.
958 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
959    MAKEINFO=makeinfo
960    echo "$ac_t""found" 1>&6
961 else
962    MAKEINFO="$missing_dir/missing makeinfo"
963    echo "$ac_t""missing" 1>&6
964 fi
965
966
967
968
969
970
971 # Runs configure.target, finds CC, CXX and assorted other critical bits.
972 # Must run this before the GLIBCPP_ENABLE_* macros below.
973 if test $host != $build; then
974   ac_tool_prefix=${host_alias}-
975 else
976   ac_tool_prefix=
977 fi
978
979 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
980 echo "configure:981: checking for Cygwin environment" >&5
981 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
982   echo $ac_n "(cached) $ac_c" 1>&6
983 else
984   cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
987
988 int main() {
989
990 #ifndef __CYGWIN__
991 #define __CYGWIN__ __CYGWIN32__
992 #endif
993 return __CYGWIN__;
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_cygwin=yes
999 else
1000   echo "configure: failed program was:" >&5
1001   cat conftest.$ac_ext >&5
1002   rm -rf conftest*
1003   ac_cv_cygwin=no
1004 fi
1005 rm -f conftest*
1006 rm -f conftest*
1007 fi
1008
1009 echo "$ac_t""$ac_cv_cygwin" 1>&6
1010 CYGWIN=
1011 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1012 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1013 echo "configure:1014: checking for mingw32 environment" >&5
1014 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1015   echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1017   cat > conftest.$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1020
1021 int main() {
1022 return __MINGW32__;
1023 ; return 0; }
1024 EOF
1025 if { (eval echo configure:1026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1026   rm -rf conftest*
1027   ac_cv_mingw32=yes
1028 else
1029   echo "configure: failed program was:" >&5
1030   cat conftest.$ac_ext >&5
1031   rm -rf conftest*
1032   ac_cv_mingw32=no
1033 fi
1034 rm -f conftest*
1035 rm -f conftest*
1036 fi
1037
1038 echo "$ac_t""$ac_cv_mingw32" 1>&6
1039 MINGW32=
1040 test "$ac_cv_mingw32" = yes && MINGW32=yes
1041
1042       # Check whether --enable-multilib or --disable-multilib was given.
1043 if test "${enable_multilib+set}" = set; then
1044   enableval="$enable_multilib"
1045   case "${enableval}" in
1046     yes) multilib=yes ;;
1047     no)  multilib=no ;;
1048     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1049    esac
1050 else
1051   multilib=yes
1052 fi
1053
1054   # When building with srcdir == objdir, links to the source files will
1055   # be created in directories within the target_subdir.  We have to
1056   # adjust toplevel_srcdir accordingly, so that configure finds
1057   # install-sh and other auxiliary files that live in the top-level
1058   # source directory.
1059   if test "${srcdir}" = "."; then
1060     if test -z "${with_target_subdir}"; then
1061       toprel=".."
1062     else
1063       if test "${with_target_subdir}" != "."; then
1064         toprel="${with_multisrctop}../.."
1065       else
1066         toprel="${with_multisrctop}.."
1067       fi
1068     fi
1069   else
1070     toprel=".."
1071   fi
1072   ac_aux_dir=
1073 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1074   if test -f $ac_dir/install-sh; then
1075     ac_aux_dir=$ac_dir
1076     ac_install_sh="$ac_aux_dir/install-sh -c"
1077     break
1078   elif test -f $ac_dir/install.sh; then
1079     ac_aux_dir=$ac_dir
1080     ac_install_sh="$ac_aux_dir/install.sh -c"
1081     break
1082   fi
1083 done
1084 if test -z "$ac_aux_dir"; then
1085   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1086 fi
1087 ac_config_guess=$ac_aux_dir/config.guess
1088 ac_config_sub=$ac_aux_dir/config.sub
1089 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1090
1091   toplevel_srcdir=\${top_srcdir}/$toprel
1092   
1093
1094 #possibly test for the presence of the compiler sources here?
1095
1096   # Export build and source directories.
1097   # These need to be absolute paths, yet at the same time need to
1098   # canonicalize only relative paths, because then amd will not unmount
1099   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1100   glibcpp_builddir=`${PWDCMD-pwd}`
1101   case $srcdir in
1102   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1103   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1104   esac
1105   
1106   
1107
1108     
1109
1110   for ac_prog in mawk gawk nawk awk
1111 do
1112 # Extract the first word of "$ac_prog", so it can be a program name with args.
1113 set dummy $ac_prog; ac_word=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1117   echo $ac_n "(cached) $ac_c" 1>&6
1118 else
1119   if test -n "$AWK"; then
1120   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1121 else
1122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1123   ac_dummy="$PATH"
1124   for ac_dir in $ac_dummy; do
1125     test -z "$ac_dir" && ac_dir=.
1126     if test -f $ac_dir/$ac_word; then
1127       ac_cv_prog_AWK="$ac_prog"
1128       break
1129     fi
1130   done
1131   IFS="$ac_save_ifs"
1132 fi
1133 fi
1134 AWK="$ac_cv_prog_AWK"
1135 if test -n "$AWK"; then
1136   echo "$ac_t""$AWK" 1>&6
1137 else
1138   echo "$ac_t""no" 1>&6
1139 fi
1140
1141 test -n "$AWK" && break
1142 done
1143
1144   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1145   # be 'cp -p' if linking isn't available.  Uncomment the next line to
1146   # force a particular method.
1147   #ac_cv_prog_LN_S='cp -p'
1148   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ln -s works" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1151   echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153   rm -f conftestdata
1154 if ln -s X conftestdata 2>/dev/null
1155 then
1156   rm -f conftestdata
1157   ac_cv_prog_LN_S="ln -s"
1158 else
1159   ac_cv_prog_LN_S=ln
1160 fi
1161 fi
1162 LN_S="$ac_cv_prog_LN_S"
1163 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1164   echo "$ac_t""yes" 1>&6
1165 else
1166   echo "$ac_t""no" 1>&6
1167 fi
1168
1169
1170   # We use these options to decide which functions to include.
1171   # Check whether --with-target-subdir or --without-target-subdir was given.
1172 if test "${with_target_subdir+set}" = set; then
1173   withval="$with_target_subdir"
1174   :
1175 fi
1176
1177   # Check whether --with-cross-host or --without-cross-host was given.
1178 if test "${with_cross_host+set}" = set; then
1179   withval="$with_cross_host"
1180   :
1181 fi
1182
1183
1184   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1185   
1186
1187   # Never versions of autoconf add an underscore to these functions.
1188   # Prevent future problems ...
1189   
1190   
1191   
1192   
1193
1194   # AC_PROG_CC
1195   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1196   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1197   # are probably using a cross compiler, which will not be able to fully
1198   # link an executable.  This is addressed in later versions of autoconf.
1199
1200   
1201
1202       
1203   # Extract the first word of "gcc", so it can be a program name with args.
1204 set dummy gcc; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   if test -n "$CC"; then
1211   ac_cv_prog_CC="$CC" # Let the user override the test.
1212 else
1213   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1214   ac_dummy="$PATH"
1215   for ac_dir in $ac_dummy; do
1216     test -z "$ac_dir" && ac_dir=.
1217     if test -f $ac_dir/$ac_word; then
1218       ac_cv_prog_CC="gcc"
1219       break
1220     fi
1221   done
1222   IFS="$ac_save_ifs"
1223 fi
1224 fi
1225 CC="$ac_cv_prog_CC"
1226 if test -n "$CC"; then
1227   echo "$ac_t""$CC" 1>&6
1228 else
1229   echo "$ac_t""no" 1>&6
1230 fi
1231
1232   if test -z "$CC"; then
1233     # Extract the first word of "cc", so it can be a program name with args.
1234 set dummy cc; ac_word=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1238   echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240   if test -n "$CC"; then
1241   ac_cv_prog_CC="$CC" # Let the user override the test.
1242 else
1243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1244   ac_prog_rejected=no
1245   ac_dummy="$PATH"
1246   for ac_dir in $ac_dummy; do
1247     test -z "$ac_dir" && ac_dir=.
1248     if test -f $ac_dir/$ac_word; then
1249       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1250         ac_prog_rejected=yes
1251         continue
1252       fi
1253       ac_cv_prog_CC="cc"
1254       break
1255     fi
1256   done
1257   IFS="$ac_save_ifs"
1258 if test $ac_prog_rejected = yes; then
1259   # We found a bogon in the path, so make sure we never use it.
1260   set dummy $ac_cv_prog_CC
1261   shift
1262   if test $# -gt 0; then
1263     # We chose a different compiler from the bogus one.
1264     # However, it has the same basename, so the bogon will be chosen
1265     # first if we set CC to just the basename; use the full file name.
1266     shift
1267     set dummy "$ac_dir/$ac_word" "$@"
1268     shift
1269     ac_cv_prog_CC="$@"
1270   fi
1271 fi
1272 fi
1273 fi
1274 CC="$ac_cv_prog_CC"
1275 if test -n "$CC"; then
1276   echo "$ac_t""$CC" 1>&6
1277 else
1278   echo "$ac_t""no" 1>&6
1279 fi
1280
1281     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1282   fi
1283
1284   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether we are using GNU C" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1287   echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289   cat > conftest.c <<EOF
1290 #ifdef __GNUC__
1291   yes;
1292 #endif
1293 EOF
1294 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1295   ac_cv_prog_gcc=yes
1296 else
1297   ac_cv_prog_gcc=no
1298 fi
1299 fi
1300
1301 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1302
1303   if test $ac_cv_prog_gcc = yes; then
1304     GCC=yes
1305           ac_test_CFLAGS="${CFLAGS+set}"
1306     ac_save_CFLAGS="$CFLAGS"
1307     CFLAGS=
1308     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether ${CC-cc} accepts -g" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1311   echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313   echo 'void f(){}' > conftest.c
1314 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1315   ac_cv_prog_cc_g=yes
1316 else
1317   ac_cv_prog_cc_g=no
1318 fi
1319 rm -f conftest*
1320
1321 fi
1322
1323 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1324     if test "$ac_test_CFLAGS" = set; then
1325       CFLAGS="$ac_save_CFLAGS"
1326     elif test $ac_cv_prog_cc_g = yes; then
1327       CFLAGS="-g -O2"
1328     else
1329       CFLAGS="-O2"
1330     fi
1331   else
1332     GCC=
1333     test "${CFLAGS+set}" = set || CFLAGS="-g"
1334   fi
1335   
1336
1337   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1338   # will try to link in libstdc++.
1339   
1340
1341       
1342   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1343   # flags that come in CXX while configuring libstdc++.  They're different
1344   # from those used for all other target libraries.  If CXX is set in
1345   # the environment, respect that here.
1346   glibcpp_CXX=$CXX
1347   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1348 do
1349 # Extract the first word of "$ac_prog", so it can be a program name with args.
1350 set dummy $ac_prog; ac_word=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1354   echo $ac_n "(cached) $ac_c" 1>&6
1355 else
1356   if test -n "$glibcpp_CXX"; then
1357   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1358 else
1359   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1360   ac_dummy="$PATH"
1361   for ac_dir in $ac_dummy; do
1362     test -z "$ac_dir" && ac_dir=.
1363     if test -f $ac_dir/$ac_word; then
1364       ac_cv_prog_glibcpp_CXX="$ac_prog"
1365       break
1366     fi
1367   done
1368   IFS="$ac_save_ifs"
1369 fi
1370 fi
1371 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1372 if test -n "$glibcpp_CXX"; then
1373   echo "$ac_t""$glibcpp_CXX" 1>&6
1374 else
1375   echo "$ac_t""no" 1>&6
1376 fi
1377
1378 test -n "$glibcpp_CXX" && break
1379 done
1380 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1381
1382   
1383   CXX=$glibcpp_CXX
1384   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1385
1386   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether we are using GNU C++" >&5
1388 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1389   echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391   cat > conftest.C <<EOF
1392 #ifdef __GNUC__
1393   yes;
1394 #endif
1395 EOF
1396 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1397   ac_cv_prog_gxx=yes
1398 else
1399   ac_cv_prog_gxx=no
1400 fi
1401 fi
1402
1403 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1404
1405   if test $ac_cv_prog_gxx = yes; then
1406     GXX=yes
1407                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1408     ac_save_CXXFLAGS="$CXXFLAGS"
1409     CXXFLAGS=
1410     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1411 echo "configure:1412: checking whether ${CXX-g++} accepts -g" >&5
1412 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1413   echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415   echo 'void f(){}' > conftest.cc
1416 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1417   ac_cv_prog_cxx_g=yes
1418 else
1419   ac_cv_prog_cxx_g=no
1420 fi
1421 rm -f conftest*
1422
1423 fi
1424
1425 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1426     if test "$ac_test_CXXFLAGS" = set; then
1427       CXXFLAGS="$ac_save_CXXFLAGS"
1428     elif test $ac_cv_prog_cxx_g = yes; then
1429       CXXFLAGS="-g -O2"
1430     else
1431       CXXFLAGS="-O2"
1432     fi
1433   else
1434     GXX=
1435     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1436   fi
1437   
1438
1439   # For some reason, gettext needs this.
1440   echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1441 echo "configure:1442: checking for POSIXized ISC" >&5
1442 if test -d /etc/conf/kconfig.d &&
1443   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1444 then
1445   echo "$ac_t""yes" 1>&6
1446   ISC=yes # If later tests want to check for ISC.
1447   cat >> confdefs.h <<\EOF
1448 #define _POSIX_SOURCE 1
1449 EOF
1450
1451   if test "$GCC" = yes; then
1452     CC="$CC -posix"
1453   else
1454     CC="$CC -Xp"
1455   fi
1456 else
1457   echo "$ac_t""no" 1>&6
1458   ISC=
1459 fi
1460
1461
1462   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}as; ac_word=$2
1464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1465 echo "configure:1466: checking for $ac_word" >&5
1466 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1467   echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469   if test -n "$AS"; then
1470   ac_cv_prog_AS="$AS" # Let the user override the test.
1471 else
1472   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1473   ac_dummy="$PATH"
1474   for ac_dir in $ac_dummy; do
1475     test -z "$ac_dir" && ac_dir=.
1476     if test -f $ac_dir/$ac_word; then
1477       ac_cv_prog_AS="${ac_tool_prefix}as"
1478       break
1479     fi
1480   done
1481   IFS="$ac_save_ifs"
1482   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1483 fi
1484 fi
1485 AS="$ac_cv_prog_AS"
1486 if test -n "$AS"; then
1487   echo "$ac_t""$AS" 1>&6
1488 else
1489   echo "$ac_t""no" 1>&6
1490 fi
1491
1492
1493
1494   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1495 set dummy ${ac_tool_prefix}ar; ac_word=$2
1496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_word" >&5
1498 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1499   echo $ac_n "(cached) $ac_c" 1>&6
1500 else
1501   if test -n "$AR"; then
1502   ac_cv_prog_AR="$AR" # Let the user override the test.
1503 else
1504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1505   ac_dummy="$PATH"
1506   for ac_dir in $ac_dummy; do
1507     test -z "$ac_dir" && ac_dir=.
1508     if test -f $ac_dir/$ac_word; then
1509       ac_cv_prog_AR="${ac_tool_prefix}ar"
1510       break
1511     fi
1512   done
1513   IFS="$ac_save_ifs"
1514   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1515 fi
1516 fi
1517 AR="$ac_cv_prog_AR"
1518 if test -n "$AR"; then
1519   echo "$ac_t""$AR" 1>&6
1520 else
1521   echo "$ac_t""no" 1>&6
1522 fi
1523
1524
1525
1526   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529 echo "configure:1530: checking for $ac_word" >&5
1530 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1531   echo $ac_n "(cached) $ac_c" 1>&6
1532 else
1533   if test -n "$RANLIB"; then
1534   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1535 else
1536   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1537   ac_dummy="$PATH"
1538   for ac_dir in $ac_dummy; do
1539     test -z "$ac_dir" && ac_dir=.
1540     if test -f $ac_dir/$ac_word; then
1541       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1542       break
1543     fi
1544   done
1545   IFS="$ac_save_ifs"
1546 fi
1547 fi
1548 RANLIB="$ac_cv_prog_RANLIB"
1549 if test -n "$RANLIB"; then
1550   echo "$ac_t""$RANLIB" 1>&6
1551 else
1552   echo "$ac_t""no" 1>&6
1553 fi
1554
1555
1556 if test -z "$ac_cv_prog_RANLIB"; then
1557 if test -n "$ac_tool_prefix"; then
1558   # Extract the first word of "ranlib", so it can be a program name with args.
1559 set dummy ranlib; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1562: checking for $ac_word" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1563   echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565   if test -n "$RANLIB"; then
1566   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1567 else
1568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1569   ac_dummy="$PATH"
1570   for ac_dir in $ac_dummy; do
1571     test -z "$ac_dir" && ac_dir=.
1572     if test -f $ac_dir/$ac_word; then
1573       ac_cv_prog_RANLIB="ranlib"
1574       break
1575     fi
1576   done
1577   IFS="$ac_save_ifs"
1578   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1579 fi
1580 fi
1581 RANLIB="$ac_cv_prog_RANLIB"
1582 if test -n "$RANLIB"; then
1583   echo "$ac_t""$RANLIB" 1>&6
1584 else
1585   echo "$ac_t""no" 1>&6
1586 fi
1587
1588 else
1589   RANLIB="ranlib-not-found-in-path-error"
1590 fi
1591 fi
1592
1593   # Find a good install program.  We prefer a C program (faster),
1594 # so one script is as good as another.  But avoid the broken or
1595 # incompatible versions:
1596 # SysV /etc/install, /usr/sbin/install
1597 # SunOS /usr/etc/install
1598 # IRIX /sbin/install
1599 # AIX /bin/install
1600 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1601 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1602 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1603 # ./install, which can be erroneously created by make from ./install.sh.
1604 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1605 echo "configure:1606: checking for a BSD compatible install" >&5
1606 if test -z "$INSTALL"; then
1607 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1608   echo $ac_n "(cached) $ac_c" 1>&6
1609 else
1610     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1611   for ac_dir in $PATH; do
1612     # Account for people who put trailing slashes in PATH elements.
1613     case "$ac_dir/" in
1614     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1615     *)
1616       # OSF1 and SCO ODT 3.0 have their own names for install.
1617       # Don't use installbsd from OSF since it installs stuff as root
1618       # by default.
1619       for ac_prog in ginstall scoinst install; do
1620         if test -f $ac_dir/$ac_prog; then
1621           if test $ac_prog = install &&
1622             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1623             # AIX install.  It has an incompatible calling convention.
1624             :
1625           else
1626             ac_cv_path_install="$ac_dir/$ac_prog -c"
1627             break 2
1628           fi
1629         fi
1630       done
1631       ;;
1632     esac
1633   done
1634   IFS="$ac_save_IFS"
1635
1636 fi
1637   if test "${ac_cv_path_install+set}" = set; then
1638     INSTALL="$ac_cv_path_install"
1639   else
1640     # As a last resort, use the slow shell script.  We don't cache a
1641     # path for INSTALL within a source directory, because that will
1642     # break other packages using the cache if that directory is
1643     # removed, or if the path is relative.
1644     INSTALL="$ac_install_sh"
1645   fi
1646 fi
1647 echo "$ac_t""$INSTALL" 1>&6
1648
1649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1650 # It thinks the first close brace ends the variable substitution.
1651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1652
1653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1654
1655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1656
1657
1658   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1659 echo "configure:1660: checking whether to enable maintainer-specific portions of Makefiles" >&5
1660     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1661 if test "${enable_maintainer_mode+set}" = set; then
1662   enableval="$enable_maintainer_mode"
1663   USE_MAINTAINER_MODE=$enableval
1664 else
1665   USE_MAINTAINER_MODE=no
1666 fi
1667
1668   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1669   
1670
1671 if test $USE_MAINTAINER_MODE = yes; then
1672   MAINTAINER_MODE_TRUE=
1673   MAINTAINER_MODE_FALSE='#'
1674 else
1675   MAINTAINER_MODE_TRUE='#'
1676   MAINTAINER_MODE_FALSE=
1677 fi
1678   MAINT=$MAINTAINER_MODE_TRUE
1679   
1680
1681
1682   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1683   # at least currently, we never actually build a program, so we never
1684   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1685   # fails, because we are probably configuring with a cross compiler
1686   # which can't create executables.  So we include AC_EXEEXT to keep
1687   # automake happy, but we don't execute it, since we don't care about
1688   # the result.
1689   if false; then
1690     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1691     # to nothing, so nothing would remain between `then' and `fi' if it
1692     # were not for the `:' below.
1693     :
1694     
1695
1696 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1697 echo "configure:1698: checking for executable suffix" >&5
1698 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1699   echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1702   ac_cv_exeext=.exe
1703 else
1704   rm -f conftest*
1705   echo 'int main () { return 0; }' > conftest.$ac_ext
1706   ac_cv_exeext=
1707   if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1708     for file in conftest.*; do
1709       case $file in
1710       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1711       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1712       esac
1713     done
1714   else
1715     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1716   fi
1717   rm -f conftest*
1718   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1719 fi
1720 fi
1721
1722 EXEEXT=""
1723 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1724 echo "$ac_t""${ac_cv_exeext}" 1>&6
1725 ac_exeext=$EXEEXT
1726
1727   fi
1728
1729   case ${glibcpp_basedir} in
1730     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1731     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1732   esac
1733
1734   # Find platform-specific directories containing configuration info.  In
1735   # addition to possibly modifying the same flags, it also sets up symlinks.
1736   
1737     . ${glibcpp_basedir}/configure.target
1738     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1739     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1740
1741
1742
1743
1744
1745 # Check whether --enable-shared or --disable-shared was given.
1746 if test "${enable_shared+set}" = set; then
1747   enableval="$enable_shared"
1748   p=${PACKAGE-default}
1749 case $enableval in
1750 yes) enable_shared=yes ;;
1751 no) enable_shared=no ;;
1752 *)
1753   enable_shared=no
1754   # Look at the argument we got.  We use all the common list separators.
1755   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1756   for pkg in $enableval; do
1757     if test "X$pkg" = "X$p"; then
1758       enable_shared=yes
1759     fi
1760   done
1761   IFS="$ac_save_ifs"
1762   ;;
1763 esac
1764 else
1765   enable_shared=yes
1766 fi
1767
1768 # Check whether --enable-static or --disable-static was given.
1769 if test "${enable_static+set}" = set; then
1770   enableval="$enable_static"
1771   p=${PACKAGE-default}
1772 case $enableval in
1773 yes) enable_static=yes ;;
1774 no) enable_static=no ;;
1775 *)
1776   enable_static=no
1777   # Look at the argument we got.  We use all the common list separators.
1778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1779   for pkg in $enableval; do
1780     if test "X$pkg" = "X$p"; then
1781       enable_static=yes
1782     fi
1783   done
1784   IFS="$ac_save_ifs"
1785   ;;
1786 esac
1787 else
1788   enable_static=yes
1789 fi
1790
1791 # Check whether --enable-fast-install or --disable-fast-install was given.
1792 if test "${enable_fast_install+set}" = set; then
1793   enableval="$enable_fast_install"
1794   p=${PACKAGE-default}
1795 case $enableval in
1796 yes) enable_fast_install=yes ;;
1797 no) enable_fast_install=no ;;
1798 *)
1799   enable_fast_install=no
1800   # Look at the argument we got.  We use all the common list separators.
1801   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1802   for pkg in $enableval; do
1803     if test "X$pkg" = "X$p"; then
1804       enable_fast_install=yes
1805     fi
1806   done
1807   IFS="$ac_save_ifs"
1808   ;;
1809 esac
1810 else
1811   enable_fast_install=yes
1812 fi
1813
1814 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1815 if test "${with_gnu_ld+set}" = set; then
1816   withval="$with_gnu_ld"
1817   test "$withval" = no || with_gnu_ld=yes
1818 else
1819   with_gnu_ld=no
1820 fi
1821
1822 ac_prog=ld
1823 if test "$GCC" = yes; then
1824   # Check if gcc -print-prog-name=ld gives a path.
1825   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1826 echo "configure:1827: checking for ld used by GCC" >&5
1827   case $host in
1828   *-*-mingw*)
1829     # gcc leaves a trailing carriage return which upsets mingw
1830     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1831   *)
1832     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1833   esac
1834   case $ac_prog in
1835     # Accept absolute paths.
1836     [\\/]* | [A-Za-z]:[\\/]*)
1837       re_direlt='/[^/][^/]*/\.\./'
1838       # Canonicalize the path of ld
1839       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1840       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1841         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1842       done
1843       test -z "$LD" && LD="$ac_prog"
1844       ;;
1845   "")
1846     # If it fails, then pretend we aren't using GCC.
1847     ac_prog=ld
1848     ;;
1849   *)
1850     # If it is relative, then search for the first ld in PATH.
1851     with_gnu_ld=unknown
1852     ;;
1853   esac
1854 elif test "$with_gnu_ld" = yes; then
1855   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1856 echo "configure:1857: checking for GNU ld" >&5
1857 else
1858   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1859 echo "configure:1860: checking for non-GNU ld" >&5
1860 fi
1861 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1862   echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864   if test -z "$LD"; then
1865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866   for ac_dir in $PATH; do
1867     test -z "$ac_dir" && ac_dir=.
1868     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1869       lt_cv_path_LD="$ac_dir/$ac_prog"
1870       # Check to see if the program is GNU ld.  I'd rather use --version,
1871       # but apparently some GNU ld's only accept -v.
1872       # Break only if it was the GNU/non-GNU ld that we prefer.
1873       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1874         test "$with_gnu_ld" != no && break
1875       else
1876         test "$with_gnu_ld" != yes && break
1877       fi
1878     fi
1879   done
1880   IFS="$ac_save_ifs"
1881 else
1882   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1883 fi
1884 fi
1885
1886 LD="$lt_cv_path_LD"
1887 if test -n "$LD"; then
1888   echo "$ac_t""$LD" 1>&6
1889 else
1890   echo "$ac_t""no" 1>&6
1891 fi
1892 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1893 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1894 echo "configure:1895: checking if the linker ($LD) is GNU ld" >&5
1895 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1896   echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1899 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1900   lt_cv_prog_gnu_ld=yes
1901 else
1902   lt_cv_prog_gnu_ld=no
1903 fi
1904 fi
1905
1906 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1907 with_gnu_ld=$lt_cv_prog_gnu_ld
1908
1909
1910 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $LD option to reload object files" >&5
1912 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1913   echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915   lt_cv_ld_reload_flag='-r'
1916 fi
1917
1918 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1919 reload_flag=$lt_cv_ld_reload_flag
1920 test -n "$reload_flag" && reload_flag=" $reload_flag"
1921
1922 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1923 echo "configure:1924: checking for BSD-compatible nm" >&5
1924 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1925   echo $ac_n "(cached) $ac_c" 1>&6
1926 else
1927   if test -n "$NM"; then
1928   # Let the user override the test.
1929   lt_cv_path_NM="$NM"
1930 else
1931   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1932   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1933     test -z "$ac_dir" && ac_dir=.
1934     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1935     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1936       # Check to see if the nm accepts a BSD-compat flag.
1937       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1938       #   nm: unknown option "B" ignored
1939       # Tru64's nm complains that /dev/null is an invalid object file
1940       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1941         lt_cv_path_NM="$tmp_nm -B"
1942         break
1943       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1944         lt_cv_path_NM="$tmp_nm -p"
1945         break
1946       else
1947         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1948         continue # so that we can try to find one that supports BSD flags
1949       fi
1950     fi
1951   done
1952   IFS="$ac_save_ifs"
1953   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1954 fi
1955 fi
1956
1957 NM="$lt_cv_path_NM"
1958 echo "$ac_t""$NM" 1>&6
1959
1960 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1961 echo "configure:1962: checking how to recognise dependant libraries" >&5
1962 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1963   echo $ac_n "(cached) $ac_c" 1>&6
1964 else
1965   lt_cv_file_magic_cmd='$MAGIC_CMD'
1966 lt_cv_file_magic_test_file=
1967 lt_cv_deplibs_check_method='unknown'
1968 # Need to set the preceding variable on all platforms that support
1969 # interlibrary dependencies.
1970 # 'none' -- dependencies not supported.
1971 # `unknown' -- same as none, but documents that we really don't know.
1972 # 'pass_all' -- all dependencies passed with no checks.
1973 # 'test_compile' -- check by making test program.
1974 # 'file_magic [regex]' -- check by looking for files in library path
1975 # which responds to the $file_magic_cmd with a given egrep regex.
1976 # If you have `file' or equivalent on your system and you're not sure
1977 # whether `pass_all' will *always* work, you probably want this one.
1978
1979 case $host_os in
1980 aix*)
1981   lt_cv_deplibs_check_method=pass_all
1982   ;;
1983
1984 beos*)
1985   lt_cv_deplibs_check_method=pass_all
1986   ;;
1987
1988 bsdi4*)
1989   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1990   lt_cv_file_magic_cmd='/usr/bin/file -L'
1991   lt_cv_file_magic_test_file=/shlib/libc.so
1992   ;;
1993
1994 cygwin* | mingw* |pw32*)
1995   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1996   lt_cv_file_magic_cmd='$OBJDUMP -f'
1997   ;;
1998
1999 darwin* | rhapsody*)
2000   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2001   lt_cv_file_magic_cmd='/usr/bin/file -L'
2002   case "$host_os" in
2003   rhapsody* | darwin1.012)
2004     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2005     ;;
2006   *) # Darwin 1.3 on
2007     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2008     ;;
2009   esac
2010   ;;
2011
2012 freebsd* )
2013   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2014     case $host_cpu in
2015     i*86 )
2016       # Not sure whether the presence of OpenBSD here was a mistake.
2017       # Let's accept both of them until this is cleared up.
2018       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2019       lt_cv_file_magic_cmd=/usr/bin/file
2020       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2021       ;;
2022     esac
2023   else
2024     lt_cv_deplibs_check_method=pass_all
2025   fi
2026   ;;
2027
2028 gnu*)
2029   lt_cv_deplibs_check_method=pass_all
2030   ;;
2031
2032 hpux10.20*|hpux11*)
2033   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2034   lt_cv_file_magic_cmd=/usr/bin/file
2035   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2036   ;;
2037
2038 irix5* | irix6*)
2039   case $host_os in
2040   irix5*)
2041     # this will be overridden with pass_all, but let us keep it just in case
2042     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2043     ;;
2044   *)
2045     case $LD in
2046     *-32|*"-32 ") libmagic=32-bit;;
2047     *-n32|*"-n32 ") libmagic=N32;;
2048     *-64|*"-64 ") libmagic=64-bit;;
2049     *) libmagic=never-match;;
2050     esac
2051     # this will be overridden with pass_all, but let us keep it just in case
2052     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2053     ;;
2054   esac
2055   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2056   lt_cv_deplibs_check_method=pass_all
2057   ;;
2058
2059 # This must be Linux ELF.
2060 linux-gnu*)
2061   case $host_cpu in
2062   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2063     lt_cv_deplibs_check_method=pass_all ;;
2064   *)
2065     # glibc up to 2.1.1 does not perform some relocations on ARM
2066     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2067   esac
2068   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2069   ;;
2070
2071 netbsd*)
2072   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2073     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2074   else
2075     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2076   fi
2077   ;;
2078
2079 newsos6)
2080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2081   lt_cv_file_magic_cmd=/usr/bin/file
2082   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2083   ;;
2084
2085 osf3* | osf4* | osf5*)
2086   # this will be overridden with pass_all, but let us keep it just in case
2087   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2088   lt_cv_file_magic_test_file=/shlib/libc.so
2089   lt_cv_deplibs_check_method=pass_all
2090   ;;
2091
2092 sco3.2v5*)
2093   lt_cv_deplibs_check_method=pass_all
2094   ;;
2095
2096 solaris*)
2097   lt_cv_deplibs_check_method=pass_all
2098   lt_cv_file_magic_test_file=/lib/libc.so
2099   ;;
2100
2101 sysv5uw[78]* | sysv4*uw2*)
2102   lt_cv_deplibs_check_method=pass_all
2103   ;;
2104
2105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2106   case $host_vendor in
2107   ncr)
2108     lt_cv_deplibs_check_method=pass_all
2109     ;;
2110   motorola)
2111     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]'
2112     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2113     ;;
2114   esac
2115   ;;
2116 esac
2117
2118 fi
2119
2120 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2121 file_magic_cmd=$lt_cv_file_magic_cmd
2122 deplibs_check_method=$lt_cv_deplibs_check_method
2123
2124 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2125 echo "configure:2126: checking for object suffix" >&5
2126 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2127   echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129   rm -f conftest*
2130 echo 'int i = 1;' > conftest.$ac_ext
2131 if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132   for ac_file in conftest.*; do
2133     case $ac_file in
2134     *.c) ;;
2135     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2136     esac
2137   done
2138 else
2139   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2140 fi
2141 rm -f conftest*
2142 fi
2143
2144 echo "$ac_t""$ac_cv_objext" 1>&6
2145 OBJEXT=$ac_cv_objext
2146 ac_objext=$ac_cv_objext
2147
2148 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2149
2150 # Only perform the check for file, if the check method requires it
2151 case $deplibs_check_method in
2152 file_magic*)
2153   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2154     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2155 echo "configure:2156: checking for ${ac_tool_prefix}file" >&5
2156 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2157   echo $ac_n "(cached) $ac_c" 1>&6
2158 else
2159   case $MAGIC_CMD in
2160   /*)
2161   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2162   ;;
2163   ?:/*)
2164   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2165   ;;
2166   *)
2167   ac_save_MAGIC_CMD="$MAGIC_CMD"
2168   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2169   ac_dummy="/usr/bin:$PATH"
2170   for ac_dir in $ac_dummy; do
2171     test -z "$ac_dir" && ac_dir=.
2172     if test -f $ac_dir/${ac_tool_prefix}file; then
2173       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2174       if test -n "$file_magic_test_file"; then
2175         case $deplibs_check_method in
2176         "file_magic "*)
2177           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2178           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2179           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2180             egrep "$file_magic_regex" > /dev/null; then
2181             :
2182           else
2183             cat <<EOF 1>&2
2184
2185 *** Warning: the command libtool uses to detect shared libraries,
2186 *** $file_magic_cmd, produces output that libtool cannot recognize.
2187 *** The result is that libtool may fail to recognize shared libraries
2188 *** as such.  This will affect the creation of libtool libraries that
2189 *** depend on shared libraries, but programs linked with such libtool
2190 *** libraries will work regardless of this problem.  Nevertheless, you
2191 *** may want to report the problem to your system manager and/or to
2192 *** bug-libtool@gnu.org
2193
2194 EOF
2195           fi ;;
2196         esac
2197       fi
2198       break
2199     fi
2200   done
2201   IFS="$ac_save_ifs"
2202   MAGIC_CMD="$ac_save_MAGIC_CMD"
2203   ;;
2204 esac
2205 fi
2206
2207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2208 if test -n "$MAGIC_CMD"; then
2209   echo "$ac_t""$MAGIC_CMD" 1>&6
2210 else
2211   echo "$ac_t""no" 1>&6
2212 fi
2213
2214 if test -z "$lt_cv_path_MAGIC_CMD"; then
2215   if test -n "$ac_tool_prefix"; then
2216     echo $ac_n "checking for file""... $ac_c" 1>&6
2217 echo "configure:2218: checking for file" >&5
2218 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2219   echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221   case $MAGIC_CMD in
2222   /*)
2223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2224   ;;
2225   ?:/*)
2226   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2227   ;;
2228   *)
2229   ac_save_MAGIC_CMD="$MAGIC_CMD"
2230   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2231   ac_dummy="/usr/bin:$PATH"
2232   for ac_dir in $ac_dummy; do
2233     test -z "$ac_dir" && ac_dir=.
2234     if test -f $ac_dir/file; then
2235       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2236       if test -n "$file_magic_test_file"; then
2237         case $deplibs_check_method in
2238         "file_magic "*)
2239           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2242             egrep "$file_magic_regex" > /dev/null; then
2243             :
2244           else
2245             cat <<EOF 1>&2
2246
2247 *** Warning: the command libtool uses to detect shared libraries,
2248 *** $file_magic_cmd, produces output that libtool cannot recognize.
2249 *** The result is that libtool may fail to recognize shared libraries
2250 *** as such.  This will affect the creation of libtool libraries that
2251 *** depend on shared libraries, but programs linked with such libtool
2252 *** libraries will work regardless of this problem.  Nevertheless, you
2253 *** may want to report the problem to your system manager and/or to
2254 *** bug-libtool@gnu.org
2255
2256 EOF
2257           fi ;;
2258         esac
2259       fi
2260       break
2261     fi
2262   done
2263   IFS="$ac_save_ifs"
2264   MAGIC_CMD="$ac_save_MAGIC_CMD"
2265   ;;
2266 esac
2267 fi
2268
2269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2270 if test -n "$MAGIC_CMD"; then
2271   echo "$ac_t""$MAGIC_CMD" 1>&6
2272 else
2273   echo "$ac_t""no" 1>&6
2274 fi
2275
2276   else
2277     MAGIC_CMD=:
2278   fi
2279 fi
2280
2281   fi
2282   ;;
2283 esac
2284
2285 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_word" >&5
2289 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2290   echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292   if test -n "$RANLIB"; then
2293   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2294 else
2295   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2296   ac_dummy="$PATH"
2297   for ac_dir in $ac_dummy; do
2298     test -z "$ac_dir" && ac_dir=.
2299     if test -f $ac_dir/$ac_word; then
2300       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2301       break
2302     fi
2303   done
2304   IFS="$ac_save_ifs"
2305 fi
2306 fi
2307 RANLIB="$ac_cv_prog_RANLIB"
2308 if test -n "$RANLIB"; then
2309   echo "$ac_t""$RANLIB" 1>&6
2310 else
2311   echo "$ac_t""no" 1>&6
2312 fi
2313
2314
2315 if test -z "$ac_cv_prog_RANLIB"; then
2316 if test -n "$ac_tool_prefix"; then
2317   # Extract the first word of "ranlib", so it can be a program name with args.
2318 set dummy ranlib; ac_word=$2
2319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2320 echo "configure:2321: checking for $ac_word" >&5
2321 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2322   echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324   if test -n "$RANLIB"; then
2325   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2326 else
2327   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2328   ac_dummy="$PATH"
2329   for ac_dir in $ac_dummy; do
2330     test -z "$ac_dir" && ac_dir=.
2331     if test -f $ac_dir/$ac_word; then
2332       ac_cv_prog_RANLIB="ranlib"
2333       break
2334     fi
2335   done
2336   IFS="$ac_save_ifs"
2337   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2338 fi
2339 fi
2340 RANLIB="$ac_cv_prog_RANLIB"
2341 if test -n "$RANLIB"; then
2342   echo "$ac_t""$RANLIB" 1>&6
2343 else
2344   echo "$ac_t""no" 1>&6
2345 fi
2346
2347 else
2348   RANLIB=":"
2349 fi
2350 fi
2351
2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}strip; ac_word=$2
2354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2357   echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359   if test -n "$STRIP"; then
2360   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2363   ac_dummy="$PATH"
2364   for ac_dir in $ac_dummy; do
2365     test -z "$ac_dir" && ac_dir=.
2366     if test -f $ac_dir/$ac_word; then
2367       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368       break
2369     fi
2370   done
2371   IFS="$ac_save_ifs"
2372 fi
2373 fi
2374 STRIP="$ac_cv_prog_STRIP"
2375 if test -n "$STRIP"; then
2376   echo "$ac_t""$STRIP" 1>&6
2377 else
2378   echo "$ac_t""no" 1>&6
2379 fi
2380
2381
2382 if test -z "$ac_cv_prog_STRIP"; then
2383 if test -n "$ac_tool_prefix"; then
2384   # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2389   echo $ac_n "(cached) $ac_c" 1>&6
2390 else
2391   if test -n "$STRIP"; then
2392   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2393 else
2394   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2395   ac_dummy="$PATH"
2396   for ac_dir in $ac_dummy; do
2397     test -z "$ac_dir" && ac_dir=.
2398     if test -f $ac_dir/$ac_word; then
2399       ac_cv_prog_STRIP="strip"
2400       break
2401     fi
2402   done
2403   IFS="$ac_save_ifs"
2404   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2405 fi
2406 fi
2407 STRIP="$ac_cv_prog_STRIP"
2408 if test -n "$STRIP"; then
2409   echo "$ac_t""$STRIP" 1>&6
2410 else
2411   echo "$ac_t""no" 1>&6
2412 fi
2413
2414 else
2415   STRIP=":"
2416 fi
2417 fi
2418
2419
2420 # Check for any special flags to pass to ltconfig.
2421 libtool_flags="--cache-file=$cache_file"
2422 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2423 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2424 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2425 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2426 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2427 libtool_flags="$libtool_flags --enable-dlopen"
2428
2429 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2430 if test "${enable_libtool_lock+set}" = set; then
2431   enableval="$enable_libtool_lock"
2432   :
2433 fi
2434
2435 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2436 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2437
2438 # Check whether --with-pic or --without-pic was given.
2439 if test "${with_pic+set}" = set; then
2440   withval="$with_pic"
2441   pic_mode="$withval"
2442 else
2443   pic_mode=default
2444 fi
2445
2446 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2447 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2448
2449 # Some flags need to be propagated to the compiler or linker for good
2450 # libtool support.
2451 case $host in
2452 *-*-irix6*)
2453   # Find out which ABI we are using.
2454   echo '#line 2455 "configure"' > conftest.$ac_ext
2455   if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456     case `/usr/bin/file conftest.$ac_objext` in
2457     *32-bit*)
2458       LD="${LD-ld} -32"
2459       ;;
2460     *N32*)
2461       LD="${LD-ld} -n32"
2462       ;;
2463     *64-bit*)
2464       LD="${LD-ld} -64"
2465       ;;
2466     esac
2467   fi
2468   rm -rf conftest*
2469   ;;
2470
2471 *-*-sco3.2v5*)
2472   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2473   SAVE_CFLAGS="$CFLAGS"
2474   CFLAGS="$CFLAGS -belf"
2475   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2476 echo "configure:2477: checking whether the C compiler needs -belf" >&5
2477 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2478   echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480   
2481      ac_ext=c
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling=$ac_cv_prog_cc_cross
2487
2488      cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491
2492 int main() {
2493
2494 ; return 0; }
2495 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497   rm -rf conftest*
2498   lt_cv_cc_needs_belf=yes
2499 else
2500   echo "configure: failed program was:" >&5
2501   cat conftest.$ac_ext >&5
2502   rm -rf conftest*
2503   lt_cv_cc_needs_belf=no
2504 fi
2505 rm -f conftest*
2506      ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2512
2513 fi
2514
2515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2516   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2517     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2518     CFLAGS="$SAVE_CFLAGS"
2519   fi
2520   ;;
2521
2522
2523 esac
2524
2525 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2526 echo "configure:2527: checking how to run the C++ preprocessor" >&5
2527 if test -z "$CXXCPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2529   echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531   ac_ext=C
2532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CXXCPP $CPPFLAGS'
2534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cxx_cross
2537   CXXCPP="${CXX-g++} -E"
2538   cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <stdlib.h>
2542 EOF
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2547   :
2548 else
2549   echo "$ac_err" >&5
2550   echo "configure: failed program was:" >&5
2551   cat conftest.$ac_ext >&5
2552   rm -rf conftest*
2553   CXXCPP=/lib/cpp
2554 fi
2555 rm -f conftest*
2556   ac_cv_prog_CXXCPP="$CXXCPP"
2557 ac_ext=c
2558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2562 cross_compiling=$ac_cv_prog_cc_cross
2563 fi
2564 fi
2565 CXXCPP="$ac_cv_prog_CXXCPP"
2566 echo "$ac_t""$CXXCPP" 1>&6
2567
2568
2569 # Save cache, so that ltconfig can load it
2570 cat > confcache <<\EOF
2571 # This file is a shell script that caches the results of configure
2572 # tests run on this system so they can be shared between configure
2573 # scripts and configure runs.  It is not useful on other systems.
2574 # If it contains results you don't want to keep, you may remove or edit it.
2575 #
2576 # By default, configure uses ./config.cache as the cache file,
2577 # creating it if it does not exist already.  You can give configure
2578 # the --cache-file=FILE option to use a different cache file; that is
2579 # what configure does when it calls configure scripts in
2580 # subdirectories, so they share the cache.
2581 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2582 # config.status only pays attention to the cache file if you give it the
2583 # --recheck option to rerun configure.
2584 #
2585 EOF
2586 # The following way of writing the cache mishandles newlines in values,
2587 # but we know of no workaround that is simple, portable, and efficient.
2588 # So, don't put newlines in cache variables' values.
2589 # Ultrix sh set writes to stderr and can't be redirected directly,
2590 # and sets the high bit in the cache file unless we assign to the vars.
2591 (set) 2>&1 |
2592   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2593   *ac_space=\ *)
2594     # `set' does not quote correctly, so add quotes (double-quote substitution
2595     # turns \\\\ into \\, and sed turns \\ into \).
2596     sed -n \
2597       -e "s/'/'\\\\''/g" \
2598       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2599     ;;
2600   *)
2601     # `set' quotes correctly as required by POSIX, so do not add quotes.
2602     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2603     ;;
2604   esac >> confcache
2605 if cmp -s $cache_file confcache; then
2606   :
2607 else
2608   if test -w $cache_file; then
2609     echo "updating cache $cache_file"
2610     cat confcache > $cache_file
2611   else
2612     echo "not updating unwritable cache $cache_file"
2613   fi
2614 fi
2615 rm -f confcache
2616
2617
2618 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2619 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2620 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2621 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2622 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2623 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2624 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2626 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2627 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2628
2629 # Reload cache, that may have been modified by ltconfig
2630 if test -r "$cache_file"; then
2631   echo "loading cache $cache_file"
2632   . $cache_file
2633 else
2634   echo "creating cache $cache_file"
2635   > $cache_file
2636 fi
2637
2638
2639 # This can be used to rebuild libtool when needed
2640 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2641
2642 # Always use our own libtool.
2643 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2644
2645 # Redirect the config.log output again, so that the ltconfig log is not
2646 # clobbered by the next message.
2647 exec 5>>./config.log
2648
2649
2650
2651 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2652 lt_save_CC="$CC"
2653 lt_save_CFLAGS="$CFLAGS"
2654 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2655 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2656 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2657 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2658 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2659 deplibs_check_method="$deplibs_check_method" \
2660 file_magic_cmd="$file_magic_cmd" \
2661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2662 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2663 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2664 CC="$lt_save_CC"
2665 CFLAGS="$lt_save_CFLAGS"
2666
2667 # Redirect the config.log output again, so that the ltconfig log is not
2668 # clobbered by the next message.
2669 exec 5>>./config.log
2670
2671   
2672
2673   
2674          
2675          
2676
2677
2678
2679 # Check for c++ or library specific bits that don't require linking.
2680 #GLIBCPP_CHECK_COMPILER_VERSION
2681 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2682 echo "configure:2683: checking for GNU make" >&5
2683 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2684   echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686   _cv_gnu_make_command='' ;
2687           for a in "${MAKE-make}" make gmake gnumake ; do
2688                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2689                   then
2690                           _cv_gnu_make_command=$a ;
2691                           break;
2692                   fi
2693           done ;
2694   
2695 fi
2696
2697 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2698   if test  "x$_cv_gnu_make_command" != "x"  ; then
2699           ifGNUmake='' ;
2700   else
2701           ifGNUmake='#' ;
2702   fi
2703   
2704
2705
2706 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2707 # Check whether --enable-debug or --disable-debug was given.
2708 if test "${enable_debug+set}" = set; then
2709   enableval="$enable_debug"
2710   case "${enableval}" in
2711  yes) enable_debug=yes ;;
2712  no)  enable_debug=no ;;
2713  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2714  esac
2715 else
2716   enable_debug=no
2717 fi
2718
2719 case "${enable_debug}" in
2720     yes) 
2721         DEBUG_FLAGS='-O0 -ggdb3'                        
2722         ;; 
2723     no)   
2724         DEBUG_FLAGS='-g'
2725         ;;
2726 esac
2727
2728
2729 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2730 echo "configure:2731: checking how to run the C preprocessor" >&5
2731 # On Suns, sometimes $CPP names a directory.
2732 if test -n "$CPP" && test -d "$CPP"; then
2733   CPP=
2734 fi
2735 if test -z "$CPP"; then
2736 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2737   echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739     # This must be in double quotes, not single quotes, because CPP may get
2740   # substituted into the Makefile and "${CC-cc}" will confuse make.
2741   CPP="${CC-cc} -E"
2742   # On the NeXT, cc -E runs the code through the compiler's parser,
2743   # not just through cpp.
2744   cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 #include <assert.h>
2748 Syntax Error
2749 EOF
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2754   :
2755 else
2756   echo "$ac_err" >&5
2757   echo "configure: failed program was:" >&5
2758   cat conftest.$ac_ext >&5
2759   rm -rf conftest*
2760   CPP="${CC-cc} -E -traditional-cpp"
2761   cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <assert.h>
2765 Syntax Error
2766 EOF
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2771   :
2772 else
2773   echo "$ac_err" >&5
2774   echo "configure: failed program was:" >&5
2775   cat conftest.$ac_ext >&5
2776   rm -rf conftest*
2777   CPP="${CC-cc} -nologo -E"
2778   cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <assert.h>
2782 Syntax Error
2783 EOF
2784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2788   :
2789 else
2790   echo "$ac_err" >&5
2791   echo "configure: failed program was:" >&5
2792   cat conftest.$ac_ext >&5
2793   rm -rf conftest*
2794   CPP=/lib/cpp
2795 fi
2796 rm -f conftest*
2797 fi
2798 rm -f conftest*
2799 fi
2800 rm -f conftest*
2801   ac_cv_prog_CPP="$CPP"
2802 fi
2803   CPP="$ac_cv_prog_CPP"
2804 else
2805   ac_cv_prog_CPP="$CPP"
2806 fi
2807 echo "$ac_t""$CPP" 1>&6
2808
2809
2810   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2811 echo "configure:2812: checking for cstdio to use" >&5
2812   # Check whether --enable-cstdio or --disable-cstdio was given.
2813 if test "${enable_cstdio+set}" = set; then
2814   enableval="$enable_cstdio"
2815   if test x$enable_cstdio = xno; then
2816      enable_cstdio=stdio
2817   fi
2818 else
2819   enable_cstdio=stdio
2820 fi
2821
2822
2823   enable_cstdio_flag=$enable_cstdio
2824
2825     case x${enable_cstdio_flag} in
2826     xlibio)
2827       CSTDIO_H=config/io/c_io_libio.h
2828       BASIC_FILE_H=config/io/basic_file_libio.h
2829       BASIC_FILE_CC=config/io/basic_file_libio.cc
2830       echo "$ac_t""libio" 1>&6
2831
2832       # see if we are on a system with libio native (ie, linux)
2833       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2834 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2835 echo "configure:2836: checking for libio.h" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837   echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839   cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #include <libio.h>
2843 EOF
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2848   rm -rf conftest*
2849   eval "ac_cv_header_$ac_safe=yes"
2850 else
2851   echo "$ac_err" >&5
2852   echo "configure: failed program was:" >&5
2853   cat conftest.$ac_ext >&5
2854   rm -rf conftest*
2855   eval "ac_cv_header_$ac_safe=no"
2856 fi
2857 rm -f conftest*
2858 fi
2859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860   echo "$ac_t""yes" 1>&6
2861   has_libio=yes
2862 else
2863   echo "$ac_t""no" 1>&6
2864 has_libio=no
2865 fi
2866
2867
2868       # Need to check and see what version of glibc is being used. If
2869       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2870       # compile most of libio for linux systems.
2871       if test x$has_libio = x"yes"; then
2872         case "$target" in
2873           *-*-linux*)
2874               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2875 echo "configure:2876: checking for glibc version >= 2.2" >&5
2876               cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879
2880             #include <features.h>
2881               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2882                     ok
2883               #endif
2884               
2885 EOF
2886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2887   egrep "ok" >/dev/null 2>&1; then
2888   rm -rf conftest*
2889   glibc_satisfactory=yes
2890 else
2891   rm -rf conftest*
2892   glibc_satisfactory=no
2893 fi
2894 rm -f conftest*
2895
2896               echo "$ac_t""$glibc_satisfactory" 1>&6
2897             ;;
2898         esac
2899
2900         # XXX at the moment, admit defeat and force the recompilation
2901         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2902         glibc_satisfactory=no        
2903
2904         if test x$glibc_satisfactory = x"yes"; then
2905            need_libio=no
2906            need_wlibio=no        
2907         else
2908            need_libio=yes
2909            # bkoz XXX need to add checks to enable this
2910            # pme XXX here's a first pass at such a check
2911            if test x$enable_c_mbchar != xno; then
2912               need_wlibio=yes
2913            else
2914               need_wlibio=no
2915            fi
2916         fi
2917
2918       else
2919          # Using libio, but <libio.h> doesn't exist on the target system. . .
2920          need_libio=yes
2921          # bkoz XXX need to add checks to enable this
2922          # pme XXX here's a first pass at such a check
2923          if test x$enable_c_mbchar != xno; then
2924              need_wlibio=yes
2925          else
2926              need_wlibio=no
2927          fi
2928       fi
2929       ;;
2930     xstdio | x | xno | xnone | xyes)
2931       # default
2932       CSTDIO_H=config/io/c_io_stdio.h
2933       BASIC_FILE_H=config/io/basic_file_stdio.h
2934       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2935       echo "$ac_t""stdio" 1>&6
2936
2937       # We're not using stdio.
2938       need_libio=no
2939       need_wlibio=no
2940       ;;
2941     *)
2942       echo "$enable_cstdio is an unknown io package" 1>&2
2943       exit 1
2944       ;;
2945   esac
2946   
2947   
2948   
2949
2950   # 2000-08-04 bkoz hack
2951   CCODECVT_C=config/io/c_io_libio_codecvt.c
2952   
2953   # 2000-08-04 bkoz hack
2954
2955   
2956
2957 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2958   GLIBCPP_BUILD_LIBIO_TRUE=
2959   GLIBCPP_BUILD_LIBIO_FALSE='#'
2960 else
2961   GLIBCPP_BUILD_LIBIO_TRUE='#'
2962   GLIBCPP_BUILD_LIBIO_FALSE=
2963 fi
2964   
2965
2966 if test "$need_libio" = yes; then
2967   GLIBCPP_NEED_LIBIO_TRUE=
2968   GLIBCPP_NEED_LIBIO_FALSE='#'
2969 else
2970   GLIBCPP_NEED_LIBIO_TRUE='#'
2971   GLIBCPP_NEED_LIBIO_FALSE=
2972 fi
2973   
2974
2975 if test "$need_wlibio" = yes; then
2976   GLIBCPP_NEED_WLIBIO_TRUE=
2977   GLIBCPP_NEED_WLIBIO_FALSE='#'
2978 else
2979   GLIBCPP_NEED_WLIBIO_TRUE='#'
2980   GLIBCPP_NEED_WLIBIO_FALSE=
2981 fi
2982   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2983     libio_la=../libio/libio.la
2984   else
2985     libio_la=
2986   fi
2987   
2988
2989
2990   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2991 echo "configure:2992: checking for clocale to use" >&5
2992   # Check whether --enable-clocale or --disable-clocale was given.
2993 if test "${enable_clocale+set}" = set; then
2994   enableval="$enable_clocale"
2995   if test x$enable_clocale = xno; then
2996      enable_clocale=no
2997   fi
2998 else
2999   enable_clocale=no
3000 fi
3001
3002
3003   enable_clocale_flag=$enable_clocale
3004
3005       if test x$enable_clocale_flag = xno; then
3006     case x${target_os} in
3007       xlinux* | xgnu*)
3008         cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011
3012         #include <features.h>
3013         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3014           _GLIBCPP_ok
3015         #endif
3016         
3017 EOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3020   rm -rf conftest*
3021   enable_clocale_flag=gnu
3022 else
3023   rm -rf conftest*
3024   enable_clocale_flag=generic
3025 fi
3026 rm -f conftest*
3027
3028
3029         # Test for bugs early in glibc-2.2.x series
3030         if test x$enable_clocale_flag = xgnu; then
3031           if test "$cross_compiling" = yes; then
3032   enable_clocale_flag=generic
3033 else
3034   cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037
3038           #define _GNU_SOURCE 1
3039           #include <locale.h>
3040           int main()
3041           {
3042             const char __one[] = "Äuglein Augmen";
3043             const char __two[] = "Äuglein";
3044             int i;
3045             int j;
3046             __locale_t  loc;
3047             __locale_t  loc_dup;
3048             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3049             loc_dup = __duplocale(loc);
3050             i = __strcoll_l(__one, __two, loc);
3051             j = __strcoll_l(__one, __two, loc_dup);
3052             return 0;
3053           }
3054           
3055 EOF
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3057 then
3058   enable_clocale_flag=gnu
3059 else
3060   echo "configure: failed program was:" >&5
3061   cat conftest.$ac_ext >&5
3062   rm -fr conftest*
3063   enable_clocale_flag=generic
3064 fi
3065 rm -fr conftest*
3066 fi
3067
3068         fi
3069
3070         # ... at some point put __strxfrm_l tests in as well.
3071         ;;
3072       *)
3073         enable_clocale_flag=generic
3074         ;;
3075     esac
3076   fi
3077
3078     # Check whether --enable-nls or --disable-nls was given.
3079 if test "${enable_nls+set}" = set; then
3080   enableval="$enable_nls"
3081   :
3082 else
3083   enable_nls=yes
3084 fi
3085
3086   USE_NLS=no
3087
3088     case x${enable_clocale_flag} in
3089     xgeneric)
3090       echo "$ac_t""generic" 1>&6
3091
3092       CLOCALE_H=config/locale/generic/c_locale.h
3093       CLOCALE_CC=config/locale/generic/c_locale.cc
3094       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3095       CCOLLATE_CC=config/locale/generic/collate_members.cc
3096       CCTYPE_CC=config/locale/generic/ctype_members.cc
3097       CMESSAGES_H=config/locale/generic/messages_members.h
3098       CMESSAGES_CC=config/locale/generic/messages_members.cc
3099       CMONEY_CC=config/locale/generic/monetary_members.cc
3100       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3101       CTIME_CC=config/locale/generic/time_members.cc
3102       ;;
3103     xgnu)
3104       echo "$ac_t""gnu" 1>&6
3105
3106       # Declare intention to use gettext, and add support for specific
3107       # languages.
3108       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3109       ALL_LINGUAS="de fr"
3110
3111       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3112       # Extract the first word of "msgfmt", so it can be a program name with args.
3113 set dummy msgfmt; ac_word=$2
3114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_word" >&5
3116 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3117   echo $ac_n "(cached) $ac_c" 1>&6
3118 else
3119   if test -n "$check_msgfmt"; then
3120   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3121 else
3122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3123   ac_dummy="$PATH"
3124   for ac_dir in $ac_dummy; do
3125     test -z "$ac_dir" && ac_dir=.
3126     if test -f $ac_dir/$ac_word; then
3127       ac_cv_prog_check_msgfmt="yes"
3128       break
3129     fi
3130   done
3131   IFS="$ac_save_ifs"
3132   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3133 fi
3134 fi
3135 check_msgfmt="$ac_cv_prog_check_msgfmt"
3136 if test -n "$check_msgfmt"; then
3137   echo "$ac_t""$check_msgfmt" 1>&6
3138 else
3139   echo "$ac_t""no" 1>&6
3140 fi
3141
3142       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3143         USE_NLS=yes
3144       fi
3145       # Export the build objects.
3146       for ling in $ALL_LINGUAS; do \
3147         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3148         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3149       done
3150       
3151       
3152
3153       CLOCALE_H=config/locale/gnu/c_locale.h
3154       CLOCALE_CC=config/locale/gnu/c_locale.cc
3155       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3156       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3157       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3158       CMESSAGES_H=config/locale/gnu/messages_members.h
3159       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3160       CMONEY_CC=config/locale/gnu/monetary_members.cc
3161       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3162       CTIME_CC=config/locale/gnu/time_members.cc
3163       ;;
3164     xieee_1003.1-2001)
3165       echo "$ac_t""generic" 1>&6
3166
3167       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3168       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3169       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3170       CCOLLATE_CC=config/locale/generic/collate_members.cc
3171       CCTYPE_CC=config/locale/generic/ctype_members.cc
3172       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3173       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3174       CMONEY_CC=config/locale/generic/monetary_members.cc
3175       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3176       CTIME_CC=config/locale/generic/time_members.cc
3177       ;;
3178     *)
3179       echo "$enable_clocale is an unknown locale package" 1>&2
3180       exit 1
3181       ;;
3182   esac
3183
3184   # This is where the testsuite looks for locale catalogs, using the
3185   # -DLOCALEDIR define during testsuite compilation.
3186   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3187   
3188
3189   
3190   
3191   
3192   
3193   
3194   
3195   
3196   
3197   
3198   
3199   
3200
3201 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3202 if test "${enable_c_mbchar+set}" = set; then
3203   enableval="$enable_c_mbchar"
3204   case "$enableval" in
3205  yes) enable_c_mbchar=yes ;;
3206  no)  enable_c_mbchar=no ;;
3207  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3208  esac
3209 else
3210   enable_c_mbchar=yes
3211 fi
3212
3213   
3214   # Check whether --enable-c99 or --disable-c99 was given.
3215 if test "${enable_c99+set}" = set; then
3216   enableval="$enable_c99"
3217     case "$enableval" in
3218    yes) enable_c99=yes ;;
3219    no)  enable_c99=no ;;
3220    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3221    esac
3222 else
3223   enable_c99=yes
3224 fi
3225  
3226   
3227   ac_ext=C
3228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3229 ac_cpp='$CXXCPP $CPPFLAGS'
3230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3232 cross_compiling=$ac_cv_prog_cxx_cross
3233
3234
3235   # Check for the existence of <math.h> functions used if C99 is enabled.
3236   ac_c99_math=yes;
3237   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3238 echo "configure:3239: checking for ISO C99 support in <math.h>" >&5
3239   cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 #include <math.h>
3243 int main() {
3244 fpclassify(0.0);
3245 ; return 0; }
3246 EOF
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248   :
3249 else
3250   echo "configure: failed program was:" >&5
3251   cat conftest.$ac_ext >&5
3252   rm -rf conftest*
3253   ac_c99_math=no
3254 fi
3255 rm -f conftest*
3256   cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <math.h>
3260 int main() {
3261 isfinite(0.0);
3262 ; return 0; }
3263 EOF
3264 if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3265   :
3266 else
3267   echo "configure: failed program was:" >&5
3268   cat conftest.$ac_ext >&5
3269   rm -rf conftest*
3270   ac_c99_math=no
3271 fi
3272 rm -f conftest*
3273   cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 #include <math.h>
3277 int main() {
3278 isinf(0.0);
3279 ; return 0; }
3280 EOF
3281 if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3282   :
3283 else
3284   echo "configure: failed program was:" >&5
3285   cat conftest.$ac_ext >&5
3286   rm -rf conftest*
3287   ac_c99_math=no
3288 fi
3289 rm -f conftest*
3290   cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 #include <math.h>
3294 int main() {
3295 isnan(0.0);
3296 ; return 0; }
3297 EOF
3298 if { (eval echo configure:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3299   :
3300 else
3301   echo "configure: failed program was:" >&5
3302   cat conftest.$ac_ext >&5
3303   rm -rf conftest*
3304   ac_c99_math=no
3305 fi
3306 rm -f conftest*
3307   cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <math.h>
3311 int main() {
3312 isnormal(0.0);
3313 ; return 0; }
3314 EOF
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316   :
3317 else
3318   echo "configure: failed program was:" >&5
3319   cat conftest.$ac_ext >&5
3320   rm -rf conftest*
3321   ac_c99_math=no
3322 fi
3323 rm -f conftest*
3324   cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <math.h>
3328 int main() {
3329 signbit(0.0);
3330 ; return 0; }
3331 EOF
3332 if { (eval echo configure:3333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3333   :
3334 else
3335   echo "configure: failed program was:" >&5
3336   cat conftest.$ac_ext >&5
3337   rm -rf conftest*
3338   ac_c99_math=no
3339 fi
3340 rm -f conftest*
3341   cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <math.h>
3345 int main() {
3346 isgreater(0.0,0.0);
3347 ; return 0; }
3348 EOF
3349 if { (eval echo configure:3350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3350   :
3351 else
3352   echo "configure: failed program was:" >&5
3353   cat conftest.$ac_ext >&5
3354   rm -rf conftest*
3355   ac_c99_math=no
3356 fi
3357 rm -f conftest*
3358   cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <math.h>
3362 int main() {
3363 isgreaterequal(0.0,0.0);
3364 ; return 0; }
3365 EOF
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367   :
3368 else
3369   echo "configure: failed program was:" >&5
3370   cat conftest.$ac_ext >&5
3371   rm -rf conftest*
3372   ac_c99_math=no
3373 fi
3374 rm -f conftest*
3375   cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <math.h>
3379 int main() {
3380 isless(0.0,0.0);
3381 ; return 0; }
3382 EOF
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384   :
3385 else
3386   echo "configure: failed program was:" >&5
3387   cat conftest.$ac_ext >&5
3388   rm -rf conftest*
3389   ac_c99_math=no
3390 fi
3391 rm -f conftest*
3392   cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 #include <math.h>
3396 int main() {
3397 islessequal(0.0,0.0);
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401   :
3402 else
3403   echo "configure: failed program was:" >&5
3404   cat conftest.$ac_ext >&5
3405   rm -rf conftest*
3406   ac_c99_math=no
3407 fi
3408 rm -f conftest*
3409   cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <math.h>
3413 int main() {
3414 islessgreater(0.0,0.0);
3415 ; return 0; }
3416 EOF
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3418   :
3419 else
3420   echo "configure: failed program was:" >&5
3421   cat conftest.$ac_ext >&5
3422   rm -rf conftest*
3423   ac_c99_math=no
3424 fi
3425 rm -f conftest*
3426   cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <math.h>
3430 int main() {
3431 isunordered(0.0,0.0);
3432 ; return 0; }
3433 EOF
3434 if { (eval echo configure:3435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3435   :
3436 else
3437   echo "configure: failed program was:" >&5
3438   cat conftest.$ac_ext >&5
3439   rm -rf conftest*
3440   ac_c99_math=no
3441 fi
3442 rm -f conftest*
3443   echo "$ac_t""$ac_c99_math" 1>&6
3444
3445   # Check for the existence in <stdio.h> of vscanf, et. al.
3446   ac_c99_stdio=yes;
3447   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3448 echo "configure:3449: checking for ISO C99 support in <stdio.h>" >&5
3449   cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 #include <stdio.h>
3453 int main() {
3454 snprintf("12", 0, "%i");
3455 ; return 0; }
3456 EOF
3457 if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458   :
3459 else
3460   echo "configure: failed program was:" >&5
3461   cat conftest.$ac_ext >&5
3462   rm -rf conftest*
3463   ac_c99_stdio=no
3464 fi
3465 rm -f conftest*
3466   cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <stdio.h>
3470                   #include <stdarg.h>
3471                   void foo(char* fmt, ...)
3472                   {va_list args; va_start(args, fmt);
3473                   vfscanf(stderr, "%i", args);}
3474 int main() {
3475
3476 ; return 0; }
3477 EOF
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3479   :
3480 else
3481   echo "configure: failed program was:" >&5
3482   cat conftest.$ac_ext >&5
3483   rm -rf conftest*
3484   ac_c99_stdio=no
3485 fi
3486 rm -f conftest*
3487   cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <stdio.h>
3491                   #include <stdarg.h>
3492                   void foo(char* fmt, ...)
3493                   {va_list args; va_start(args, fmt);
3494                   vscanf("%i", args);}
3495 int main() {
3496
3497 ; return 0; }
3498 EOF
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500   :
3501 else
3502   echo "configure: failed program was:" >&5
3503   cat conftest.$ac_ext >&5
3504   rm -rf conftest*
3505   ac_c99_stdio=no
3506 fi
3507 rm -f conftest*
3508   cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdio.h>
3512                   #include <stdarg.h>
3513                   void foo(char* fmt, ...)
3514                   {va_list args; va_start(args, fmt);
3515                   vsnprintf(fmt, 0, "%i", args);}
3516 int main() {
3517
3518 ; return 0; }
3519 EOF
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3521   :
3522 else
3523   echo "configure: failed program was:" >&5
3524   cat conftest.$ac_ext >&5
3525   rm -rf conftest*
3526   ac_c99_stdio=no
3527 fi
3528 rm -f conftest*
3529   cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <stdio.h>
3533                   #include <stdarg.h>
3534                   void foo(char* fmt, ...)
3535                   {va_list args; va_start(args, fmt);
3536                   vsscanf(fmt, "%i", args);}
3537 int main() {
3538
3539 ; return 0; }
3540 EOF
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542   :
3543 else
3544   echo "configure: failed program was:" >&5
3545   cat conftest.$ac_ext >&5
3546   rm -rf conftest*
3547   ac_c99_stdio=no
3548 fi
3549 rm -f conftest*
3550   echo "$ac_t""$ac_c99_stdio" 1>&6
3551
3552   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3553   ac_c99_stdlib=yes;
3554   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3555 echo "configure:3556: checking for lldiv_t declaration" >&5
3556   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3557   echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559   
3560   cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <stdlib.h>
3564 int main() {
3565  lldiv_t mydivt;
3566 ; return 0; }
3567 EOF
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569   rm -rf conftest*
3570   ac_c99_lldiv_t=yes
3571 else
3572   echo "configure: failed program was:" >&5
3573   cat conftest.$ac_ext >&5
3574   rm -rf conftest*
3575   ac_c99_lldiv_t=no
3576 fi
3577 rm -f conftest*
3578   
3579 fi
3580
3581   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3582
3583   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3584 echo "configure:3585: checking for ISO C99 support in <stdlib.h>" >&5
3585   cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <stdlib.h>
3589 int main() {
3590 char* tmp; strtof("gnu", &tmp);
3591 ; return 0; }
3592 EOF
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594   :
3595 else
3596   echo "configure: failed program was:" >&5
3597   cat conftest.$ac_ext >&5
3598   rm -rf conftest*
3599   ac_c99_stdlib=no
3600 fi
3601 rm -f conftest*
3602   cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 #include <stdlib.h>
3606 int main() {
3607 char* tmp; strtold("gnu", &tmp);
3608 ; return 0; }
3609 EOF
3610 if { (eval echo configure:3611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611   :
3612 else
3613   echo "configure: failed program was:" >&5
3614   cat conftest.$ac_ext >&5
3615   rm -rf conftest*
3616   ac_c99_stdlib=no
3617 fi
3618 rm -f conftest*
3619   cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 #include <stdlib.h>
3623 int main() {
3624 llabs(10);
3625 ; return 0; }
3626 EOF
3627 if { (eval echo configure:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3628   :
3629 else
3630   echo "configure: failed program was:" >&5
3631   cat conftest.$ac_ext >&5
3632   rm -rf conftest*
3633   ac_c99_stdlib=no
3634 fi
3635 rm -f conftest*
3636   cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <stdlib.h>
3640 int main() {
3641 lldiv(10,1);
3642 ; return 0; }
3643 EOF
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3645   :
3646 else
3647   echo "configure: failed program was:" >&5
3648   cat conftest.$ac_ext >&5
3649   rm -rf conftest*
3650   ac_c99_stdlib=no
3651 fi
3652 rm -f conftest*
3653   cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <stdlib.h>
3657 int main() {
3658 atoll("10");
3659 ; return 0; }
3660 EOF
3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3662   :
3663 else
3664   echo "configure: failed program was:" >&5
3665   cat conftest.$ac_ext >&5
3666   rm -rf conftest*
3667   ac_c99_stdlib=no
3668 fi
3669 rm -f conftest*
3670   cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <stdlib.h>
3674 int main() {
3675 _Exit(0);
3676 ; return 0; }
3677 EOF
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679   :
3680 else
3681   echo "configure: failed program was:" >&5
3682   cat conftest.$ac_ext >&5
3683   rm -rf conftest*
3684   ac_c99_stdlib=no
3685 fi
3686 rm -f conftest*
3687   if test x"$ac_c99_lldiv_t" = x"no"; then
3688     ac_c99_stdlib=no; 
3689   fi; 
3690   echo "$ac_t""$ac_c99_stdlib" 1>&6
3691
3692   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3693   # XXX the wchar.h checks should be rolled into the general C99 bits.
3694   ac_c99_wchar=yes;
3695   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3696 echo "configure:3697: checking for additional ISO C99 support in <wchar.h>" >&5
3697   cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <wchar.h>
3701 int main() {
3702 wcstold(L"10.0", NULL);
3703 ; return 0; }
3704 EOF
3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706   :
3707 else
3708   echo "configure: failed program was:" >&5
3709   cat conftest.$ac_ext >&5
3710   rm -rf conftest*
3711   ac_c99_wchar=no
3712 fi
3713 rm -f conftest*
3714   cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 #include <wchar.h>
3718 int main() {
3719 wcstoll(L"10", NULL, 10);
3720 ; return 0; }
3721 EOF
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723   :
3724 else
3725   echo "configure: failed program was:" >&5
3726   cat conftest.$ac_ext >&5
3727   rm -rf conftest*
3728   ac_c99_wchar=no
3729 fi
3730 rm -f conftest*
3731   cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <wchar.h>
3735 int main() {
3736 wcstoull(L"10", NULL, 10);
3737 ; return 0; }
3738 EOF
3739 if { (eval echo configure:3740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740   :
3741 else
3742   echo "configure: failed program was:" >&5
3743   cat conftest.$ac_ext >&5
3744   rm -rf conftest*
3745   ac_c99_wchar=no
3746 fi
3747 rm -f conftest*
3748   echo "$ac_t""$ac_c99_wchar" 1>&6
3749
3750   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3751 echo "configure:3752: checking for enabled ISO C99 support" >&5
3752   if test x"$ac_c99_math" = x"no" ||
3753      test x"$ac_c99_stdio" = x"no" ||
3754      test x"$ac_c99_stdlib" = x"no" ||
3755      test x"$ac_c99_wchar" = x"no"; then
3756     enable_c99=no; 
3757   fi; 
3758   echo "$ac_t""$enable_c99" 1>&6
3759
3760   # Option parsed, now set things appropriately
3761   if test x"$enable_c99" = x"yes"; then
3762     cat >> confdefs.h <<\EOF
3763 #define _GLIBCPP_USE_C99 1
3764 EOF
3765
3766   fi
3767
3768   ac_ext=c
3769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3773 cross_compiling=$ac_cv_prog_cc_cross
3774
3775
3776   
3777   # Check whether --enable-long-long or --disable-long-long was given.
3778 if test "${enable_long_long+set}" = set; then
3779   enableval="$enable_long_long"
3780     case "$enableval" in
3781    yes) enable_long_long=yes ;;
3782    no)  enable_long_long=no ;;
3783    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3784    esac
3785 else
3786   enable_long_long=yes
3787 fi
3788
3789   
3790   ac_ext=C
3791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3792 ac_cpp='$CXXCPP $CPPFLAGS'
3793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3795 cross_compiling=$ac_cv_prog_cxx_cross
3796
3797
3798   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3799 echo "configure:3800: checking for enabled long long I/O support" >&5
3800   # iostreams require strtoll, strtoull to compile
3801   cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <stdlib.h>
3805 int main() {
3806 char* tmp; strtoll("gnu", &tmp, 10);
3807 ; return 0; }
3808 EOF
3809 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3810   :
3811 else
3812   echo "configure: failed program was:" >&5
3813   cat conftest.$ac_ext >&5
3814   rm -rf conftest*
3815   enable_long_long=no
3816 fi
3817 rm -f conftest*
3818   cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <stdlib.h>
3822 int main() {
3823 char* tmp; strtoull("gnu", &tmp, 10);
3824 ; return 0; }
3825 EOF
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827   :
3828 else
3829   echo "configure: failed program was:" >&5
3830   cat conftest.$ac_ext >&5
3831   rm -rf conftest*
3832   enable_long_long=no
3833 fi
3834 rm -f conftest*
3835
3836   # Option parsed, now set things appropriately
3837   if test x"$enable_long_long" = xyes; then
3838     cat >> confdefs.h <<\EOF
3839 #define _GLIBCPP_USE_LONG_LONG 1
3840 EOF
3841
3842   fi
3843   echo "$ac_t""$enable_long_long" 1>&6
3844
3845   ac_ext=c
3846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3850 cross_compiling=$ac_cv_prog_cc_cross
3851
3852
3853 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3854 echo "configure:3855: checking for c header strategy to use" >&5
3855 # Check whether --enable-cheaders or --disable-cheaders was given.
3856 if test "${enable_cheaders+set}" = set; then
3857   enableval="$enable_cheaders"
3858   
3859   case "$enableval" in
3860    c) 
3861         enable_cheaders=c 
3862         ;;
3863    c_std)  
3864         enable_cheaders=c_std 
3865         ;;
3866    c_shadow)  
3867         enable_cheaders=c_shadow 
3868         ;;
3869    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3870         ;;
3871   esac
3872 else
3873   enable_cheaders=c_std
3874 fi
3875
3876   echo "$ac_t""$enable_cheaders" 1>&6
3877
3878     case "$enable_cheaders" in
3879     c_shadow) 
3880         CSHADOW_FLAGS="-fno-builtin"
3881         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3882         ;;
3883     c_std)   
3884         CSHADOW_FLAGS=""
3885         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3886         ;;
3887     c)   
3888         CSHADOW_FLAGS=""
3889         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3890         ;;
3891   esac
3892
3893   
3894   
3895   
3896
3897 if test "$enable_cheaders" = c; then
3898   GLIBCPP_C_HEADERS_C_TRUE=
3899   GLIBCPP_C_HEADERS_C_FALSE='#'
3900 else
3901   GLIBCPP_C_HEADERS_C_TRUE='#'
3902   GLIBCPP_C_HEADERS_C_FALSE=
3903 fi
3904   
3905
3906 if test "$enable_cheaders" = c_std; then
3907   GLIBCPP_C_HEADERS_C_STD_TRUE=
3908   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3909 else
3910   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3911   GLIBCPP_C_HEADERS_C_STD_FALSE=
3912 fi
3913
3914
3915   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3916 echo "configure:3917: checking for thread model used by GCC" >&5
3917   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3918   echo "$ac_t""$target_thread_file" 1>&6
3919
3920   if test $target_thread_file != single; then
3921     cat >> confdefs.h <<\EOF
3922 #define HAVE_GTHR_DEFAULT 1
3923 EOF
3924
3925     cat >> confdefs.h <<\EOF
3926 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3927 EOF
3928
3929   fi
3930
3931   glibcpp_thread_h=gthr-$target_thread_file.h
3932   
3933
3934 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3935 if test "${enable_cxx_flags+set}" = set; then
3936   enableval="$enable_cxx_flags"
3937   case "x$enableval" in
3938  xyes)   
3939         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3940  xno|x)  
3941         enable_cxx_flags='' ;;
3942  *)      
3943         enable_cxx_flags="$enableval" ;;
3944  esac
3945 else
3946   enable_cxx_flags='none'
3947 fi
3948
3949
3950 if test "$enable_cxx_flags" = "none"; then 
3951   enable_cxx_flags=''; 
3952 fi
3953
3954 if test -n "$enable_cxx_flags"; then
3955     for f in $enable_cxx_flags; do
3956         case "$f" in
3957             -fhonor-std)  ;;
3958             -*)  ;;
3959             *)   # and we're trying to pass /what/ exactly?
3960                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3961         esac
3962     done
3963 fi
3964 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3965
3966
3967
3968   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3969 echo "configure:3970: checking for exception model to use" >&5
3970   
3971   ac_ext=C
3972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3973 ac_cpp='$CXXCPP $CPPFLAGS'
3974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3976 cross_compiling=$ac_cv_prog_cxx_cross
3977
3978   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3979 if test "${enable_sjlj_exceptions+set}" = set; then
3980   enableval="$enable_sjlj_exceptions"
3981   :
3982 else
3983                        cat > conftest.$ac_ext << EOF
3984 #line 3985 "configure"
3985 struct S { ~S(); };
3986 void bar();
3987 void foo()
3988 {
3989   S s;
3990   bar();
3991 }
3992 EOF
3993    old_CXXFLAGS="$CXXFLAGS"  
3994    CXXFLAGS=-S
3995    if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3996      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3997        enable_sjlj_exceptions=yes
3998      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3999        enable_sjlj_exceptions=no
4000      fi
4001    fi
4002    CXXFLAGS="$old_CXXFLAGS"
4003    rm -f conftest*
4004 fi
4005
4006    if test x$enable_sjlj_exceptions = xyes; then
4007      cat >> confdefs.h <<\EOF
4008 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4009 EOF
4010
4011      ac_exception_model_name=sjlj
4012    elif test x$enable_sjlj_exceptions = xno; then
4013      ac_exception_model_name="call frame"
4014    else
4015      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4016    fi
4017    ac_ext=c
4018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4022 cross_compiling=$ac_cv_prog_cc_cross
4023
4024    echo "$ac_t""$ac_exception_model_name" 1>&6
4025
4026
4027   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4028 echo "configure:4029: checking for use of libunwind" >&5
4029   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4030 if test "${enable_libunwind_exceptions+set}" = set; then
4031   enableval="$enable_libunwind_exceptions"
4032   use_libunwind_exceptions=$enableval
4033 else
4034   use_libunwind_exceptions=no
4035 fi
4036
4037   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4038     if test x"$use_libunwind_exceptions" = xyes; then
4039     LIBUNWIND_FLAG="-lunwind"
4040   else
4041     LIBUNWIND_FLAG=""
4042   fi
4043   
4044
4045 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4046 if test "${enable_concept_checks+set}" = set; then
4047   enableval="$enable_concept_checks"
4048   case "$enableval" in
4049  yes) enable_concept_checks=yes ;;
4050  no)  enable_concept_checks=no ;;
4051  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4052  esac
4053 else
4054   enable_concept_checks=no
4055 fi
4056 if test x"$enable_concept_checks" = xyes; then
4057   cat >> confdefs.h <<\EOF
4058 #define _GLIBCPP_CONCEPT_CHECKS 1
4059 EOF
4060
4061 fi
4062
4063
4064 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4065 for ac_hdr in string.h stdlib.h
4066 do
4067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_hdr" >&5
4070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4071   echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4073   cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 #include <$ac_hdr>
4077 EOF
4078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4079 { (eval echo configure:4080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4081 if test -z "$ac_err"; then
4082   rm -rf conftest*
4083   eval "ac_cv_header_$ac_safe=yes"
4084 else
4085   echo "$ac_err" >&5
4086   echo "configure: failed program was:" >&5
4087   cat conftest.$ac_ext >&5
4088   rm -rf conftest*
4089   eval "ac_cv_header_$ac_safe=no"
4090 fi
4091 rm -f conftest*
4092 fi
4093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4094   echo "$ac_t""yes" 1>&6
4095     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4096   cat >> confdefs.h <<EOF
4097 #define $ac_tr_hdr 1
4098 EOF
4099  
4100 else
4101   echo "$ac_t""no" 1>&6
4102 fi
4103 done
4104
4105
4106 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4107
4108   # We are being configured with some form of cross compiler.
4109   GLIBCPP_IS_CROSS_COMPILING=1
4110
4111   # This lets us hard-code the functionality we know we'll have in the cross
4112   # target environment.  "Let" is a sugar-coated word placed on an especially
4113   # dull and tedious hack, actually.
4114   #
4115   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4116   # that involve linking, can't be used:
4117   #    "cannot open sim-crt0.o"
4118   #    "cannot open crt0.o"
4119   # etc.  All this is because there currently exists no unified, consistent
4120   # way for top level CC information to be passed down to target directories:
4121   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4122   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4123   # crosses can be removed.
4124
4125   # If Canadian cross, then don't pick up tools from the build directory.
4126   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4127   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4128     CANADIAN=yes
4129   else
4130     CANADIAN=no
4131   fi
4132
4133   # Construct crosses by hand, eliminating bits that need ld...
4134   # GLIBCPP_CHECK_COMPILER_FEATURES
4135   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4136   # GLIBCPP_CHECK_MATH_SUPPORT
4137
4138   case "$target_alias" in
4139     *-linux*)
4140       os_include_dir="os/gnu-linux"
4141       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4142         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4143         fp.h locale.h float.h inttypes.h
4144 do
4145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4147 echo "configure:4148: checking for $ac_hdr" >&5
4148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4149   echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151   cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 #include <$ac_hdr>
4155 EOF
4156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4157 { (eval echo configure:4158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4159 if test -z "$ac_err"; then
4160   rm -rf conftest*
4161   eval "ac_cv_header_$ac_safe=yes"
4162 else
4163   echo "$ac_err" >&5
4164   echo "configure: failed program was:" >&5
4165   cat conftest.$ac_ext >&5
4166   rm -rf conftest*
4167   eval "ac_cv_header_$ac_safe=no"
4168 fi
4169 rm -f conftest*
4170 fi
4171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4172   echo "$ac_t""yes" 1>&6
4173     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4174   cat >> confdefs.h <<EOF
4175 #define $ac_tr_hdr 1
4176 EOF
4177  
4178 else
4179   echo "$ac_t""no" 1>&6
4180 fi
4181 done
4182
4183       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4184       
4185       
4186   # If we're not using GNU ld, then there's no point in even trying these
4187   # tests.  Check for that first.  We should have already tested for gld
4188   # by now (in libtool), but require it now just to be safe...
4189   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4190   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4191   
4192
4193   # The name set by libtool depends on the version of libtool.  Shame on us
4194   # for depending on an impl detail, but c'est la vie.  Older versions used
4195   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4196   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4197   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4198   # set (hence we're using an older libtool), then set it.
4199   if test x${with_gnu_ld+set} != xset; then
4200     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4201       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4202       with_gnu_ld=no
4203     else
4204       with_gnu_ld=$ac_cv_prog_gnu_ld
4205     fi
4206   fi
4207
4208   # Start by getting the version number.  I think the libtool test already
4209   # does some of this, but throws away the result.
4210   
4211   ldver=`$LD --version 2>/dev/null | head -1 | \
4212          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4213   
4214   glibcpp_gnu_ld_version=`echo $ldver | \
4215          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4216
4217   # Set --gc-sections.
4218   if test "$with_gnu_ld" = "notbroken"; then
4219     # GNU ld it is!  Joy and bunny rabbits!
4220
4221     # All these tests are for C++; save the language and the compiler flags.
4222     # Need to do this so that g++ won't try to link in libstdc++
4223     ac_test_CFLAGS="${CFLAGS+set}"
4224     ac_save_CFLAGS="$CFLAGS"
4225     CFLAGS='-x c++  -Wl,--gc-sections'
4226
4227     # Check for -Wl,--gc-sections
4228     # XXX This test is broken at the moment, as symbols required for
4229     # linking are now in libsupc++ (not built yet.....). In addition, 
4230     # this test has cored on solaris in the past. In addition,
4231     # --gc-sections doesn't really work at the moment (keeps on discarding
4232     # used sections, first .eh_frame and now some of the glibc sections for
4233     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4234     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4235 echo "configure:4236: checking for ld that supports -Wl,--gc-sections" >&5
4236     if test "$cross_compiling" = yes; then
4237   ac_sectionLDflags=yes
4238 else
4239   cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242
4243      int main(void) 
4244      {
4245        try { throw 1; }
4246        catch (...) { };
4247        return 0;
4248      }
4249     
4250 EOF
4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4252 then
4253   ac_sectionLDflags=yes
4254 else
4255   echo "configure: failed program was:" >&5
4256   cat conftest.$ac_ext >&5
4257   rm -fr conftest*
4258   ac_sectionLDflags=no
4259 fi
4260 rm -fr conftest*
4261 fi
4262
4263     if test "$ac_test_CFLAGS" = set; then
4264       CFLAGS="$ac_save_CFLAGS"
4265     else
4266       # this is the suspicious part
4267       CFLAGS=''
4268     fi
4269     if test "$ac_sectionLDflags" = "yes"; then
4270       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4271     fi
4272     echo "$ac_t""$ac_sectionLDflags" 1>&6
4273   fi
4274
4275   # Set linker optimization flags.
4276   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4277     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4278   fi
4279
4280   
4281   
4282
4283       
4284     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4285 echo "configure:4286: checking for main in -lm" >&5
4286 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4288   echo $ac_n "(cached) $ac_c" 1>&6
4289 else
4290   ac_save_LIBS="$LIBS"
4291 LIBS="-lm  $LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295
4296 int main() {
4297 main()
4298 ; return 0; }
4299 EOF
4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4301   rm -rf conftest*
4302   eval "ac_cv_lib_$ac_lib_var=yes"
4303 else
4304   echo "configure: failed program was:" >&5
4305   cat conftest.$ac_ext >&5
4306   rm -rf conftest*
4307   eval "ac_cv_lib_$ac_lib_var=no"
4308 fi
4309 rm -f conftest*
4310 LIBS="$ac_save_LIBS"
4311
4312 fi
4313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4314   echo "$ac_t""yes" 1>&6
4315     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4316     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4317   cat >> confdefs.h <<EOF
4318 #define $ac_tr_lib 1
4319 EOF
4320
4321   LIBS="-lm $LIBS"
4322
4323 else
4324   echo "$ac_t""no" 1>&6
4325 fi
4326
4327   for ac_func in nan copysignf
4328 do
4329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_func" >&5
4331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4332   echo $ac_n "(cached) $ac_c" 1>&6
4333 else
4334   cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* System header to define __stub macros and hopefully few prototypes,
4338     which can conflict with char $ac_func(); below.  */
4339 #include <assert.h>
4340 /* Override any gcc2 internal prototype to avoid an error.  */
4341 /* We use char because int might match the return type of a gcc2
4342     builtin and then its argument prototype would still apply.  */
4343 char $ac_func();
4344
4345 int main() {
4346
4347 /* The GNU C library defines this for functions which it implements
4348     to always fail with ENOSYS.  Some functions are actually named
4349     something starting with __ and the normal name is an alias.  */
4350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4351 choke me
4352 #else
4353 $ac_func();
4354 #endif
4355
4356 ; return 0; }
4357 EOF
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359   rm -rf conftest*
4360   eval "ac_cv_func_$ac_func=yes"
4361 else
4362   echo "configure: failed program was:" >&5
4363   cat conftest.$ac_ext >&5
4364   rm -rf conftest*
4365   eval "ac_cv_func_$ac_func=no"
4366 fi
4367 rm -f conftest*
4368 fi
4369
4370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4371   echo "$ac_t""yes" 1>&6
4372     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4373   cat >> confdefs.h <<EOF
4374 #define $ac_tr_func 1
4375 EOF
4376  
4377 else
4378   echo "$ac_t""no" 1>&6
4379 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4380 fi
4381 done
4382
4383
4384     for ac_func in __signbit
4385 do
4386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4387 echo "configure:4388: checking for $ac_func" >&5
4388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4389   echo $ac_n "(cached) $ac_c" 1>&6
4390 else
4391   cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 /* System header to define __stub macros and hopefully few prototypes,
4395     which can conflict with char $ac_func(); below.  */
4396 #include <assert.h>
4397 /* Override any gcc2 internal prototype to avoid an error.  */
4398 /* We use char because int might match the return type of a gcc2
4399     builtin and then its argument prototype would still apply.  */
4400 char $ac_func();
4401
4402 int main() {
4403
4404 /* The GNU C library defines this for functions which it implements
4405     to always fail with ENOSYS.  Some functions are actually named
4406     something starting with __ and the normal name is an alias.  */
4407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4408 choke me
4409 #else
4410 $ac_func();
4411 #endif
4412
4413 ; return 0; }
4414 EOF
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416   rm -rf conftest*
4417   eval "ac_cv_func_$ac_func=yes"
4418 else
4419   echo "configure: failed program was:" >&5
4420   cat conftest.$ac_ext >&5
4421   rm -rf conftest*
4422   eval "ac_cv_func_$ac_func=no"
4423 fi
4424 rm -f conftest*
4425 fi
4426
4427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4428   echo "$ac_t""yes" 1>&6
4429     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4430   cat >> confdefs.h <<EOF
4431 #define $ac_tr_func 1
4432 EOF
4433  
4434 else
4435   echo "$ac_t""no" 1>&6
4436 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4437 fi
4438 done
4439
4440   for ac_func in __signbitf
4441 do
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445   echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447   cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451     which can conflict with char $ac_func(); below.  */
4452 #include <assert.h>
4453 /* Override any gcc2 internal prototype to avoid an error.  */
4454 /* We use char because int might match the return type of a gcc2
4455     builtin and then its argument prototype would still apply.  */
4456 char $ac_func();
4457
4458 int main() {
4459
4460 /* The GNU C library defines this for functions which it implements
4461     to always fail with ENOSYS.  Some functions are actually named
4462     something starting with __ and the normal name is an alias.  */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 choke me
4465 #else
4466 $ac_func();
4467 #endif
4468
4469 ; return 0; }
4470 EOF
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472   rm -rf conftest*
4473   eval "ac_cv_func_$ac_func=yes"
4474 else
4475   echo "configure: failed program was:" >&5
4476   cat conftest.$ac_ext >&5
4477   rm -rf conftest*
4478   eval "ac_cv_func_$ac_func=no"
4479 fi
4480 rm -f conftest*
4481 fi
4482
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484   echo "$ac_t""yes" 1>&6
4485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486   cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4488 EOF
4489  
4490 else
4491   echo "$ac_t""no" 1>&6
4492 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4493 fi
4494 done
4495
4496
4497           if test x$ac_cv_func_copysignl = x"yes"; then
4498     for ac_func in __signbitl
4499 do
4500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4501 echo "configure:4502: checking for $ac_func" >&5
4502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4503   echo $ac_n "(cached) $ac_c" 1>&6
4504 else
4505   cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4508 /* System header to define __stub macros and hopefully few prototypes,
4509     which can conflict with char $ac_func(); below.  */
4510 #include <assert.h>
4511 /* Override any gcc2 internal prototype to avoid an error.  */
4512 /* We use char because int might match the return type of a gcc2
4513     builtin and then its argument prototype would still apply.  */
4514 char $ac_func();
4515
4516 int main() {
4517
4518 /* The GNU C library defines this for functions which it implements
4519     to always fail with ENOSYS.  Some functions are actually named
4520     something starting with __ and the normal name is an alias.  */
4521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4522 choke me
4523 #else
4524 $ac_func();
4525 #endif
4526
4527 ; return 0; }
4528 EOF
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530   rm -rf conftest*
4531   eval "ac_cv_func_$ac_func=yes"
4532 else
4533   echo "configure: failed program was:" >&5
4534   cat conftest.$ac_ext >&5
4535   rm -rf conftest*
4536   eval "ac_cv_func_$ac_func=no"
4537 fi
4538 rm -f conftest*
4539 fi
4540
4541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4542   echo "$ac_t""yes" 1>&6
4543     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4544   cat >> confdefs.h <<EOF
4545 #define $ac_tr_func 1
4546 EOF
4547  
4548 else
4549   echo "$ac_t""no" 1>&6
4550 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4551 fi
4552 done
4553
4554   fi
4555
4556   
4557
4558       
4559
4560       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4561 echo "configure:4562: checking for mbstate_t" >&5
4562   cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 #include <wchar.h>
4566 int main() {
4567 mbstate_t teststate;
4568 ; return 0; }
4569 EOF
4570 if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4571   rm -rf conftest*
4572   have_mbstate_t=yes
4573 else
4574   echo "configure: failed program was:" >&5
4575   cat conftest.$ac_ext >&5
4576   rm -rf conftest*
4577   have_mbstate_t=no
4578 fi
4579 rm -f conftest*
4580   echo "$ac_t""$have_mbstate_t" 1>&6
4581   if test x"$have_mbstate_t" = xyes; then
4582     cat >> confdefs.h <<\EOF
4583 #define HAVE_MBSTATE_T 1
4584 EOF
4585
4586   fi
4587
4588     for ac_hdr in wchar.h
4589 do
4590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_hdr" >&5
4593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4594   echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596   cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 #include <$ac_hdr>
4600 EOF
4601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4602 { (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4604 if test -z "$ac_err"; then
4605   rm -rf conftest*
4606   eval "ac_cv_header_$ac_safe=yes"
4607 else
4608   echo "$ac_err" >&5
4609   echo "configure: failed program was:" >&5
4610   cat conftest.$ac_ext >&5
4611   rm -rf conftest*
4612   eval "ac_cv_header_$ac_safe=no"
4613 fi
4614 rm -f conftest*
4615 fi
4616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4617   echo "$ac_t""yes" 1>&6
4618     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4619   cat >> confdefs.h <<EOF
4620 #define $ac_tr_hdr 1
4621 EOF
4622  ac_has_wchar_h=yes
4623 else
4624   echo "$ac_t""no" 1>&6
4625 ac_has_wchar_h=no
4626 fi
4627 done
4628
4629   for ac_hdr in wctype.h
4630 do
4631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_hdr" >&5
4634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4635   echo $ac_n "(cached) $ac_c" 1>&6
4636 else
4637   cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 #include <$ac_hdr>
4641 EOF
4642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4643 { (eval echo configure:4644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4645 if test -z "$ac_err"; then
4646   rm -rf conftest*
4647   eval "ac_cv_header_$ac_safe=yes"
4648 else
4649   echo "$ac_err" >&5
4650   echo "configure: failed program was:" >&5
4651   cat conftest.$ac_ext >&5
4652   rm -rf conftest*
4653   eval "ac_cv_header_$ac_safe=no"
4654 fi
4655 rm -f conftest*
4656 fi
4657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4658   echo "$ac_t""yes" 1>&6
4659     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4660   cat >> confdefs.h <<EOF
4661 #define $ac_tr_hdr 1
4662 EOF
4663  ac_has_wctype_h=yes
4664 else
4665   echo "$ac_t""no" 1>&6
4666 ac_has_wctype_h=no
4667 fi
4668 done
4669
4670   
4671     if test x"$ac_has_wchar_h" = xyes &&
4672      test x"$ac_has_wctype_h" = xyes &&
4673      test x"$enable_c_mbchar" != xno; then
4674       
4675             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4676 echo "configure:4677: checking for WCHAR_MIN and WCHAR_MAX" >&5
4677     cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <wchar.h>
4681 int main() {
4682 int i = WCHAR_MIN; int j = WCHAR_MAX;
4683 ; return 0; }
4684 EOF
4685 if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4686   rm -rf conftest*
4687   has_wchar_minmax=yes
4688 else
4689   echo "configure: failed program was:" >&5
4690   cat conftest.$ac_ext >&5
4691   rm -rf conftest*
4692   has_wchar_minmax=no
4693 fi
4694 rm -f conftest*
4695     echo "$ac_t""$has_wchar_minmax" 1>&6
4696     
4697             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4698 echo "configure:4699: checking for WEOF" >&5
4699     cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702
4703       #include <wchar.h>
4704       #include <stddef.h>
4705 int main() {
4706 wint_t i = WEOF;
4707 ; return 0; }
4708 EOF
4709 if { (eval echo configure:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710   rm -rf conftest*
4711   has_weof=yes
4712 else
4713   echo "configure: failed program was:" >&5
4714   cat conftest.$ac_ext >&5
4715   rm -rf conftest*
4716   has_weof=no
4717 fi
4718 rm -f conftest*
4719     echo "$ac_t""$has_weof" 1>&6
4720   
4721         ac_wfuncs=yes
4722     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4723 do
4724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_func" >&5
4726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4727   echo $ac_n "(cached) $ac_c" 1>&6
4728 else
4729   cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* System header to define __stub macros and hopefully few prototypes,
4733     which can conflict with char $ac_func(); below.  */
4734 #include <assert.h>
4735 /* Override any gcc2 internal prototype to avoid an error.  */
4736 /* We use char because int might match the return type of a gcc2
4737     builtin and then its argument prototype would still apply.  */
4738 char $ac_func();
4739
4740 int main() {
4741
4742 /* The GNU C library defines this for functions which it implements
4743     to always fail with ENOSYS.  Some functions are actually named
4744     something starting with __ and the normal name is an alias.  */
4745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4746 choke me
4747 #else
4748 $ac_func();
4749 #endif
4750
4751 ; return 0; }
4752 EOF
4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754   rm -rf conftest*
4755   eval "ac_cv_func_$ac_func=yes"
4756 else
4757   echo "configure: failed program was:" >&5
4758   cat conftest.$ac_ext >&5
4759   rm -rf conftest*
4760   eval "ac_cv_func_$ac_func=no"
4761 fi
4762 rm -f conftest*
4763 fi
4764
4765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4766   echo "$ac_t""yes" 1>&6
4767     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4768   cat >> confdefs.h <<EOF
4769 #define $ac_tr_func 1
4770 EOF
4771  
4772 else
4773   echo "$ac_t""no" 1>&6
4774 \
4775     ac_wfuncs=no
4776 fi
4777 done
4778
4779   
4780         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4781     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4782     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4783     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4784     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4785     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4786 do
4787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_func" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4790   echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792   cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796     which can conflict with char $ac_func(); below.  */
4797 #include <assert.h>
4798 /* Override any gcc2 internal prototype to avoid an error.  */
4799 /* We use char because int might match the return type of a gcc2
4800     builtin and then its argument prototype would still apply.  */
4801 char $ac_func();
4802
4803 int main() {
4804
4805 /* The GNU C library defines this for functions which it implements
4806     to always fail with ENOSYS.  Some functions are actually named
4807     something starting with __ and the normal name is an alias.  */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4809 choke me
4810 #else
4811 $ac_func();
4812 #endif
4813
4814 ; return 0; }
4815 EOF
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817   rm -rf conftest*
4818   eval "ac_cv_func_$ac_func=yes"
4819 else
4820   echo "configure: failed program was:" >&5
4821   cat conftest.$ac_ext >&5
4822   rm -rf conftest*
4823   eval "ac_cv_func_$ac_func=no"
4824 fi
4825 rm -f conftest*
4826 fi
4827
4828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4829   echo "$ac_t""yes" 1>&6
4830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4831   cat >> confdefs.h <<EOF
4832 #define $ac_tr_func 1
4833 EOF
4834  
4835 else
4836   echo "$ac_t""no" 1>&6
4837 \
4838     ac_wfuncs=no
4839 fi
4840 done
4841
4842
4843     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4844 echo "configure:4845: checking for ISO C99 wchar_t support" >&5
4845     if test x"$has_weof" = xyes &&
4846        test x"$has_wchar_minmax" = xyes &&
4847        test x"$ac_wfuncs" = xyes; then
4848       ac_isoC99_wchar_t=yes
4849     else
4850       ac_isoC99_wchar_t=no
4851     fi
4852     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4853   
4854             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4855 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4856 echo "configure:4857: checking for iconv.h" >&5
4857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4858   echo $ac_n "(cached) $ac_c" 1>&6
4859 else
4860   cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #include <iconv.h>
4864 EOF
4865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4866 { (eval echo configure:4867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4868 if test -z "$ac_err"; then
4869   rm -rf conftest*
4870   eval "ac_cv_header_$ac_safe=yes"
4871 else
4872   echo "$ac_err" >&5
4873   echo "configure: failed program was:" >&5
4874   cat conftest.$ac_ext >&5
4875   rm -rf conftest*
4876   eval "ac_cv_header_$ac_safe=no"
4877 fi
4878 rm -f conftest*
4879 fi
4880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4881   echo "$ac_t""yes" 1>&6
4882   ac_has_iconv_h=yes
4883 else
4884   echo "$ac_t""no" 1>&6
4885 ac_has_iconv_h=no
4886 fi
4887
4888     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4890 echo "configure:4891: checking for langinfo.h" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892   echo $ac_n "(cached) $ac_c" 1>&6
4893 else
4894   cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 #include <langinfo.h>
4898 EOF
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4903   rm -rf conftest*
4904   eval "ac_cv_header_$ac_safe=yes"
4905 else
4906   echo "$ac_err" >&5
4907   echo "configure: failed program was:" >&5
4908   cat conftest.$ac_ext >&5
4909   rm -rf conftest*
4910   eval "ac_cv_header_$ac_safe=no"
4911 fi
4912 rm -f conftest*
4913 fi
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915   echo "$ac_t""yes" 1>&6
4916   ac_has_langinfo_h=yes
4917 else
4918   echo "$ac_t""no" 1>&6
4919 ac_has_langinfo_h=no
4920 fi
4921
4922
4923         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4924 echo "configure:4925: checking for iconv in -liconv" >&5
4925 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4927   echo $ac_n "(cached) $ac_c" 1>&6
4928 else
4929   ac_save_LIBS="$LIBS"
4930 LIBS="-liconv  $LIBS"
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4934 /* Override any gcc2 internal prototype to avoid an error.  */
4935 /* We use char because int might match the return type of a gcc2
4936     builtin and then its argument prototype would still apply.  */
4937 char iconv();
4938
4939 int main() {
4940 iconv()
4941 ; return 0; }
4942 EOF
4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4944   rm -rf conftest*
4945   eval "ac_cv_lib_$ac_lib_var=yes"
4946 else
4947   echo "configure: failed program was:" >&5
4948   cat conftest.$ac_ext >&5
4949   rm -rf conftest*
4950   eval "ac_cv_lib_$ac_lib_var=no"
4951 fi
4952 rm -f conftest*
4953 LIBS="$ac_save_LIBS"
4954
4955 fi
4956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4957   echo "$ac_t""yes" 1>&6
4958   libiconv="-liconv"
4959 else
4960   echo "$ac_t""no" 1>&6
4961 fi
4962
4963     ac_save_LIBS="$LIBS"
4964     LIBS="$LIBS $libiconv"
4965
4966     for ac_func in iconv_open iconv_close iconv nl_langinfo
4967 do
4968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4969 echo "configure:4970: checking for $ac_func" >&5
4970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4971   echo $ac_n "(cached) $ac_c" 1>&6
4972 else
4973   cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976 /* System header to define __stub macros and hopefully few prototypes,
4977     which can conflict with char $ac_func(); below.  */
4978 #include <assert.h>
4979 /* Override any gcc2 internal prototype to avoid an error.  */
4980 /* We use char because int might match the return type of a gcc2
4981     builtin and then its argument prototype would still apply.  */
4982 char $ac_func();
4983
4984 int main() {
4985
4986 /* The GNU C library defines this for functions which it implements
4987     to always fail with ENOSYS.  Some functions are actually named
4988     something starting with __ and the normal name is an alias.  */
4989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4990 choke me
4991 #else
4992 $ac_func();
4993 #endif
4994
4995 ; return 0; }
4996 EOF
4997 if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998   rm -rf conftest*
4999   eval "ac_cv_func_$ac_func=yes"
5000 else
5001   echo "configure: failed program was:" >&5
5002   cat conftest.$ac_ext >&5
5003   rm -rf conftest*
5004   eval "ac_cv_func_$ac_func=no"
5005 fi
5006 rm -f conftest*
5007 fi
5008
5009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5010   echo "$ac_t""yes" 1>&6
5011     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5012   cat >> confdefs.h <<EOF
5013 #define $ac_tr_func 1
5014 EOF
5015  \
5016     ac_XPG2funcs=yes
5017 else
5018   echo "$ac_t""no" 1>&6
5019 ac_XPG2funcs=no
5020 fi
5021 done
5022
5023   
5024     LIBS="$ac_save_LIBS"
5025
5026     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5027 echo "configure:5028: checking for XPG2 wchar_t support" >&5
5028     if test x"$ac_has_iconv_h" = xyes &&
5029        test x"$ac_has_langinfo_h" = xyes &&
5030        test x"$ac_XPG2funcs" = xyes; then
5031       ac_XPG2_wchar_t=yes
5032     else
5033       ac_XPG2_wchar_t=no
5034     fi
5035     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5036   
5037             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5038 echo "configure:5039: checking for enabled wchar_t specializations" >&5
5039     if test x"$ac_isoC99_wchar_t" = xyes &&
5040        test x"$ac_XPG2_wchar_t" = xyes; then
5041       cat >> confdefs.h <<\EOF
5042 #define _GLIBCPP_USE_WCHAR_T 1
5043 EOF
5044
5045       echo "$ac_t"""yes"" 1>&6
5046     else
5047       echo "$ac_t"""no"" 1>&6
5048     fi
5049   else
5050         echo "configure: warning: wchar_t support disabled." 1>&2
5051   fi
5052
5053       cat >> confdefs.h <<\EOF
5054 #define HAVE_COPYSIGN 1
5055 EOF
5056
5057       cat >> confdefs.h <<\EOF
5058 #define HAVE_COPYSIGNF 1
5059 EOF
5060
5061       cat >> confdefs.h <<\EOF
5062 #define HAVE_FINITEF 1
5063 EOF
5064
5065       cat >> confdefs.h <<\EOF
5066 #define HAVE_FREXPF 1
5067 EOF
5068
5069       cat >> confdefs.h <<\EOF
5070 #define HAVE_HYPOTF 1
5071 EOF
5072
5073       cat >> confdefs.h <<\EOF
5074 #define HAVE_SINCOS 1
5075 EOF
5076
5077       cat >> confdefs.h <<\EOF
5078 #define HAVE_SINCOSF 1
5079 EOF
5080
5081       if test x"long_double_math_on_this_cpu" = x"yes"; then
5082         cat >> confdefs.h <<\EOF
5083 #define HAVE_HYPOTL 1
5084 EOF
5085
5086       fi
5087       ;;
5088     *-hpux*)
5089       # Check for available headers.
5090       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5091         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5092         fp.h locale.h float.h inttypes.h
5093 do
5094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_hdr" >&5
5097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5098   echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100   cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 #include <$ac_hdr>
5104 EOF
5105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5106 { (eval echo configure:5107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5108 if test -z "$ac_err"; then
5109   rm -rf conftest*
5110   eval "ac_cv_header_$ac_safe=yes"
5111 else
5112   echo "$ac_err" >&5
5113   echo "configure: failed program was:" >&5
5114   cat conftest.$ac_ext >&5
5115   rm -rf conftest*
5116   eval "ac_cv_header_$ac_safe=no"
5117 fi
5118 rm -f conftest*
5119 fi
5120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5121   echo "$ac_t""yes" 1>&6
5122     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5123   cat >> confdefs.h <<EOF
5124 #define $ac_tr_hdr 1
5125 EOF
5126  
5127 else
5128   echo "$ac_t""no" 1>&6
5129 fi
5130 done
5131
5132       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5133       
5134       
5135   # If we're not using GNU ld, then there's no point in even trying these
5136   # tests.  Check for that first.  We should have already tested for gld
5137   # by now (in libtool), but require it now just to be safe...
5138   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5139   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5140   
5141
5142   # The name set by libtool depends on the version of libtool.  Shame on us
5143   # for depending on an impl detail, but c'est la vie.  Older versions used
5144   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5145   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5146   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5147   # set (hence we're using an older libtool), then set it.
5148   if test x${with_gnu_ld+set} != xset; then
5149     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5150       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5151       with_gnu_ld=no
5152     else
5153       with_gnu_ld=$ac_cv_prog_gnu_ld
5154     fi
5155   fi
5156
5157   # Start by getting the version number.  I think the libtool test already
5158   # does some of this, but throws away the result.
5159   
5160   ldver=`$LD --version 2>/dev/null | head -1 | \
5161          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5162   
5163   glibcpp_gnu_ld_version=`echo $ldver | \
5164          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5165
5166   # Set --gc-sections.
5167   if test "$with_gnu_ld" = "notbroken"; then
5168     # GNU ld it is!  Joy and bunny rabbits!
5169
5170     # All these tests are for C++; save the language and the compiler flags.
5171     # Need to do this so that g++ won't try to link in libstdc++
5172     ac_test_CFLAGS="${CFLAGS+set}"
5173     ac_save_CFLAGS="$CFLAGS"
5174     CFLAGS='-x c++  -Wl,--gc-sections'
5175
5176     # Check for -Wl,--gc-sections
5177     # XXX This test is broken at the moment, as symbols required for
5178     # linking are now in libsupc++ (not built yet.....). In addition, 
5179     # this test has cored on solaris in the past. In addition,
5180     # --gc-sections doesn't really work at the moment (keeps on discarding
5181     # used sections, first .eh_frame and now some of the glibc sections for
5182     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5183     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5184 echo "configure:5185: checking for ld that supports -Wl,--gc-sections" >&5
5185     if test "$cross_compiling" = yes; then
5186   ac_sectionLDflags=yes
5187 else
5188   cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191
5192      int main(void) 
5193      {
5194        try { throw 1; }
5195        catch (...) { };
5196        return 0;
5197      }
5198     
5199 EOF
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5201 then
5202   ac_sectionLDflags=yes
5203 else
5204   echo "configure: failed program was:" >&5
5205   cat conftest.$ac_ext >&5
5206   rm -fr conftest*
5207   ac_sectionLDflags=no
5208 fi
5209 rm -fr conftest*
5210 fi
5211
5212     if test "$ac_test_CFLAGS" = set; then
5213       CFLAGS="$ac_save_CFLAGS"
5214     else
5215       # this is the suspicious part
5216       CFLAGS=''
5217     fi
5218     if test "$ac_sectionLDflags" = "yes"; then
5219       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5220     fi
5221     echo "$ac_t""$ac_sectionLDflags" 1>&6
5222   fi
5223
5224   # Set linker optimization flags.
5225   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5226     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5227   fi
5228
5229   
5230   
5231
5232       
5233     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5234 echo "configure:5235: checking for main in -lm" >&5
5235 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5237   echo $ac_n "(cached) $ac_c" 1>&6
5238 else
5239   ac_save_LIBS="$LIBS"
5240 LIBS="-lm  $LIBS"
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5244
5245 int main() {
5246 main()
5247 ; return 0; }
5248 EOF
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250   rm -rf conftest*
5251   eval "ac_cv_lib_$ac_lib_var=yes"
5252 else
5253   echo "configure: failed program was:" >&5
5254   cat conftest.$ac_ext >&5
5255   rm -rf conftest*
5256   eval "ac_cv_lib_$ac_lib_var=no"
5257 fi
5258 rm -f conftest*
5259 LIBS="$ac_save_LIBS"
5260
5261 fi
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263   echo "$ac_t""yes" 1>&6
5264     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5265     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5266   cat >> confdefs.h <<EOF
5267 #define $ac_tr_lib 1
5268 EOF
5269
5270   LIBS="-lm $LIBS"
5271
5272 else
5273   echo "$ac_t""no" 1>&6
5274 fi
5275
5276   for ac_func in nan copysignf
5277 do
5278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5279 echo "configure:5280: checking for $ac_func" >&5
5280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5281   echo $ac_n "(cached) $ac_c" 1>&6
5282 else
5283   cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5286 /* System header to define __stub macros and hopefully few prototypes,
5287     which can conflict with char $ac_func(); below.  */
5288 #include <assert.h>
5289 /* Override any gcc2 internal prototype to avoid an error.  */
5290 /* We use char because int might match the return type of a gcc2
5291     builtin and then its argument prototype would still apply.  */
5292 char $ac_func();
5293
5294 int main() {
5295
5296 /* The GNU C library defines this for functions which it implements
5297     to always fail with ENOSYS.  Some functions are actually named
5298     something starting with __ and the normal name is an alias.  */
5299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5300 choke me
5301 #else
5302 $ac_func();
5303 #endif
5304
5305 ; return 0; }
5306 EOF
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308   rm -rf conftest*
5309   eval "ac_cv_func_$ac_func=yes"
5310 else
5311   echo "configure: failed program was:" >&5
5312   cat conftest.$ac_ext >&5
5313   rm -rf conftest*
5314   eval "ac_cv_func_$ac_func=no"
5315 fi
5316 rm -f conftest*
5317 fi
5318
5319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5320   echo "$ac_t""yes" 1>&6
5321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5322   cat >> confdefs.h <<EOF
5323 #define $ac_tr_func 1
5324 EOF
5325  
5326 else
5327   echo "$ac_t""no" 1>&6
5328 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5329 fi
5330 done
5331
5332
5333     for ac_func in __signbit
5334 do
5335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_func" >&5
5337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5338   echo $ac_n "(cached) $ac_c" 1>&6
5339 else
5340   cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 /* System header to define __stub macros and hopefully few prototypes,
5344     which can conflict with char $ac_func(); below.  */
5345 #include <assert.h>
5346 /* Override any gcc2 internal prototype to avoid an error.  */
5347 /* We use char because int might match the return type of a gcc2
5348     builtin and then its argument prototype would still apply.  */
5349 char $ac_func();
5350
5351 int main() {
5352
5353 /* The GNU C library defines this for functions which it implements
5354     to always fail with ENOSYS.  Some functions are actually named
5355     something starting with __ and the normal name is an alias.  */
5356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5357 choke me
5358 #else
5359 $ac_func();
5360 #endif
5361
5362 ; return 0; }
5363 EOF
5364 if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5365   rm -rf conftest*
5366   eval "ac_cv_func_$ac_func=yes"
5367 else
5368   echo "configure: failed program was:" >&5
5369   cat conftest.$ac_ext >&5
5370   rm -rf conftest*
5371   eval "ac_cv_func_$ac_func=no"
5372 fi
5373 rm -f conftest*
5374 fi
5375
5376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5377   echo "$ac_t""yes" 1>&6
5378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5379   cat >> confdefs.h <<EOF
5380 #define $ac_tr_func 1
5381 EOF
5382  
5383 else
5384   echo "$ac_t""no" 1>&6
5385 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5386 fi
5387 done
5388
5389   for ac_func in __signbitf
5390 do
5391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_func" >&5
5393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5394   echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5396   cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 /* System header to define __stub macros and hopefully few prototypes,
5400     which can conflict with char $ac_func(); below.  */
5401 #include <assert.h>
5402 /* Override any gcc2 internal prototype to avoid an error.  */
5403 /* We use char because int might match the return type of a gcc2
5404     builtin and then its argument prototype would still apply.  */
5405 char $ac_func();
5406
5407 int main() {
5408
5409 /* The GNU C library defines this for functions which it implements
5410     to always fail with ENOSYS.  Some functions are actually named
5411     something starting with __ and the normal name is an alias.  */
5412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5413 choke me
5414 #else
5415 $ac_func();
5416 #endif
5417
5418 ; return 0; }
5419 EOF
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421   rm -rf conftest*
5422   eval "ac_cv_func_$ac_func=yes"
5423 else
5424   echo "configure: failed program was:" >&5
5425   cat conftest.$ac_ext >&5
5426   rm -rf conftest*
5427   eval "ac_cv_func_$ac_func=no"
5428 fi
5429 rm -f conftest*
5430 fi
5431
5432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5433   echo "$ac_t""yes" 1>&6
5434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5435   cat >> confdefs.h <<EOF
5436 #define $ac_tr_func 1
5437 EOF
5438  
5439 else
5440   echo "$ac_t""no" 1>&6
5441 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5442 fi
5443 done
5444
5445
5446           if test x$ac_cv_func_copysignl = x"yes"; then
5447     for ac_func in __signbitl
5448 do
5449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5450 echo "configure:5451: checking for $ac_func" >&5
5451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5452   echo $ac_n "(cached) $ac_c" 1>&6
5453 else
5454   cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 /* System header to define __stub macros and hopefully few prototypes,
5458     which can conflict with char $ac_func(); below.  */
5459 #include <assert.h>
5460 /* Override any gcc2 internal prototype to avoid an error.  */
5461 /* We use char because int might match the return type of a gcc2
5462     builtin and then its argument prototype would still apply.  */
5463 char $ac_func();
5464
5465 int main() {
5466
5467 /* The GNU C library defines this for functions which it implements
5468     to always fail with ENOSYS.  Some functions are actually named
5469     something starting with __ and the normal name is an alias.  */
5470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 choke me
5472 #else
5473 $ac_func();
5474 #endif
5475
5476 ; return 0; }
5477 EOF
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5479   rm -rf conftest*
5480   eval "ac_cv_func_$ac_func=yes"
5481 else
5482   echo "configure: failed program was:" >&5
5483   cat conftest.$ac_ext >&5
5484   rm -rf conftest*
5485   eval "ac_cv_func_$ac_func=no"
5486 fi
5487 rm -f conftest*
5488 fi
5489
5490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5491   echo "$ac_t""yes" 1>&6
5492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5493   cat >> confdefs.h <<EOF
5494 #define $ac_tr_func 1
5495 EOF
5496  
5497 else
5498   echo "$ac_t""no" 1>&6
5499 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5500 fi
5501 done
5502
5503   fi
5504
5505   
5506
5507       
5508
5509       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5510 echo "configure:5511: checking for mbstate_t" >&5
5511   cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 #include <wchar.h>
5515 int main() {
5516 mbstate_t teststate;
5517 ; return 0; }
5518 EOF
5519 if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5520   rm -rf conftest*
5521   have_mbstate_t=yes
5522 else
5523   echo "configure: failed program was:" >&5
5524   cat conftest.$ac_ext >&5
5525   rm -rf conftest*
5526   have_mbstate_t=no
5527 fi
5528 rm -f conftest*
5529   echo "$ac_t""$have_mbstate_t" 1>&6
5530   if test x"$have_mbstate_t" = xyes; then
5531     cat >> confdefs.h <<\EOF
5532 #define HAVE_MBSTATE_T 1
5533 EOF
5534
5535   fi
5536
5537     for ac_hdr in wchar.h
5538 do
5539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_hdr" >&5
5542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5543   echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545   cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 #include <$ac_hdr>
5549 EOF
5550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5551 { (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5553 if test -z "$ac_err"; then
5554   rm -rf conftest*
5555   eval "ac_cv_header_$ac_safe=yes"
5556 else
5557   echo "$ac_err" >&5
5558   echo "configure: failed program was:" >&5
5559   cat conftest.$ac_ext >&5
5560   rm -rf conftest*
5561   eval "ac_cv_header_$ac_safe=no"
5562 fi
5563 rm -f conftest*
5564 fi
5565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5566   echo "$ac_t""yes" 1>&6
5567     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5568   cat >> confdefs.h <<EOF
5569 #define $ac_tr_hdr 1
5570 EOF
5571  ac_has_wchar_h=yes
5572 else
5573   echo "$ac_t""no" 1>&6
5574 ac_has_wchar_h=no
5575 fi
5576 done
5577
5578   for ac_hdr in wctype.h
5579 do
5580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_hdr" >&5
5583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5584   echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586   cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 #include <$ac_hdr>
5590 EOF
5591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5592 { (eval echo configure:5593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5594 if test -z "$ac_err"; then
5595   rm -rf conftest*
5596   eval "ac_cv_header_$ac_safe=yes"
5597 else
5598   echo "$ac_err" >&5
5599   echo "configure: failed program was:" >&5
5600   cat conftest.$ac_ext >&5
5601   rm -rf conftest*
5602   eval "ac_cv_header_$ac_safe=no"
5603 fi
5604 rm -f conftest*
5605 fi
5606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5607   echo "$ac_t""yes" 1>&6
5608     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5609   cat >> confdefs.h <<EOF
5610 #define $ac_tr_hdr 1
5611 EOF
5612  ac_has_wctype_h=yes
5613 else
5614   echo "$ac_t""no" 1>&6
5615 ac_has_wctype_h=no
5616 fi
5617 done
5618
5619   
5620     if test x"$ac_has_wchar_h" = xyes &&
5621      test x"$ac_has_wctype_h" = xyes &&
5622      test x"$enable_c_mbchar" != xno; then
5623       
5624             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5625 echo "configure:5626: checking for WCHAR_MIN and WCHAR_MAX" >&5
5626     cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5629 #include <wchar.h>
5630 int main() {
5631 int i = WCHAR_MIN; int j = WCHAR_MAX;
5632 ; return 0; }
5633 EOF
5634 if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5635   rm -rf conftest*
5636   has_wchar_minmax=yes
5637 else
5638   echo "configure: failed program was:" >&5
5639   cat conftest.$ac_ext >&5
5640   rm -rf conftest*
5641   has_wchar_minmax=no
5642 fi
5643 rm -f conftest*
5644     echo "$ac_t""$has_wchar_minmax" 1>&6
5645     
5646             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5647 echo "configure:5648: checking for WEOF" >&5
5648     cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651
5652       #include <wchar.h>
5653       #include <stddef.h>
5654 int main() {
5655 wint_t i = WEOF;
5656 ; return 0; }
5657 EOF
5658 if { (eval echo configure:5659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5659   rm -rf conftest*
5660   has_weof=yes
5661 else
5662   echo "configure: failed program was:" >&5
5663   cat conftest.$ac_ext >&5
5664   rm -rf conftest*
5665   has_weof=no
5666 fi
5667 rm -f conftest*
5668     echo "$ac_t""$has_weof" 1>&6
5669   
5670         ac_wfuncs=yes
5671     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5672 do
5673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5674 echo "configure:5675: checking for $ac_func" >&5
5675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5676   echo $ac_n "(cached) $ac_c" 1>&6
5677 else
5678   cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5681 /* System header to define __stub macros and hopefully few prototypes,
5682     which can conflict with char $ac_func(); below.  */
5683 #include <assert.h>
5684 /* Override any gcc2 internal prototype to avoid an error.  */
5685 /* We use char because int might match the return type of a gcc2
5686     builtin and then its argument prototype would still apply.  */
5687 char $ac_func();
5688
5689 int main() {
5690
5691 /* The GNU C library defines this for functions which it implements
5692     to always fail with ENOSYS.  Some functions are actually named
5693     something starting with __ and the normal name is an alias.  */
5694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5695 choke me
5696 #else
5697 $ac_func();
5698 #endif
5699
5700 ; return 0; }
5701 EOF
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703   rm -rf conftest*
5704   eval "ac_cv_func_$ac_func=yes"
5705 else
5706   echo "configure: failed program was:" >&5
5707   cat conftest.$ac_ext >&5
5708   rm -rf conftest*
5709   eval "ac_cv_func_$ac_func=no"
5710 fi
5711 rm -f conftest*
5712 fi
5713
5714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5715   echo "$ac_t""yes" 1>&6
5716     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5717   cat >> confdefs.h <<EOF
5718 #define $ac_tr_func 1
5719 EOF
5720  
5721 else
5722   echo "$ac_t""no" 1>&6
5723 \
5724     ac_wfuncs=no
5725 fi
5726 done
5727
5728   
5729         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5730     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5731     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5732     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5733     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5734     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5735 do
5736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_func" >&5
5738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5739   echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5741   cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes,
5745     which can conflict with char $ac_func(); below.  */
5746 #include <assert.h>
5747 /* Override any gcc2 internal prototype to avoid an error.  */
5748 /* We use char because int might match the return type of a gcc2
5749     builtin and then its argument prototype would still apply.  */
5750 char $ac_func();
5751
5752 int main() {
5753
5754 /* The GNU C library defines this for functions which it implements
5755     to always fail with ENOSYS.  Some functions are actually named
5756     something starting with __ and the normal name is an alias.  */
5757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758 choke me
5759 #else
5760 $ac_func();
5761 #endif
5762
5763 ; return 0; }
5764 EOF
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766   rm -rf conftest*
5767   eval "ac_cv_func_$ac_func=yes"
5768 else
5769   echo "configure: failed program was:" >&5
5770   cat conftest.$ac_ext >&5
5771   rm -rf conftest*
5772   eval "ac_cv_func_$ac_func=no"
5773 fi
5774 rm -f conftest*
5775 fi
5776
5777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5778   echo "$ac_t""yes" 1>&6
5779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5780   cat >> confdefs.h <<EOF
5781 #define $ac_tr_func 1
5782 EOF
5783  
5784 else
5785   echo "$ac_t""no" 1>&6
5786 \
5787     ac_wfuncs=no
5788 fi
5789 done
5790
5791
5792     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5793 echo "configure:5794: checking for ISO C99 wchar_t support" >&5
5794     if test x"$has_weof" = xyes &&
5795        test x"$has_wchar_minmax" = xyes &&
5796        test x"$ac_wfuncs" = xyes; then
5797       ac_isoC99_wchar_t=yes
5798     else
5799       ac_isoC99_wchar_t=no
5800     fi
5801     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5802   
5803             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5805 echo "configure:5806: checking for iconv.h" >&5
5806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5807   echo $ac_n "(cached) $ac_c" 1>&6
5808 else
5809   cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <iconv.h>
5813 EOF
5814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5815 { (eval echo configure:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5817 if test -z "$ac_err"; then
5818   rm -rf conftest*
5819   eval "ac_cv_header_$ac_safe=yes"
5820 else
5821   echo "$ac_err" >&5
5822   echo "configure: failed program was:" >&5
5823   cat conftest.$ac_ext >&5
5824   rm -rf conftest*
5825   eval "ac_cv_header_$ac_safe=no"
5826 fi
5827 rm -f conftest*
5828 fi
5829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5830   echo "$ac_t""yes" 1>&6
5831   ac_has_iconv_h=yes
5832 else
5833   echo "$ac_t""no" 1>&6
5834 ac_has_iconv_h=no
5835 fi
5836
5837     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5838 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5839 echo "configure:5840: checking for langinfo.h" >&5
5840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5841   echo $ac_n "(cached) $ac_c" 1>&6
5842 else
5843   cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5846 #include <langinfo.h>
5847 EOF
5848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5849 { (eval echo configure:5850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5851 if test -z "$ac_err"; then
5852   rm -rf conftest*
5853   eval "ac_cv_header_$ac_safe=yes"
5854 else
5855   echo "$ac_err" >&5
5856   echo "configure: failed program was:" >&5
5857   cat conftest.$ac_ext >&5
5858   rm -rf conftest*
5859   eval "ac_cv_header_$ac_safe=no"
5860 fi
5861 rm -f conftest*
5862 fi
5863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5864   echo "$ac_t""yes" 1>&6
5865   ac_has_langinfo_h=yes
5866 else
5867   echo "$ac_t""no" 1>&6
5868 ac_has_langinfo_h=no
5869 fi
5870
5871
5872         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5873 echo "configure:5874: checking for iconv in -liconv" >&5
5874 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5876   echo $ac_n "(cached) $ac_c" 1>&6
5877 else
5878   ac_save_LIBS="$LIBS"
5879 LIBS="-liconv  $LIBS"
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 /* Override any gcc2 internal prototype to avoid an error.  */
5884 /* We use char because int might match the return type of a gcc2
5885     builtin and then its argument prototype would still apply.  */
5886 char iconv();
5887
5888 int main() {
5889 iconv()
5890 ; return 0; }
5891 EOF
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893   rm -rf conftest*
5894   eval "ac_cv_lib_$ac_lib_var=yes"
5895 else
5896   echo "configure: failed program was:" >&5
5897   cat conftest.$ac_ext >&5
5898   rm -rf conftest*
5899   eval "ac_cv_lib_$ac_lib_var=no"
5900 fi
5901 rm -f conftest*
5902 LIBS="$ac_save_LIBS"
5903
5904 fi
5905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5906   echo "$ac_t""yes" 1>&6
5907   libiconv="-liconv"
5908 else
5909   echo "$ac_t""no" 1>&6
5910 fi
5911
5912     ac_save_LIBS="$LIBS"
5913     LIBS="$LIBS $libiconv"
5914
5915     for ac_func in iconv_open iconv_close iconv nl_langinfo
5916 do
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920   echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922   cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926     which can conflict with char $ac_func(); below.  */
5927 #include <assert.h>
5928 /* Override any gcc2 internal prototype to avoid an error.  */
5929 /* We use char because int might match the return type of a gcc2
5930     builtin and then its argument prototype would still apply.  */
5931 char $ac_func();
5932
5933 int main() {
5934
5935 /* The GNU C library defines this for functions which it implements
5936     to always fail with ENOSYS.  Some functions are actually named
5937     something starting with __ and the normal name is an alias.  */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5939 choke me
5940 #else
5941 $ac_func();
5942 #endif
5943
5944 ; return 0; }
5945 EOF
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5947   rm -rf conftest*
5948   eval "ac_cv_func_$ac_func=yes"
5949 else
5950   echo "configure: failed program was:" >&5
5951   cat conftest.$ac_ext >&5
5952   rm -rf conftest*
5953   eval "ac_cv_func_$ac_func=no"
5954 fi
5955 rm -f conftest*
5956 fi
5957
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959   echo "$ac_t""yes" 1>&6
5960     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961   cat >> confdefs.h <<EOF
5962 #define $ac_tr_func 1
5963 EOF
5964  \
5965     ac_XPG2funcs=yes
5966 else
5967   echo "$ac_t""no" 1>&6
5968 ac_XPG2funcs=no
5969 fi
5970 done
5971
5972   
5973     LIBS="$ac_save_LIBS"
5974
5975     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5976 echo "configure:5977: checking for XPG2 wchar_t support" >&5
5977     if test x"$ac_has_iconv_h" = xyes &&
5978        test x"$ac_has_langinfo_h" = xyes &&
5979        test x"$ac_XPG2funcs" = xyes; then
5980       ac_XPG2_wchar_t=yes
5981     else
5982       ac_XPG2_wchar_t=no
5983     fi
5984     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5985   
5986             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5987 echo "configure:5988: checking for enabled wchar_t specializations" >&5
5988     if test x"$ac_isoC99_wchar_t" = xyes &&
5989        test x"$ac_XPG2_wchar_t" = xyes; then
5990       cat >> confdefs.h <<\EOF
5991 #define _GLIBCPP_USE_WCHAR_T 1
5992 EOF
5993
5994       echo "$ac_t"""yes"" 1>&6
5995     else
5996       echo "$ac_t"""no"" 1>&6
5997     fi
5998   else
5999         echo "configure: warning: wchar_t support disabled." 1>&2
6000   fi
6001
6002       os_include_dir="os/hpux"
6003       cat >> confdefs.h <<\EOF
6004 #define HAVE_COPYSIGN 1
6005 EOF
6006
6007       cat >> confdefs.h <<\EOF
6008 #define HAVE_COPYSIGNF 1
6009 EOF
6010
6011       cat >> confdefs.h <<\EOF
6012 #define HAVE_FINITEF 1
6013 EOF
6014
6015       cat >> confdefs.h <<\EOF
6016 #define HAVE_FREXPF 1
6017 EOF
6018
6019       cat >> confdefs.h <<\EOF
6020 #define HAVE_HYPOT 1
6021 EOF
6022
6023       cat >> confdefs.h <<\EOF
6024 #define HAVE_SINCOS 1
6025 EOF
6026
6027       cat >> confdefs.h <<\EOF
6028 #define HAVE_SINCOSF 1
6029 EOF
6030
6031       ;;
6032     *-netbsd*)
6033       # Check for available headers.
6034       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6035         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6036         fp.h locale.h float.h inttypes.h
6037 do
6038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6040 echo "configure:6041: checking for $ac_hdr" >&5
6041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6042   echo $ac_n "(cached) $ac_c" 1>&6
6043 else
6044   cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <$ac_hdr>
6048 EOF
6049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050 { (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6052 if test -z "$ac_err"; then
6053   rm -rf conftest*
6054   eval "ac_cv_header_$ac_safe=yes"
6055 else
6056   echo "$ac_err" >&5
6057   echo "configure: failed program was:" >&5
6058   cat conftest.$ac_ext >&5
6059   rm -rf conftest*
6060   eval "ac_cv_header_$ac_safe=no"
6061 fi
6062 rm -f conftest*
6063 fi
6064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6065   echo "$ac_t""yes" 1>&6
6066     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6067   cat >> confdefs.h <<EOF
6068 #define $ac_tr_hdr 1
6069 EOF
6070  
6071 else
6072   echo "$ac_t""no" 1>&6
6073 fi
6074 done
6075
6076       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6077        
6078       
6079   # If we're not using GNU ld, then there's no point in even trying these
6080   # tests.  Check for that first.  We should have already tested for gld
6081   # by now (in libtool), but require it now just to be safe...
6082   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6083   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6084   
6085
6086   # The name set by libtool depends on the version of libtool.  Shame on us
6087   # for depending on an impl detail, but c'est la vie.  Older versions used
6088   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6089   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6090   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6091   # set (hence we're using an older libtool), then set it.
6092   if test x${with_gnu_ld+set} != xset; then
6093     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6094       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6095       with_gnu_ld=no
6096     else
6097       with_gnu_ld=$ac_cv_prog_gnu_ld
6098     fi
6099   fi
6100
6101   # Start by getting the version number.  I think the libtool test already
6102   # does some of this, but throws away the result.
6103   
6104   ldver=`$LD --version 2>/dev/null | head -1 | \
6105          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6106   
6107   glibcpp_gnu_ld_version=`echo $ldver | \
6108          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6109
6110   # Set --gc-sections.
6111   if test "$with_gnu_ld" = "notbroken"; then
6112     # GNU ld it is!  Joy and bunny rabbits!
6113
6114     # All these tests are for C++; save the language and the compiler flags.
6115     # Need to do this so that g++ won't try to link in libstdc++
6116     ac_test_CFLAGS="${CFLAGS+set}"
6117     ac_save_CFLAGS="$CFLAGS"
6118     CFLAGS='-x c++  -Wl,--gc-sections'
6119
6120     # Check for -Wl,--gc-sections
6121     # XXX This test is broken at the moment, as symbols required for
6122     # linking are now in libsupc++ (not built yet.....). In addition, 
6123     # this test has cored on solaris in the past. In addition,
6124     # --gc-sections doesn't really work at the moment (keeps on discarding
6125     # used sections, first .eh_frame and now some of the glibc sections for
6126     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6127     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6128 echo "configure:6129: checking for ld that supports -Wl,--gc-sections" >&5
6129     if test "$cross_compiling" = yes; then
6130   ac_sectionLDflags=yes
6131 else
6132   cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135
6136      int main(void) 
6137      {
6138        try { throw 1; }
6139        catch (...) { };
6140        return 0;
6141      }
6142     
6143 EOF
6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6145 then
6146   ac_sectionLDflags=yes
6147 else
6148   echo "configure: failed program was:" >&5
6149   cat conftest.$ac_ext >&5
6150   rm -fr conftest*
6151   ac_sectionLDflags=no
6152 fi
6153 rm -fr conftest*
6154 fi
6155
6156     if test "$ac_test_CFLAGS" = set; then
6157       CFLAGS="$ac_save_CFLAGS"
6158     else
6159       # this is the suspicious part
6160       CFLAGS=''
6161     fi
6162     if test "$ac_sectionLDflags" = "yes"; then
6163       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6164     fi
6165     echo "$ac_t""$ac_sectionLDflags" 1>&6
6166   fi
6167
6168   # Set linker optimization flags.
6169   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6170     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6171   fi
6172
6173   
6174   
6175
6176       
6177     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6178 echo "configure:6179: checking for main in -lm" >&5
6179 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6181   echo $ac_n "(cached) $ac_c" 1>&6
6182 else
6183   ac_save_LIBS="$LIBS"
6184 LIBS="-lm  $LIBS"
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188
6189 int main() {
6190 main()
6191 ; return 0; }
6192 EOF
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194   rm -rf conftest*
6195   eval "ac_cv_lib_$ac_lib_var=yes"
6196 else
6197   echo "configure: failed program was:" >&5
6198   cat conftest.$ac_ext >&5
6199   rm -rf conftest*
6200   eval "ac_cv_lib_$ac_lib_var=no"
6201 fi
6202 rm -f conftest*
6203 LIBS="$ac_save_LIBS"
6204
6205 fi
6206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6207   echo "$ac_t""yes" 1>&6
6208     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6209     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6210   cat >> confdefs.h <<EOF
6211 #define $ac_tr_lib 1
6212 EOF
6213
6214   LIBS="-lm $LIBS"
6215
6216 else
6217   echo "$ac_t""no" 1>&6
6218 fi
6219
6220   for ac_func in nan copysignf
6221 do
6222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_func" >&5
6224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6225   echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227   cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231     which can conflict with char $ac_func(); below.  */
6232 #include <assert.h>
6233 /* Override any gcc2 internal prototype to avoid an error.  */
6234 /* We use char because int might match the return type of a gcc2
6235     builtin and then its argument prototype would still apply.  */
6236 char $ac_func();
6237
6238 int main() {
6239
6240 /* The GNU C library defines this for functions which it implements
6241     to always fail with ENOSYS.  Some functions are actually named
6242     something starting with __ and the normal name is an alias.  */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 choke me
6245 #else
6246 $ac_func();
6247 #endif
6248
6249 ; return 0; }
6250 EOF
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6252   rm -rf conftest*
6253   eval "ac_cv_func_$ac_func=yes"
6254 else
6255   echo "configure: failed program was:" >&5
6256   cat conftest.$ac_ext >&5
6257   rm -rf conftest*
6258   eval "ac_cv_func_$ac_func=no"
6259 fi
6260 rm -f conftest*
6261 fi
6262
6263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6264   echo "$ac_t""yes" 1>&6
6265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6266   cat >> confdefs.h <<EOF
6267 #define $ac_tr_func 1
6268 EOF
6269  
6270 else
6271   echo "$ac_t""no" 1>&6
6272 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6273 fi
6274 done
6275
6276
6277     for ac_func in __signbit
6278 do
6279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6280 echo "configure:6281: checking for $ac_func" >&5
6281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6282   echo $ac_n "(cached) $ac_c" 1>&6
6283 else
6284   cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288     which can conflict with char $ac_func(); below.  */
6289 #include <assert.h>
6290 /* Override any gcc2 internal prototype to avoid an error.  */
6291 /* We use char because int might match the return type of a gcc2
6292     builtin and then its argument prototype would still apply.  */
6293 char $ac_func();
6294
6295 int main() {
6296
6297 /* The GNU C library defines this for functions which it implements
6298     to always fail with ENOSYS.  Some functions are actually named
6299     something starting with __ and the normal name is an alias.  */
6300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6301 choke me
6302 #else
6303 $ac_func();
6304 #endif
6305
6306 ; return 0; }
6307 EOF
6308 if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6309   rm -rf conftest*
6310   eval "ac_cv_func_$ac_func=yes"
6311 else
6312   echo "configure: failed program was:" >&5
6313   cat conftest.$ac_ext >&5
6314   rm -rf conftest*
6315   eval "ac_cv_func_$ac_func=no"
6316 fi
6317 rm -f conftest*
6318 fi
6319
6320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6321   echo "$ac_t""yes" 1>&6
6322     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6323   cat >> confdefs.h <<EOF
6324 #define $ac_tr_func 1
6325 EOF
6326  
6327 else
6328   echo "$ac_t""no" 1>&6
6329 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6330 fi
6331 done
6332
6333   for ac_func in __signbitf
6334 do
6335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_func" >&5
6337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6338   echo $ac_n "(cached) $ac_c" 1>&6
6339 else
6340   cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344     which can conflict with char $ac_func(); below.  */
6345 #include <assert.h>
6346 /* Override any gcc2 internal prototype to avoid an error.  */
6347 /* We use char because int might match the return type of a gcc2
6348     builtin and then its argument prototype would still apply.  */
6349 char $ac_func();
6350
6351 int main() {
6352
6353 /* The GNU C library defines this for functions which it implements
6354     to always fail with ENOSYS.  Some functions are actually named
6355     something starting with __ and the normal name is an alias.  */
6356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 choke me
6358 #else
6359 $ac_func();
6360 #endif
6361
6362 ; return 0; }
6363 EOF
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365   rm -rf conftest*
6366   eval "ac_cv_func_$ac_func=yes"
6367 else
6368   echo "configure: failed program was:" >&5
6369   cat conftest.$ac_ext >&5
6370   rm -rf conftest*
6371   eval "ac_cv_func_$ac_func=no"
6372 fi
6373 rm -f conftest*
6374 fi
6375
6376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6377   echo "$ac_t""yes" 1>&6
6378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6379   cat >> confdefs.h <<EOF
6380 #define $ac_tr_func 1
6381 EOF
6382  
6383 else
6384   echo "$ac_t""no" 1>&6
6385 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6386 fi
6387 done
6388
6389
6390           if test x$ac_cv_func_copysignl = x"yes"; then
6391     for ac_func in __signbitl
6392 do
6393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6394 echo "configure:6395: checking for $ac_func" >&5
6395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6396   echo $ac_n "(cached) $ac_c" 1>&6
6397 else
6398   cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* System header to define __stub macros and hopefully few prototypes,
6402     which can conflict with char $ac_func(); below.  */
6403 #include <assert.h>
6404 /* Override any gcc2 internal prototype to avoid an error.  */
6405 /* We use char because int might match the return type of a gcc2
6406     builtin and then its argument prototype would still apply.  */
6407 char $ac_func();
6408
6409 int main() {
6410
6411 /* The GNU C library defines this for functions which it implements
6412     to always fail with ENOSYS.  Some functions are actually named
6413     something starting with __ and the normal name is an alias.  */
6414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6415 choke me
6416 #else
6417 $ac_func();
6418 #endif
6419
6420 ; return 0; }
6421 EOF
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423   rm -rf conftest*
6424   eval "ac_cv_func_$ac_func=yes"
6425 else
6426   echo "configure: failed program was:" >&5
6427   cat conftest.$ac_ext >&5
6428   rm -rf conftest*
6429   eval "ac_cv_func_$ac_func=no"
6430 fi
6431 rm -f conftest*
6432 fi
6433
6434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6435   echo "$ac_t""yes" 1>&6
6436     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6437   cat >> confdefs.h <<EOF
6438 #define $ac_tr_func 1
6439 EOF
6440  
6441 else
6442   echo "$ac_t""no" 1>&6
6443 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6444 fi
6445 done
6446
6447   fi
6448
6449   
6450
6451       
6452
6453       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6454 echo "configure:6455: checking for mbstate_t" >&5
6455   cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 #include <wchar.h>
6459 int main() {
6460 mbstate_t teststate;
6461 ; return 0; }
6462 EOF
6463 if { (eval echo configure:6464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6464   rm -rf conftest*
6465   have_mbstate_t=yes
6466 else
6467   echo "configure: failed program was:" >&5
6468   cat conftest.$ac_ext >&5
6469   rm -rf conftest*
6470   have_mbstate_t=no
6471 fi
6472 rm -f conftest*
6473   echo "$ac_t""$have_mbstate_t" 1>&6
6474   if test x"$have_mbstate_t" = xyes; then
6475     cat >> confdefs.h <<\EOF
6476 #define HAVE_MBSTATE_T 1
6477 EOF
6478
6479   fi
6480
6481     for ac_hdr in wchar.h
6482 do
6483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_hdr" >&5
6486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6487   echo $ac_n "(cached) $ac_c" 1>&6
6488 else
6489   cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 #include <$ac_hdr>
6493 EOF
6494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6495 { (eval echo configure:6496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6497 if test -z "$ac_err"; then
6498   rm -rf conftest*
6499   eval "ac_cv_header_$ac_safe=yes"
6500 else
6501   echo "$ac_err" >&5
6502   echo "configure: failed program was:" >&5
6503   cat conftest.$ac_ext >&5
6504   rm -rf conftest*
6505   eval "ac_cv_header_$ac_safe=no"
6506 fi
6507 rm -f conftest*
6508 fi
6509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6510   echo "$ac_t""yes" 1>&6
6511     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6512   cat >> confdefs.h <<EOF
6513 #define $ac_tr_hdr 1
6514 EOF
6515  ac_has_wchar_h=yes
6516 else
6517   echo "$ac_t""no" 1>&6
6518 ac_has_wchar_h=no
6519 fi
6520 done
6521
6522   for ac_hdr in wctype.h
6523 do
6524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6526 echo "configure:6527: checking for $ac_hdr" >&5
6527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6528   echo $ac_n "(cached) $ac_c" 1>&6
6529 else
6530   cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 #include <$ac_hdr>
6534 EOF
6535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6536 { (eval echo configure:6537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6538 if test -z "$ac_err"; then
6539   rm -rf conftest*
6540   eval "ac_cv_header_$ac_safe=yes"
6541 else
6542   echo "$ac_err" >&5
6543   echo "configure: failed program was:" >&5
6544   cat conftest.$ac_ext >&5
6545   rm -rf conftest*
6546   eval "ac_cv_header_$ac_safe=no"
6547 fi
6548 rm -f conftest*
6549 fi
6550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6551   echo "$ac_t""yes" 1>&6
6552     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6553   cat >> confdefs.h <<EOF
6554 #define $ac_tr_hdr 1
6555 EOF
6556  ac_has_wctype_h=yes
6557 else
6558   echo "$ac_t""no" 1>&6
6559 ac_has_wctype_h=no
6560 fi
6561 done
6562
6563   
6564     if test x"$ac_has_wchar_h" = xyes &&
6565      test x"$ac_has_wctype_h" = xyes &&
6566      test x"$enable_c_mbchar" != xno; then
6567       
6568             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6569 echo "configure:6570: checking for WCHAR_MIN and WCHAR_MAX" >&5
6570     cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 #include <wchar.h>
6574 int main() {
6575 int i = WCHAR_MIN; int j = WCHAR_MAX;
6576 ; return 0; }
6577 EOF
6578 if { (eval echo configure:6579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6579   rm -rf conftest*
6580   has_wchar_minmax=yes
6581 else
6582   echo "configure: failed program was:" >&5
6583   cat conftest.$ac_ext >&5
6584   rm -rf conftest*
6585   has_wchar_minmax=no
6586 fi
6587 rm -f conftest*
6588     echo "$ac_t""$has_wchar_minmax" 1>&6
6589     
6590             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6591 echo "configure:6592: checking for WEOF" >&5
6592     cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595
6596       #include <wchar.h>
6597       #include <stddef.h>
6598 int main() {
6599 wint_t i = WEOF;
6600 ; return 0; }
6601 EOF
6602 if { (eval echo configure:6603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6603   rm -rf conftest*
6604   has_weof=yes
6605 else
6606   echo "configure: failed program was:" >&5
6607   cat conftest.$ac_ext >&5
6608   rm -rf conftest*
6609   has_weof=no
6610 fi
6611 rm -f conftest*
6612     echo "$ac_t""$has_weof" 1>&6
6613   
6614         ac_wfuncs=yes
6615     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6616 do
6617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6618 echo "configure:6619: checking for $ac_func" >&5
6619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6620   echo $ac_n "(cached) $ac_c" 1>&6
6621 else
6622   cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 /* System header to define __stub macros and hopefully few prototypes,
6626     which can conflict with char $ac_func(); below.  */
6627 #include <assert.h>
6628 /* Override any gcc2 internal prototype to avoid an error.  */
6629 /* We use char because int might match the return type of a gcc2
6630     builtin and then its argument prototype would still apply.  */
6631 char $ac_func();
6632
6633 int main() {
6634
6635 /* The GNU C library defines this for functions which it implements
6636     to always fail with ENOSYS.  Some functions are actually named
6637     something starting with __ and the normal name is an alias.  */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6639 choke me
6640 #else
6641 $ac_func();
6642 #endif
6643
6644 ; return 0; }
6645 EOF
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647   rm -rf conftest*
6648   eval "ac_cv_func_$ac_func=yes"
6649 else
6650   echo "configure: failed program was:" >&5
6651   cat conftest.$ac_ext >&5
6652   rm -rf conftest*
6653   eval "ac_cv_func_$ac_func=no"
6654 fi
6655 rm -f conftest*
6656 fi
6657
6658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6659   echo "$ac_t""yes" 1>&6
6660     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6661   cat >> confdefs.h <<EOF
6662 #define $ac_tr_func 1
6663 EOF
6664  
6665 else
6666   echo "$ac_t""no" 1>&6
6667 \
6668     ac_wfuncs=no
6669 fi
6670 done
6671
6672   
6673         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6674     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6675     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6676     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6677     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6678     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6679 do
6680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_func" >&5
6682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6683   echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685   cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689     which can conflict with char $ac_func(); below.  */
6690 #include <assert.h>
6691 /* Override any gcc2 internal prototype to avoid an error.  */
6692 /* We use char because int might match the return type of a gcc2
6693     builtin and then its argument prototype would still apply.  */
6694 char $ac_func();
6695
6696 int main() {
6697
6698 /* The GNU C library defines this for functions which it implements
6699     to always fail with ENOSYS.  Some functions are actually named
6700     something starting with __ and the normal name is an alias.  */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 choke me
6703 #else
6704 $ac_func();
6705 #endif
6706
6707 ; return 0; }
6708 EOF
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710   rm -rf conftest*
6711   eval "ac_cv_func_$ac_func=yes"
6712 else
6713   echo "configure: failed program was:" >&5
6714   cat conftest.$ac_ext >&5
6715   rm -rf conftest*
6716   eval "ac_cv_func_$ac_func=no"
6717 fi
6718 rm -f conftest*
6719 fi
6720
6721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6722   echo "$ac_t""yes" 1>&6
6723     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6724   cat >> confdefs.h <<EOF
6725 #define $ac_tr_func 1
6726 EOF
6727  
6728 else
6729   echo "$ac_t""no" 1>&6
6730 \
6731     ac_wfuncs=no
6732 fi
6733 done
6734
6735
6736     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6737 echo "configure:6738: checking for ISO C99 wchar_t support" >&5
6738     if test x"$has_weof" = xyes &&
6739        test x"$has_wchar_minmax" = xyes &&
6740        test x"$ac_wfuncs" = xyes; then
6741       ac_isoC99_wchar_t=yes
6742     else
6743       ac_isoC99_wchar_t=no
6744     fi
6745     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6746   
6747             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6748 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6749 echo "configure:6750: checking for iconv.h" >&5
6750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6751   echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753   cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <iconv.h>
6757 EOF
6758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6759 { (eval echo configure:6760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6761 if test -z "$ac_err"; then
6762   rm -rf conftest*
6763   eval "ac_cv_header_$ac_safe=yes"
6764 else
6765   echo "$ac_err" >&5
6766   echo "configure: failed program was:" >&5
6767   cat conftest.$ac_ext >&5
6768   rm -rf conftest*
6769   eval "ac_cv_header_$ac_safe=no"
6770 fi
6771 rm -f conftest*
6772 fi
6773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6774   echo "$ac_t""yes" 1>&6
6775   ac_has_iconv_h=yes
6776 else
6777   echo "$ac_t""no" 1>&6
6778 ac_has_iconv_h=no
6779 fi
6780
6781     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6782 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6783 echo "configure:6784: checking for langinfo.h" >&5
6784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6785   echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787   cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 #include <langinfo.h>
6791 EOF
6792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6793 { (eval echo configure:6794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6795 if test -z "$ac_err"; then
6796   rm -rf conftest*
6797   eval "ac_cv_header_$ac_safe=yes"
6798 else
6799   echo "$ac_err" >&5
6800   echo "configure: failed program was:" >&5
6801   cat conftest.$ac_ext >&5
6802   rm -rf conftest*
6803   eval "ac_cv_header_$ac_safe=no"
6804 fi
6805 rm -f conftest*
6806 fi
6807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6808   echo "$ac_t""yes" 1>&6
6809   ac_has_langinfo_h=yes
6810 else
6811   echo "$ac_t""no" 1>&6
6812 ac_has_langinfo_h=no
6813 fi
6814
6815
6816         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6817 echo "configure:6818: checking for iconv in -liconv" >&5
6818 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6820   echo $ac_n "(cached) $ac_c" 1>&6
6821 else
6822   ac_save_LIBS="$LIBS"
6823 LIBS="-liconv  $LIBS"
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* Override any gcc2 internal prototype to avoid an error.  */
6828 /* We use char because int might match the return type of a gcc2
6829     builtin and then its argument prototype would still apply.  */
6830 char iconv();
6831
6832 int main() {
6833 iconv()
6834 ; return 0; }
6835 EOF
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837   rm -rf conftest*
6838   eval "ac_cv_lib_$ac_lib_var=yes"
6839 else
6840   echo "configure: failed program was:" >&5
6841   cat conftest.$ac_ext >&5
6842   rm -rf conftest*
6843   eval "ac_cv_lib_$ac_lib_var=no"
6844 fi
6845 rm -f conftest*
6846 LIBS="$ac_save_LIBS"
6847
6848 fi
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6850   echo "$ac_t""yes" 1>&6
6851   libiconv="-liconv"
6852 else
6853   echo "$ac_t""no" 1>&6
6854 fi
6855
6856     ac_save_LIBS="$LIBS"
6857     LIBS="$LIBS $libiconv"
6858
6859     for ac_func in iconv_open iconv_close iconv nl_langinfo
6860 do
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864   echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866   cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870     which can conflict with char $ac_func(); below.  */
6871 #include <assert.h>
6872 /* Override any gcc2 internal prototype to avoid an error.  */
6873 /* We use char because int might match the return type of a gcc2
6874     builtin and then its argument prototype would still apply.  */
6875 char $ac_func();
6876
6877 int main() {
6878
6879 /* The GNU C library defines this for functions which it implements
6880     to always fail with ENOSYS.  Some functions are actually named
6881     something starting with __ and the normal name is an alias.  */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6883 choke me
6884 #else
6885 $ac_func();
6886 #endif
6887
6888 ; return 0; }
6889 EOF
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891   rm -rf conftest*
6892   eval "ac_cv_func_$ac_func=yes"
6893 else
6894   echo "configure: failed program was:" >&5
6895   cat conftest.$ac_ext >&5
6896   rm -rf conftest*
6897   eval "ac_cv_func_$ac_func=no"
6898 fi
6899 rm -f conftest*
6900 fi
6901
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903   echo "$ac_t""yes" 1>&6
6904     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905   cat >> confdefs.h <<EOF
6906 #define $ac_tr_func 1
6907 EOF
6908  \
6909     ac_XPG2funcs=yes
6910 else
6911   echo "$ac_t""no" 1>&6
6912 ac_XPG2funcs=no
6913 fi
6914 done
6915
6916   
6917     LIBS="$ac_save_LIBS"
6918
6919     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6920 echo "configure:6921: checking for XPG2 wchar_t support" >&5
6921     if test x"$ac_has_iconv_h" = xyes &&
6922        test x"$ac_has_langinfo_h" = xyes &&
6923        test x"$ac_XPG2funcs" = xyes; then
6924       ac_XPG2_wchar_t=yes
6925     else
6926       ac_XPG2_wchar_t=no
6927     fi
6928     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6929   
6930             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6931 echo "configure:6932: checking for enabled wchar_t specializations" >&5
6932     if test x"$ac_isoC99_wchar_t" = xyes &&
6933        test x"$ac_XPG2_wchar_t" = xyes; then
6934       cat >> confdefs.h <<\EOF
6935 #define _GLIBCPP_USE_WCHAR_T 1
6936 EOF
6937
6938       echo "$ac_t"""yes"" 1>&6
6939     else
6940       echo "$ac_t"""no"" 1>&6
6941     fi
6942   else
6943         echo "configure: warning: wchar_t support disabled." 1>&2
6944   fi
6945
6946       os_include_dir="os/bsd/netbsd"
6947       cat >> confdefs.h <<\EOF
6948 #define HAVE_COPYSIGN 1
6949 EOF
6950
6951       cat >> confdefs.h <<\EOF
6952 #define HAVE_COPYSIGNF 1
6953 EOF
6954
6955       cat >> confdefs.h <<\EOF
6956 #define HAVE_FINITEF 1
6957 EOF
6958
6959       cat >> confdefs.h <<\EOF
6960 #define HAVE_FREXPF 1
6961 EOF
6962
6963       cat >> confdefs.h <<\EOF
6964 #define HAVE_HYPOTF 1
6965 EOF
6966
6967       ;;
6968     *-mingw32*)
6969       for ac_hdr in sys/types.h locale.h float.h
6970 do
6971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6973 echo "configure:6974: checking for $ac_hdr" >&5
6974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6975   echo $ac_n "(cached) $ac_c" 1>&6
6976 else
6977   cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6980 #include <$ac_hdr>
6981 EOF
6982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6983 { (eval echo configure:6984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6985 if test -z "$ac_err"; then
6986   rm -rf conftest*
6987   eval "ac_cv_header_$ac_safe=yes"
6988 else
6989   echo "$ac_err" >&5
6990   echo "configure: failed program was:" >&5
6991   cat conftest.$ac_ext >&5
6992   rm -rf conftest*
6993   eval "ac_cv_header_$ac_safe=no"
6994 fi
6995 rm -f conftest*
6996 fi
6997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6998   echo "$ac_t""yes" 1>&6
6999     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7000   cat >> confdefs.h <<EOF
7001 #define $ac_tr_hdr 1
7002 EOF
7003  
7004 else
7005   echo "$ac_t""no" 1>&6
7006 fi
7007 done
7008
7009       
7010   # If we're not using GNU ld, then there's no point in even trying these
7011   # tests.  Check for that first.  We should have already tested for gld
7012   # by now (in libtool), but require it now just to be safe...
7013   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7014   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7015   
7016
7017   # The name set by libtool depends on the version of libtool.  Shame on us
7018   # for depending on an impl detail, but c'est la vie.  Older versions used
7019   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7020   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7021   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7022   # set (hence we're using an older libtool), then set it.
7023   if test x${with_gnu_ld+set} != xset; then
7024     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7025       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7026       with_gnu_ld=no
7027     else
7028       with_gnu_ld=$ac_cv_prog_gnu_ld
7029     fi
7030   fi
7031
7032   # Start by getting the version number.  I think the libtool test already
7033   # does some of this, but throws away the result.
7034   
7035   ldver=`$LD --version 2>/dev/null | head -1 | \
7036          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7037   
7038   glibcpp_gnu_ld_version=`echo $ldver | \
7039          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7040
7041   # Set --gc-sections.
7042   if test "$with_gnu_ld" = "notbroken"; then
7043     # GNU ld it is!  Joy and bunny rabbits!
7044
7045     # All these tests are for C++; save the language and the compiler flags.
7046     # Need to do this so that g++ won't try to link in libstdc++
7047     ac_test_CFLAGS="${CFLAGS+set}"
7048     ac_save_CFLAGS="$CFLAGS"
7049     CFLAGS='-x c++  -Wl,--gc-sections'
7050
7051     # Check for -Wl,--gc-sections
7052     # XXX This test is broken at the moment, as symbols required for
7053     # linking are now in libsupc++ (not built yet.....). In addition, 
7054     # this test has cored on solaris in the past. In addition,
7055     # --gc-sections doesn't really work at the moment (keeps on discarding
7056     # used sections, first .eh_frame and now some of the glibc sections for
7057     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7058     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7059 echo "configure:7060: checking for ld that supports -Wl,--gc-sections" >&5
7060     if test "$cross_compiling" = yes; then
7061   ac_sectionLDflags=yes
7062 else
7063   cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7066
7067      int main(void) 
7068      {
7069        try { throw 1; }
7070        catch (...) { };
7071        return 0;
7072      }
7073     
7074 EOF
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7076 then
7077   ac_sectionLDflags=yes
7078 else
7079   echo "configure: failed program was:" >&5
7080   cat conftest.$ac_ext >&5
7081   rm -fr conftest*
7082   ac_sectionLDflags=no
7083 fi
7084 rm -fr conftest*
7085 fi
7086
7087     if test "$ac_test_CFLAGS" = set; then
7088       CFLAGS="$ac_save_CFLAGS"
7089     else
7090       # this is the suspicious part
7091       CFLAGS=''
7092     fi
7093     if test "$ac_sectionLDflags" = "yes"; then
7094       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7095     fi
7096     echo "$ac_t""$ac_sectionLDflags" 1>&6
7097   fi
7098
7099   # Set linker optimization flags.
7100   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7101     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7102   fi
7103
7104   
7105   
7106
7107       
7108     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7109 echo "configure:7110: checking for main in -lm" >&5
7110 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7112   echo $ac_n "(cached) $ac_c" 1>&6
7113 else
7114   ac_save_LIBS="$LIBS"
7115 LIBS="-lm  $LIBS"
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7119
7120 int main() {
7121 main()
7122 ; return 0; }
7123 EOF
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7125   rm -rf conftest*
7126   eval "ac_cv_lib_$ac_lib_var=yes"
7127 else
7128   echo "configure: failed program was:" >&5
7129   cat conftest.$ac_ext >&5
7130   rm -rf conftest*
7131   eval "ac_cv_lib_$ac_lib_var=no"
7132 fi
7133 rm -f conftest*
7134 LIBS="$ac_save_LIBS"
7135
7136 fi
7137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7138   echo "$ac_t""yes" 1>&6
7139     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7140     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7141   cat >> confdefs.h <<EOF
7142 #define $ac_tr_lib 1
7143 EOF
7144
7145   LIBS="-lm $LIBS"
7146
7147 else
7148   echo "$ac_t""no" 1>&6
7149 fi
7150
7151   for ac_func in nan copysignf
7152 do
7153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7154 echo "configure:7155: checking for $ac_func" >&5
7155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7156   echo $ac_n "(cached) $ac_c" 1>&6
7157 else
7158   cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* System header to define __stub macros and hopefully few prototypes,
7162     which can conflict with char $ac_func(); below.  */
7163 #include <assert.h>
7164 /* Override any gcc2 internal prototype to avoid an error.  */
7165 /* We use char because int might match the return type of a gcc2
7166     builtin and then its argument prototype would still apply.  */
7167 char $ac_func();
7168
7169 int main() {
7170
7171 /* The GNU C library defines this for functions which it implements
7172     to always fail with ENOSYS.  Some functions are actually named
7173     something starting with __ and the normal name is an alias.  */
7174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7175 choke me
7176 #else
7177 $ac_func();
7178 #endif
7179
7180 ; return 0; }
7181 EOF
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183   rm -rf conftest*
7184   eval "ac_cv_func_$ac_func=yes"
7185 else
7186   echo "configure: failed program was:" >&5
7187   cat conftest.$ac_ext >&5
7188   rm -rf conftest*
7189   eval "ac_cv_func_$ac_func=no"
7190 fi
7191 rm -f conftest*
7192 fi
7193
7194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7195   echo "$ac_t""yes" 1>&6
7196     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7197   cat >> confdefs.h <<EOF
7198 #define $ac_tr_func 1
7199 EOF
7200  
7201 else
7202   echo "$ac_t""no" 1>&6
7203 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7204 fi
7205 done
7206
7207
7208     for ac_func in __signbit
7209 do
7210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7211 echo "configure:7212: checking for $ac_func" >&5
7212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7213   echo $ac_n "(cached) $ac_c" 1>&6
7214 else
7215   cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 /* System header to define __stub macros and hopefully few prototypes,
7219     which can conflict with char $ac_func(); below.  */
7220 #include <assert.h>
7221 /* Override any gcc2 internal prototype to avoid an error.  */
7222 /* We use char because int might match the return type of a gcc2
7223     builtin and then its argument prototype would still apply.  */
7224 char $ac_func();
7225
7226 int main() {
7227
7228 /* The GNU C library defines this for functions which it implements
7229     to always fail with ENOSYS.  Some functions are actually named
7230     something starting with __ and the normal name is an alias.  */
7231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7232 choke me
7233 #else
7234 $ac_func();
7235 #endif
7236
7237 ; return 0; }
7238 EOF
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240   rm -rf conftest*
7241   eval "ac_cv_func_$ac_func=yes"
7242 else
7243   echo "configure: failed program was:" >&5
7244   cat conftest.$ac_ext >&5
7245   rm -rf conftest*
7246   eval "ac_cv_func_$ac_func=no"
7247 fi
7248 rm -f conftest*
7249 fi
7250
7251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7252   echo "$ac_t""yes" 1>&6
7253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7254   cat >> confdefs.h <<EOF
7255 #define $ac_tr_func 1
7256 EOF
7257  
7258 else
7259   echo "$ac_t""no" 1>&6
7260 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7261 fi
7262 done
7263
7264   for ac_func in __signbitf
7265 do
7266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7267 echo "configure:7268: checking for $ac_func" >&5
7268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7269   echo $ac_n "(cached) $ac_c" 1>&6
7270 else
7271   cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7274 /* System header to define __stub macros and hopefully few prototypes,
7275     which can conflict with char $ac_func(); below.  */
7276 #include <assert.h>
7277 /* Override any gcc2 internal prototype to avoid an error.  */
7278 /* We use char because int might match the return type of a gcc2
7279     builtin and then its argument prototype would still apply.  */
7280 char $ac_func();
7281
7282 int main() {
7283
7284 /* The GNU C library defines this for functions which it implements
7285     to always fail with ENOSYS.  Some functions are actually named
7286     something starting with __ and the normal name is an alias.  */
7287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7288 choke me
7289 #else
7290 $ac_func();
7291 #endif
7292
7293 ; return 0; }
7294 EOF
7295 if { (eval echo configure:7296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7296   rm -rf conftest*
7297   eval "ac_cv_func_$ac_func=yes"
7298 else
7299   echo "configure: failed program was:" >&5
7300   cat conftest.$ac_ext >&5
7301   rm -rf conftest*
7302   eval "ac_cv_func_$ac_func=no"
7303 fi
7304 rm -f conftest*
7305 fi
7306
7307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7308   echo "$ac_t""yes" 1>&6
7309     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7310   cat >> confdefs.h <<EOF
7311 #define $ac_tr_func 1
7312 EOF
7313  
7314 else
7315   echo "$ac_t""no" 1>&6
7316 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7317 fi
7318 done
7319
7320
7321           if test x$ac_cv_func_copysignl = x"yes"; then
7322     for ac_func in __signbitl
7323 do
7324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7325 echo "configure:7326: checking for $ac_func" >&5
7326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7327   echo $ac_n "(cached) $ac_c" 1>&6
7328 else
7329   cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 /* System header to define __stub macros and hopefully few prototypes,
7333     which can conflict with char $ac_func(); below.  */
7334 #include <assert.h>
7335 /* Override any gcc2 internal prototype to avoid an error.  */
7336 /* We use char because int might match the return type of a gcc2
7337     builtin and then its argument prototype would still apply.  */
7338 char $ac_func();
7339
7340 int main() {
7341
7342 /* The GNU C library defines this for functions which it implements
7343     to always fail with ENOSYS.  Some functions are actually named
7344     something starting with __ and the normal name is an alias.  */
7345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7346 choke me
7347 #else
7348 $ac_func();
7349 #endif
7350
7351 ; return 0; }
7352 EOF
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354   rm -rf conftest*
7355   eval "ac_cv_func_$ac_func=yes"
7356 else
7357   echo "configure: failed program was:" >&5
7358   cat conftest.$ac_ext >&5
7359   rm -rf conftest*
7360   eval "ac_cv_func_$ac_func=no"
7361 fi
7362 rm -f conftest*
7363 fi
7364
7365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7366   echo "$ac_t""yes" 1>&6
7367     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7368   cat >> confdefs.h <<EOF
7369 #define $ac_tr_func 1
7370 EOF
7371  
7372 else
7373   echo "$ac_t""no" 1>&6
7374 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7375 fi
7376 done
7377
7378   fi
7379
7380   
7381
7382       
7383
7384       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7385 echo "configure:7386: checking for mbstate_t" >&5
7386   cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 #include <wchar.h>
7390 int main() {
7391 mbstate_t teststate;
7392 ; return 0; }
7393 EOF
7394 if { (eval echo configure:7395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395   rm -rf conftest*
7396   have_mbstate_t=yes
7397 else
7398   echo "configure: failed program was:" >&5
7399   cat conftest.$ac_ext >&5
7400   rm -rf conftest*
7401   have_mbstate_t=no
7402 fi
7403 rm -f conftest*
7404   echo "$ac_t""$have_mbstate_t" 1>&6
7405   if test x"$have_mbstate_t" = xyes; then
7406     cat >> confdefs.h <<\EOF
7407 #define HAVE_MBSTATE_T 1
7408 EOF
7409
7410   fi
7411
7412     for ac_hdr in wchar.h
7413 do
7414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7416 echo "configure:7417: checking for $ac_hdr" >&5
7417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7418   echo $ac_n "(cached) $ac_c" 1>&6
7419 else
7420   cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 #include <$ac_hdr>
7424 EOF
7425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7426 { (eval echo configure:7427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7428 if test -z "$ac_err"; then
7429   rm -rf conftest*
7430   eval "ac_cv_header_$ac_safe=yes"
7431 else
7432   echo "$ac_err" >&5
7433   echo "configure: failed program was:" >&5
7434   cat conftest.$ac_ext >&5
7435   rm -rf conftest*
7436   eval "ac_cv_header_$ac_safe=no"
7437 fi
7438 rm -f conftest*
7439 fi
7440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7441   echo "$ac_t""yes" 1>&6
7442     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7443   cat >> confdefs.h <<EOF
7444 #define $ac_tr_hdr 1
7445 EOF
7446  ac_has_wchar_h=yes
7447 else
7448   echo "$ac_t""no" 1>&6
7449 ac_has_wchar_h=no
7450 fi
7451 done
7452
7453   for ac_hdr in wctype.h
7454 do
7455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7457 echo "configure:7458: checking for $ac_hdr" >&5
7458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7459   echo $ac_n "(cached) $ac_c" 1>&6
7460 else
7461   cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 #include <$ac_hdr>
7465 EOF
7466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7467 { (eval echo configure:7468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7469 if test -z "$ac_err"; then
7470   rm -rf conftest*
7471   eval "ac_cv_header_$ac_safe=yes"
7472 else
7473   echo "$ac_err" >&5
7474   echo "configure: failed program was:" >&5
7475   cat conftest.$ac_ext >&5
7476   rm -rf conftest*
7477   eval "ac_cv_header_$ac_safe=no"
7478 fi
7479 rm -f conftest*
7480 fi
7481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7482   echo "$ac_t""yes" 1>&6
7483     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7484   cat >> confdefs.h <<EOF
7485 #define $ac_tr_hdr 1
7486 EOF
7487  ac_has_wctype_h=yes
7488 else
7489   echo "$ac_t""no" 1>&6
7490 ac_has_wctype_h=no
7491 fi
7492 done
7493
7494   
7495     if test x"$ac_has_wchar_h" = xyes &&
7496      test x"$ac_has_wctype_h" = xyes &&
7497      test x"$enable_c_mbchar" != xno; then
7498       
7499             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7500 echo "configure:7501: checking for WCHAR_MIN and WCHAR_MAX" >&5
7501     cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 #include <wchar.h>
7505 int main() {
7506 int i = WCHAR_MIN; int j = WCHAR_MAX;
7507 ; return 0; }
7508 EOF
7509 if { (eval echo configure:7510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7510   rm -rf conftest*
7511   has_wchar_minmax=yes
7512 else
7513   echo "configure: failed program was:" >&5
7514   cat conftest.$ac_ext >&5
7515   rm -rf conftest*
7516   has_wchar_minmax=no
7517 fi
7518 rm -f conftest*
7519     echo "$ac_t""$has_wchar_minmax" 1>&6
7520     
7521             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7522 echo "configure:7523: checking for WEOF" >&5
7523     cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7526
7527       #include <wchar.h>
7528       #include <stddef.h>
7529 int main() {
7530 wint_t i = WEOF;
7531 ; return 0; }
7532 EOF
7533 if { (eval echo configure:7534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7534   rm -rf conftest*
7535   has_weof=yes
7536 else
7537   echo "configure: failed program was:" >&5
7538   cat conftest.$ac_ext >&5
7539   rm -rf conftest*
7540   has_weof=no
7541 fi
7542 rm -f conftest*
7543     echo "$ac_t""$has_weof" 1>&6
7544   
7545         ac_wfuncs=yes
7546     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7547 do
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551   echo $ac_n "(cached) $ac_c" 1>&6
7552 else
7553   cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557     which can conflict with char $ac_func(); below.  */
7558 #include <assert.h>
7559 /* Override any gcc2 internal prototype to avoid an error.  */
7560 /* We use char because int might match the return type of a gcc2
7561     builtin and then its argument prototype would still apply.  */
7562 char $ac_func();
7563
7564 int main() {
7565
7566 /* The GNU C library defines this for functions which it implements
7567     to always fail with ENOSYS.  Some functions are actually named
7568     something starting with __ and the normal name is an alias.  */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7570 choke me
7571 #else
7572 $ac_func();
7573 #endif
7574
7575 ; return 0; }
7576 EOF
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578   rm -rf conftest*
7579   eval "ac_cv_func_$ac_func=yes"
7580 else
7581   echo "configure: failed program was:" >&5
7582   cat conftest.$ac_ext >&5
7583   rm -rf conftest*
7584   eval "ac_cv_func_$ac_func=no"
7585 fi
7586 rm -f conftest*
7587 fi
7588
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590   echo "$ac_t""yes" 1>&6
7591     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592   cat >> confdefs.h <<EOF
7593 #define $ac_tr_func 1
7594 EOF
7595  
7596 else
7597   echo "$ac_t""no" 1>&6
7598 \
7599     ac_wfuncs=no
7600 fi
7601 done
7602
7603   
7604         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7605     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7606     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7607     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7608     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7609     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7610 do
7611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_func" >&5
7613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7614   echo $ac_n "(cached) $ac_c" 1>&6
7615 else
7616   cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* System header to define __stub macros and hopefully few prototypes,
7620     which can conflict with char $ac_func(); below.  */
7621 #include <assert.h>
7622 /* Override any gcc2 internal prototype to avoid an error.  */
7623 /* We use char because int might match the return type of a gcc2
7624     builtin and then its argument prototype would still apply.  */
7625 char $ac_func();
7626
7627 int main() {
7628
7629 /* The GNU C library defines this for functions which it implements
7630     to always fail with ENOSYS.  Some functions are actually named
7631     something starting with __ and the normal name is an alias.  */
7632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7633 choke me
7634 #else
7635 $ac_func();
7636 #endif
7637
7638 ; return 0; }
7639 EOF
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7641   rm -rf conftest*
7642   eval "ac_cv_func_$ac_func=yes"
7643 else
7644   echo "configure: failed program was:" >&5
7645   cat conftest.$ac_ext >&5
7646   rm -rf conftest*
7647   eval "ac_cv_func_$ac_func=no"
7648 fi
7649 rm -f conftest*
7650 fi
7651
7652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7653   echo "$ac_t""yes" 1>&6
7654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7655   cat >> confdefs.h <<EOF
7656 #define $ac_tr_func 1
7657 EOF
7658  
7659 else
7660   echo "$ac_t""no" 1>&6
7661 \
7662     ac_wfuncs=no
7663 fi
7664 done
7665
7666
7667     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7668 echo "configure:7669: checking for ISO C99 wchar_t support" >&5
7669     if test x"$has_weof" = xyes &&
7670        test x"$has_wchar_minmax" = xyes &&
7671        test x"$ac_wfuncs" = xyes; then
7672       ac_isoC99_wchar_t=yes
7673     else
7674       ac_isoC99_wchar_t=no
7675     fi
7676     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7677   
7678             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7679 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7680 echo "configure:7681: checking for iconv.h" >&5
7681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7682   echo $ac_n "(cached) $ac_c" 1>&6
7683 else
7684   cat > conftest.$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7687 #include <iconv.h>
7688 EOF
7689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7690 { (eval echo configure:7691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7692 if test -z "$ac_err"; then
7693   rm -rf conftest*
7694   eval "ac_cv_header_$ac_safe=yes"
7695 else
7696   echo "$ac_err" >&5
7697   echo "configure: failed program was:" >&5
7698   cat conftest.$ac_ext >&5
7699   rm -rf conftest*
7700   eval "ac_cv_header_$ac_safe=no"
7701 fi
7702 rm -f conftest*
7703 fi
7704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7705   echo "$ac_t""yes" 1>&6
7706   ac_has_iconv_h=yes
7707 else
7708   echo "$ac_t""no" 1>&6
7709 ac_has_iconv_h=no
7710 fi
7711
7712     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7713 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7714 echo "configure:7715: checking for langinfo.h" >&5
7715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7716   echo $ac_n "(cached) $ac_c" 1>&6
7717 else
7718   cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7721 #include <langinfo.h>
7722 EOF
7723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7724 { (eval echo configure:7725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7726 if test -z "$ac_err"; then
7727   rm -rf conftest*
7728   eval "ac_cv_header_$ac_safe=yes"
7729 else
7730   echo "$ac_err" >&5
7731   echo "configure: failed program was:" >&5
7732   cat conftest.$ac_ext >&5
7733   rm -rf conftest*
7734   eval "ac_cv_header_$ac_safe=no"
7735 fi
7736 rm -f conftest*
7737 fi
7738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7739   echo "$ac_t""yes" 1>&6
7740   ac_has_langinfo_h=yes
7741 else
7742   echo "$ac_t""no" 1>&6
7743 ac_has_langinfo_h=no
7744 fi
7745
7746
7747         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7748 echo "configure:7749: checking for iconv in -liconv" >&5
7749 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7751   echo $ac_n "(cached) $ac_c" 1>&6
7752 else
7753   ac_save_LIBS="$LIBS"
7754 LIBS="-liconv  $LIBS"
7755 cat > conftest.$ac_ext <<EOF
7756 #line 7757 "configure"
7757 #include "confdefs.h"
7758 /* Override any gcc2 internal prototype to avoid an error.  */
7759 /* We use char because int might match the return type of a gcc2
7760     builtin and then its argument prototype would still apply.  */
7761 char iconv();
7762
7763 int main() {
7764 iconv()
7765 ; return 0; }
7766 EOF
7767 if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7768   rm -rf conftest*
7769   eval "ac_cv_lib_$ac_lib_var=yes"
7770 else
7771   echo "configure: failed program was:" >&5
7772   cat conftest.$ac_ext >&5
7773   rm -rf conftest*
7774   eval "ac_cv_lib_$ac_lib_var=no"
7775 fi
7776 rm -f conftest*
7777 LIBS="$ac_save_LIBS"
7778
7779 fi
7780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7781   echo "$ac_t""yes" 1>&6
7782   libiconv="-liconv"
7783 else
7784   echo "$ac_t""no" 1>&6
7785 fi
7786
7787     ac_save_LIBS="$LIBS"
7788     LIBS="$LIBS $libiconv"
7789
7790     for ac_func in iconv_open iconv_close iconv nl_langinfo
7791 do
7792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_func" >&5
7794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7795   echo $ac_n "(cached) $ac_c" 1>&6
7796 else
7797   cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* System header to define __stub macros and hopefully few prototypes,
7801     which can conflict with char $ac_func(); below.  */
7802 #include <assert.h>
7803 /* Override any gcc2 internal prototype to avoid an error.  */
7804 /* We use char because int might match the return type of a gcc2
7805     builtin and then its argument prototype would still apply.  */
7806 char $ac_func();
7807
7808 int main() {
7809
7810 /* The GNU C library defines this for functions which it implements
7811     to always fail with ENOSYS.  Some functions are actually named
7812     something starting with __ and the normal name is an alias.  */
7813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7814 choke me
7815 #else
7816 $ac_func();
7817 #endif
7818
7819 ; return 0; }
7820 EOF
7821 if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7822   rm -rf conftest*
7823   eval "ac_cv_func_$ac_func=yes"
7824 else
7825   echo "configure: failed program was:" >&5
7826   cat conftest.$ac_ext >&5
7827   rm -rf conftest*
7828   eval "ac_cv_func_$ac_func=no"
7829 fi
7830 rm -f conftest*
7831 fi
7832
7833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7834   echo "$ac_t""yes" 1>&6
7835     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7836   cat >> confdefs.h <<EOF
7837 #define $ac_tr_func 1
7838 EOF
7839  \
7840     ac_XPG2funcs=yes
7841 else
7842   echo "$ac_t""no" 1>&6
7843 ac_XPG2funcs=no
7844 fi
7845 done
7846
7847   
7848     LIBS="$ac_save_LIBS"
7849
7850     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7851 echo "configure:7852: checking for XPG2 wchar_t support" >&5
7852     if test x"$ac_has_iconv_h" = xyes &&
7853        test x"$ac_has_langinfo_h" = xyes &&
7854        test x"$ac_XPG2funcs" = xyes; then
7855       ac_XPG2_wchar_t=yes
7856     else
7857       ac_XPG2_wchar_t=no
7858     fi
7859     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7860   
7861             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7862 echo "configure:7863: checking for enabled wchar_t specializations" >&5
7863     if test x"$ac_isoC99_wchar_t" = xyes &&
7864        test x"$ac_XPG2_wchar_t" = xyes; then
7865       cat >> confdefs.h <<\EOF
7866 #define _GLIBCPP_USE_WCHAR_T 1
7867 EOF
7868
7869       echo "$ac_t"""yes"" 1>&6
7870     else
7871       echo "$ac_t"""no"" 1>&6
7872     fi
7873   else
7874         echo "configure: warning: wchar_t support disabled." 1>&2
7875   fi
7876
7877       os_include_dir="os/mingw32"
7878       ;;
7879     *-windiss*)
7880       os_include_dir="os/windiss"
7881       ;;
7882     *-qnx6.[12]*)
7883       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7884        
7885       
7886   # If we're not using GNU ld, then there's no point in even trying these
7887   # tests.  Check for that first.  We should have already tested for gld
7888   # by now (in libtool), but require it now just to be safe...
7889   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7890   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7891   
7892
7893   # The name set by libtool depends on the version of libtool.  Shame on us
7894   # for depending on an impl detail, but c'est la vie.  Older versions used
7895   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7896   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7897   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7898   # set (hence we're using an older libtool), then set it.
7899   if test x${with_gnu_ld+set} != xset; then
7900     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7901       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7902       with_gnu_ld=no
7903     else
7904       with_gnu_ld=$ac_cv_prog_gnu_ld
7905     fi
7906   fi
7907
7908   # Start by getting the version number.  I think the libtool test already
7909   # does some of this, but throws away the result.
7910   
7911   ldver=`$LD --version 2>/dev/null | head -1 | \
7912          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7913   
7914   glibcpp_gnu_ld_version=`echo $ldver | \
7915          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7916
7917   # Set --gc-sections.
7918   if test "$with_gnu_ld" = "notbroken"; then
7919     # GNU ld it is!  Joy and bunny rabbits!
7920
7921     # All these tests are for C++; save the language and the compiler flags.
7922     # Need to do this so that g++ won't try to link in libstdc++
7923     ac_test_CFLAGS="${CFLAGS+set}"
7924     ac_save_CFLAGS="$CFLAGS"
7925     CFLAGS='-x c++  -Wl,--gc-sections'
7926
7927     # Check for -Wl,--gc-sections
7928     # XXX This test is broken at the moment, as symbols required for
7929     # linking are now in libsupc++ (not built yet.....). In addition, 
7930     # this test has cored on solaris in the past. In addition,
7931     # --gc-sections doesn't really work at the moment (keeps on discarding
7932     # used sections, first .eh_frame and now some of the glibc sections for
7933     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7934     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7935 echo "configure:7936: checking for ld that supports -Wl,--gc-sections" >&5
7936     if test "$cross_compiling" = yes; then
7937   ac_sectionLDflags=yes
7938 else
7939   cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942
7943      int main(void) 
7944      {
7945        try { throw 1; }
7946        catch (...) { };
7947        return 0;
7948      }
7949     
7950 EOF
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7952 then
7953   ac_sectionLDflags=yes
7954 else
7955   echo "configure: failed program was:" >&5
7956   cat conftest.$ac_ext >&5
7957   rm -fr conftest*
7958   ac_sectionLDflags=no
7959 fi
7960 rm -fr conftest*
7961 fi
7962
7963     if test "$ac_test_CFLAGS" = set; then
7964       CFLAGS="$ac_save_CFLAGS"
7965     else
7966       # this is the suspicious part
7967       CFLAGS=''
7968     fi
7969     if test "$ac_sectionLDflags" = "yes"; then
7970       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7971     fi
7972     echo "$ac_t""$ac_sectionLDflags" 1>&6
7973   fi
7974
7975   # Set linker optimization flags.
7976   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7977     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7978   fi
7979
7980   
7981   
7982
7983       
7984     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7985 echo "configure:7986: checking for main in -lm" >&5
7986 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7988   echo $ac_n "(cached) $ac_c" 1>&6
7989 else
7990   ac_save_LIBS="$LIBS"
7991 LIBS="-lm  $LIBS"
7992 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7995
7996 int main() {
7997 main()
7998 ; return 0; }
7999 EOF
8000 if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8001   rm -rf conftest*
8002   eval "ac_cv_lib_$ac_lib_var=yes"
8003 else
8004   echo "configure: failed program was:" >&5
8005   cat conftest.$ac_ext >&5
8006   rm -rf conftest*
8007   eval "ac_cv_lib_$ac_lib_var=no"
8008 fi
8009 rm -f conftest*
8010 LIBS="$ac_save_LIBS"
8011
8012 fi
8013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8014   echo "$ac_t""yes" 1>&6
8015     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8016     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8017   cat >> confdefs.h <<EOF
8018 #define $ac_tr_lib 1
8019 EOF
8020
8021   LIBS="-lm $LIBS"
8022
8023 else
8024   echo "$ac_t""no" 1>&6
8025 fi
8026
8027   for ac_func in nan copysignf
8028 do
8029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8030 echo "configure:8031: checking for $ac_func" >&5
8031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8032   echo $ac_n "(cached) $ac_c" 1>&6
8033 else
8034   cat > conftest.$ac_ext <<EOF
8035 #line 8036 "configure"
8036 #include "confdefs.h"
8037 /* System header to define __stub macros and hopefully few prototypes,
8038     which can conflict with char $ac_func(); below.  */
8039 #include <assert.h>
8040 /* Override any gcc2 internal prototype to avoid an error.  */
8041 /* We use char because int might match the return type of a gcc2
8042     builtin and then its argument prototype would still apply.  */
8043 char $ac_func();
8044
8045 int main() {
8046
8047 /* The GNU C library defines this for functions which it implements
8048     to always fail with ENOSYS.  Some functions are actually named
8049     something starting with __ and the normal name is an alias.  */
8050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8051 choke me
8052 #else
8053 $ac_func();
8054 #endif
8055
8056 ; return 0; }
8057 EOF
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059   rm -rf conftest*
8060   eval "ac_cv_func_$ac_func=yes"
8061 else
8062   echo "configure: failed program was:" >&5
8063   cat conftest.$ac_ext >&5
8064   rm -rf conftest*
8065   eval "ac_cv_func_$ac_func=no"
8066 fi
8067 rm -f conftest*
8068 fi
8069
8070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8071   echo "$ac_t""yes" 1>&6
8072     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8073   cat >> confdefs.h <<EOF
8074 #define $ac_tr_func 1
8075 EOF
8076  
8077 else
8078   echo "$ac_t""no" 1>&6
8079 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8080 fi
8081 done
8082
8083
8084     for ac_func in __signbit
8085 do
8086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8087 echo "configure:8088: checking for $ac_func" >&5
8088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8089   echo $ac_n "(cached) $ac_c" 1>&6
8090 else
8091   cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* System header to define __stub macros and hopefully few prototypes,
8095     which can conflict with char $ac_func(); below.  */
8096 #include <assert.h>
8097 /* Override any gcc2 internal prototype to avoid an error.  */
8098 /* We use char because int might match the return type of a gcc2
8099     builtin and then its argument prototype would still apply.  */
8100 char $ac_func();
8101
8102 int main() {
8103
8104 /* The GNU C library defines this for functions which it implements
8105     to always fail with ENOSYS.  Some functions are actually named
8106     something starting with __ and the normal name is an alias.  */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8108 choke me
8109 #else
8110 $ac_func();
8111 #endif
8112
8113 ; return 0; }
8114 EOF
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8116   rm -rf conftest*
8117   eval "ac_cv_func_$ac_func=yes"
8118 else
8119   echo "configure: failed program was:" >&5
8120   cat conftest.$ac_ext >&5
8121   rm -rf conftest*
8122   eval "ac_cv_func_$ac_func=no"
8123 fi
8124 rm -f conftest*
8125 fi
8126
8127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8128   echo "$ac_t""yes" 1>&6
8129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8130   cat >> confdefs.h <<EOF
8131 #define $ac_tr_func 1
8132 EOF
8133  
8134 else
8135   echo "$ac_t""no" 1>&6
8136 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8137 fi
8138 done
8139
8140   for ac_func in __signbitf
8141 do
8142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8143 echo "configure:8144: checking for $ac_func" >&5
8144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8145   echo $ac_n "(cached) $ac_c" 1>&6
8146 else
8147   cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 /* System header to define __stub macros and hopefully few prototypes,
8151     which can conflict with char $ac_func(); below.  */
8152 #include <assert.h>
8153 /* Override any gcc2 internal prototype to avoid an error.  */
8154 /* We use char because int might match the return type of a gcc2
8155     builtin and then its argument prototype would still apply.  */
8156 char $ac_func();
8157
8158 int main() {
8159
8160 /* The GNU C library defines this for functions which it implements
8161     to always fail with ENOSYS.  Some functions are actually named
8162     something starting with __ and the normal name is an alias.  */
8163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8164 choke me
8165 #else
8166 $ac_func();
8167 #endif
8168
8169 ; return 0; }
8170 EOF
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172   rm -rf conftest*
8173   eval "ac_cv_func_$ac_func=yes"
8174 else
8175   echo "configure: failed program was:" >&5
8176   cat conftest.$ac_ext >&5
8177   rm -rf conftest*
8178   eval "ac_cv_func_$ac_func=no"
8179 fi
8180 rm -f conftest*
8181 fi
8182
8183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8184   echo "$ac_t""yes" 1>&6
8185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8186   cat >> confdefs.h <<EOF
8187 #define $ac_tr_func 1
8188 EOF
8189  
8190 else
8191   echo "$ac_t""no" 1>&6
8192 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8193 fi
8194 done
8195
8196
8197           if test x$ac_cv_func_copysignl = x"yes"; then
8198     for ac_func in __signbitl
8199 do
8200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_func" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8203   echo $ac_n "(cached) $ac_c" 1>&6
8204 else
8205   cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209     which can conflict with char $ac_func(); below.  */
8210 #include <assert.h>
8211 /* Override any gcc2 internal prototype to avoid an error.  */
8212 /* We use char because int might match the return type of a gcc2
8213     builtin and then its argument prototype would still apply.  */
8214 char $ac_func();
8215
8216 int main() {
8217
8218 /* The GNU C library defines this for functions which it implements
8219     to always fail with ENOSYS.  Some functions are actually named
8220     something starting with __ and the normal name is an alias.  */
8221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8222 choke me
8223 #else
8224 $ac_func();
8225 #endif
8226
8227 ; return 0; }
8228 EOF
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230   rm -rf conftest*
8231   eval "ac_cv_func_$ac_func=yes"
8232 else
8233   echo "configure: failed program was:" >&5
8234   cat conftest.$ac_ext >&5
8235   rm -rf conftest*
8236   eval "ac_cv_func_$ac_func=no"
8237 fi
8238 rm -f conftest*
8239 fi
8240
8241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8242   echo "$ac_t""yes" 1>&6
8243     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8244   cat >> confdefs.h <<EOF
8245 #define $ac_tr_func 1
8246 EOF
8247  
8248 else
8249   echo "$ac_t""no" 1>&6
8250 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8251 fi
8252 done
8253
8254   fi
8255
8256   
8257
8258       
8259
8260       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8261 echo "configure:8262: checking for mbstate_t" >&5
8262   cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8265 #include <wchar.h>
8266 int main() {
8267 mbstate_t teststate;
8268 ; return 0; }
8269 EOF
8270 if { (eval echo configure:8271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8271   rm -rf conftest*
8272   have_mbstate_t=yes
8273 else
8274   echo "configure: failed program was:" >&5
8275   cat conftest.$ac_ext >&5
8276   rm -rf conftest*
8277   have_mbstate_t=no
8278 fi
8279 rm -f conftest*
8280   echo "$ac_t""$have_mbstate_t" 1>&6
8281   if test x"$have_mbstate_t" = xyes; then
8282     cat >> confdefs.h <<\EOF
8283 #define HAVE_MBSTATE_T 1
8284 EOF
8285
8286   fi
8287
8288     for ac_hdr in wchar.h
8289 do
8290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8292 echo "configure:8293: checking for $ac_hdr" >&5
8293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8294   echo $ac_n "(cached) $ac_c" 1>&6
8295 else
8296   cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299 #include <$ac_hdr>
8300 EOF
8301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8302 { (eval echo configure:8303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8304 if test -z "$ac_err"; then
8305   rm -rf conftest*
8306   eval "ac_cv_header_$ac_safe=yes"
8307 else
8308   echo "$ac_err" >&5
8309   echo "configure: failed program was:" >&5
8310   cat conftest.$ac_ext >&5
8311   rm -rf conftest*
8312   eval "ac_cv_header_$ac_safe=no"
8313 fi
8314 rm -f conftest*
8315 fi
8316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8317   echo "$ac_t""yes" 1>&6
8318     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8319   cat >> confdefs.h <<EOF
8320 #define $ac_tr_hdr 1
8321 EOF
8322  ac_has_wchar_h=yes
8323 else
8324   echo "$ac_t""no" 1>&6
8325 ac_has_wchar_h=no
8326 fi
8327 done
8328
8329   for ac_hdr in wctype.h
8330 do
8331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_hdr" >&5
8334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8335   echo $ac_n "(cached) $ac_c" 1>&6
8336 else
8337   cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 #include <$ac_hdr>
8341 EOF
8342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8343 { (eval echo configure:8344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8345 if test -z "$ac_err"; then
8346   rm -rf conftest*
8347   eval "ac_cv_header_$ac_safe=yes"
8348 else
8349   echo "$ac_err" >&5
8350   echo "configure: failed program was:" >&5
8351   cat conftest.$ac_ext >&5
8352   rm -rf conftest*
8353   eval "ac_cv_header_$ac_safe=no"
8354 fi
8355 rm -f conftest*
8356 fi
8357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8358   echo "$ac_t""yes" 1>&6
8359     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8360   cat >> confdefs.h <<EOF
8361 #define $ac_tr_hdr 1
8362 EOF
8363  ac_has_wctype_h=yes
8364 else
8365   echo "$ac_t""no" 1>&6
8366 ac_has_wctype_h=no
8367 fi
8368 done
8369
8370   
8371     if test x"$ac_has_wchar_h" = xyes &&
8372      test x"$ac_has_wctype_h" = xyes &&
8373      test x"$enable_c_mbchar" != xno; then
8374       
8375             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8376 echo "configure:8377: checking for WCHAR_MIN and WCHAR_MAX" >&5
8377     cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 #include <wchar.h>
8381 int main() {
8382 int i = WCHAR_MIN; int j = WCHAR_MAX;
8383 ; return 0; }
8384 EOF
8385 if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8386   rm -rf conftest*
8387   has_wchar_minmax=yes
8388 else
8389   echo "configure: failed program was:" >&5
8390   cat conftest.$ac_ext >&5
8391   rm -rf conftest*
8392   has_wchar_minmax=no
8393 fi
8394 rm -f conftest*
8395     echo "$ac_t""$has_wchar_minmax" 1>&6
8396     
8397             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8398 echo "configure:8399: checking for WEOF" >&5
8399     cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402
8403       #include <wchar.h>
8404       #include <stddef.h>
8405 int main() {
8406 wint_t i = WEOF;
8407 ; return 0; }
8408 EOF
8409 if { (eval echo configure:8410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8410   rm -rf conftest*
8411   has_weof=yes
8412 else
8413   echo "configure: failed program was:" >&5
8414   cat conftest.$ac_ext >&5
8415   rm -rf conftest*
8416   has_weof=no
8417 fi
8418 rm -f conftest*
8419     echo "$ac_t""$has_weof" 1>&6
8420   
8421         ac_wfuncs=yes
8422     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8423 do
8424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8425 echo "configure:8426: checking for $ac_func" >&5
8426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8427   echo $ac_n "(cached) $ac_c" 1>&6
8428 else
8429   cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 /* System header to define __stub macros and hopefully few prototypes,
8433     which can conflict with char $ac_func(); below.  */
8434 #include <assert.h>
8435 /* Override any gcc2 internal prototype to avoid an error.  */
8436 /* We use char because int might match the return type of a gcc2
8437     builtin and then its argument prototype would still apply.  */
8438 char $ac_func();
8439
8440 int main() {
8441
8442 /* The GNU C library defines this for functions which it implements
8443     to always fail with ENOSYS.  Some functions are actually named
8444     something starting with __ and the normal name is an alias.  */
8445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8446 choke me
8447 #else
8448 $ac_func();
8449 #endif
8450
8451 ; return 0; }
8452 EOF
8453 if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8454   rm -rf conftest*
8455   eval "ac_cv_func_$ac_func=yes"
8456 else
8457   echo "configure: failed program was:" >&5
8458   cat conftest.$ac_ext >&5
8459   rm -rf conftest*
8460   eval "ac_cv_func_$ac_func=no"
8461 fi
8462 rm -f conftest*
8463 fi
8464
8465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8466   echo "$ac_t""yes" 1>&6
8467     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8468   cat >> confdefs.h <<EOF
8469 #define $ac_tr_func 1
8470 EOF
8471  
8472 else
8473   echo "$ac_t""no" 1>&6
8474 \
8475     ac_wfuncs=no
8476 fi
8477 done
8478
8479   
8480         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8481     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8482     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8483     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8484     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8485     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8486 do
8487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8488 echo "configure:8489: checking for $ac_func" >&5
8489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8490   echo $ac_n "(cached) $ac_c" 1>&6
8491 else
8492   cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8495 /* System header to define __stub macros and hopefully few prototypes,
8496     which can conflict with char $ac_func(); below.  */
8497 #include <assert.h>
8498 /* Override any gcc2 internal prototype to avoid an error.  */
8499 /* We use char because int might match the return type of a gcc2
8500     builtin and then its argument prototype would still apply.  */
8501 char $ac_func();
8502
8503 int main() {
8504
8505 /* The GNU C library defines this for functions which it implements
8506     to always fail with ENOSYS.  Some functions are actually named
8507     something starting with __ and the normal name is an alias.  */
8508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8509 choke me
8510 #else
8511 $ac_func();
8512 #endif
8513
8514 ; return 0; }
8515 EOF
8516 if { (eval echo configure:8517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517   rm -rf conftest*
8518   eval "ac_cv_func_$ac_func=yes"
8519 else
8520   echo "configure: failed program was:" >&5
8521   cat conftest.$ac_ext >&5
8522   rm -rf conftest*
8523   eval "ac_cv_func_$ac_func=no"
8524 fi
8525 rm -f conftest*
8526 fi
8527
8528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8529   echo "$ac_t""yes" 1>&6
8530     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8531   cat >> confdefs.h <<EOF
8532 #define $ac_tr_func 1
8533 EOF
8534  
8535 else
8536   echo "$ac_t""no" 1>&6
8537 \
8538     ac_wfuncs=no
8539 fi
8540 done
8541
8542
8543     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8544 echo "configure:8545: checking for ISO C99 wchar_t support" >&5
8545     if test x"$has_weof" = xyes &&
8546        test x"$has_wchar_minmax" = xyes &&
8547        test x"$ac_wfuncs" = xyes; then
8548       ac_isoC99_wchar_t=yes
8549     else
8550       ac_isoC99_wchar_t=no
8551     fi
8552     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8553   
8554             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8555 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8556 echo "configure:8557: checking for iconv.h" >&5
8557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8558   echo $ac_n "(cached) $ac_c" 1>&6
8559 else
8560   cat > conftest.$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8563 #include <iconv.h>
8564 EOF
8565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8566 { (eval echo configure:8567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8568 if test -z "$ac_err"; then
8569   rm -rf conftest*
8570   eval "ac_cv_header_$ac_safe=yes"
8571 else
8572   echo "$ac_err" >&5
8573   echo "configure: failed program was:" >&5
8574   cat conftest.$ac_ext >&5
8575   rm -rf conftest*
8576   eval "ac_cv_header_$ac_safe=no"
8577 fi
8578 rm -f conftest*
8579 fi
8580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8581   echo "$ac_t""yes" 1>&6
8582   ac_has_iconv_h=yes
8583 else
8584   echo "$ac_t""no" 1>&6
8585 ac_has_iconv_h=no
8586 fi
8587
8588     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8589 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8590 echo "configure:8591: checking for langinfo.h" >&5
8591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8592   echo $ac_n "(cached) $ac_c" 1>&6
8593 else
8594   cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 #include <langinfo.h>
8598 EOF
8599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8600 { (eval echo configure:8601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8602 if test -z "$ac_err"; then
8603   rm -rf conftest*
8604   eval "ac_cv_header_$ac_safe=yes"
8605 else
8606   echo "$ac_err" >&5
8607   echo "configure: failed program was:" >&5
8608   cat conftest.$ac_ext >&5
8609   rm -rf conftest*
8610   eval "ac_cv_header_$ac_safe=no"
8611 fi
8612 rm -f conftest*
8613 fi
8614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8615   echo "$ac_t""yes" 1>&6
8616   ac_has_langinfo_h=yes
8617 else
8618   echo "$ac_t""no" 1>&6
8619 ac_has_langinfo_h=no
8620 fi
8621
8622
8623         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8624 echo "configure:8625: checking for iconv in -liconv" >&5
8625 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8627   echo $ac_n "(cached) $ac_c" 1>&6
8628 else
8629   ac_save_LIBS="$LIBS"
8630 LIBS="-liconv  $LIBS"
8631 cat > conftest.$ac_ext <<EOF
8632 #line 8633 "configure"
8633 #include "confdefs.h"
8634 /* Override any gcc2 internal prototype to avoid an error.  */
8635 /* We use char because int might match the return type of a gcc2
8636     builtin and then its argument prototype would still apply.  */
8637 char iconv();
8638
8639 int main() {
8640 iconv()
8641 ; return 0; }
8642 EOF
8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8644   rm -rf conftest*
8645   eval "ac_cv_lib_$ac_lib_var=yes"
8646 else
8647   echo "configure: failed program was:" >&5
8648   cat conftest.$ac_ext >&5
8649   rm -rf conftest*
8650   eval "ac_cv_lib_$ac_lib_var=no"
8651 fi
8652 rm -f conftest*
8653 LIBS="$ac_save_LIBS"
8654
8655 fi
8656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8657   echo "$ac_t""yes" 1>&6
8658   libiconv="-liconv"
8659 else
8660   echo "$ac_t""no" 1>&6
8661 fi
8662
8663     ac_save_LIBS="$LIBS"
8664     LIBS="$LIBS $libiconv"
8665
8666     for ac_func in iconv_open iconv_close iconv nl_langinfo
8667 do
8668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8669 echo "configure:8670: checking for $ac_func" >&5
8670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8671   echo $ac_n "(cached) $ac_c" 1>&6
8672 else
8673   cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 /* System header to define __stub macros and hopefully few prototypes,
8677     which can conflict with char $ac_func(); below.  */
8678 #include <assert.h>
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 /* We use char because int might match the return type of a gcc2
8681     builtin and then its argument prototype would still apply.  */
8682 char $ac_func();
8683
8684 int main() {
8685
8686 /* The GNU C library defines this for functions which it implements
8687     to always fail with ENOSYS.  Some functions are actually named
8688     something starting with __ and the normal name is an alias.  */
8689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8690 choke me
8691 #else
8692 $ac_func();
8693 #endif
8694
8695 ; return 0; }
8696 EOF
8697 if { (eval echo configure:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698   rm -rf conftest*
8699   eval "ac_cv_func_$ac_func=yes"
8700 else
8701   echo "configure: failed program was:" >&5
8702   cat conftest.$ac_ext >&5
8703   rm -rf conftest*
8704   eval "ac_cv_func_$ac_func=no"
8705 fi
8706 rm -f conftest*
8707 fi
8708
8709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8710   echo "$ac_t""yes" 1>&6
8711     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8712   cat >> confdefs.h <<EOF
8713 #define $ac_tr_func 1
8714 EOF
8715  \
8716     ac_XPG2funcs=yes
8717 else
8718   echo "$ac_t""no" 1>&6
8719 ac_XPG2funcs=no
8720 fi
8721 done
8722
8723   
8724     LIBS="$ac_save_LIBS"
8725
8726     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8727 echo "configure:8728: checking for XPG2 wchar_t support" >&5
8728     if test x"$ac_has_iconv_h" = xyes &&
8729        test x"$ac_has_langinfo_h" = xyes &&
8730        test x"$ac_XPG2funcs" = xyes; then
8731       ac_XPG2_wchar_t=yes
8732     else
8733       ac_XPG2_wchar_t=no
8734     fi
8735     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8736   
8737             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8738 echo "configure:8739: checking for enabled wchar_t specializations" >&5
8739     if test x"$ac_isoC99_wchar_t" = xyes &&
8740        test x"$ac_XPG2_wchar_t" = xyes; then
8741       cat >> confdefs.h <<\EOF
8742 #define _GLIBCPP_USE_WCHAR_T 1
8743 EOF
8744
8745       echo "$ac_t"""yes"" 1>&6
8746     else
8747       echo "$ac_t"""no"" 1>&6
8748     fi
8749   else
8750         echo "configure: warning: wchar_t support disabled." 1>&2
8751   fi
8752
8753       os_include_dir="os/qnx/qnx6.1"
8754       cat >> confdefs.h <<\EOF
8755 #define HAVE_COSF 1
8756 EOF
8757
8758       cat >> confdefs.h <<\EOF
8759 #define HAVE_COSL 1
8760 EOF
8761
8762       cat >> confdefs.h <<\EOF
8763 #define HAVE_COSHF 1
8764 EOF
8765
8766       cat >> confdefs.h <<\EOF
8767 #define HAVE_COSHL 1
8768 EOF
8769
8770       cat >> confdefs.h <<\EOF
8771 #define HAVE_LOGF 1
8772 EOF
8773
8774       cat >> confdefs.h <<\EOF
8775 #define HAVE_LOGL 1
8776 EOF
8777
8778       cat >> confdefs.h <<\EOF
8779 #define HAVE_LOG10F 1
8780 EOF
8781
8782       cat >> confdefs.h <<\EOF
8783 #define HAVE_LOG10L 1
8784 EOF
8785
8786       cat >> confdefs.h <<\EOF
8787 #define HAVE_SINF 1
8788 EOF
8789
8790       cat >> confdefs.h <<\EOF
8791 #define HAVE_SINL 1
8792 EOF
8793
8794       cat >> confdefs.h <<\EOF
8795 #define HAVE_SINHF 1
8796 EOF
8797
8798       cat >> confdefs.h <<\EOF
8799 #define HAVE_SINHL 1
8800 EOF
8801
8802       ;;
8803     *)
8804       os_include_dir="os/newlib"
8805       cat >> confdefs.h <<\EOF
8806 #define HAVE_HYPOT 1
8807 EOF
8808
8809       ;;
8810   esac
8811
8812   case "$target_alias" in
8813     *-mingw32*)
8814       ;;
8815     *-windiss*)
8816       cat >> confdefs.h <<\EOF
8817 #define HAVE_ACOSF 1
8818 EOF
8819
8820       cat >> confdefs.h <<\EOF
8821 #define HAVE_ASINF 1
8822 EOF
8823
8824       cat >> confdefs.h <<\EOF
8825 #define HAVE_ATAN2F 1
8826 EOF
8827
8828       cat >> confdefs.h <<\EOF
8829 #define HAVE_ATANF 1
8830 EOF
8831
8832       cat >> confdefs.h <<\EOF
8833 #define HAVE_CEILF 1
8834 EOF
8835
8836       cat >> confdefs.h <<\EOF
8837 #define HAVE_COPYSIGN 1
8838 EOF
8839
8840       cat >> confdefs.h <<\EOF
8841 #define HAVE_COPYSIGNF 1
8842 EOF
8843
8844       cat >> confdefs.h <<\EOF
8845 #define HAVE_COSF 1
8846 EOF
8847
8848       cat >> confdefs.h <<\EOF
8849 #define HAVE_COSHF 1
8850 EOF
8851
8852       cat >> confdefs.h <<\EOF
8853 #define HAVE_EXPF 1
8854 EOF
8855
8856       cat >> confdefs.h <<\EOF
8857 #define HAVE_FABSF 1
8858 EOF
8859
8860       cat >> confdefs.h <<\EOF
8861 #define HAVE_FLOORF 1
8862 EOF
8863
8864       cat >> confdefs.h <<\EOF
8865 #define HAVE_FMODF 1
8866 EOF
8867
8868       cat >> confdefs.h <<\EOF
8869 #define HAVE_FREXPF 1
8870 EOF
8871
8872       cat >> confdefs.h <<\EOF
8873 #define HAVE_LDEXPF 1
8874 EOF
8875
8876       cat >> confdefs.h <<\EOF
8877 #define HAVE_LOG10F 1
8878 EOF
8879
8880       cat >> confdefs.h <<\EOF
8881 #define HAVE_LOGF 1
8882 EOF
8883
8884       cat >> confdefs.h <<\EOF
8885 #define HAVE_MODFF 1
8886 EOF
8887
8888       cat >> confdefs.h <<\EOF
8889 #define HAVE_POWF 1
8890 EOF
8891
8892       cat >> confdefs.h <<\EOF
8893 #define HAVE_SINF 1
8894 EOF
8895
8896       cat >> confdefs.h <<\EOF
8897 #define HAVE_SINHF 1
8898 EOF
8899
8900       cat >> confdefs.h <<\EOF
8901 #define HAVE_SQRTF 1
8902 EOF
8903
8904       cat >> confdefs.h <<\EOF
8905 #define HAVE_TANF 1
8906 EOF
8907
8908       cat >> confdefs.h <<\EOF
8909 #define HAVE_TANHF 1
8910 EOF
8911
8912       ;;
8913     *)
8914       # GLIBCPP_CHECK_STDLIB_SUPPORT
8915       cat >> confdefs.h <<\EOF
8916 #define HAVE_STRTOF 1
8917 EOF
8918         
8919       cat >> confdefs.h <<\EOF
8920 #define HAVE_STRTOLD 1
8921 EOF
8922         
8923       # AC_FUNC_MMAP
8924       cat >> confdefs.h <<\EOF
8925 #define HAVE_MMAP 1
8926 EOF
8927
8928
8929       cat >> confdefs.h <<\EOF
8930 #define HAVE_ACOSF 1
8931 EOF
8932
8933       cat >> confdefs.h <<\EOF
8934 #define HAVE_ASINF 1
8935 EOF
8936
8937       cat >> confdefs.h <<\EOF
8938 #define HAVE_ATAN2F 1
8939 EOF
8940
8941       cat >> confdefs.h <<\EOF
8942 #define HAVE_ATANF 1
8943 EOF
8944
8945       cat >> confdefs.h <<\EOF
8946 #define HAVE_CEILF 1
8947 EOF
8948
8949       cat >> confdefs.h <<\EOF
8950 #define HAVE_COPYSIGN 1
8951 EOF
8952
8953       cat >> confdefs.h <<\EOF
8954 #define HAVE_COPYSIGNF 1
8955 EOF
8956
8957       cat >> confdefs.h <<\EOF
8958 #define HAVE_COSF 1
8959 EOF
8960
8961       cat >> confdefs.h <<\EOF
8962 #define HAVE_COSHF 1
8963 EOF
8964
8965       cat >> confdefs.h <<\EOF
8966 #define HAVE_EXPF 1
8967 EOF
8968
8969       cat >> confdefs.h <<\EOF
8970 #define HAVE_FABSF 1
8971 EOF
8972
8973       cat >> confdefs.h <<\EOF
8974 #define HAVE_FINITE 1
8975 EOF
8976
8977       cat >> confdefs.h <<\EOF
8978 #define HAVE_FINITEF 1
8979 EOF
8980
8981       cat >> confdefs.h <<\EOF
8982 #define HAVE_FLOORF 1
8983 EOF
8984
8985       cat >> confdefs.h <<\EOF
8986 #define HAVE_FMODF 1
8987 EOF
8988
8989       cat >> confdefs.h <<\EOF
8990 #define HAVE_FREXPF 1
8991 EOF
8992
8993       cat >> confdefs.h <<\EOF
8994 #define HAVE_ISINF 1
8995 EOF
8996
8997       cat >> confdefs.h <<\EOF
8998 #define HAVE_ISINFF 1
8999 EOF
9000
9001       cat >> confdefs.h <<\EOF
9002 #define HAVE_ISNAN 1
9003 EOF
9004
9005       cat >> confdefs.h <<\EOF
9006 #define HAVE_ISNANF 1
9007 EOF
9008
9009       cat >> confdefs.h <<\EOF
9010 #define HAVE_LDEXPF 1
9011 EOF
9012
9013       cat >> confdefs.h <<\EOF
9014 #define HAVE_LOG10F 1
9015 EOF
9016
9017       cat >> confdefs.h <<\EOF
9018 #define HAVE_LOGF 1
9019 EOF
9020
9021       cat >> confdefs.h <<\EOF
9022 #define HAVE_MODFF 1
9023 EOF
9024
9025       cat >> confdefs.h <<\EOF
9026 #define HAVE_POWF 1
9027 EOF
9028
9029       cat >> confdefs.h <<\EOF
9030 #define HAVE_SINF 1
9031 EOF
9032
9033       cat >> confdefs.h <<\EOF
9034 #define HAVE_SINHF 1
9035 EOF
9036
9037       cat >> confdefs.h <<\EOF
9038 #define HAVE_SQRTF 1
9039 EOF
9040
9041       cat >> confdefs.h <<\EOF
9042 #define HAVE_TANF 1
9043 EOF
9044
9045       cat >> confdefs.h <<\EOF
9046 #define HAVE_TANHF 1
9047 EOF
9048
9049       ;;
9050   esac
9051
9052   # At some point, we should differentiate between architectures
9053   # like x86, which have long double versions, and alpha/powerpc/etc.,
9054   # which don't. For the time being, punt.
9055   if test x"long_double_math_on_this_cpu" = x"yes"; then
9056     cat >> confdefs.h <<\EOF
9057 #define HAVE_ACOSL 1
9058 EOF
9059
9060     cat >> confdefs.h <<\EOF
9061 #define HAVE_ASINL 1
9062 EOF
9063
9064     cat >> confdefs.h <<\EOF
9065 #define HAVE_ATAN2L 1
9066 EOF
9067
9068     cat >> confdefs.h <<\EOF
9069 #define HAVE_ATANL 1
9070 EOF
9071
9072     cat >> confdefs.h <<\EOF
9073 #define HAVE_CEILL 1
9074 EOF
9075
9076     cat >> confdefs.h <<\EOF
9077 #define HAVE_COPYSIGNL 1
9078 EOF
9079
9080     cat >> confdefs.h <<\EOF
9081 #define HAVE_COSL 1
9082 EOF
9083
9084     cat >> confdefs.h <<\EOF
9085 #define HAVE_COSHL 1
9086 EOF
9087
9088     cat >> confdefs.h <<\EOF
9089 #define HAVE_EXPL 1
9090 EOF
9091
9092     cat >> confdefs.h <<\EOF
9093 #define HAVE_FABSL 1
9094 EOF
9095
9096     cat >> confdefs.h <<\EOF
9097 #define HAVE_FINITEL 1
9098 EOF
9099
9100     cat >> confdefs.h <<\EOF
9101 #define HAVE_FLOORL 1
9102 EOF
9103
9104     cat >> confdefs.h <<\EOF
9105 #define HAVE_FMODL 1
9106 EOF
9107
9108     cat >> confdefs.h <<\EOF
9109 #define HAVE_FREXPL 1
9110 EOF
9111
9112     cat >> confdefs.h <<\EOF
9113 #define HAVE_ISINFL 1
9114 EOF
9115
9116     cat >> confdefs.h <<\EOF
9117 #define HAVE_ISNANL 1
9118 EOF
9119
9120     cat >> confdefs.h <<\EOF
9121 #define HAVE_LDEXPL 1
9122 EOF
9123
9124     cat >> confdefs.h <<\EOF
9125 #define HAVE_LOG10L 1
9126 EOF
9127
9128     cat >> confdefs.h <<\EOF
9129 #define HAVE_LOGL 1
9130 EOF
9131
9132     cat >> confdefs.h <<\EOF
9133 #define HAVE_MODFL 1
9134 EOF
9135
9136     cat >> confdefs.h <<\EOF
9137 #define HAVE_POWL 1
9138 EOF
9139
9140     cat >> confdefs.h <<\EOF
9141 #define HAVE_SINCOSL 1
9142 EOF
9143
9144     cat >> confdefs.h <<\EOF
9145 #define HAVE_SINL 1
9146 EOF
9147
9148     cat >> confdefs.h <<\EOF
9149 #define HAVE_SINHL 1
9150 EOF
9151
9152     cat >> confdefs.h <<\EOF
9153 #define HAVE_SQRTL 1
9154 EOF
9155
9156     cat >> confdefs.h <<\EOF
9157 #define HAVE_TANL 1
9158 EOF
9159
9160     cat >> confdefs.h <<\EOF
9161 #define HAVE_TANHL 1
9162 EOF
9163
9164   fi
9165
9166 else
9167
9168   # We are being configured natively. We can do more elaborate tests
9169   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9170   # working.
9171   GLIBCPP_IS_CROSS_COMPILING=0
9172   CANADIAN=no
9173
9174   # Check for available headers.
9175   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9176   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9177 do
9178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9180 echo "configure:9181: checking for $ac_hdr" >&5
9181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9182   echo $ac_n "(cached) $ac_c" 1>&6
9183 else
9184   cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 #include <$ac_hdr>
9188 EOF
9189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9190 { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9192 if test -z "$ac_err"; then
9193   rm -rf conftest*
9194   eval "ac_cv_header_$ac_safe=yes"
9195 else
9196   echo "$ac_err" >&5
9197   echo "configure: failed program was:" >&5
9198   cat conftest.$ac_ext >&5
9199   rm -rf conftest*
9200   eval "ac_cv_header_$ac_safe=no"
9201 fi
9202 rm -f conftest*
9203 fi
9204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9205   echo "$ac_t""yes" 1>&6
9206     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9207   cat >> confdefs.h <<EOF
9208 #define $ac_tr_hdr 1
9209 EOF
9210  
9211 else
9212   echo "$ac_t""no" 1>&6
9213 fi
9214 done
9215
9216
9217   
9218   # All these tests are for C++; save the language and the compiler flags.
9219   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9220   # found in GLIBCPP_CONFIGURE.
9221   
9222   ac_ext=C
9223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9224 ac_cpp='$CXXCPP $CPPFLAGS'
9225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9227 cross_compiling=$ac_cv_prog_cxx_cross
9228
9229   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9230   ac_save_CXXFLAGS="$CXXFLAGS"
9231
9232   # Check for maintainer-mode bits.
9233   if test x"$USE_MAINTAINER_MODE" = xno; then
9234     WERROR=''
9235   else
9236     WERROR='-Werror'
9237   fi
9238
9239   # Check for -ffunction-sections -fdata-sections
9240   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9241 echo "configure:9242: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9242   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9243   cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246
9247 int main() {
9248 int foo;
9249   
9250 ; return 0; }
9251 EOF
9252 if { (eval echo configure:9253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9253   rm -rf conftest*
9254   ac_fdsections=yes
9255 else
9256   echo "configure: failed program was:" >&5
9257   cat conftest.$ac_ext >&5
9258   rm -rf conftest*
9259   ac_fdsections=no
9260 fi
9261 rm -f conftest*
9262   if test "$ac_test_CXXFLAGS" = set; then
9263     CXXFLAGS="$ac_save_CXXFLAGS"
9264   else
9265     # this is the suspicious part
9266     CXXFLAGS=''
9267   fi
9268   if test x"$ac_fdsections" = x"yes" &&
9269      test x"$enable_debug" = x"no"; then
9270     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9271   fi
9272   echo "$ac_t""$ac_fdsections" 1>&6
9273
9274   ac_ext=c
9275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9276 ac_cpp='$CPP $CPPFLAGS'
9277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9279 cross_compiling=$ac_cv_prog_cc_cross
9280
9281   
9282   
9283
9284   
9285   # If we're not using GNU ld, then there's no point in even trying these
9286   # tests.  Check for that first.  We should have already tested for gld
9287   # by now (in libtool), but require it now just to be safe...
9288   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9289   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9290   
9291
9292   # The name set by libtool depends on the version of libtool.  Shame on us
9293   # for depending on an impl detail, but c'est la vie.  Older versions used
9294   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9295   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9296   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9297   # set (hence we're using an older libtool), then set it.
9298   if test x${with_gnu_ld+set} != xset; then
9299     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9300       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9301       with_gnu_ld=no
9302     else
9303       with_gnu_ld=$ac_cv_prog_gnu_ld
9304     fi
9305   fi
9306
9307   # Start by getting the version number.  I think the libtool test already
9308   # does some of this, but throws away the result.
9309   
9310   ldver=`$LD --version 2>/dev/null | head -1 | \
9311          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9312   
9313   glibcpp_gnu_ld_version=`echo $ldver | \
9314          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9315
9316   # Set --gc-sections.
9317   if test "$with_gnu_ld" = "notbroken"; then
9318     # GNU ld it is!  Joy and bunny rabbits!
9319
9320     # All these tests are for C++; save the language and the compiler flags.
9321     # Need to do this so that g++ won't try to link in libstdc++
9322     ac_test_CFLAGS="${CFLAGS+set}"
9323     ac_save_CFLAGS="$CFLAGS"
9324     CFLAGS='-x c++  -Wl,--gc-sections'
9325
9326     # Check for -Wl,--gc-sections
9327     # XXX This test is broken at the moment, as symbols required for
9328     # linking are now in libsupc++ (not built yet.....). In addition, 
9329     # this test has cored on solaris in the past. In addition,
9330     # --gc-sections doesn't really work at the moment (keeps on discarding
9331     # used sections, first .eh_frame and now some of the glibc sections for
9332     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9333     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9334 echo "configure:9335: checking for ld that supports -Wl,--gc-sections" >&5
9335     if test "$cross_compiling" = yes; then
9336   ac_sectionLDflags=yes
9337 else
9338   cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9341
9342      int main(void) 
9343      {
9344        try { throw 1; }
9345        catch (...) { };
9346        return 0;
9347      }
9348     
9349 EOF
9350 if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9351 then
9352   ac_sectionLDflags=yes
9353 else
9354   echo "configure: failed program was:" >&5
9355   cat conftest.$ac_ext >&5
9356   rm -fr conftest*
9357   ac_sectionLDflags=no
9358 fi
9359 rm -fr conftest*
9360 fi
9361
9362     if test "$ac_test_CFLAGS" = set; then
9363       CFLAGS="$ac_save_CFLAGS"
9364     else
9365       # this is the suspicious part
9366       CFLAGS=''
9367     fi
9368     if test "$ac_sectionLDflags" = "yes"; then
9369       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9370     fi
9371     echo "$ac_t""$ac_sectionLDflags" 1>&6
9372   fi
9373
9374   # Set linker optimization flags.
9375   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9376     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9377   fi
9378
9379   
9380   
9381
9382   
9383       
9384   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9385 echo "configure:9386: checking for __builtin_abs declaration" >&5
9386   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9387     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9388   echo $ac_n "(cached) $ac_c" 1>&6
9389 else
9390   
9391       
9392       ac_ext=C
9393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9394 ac_cpp='$CXXCPP $CPPFLAGS'
9395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9397 cross_compiling=$ac_cv_prog_cxx_cross
9398
9399       cat > conftest.$ac_ext <<EOF
9400 #line 9401 "configure"
9401 #include "confdefs.h"
9402 #include <math.h>
9403 int main() {
9404  __builtin_abs(0);
9405 ; return 0; }
9406 EOF
9407 if { (eval echo configure:9408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9408   rm -rf conftest*
9409   glibcpp_cv_func___builtin_abs_use=yes
9410 else
9411   echo "configure: failed program was:" >&5
9412   cat conftest.$ac_ext >&5
9413   rm -rf conftest*
9414   glibcpp_cv_func___builtin_abs_use=no
9415 fi
9416 rm -f conftest*
9417       ac_ext=c
9418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9419 ac_cpp='$CPP $CPPFLAGS'
9420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9422 cross_compiling=$ac_cv_prog_cc_cross
9423
9424     
9425 fi
9426
9427   fi
9428   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9429   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9430     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9431 echo "configure:9432: checking for __builtin_abs linkage" >&5
9432     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9433       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9434   echo $ac_n "(cached) $ac_c" 1>&6
9435 else
9436   
9437         cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 #include <math.h>
9441 int main() {
9442  __builtin_abs(0);
9443 ; return 0; }
9444 EOF
9445 if { (eval echo configure:9446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9446   rm -rf conftest*
9447   glibcpp_cv_func___builtin_abs_link=yes
9448 else
9449   echo "configure: failed program was:" >&5
9450   cat conftest.$ac_ext >&5
9451   rm -rf conftest*
9452   glibcpp_cv_func___builtin_abs_link=no
9453 fi
9454 rm -f conftest*
9455       
9456 fi
9457
9458     fi
9459     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9460     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9461       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9462       cat >> confdefs.h <<EOF
9463 #define ${ac_tr_func} 1
9464 EOF
9465
9466     fi
9467   fi
9468
9469   
9470   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9471 echo "configure:9472: checking for __builtin_fabsf declaration" >&5
9472   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9473     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9474   echo $ac_n "(cached) $ac_c" 1>&6
9475 else
9476   
9477       
9478       ac_ext=C
9479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9480 ac_cpp='$CXXCPP $CPPFLAGS'
9481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9483 cross_compiling=$ac_cv_prog_cxx_cross
9484
9485       cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 #include <math.h>
9489 int main() {
9490  __builtin_fabsf(0);
9491 ; return 0; }
9492 EOF
9493 if { (eval echo configure:9494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9494   rm -rf conftest*
9495   glibcpp_cv_func___builtin_fabsf_use=yes
9496 else
9497   echo "configure: failed program was:" >&5
9498   cat conftest.$ac_ext >&5
9499   rm -rf conftest*
9500   glibcpp_cv_func___builtin_fabsf_use=no
9501 fi
9502 rm -f conftest*
9503       ac_ext=c
9504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9505 ac_cpp='$CPP $CPPFLAGS'
9506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9508 cross_compiling=$ac_cv_prog_cc_cross
9509
9510     
9511 fi
9512
9513   fi
9514   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9515   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9516     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9517 echo "configure:9518: checking for __builtin_fabsf linkage" >&5
9518     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9519       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9520   echo $ac_n "(cached) $ac_c" 1>&6
9521 else
9522   
9523         cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure"
9525 #include "confdefs.h"
9526 #include <math.h>
9527 int main() {
9528  __builtin_fabsf(0);
9529 ; return 0; }
9530 EOF
9531 if { (eval echo configure:9532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9532   rm -rf conftest*
9533   glibcpp_cv_func___builtin_fabsf_link=yes
9534 else
9535   echo "configure: failed program was:" >&5
9536   cat conftest.$ac_ext >&5
9537   rm -rf conftest*
9538   glibcpp_cv_func___builtin_fabsf_link=no
9539 fi
9540 rm -f conftest*
9541       
9542 fi
9543
9544     fi
9545     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9546     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9547       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9548       cat >> confdefs.h <<EOF
9549 #define ${ac_tr_func} 1
9550 EOF
9551
9552     fi
9553   fi
9554
9555   
9556   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9557 echo "configure:9558: checking for __builtin_fabs declaration" >&5
9558   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9559     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9560   echo $ac_n "(cached) $ac_c" 1>&6
9561 else
9562   
9563       
9564       ac_ext=C
9565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9566 ac_cpp='$CXXCPP $CPPFLAGS'
9567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9569 cross_compiling=$ac_cv_prog_cxx_cross
9570
9571       cat > conftest.$ac_ext <<EOF
9572 #line 9573 "configure"
9573 #include "confdefs.h"
9574 #include <math.h>
9575 int main() {
9576  __builtin_fabs(0);
9577 ; return 0; }
9578 EOF
9579 if { (eval echo configure:9580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9580   rm -rf conftest*
9581   glibcpp_cv_func___builtin_fabs_use=yes
9582 else
9583   echo "configure: failed program was:" >&5
9584   cat conftest.$ac_ext >&5
9585   rm -rf conftest*
9586   glibcpp_cv_func___builtin_fabs_use=no
9587 fi
9588 rm -f conftest*
9589       ac_ext=c
9590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9591 ac_cpp='$CPP $CPPFLAGS'
9592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9594 cross_compiling=$ac_cv_prog_cc_cross
9595
9596     
9597 fi
9598
9599   fi
9600   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9601   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9602     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9603 echo "configure:9604: checking for __builtin_fabs linkage" >&5
9604     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9605       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9606   echo $ac_n "(cached) $ac_c" 1>&6
9607 else
9608   
9609         cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9612 #include <math.h>
9613 int main() {
9614  __builtin_fabs(0);
9615 ; return 0; }
9616 EOF
9617 if { (eval echo configure:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9618   rm -rf conftest*
9619   glibcpp_cv_func___builtin_fabs_link=yes
9620 else
9621   echo "configure: failed program was:" >&5
9622   cat conftest.$ac_ext >&5
9623   rm -rf conftest*
9624   glibcpp_cv_func___builtin_fabs_link=no
9625 fi
9626 rm -f conftest*
9627       
9628 fi
9629
9630     fi
9631     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9632     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9633       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9634       cat >> confdefs.h <<EOF
9635 #define ${ac_tr_func} 1
9636 EOF
9637
9638     fi
9639   fi
9640
9641   
9642   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9643 echo "configure:9644: checking for __builtin_fabsl declaration" >&5
9644   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9645     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9646   echo $ac_n "(cached) $ac_c" 1>&6
9647 else
9648   
9649       
9650       ac_ext=C
9651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9652 ac_cpp='$CXXCPP $CPPFLAGS'
9653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9655 cross_compiling=$ac_cv_prog_cxx_cross
9656
9657       cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 #include <math.h>
9661 int main() {
9662  __builtin_fabsl(0);
9663 ; return 0; }
9664 EOF
9665 if { (eval echo configure:9666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9666   rm -rf conftest*
9667   glibcpp_cv_func___builtin_fabsl_use=yes
9668 else
9669   echo "configure: failed program was:" >&5
9670   cat conftest.$ac_ext >&5
9671   rm -rf conftest*
9672   glibcpp_cv_func___builtin_fabsl_use=no
9673 fi
9674 rm -f conftest*
9675       ac_ext=c
9676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9677 ac_cpp='$CPP $CPPFLAGS'
9678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9680 cross_compiling=$ac_cv_prog_cc_cross
9681
9682     
9683 fi
9684
9685   fi
9686   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9687   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9688     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9689 echo "configure:9690: checking for __builtin_fabsl linkage" >&5
9690     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9691       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9692   echo $ac_n "(cached) $ac_c" 1>&6
9693 else
9694   
9695         cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 #include <math.h>
9699 int main() {
9700  __builtin_fabsl(0);
9701 ; return 0; }
9702 EOF
9703 if { (eval echo configure:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9704   rm -rf conftest*
9705   glibcpp_cv_func___builtin_fabsl_link=yes
9706 else
9707   echo "configure: failed program was:" >&5
9708   cat conftest.$ac_ext >&5
9709   rm -rf conftest*
9710   glibcpp_cv_func___builtin_fabsl_link=no
9711 fi
9712 rm -f conftest*
9713       
9714 fi
9715
9716     fi
9717     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9718     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9719       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9720       cat >> confdefs.h <<EOF
9721 #define ${ac_tr_func} 1
9722 EOF
9723
9724     fi
9725   fi
9726
9727   
9728   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9729 echo "configure:9730: checking for __builtin_labs declaration" >&5
9730   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9731     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9732   echo $ac_n "(cached) $ac_c" 1>&6
9733 else
9734   
9735       
9736       ac_ext=C
9737 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9738 ac_cpp='$CXXCPP $CPPFLAGS'
9739 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9740 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9741 cross_compiling=$ac_cv_prog_cxx_cross
9742
9743       cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 #include <math.h>
9747 int main() {
9748  __builtin_labs(0);
9749 ; return 0; }
9750 EOF
9751 if { (eval echo configure:9752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9752   rm -rf conftest*
9753   glibcpp_cv_func___builtin_labs_use=yes
9754 else
9755   echo "configure: failed program was:" >&5
9756   cat conftest.$ac_ext >&5
9757   rm -rf conftest*
9758   glibcpp_cv_func___builtin_labs_use=no
9759 fi
9760 rm -f conftest*
9761       ac_ext=c
9762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9763 ac_cpp='$CPP $CPPFLAGS'
9764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9766 cross_compiling=$ac_cv_prog_cc_cross
9767
9768     
9769 fi
9770
9771   fi
9772   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9773   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9774     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9775 echo "configure:9776: checking for __builtin_labs linkage" >&5
9776     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9777       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9778   echo $ac_n "(cached) $ac_c" 1>&6
9779 else
9780   
9781         cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9784 #include <math.h>
9785 int main() {
9786  __builtin_labs(0);
9787 ; return 0; }
9788 EOF
9789 if { (eval echo configure:9790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9790   rm -rf conftest*
9791   glibcpp_cv_func___builtin_labs_link=yes
9792 else
9793   echo "configure: failed program was:" >&5
9794   cat conftest.$ac_ext >&5
9795   rm -rf conftest*
9796   glibcpp_cv_func___builtin_labs_link=no
9797 fi
9798 rm -f conftest*
9799       
9800 fi
9801
9802     fi
9803     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9804     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9805       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9806       cat >> confdefs.h <<EOF
9807 #define ${ac_tr_func} 1
9808 EOF
9809
9810     fi
9811   fi
9812
9813
9814   
9815   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9816 echo "configure:9817: checking for __builtin_sqrtf declaration" >&5
9817   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9818     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9819   echo $ac_n "(cached) $ac_c" 1>&6
9820 else
9821   
9822       
9823       ac_ext=C
9824 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9825 ac_cpp='$CXXCPP $CPPFLAGS'
9826 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9827 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9828 cross_compiling=$ac_cv_prog_cxx_cross
9829
9830       cat > conftest.$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9833 #include <math.h>
9834 int main() {
9835  __builtin_sqrtf(0);
9836 ; return 0; }
9837 EOF
9838 if { (eval echo configure:9839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9839   rm -rf conftest*
9840   glibcpp_cv_func___builtin_sqrtf_use=yes
9841 else
9842   echo "configure: failed program was:" >&5
9843   cat conftest.$ac_ext >&5
9844   rm -rf conftest*
9845   glibcpp_cv_func___builtin_sqrtf_use=no
9846 fi
9847 rm -f conftest*
9848       ac_ext=c
9849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9850 ac_cpp='$CPP $CPPFLAGS'
9851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9853 cross_compiling=$ac_cv_prog_cc_cross
9854
9855     
9856 fi
9857
9858   fi
9859   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9860   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9861     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9862 echo "configure:9863: checking for __builtin_sqrtf linkage" >&5
9863     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9864       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9865   echo $ac_n "(cached) $ac_c" 1>&6
9866 else
9867   
9868         cat > conftest.$ac_ext <<EOF
9869 #line 9870 "configure"
9870 #include "confdefs.h"
9871 #include <math.h>
9872 int main() {
9873  __builtin_sqrtf(0);
9874 ; return 0; }
9875 EOF
9876 if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9877   rm -rf conftest*
9878   glibcpp_cv_func___builtin_sqrtf_link=yes
9879 else
9880   echo "configure: failed program was:" >&5
9881   cat conftest.$ac_ext >&5
9882   rm -rf conftest*
9883   glibcpp_cv_func___builtin_sqrtf_link=no
9884 fi
9885 rm -f conftest*
9886       
9887 fi
9888
9889     fi
9890     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9891     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9892       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9893       cat >> confdefs.h <<EOF
9894 #define ${ac_tr_func} 1
9895 EOF
9896
9897     fi
9898   fi
9899
9900   
9901   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9902 echo "configure:9903: checking for __builtin_sqrt declaration" >&5
9903   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9904     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9905   echo $ac_n "(cached) $ac_c" 1>&6
9906 else
9907   
9908       
9909       ac_ext=C
9910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9911 ac_cpp='$CXXCPP $CPPFLAGS'
9912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9914 cross_compiling=$ac_cv_prog_cxx_cross
9915
9916       cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 #include <math.h>
9920 int main() {
9921  __builtin_sqrt(0);
9922 ; return 0; }
9923 EOF
9924 if { (eval echo configure:9925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9925   rm -rf conftest*
9926   glibcpp_cv_func___builtin_sqrt_use=yes
9927 else
9928   echo "configure: failed program was:" >&5
9929   cat conftest.$ac_ext >&5
9930   rm -rf conftest*
9931   glibcpp_cv_func___builtin_sqrt_use=no
9932 fi
9933 rm -f conftest*
9934       ac_ext=c
9935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9936 ac_cpp='$CPP $CPPFLAGS'
9937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9939 cross_compiling=$ac_cv_prog_cc_cross
9940
9941     
9942 fi
9943
9944   fi
9945   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9946   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9947     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9948 echo "configure:9949: checking for __builtin_sqrt linkage" >&5
9949     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9950       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9951   echo $ac_n "(cached) $ac_c" 1>&6
9952 else
9953   
9954         cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 #include <math.h>
9958 int main() {
9959  __builtin_sqrt(0);
9960 ; return 0; }
9961 EOF
9962 if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963   rm -rf conftest*
9964   glibcpp_cv_func___builtin_sqrt_link=yes
9965 else
9966   echo "configure: failed program was:" >&5
9967   cat conftest.$ac_ext >&5
9968   rm -rf conftest*
9969   glibcpp_cv_func___builtin_sqrt_link=no
9970 fi
9971 rm -f conftest*
9972       
9973 fi
9974
9975     fi
9976     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9977     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9978       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9979       cat >> confdefs.h <<EOF
9980 #define ${ac_tr_func} 1
9981 EOF
9982
9983     fi
9984   fi
9985
9986   
9987   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9988 echo "configure:9989: checking for __builtin_sqrtl declaration" >&5
9989   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9990     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9991   echo $ac_n "(cached) $ac_c" 1>&6
9992 else
9993   
9994       
9995       ac_ext=C
9996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9997 ac_cpp='$CXXCPP $CPPFLAGS'
9998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10000 cross_compiling=$ac_cv_prog_cxx_cross
10001
10002       cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10005 #include <math.h>
10006 int main() {
10007  __builtin_sqrtl(0);
10008 ; return 0; }
10009 EOF
10010 if { (eval echo configure:10011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10011   rm -rf conftest*
10012   glibcpp_cv_func___builtin_sqrtl_use=yes
10013 else
10014   echo "configure: failed program was:" >&5
10015   cat conftest.$ac_ext >&5
10016   rm -rf conftest*
10017   glibcpp_cv_func___builtin_sqrtl_use=no
10018 fi
10019 rm -f conftest*
10020       ac_ext=c
10021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10022 ac_cpp='$CPP $CPPFLAGS'
10023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10025 cross_compiling=$ac_cv_prog_cc_cross
10026
10027     
10028 fi
10029
10030   fi
10031   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10032   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10033     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10034 echo "configure:10035: checking for __builtin_sqrtl linkage" >&5
10035     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10036       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10037   echo $ac_n "(cached) $ac_c" 1>&6
10038 else
10039   
10040         cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 #include <math.h>
10044 int main() {
10045  __builtin_sqrtl(0);
10046 ; return 0; }
10047 EOF
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049   rm -rf conftest*
10050   glibcpp_cv_func___builtin_sqrtl_link=yes
10051 else
10052   echo "configure: failed program was:" >&5
10053   cat conftest.$ac_ext >&5
10054   rm -rf conftest*
10055   glibcpp_cv_func___builtin_sqrtl_link=no
10056 fi
10057 rm -f conftest*
10058       
10059 fi
10060
10061     fi
10062     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10063     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10064       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10065       cat >> confdefs.h <<EOF
10066 #define ${ac_tr_func} 1
10067 EOF
10068
10069     fi
10070   fi
10071
10072
10073   
10074   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10075 echo "configure:10076: checking for __builtin_sinf declaration" >&5
10076   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10077     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10078   echo $ac_n "(cached) $ac_c" 1>&6
10079 else
10080   
10081       
10082       ac_ext=C
10083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10084 ac_cpp='$CXXCPP $CPPFLAGS'
10085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10087 cross_compiling=$ac_cv_prog_cxx_cross
10088
10089       cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 #include <math.h>
10093 int main() {
10094  __builtin_sinf(0);
10095 ; return 0; }
10096 EOF
10097 if { (eval echo configure:10098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098   rm -rf conftest*
10099   glibcpp_cv_func___builtin_sinf_use=yes
10100 else
10101   echo "configure: failed program was:" >&5
10102   cat conftest.$ac_ext >&5
10103   rm -rf conftest*
10104   glibcpp_cv_func___builtin_sinf_use=no
10105 fi
10106 rm -f conftest*
10107       ac_ext=c
10108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10112 cross_compiling=$ac_cv_prog_cc_cross
10113
10114     
10115 fi
10116
10117   fi
10118   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10119   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10120     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10121 echo "configure:10122: checking for __builtin_sinf linkage" >&5
10122     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10123       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10124   echo $ac_n "(cached) $ac_c" 1>&6
10125 else
10126   
10127         cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10130 #include <math.h>
10131 int main() {
10132  __builtin_sinf(0);
10133 ; return 0; }
10134 EOF
10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10136   rm -rf conftest*
10137   glibcpp_cv_func___builtin_sinf_link=yes
10138 else
10139   echo "configure: failed program was:" >&5
10140   cat conftest.$ac_ext >&5
10141   rm -rf conftest*
10142   glibcpp_cv_func___builtin_sinf_link=no
10143 fi
10144 rm -f conftest*
10145       
10146 fi
10147
10148     fi
10149     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10150     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10151       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10152       cat >> confdefs.h <<EOF
10153 #define ${ac_tr_func} 1
10154 EOF
10155
10156     fi
10157   fi
10158
10159   
10160   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10161 echo "configure:10162: checking for __builtin_sin declaration" >&5
10162   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10163     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10164   echo $ac_n "(cached) $ac_c" 1>&6
10165 else
10166   
10167       
10168       ac_ext=C
10169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10170 ac_cpp='$CXXCPP $CPPFLAGS'
10171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10173 cross_compiling=$ac_cv_prog_cxx_cross
10174
10175       cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 #include <math.h>
10179 int main() {
10180  __builtin_sin(0);
10181 ; return 0; }
10182 EOF
10183 if { (eval echo configure:10184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10184   rm -rf conftest*
10185   glibcpp_cv_func___builtin_sin_use=yes
10186 else
10187   echo "configure: failed program was:" >&5
10188   cat conftest.$ac_ext >&5
10189   rm -rf conftest*
10190   glibcpp_cv_func___builtin_sin_use=no
10191 fi
10192 rm -f conftest*
10193       ac_ext=c
10194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10195 ac_cpp='$CPP $CPPFLAGS'
10196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10198 cross_compiling=$ac_cv_prog_cc_cross
10199
10200     
10201 fi
10202
10203   fi
10204   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10205   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10206     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10207 echo "configure:10208: checking for __builtin_sin linkage" >&5
10208     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10209       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10210   echo $ac_n "(cached) $ac_c" 1>&6
10211 else
10212   
10213         cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10216 #include <math.h>
10217 int main() {
10218  __builtin_sin(0);
10219 ; return 0; }
10220 EOF
10221 if { (eval echo configure:10222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10222   rm -rf conftest*
10223   glibcpp_cv_func___builtin_sin_link=yes
10224 else
10225   echo "configure: failed program was:" >&5
10226   cat conftest.$ac_ext >&5
10227   rm -rf conftest*
10228   glibcpp_cv_func___builtin_sin_link=no
10229 fi
10230 rm -f conftest*
10231       
10232 fi
10233
10234     fi
10235     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10236     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10237       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10238       cat >> confdefs.h <<EOF
10239 #define ${ac_tr_func} 1
10240 EOF
10241
10242     fi
10243   fi
10244
10245   
10246   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10247 echo "configure:10248: checking for __builtin_sinl declaration" >&5
10248   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10249     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10250   echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252   
10253       
10254       ac_ext=C
10255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10256 ac_cpp='$CXXCPP $CPPFLAGS'
10257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10259 cross_compiling=$ac_cv_prog_cxx_cross
10260
10261       cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 #include <math.h>
10265 int main() {
10266  __builtin_sinl(0);
10267 ; return 0; }
10268 EOF
10269 if { (eval echo configure:10270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10270   rm -rf conftest*
10271   glibcpp_cv_func___builtin_sinl_use=yes
10272 else
10273   echo "configure: failed program was:" >&5
10274   cat conftest.$ac_ext >&5
10275   rm -rf conftest*
10276   glibcpp_cv_func___builtin_sinl_use=no
10277 fi
10278 rm -f conftest*
10279       ac_ext=c
10280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10281 ac_cpp='$CPP $CPPFLAGS'
10282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10284 cross_compiling=$ac_cv_prog_cc_cross
10285
10286     
10287 fi
10288
10289   fi
10290   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10291   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10292     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10293 echo "configure:10294: checking for __builtin_sinl linkage" >&5
10294     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10295       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10296   echo $ac_n "(cached) $ac_c" 1>&6
10297 else
10298   
10299         cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10302 #include <math.h>
10303 int main() {
10304  __builtin_sinl(0);
10305 ; return 0; }
10306 EOF
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10308   rm -rf conftest*
10309   glibcpp_cv_func___builtin_sinl_link=yes
10310 else
10311   echo "configure: failed program was:" >&5
10312   cat conftest.$ac_ext >&5
10313   rm -rf conftest*
10314   glibcpp_cv_func___builtin_sinl_link=no
10315 fi
10316 rm -f conftest*
10317       
10318 fi
10319
10320     fi
10321     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10322     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10323       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10324       cat >> confdefs.h <<EOF
10325 #define ${ac_tr_func} 1
10326 EOF
10327
10328     fi
10329   fi
10330
10331
10332   
10333   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10334 echo "configure:10335: checking for __builtin_cosf declaration" >&5
10335   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10336     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10337   echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10339   
10340       
10341       ac_ext=C
10342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10343 ac_cpp='$CXXCPP $CPPFLAGS'
10344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10346 cross_compiling=$ac_cv_prog_cxx_cross
10347
10348       cat > conftest.$ac_ext <<EOF
10349 #line 10350 "configure"
10350 #include "confdefs.h"
10351 #include <math.h>
10352 int main() {
10353  __builtin_cosf(0);
10354 ; return 0; }
10355 EOF
10356 if { (eval echo configure:10357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10357   rm -rf conftest*
10358   glibcpp_cv_func___builtin_cosf_use=yes
10359 else
10360   echo "configure: failed program was:" >&5
10361   cat conftest.$ac_ext >&5
10362   rm -rf conftest*
10363   glibcpp_cv_func___builtin_cosf_use=no
10364 fi
10365 rm -f conftest*
10366       ac_ext=c
10367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10368 ac_cpp='$CPP $CPPFLAGS'
10369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10371 cross_compiling=$ac_cv_prog_cc_cross
10372
10373     
10374 fi
10375
10376   fi
10377   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10378   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10379     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10380 echo "configure:10381: checking for __builtin_cosf linkage" >&5
10381     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10382       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10383   echo $ac_n "(cached) $ac_c" 1>&6
10384 else
10385   
10386         cat > conftest.$ac_ext <<EOF
10387 #line 10388 "configure"
10388 #include "confdefs.h"
10389 #include <math.h>
10390 int main() {
10391  __builtin_cosf(0);
10392 ; return 0; }
10393 EOF
10394 if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10395   rm -rf conftest*
10396   glibcpp_cv_func___builtin_cosf_link=yes
10397 else
10398   echo "configure: failed program was:" >&5
10399   cat conftest.$ac_ext >&5
10400   rm -rf conftest*
10401   glibcpp_cv_func___builtin_cosf_link=no
10402 fi
10403 rm -f conftest*
10404       
10405 fi
10406
10407     fi
10408     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10409     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10410       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10411       cat >> confdefs.h <<EOF
10412 #define ${ac_tr_func} 1
10413 EOF
10414
10415     fi
10416   fi
10417
10418   
10419   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10420 echo "configure:10421: checking for __builtin_cos declaration" >&5
10421   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10422     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10423   echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10425   
10426       
10427       ac_ext=C
10428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10429 ac_cpp='$CXXCPP $CPPFLAGS'
10430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10432 cross_compiling=$ac_cv_prog_cxx_cross
10433
10434       cat > conftest.$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 #include <math.h>
10438 int main() {
10439  __builtin_cos(0);
10440 ; return 0; }
10441 EOF
10442 if { (eval echo configure:10443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10443   rm -rf conftest*
10444   glibcpp_cv_func___builtin_cos_use=yes
10445 else
10446   echo "configure: failed program was:" >&5
10447   cat conftest.$ac_ext >&5
10448   rm -rf conftest*
10449   glibcpp_cv_func___builtin_cos_use=no
10450 fi
10451 rm -f conftest*
10452       ac_ext=c
10453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10454 ac_cpp='$CPP $CPPFLAGS'
10455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10457 cross_compiling=$ac_cv_prog_cc_cross
10458
10459     
10460 fi
10461
10462   fi
10463   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10464   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10465     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10466 echo "configure:10467: checking for __builtin_cos linkage" >&5
10467     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10468       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10469   echo $ac_n "(cached) $ac_c" 1>&6
10470 else
10471   
10472         cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10475 #include <math.h>
10476 int main() {
10477  __builtin_cos(0);
10478 ; return 0; }
10479 EOF
10480 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10481   rm -rf conftest*
10482   glibcpp_cv_func___builtin_cos_link=yes
10483 else
10484   echo "configure: failed program was:" >&5
10485   cat conftest.$ac_ext >&5
10486   rm -rf conftest*
10487   glibcpp_cv_func___builtin_cos_link=no
10488 fi
10489 rm -f conftest*
10490       
10491 fi
10492
10493     fi
10494     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10495     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10496       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10497       cat >> confdefs.h <<EOF
10498 #define ${ac_tr_func} 1
10499 EOF
10500
10501     fi
10502   fi
10503
10504   
10505   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10506 echo "configure:10507: checking for __builtin_cosl declaration" >&5
10507   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10508     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10509   echo $ac_n "(cached) $ac_c" 1>&6
10510 else
10511   
10512       
10513       ac_ext=C
10514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10515 ac_cpp='$CXXCPP $CPPFLAGS'
10516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10518 cross_compiling=$ac_cv_prog_cxx_cross
10519
10520       cat > conftest.$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10523 #include <math.h>
10524 int main() {
10525  __builtin_cosl(0);
10526 ; return 0; }
10527 EOF
10528 if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10529   rm -rf conftest*
10530   glibcpp_cv_func___builtin_cosl_use=yes
10531 else
10532   echo "configure: failed program was:" >&5
10533   cat conftest.$ac_ext >&5
10534   rm -rf conftest*
10535   glibcpp_cv_func___builtin_cosl_use=no
10536 fi
10537 rm -f conftest*
10538       ac_ext=c
10539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10540 ac_cpp='$CPP $CPPFLAGS'
10541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10543 cross_compiling=$ac_cv_prog_cc_cross
10544
10545     
10546 fi
10547
10548   fi
10549   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10550   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10551     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10552 echo "configure:10553: checking for __builtin_cosl linkage" >&5
10553     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10554       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10555   echo $ac_n "(cached) $ac_c" 1>&6
10556 else
10557   
10558         cat > conftest.$ac_ext <<EOF
10559 #line 10560 "configure"
10560 #include "confdefs.h"
10561 #include <math.h>
10562 int main() {
10563  __builtin_cosl(0);
10564 ; return 0; }
10565 EOF
10566 if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10567   rm -rf conftest*
10568   glibcpp_cv_func___builtin_cosl_link=yes
10569 else
10570   echo "configure: failed program was:" >&5
10571   cat conftest.$ac_ext >&5
10572   rm -rf conftest*
10573   glibcpp_cv_func___builtin_cosl_link=no
10574 fi
10575 rm -f conftest*
10576       
10577 fi
10578
10579     fi
10580     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10581     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10582       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10583       cat >> confdefs.h <<EOF
10584 #define ${ac_tr_func} 1
10585 EOF
10586
10587     fi
10588   fi
10589
10590
10591               dummyvar=no
10592   if test x$dummyvar = x"yes"; then
10593     cat >> confdefs.h <<\EOF
10594 #define HAVE___BUILTIN_ABS 1
10595 EOF
10596
10597     cat >> confdefs.h <<\EOF
10598 #define HAVE___BUILTIN_LABS 1
10599 EOF
10600
10601     cat >> confdefs.h <<\EOF
10602 #define HAVE___BUILTIN_COS 1
10603 EOF
10604
10605     cat >> confdefs.h <<\EOF
10606 #define HAVE___BUILTIN_COSF 1
10607 EOF
10608
10609     cat >> confdefs.h <<\EOF
10610 #define HAVE___BUILTIN_COSL 1
10611 EOF
10612
10613     cat >> confdefs.h <<\EOF
10614 #define HAVE___BUILTIN_FABS 1
10615 EOF
10616
10617     cat >> confdefs.h <<\EOF
10618 #define HAVE___BUILTIN_FABSF 1
10619 EOF
10620
10621     cat >> confdefs.h <<\EOF
10622 #define HAVE___BUILTIN_FABSL 1
10623 EOF
10624
10625     cat >> confdefs.h <<\EOF
10626 #define HAVE___BUILTIN_SIN 1
10627 EOF
10628
10629     cat >> confdefs.h <<\EOF
10630 #define HAVE___BUILTIN_SINF 1
10631 EOF
10632
10633     cat >> confdefs.h <<\EOF
10634 #define HAVE___BUILTIN_SINL 1
10635 EOF
10636
10637     cat >> confdefs.h <<\EOF
10638 #define HAVE___BUILTIN_SQRT 1
10639 EOF
10640
10641     cat >> confdefs.h <<\EOF
10642 #define HAVE___BUILTIN_SQRTF 1
10643 EOF
10644
10645     cat >> confdefs.h <<\EOF
10646 #define HAVE___BUILTIN_SQRTL 1
10647 EOF
10648
10649   fi
10650
10651   
10652   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10653   ac_save_CXXFLAGS="$CXXFLAGS"
10654   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10655
10656     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10657 echo "configure:10658: checking for sin in -lm" >&5
10658 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10660   echo $ac_n "(cached) $ac_c" 1>&6
10661 else
10662   ac_save_LIBS="$LIBS"
10663 LIBS="-lm  $LIBS"
10664 cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10667 /* Override any gcc2 internal prototype to avoid an error.  */
10668 /* We use char because int might match the return type of a gcc2
10669     builtin and then its argument prototype would still apply.  */
10670 char sin();
10671
10672 int main() {
10673 sin()
10674 ; return 0; }
10675 EOF
10676 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10677   rm -rf conftest*
10678   eval "ac_cv_lib_$ac_lib_var=yes"
10679 else
10680   echo "configure: failed program was:" >&5
10681   cat conftest.$ac_ext >&5
10682   rm -rf conftest*
10683   eval "ac_cv_lib_$ac_lib_var=no"
10684 fi
10685 rm -f conftest*
10686 LIBS="$ac_save_LIBS"
10687
10688 fi
10689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10690   echo "$ac_t""yes" 1>&6
10691   libm="-lm"
10692 else
10693   echo "$ac_t""no" 1>&6
10694 fi
10695
10696   ac_save_LIBS="$LIBS"
10697   LIBS="$LIBS $libm"
10698
10699     
10700   
10701   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10702 echo "configure:10703: checking for isinf declaration" >&5
10703   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10704     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10705   echo $ac_n "(cached) $ac_c" 1>&6
10706 else
10707   
10708       
10709       ac_ext=C
10710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10711 ac_cpp='$CXXCPP $CPPFLAGS'
10712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10714 cross_compiling=$ac_cv_prog_cxx_cross
10715
10716       cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10719 #include <math.h>
10720                       #ifdef HAVE_IEEEFP_H
10721                       #include <ieeefp.h>
10722                       #endif
10723                      
10724 int main() {
10725  isinf(0);
10726 ; return 0; }
10727 EOF
10728 if { (eval echo configure:10729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10729   rm -rf conftest*
10730   glibcpp_cv_func_isinf_use=yes
10731 else
10732   echo "configure: failed program was:" >&5
10733   cat conftest.$ac_ext >&5
10734   rm -rf conftest*
10735   glibcpp_cv_func_isinf_use=no
10736 fi
10737 rm -f conftest*
10738       ac_ext=c
10739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10740 ac_cpp='$CPP $CPPFLAGS'
10741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10743 cross_compiling=$ac_cv_prog_cc_cross
10744
10745     
10746 fi
10747
10748   fi
10749   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10750
10751   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10752     for ac_func in isinf
10753 do
10754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10755 echo "configure:10756: checking for $ac_func" >&5
10756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10757   echo $ac_n "(cached) $ac_c" 1>&6
10758 else
10759   cat > conftest.$ac_ext <<EOF
10760 #line 10761 "configure"
10761 #include "confdefs.h"
10762 /* System header to define __stub macros and hopefully few prototypes,
10763     which can conflict with char $ac_func(); below.  */
10764 #include <assert.h>
10765 /* Override any gcc2 internal prototype to avoid an error.  */
10766 /* We use char because int might match the return type of a gcc2
10767     builtin and then its argument prototype would still apply.  */
10768 char $ac_func();
10769
10770 int main() {
10771
10772 /* The GNU C library defines this for functions which it implements
10773     to always fail with ENOSYS.  Some functions are actually named
10774     something starting with __ and the normal name is an alias.  */
10775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10776 choke me
10777 #else
10778 $ac_func();
10779 #endif
10780
10781 ; return 0; }
10782 EOF
10783 if { (eval echo configure:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10784   rm -rf conftest*
10785   eval "ac_cv_func_$ac_func=yes"
10786 else
10787   echo "configure: failed program was:" >&5
10788   cat conftest.$ac_ext >&5
10789   rm -rf conftest*
10790   eval "ac_cv_func_$ac_func=no"
10791 fi
10792 rm -f conftest*
10793 fi
10794
10795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10796   echo "$ac_t""yes" 1>&6
10797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10798   cat >> confdefs.h <<EOF
10799 #define $ac_tr_func 1
10800 EOF
10801  
10802 else
10803   echo "$ac_t""no" 1>&6
10804 fi
10805 done
10806     
10807   else
10808     
10809   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10810 echo "configure:10811: checking for _isinf declaration" >&5
10811   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10812     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10813   echo $ac_n "(cached) $ac_c" 1>&6
10814 else
10815   
10816       
10817       ac_ext=C
10818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10819 ac_cpp='$CXXCPP $CPPFLAGS'
10820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10822 cross_compiling=$ac_cv_prog_cxx_cross
10823
10824       cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 #include <math.h>
10828                       #ifdef HAVE_IEEEFP_H
10829                       #include <ieeefp.h>
10830                       #endif
10831                      
10832 int main() {
10833  _isinf(0);
10834 ; return 0; }
10835 EOF
10836 if { (eval echo configure:10837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10837   rm -rf conftest*
10838   glibcpp_cv_func__isinf_use=yes
10839 else
10840   echo "configure: failed program was:" >&5
10841   cat conftest.$ac_ext >&5
10842   rm -rf conftest*
10843   glibcpp_cv_func__isinf_use=no
10844 fi
10845 rm -f conftest*
10846       ac_ext=c
10847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10848 ac_cpp='$CPP $CPPFLAGS'
10849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10851 cross_compiling=$ac_cv_prog_cc_cross
10852
10853     
10854 fi
10855
10856   fi
10857   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10858
10859     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10860       for ac_func in _isinf
10861 do
10862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10863 echo "configure:10864: checking for $ac_func" >&5
10864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10865   echo $ac_n "(cached) $ac_c" 1>&6
10866 else
10867   cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 /* System header to define __stub macros and hopefully few prototypes,
10871     which can conflict with char $ac_func(); below.  */
10872 #include <assert.h>
10873 /* Override any gcc2 internal prototype to avoid an error.  */
10874 /* We use char because int might match the return type of a gcc2
10875     builtin and then its argument prototype would still apply.  */
10876 char $ac_func();
10877
10878 int main() {
10879
10880 /* The GNU C library defines this for functions which it implements
10881     to always fail with ENOSYS.  Some functions are actually named
10882     something starting with __ and the normal name is an alias.  */
10883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10884 choke me
10885 #else
10886 $ac_func();
10887 #endif
10888
10889 ; return 0; }
10890 EOF
10891 if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10892   rm -rf conftest*
10893   eval "ac_cv_func_$ac_func=yes"
10894 else
10895   echo "configure: failed program was:" >&5
10896   cat conftest.$ac_ext >&5
10897   rm -rf conftest*
10898   eval "ac_cv_func_$ac_func=no"
10899 fi
10900 rm -f conftest*
10901 fi
10902
10903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10904   echo "$ac_t""yes" 1>&6
10905     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10906   cat >> confdefs.h <<EOF
10907 #define $ac_tr_func 1
10908 EOF
10909  
10910 else
10911   echo "$ac_t""no" 1>&6
10912 fi
10913 done
10914     
10915     fi
10916   fi
10917
10918   
10919   
10920   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10921 echo "configure:10922: checking for isnan declaration" >&5
10922   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10923     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10924   echo $ac_n "(cached) $ac_c" 1>&6
10925 else
10926   
10927       
10928       ac_ext=C
10929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10930 ac_cpp='$CXXCPP $CPPFLAGS'
10931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10933 cross_compiling=$ac_cv_prog_cxx_cross
10934
10935       cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 #include <math.h>
10939                       #ifdef HAVE_IEEEFP_H
10940                       #include <ieeefp.h>
10941                       #endif
10942                      
10943 int main() {
10944  isnan(0);
10945 ; return 0; }
10946 EOF
10947 if { (eval echo configure:10948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10948   rm -rf conftest*
10949   glibcpp_cv_func_isnan_use=yes
10950 else
10951   echo "configure: failed program was:" >&5
10952   cat conftest.$ac_ext >&5
10953   rm -rf conftest*
10954   glibcpp_cv_func_isnan_use=no
10955 fi
10956 rm -f conftest*
10957       ac_ext=c
10958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10962 cross_compiling=$ac_cv_prog_cc_cross
10963
10964     
10965 fi
10966
10967   fi
10968   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10969
10970   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10971     for ac_func in isnan
10972 do
10973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10974 echo "configure:10975: checking for $ac_func" >&5
10975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10976   echo $ac_n "(cached) $ac_c" 1>&6
10977 else
10978   cat > conftest.$ac_ext <<EOF
10979 #line 10980 "configure"
10980 #include "confdefs.h"
10981 /* System header to define __stub macros and hopefully few prototypes,
10982     which can conflict with char $ac_func(); below.  */
10983 #include <assert.h>
10984 /* Override any gcc2 internal prototype to avoid an error.  */
10985 /* We use char because int might match the return type of a gcc2
10986     builtin and then its argument prototype would still apply.  */
10987 char $ac_func();
10988
10989 int main() {
10990
10991 /* The GNU C library defines this for functions which it implements
10992     to always fail with ENOSYS.  Some functions are actually named
10993     something starting with __ and the normal name is an alias.  */
10994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10995 choke me
10996 #else
10997 $ac_func();
10998 #endif
10999
11000 ; return 0; }
11001 EOF
11002 if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11003   rm -rf conftest*
11004   eval "ac_cv_func_$ac_func=yes"
11005 else
11006   echo "configure: failed program was:" >&5
11007   cat conftest.$ac_ext >&5
11008   rm -rf conftest*
11009   eval "ac_cv_func_$ac_func=no"
11010 fi
11011 rm -f conftest*
11012 fi
11013
11014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11015   echo "$ac_t""yes" 1>&6
11016     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11017   cat >> confdefs.h <<EOF
11018 #define $ac_tr_func 1
11019 EOF
11020  
11021 else
11022   echo "$ac_t""no" 1>&6
11023 fi
11024 done
11025     
11026   else
11027     
11028   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11029 echo "configure:11030: checking for _isnan declaration" >&5
11030   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11031     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11032   echo $ac_n "(cached) $ac_c" 1>&6
11033 else
11034   
11035       
11036       ac_ext=C
11037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11038 ac_cpp='$CXXCPP $CPPFLAGS'
11039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11041 cross_compiling=$ac_cv_prog_cxx_cross
11042
11043       cat > conftest.$ac_ext <<EOF
11044 #line 11045 "configure"
11045 #include "confdefs.h"
11046 #include <math.h>
11047                       #ifdef HAVE_IEEEFP_H
11048                       #include <ieeefp.h>
11049                       #endif
11050                      
11051 int main() {
11052  _isnan(0);
11053 ; return 0; }
11054 EOF
11055 if { (eval echo configure:11056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11056   rm -rf conftest*
11057   glibcpp_cv_func__isnan_use=yes
11058 else
11059   echo "configure: failed program was:" >&5
11060   cat conftest.$ac_ext >&5
11061   rm -rf conftest*
11062   glibcpp_cv_func__isnan_use=no
11063 fi
11064 rm -f conftest*
11065       ac_ext=c
11066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11067 ac_cpp='$CPP $CPPFLAGS'
11068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11070 cross_compiling=$ac_cv_prog_cc_cross
11071
11072     
11073 fi
11074
11075   fi
11076   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11077
11078     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11079       for ac_func in _isnan
11080 do
11081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11082 echo "configure:11083: checking for $ac_func" >&5
11083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11084   echo $ac_n "(cached) $ac_c" 1>&6
11085 else
11086   cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 /* System header to define __stub macros and hopefully few prototypes,
11090     which can conflict with char $ac_func(); below.  */
11091 #include <assert.h>
11092 /* Override any gcc2 internal prototype to avoid an error.  */
11093 /* We use char because int might match the return type of a gcc2
11094     builtin and then its argument prototype would still apply.  */
11095 char $ac_func();
11096
11097 int main() {
11098
11099 /* The GNU C library defines this for functions which it implements
11100     to always fail with ENOSYS.  Some functions are actually named
11101     something starting with __ and the normal name is an alias.  */
11102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11103 choke me
11104 #else
11105 $ac_func();
11106 #endif
11107
11108 ; return 0; }
11109 EOF
11110 if { (eval echo configure:11111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11111   rm -rf conftest*
11112   eval "ac_cv_func_$ac_func=yes"
11113 else
11114   echo "configure: failed program was:" >&5
11115   cat conftest.$ac_ext >&5
11116   rm -rf conftest*
11117   eval "ac_cv_func_$ac_func=no"
11118 fi
11119 rm -f conftest*
11120 fi
11121
11122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11123   echo "$ac_t""yes" 1>&6
11124     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11125   cat >> confdefs.h <<EOF
11126 #define $ac_tr_func 1
11127 EOF
11128  
11129 else
11130   echo "$ac_t""no" 1>&6
11131 fi
11132 done
11133     
11134     fi
11135   fi
11136
11137   
11138   
11139   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11140 echo "configure:11141: checking for finite declaration" >&5
11141   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11142     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11143   echo $ac_n "(cached) $ac_c" 1>&6
11144 else
11145   
11146       
11147       ac_ext=C
11148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11149 ac_cpp='$CXXCPP $CPPFLAGS'
11150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11152 cross_compiling=$ac_cv_prog_cxx_cross
11153
11154       cat > conftest.$ac_ext <<EOF
11155 #line 11156 "configure"
11156 #include "confdefs.h"
11157 #include <math.h>
11158                       #ifdef HAVE_IEEEFP_H
11159                       #include <ieeefp.h>
11160                       #endif
11161                      
11162 int main() {
11163  finite(0);
11164 ; return 0; }
11165 EOF
11166 if { (eval echo configure:11167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11167   rm -rf conftest*
11168   glibcpp_cv_func_finite_use=yes
11169 else
11170   echo "configure: failed program was:" >&5
11171   cat conftest.$ac_ext >&5
11172   rm -rf conftest*
11173   glibcpp_cv_func_finite_use=no
11174 fi
11175 rm -f conftest*
11176       ac_ext=c
11177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11178 ac_cpp='$CPP $CPPFLAGS'
11179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11181 cross_compiling=$ac_cv_prog_cc_cross
11182
11183     
11184 fi
11185
11186   fi
11187   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11188
11189   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11190     for ac_func in finite
11191 do
11192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11193 echo "configure:11194: checking for $ac_func" >&5
11194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11195   echo $ac_n "(cached) $ac_c" 1>&6
11196 else
11197   cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11200 /* System header to define __stub macros and hopefully few prototypes,
11201     which can conflict with char $ac_func(); below.  */
11202 #include <assert.h>
11203 /* Override any gcc2 internal prototype to avoid an error.  */
11204 /* We use char because int might match the return type of a gcc2
11205     builtin and then its argument prototype would still apply.  */
11206 char $ac_func();
11207
11208 int main() {
11209
11210 /* The GNU C library defines this for functions which it implements
11211     to always fail with ENOSYS.  Some functions are actually named
11212     something starting with __ and the normal name is an alias.  */
11213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11214 choke me
11215 #else
11216 $ac_func();
11217 #endif
11218
11219 ; return 0; }
11220 EOF
11221 if { (eval echo configure:11222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11222   rm -rf conftest*
11223   eval "ac_cv_func_$ac_func=yes"
11224 else
11225   echo "configure: failed program was:" >&5
11226   cat conftest.$ac_ext >&5
11227   rm -rf conftest*
11228   eval "ac_cv_func_$ac_func=no"
11229 fi
11230 rm -f conftest*
11231 fi
11232
11233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11234   echo "$ac_t""yes" 1>&6
11235     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11236   cat >> confdefs.h <<EOF
11237 #define $ac_tr_func 1
11238 EOF
11239  
11240 else
11241   echo "$ac_t""no" 1>&6
11242 fi
11243 done
11244     
11245   else
11246     
11247   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11248 echo "configure:11249: checking for _finite declaration" >&5
11249   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11250     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11251   echo $ac_n "(cached) $ac_c" 1>&6
11252 else
11253   
11254       
11255       ac_ext=C
11256 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11257 ac_cpp='$CXXCPP $CPPFLAGS'
11258 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11259 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11260 cross_compiling=$ac_cv_prog_cxx_cross
11261
11262       cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11265 #include <math.h>
11266                       #ifdef HAVE_IEEEFP_H
11267                       #include <ieeefp.h>
11268                       #endif
11269                      
11270 int main() {
11271  _finite(0);
11272 ; return 0; }
11273 EOF
11274 if { (eval echo configure:11275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11275   rm -rf conftest*
11276   glibcpp_cv_func__finite_use=yes
11277 else
11278   echo "configure: failed program was:" >&5
11279   cat conftest.$ac_ext >&5
11280   rm -rf conftest*
11281   glibcpp_cv_func__finite_use=no
11282 fi
11283 rm -f conftest*
11284       ac_ext=c
11285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11286 ac_cpp='$CPP $CPPFLAGS'
11287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11289 cross_compiling=$ac_cv_prog_cc_cross
11290
11291     
11292 fi
11293
11294   fi
11295   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11296
11297     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11298       for ac_func in _finite
11299 do
11300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11301 echo "configure:11302: checking for $ac_func" >&5
11302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11303   echo $ac_n "(cached) $ac_c" 1>&6
11304 else
11305   cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11308 /* System header to define __stub macros and hopefully few prototypes,
11309     which can conflict with char $ac_func(); below.  */
11310 #include <assert.h>
11311 /* Override any gcc2 internal prototype to avoid an error.  */
11312 /* We use char because int might match the return type of a gcc2
11313     builtin and then its argument prototype would still apply.  */
11314 char $ac_func();
11315
11316 int main() {
11317
11318 /* The GNU C library defines this for functions which it implements
11319     to always fail with ENOSYS.  Some functions are actually named
11320     something starting with __ and the normal name is an alias.  */
11321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11322 choke me
11323 #else
11324 $ac_func();
11325 #endif
11326
11327 ; return 0; }
11328 EOF
11329 if { (eval echo configure:11330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11330   rm -rf conftest*
11331   eval "ac_cv_func_$ac_func=yes"
11332 else
11333   echo "configure: failed program was:" >&5
11334   cat conftest.$ac_ext >&5
11335   rm -rf conftest*
11336   eval "ac_cv_func_$ac_func=no"
11337 fi
11338 rm -f conftest*
11339 fi
11340
11341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11342   echo "$ac_t""yes" 1>&6
11343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11344   cat >> confdefs.h <<EOF
11345 #define $ac_tr_func 1
11346 EOF
11347  
11348 else
11349   echo "$ac_t""no" 1>&6
11350 fi
11351 done
11352     
11353     fi
11354   fi
11355
11356   
11357   
11358   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11359 echo "configure:11360: checking for copysign declaration" >&5
11360   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11361     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11362   echo $ac_n "(cached) $ac_c" 1>&6
11363 else
11364   
11365       
11366       ac_ext=C
11367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11368 ac_cpp='$CXXCPP $CPPFLAGS'
11369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11371 cross_compiling=$ac_cv_prog_cxx_cross
11372
11373       cat > conftest.$ac_ext <<EOF
11374 #line 11375 "configure"
11375 #include "confdefs.h"
11376 #include <math.h>
11377 int main() {
11378  copysign(0, 0);
11379 ; return 0; }
11380 EOF
11381 if { (eval echo configure:11382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11382   rm -rf conftest*
11383   glibcpp_cv_func_copysign_use=yes
11384 else
11385   echo "configure: failed program was:" >&5
11386   cat conftest.$ac_ext >&5
11387   rm -rf conftest*
11388   glibcpp_cv_func_copysign_use=no
11389 fi
11390 rm -f conftest*
11391       ac_ext=c
11392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11393 ac_cpp='$CPP $CPPFLAGS'
11394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11396 cross_compiling=$ac_cv_prog_cc_cross
11397
11398     
11399 fi
11400
11401   fi
11402   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11403
11404   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11405     for ac_func in copysign
11406 do
11407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11408 echo "configure:11409: checking for $ac_func" >&5
11409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11410   echo $ac_n "(cached) $ac_c" 1>&6
11411 else
11412   cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 /* System header to define __stub macros and hopefully few prototypes,
11416     which can conflict with char $ac_func(); below.  */
11417 #include <assert.h>
11418 /* Override any gcc2 internal prototype to avoid an error.  */
11419 /* We use char because int might match the return type of a gcc2
11420     builtin and then its argument prototype would still apply.  */
11421 char $ac_func();
11422
11423 int main() {
11424
11425 /* The GNU C library defines this for functions which it implements
11426     to always fail with ENOSYS.  Some functions are actually named
11427     something starting with __ and the normal name is an alias.  */
11428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11429 choke me
11430 #else
11431 $ac_func();
11432 #endif
11433
11434 ; return 0; }
11435 EOF
11436 if { (eval echo configure:11437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11437   rm -rf conftest*
11438   eval "ac_cv_func_$ac_func=yes"
11439 else
11440   echo "configure: failed program was:" >&5
11441   cat conftest.$ac_ext >&5
11442   rm -rf conftest*
11443   eval "ac_cv_func_$ac_func=no"
11444 fi
11445 rm -f conftest*
11446 fi
11447
11448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11449   echo "$ac_t""yes" 1>&6
11450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11451   cat >> confdefs.h <<EOF
11452 #define $ac_tr_func 1
11453 EOF
11454  
11455 else
11456   echo "$ac_t""no" 1>&6
11457 fi
11458 done
11459     
11460   else
11461     
11462   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11463 echo "configure:11464: checking for _copysign declaration" >&5
11464   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11465     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11466   echo $ac_n "(cached) $ac_c" 1>&6
11467 else
11468   
11469       
11470       ac_ext=C
11471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11472 ac_cpp='$CXXCPP $CPPFLAGS'
11473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11475 cross_compiling=$ac_cv_prog_cxx_cross
11476
11477       cat > conftest.$ac_ext <<EOF
11478 #line 11479 "configure"
11479 #include "confdefs.h"
11480 #include <math.h>
11481 int main() {
11482  _copysign(0, 0);
11483 ; return 0; }
11484 EOF
11485 if { (eval echo configure:11486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11486   rm -rf conftest*
11487   glibcpp_cv_func__copysign_use=yes
11488 else
11489   echo "configure: failed program was:" >&5
11490   cat conftest.$ac_ext >&5
11491   rm -rf conftest*
11492   glibcpp_cv_func__copysign_use=no
11493 fi
11494 rm -f conftest*
11495       ac_ext=c
11496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11497 ac_cpp='$CPP $CPPFLAGS'
11498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11500 cross_compiling=$ac_cv_prog_cc_cross
11501
11502     
11503 fi
11504
11505   fi
11506   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11507
11508     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11509       for ac_func in _copysign
11510 do
11511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11512 echo "configure:11513: checking for $ac_func" >&5
11513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11514   echo $ac_n "(cached) $ac_c" 1>&6
11515 else
11516   cat > conftest.$ac_ext <<EOF
11517 #line 11518 "configure"
11518 #include "confdefs.h"
11519 /* System header to define __stub macros and hopefully few prototypes,
11520     which can conflict with char $ac_func(); below.  */
11521 #include <assert.h>
11522 /* Override any gcc2 internal prototype to avoid an error.  */
11523 /* We use char because int might match the return type of a gcc2
11524     builtin and then its argument prototype would still apply.  */
11525 char $ac_func();
11526
11527 int main() {
11528
11529 /* The GNU C library defines this for functions which it implements
11530     to always fail with ENOSYS.  Some functions are actually named
11531     something starting with __ and the normal name is an alias.  */
11532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11533 choke me
11534 #else
11535 $ac_func();
11536 #endif
11537
11538 ; return 0; }
11539 EOF
11540 if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11541   rm -rf conftest*
11542   eval "ac_cv_func_$ac_func=yes"
11543 else
11544   echo "configure: failed program was:" >&5
11545   cat conftest.$ac_ext >&5
11546   rm -rf conftest*
11547   eval "ac_cv_func_$ac_func=no"
11548 fi
11549 rm -f conftest*
11550 fi
11551
11552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11553   echo "$ac_t""yes" 1>&6
11554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11555   cat >> confdefs.h <<EOF
11556 #define $ac_tr_func 1
11557 EOF
11558  
11559 else
11560   echo "$ac_t""no" 1>&6
11561 fi
11562 done
11563     
11564     fi
11565   fi
11566
11567   
11568   
11569   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11570 echo "configure:11571: checking for sincos declaration" >&5
11571   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11572     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11573   echo $ac_n "(cached) $ac_c" 1>&6
11574 else
11575   
11576       
11577       ac_ext=C
11578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11579 ac_cpp='$CXXCPP $CPPFLAGS'
11580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11582 cross_compiling=$ac_cv_prog_cxx_cross
11583
11584       cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11587 #include <math.h>
11588 int main() {
11589  sincos(0, 0, 0);
11590 ; return 0; }
11591 EOF
11592 if { (eval echo configure:11593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11593   rm -rf conftest*
11594   glibcpp_cv_func_sincos_use=yes
11595 else
11596   echo "configure: failed program was:" >&5
11597   cat conftest.$ac_ext >&5
11598   rm -rf conftest*
11599   glibcpp_cv_func_sincos_use=no
11600 fi
11601 rm -f conftest*
11602       ac_ext=c
11603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11604 ac_cpp='$CPP $CPPFLAGS'
11605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11607 cross_compiling=$ac_cv_prog_cc_cross
11608
11609     
11610 fi
11611
11612   fi
11613   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11614
11615   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11616     for ac_func in sincos
11617 do
11618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11619 echo "configure:11620: checking for $ac_func" >&5
11620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11621   echo $ac_n "(cached) $ac_c" 1>&6
11622 else
11623   cat > conftest.$ac_ext <<EOF
11624 #line 11625 "configure"
11625 #include "confdefs.h"
11626 /* System header to define __stub macros and hopefully few prototypes,
11627     which can conflict with char $ac_func(); below.  */
11628 #include <assert.h>
11629 /* Override any gcc2 internal prototype to avoid an error.  */
11630 /* We use char because int might match the return type of a gcc2
11631     builtin and then its argument prototype would still apply.  */
11632 char $ac_func();
11633
11634 int main() {
11635
11636 /* The GNU C library defines this for functions which it implements
11637     to always fail with ENOSYS.  Some functions are actually named
11638     something starting with __ and the normal name is an alias.  */
11639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11640 choke me
11641 #else
11642 $ac_func();
11643 #endif
11644
11645 ; return 0; }
11646 EOF
11647 if { (eval echo configure:11648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11648   rm -rf conftest*
11649   eval "ac_cv_func_$ac_func=yes"
11650 else
11651   echo "configure: failed program was:" >&5
11652   cat conftest.$ac_ext >&5
11653   rm -rf conftest*
11654   eval "ac_cv_func_$ac_func=no"
11655 fi
11656 rm -f conftest*
11657 fi
11658
11659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11660   echo "$ac_t""yes" 1>&6
11661     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11662   cat >> confdefs.h <<EOF
11663 #define $ac_tr_func 1
11664 EOF
11665  
11666 else
11667   echo "$ac_t""no" 1>&6
11668 fi
11669 done
11670     
11671   else
11672     
11673   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11674 echo "configure:11675: checking for _sincos declaration" >&5
11675   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11676     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11677   echo $ac_n "(cached) $ac_c" 1>&6
11678 else
11679   
11680       
11681       ac_ext=C
11682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11683 ac_cpp='$CXXCPP $CPPFLAGS'
11684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11686 cross_compiling=$ac_cv_prog_cxx_cross
11687
11688       cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11691 #include <math.h>
11692 int main() {
11693  _sincos(0, 0, 0);
11694 ; return 0; }
11695 EOF
11696 if { (eval echo configure:11697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11697   rm -rf conftest*
11698   glibcpp_cv_func__sincos_use=yes
11699 else
11700   echo "configure: failed program was:" >&5
11701   cat conftest.$ac_ext >&5
11702   rm -rf conftest*
11703   glibcpp_cv_func__sincos_use=no
11704 fi
11705 rm -f conftest*
11706       ac_ext=c
11707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11708 ac_cpp='$CPP $CPPFLAGS'
11709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11711 cross_compiling=$ac_cv_prog_cc_cross
11712
11713     
11714 fi
11715
11716   fi
11717   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11718
11719     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11720       for ac_func in _sincos
11721 do
11722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11723 echo "configure:11724: checking for $ac_func" >&5
11724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11725   echo $ac_n "(cached) $ac_c" 1>&6
11726 else
11727   cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11730 /* System header to define __stub macros and hopefully few prototypes,
11731     which can conflict with char $ac_func(); below.  */
11732 #include <assert.h>
11733 /* Override any gcc2 internal prototype to avoid an error.  */
11734 /* We use char because int might match the return type of a gcc2
11735     builtin and then its argument prototype would still apply.  */
11736 char $ac_func();
11737
11738 int main() {
11739
11740 /* The GNU C library defines this for functions which it implements
11741     to always fail with ENOSYS.  Some functions are actually named
11742     something starting with __ and the normal name is an alias.  */
11743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11744 choke me
11745 #else
11746 $ac_func();
11747 #endif
11748
11749 ; return 0; }
11750 EOF
11751 if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11752   rm -rf conftest*
11753   eval "ac_cv_func_$ac_func=yes"
11754 else
11755   echo "configure: failed program was:" >&5
11756   cat conftest.$ac_ext >&5
11757   rm -rf conftest*
11758   eval "ac_cv_func_$ac_func=no"
11759 fi
11760 rm -f conftest*
11761 fi
11762
11763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11764   echo "$ac_t""yes" 1>&6
11765     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11766   cat >> confdefs.h <<EOF
11767 #define $ac_tr_func 1
11768 EOF
11769  
11770 else
11771   echo "$ac_t""no" 1>&6
11772 fi
11773 done
11774     
11775     fi
11776   fi
11777
11778   
11779   
11780   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11781 echo "configure:11782: checking for fpclass declaration" >&5
11782   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11783     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11784   echo $ac_n "(cached) $ac_c" 1>&6
11785 else
11786   
11787       
11788       ac_ext=C
11789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11790 ac_cpp='$CXXCPP $CPPFLAGS'
11791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11793 cross_compiling=$ac_cv_prog_cxx_cross
11794
11795       cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 #include <math.h>
11799                       #ifdef HAVE_IEEEFP_H
11800                       #include <ieeefp.h>
11801                       #endif
11802                      
11803 int main() {
11804  fpclass(0);
11805 ; return 0; }
11806 EOF
11807 if { (eval echo configure:11808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11808   rm -rf conftest*
11809   glibcpp_cv_func_fpclass_use=yes
11810 else
11811   echo "configure: failed program was:" >&5
11812   cat conftest.$ac_ext >&5
11813   rm -rf conftest*
11814   glibcpp_cv_func_fpclass_use=no
11815 fi
11816 rm -f conftest*
11817       ac_ext=c
11818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11819 ac_cpp='$CPP $CPPFLAGS'
11820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11822 cross_compiling=$ac_cv_prog_cc_cross
11823
11824     
11825 fi
11826
11827   fi
11828   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11829
11830   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11831     for ac_func in fpclass
11832 do
11833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11834 echo "configure:11835: checking for $ac_func" >&5
11835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11836   echo $ac_n "(cached) $ac_c" 1>&6
11837 else
11838   cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* System header to define __stub macros and hopefully few prototypes,
11842     which can conflict with char $ac_func(); below.  */
11843 #include <assert.h>
11844 /* Override any gcc2 internal prototype to avoid an error.  */
11845 /* We use char because int might match the return type of a gcc2
11846     builtin and then its argument prototype would still apply.  */
11847 char $ac_func();
11848
11849 int main() {
11850
11851 /* The GNU C library defines this for functions which it implements
11852     to always fail with ENOSYS.  Some functions are actually named
11853     something starting with __ and the normal name is an alias.  */
11854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11855 choke me
11856 #else
11857 $ac_func();
11858 #endif
11859
11860 ; return 0; }
11861 EOF
11862 if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11863   rm -rf conftest*
11864   eval "ac_cv_func_$ac_func=yes"
11865 else
11866   echo "configure: failed program was:" >&5
11867   cat conftest.$ac_ext >&5
11868   rm -rf conftest*
11869   eval "ac_cv_func_$ac_func=no"
11870 fi
11871 rm -f conftest*
11872 fi
11873
11874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11875   echo "$ac_t""yes" 1>&6
11876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11877   cat >> confdefs.h <<EOF
11878 #define $ac_tr_func 1
11879 EOF
11880  
11881 else
11882   echo "$ac_t""no" 1>&6
11883 fi
11884 done
11885     
11886   else
11887     
11888   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11889 echo "configure:11890: checking for _fpclass declaration" >&5
11890   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11891     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11892   echo $ac_n "(cached) $ac_c" 1>&6
11893 else
11894   
11895       
11896       ac_ext=C
11897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11898 ac_cpp='$CXXCPP $CPPFLAGS'
11899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11901 cross_compiling=$ac_cv_prog_cxx_cross
11902
11903       cat > conftest.$ac_ext <<EOF
11904 #line 11905 "configure"
11905 #include "confdefs.h"
11906 #include <math.h>
11907                       #ifdef HAVE_IEEEFP_H
11908                       #include <ieeefp.h>
11909                       #endif
11910                      
11911 int main() {
11912  _fpclass(0);
11913 ; return 0; }
11914 EOF
11915 if { (eval echo configure:11916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11916   rm -rf conftest*
11917   glibcpp_cv_func__fpclass_use=yes
11918 else
11919   echo "configure: failed program was:" >&5
11920   cat conftest.$ac_ext >&5
11921   rm -rf conftest*
11922   glibcpp_cv_func__fpclass_use=no
11923 fi
11924 rm -f conftest*
11925       ac_ext=c
11926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11927 ac_cpp='$CPP $CPPFLAGS'
11928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11930 cross_compiling=$ac_cv_prog_cc_cross
11931
11932     
11933 fi
11934
11935   fi
11936   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11937
11938     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11939       for ac_func in _fpclass
11940 do
11941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11942 echo "configure:11943: checking for $ac_func" >&5
11943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11944   echo $ac_n "(cached) $ac_c" 1>&6
11945 else
11946   cat > conftest.$ac_ext <<EOF
11947 #line 11948 "configure"
11948 #include "confdefs.h"
11949 /* System header to define __stub macros and hopefully few prototypes,
11950     which can conflict with char $ac_func(); below.  */
11951 #include <assert.h>
11952 /* Override any gcc2 internal prototype to avoid an error.  */
11953 /* We use char because int might match the return type of a gcc2
11954     builtin and then its argument prototype would still apply.  */
11955 char $ac_func();
11956
11957 int main() {
11958
11959 /* The GNU C library defines this for functions which it implements
11960     to always fail with ENOSYS.  Some functions are actually named
11961     something starting with __ and the normal name is an alias.  */
11962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11963 choke me
11964 #else
11965 $ac_func();
11966 #endif
11967
11968 ; return 0; }
11969 EOF
11970 if { (eval echo configure:11971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11971   rm -rf conftest*
11972   eval "ac_cv_func_$ac_func=yes"
11973 else
11974   echo "configure: failed program was:" >&5
11975   cat conftest.$ac_ext >&5
11976   rm -rf conftest*
11977   eval "ac_cv_func_$ac_func=no"
11978 fi
11979 rm -f conftest*
11980 fi
11981
11982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11983   echo "$ac_t""yes" 1>&6
11984     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11985   cat >> confdefs.h <<EOF
11986 #define $ac_tr_func 1
11987 EOF
11988  
11989 else
11990   echo "$ac_t""no" 1>&6
11991 fi
11992 done
11993     
11994     fi
11995   fi
11996
11997   
11998   
11999   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12000 echo "configure:12001: checking for qfpclass declaration" >&5
12001   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12002     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12003   echo $ac_n "(cached) $ac_c" 1>&6
12004 else
12005   
12006       
12007       ac_ext=C
12008 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12009 ac_cpp='$CXXCPP $CPPFLAGS'
12010 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12011 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12012 cross_compiling=$ac_cv_prog_cxx_cross
12013
12014       cat > conftest.$ac_ext <<EOF
12015 #line 12016 "configure"
12016 #include "confdefs.h"
12017 #include <math.h>
12018                       #ifdef HAVE_IEEEFP_H
12019                       #include <ieeefp.h>
12020                       #endif
12021                      
12022 int main() {
12023  qfpclass(0);
12024 ; return 0; }
12025 EOF
12026 if { (eval echo configure:12027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12027   rm -rf conftest*
12028   glibcpp_cv_func_qfpclass_use=yes
12029 else
12030   echo "configure: failed program was:" >&5
12031   cat conftest.$ac_ext >&5
12032   rm -rf conftest*
12033   glibcpp_cv_func_qfpclass_use=no
12034 fi
12035 rm -f conftest*
12036       ac_ext=c
12037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12038 ac_cpp='$CPP $CPPFLAGS'
12039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12041 cross_compiling=$ac_cv_prog_cc_cross
12042
12043     
12044 fi
12045
12046   fi
12047   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12048
12049   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12050     for ac_func in qfpclass
12051 do
12052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12053 echo "configure:12054: checking for $ac_func" >&5
12054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12055   echo $ac_n "(cached) $ac_c" 1>&6
12056 else
12057   cat > conftest.$ac_ext <<EOF
12058 #line 12059 "configure"
12059 #include "confdefs.h"
12060 /* System header to define __stub macros and hopefully few prototypes,
12061     which can conflict with char $ac_func(); below.  */
12062 #include <assert.h>
12063 /* Override any gcc2 internal prototype to avoid an error.  */
12064 /* We use char because int might match the return type of a gcc2
12065     builtin and then its argument prototype would still apply.  */
12066 char $ac_func();
12067
12068 int main() {
12069
12070 /* The GNU C library defines this for functions which it implements
12071     to always fail with ENOSYS.  Some functions are actually named
12072     something starting with __ and the normal name is an alias.  */
12073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12074 choke me
12075 #else
12076 $ac_func();
12077 #endif
12078
12079 ; return 0; }
12080 EOF
12081 if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12082   rm -rf conftest*
12083   eval "ac_cv_func_$ac_func=yes"
12084 else
12085   echo "configure: failed program was:" >&5
12086   cat conftest.$ac_ext >&5
12087   rm -rf conftest*
12088   eval "ac_cv_func_$ac_func=no"
12089 fi
12090 rm -f conftest*
12091 fi
12092
12093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12094   echo "$ac_t""yes" 1>&6
12095     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12096   cat >> confdefs.h <<EOF
12097 #define $ac_tr_func 1
12098 EOF
12099  
12100 else
12101   echo "$ac_t""no" 1>&6
12102 fi
12103 done
12104     
12105   else
12106     
12107   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12108 echo "configure:12109: checking for _qfpclass declaration" >&5
12109   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12110     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12111   echo $ac_n "(cached) $ac_c" 1>&6
12112 else
12113   
12114       
12115       ac_ext=C
12116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12117 ac_cpp='$CXXCPP $CPPFLAGS'
12118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12120 cross_compiling=$ac_cv_prog_cxx_cross
12121
12122       cat > conftest.$ac_ext <<EOF
12123 #line 12124 "configure"
12124 #include "confdefs.h"
12125 #include <math.h>
12126                       #ifdef HAVE_IEEEFP_H
12127                       #include <ieeefp.h>
12128                       #endif
12129                      
12130 int main() {
12131  _qfpclass(0);
12132 ; return 0; }
12133 EOF
12134 if { (eval echo configure:12135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12135   rm -rf conftest*
12136   glibcpp_cv_func__qfpclass_use=yes
12137 else
12138   echo "configure: failed program was:" >&5
12139   cat conftest.$ac_ext >&5
12140   rm -rf conftest*
12141   glibcpp_cv_func__qfpclass_use=no
12142 fi
12143 rm -f conftest*
12144       ac_ext=c
12145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12146 ac_cpp='$CPP $CPPFLAGS'
12147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12149 cross_compiling=$ac_cv_prog_cc_cross
12150
12151     
12152 fi
12153
12154   fi
12155   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12156
12157     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12158       for ac_func in _qfpclass
12159 do
12160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12161 echo "configure:12162: checking for $ac_func" >&5
12162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12163   echo $ac_n "(cached) $ac_c" 1>&6
12164 else
12165   cat > conftest.$ac_ext <<EOF
12166 #line 12167 "configure"
12167 #include "confdefs.h"
12168 /* System header to define __stub macros and hopefully few prototypes,
12169     which can conflict with char $ac_func(); below.  */
12170 #include <assert.h>
12171 /* Override any gcc2 internal prototype to avoid an error.  */
12172 /* We use char because int might match the return type of a gcc2
12173     builtin and then its argument prototype would still apply.  */
12174 char $ac_func();
12175
12176 int main() {
12177
12178 /* The GNU C library defines this for functions which it implements
12179     to always fail with ENOSYS.  Some functions are actually named
12180     something starting with __ and the normal name is an alias.  */
12181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12182 choke me
12183 #else
12184 $ac_func();
12185 #endif
12186
12187 ; return 0; }
12188 EOF
12189 if { (eval echo configure:12190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12190   rm -rf conftest*
12191   eval "ac_cv_func_$ac_func=yes"
12192 else
12193   echo "configure: failed program was:" >&5
12194   cat conftest.$ac_ext >&5
12195   rm -rf conftest*
12196   eval "ac_cv_func_$ac_func=no"
12197 fi
12198 rm -f conftest*
12199 fi
12200
12201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12202   echo "$ac_t""yes" 1>&6
12203     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12204   cat >> confdefs.h <<EOF
12205 #define $ac_tr_func 1
12206 EOF
12207  
12208 else
12209   echo "$ac_t""no" 1>&6
12210 fi
12211 done
12212     
12213     fi
12214   fi
12215
12216   
12217   
12218   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12219 echo "configure:12220: checking for hypot declaration" >&5
12220   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12221     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12222   echo $ac_n "(cached) $ac_c" 1>&6
12223 else
12224   
12225       
12226       ac_ext=C
12227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12228 ac_cpp='$CXXCPP $CPPFLAGS'
12229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12231 cross_compiling=$ac_cv_prog_cxx_cross
12232
12233       cat > conftest.$ac_ext <<EOF
12234 #line 12235 "configure"
12235 #include "confdefs.h"
12236 #include <math.h>
12237 int main() {
12238  hypot(0, 0);
12239 ; return 0; }
12240 EOF
12241 if { (eval echo configure:12242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12242   rm -rf conftest*
12243   glibcpp_cv_func_hypot_use=yes
12244 else
12245   echo "configure: failed program was:" >&5
12246   cat conftest.$ac_ext >&5
12247   rm -rf conftest*
12248   glibcpp_cv_func_hypot_use=no
12249 fi
12250 rm -f conftest*
12251       ac_ext=c
12252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12253 ac_cpp='$CPP $CPPFLAGS'
12254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12256 cross_compiling=$ac_cv_prog_cc_cross
12257
12258     
12259 fi
12260
12261   fi
12262   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12263
12264   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12265     for ac_func in hypot
12266 do
12267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12268 echo "configure:12269: checking for $ac_func" >&5
12269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12270   echo $ac_n "(cached) $ac_c" 1>&6
12271 else
12272   cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 /* System header to define __stub macros and hopefully few prototypes,
12276     which can conflict with char $ac_func(); below.  */
12277 #include <assert.h>
12278 /* Override any gcc2 internal prototype to avoid an error.  */
12279 /* We use char because int might match the return type of a gcc2
12280     builtin and then its argument prototype would still apply.  */
12281 char $ac_func();
12282
12283 int main() {
12284
12285 /* The GNU C library defines this for functions which it implements
12286     to always fail with ENOSYS.  Some functions are actually named
12287     something starting with __ and the normal name is an alias.  */
12288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12289 choke me
12290 #else
12291 $ac_func();
12292 #endif
12293
12294 ; return 0; }
12295 EOF
12296 if { (eval echo configure:12297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12297   rm -rf conftest*
12298   eval "ac_cv_func_$ac_func=yes"
12299 else
12300   echo "configure: failed program was:" >&5
12301   cat conftest.$ac_ext >&5
12302   rm -rf conftest*
12303   eval "ac_cv_func_$ac_func=no"
12304 fi
12305 rm -f conftest*
12306 fi
12307
12308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12309   echo "$ac_t""yes" 1>&6
12310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12311   cat >> confdefs.h <<EOF
12312 #define $ac_tr_func 1
12313 EOF
12314  
12315 else
12316   echo "$ac_t""no" 1>&6
12317 fi
12318 done
12319     
12320   else
12321     
12322   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12323 echo "configure:12324: checking for _hypot declaration" >&5
12324   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12325     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12326   echo $ac_n "(cached) $ac_c" 1>&6
12327 else
12328   
12329       
12330       ac_ext=C
12331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12332 ac_cpp='$CXXCPP $CPPFLAGS'
12333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12335 cross_compiling=$ac_cv_prog_cxx_cross
12336
12337       cat > conftest.$ac_ext <<EOF
12338 #line 12339 "configure"
12339 #include "confdefs.h"
12340 #include <math.h>
12341 int main() {
12342  _hypot(0, 0);
12343 ; return 0; }
12344 EOF
12345 if { (eval echo configure:12346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12346   rm -rf conftest*
12347   glibcpp_cv_func__hypot_use=yes
12348 else
12349   echo "configure: failed program was:" >&5
12350   cat conftest.$ac_ext >&5
12351   rm -rf conftest*
12352   glibcpp_cv_func__hypot_use=no
12353 fi
12354 rm -f conftest*
12355       ac_ext=c
12356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12357 ac_cpp='$CPP $CPPFLAGS'
12358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12360 cross_compiling=$ac_cv_prog_cc_cross
12361
12362     
12363 fi
12364
12365   fi
12366   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12367
12368     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12369       for ac_func in _hypot
12370 do
12371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12372 echo "configure:12373: checking for $ac_func" >&5
12373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12374   echo $ac_n "(cached) $ac_c" 1>&6
12375 else
12376   cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12379 /* System header to define __stub macros and hopefully few prototypes,
12380     which can conflict with char $ac_func(); below.  */
12381 #include <assert.h>
12382 /* Override any gcc2 internal prototype to avoid an error.  */
12383 /* We use char because int might match the return type of a gcc2
12384     builtin and then its argument prototype would still apply.  */
12385 char $ac_func();
12386
12387 int main() {
12388
12389 /* The GNU C library defines this for functions which it implements
12390     to always fail with ENOSYS.  Some functions are actually named
12391     something starting with __ and the normal name is an alias.  */
12392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12393 choke me
12394 #else
12395 $ac_func();
12396 #endif
12397
12398 ; return 0; }
12399 EOF
12400 if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12401   rm -rf conftest*
12402   eval "ac_cv_func_$ac_func=yes"
12403 else
12404   echo "configure: failed program was:" >&5
12405   cat conftest.$ac_ext >&5
12406   rm -rf conftest*
12407   eval "ac_cv_func_$ac_func=no"
12408 fi
12409 rm -f conftest*
12410 fi
12411
12412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12413   echo "$ac_t""yes" 1>&6
12414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12415   cat >> confdefs.h <<EOF
12416 #define $ac_tr_func 1
12417 EOF
12418  
12419 else
12420   echo "$ac_t""no" 1>&6
12421 fi
12422 done
12423     
12424     fi
12425   fi
12426
12427
12428     
12429   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12430 echo "configure:12431: checking for float trig functions" >&5
12431   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12432   echo $ac_n "(cached) $ac_c" 1>&6
12433 else
12434   
12435     
12436     ac_ext=C
12437 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12438 ac_cpp='$CXXCPP $CPPFLAGS'
12439 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12440 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12441 cross_compiling=$ac_cv_prog_cxx_cross
12442
12443     cat > conftest.$ac_ext <<EOF
12444 #line 12445 "configure"
12445 #include "confdefs.h"
12446 #include <math.h>
12447 int main() {
12448  `for x in acosf asinf atanf \
12449                                           cosf sinf tanf \
12450                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12451 ; return 0; }
12452 EOF
12453 if { (eval echo configure:12454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12454   rm -rf conftest*
12455   glibcpp_cv_func_float_trig_use=yes
12456 else
12457   echo "configure: failed program was:" >&5
12458   cat conftest.$ac_ext >&5
12459   rm -rf conftest*
12460   glibcpp_cv_func_float_trig_use=no
12461 fi
12462 rm -f conftest*
12463     ac_ext=c
12464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12465 ac_cpp='$CPP $CPPFLAGS'
12466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12468 cross_compiling=$ac_cv_prog_cc_cross
12469
12470 fi
12471
12472   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12473   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12474     for ac_func in acosf asinf atanf \
12475                                           cosf sinf tanf \
12476                                           coshf sinhf tanhf
12477 do
12478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12479 echo "configure:12480: checking for $ac_func" >&5
12480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12481   echo $ac_n "(cached) $ac_c" 1>&6
12482 else
12483   cat > conftest.$ac_ext <<EOF
12484 #line 12485 "configure"
12485 #include "confdefs.h"
12486 /* System header to define __stub macros and hopefully few prototypes,
12487     which can conflict with char $ac_func(); below.  */
12488 #include <assert.h>
12489 /* Override any gcc2 internal prototype to avoid an error.  */
12490 /* We use char because int might match the return type of a gcc2
12491     builtin and then its argument prototype would still apply.  */
12492 char $ac_func();
12493
12494 int main() {
12495
12496 /* The GNU C library defines this for functions which it implements
12497     to always fail with ENOSYS.  Some functions are actually named
12498     something starting with __ and the normal name is an alias.  */
12499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12500 choke me
12501 #else
12502 $ac_func();
12503 #endif
12504
12505 ; return 0; }
12506 EOF
12507 if { (eval echo configure:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12508   rm -rf conftest*
12509   eval "ac_cv_func_$ac_func=yes"
12510 else
12511   echo "configure: failed program was:" >&5
12512   cat conftest.$ac_ext >&5
12513   rm -rf conftest*
12514   eval "ac_cv_func_$ac_func=no"
12515 fi
12516 rm -f conftest*
12517 fi
12518
12519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12520   echo "$ac_t""yes" 1>&6
12521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12522   cat >> confdefs.h <<EOF
12523 #define $ac_tr_func 1
12524 EOF
12525  
12526 else
12527   echo "$ac_t""no" 1>&6
12528 fi
12529 done
12530
12531   fi
12532
12533   
12534   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12535 echo "configure:12536: checking for float round functions" >&5
12536   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12537   echo $ac_n "(cached) $ac_c" 1>&6
12538 else
12539   
12540     
12541     ac_ext=C
12542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12543 ac_cpp='$CXXCPP $CPPFLAGS'
12544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12546 cross_compiling=$ac_cv_prog_cxx_cross
12547
12548     cat > conftest.$ac_ext <<EOF
12549 #line 12550 "configure"
12550 #include "confdefs.h"
12551 #include <math.h>
12552 int main() {
12553  `for x in ceilf floorf; do echo "$x (0);"; done` 
12554 ; return 0; }
12555 EOF
12556 if { (eval echo configure:12557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12557   rm -rf conftest*
12558   glibcpp_cv_func_float_round_use=yes
12559 else
12560   echo "configure: failed program was:" >&5
12561   cat conftest.$ac_ext >&5
12562   rm -rf conftest*
12563   glibcpp_cv_func_float_round_use=no
12564 fi
12565 rm -f conftest*
12566     ac_ext=c
12567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12568 ac_cpp='$CPP $CPPFLAGS'
12569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12571 cross_compiling=$ac_cv_prog_cc_cross
12572
12573 fi
12574
12575   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12576   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12577     for ac_func in ceilf floorf
12578 do
12579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12580 echo "configure:12581: checking for $ac_func" >&5
12581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12582   echo $ac_n "(cached) $ac_c" 1>&6
12583 else
12584   cat > conftest.$ac_ext <<EOF
12585 #line 12586 "configure"
12586 #include "confdefs.h"
12587 /* System header to define __stub macros and hopefully few prototypes,
12588     which can conflict with char $ac_func(); below.  */
12589 #include <assert.h>
12590 /* Override any gcc2 internal prototype to avoid an error.  */
12591 /* We use char because int might match the return type of a gcc2
12592     builtin and then its argument prototype would still apply.  */
12593 char $ac_func();
12594
12595 int main() {
12596
12597 /* The GNU C library defines this for functions which it implements
12598     to always fail with ENOSYS.  Some functions are actually named
12599     something starting with __ and the normal name is an alias.  */
12600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12601 choke me
12602 #else
12603 $ac_func();
12604 #endif
12605
12606 ; return 0; }
12607 EOF
12608 if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12609   rm -rf conftest*
12610   eval "ac_cv_func_$ac_func=yes"
12611 else
12612   echo "configure: failed program was:" >&5
12613   cat conftest.$ac_ext >&5
12614   rm -rf conftest*
12615   eval "ac_cv_func_$ac_func=no"
12616 fi
12617 rm -f conftest*
12618 fi
12619
12620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12621   echo "$ac_t""yes" 1>&6
12622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12623   cat >> confdefs.h <<EOF
12624 #define $ac_tr_func 1
12625 EOF
12626  
12627 else
12628   echo "$ac_t""no" 1>&6
12629 fi
12630 done
12631
12632   fi
12633
12634   
12635   
12636   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12637 echo "configure:12638: checking for expf declaration" >&5
12638   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12639     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12640   echo $ac_n "(cached) $ac_c" 1>&6
12641 else
12642   
12643       
12644       ac_ext=C
12645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12646 ac_cpp='$CXXCPP $CPPFLAGS'
12647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12649 cross_compiling=$ac_cv_prog_cxx_cross
12650
12651       cat > conftest.$ac_ext <<EOF
12652 #line 12653 "configure"
12653 #include "confdefs.h"
12654 #include <math.h>
12655                       #ifdef HAVE_IEEEFP_H
12656                       #include <ieeefp.h>
12657                       #endif
12658                      
12659 int main() {
12660  expf(0);
12661 ; return 0; }
12662 EOF
12663 if { (eval echo configure:12664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12664   rm -rf conftest*
12665   glibcpp_cv_func_expf_use=yes
12666 else
12667   echo "configure: failed program was:" >&5
12668   cat conftest.$ac_ext >&5
12669   rm -rf conftest*
12670   glibcpp_cv_func_expf_use=no
12671 fi
12672 rm -f conftest*
12673       ac_ext=c
12674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12675 ac_cpp='$CPP $CPPFLAGS'
12676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12678 cross_compiling=$ac_cv_prog_cc_cross
12679
12680     
12681 fi
12682
12683   fi
12684   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12685
12686   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12687     for ac_func in expf
12688 do
12689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12690 echo "configure:12691: checking for $ac_func" >&5
12691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12692   echo $ac_n "(cached) $ac_c" 1>&6
12693 else
12694   cat > conftest.$ac_ext <<EOF
12695 #line 12696 "configure"
12696 #include "confdefs.h"
12697 /* System header to define __stub macros and hopefully few prototypes,
12698     which can conflict with char $ac_func(); below.  */
12699 #include <assert.h>
12700 /* Override any gcc2 internal prototype to avoid an error.  */
12701 /* We use char because int might match the return type of a gcc2
12702     builtin and then its argument prototype would still apply.  */
12703 char $ac_func();
12704
12705 int main() {
12706
12707 /* The GNU C library defines this for functions which it implements
12708     to always fail with ENOSYS.  Some functions are actually named
12709     something starting with __ and the normal name is an alias.  */
12710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12711 choke me
12712 #else
12713 $ac_func();
12714 #endif
12715
12716 ; return 0; }
12717 EOF
12718 if { (eval echo configure:12719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12719   rm -rf conftest*
12720   eval "ac_cv_func_$ac_func=yes"
12721 else
12722   echo "configure: failed program was:" >&5
12723   cat conftest.$ac_ext >&5
12724   rm -rf conftest*
12725   eval "ac_cv_func_$ac_func=no"
12726 fi
12727 rm -f conftest*
12728 fi
12729
12730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12731   echo "$ac_t""yes" 1>&6
12732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12733   cat >> confdefs.h <<EOF
12734 #define $ac_tr_func 1
12735 EOF
12736  
12737 else
12738   echo "$ac_t""no" 1>&6
12739 fi
12740 done
12741     
12742   else
12743     
12744   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12745 echo "configure:12746: checking for _expf declaration" >&5
12746   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12747     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12748   echo $ac_n "(cached) $ac_c" 1>&6
12749 else
12750   
12751       
12752       ac_ext=C
12753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12754 ac_cpp='$CXXCPP $CPPFLAGS'
12755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12757 cross_compiling=$ac_cv_prog_cxx_cross
12758
12759       cat > conftest.$ac_ext <<EOF
12760 #line 12761 "configure"
12761 #include "confdefs.h"
12762 #include <math.h>
12763                       #ifdef HAVE_IEEEFP_H
12764                       #include <ieeefp.h>
12765                       #endif
12766                      
12767 int main() {
12768  _expf(0);
12769 ; return 0; }
12770 EOF
12771 if { (eval echo configure:12772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12772   rm -rf conftest*
12773   glibcpp_cv_func__expf_use=yes
12774 else
12775   echo "configure: failed program was:" >&5
12776   cat conftest.$ac_ext >&5
12777   rm -rf conftest*
12778   glibcpp_cv_func__expf_use=no
12779 fi
12780 rm -f conftest*
12781       ac_ext=c
12782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12783 ac_cpp='$CPP $CPPFLAGS'
12784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12786 cross_compiling=$ac_cv_prog_cc_cross
12787
12788     
12789 fi
12790
12791   fi
12792   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12793
12794     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12795       for ac_func in _expf
12796 do
12797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12798 echo "configure:12799: checking for $ac_func" >&5
12799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12800   echo $ac_n "(cached) $ac_c" 1>&6
12801 else
12802   cat > conftest.$ac_ext <<EOF
12803 #line 12804 "configure"
12804 #include "confdefs.h"
12805 /* System header to define __stub macros and hopefully few prototypes,
12806     which can conflict with char $ac_func(); below.  */
12807 #include <assert.h>
12808 /* Override any gcc2 internal prototype to avoid an error.  */
12809 /* We use char because int might match the return type of a gcc2
12810     builtin and then its argument prototype would still apply.  */
12811 char $ac_func();
12812
12813 int main() {
12814
12815 /* The GNU C library defines this for functions which it implements
12816     to always fail with ENOSYS.  Some functions are actually named
12817     something starting with __ and the normal name is an alias.  */
12818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12819 choke me
12820 #else
12821 $ac_func();
12822 #endif
12823
12824 ; return 0; }
12825 EOF
12826 if { (eval echo configure:12827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12827   rm -rf conftest*
12828   eval "ac_cv_func_$ac_func=yes"
12829 else
12830   echo "configure: failed program was:" >&5
12831   cat conftest.$ac_ext >&5
12832   rm -rf conftest*
12833   eval "ac_cv_func_$ac_func=no"
12834 fi
12835 rm -f conftest*
12836 fi
12837
12838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12839   echo "$ac_t""yes" 1>&6
12840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12841   cat >> confdefs.h <<EOF
12842 #define $ac_tr_func 1
12843 EOF
12844  
12845 else
12846   echo "$ac_t""no" 1>&6
12847 fi
12848 done
12849     
12850     fi
12851   fi
12852
12853   
12854   
12855   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12856 echo "configure:12857: checking for isnanf declaration" >&5
12857   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12858     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12859   echo $ac_n "(cached) $ac_c" 1>&6
12860 else
12861   
12862       
12863       ac_ext=C
12864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12865 ac_cpp='$CXXCPP $CPPFLAGS'
12866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12868 cross_compiling=$ac_cv_prog_cxx_cross
12869
12870       cat > conftest.$ac_ext <<EOF
12871 #line 12872 "configure"
12872 #include "confdefs.h"
12873 #include <math.h>
12874                       #ifdef HAVE_IEEEFP_H
12875                       #include <ieeefp.h>
12876                       #endif
12877                      
12878 int main() {
12879  isnanf(0);
12880 ; return 0; }
12881 EOF
12882 if { (eval echo configure:12883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12883   rm -rf conftest*
12884   glibcpp_cv_func_isnanf_use=yes
12885 else
12886   echo "configure: failed program was:" >&5
12887   cat conftest.$ac_ext >&5
12888   rm -rf conftest*
12889   glibcpp_cv_func_isnanf_use=no
12890 fi
12891 rm -f conftest*
12892       ac_ext=c
12893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12894 ac_cpp='$CPP $CPPFLAGS'
12895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12897 cross_compiling=$ac_cv_prog_cc_cross
12898
12899     
12900 fi
12901
12902   fi
12903   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12904
12905   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12906     for ac_func in isnanf
12907 do
12908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12909 echo "configure:12910: checking for $ac_func" >&5
12910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12911   echo $ac_n "(cached) $ac_c" 1>&6
12912 else
12913   cat > conftest.$ac_ext <<EOF
12914 #line 12915 "configure"
12915 #include "confdefs.h"
12916 /* System header to define __stub macros and hopefully few prototypes,
12917     which can conflict with char $ac_func(); below.  */
12918 #include <assert.h>
12919 /* Override any gcc2 internal prototype to avoid an error.  */
12920 /* We use char because int might match the return type of a gcc2
12921     builtin and then its argument prototype would still apply.  */
12922 char $ac_func();
12923
12924 int main() {
12925
12926 /* The GNU C library defines this for functions which it implements
12927     to always fail with ENOSYS.  Some functions are actually named
12928     something starting with __ and the normal name is an alias.  */
12929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12930 choke me
12931 #else
12932 $ac_func();
12933 #endif
12934
12935 ; return 0; }
12936 EOF
12937 if { (eval echo configure:12938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12938   rm -rf conftest*
12939   eval "ac_cv_func_$ac_func=yes"
12940 else
12941   echo "configure: failed program was:" >&5
12942   cat conftest.$ac_ext >&5
12943   rm -rf conftest*
12944   eval "ac_cv_func_$ac_func=no"
12945 fi
12946 rm -f conftest*
12947 fi
12948
12949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12950   echo "$ac_t""yes" 1>&6
12951     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12952   cat >> confdefs.h <<EOF
12953 #define $ac_tr_func 1
12954 EOF
12955  
12956 else
12957   echo "$ac_t""no" 1>&6
12958 fi
12959 done
12960     
12961   else
12962     
12963   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12964 echo "configure:12965: checking for _isnanf declaration" >&5
12965   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12966     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12967   echo $ac_n "(cached) $ac_c" 1>&6
12968 else
12969   
12970       
12971       ac_ext=C
12972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12973 ac_cpp='$CXXCPP $CPPFLAGS'
12974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12976 cross_compiling=$ac_cv_prog_cxx_cross
12977
12978       cat > conftest.$ac_ext <<EOF
12979 #line 12980 "configure"
12980 #include "confdefs.h"
12981 #include <math.h>
12982                       #ifdef HAVE_IEEEFP_H
12983                       #include <ieeefp.h>
12984                       #endif
12985                      
12986 int main() {
12987  _isnanf(0);
12988 ; return 0; }
12989 EOF
12990 if { (eval echo configure:12991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12991   rm -rf conftest*
12992   glibcpp_cv_func__isnanf_use=yes
12993 else
12994   echo "configure: failed program was:" >&5
12995   cat conftest.$ac_ext >&5
12996   rm -rf conftest*
12997   glibcpp_cv_func__isnanf_use=no
12998 fi
12999 rm -f conftest*
13000       ac_ext=c
13001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13002 ac_cpp='$CPP $CPPFLAGS'
13003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13005 cross_compiling=$ac_cv_prog_cc_cross
13006
13007     
13008 fi
13009
13010   fi
13011   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13012
13013     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13014       for ac_func in _isnanf
13015 do
13016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13017 echo "configure:13018: checking for $ac_func" >&5
13018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13019   echo $ac_n "(cached) $ac_c" 1>&6
13020 else
13021   cat > conftest.$ac_ext <<EOF
13022 #line 13023 "configure"
13023 #include "confdefs.h"
13024 /* System header to define __stub macros and hopefully few prototypes,
13025     which can conflict with char $ac_func(); below.  */
13026 #include <assert.h>
13027 /* Override any gcc2 internal prototype to avoid an error.  */
13028 /* We use char because int might match the return type of a gcc2
13029     builtin and then its argument prototype would still apply.  */
13030 char $ac_func();
13031
13032 int main() {
13033
13034 /* The GNU C library defines this for functions which it implements
13035     to always fail with ENOSYS.  Some functions are actually named
13036     something starting with __ and the normal name is an alias.  */
13037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13038 choke me
13039 #else
13040 $ac_func();
13041 #endif
13042
13043 ; return 0; }
13044 EOF
13045 if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13046   rm -rf conftest*
13047   eval "ac_cv_func_$ac_func=yes"
13048 else
13049   echo "configure: failed program was:" >&5
13050   cat conftest.$ac_ext >&5
13051   rm -rf conftest*
13052   eval "ac_cv_func_$ac_func=no"
13053 fi
13054 rm -f conftest*
13055 fi
13056
13057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13058   echo "$ac_t""yes" 1>&6
13059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13060   cat >> confdefs.h <<EOF
13061 #define $ac_tr_func 1
13062 EOF
13063  
13064 else
13065   echo "$ac_t""no" 1>&6
13066 fi
13067 done
13068     
13069     fi
13070   fi
13071
13072   
13073   
13074   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13075 echo "configure:13076: checking for isinff declaration" >&5
13076   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13077     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13078   echo $ac_n "(cached) $ac_c" 1>&6
13079 else
13080   
13081       
13082       ac_ext=C
13083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13084 ac_cpp='$CXXCPP $CPPFLAGS'
13085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13087 cross_compiling=$ac_cv_prog_cxx_cross
13088
13089       cat > conftest.$ac_ext <<EOF
13090 #line 13091 "configure"
13091 #include "confdefs.h"
13092 #include <math.h>
13093                       #ifdef HAVE_IEEEFP_H
13094                       #include <ieeefp.h>
13095                       #endif
13096                      
13097 int main() {
13098  isinff(0);
13099 ; return 0; }
13100 EOF
13101 if { (eval echo configure:13102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13102   rm -rf conftest*
13103   glibcpp_cv_func_isinff_use=yes
13104 else
13105   echo "configure: failed program was:" >&5
13106   cat conftest.$ac_ext >&5
13107   rm -rf conftest*
13108   glibcpp_cv_func_isinff_use=no
13109 fi
13110 rm -f conftest*
13111       ac_ext=c
13112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13116 cross_compiling=$ac_cv_prog_cc_cross
13117
13118     
13119 fi
13120
13121   fi
13122   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13123
13124   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13125     for ac_func in isinff
13126 do
13127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13128 echo "configure:13129: checking for $ac_func" >&5
13129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13130   echo $ac_n "(cached) $ac_c" 1>&6
13131 else
13132   cat > conftest.$ac_ext <<EOF
13133 #line 13134 "configure"
13134 #include "confdefs.h"
13135 /* System header to define __stub macros and hopefully few prototypes,
13136     which can conflict with char $ac_func(); below.  */
13137 #include <assert.h>
13138 /* Override any gcc2 internal prototype to avoid an error.  */
13139 /* We use char because int might match the return type of a gcc2
13140     builtin and then its argument prototype would still apply.  */
13141 char $ac_func();
13142
13143 int main() {
13144
13145 /* The GNU C library defines this for functions which it implements
13146     to always fail with ENOSYS.  Some functions are actually named
13147     something starting with __ and the normal name is an alias.  */
13148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13149 choke me
13150 #else
13151 $ac_func();
13152 #endif
13153
13154 ; return 0; }
13155 EOF
13156 if { (eval echo configure:13157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13157   rm -rf conftest*
13158   eval "ac_cv_func_$ac_func=yes"
13159 else
13160   echo "configure: failed program was:" >&5
13161   cat conftest.$ac_ext >&5
13162   rm -rf conftest*
13163   eval "ac_cv_func_$ac_func=no"
13164 fi
13165 rm -f conftest*
13166 fi
13167
13168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13169   echo "$ac_t""yes" 1>&6
13170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13171   cat >> confdefs.h <<EOF
13172 #define $ac_tr_func 1
13173 EOF
13174  
13175 else
13176   echo "$ac_t""no" 1>&6
13177 fi
13178 done
13179     
13180   else
13181     
13182   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13183 echo "configure:13184: checking for _isinff declaration" >&5
13184   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13185     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13186   echo $ac_n "(cached) $ac_c" 1>&6
13187 else
13188   
13189       
13190       ac_ext=C
13191 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13192 ac_cpp='$CXXCPP $CPPFLAGS'
13193 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13194 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13195 cross_compiling=$ac_cv_prog_cxx_cross
13196
13197       cat > conftest.$ac_ext <<EOF
13198 #line 13199 "configure"
13199 #include "confdefs.h"
13200 #include <math.h>
13201                       #ifdef HAVE_IEEEFP_H
13202                       #include <ieeefp.h>
13203                       #endif
13204                      
13205 int main() {
13206  _isinff(0);
13207 ; return 0; }
13208 EOF
13209 if { (eval echo configure:13210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13210   rm -rf conftest*
13211   glibcpp_cv_func__isinff_use=yes
13212 else
13213   echo "configure: failed program was:" >&5
13214   cat conftest.$ac_ext >&5
13215   rm -rf conftest*
13216   glibcpp_cv_func__isinff_use=no
13217 fi
13218 rm -f conftest*
13219       ac_ext=c
13220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13221 ac_cpp='$CPP $CPPFLAGS'
13222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13224 cross_compiling=$ac_cv_prog_cc_cross
13225
13226     
13227 fi
13228
13229   fi
13230   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13231
13232     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13233       for ac_func in _isinff
13234 do
13235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13236 echo "configure:13237: checking for $ac_func" >&5
13237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13238   echo $ac_n "(cached) $ac_c" 1>&6
13239 else
13240   cat > conftest.$ac_ext <<EOF
13241 #line 13242 "configure"
13242 #include "confdefs.h"
13243 /* System header to define __stub macros and hopefully few prototypes,
13244     which can conflict with char $ac_func(); below.  */
13245 #include <assert.h>
13246 /* Override any gcc2 internal prototype to avoid an error.  */
13247 /* We use char because int might match the return type of a gcc2
13248     builtin and then its argument prototype would still apply.  */
13249 char $ac_func();
13250
13251 int main() {
13252
13253 /* The GNU C library defines this for functions which it implements
13254     to always fail with ENOSYS.  Some functions are actually named
13255     something starting with __ and the normal name is an alias.  */
13256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13257 choke me
13258 #else
13259 $ac_func();
13260 #endif
13261
13262 ; return 0; }
13263 EOF
13264 if { (eval echo configure:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13265   rm -rf conftest*
13266   eval "ac_cv_func_$ac_func=yes"
13267 else
13268   echo "configure: failed program was:" >&5
13269   cat conftest.$ac_ext >&5
13270   rm -rf conftest*
13271   eval "ac_cv_func_$ac_func=no"
13272 fi
13273 rm -f conftest*
13274 fi
13275
13276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13277   echo "$ac_t""yes" 1>&6
13278     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13279   cat >> confdefs.h <<EOF
13280 #define $ac_tr_func 1
13281 EOF
13282  
13283 else
13284   echo "$ac_t""no" 1>&6
13285 fi
13286 done
13287     
13288     fi
13289   fi
13290
13291   
13292   
13293   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13294 echo "configure:13295: checking for atan2f declaration" >&5
13295   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13296     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13297   echo $ac_n "(cached) $ac_c" 1>&6
13298 else
13299   
13300       
13301       ac_ext=C
13302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13303 ac_cpp='$CXXCPP $CPPFLAGS'
13304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13306 cross_compiling=$ac_cv_prog_cxx_cross
13307
13308       cat > conftest.$ac_ext <<EOF
13309 #line 13310 "configure"
13310 #include "confdefs.h"
13311 #include <math.h>
13312 int main() {
13313  atan2f(0, 0);
13314 ; return 0; }
13315 EOF
13316 if { (eval echo configure:13317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13317   rm -rf conftest*
13318   glibcpp_cv_func_atan2f_use=yes
13319 else
13320   echo "configure: failed program was:" >&5
13321   cat conftest.$ac_ext >&5
13322   rm -rf conftest*
13323   glibcpp_cv_func_atan2f_use=no
13324 fi
13325 rm -f conftest*
13326       ac_ext=c
13327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13328 ac_cpp='$CPP $CPPFLAGS'
13329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13331 cross_compiling=$ac_cv_prog_cc_cross
13332
13333     
13334 fi
13335
13336   fi
13337   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13338
13339   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13340     for ac_func in atan2f
13341 do
13342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13343 echo "configure:13344: checking for $ac_func" >&5
13344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13345   echo $ac_n "(cached) $ac_c" 1>&6
13346 else
13347   cat > conftest.$ac_ext <<EOF
13348 #line 13349 "configure"
13349 #include "confdefs.h"
13350 /* System header to define __stub macros and hopefully few prototypes,
13351     which can conflict with char $ac_func(); below.  */
13352 #include <assert.h>
13353 /* Override any gcc2 internal prototype to avoid an error.  */
13354 /* We use char because int might match the return type of a gcc2
13355     builtin and then its argument prototype would still apply.  */
13356 char $ac_func();
13357
13358 int main() {
13359
13360 /* The GNU C library defines this for functions which it implements
13361     to always fail with ENOSYS.  Some functions are actually named
13362     something starting with __ and the normal name is an alias.  */
13363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13364 choke me
13365 #else
13366 $ac_func();
13367 #endif
13368
13369 ; return 0; }
13370 EOF
13371 if { (eval echo configure:13372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13372   rm -rf conftest*
13373   eval "ac_cv_func_$ac_func=yes"
13374 else
13375   echo "configure: failed program was:" >&5
13376   cat conftest.$ac_ext >&5
13377   rm -rf conftest*
13378   eval "ac_cv_func_$ac_func=no"
13379 fi
13380 rm -f conftest*
13381 fi
13382
13383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13384   echo "$ac_t""yes" 1>&6
13385     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13386   cat >> confdefs.h <<EOF
13387 #define $ac_tr_func 1
13388 EOF
13389  
13390 else
13391   echo "$ac_t""no" 1>&6
13392 fi
13393 done
13394     
13395   else
13396     
13397   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13398 echo "configure:13399: checking for _atan2f declaration" >&5
13399   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13400     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13401   echo $ac_n "(cached) $ac_c" 1>&6
13402 else
13403   
13404       
13405       ac_ext=C
13406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13407 ac_cpp='$CXXCPP $CPPFLAGS'
13408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13410 cross_compiling=$ac_cv_prog_cxx_cross
13411
13412       cat > conftest.$ac_ext <<EOF
13413 #line 13414 "configure"
13414 #include "confdefs.h"
13415 #include <math.h>
13416 int main() {
13417  _atan2f(0, 0);
13418 ; return 0; }
13419 EOF
13420 if { (eval echo configure:13421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13421   rm -rf conftest*
13422   glibcpp_cv_func__atan2f_use=yes
13423 else
13424   echo "configure: failed program was:" >&5
13425   cat conftest.$ac_ext >&5
13426   rm -rf conftest*
13427   glibcpp_cv_func__atan2f_use=no
13428 fi
13429 rm -f conftest*
13430       ac_ext=c
13431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13432 ac_cpp='$CPP $CPPFLAGS'
13433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13435 cross_compiling=$ac_cv_prog_cc_cross
13436
13437     
13438 fi
13439
13440   fi
13441   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13442
13443     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13444       for ac_func in _atan2f
13445 do
13446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13447 echo "configure:13448: checking for $ac_func" >&5
13448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13449   echo $ac_n "(cached) $ac_c" 1>&6
13450 else
13451   cat > conftest.$ac_ext <<EOF
13452 #line 13453 "configure"
13453 #include "confdefs.h"
13454 /* System header to define __stub macros and hopefully few prototypes,
13455     which can conflict with char $ac_func(); below.  */
13456 #include <assert.h>
13457 /* Override any gcc2 internal prototype to avoid an error.  */
13458 /* We use char because int might match the return type of a gcc2
13459     builtin and then its argument prototype would still apply.  */
13460 char $ac_func();
13461
13462 int main() {
13463
13464 /* The GNU C library defines this for functions which it implements
13465     to always fail with ENOSYS.  Some functions are actually named
13466     something starting with __ and the normal name is an alias.  */
13467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13468 choke me
13469 #else
13470 $ac_func();
13471 #endif
13472
13473 ; return 0; }
13474 EOF
13475 if { (eval echo configure:13476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13476   rm -rf conftest*
13477   eval "ac_cv_func_$ac_func=yes"
13478 else
13479   echo "configure: failed program was:" >&5
13480   cat conftest.$ac_ext >&5
13481   rm -rf conftest*
13482   eval "ac_cv_func_$ac_func=no"
13483 fi
13484 rm -f conftest*
13485 fi
13486
13487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13488   echo "$ac_t""yes" 1>&6
13489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13490   cat >> confdefs.h <<EOF
13491 #define $ac_tr_func 1
13492 EOF
13493  
13494 else
13495   echo "$ac_t""no" 1>&6
13496 fi
13497 done
13498     
13499     fi
13500   fi
13501
13502   
13503   
13504   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13505 echo "configure:13506: checking for fabsf declaration" >&5
13506   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13507     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13508   echo $ac_n "(cached) $ac_c" 1>&6
13509 else
13510   
13511       
13512       ac_ext=C
13513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13514 ac_cpp='$CXXCPP $CPPFLAGS'
13515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13517 cross_compiling=$ac_cv_prog_cxx_cross
13518
13519       cat > conftest.$ac_ext <<EOF
13520 #line 13521 "configure"
13521 #include "confdefs.h"
13522 #include <math.h>
13523                       #ifdef HAVE_IEEEFP_H
13524                       #include <ieeefp.h>
13525                       #endif
13526                      
13527 int main() {
13528  fabsf(0);
13529 ; return 0; }
13530 EOF
13531 if { (eval echo configure:13532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13532   rm -rf conftest*
13533   glibcpp_cv_func_fabsf_use=yes
13534 else
13535   echo "configure: failed program was:" >&5
13536   cat conftest.$ac_ext >&5
13537   rm -rf conftest*
13538   glibcpp_cv_func_fabsf_use=no
13539 fi
13540 rm -f conftest*
13541       ac_ext=c
13542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13543 ac_cpp='$CPP $CPPFLAGS'
13544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13546 cross_compiling=$ac_cv_prog_cc_cross
13547
13548     
13549 fi
13550
13551   fi
13552   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13553
13554   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13555     for ac_func in fabsf
13556 do
13557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13558 echo "configure:13559: checking for $ac_func" >&5
13559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13560   echo $ac_n "(cached) $ac_c" 1>&6
13561 else
13562   cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13565 /* System header to define __stub macros and hopefully few prototypes,
13566     which can conflict with char $ac_func(); below.  */
13567 #include <assert.h>
13568 /* Override any gcc2 internal prototype to avoid an error.  */
13569 /* We use char because int might match the return type of a gcc2
13570     builtin and then its argument prototype would still apply.  */
13571 char $ac_func();
13572
13573 int main() {
13574
13575 /* The GNU C library defines this for functions which it implements
13576     to always fail with ENOSYS.  Some functions are actually named
13577     something starting with __ and the normal name is an alias.  */
13578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13579 choke me
13580 #else
13581 $ac_func();
13582 #endif
13583
13584 ; return 0; }
13585 EOF
13586 if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13587   rm -rf conftest*
13588   eval "ac_cv_func_$ac_func=yes"
13589 else
13590   echo "configure: failed program was:" >&5
13591   cat conftest.$ac_ext >&5
13592   rm -rf conftest*
13593   eval "ac_cv_func_$ac_func=no"
13594 fi
13595 rm -f conftest*
13596 fi
13597
13598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13599   echo "$ac_t""yes" 1>&6
13600     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13601   cat >> confdefs.h <<EOF
13602 #define $ac_tr_func 1
13603 EOF
13604  
13605 else
13606   echo "$ac_t""no" 1>&6
13607 fi
13608 done
13609     
13610   else
13611     
13612   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13613 echo "configure:13614: checking for _fabsf declaration" >&5
13614   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13615     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13616   echo $ac_n "(cached) $ac_c" 1>&6
13617 else
13618   
13619       
13620       ac_ext=C
13621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13622 ac_cpp='$CXXCPP $CPPFLAGS'
13623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13625 cross_compiling=$ac_cv_prog_cxx_cross
13626
13627       cat > conftest.$ac_ext <<EOF
13628 #line 13629 "configure"
13629 #include "confdefs.h"
13630 #include <math.h>
13631                       #ifdef HAVE_IEEEFP_H
13632                       #include <ieeefp.h>
13633                       #endif
13634                      
13635 int main() {
13636  _fabsf(0);
13637 ; return 0; }
13638 EOF
13639 if { (eval echo configure:13640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13640   rm -rf conftest*
13641   glibcpp_cv_func__fabsf_use=yes
13642 else
13643   echo "configure: failed program was:" >&5
13644   cat conftest.$ac_ext >&5
13645   rm -rf conftest*
13646   glibcpp_cv_func__fabsf_use=no
13647 fi
13648 rm -f conftest*
13649       ac_ext=c
13650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13651 ac_cpp='$CPP $CPPFLAGS'
13652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13654 cross_compiling=$ac_cv_prog_cc_cross
13655
13656     
13657 fi
13658
13659   fi
13660   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13661
13662     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13663       for ac_func in _fabsf
13664 do
13665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13666 echo "configure:13667: checking for $ac_func" >&5
13667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13668   echo $ac_n "(cached) $ac_c" 1>&6
13669 else
13670   cat > conftest.$ac_ext <<EOF
13671 #line 13672 "configure"
13672 #include "confdefs.h"
13673 /* System header to define __stub macros and hopefully few prototypes,
13674     which can conflict with char $ac_func(); below.  */
13675 #include <assert.h>
13676 /* Override any gcc2 internal prototype to avoid an error.  */
13677 /* We use char because int might match the return type of a gcc2
13678     builtin and then its argument prototype would still apply.  */
13679 char $ac_func();
13680
13681 int main() {
13682
13683 /* The GNU C library defines this for functions which it implements
13684     to always fail with ENOSYS.  Some functions are actually named
13685     something starting with __ and the normal name is an alias.  */
13686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13687 choke me
13688 #else
13689 $ac_func();
13690 #endif
13691
13692 ; return 0; }
13693 EOF
13694 if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13695   rm -rf conftest*
13696   eval "ac_cv_func_$ac_func=yes"
13697 else
13698   echo "configure: failed program was:" >&5
13699   cat conftest.$ac_ext >&5
13700   rm -rf conftest*
13701   eval "ac_cv_func_$ac_func=no"
13702 fi
13703 rm -f conftest*
13704 fi
13705
13706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13707   echo "$ac_t""yes" 1>&6
13708     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13709   cat >> confdefs.h <<EOF
13710 #define $ac_tr_func 1
13711 EOF
13712  
13713 else
13714   echo "$ac_t""no" 1>&6
13715 fi
13716 done
13717     
13718     fi
13719   fi
13720
13721   
13722   
13723   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13724 echo "configure:13725: checking for fmodf declaration" >&5
13725   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13726     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13727   echo $ac_n "(cached) $ac_c" 1>&6
13728 else
13729   
13730       
13731       ac_ext=C
13732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13733 ac_cpp='$CXXCPP $CPPFLAGS'
13734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13736 cross_compiling=$ac_cv_prog_cxx_cross
13737
13738       cat > conftest.$ac_ext <<EOF
13739 #line 13740 "configure"
13740 #include "confdefs.h"
13741 #include <math.h>
13742 int main() {
13743  fmodf(0, 0);
13744 ; return 0; }
13745 EOF
13746 if { (eval echo configure:13747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13747   rm -rf conftest*
13748   glibcpp_cv_func_fmodf_use=yes
13749 else
13750   echo "configure: failed program was:" >&5
13751   cat conftest.$ac_ext >&5
13752   rm -rf conftest*
13753   glibcpp_cv_func_fmodf_use=no
13754 fi
13755 rm -f conftest*
13756       ac_ext=c
13757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13761 cross_compiling=$ac_cv_prog_cc_cross
13762
13763     
13764 fi
13765
13766   fi
13767   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13768
13769   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13770     for ac_func in fmodf
13771 do
13772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13773 echo "configure:13774: checking for $ac_func" >&5
13774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13775   echo $ac_n "(cached) $ac_c" 1>&6
13776 else
13777   cat > conftest.$ac_ext <<EOF
13778 #line 13779 "configure"
13779 #include "confdefs.h"
13780 /* System header to define __stub macros and hopefully few prototypes,
13781     which can conflict with char $ac_func(); below.  */
13782 #include <assert.h>
13783 /* Override any gcc2 internal prototype to avoid an error.  */
13784 /* We use char because int might match the return type of a gcc2
13785     builtin and then its argument prototype would still apply.  */
13786 char $ac_func();
13787
13788 int main() {
13789
13790 /* The GNU C library defines this for functions which it implements
13791     to always fail with ENOSYS.  Some functions are actually named
13792     something starting with __ and the normal name is an alias.  */
13793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13794 choke me
13795 #else
13796 $ac_func();
13797 #endif
13798
13799 ; return 0; }
13800 EOF
13801 if { (eval echo configure:13802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13802   rm -rf conftest*
13803   eval "ac_cv_func_$ac_func=yes"
13804 else
13805   echo "configure: failed program was:" >&5
13806   cat conftest.$ac_ext >&5
13807   rm -rf conftest*
13808   eval "ac_cv_func_$ac_func=no"
13809 fi
13810 rm -f conftest*
13811 fi
13812
13813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13814   echo "$ac_t""yes" 1>&6
13815     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13816   cat >> confdefs.h <<EOF
13817 #define $ac_tr_func 1
13818 EOF
13819  
13820 else
13821   echo "$ac_t""no" 1>&6
13822 fi
13823 done
13824     
13825   else
13826     
13827   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13828 echo "configure:13829: checking for _fmodf declaration" >&5
13829   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13830     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13831   echo $ac_n "(cached) $ac_c" 1>&6
13832 else
13833   
13834       
13835       ac_ext=C
13836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13837 ac_cpp='$CXXCPP $CPPFLAGS'
13838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13840 cross_compiling=$ac_cv_prog_cxx_cross
13841
13842       cat > conftest.$ac_ext <<EOF
13843 #line 13844 "configure"
13844 #include "confdefs.h"
13845 #include <math.h>
13846 int main() {
13847  _fmodf(0, 0);
13848 ; return 0; }
13849 EOF
13850 if { (eval echo configure:13851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13851   rm -rf conftest*
13852   glibcpp_cv_func__fmodf_use=yes
13853 else
13854   echo "configure: failed program was:" >&5
13855   cat conftest.$ac_ext >&5
13856   rm -rf conftest*
13857   glibcpp_cv_func__fmodf_use=no
13858 fi
13859 rm -f conftest*
13860       ac_ext=c
13861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13862 ac_cpp='$CPP $CPPFLAGS'
13863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13865 cross_compiling=$ac_cv_prog_cc_cross
13866
13867     
13868 fi
13869
13870   fi
13871   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13872
13873     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13874       for ac_func in _fmodf
13875 do
13876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13877 echo "configure:13878: checking for $ac_func" >&5
13878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13879   echo $ac_n "(cached) $ac_c" 1>&6
13880 else
13881   cat > conftest.$ac_ext <<EOF
13882 #line 13883 "configure"
13883 #include "confdefs.h"
13884 /* System header to define __stub macros and hopefully few prototypes,
13885     which can conflict with char $ac_func(); below.  */
13886 #include <assert.h>
13887 /* Override any gcc2 internal prototype to avoid an error.  */
13888 /* We use char because int might match the return type of a gcc2
13889     builtin and then its argument prototype would still apply.  */
13890 char $ac_func();
13891
13892 int main() {
13893
13894 /* The GNU C library defines this for functions which it implements
13895     to always fail with ENOSYS.  Some functions are actually named
13896     something starting with __ and the normal name is an alias.  */
13897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13898 choke me
13899 #else
13900 $ac_func();
13901 #endif
13902
13903 ; return 0; }
13904 EOF
13905 if { (eval echo configure:13906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13906   rm -rf conftest*
13907   eval "ac_cv_func_$ac_func=yes"
13908 else
13909   echo "configure: failed program was:" >&5
13910   cat conftest.$ac_ext >&5
13911   rm -rf conftest*
13912   eval "ac_cv_func_$ac_func=no"
13913 fi
13914 rm -f conftest*
13915 fi
13916
13917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13918   echo "$ac_t""yes" 1>&6
13919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13920   cat >> confdefs.h <<EOF
13921 #define $ac_tr_func 1
13922 EOF
13923  
13924 else
13925   echo "$ac_t""no" 1>&6
13926 fi
13927 done
13928     
13929     fi
13930   fi
13931
13932   
13933   
13934   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13935 echo "configure:13936: checking for frexpf declaration" >&5
13936   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13937     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13938   echo $ac_n "(cached) $ac_c" 1>&6
13939 else
13940   
13941       
13942       ac_ext=C
13943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13944 ac_cpp='$CXXCPP $CPPFLAGS'
13945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13947 cross_compiling=$ac_cv_prog_cxx_cross
13948
13949       cat > conftest.$ac_ext <<EOF
13950 #line 13951 "configure"
13951 #include "confdefs.h"
13952 #include <math.h>
13953 int main() {
13954  frexpf(0, 0);
13955 ; return 0; }
13956 EOF
13957 if { (eval echo configure:13958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13958   rm -rf conftest*
13959   glibcpp_cv_func_frexpf_use=yes
13960 else
13961   echo "configure: failed program was:" >&5
13962   cat conftest.$ac_ext >&5
13963   rm -rf conftest*
13964   glibcpp_cv_func_frexpf_use=no
13965 fi
13966 rm -f conftest*
13967       ac_ext=c
13968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13969 ac_cpp='$CPP $CPPFLAGS'
13970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13972 cross_compiling=$ac_cv_prog_cc_cross
13973
13974     
13975 fi
13976
13977   fi
13978   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13979
13980   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13981     for ac_func in frexpf
13982 do
13983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13984 echo "configure:13985: checking for $ac_func" >&5
13985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13986   echo $ac_n "(cached) $ac_c" 1>&6
13987 else
13988   cat > conftest.$ac_ext <<EOF
13989 #line 13990 "configure"
13990 #include "confdefs.h"
13991 /* System header to define __stub macros and hopefully few prototypes,
13992     which can conflict with char $ac_func(); below.  */
13993 #include <assert.h>
13994 /* Override any gcc2 internal prototype to avoid an error.  */
13995 /* We use char because int might match the return type of a gcc2
13996     builtin and then its argument prototype would still apply.  */
13997 char $ac_func();
13998
13999 int main() {
14000
14001 /* The GNU C library defines this for functions which it implements
14002     to always fail with ENOSYS.  Some functions are actually named
14003     something starting with __ and the normal name is an alias.  */
14004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14005 choke me
14006 #else
14007 $ac_func();
14008 #endif
14009
14010 ; return 0; }
14011 EOF
14012 if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14013   rm -rf conftest*
14014   eval "ac_cv_func_$ac_func=yes"
14015 else
14016   echo "configure: failed program was:" >&5
14017   cat conftest.$ac_ext >&5
14018   rm -rf conftest*
14019   eval "ac_cv_func_$ac_func=no"
14020 fi
14021 rm -f conftest*
14022 fi
14023
14024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14025   echo "$ac_t""yes" 1>&6
14026     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14027   cat >> confdefs.h <<EOF
14028 #define $ac_tr_func 1
14029 EOF
14030  
14031 else
14032   echo "$ac_t""no" 1>&6
14033 fi
14034 done
14035     
14036   else
14037     
14038   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14039 echo "configure:14040: checking for _frexpf declaration" >&5
14040   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14041     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14042   echo $ac_n "(cached) $ac_c" 1>&6
14043 else
14044   
14045       
14046       ac_ext=C
14047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14048 ac_cpp='$CXXCPP $CPPFLAGS'
14049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14051 cross_compiling=$ac_cv_prog_cxx_cross
14052
14053       cat > conftest.$ac_ext <<EOF
14054 #line 14055 "configure"
14055 #include "confdefs.h"
14056 #include <math.h>
14057 int main() {
14058  _frexpf(0, 0);
14059 ; return 0; }
14060 EOF
14061 if { (eval echo configure:14062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14062   rm -rf conftest*
14063   glibcpp_cv_func__frexpf_use=yes
14064 else
14065   echo "configure: failed program was:" >&5
14066   cat conftest.$ac_ext >&5
14067   rm -rf conftest*
14068   glibcpp_cv_func__frexpf_use=no
14069 fi
14070 rm -f conftest*
14071       ac_ext=c
14072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14076 cross_compiling=$ac_cv_prog_cc_cross
14077
14078     
14079 fi
14080
14081   fi
14082   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14083
14084     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14085       for ac_func in _frexpf
14086 do
14087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14088 echo "configure:14089: checking for $ac_func" >&5
14089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14090   echo $ac_n "(cached) $ac_c" 1>&6
14091 else
14092   cat > conftest.$ac_ext <<EOF
14093 #line 14094 "configure"
14094 #include "confdefs.h"
14095 /* System header to define __stub macros and hopefully few prototypes,
14096     which can conflict with char $ac_func(); below.  */
14097 #include <assert.h>
14098 /* Override any gcc2 internal prototype to avoid an error.  */
14099 /* We use char because int might match the return type of a gcc2
14100     builtin and then its argument prototype would still apply.  */
14101 char $ac_func();
14102
14103 int main() {
14104
14105 /* The GNU C library defines this for functions which it implements
14106     to always fail with ENOSYS.  Some functions are actually named
14107     something starting with __ and the normal name is an alias.  */
14108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14109 choke me
14110 #else
14111 $ac_func();
14112 #endif
14113
14114 ; return 0; }
14115 EOF
14116 if { (eval echo configure:14117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14117   rm -rf conftest*
14118   eval "ac_cv_func_$ac_func=yes"
14119 else
14120   echo "configure: failed program was:" >&5
14121   cat conftest.$ac_ext >&5
14122   rm -rf conftest*
14123   eval "ac_cv_func_$ac_func=no"
14124 fi
14125 rm -f conftest*
14126 fi
14127
14128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14129   echo "$ac_t""yes" 1>&6
14130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14131   cat >> confdefs.h <<EOF
14132 #define $ac_tr_func 1
14133 EOF
14134  
14135 else
14136   echo "$ac_t""no" 1>&6
14137 fi
14138 done
14139     
14140     fi
14141   fi
14142
14143   
14144   
14145   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14146 echo "configure:14147: checking for hypotf declaration" >&5
14147   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14148     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14149   echo $ac_n "(cached) $ac_c" 1>&6
14150 else
14151   
14152       
14153       ac_ext=C
14154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14155 ac_cpp='$CXXCPP $CPPFLAGS'
14156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14158 cross_compiling=$ac_cv_prog_cxx_cross
14159
14160       cat > conftest.$ac_ext <<EOF
14161 #line 14162 "configure"
14162 #include "confdefs.h"
14163 #include <math.h>
14164 int main() {
14165  hypotf(0, 0);
14166 ; return 0; }
14167 EOF
14168 if { (eval echo configure:14169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14169   rm -rf conftest*
14170   glibcpp_cv_func_hypotf_use=yes
14171 else
14172   echo "configure: failed program was:" >&5
14173   cat conftest.$ac_ext >&5
14174   rm -rf conftest*
14175   glibcpp_cv_func_hypotf_use=no
14176 fi
14177 rm -f conftest*
14178       ac_ext=c
14179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14180 ac_cpp='$CPP $CPPFLAGS'
14181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14183 cross_compiling=$ac_cv_prog_cc_cross
14184
14185     
14186 fi
14187
14188   fi
14189   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14190
14191   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14192     for ac_func in hypotf
14193 do
14194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14195 echo "configure:14196: checking for $ac_func" >&5
14196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14197   echo $ac_n "(cached) $ac_c" 1>&6
14198 else
14199   cat > conftest.$ac_ext <<EOF
14200 #line 14201 "configure"
14201 #include "confdefs.h"
14202 /* System header to define __stub macros and hopefully few prototypes,
14203     which can conflict with char $ac_func(); below.  */
14204 #include <assert.h>
14205 /* Override any gcc2 internal prototype to avoid an error.  */
14206 /* We use char because int might match the return type of a gcc2
14207     builtin and then its argument prototype would still apply.  */
14208 char $ac_func();
14209
14210 int main() {
14211
14212 /* The GNU C library defines this for functions which it implements
14213     to always fail with ENOSYS.  Some functions are actually named
14214     something starting with __ and the normal name is an alias.  */
14215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14216 choke me
14217 #else
14218 $ac_func();
14219 #endif
14220
14221 ; return 0; }
14222 EOF
14223 if { (eval echo configure:14224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14224   rm -rf conftest*
14225   eval "ac_cv_func_$ac_func=yes"
14226 else
14227   echo "configure: failed program was:" >&5
14228   cat conftest.$ac_ext >&5
14229   rm -rf conftest*
14230   eval "ac_cv_func_$ac_func=no"
14231 fi
14232 rm -f conftest*
14233 fi
14234
14235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14236   echo "$ac_t""yes" 1>&6
14237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14238   cat >> confdefs.h <<EOF
14239 #define $ac_tr_func 1
14240 EOF
14241  
14242 else
14243   echo "$ac_t""no" 1>&6
14244 fi
14245 done
14246     
14247   else
14248     
14249   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14250 echo "configure:14251: checking for _hypotf declaration" >&5
14251   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14252     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14253   echo $ac_n "(cached) $ac_c" 1>&6
14254 else
14255   
14256       
14257       ac_ext=C
14258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14259 ac_cpp='$CXXCPP $CPPFLAGS'
14260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14262 cross_compiling=$ac_cv_prog_cxx_cross
14263
14264       cat > conftest.$ac_ext <<EOF
14265 #line 14266 "configure"
14266 #include "confdefs.h"
14267 #include <math.h>
14268 int main() {
14269  _hypotf(0, 0);
14270 ; return 0; }
14271 EOF
14272 if { (eval echo configure:14273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14273   rm -rf conftest*
14274   glibcpp_cv_func__hypotf_use=yes
14275 else
14276   echo "configure: failed program was:" >&5
14277   cat conftest.$ac_ext >&5
14278   rm -rf conftest*
14279   glibcpp_cv_func__hypotf_use=no
14280 fi
14281 rm -f conftest*
14282       ac_ext=c
14283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14284 ac_cpp='$CPP $CPPFLAGS'
14285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14287 cross_compiling=$ac_cv_prog_cc_cross
14288
14289     
14290 fi
14291
14292   fi
14293   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14294
14295     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14296       for ac_func in _hypotf
14297 do
14298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14299 echo "configure:14300: checking for $ac_func" >&5
14300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14301   echo $ac_n "(cached) $ac_c" 1>&6
14302 else
14303   cat > conftest.$ac_ext <<EOF
14304 #line 14305 "configure"
14305 #include "confdefs.h"
14306 /* System header to define __stub macros and hopefully few prototypes,
14307     which can conflict with char $ac_func(); below.  */
14308 #include <assert.h>
14309 /* Override any gcc2 internal prototype to avoid an error.  */
14310 /* We use char because int might match the return type of a gcc2
14311     builtin and then its argument prototype would still apply.  */
14312 char $ac_func();
14313
14314 int main() {
14315
14316 /* The GNU C library defines this for functions which it implements
14317     to always fail with ENOSYS.  Some functions are actually named
14318     something starting with __ and the normal name is an alias.  */
14319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14320 choke me
14321 #else
14322 $ac_func();
14323 #endif
14324
14325 ; return 0; }
14326 EOF
14327 if { (eval echo configure:14328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14328   rm -rf conftest*
14329   eval "ac_cv_func_$ac_func=yes"
14330 else
14331   echo "configure: failed program was:" >&5
14332   cat conftest.$ac_ext >&5
14333   rm -rf conftest*
14334   eval "ac_cv_func_$ac_func=no"
14335 fi
14336 rm -f conftest*
14337 fi
14338
14339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14340   echo "$ac_t""yes" 1>&6
14341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14342   cat >> confdefs.h <<EOF
14343 #define $ac_tr_func 1
14344 EOF
14345  
14346 else
14347   echo "$ac_t""no" 1>&6
14348 fi
14349 done
14350     
14351     fi
14352   fi
14353
14354   
14355   
14356   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14357 echo "configure:14358: checking for ldexpf declaration" >&5
14358   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14359     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14360   echo $ac_n "(cached) $ac_c" 1>&6
14361 else
14362   
14363       
14364       ac_ext=C
14365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14366 ac_cpp='$CXXCPP $CPPFLAGS'
14367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14369 cross_compiling=$ac_cv_prog_cxx_cross
14370
14371       cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14374 #include <math.h>
14375 int main() {
14376  ldexpf(0, 0);
14377 ; return 0; }
14378 EOF
14379 if { (eval echo configure:14380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14380   rm -rf conftest*
14381   glibcpp_cv_func_ldexpf_use=yes
14382 else
14383   echo "configure: failed program was:" >&5
14384   cat conftest.$ac_ext >&5
14385   rm -rf conftest*
14386   glibcpp_cv_func_ldexpf_use=no
14387 fi
14388 rm -f conftest*
14389       ac_ext=c
14390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14391 ac_cpp='$CPP $CPPFLAGS'
14392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14394 cross_compiling=$ac_cv_prog_cc_cross
14395
14396     
14397 fi
14398
14399   fi
14400   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14401
14402   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14403     for ac_func in ldexpf
14404 do
14405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14406 echo "configure:14407: checking for $ac_func" >&5
14407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14408   echo $ac_n "(cached) $ac_c" 1>&6
14409 else
14410   cat > conftest.$ac_ext <<EOF
14411 #line 14412 "configure"
14412 #include "confdefs.h"
14413 /* System header to define __stub macros and hopefully few prototypes,
14414     which can conflict with char $ac_func(); below.  */
14415 #include <assert.h>
14416 /* Override any gcc2 internal prototype to avoid an error.  */
14417 /* We use char because int might match the return type of a gcc2
14418     builtin and then its argument prototype would still apply.  */
14419 char $ac_func();
14420
14421 int main() {
14422
14423 /* The GNU C library defines this for functions which it implements
14424     to always fail with ENOSYS.  Some functions are actually named
14425     something starting with __ and the normal name is an alias.  */
14426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14427 choke me
14428 #else
14429 $ac_func();
14430 #endif
14431
14432 ; return 0; }
14433 EOF
14434 if { (eval echo configure:14435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14435   rm -rf conftest*
14436   eval "ac_cv_func_$ac_func=yes"
14437 else
14438   echo "configure: failed program was:" >&5
14439   cat conftest.$ac_ext >&5
14440   rm -rf conftest*
14441   eval "ac_cv_func_$ac_func=no"
14442 fi
14443 rm -f conftest*
14444 fi
14445
14446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14447   echo "$ac_t""yes" 1>&6
14448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14449   cat >> confdefs.h <<EOF
14450 #define $ac_tr_func 1
14451 EOF
14452  
14453 else
14454   echo "$ac_t""no" 1>&6
14455 fi
14456 done
14457     
14458   else
14459     
14460   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14461 echo "configure:14462: checking for _ldexpf declaration" >&5
14462   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14463     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14464   echo $ac_n "(cached) $ac_c" 1>&6
14465 else
14466   
14467       
14468       ac_ext=C
14469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14470 ac_cpp='$CXXCPP $CPPFLAGS'
14471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14473 cross_compiling=$ac_cv_prog_cxx_cross
14474
14475       cat > conftest.$ac_ext <<EOF
14476 #line 14477 "configure"
14477 #include "confdefs.h"
14478 #include <math.h>
14479 int main() {
14480  _ldexpf(0, 0);
14481 ; return 0; }
14482 EOF
14483 if { (eval echo configure:14484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14484   rm -rf conftest*
14485   glibcpp_cv_func__ldexpf_use=yes
14486 else
14487   echo "configure: failed program was:" >&5
14488   cat conftest.$ac_ext >&5
14489   rm -rf conftest*
14490   glibcpp_cv_func__ldexpf_use=no
14491 fi
14492 rm -f conftest*
14493       ac_ext=c
14494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14495 ac_cpp='$CPP $CPPFLAGS'
14496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14498 cross_compiling=$ac_cv_prog_cc_cross
14499
14500     
14501 fi
14502
14503   fi
14504   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14505
14506     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14507       for ac_func in _ldexpf
14508 do
14509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14510 echo "configure:14511: checking for $ac_func" >&5
14511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14512   echo $ac_n "(cached) $ac_c" 1>&6
14513 else
14514   cat > conftest.$ac_ext <<EOF
14515 #line 14516 "configure"
14516 #include "confdefs.h"
14517 /* System header to define __stub macros and hopefully few prototypes,
14518     which can conflict with char $ac_func(); below.  */
14519 #include <assert.h>
14520 /* Override any gcc2 internal prototype to avoid an error.  */
14521 /* We use char because int might match the return type of a gcc2
14522     builtin and then its argument prototype would still apply.  */
14523 char $ac_func();
14524
14525 int main() {
14526
14527 /* The GNU C library defines this for functions which it implements
14528     to always fail with ENOSYS.  Some functions are actually named
14529     something starting with __ and the normal name is an alias.  */
14530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14531 choke me
14532 #else
14533 $ac_func();
14534 #endif
14535
14536 ; return 0; }
14537 EOF
14538 if { (eval echo configure:14539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14539   rm -rf conftest*
14540   eval "ac_cv_func_$ac_func=yes"
14541 else
14542   echo "configure: failed program was:" >&5
14543   cat conftest.$ac_ext >&5
14544   rm -rf conftest*
14545   eval "ac_cv_func_$ac_func=no"
14546 fi
14547 rm -f conftest*
14548 fi
14549
14550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14551   echo "$ac_t""yes" 1>&6
14552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14553   cat >> confdefs.h <<EOF
14554 #define $ac_tr_func 1
14555 EOF
14556  
14557 else
14558   echo "$ac_t""no" 1>&6
14559 fi
14560 done
14561     
14562     fi
14563   fi
14564
14565   
14566   
14567   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14568 echo "configure:14569: checking for logf declaration" >&5
14569   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14570     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14571   echo $ac_n "(cached) $ac_c" 1>&6
14572 else
14573   
14574       
14575       ac_ext=C
14576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14577 ac_cpp='$CXXCPP $CPPFLAGS'
14578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14580 cross_compiling=$ac_cv_prog_cxx_cross
14581
14582       cat > conftest.$ac_ext <<EOF
14583 #line 14584 "configure"
14584 #include "confdefs.h"
14585 #include <math.h>
14586                       #ifdef HAVE_IEEEFP_H
14587                       #include <ieeefp.h>
14588                       #endif
14589                      
14590 int main() {
14591  logf(0);
14592 ; return 0; }
14593 EOF
14594 if { (eval echo configure:14595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14595   rm -rf conftest*
14596   glibcpp_cv_func_logf_use=yes
14597 else
14598   echo "configure: failed program was:" >&5
14599   cat conftest.$ac_ext >&5
14600   rm -rf conftest*
14601   glibcpp_cv_func_logf_use=no
14602 fi
14603 rm -f conftest*
14604       ac_ext=c
14605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14606 ac_cpp='$CPP $CPPFLAGS'
14607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14609 cross_compiling=$ac_cv_prog_cc_cross
14610
14611     
14612 fi
14613
14614   fi
14615   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14616
14617   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14618     for ac_func in logf
14619 do
14620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14621 echo "configure:14622: checking for $ac_func" >&5
14622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14623   echo $ac_n "(cached) $ac_c" 1>&6
14624 else
14625   cat > conftest.$ac_ext <<EOF
14626 #line 14627 "configure"
14627 #include "confdefs.h"
14628 /* System header to define __stub macros and hopefully few prototypes,
14629     which can conflict with char $ac_func(); below.  */
14630 #include <assert.h>
14631 /* Override any gcc2 internal prototype to avoid an error.  */
14632 /* We use char because int might match the return type of a gcc2
14633     builtin and then its argument prototype would still apply.  */
14634 char $ac_func();
14635
14636 int main() {
14637
14638 /* The GNU C library defines this for functions which it implements
14639     to always fail with ENOSYS.  Some functions are actually named
14640     something starting with __ and the normal name is an alias.  */
14641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14642 choke me
14643 #else
14644 $ac_func();
14645 #endif
14646
14647 ; return 0; }
14648 EOF
14649 if { (eval echo configure:14650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14650   rm -rf conftest*
14651   eval "ac_cv_func_$ac_func=yes"
14652 else
14653   echo "configure: failed program was:" >&5
14654   cat conftest.$ac_ext >&5
14655   rm -rf conftest*
14656   eval "ac_cv_func_$ac_func=no"
14657 fi
14658 rm -f conftest*
14659 fi
14660
14661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14662   echo "$ac_t""yes" 1>&6
14663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14664   cat >> confdefs.h <<EOF
14665 #define $ac_tr_func 1
14666 EOF
14667  
14668 else
14669   echo "$ac_t""no" 1>&6
14670 fi
14671 done
14672     
14673   else
14674     
14675   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14676 echo "configure:14677: checking for _logf declaration" >&5
14677   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14678     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14679   echo $ac_n "(cached) $ac_c" 1>&6
14680 else
14681   
14682       
14683       ac_ext=C
14684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14685 ac_cpp='$CXXCPP $CPPFLAGS'
14686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14688 cross_compiling=$ac_cv_prog_cxx_cross
14689
14690       cat > conftest.$ac_ext <<EOF
14691 #line 14692 "configure"
14692 #include "confdefs.h"
14693 #include <math.h>
14694                       #ifdef HAVE_IEEEFP_H
14695                       #include <ieeefp.h>
14696                       #endif
14697                      
14698 int main() {
14699  _logf(0);
14700 ; return 0; }
14701 EOF
14702 if { (eval echo configure:14703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14703   rm -rf conftest*
14704   glibcpp_cv_func__logf_use=yes
14705 else
14706   echo "configure: failed program was:" >&5
14707   cat conftest.$ac_ext >&5
14708   rm -rf conftest*
14709   glibcpp_cv_func__logf_use=no
14710 fi
14711 rm -f conftest*
14712       ac_ext=c
14713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14714 ac_cpp='$CPP $CPPFLAGS'
14715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14717 cross_compiling=$ac_cv_prog_cc_cross
14718
14719     
14720 fi
14721
14722   fi
14723   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14724
14725     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14726       for ac_func in _logf
14727 do
14728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14729 echo "configure:14730: checking for $ac_func" >&5
14730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14731   echo $ac_n "(cached) $ac_c" 1>&6
14732 else
14733   cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14736 /* System header to define __stub macros and hopefully few prototypes,
14737     which can conflict with char $ac_func(); below.  */
14738 #include <assert.h>
14739 /* Override any gcc2 internal prototype to avoid an error.  */
14740 /* We use char because int might match the return type of a gcc2
14741     builtin and then its argument prototype would still apply.  */
14742 char $ac_func();
14743
14744 int main() {
14745
14746 /* The GNU C library defines this for functions which it implements
14747     to always fail with ENOSYS.  Some functions are actually named
14748     something starting with __ and the normal name is an alias.  */
14749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14750 choke me
14751 #else
14752 $ac_func();
14753 #endif
14754
14755 ; return 0; }
14756 EOF
14757 if { (eval echo configure:14758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14758   rm -rf conftest*
14759   eval "ac_cv_func_$ac_func=yes"
14760 else
14761   echo "configure: failed program was:" >&5
14762   cat conftest.$ac_ext >&5
14763   rm -rf conftest*
14764   eval "ac_cv_func_$ac_func=no"
14765 fi
14766 rm -f conftest*
14767 fi
14768
14769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14770   echo "$ac_t""yes" 1>&6
14771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14772   cat >> confdefs.h <<EOF
14773 #define $ac_tr_func 1
14774 EOF
14775  
14776 else
14777   echo "$ac_t""no" 1>&6
14778 fi
14779 done
14780     
14781     fi
14782   fi
14783
14784   
14785   
14786   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14787 echo "configure:14788: checking for log10f declaration" >&5
14788   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14789     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14790   echo $ac_n "(cached) $ac_c" 1>&6
14791 else
14792   
14793       
14794       ac_ext=C
14795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14796 ac_cpp='$CXXCPP $CPPFLAGS'
14797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14799 cross_compiling=$ac_cv_prog_cxx_cross
14800
14801       cat > conftest.$ac_ext <<EOF
14802 #line 14803 "configure"
14803 #include "confdefs.h"
14804 #include <math.h>
14805                       #ifdef HAVE_IEEEFP_H
14806                       #include <ieeefp.h>
14807                       #endif
14808                      
14809 int main() {
14810  log10f(0);
14811 ; return 0; }
14812 EOF
14813 if { (eval echo configure:14814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14814   rm -rf conftest*
14815   glibcpp_cv_func_log10f_use=yes
14816 else
14817   echo "configure: failed program was:" >&5
14818   cat conftest.$ac_ext >&5
14819   rm -rf conftest*
14820   glibcpp_cv_func_log10f_use=no
14821 fi
14822 rm -f conftest*
14823       ac_ext=c
14824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14825 ac_cpp='$CPP $CPPFLAGS'
14826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14828 cross_compiling=$ac_cv_prog_cc_cross
14829
14830     
14831 fi
14832
14833   fi
14834   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14835
14836   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14837     for ac_func in log10f
14838 do
14839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14840 echo "configure:14841: checking for $ac_func" >&5
14841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14842   echo $ac_n "(cached) $ac_c" 1>&6
14843 else
14844   cat > conftest.$ac_ext <<EOF
14845 #line 14846 "configure"
14846 #include "confdefs.h"
14847 /* System header to define __stub macros and hopefully few prototypes,
14848     which can conflict with char $ac_func(); below.  */
14849 #include <assert.h>
14850 /* Override any gcc2 internal prototype to avoid an error.  */
14851 /* We use char because int might match the return type of a gcc2
14852     builtin and then its argument prototype would still apply.  */
14853 char $ac_func();
14854
14855 int main() {
14856
14857 /* The GNU C library defines this for functions which it implements
14858     to always fail with ENOSYS.  Some functions are actually named
14859     something starting with __ and the normal name is an alias.  */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14861 choke me
14862 #else
14863 $ac_func();
14864 #endif
14865
14866 ; return 0; }
14867 EOF
14868 if { (eval echo configure:14869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14869   rm -rf conftest*
14870   eval "ac_cv_func_$ac_func=yes"
14871 else
14872   echo "configure: failed program was:" >&5
14873   cat conftest.$ac_ext >&5
14874   rm -rf conftest*
14875   eval "ac_cv_func_$ac_func=no"
14876 fi
14877 rm -f conftest*
14878 fi
14879
14880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14881   echo "$ac_t""yes" 1>&6
14882     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14883   cat >> confdefs.h <<EOF
14884 #define $ac_tr_func 1
14885 EOF
14886  
14887 else
14888   echo "$ac_t""no" 1>&6
14889 fi
14890 done
14891     
14892   else
14893     
14894   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14895 echo "configure:14896: checking for _log10f declaration" >&5
14896   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14897     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14898   echo $ac_n "(cached) $ac_c" 1>&6
14899 else
14900   
14901       
14902       ac_ext=C
14903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14904 ac_cpp='$CXXCPP $CPPFLAGS'
14905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14907 cross_compiling=$ac_cv_prog_cxx_cross
14908
14909       cat > conftest.$ac_ext <<EOF
14910 #line 14911 "configure"
14911 #include "confdefs.h"
14912 #include <math.h>
14913                       #ifdef HAVE_IEEEFP_H
14914                       #include <ieeefp.h>
14915                       #endif
14916                      
14917 int main() {
14918  _log10f(0);
14919 ; return 0; }
14920 EOF
14921 if { (eval echo configure:14922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14922   rm -rf conftest*
14923   glibcpp_cv_func__log10f_use=yes
14924 else
14925   echo "configure: failed program was:" >&5
14926   cat conftest.$ac_ext >&5
14927   rm -rf conftest*
14928   glibcpp_cv_func__log10f_use=no
14929 fi
14930 rm -f conftest*
14931       ac_ext=c
14932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14933 ac_cpp='$CPP $CPPFLAGS'
14934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14936 cross_compiling=$ac_cv_prog_cc_cross
14937
14938     
14939 fi
14940
14941   fi
14942   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14943
14944     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14945       for ac_func in _log10f
14946 do
14947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14948 echo "configure:14949: checking for $ac_func" >&5
14949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14950   echo $ac_n "(cached) $ac_c" 1>&6
14951 else
14952   cat > conftest.$ac_ext <<EOF
14953 #line 14954 "configure"
14954 #include "confdefs.h"
14955 /* System header to define __stub macros and hopefully few prototypes,
14956     which can conflict with char $ac_func(); below.  */
14957 #include <assert.h>
14958 /* Override any gcc2 internal prototype to avoid an error.  */
14959 /* We use char because int might match the return type of a gcc2
14960     builtin and then its argument prototype would still apply.  */
14961 char $ac_func();
14962
14963 int main() {
14964
14965 /* The GNU C library defines this for functions which it implements
14966     to always fail with ENOSYS.  Some functions are actually named
14967     something starting with __ and the normal name is an alias.  */
14968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14969 choke me
14970 #else
14971 $ac_func();
14972 #endif
14973
14974 ; return 0; }
14975 EOF
14976 if { (eval echo configure:14977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14977   rm -rf conftest*
14978   eval "ac_cv_func_$ac_func=yes"
14979 else
14980   echo "configure: failed program was:" >&5
14981   cat conftest.$ac_ext >&5
14982   rm -rf conftest*
14983   eval "ac_cv_func_$ac_func=no"
14984 fi
14985 rm -f conftest*
14986 fi
14987
14988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14989   echo "$ac_t""yes" 1>&6
14990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14991   cat >> confdefs.h <<EOF
14992 #define $ac_tr_func 1
14993 EOF
14994  
14995 else
14996   echo "$ac_t""no" 1>&6
14997 fi
14998 done
14999     
15000     fi
15001   fi
15002
15003   
15004   
15005   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15006 echo "configure:15007: checking for modff declaration" >&5
15007   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15008     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15009   echo $ac_n "(cached) $ac_c" 1>&6
15010 else
15011   
15012       
15013       ac_ext=C
15014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15015 ac_cpp='$CXXCPP $CPPFLAGS'
15016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15018 cross_compiling=$ac_cv_prog_cxx_cross
15019
15020       cat > conftest.$ac_ext <<EOF
15021 #line 15022 "configure"
15022 #include "confdefs.h"
15023 #include <math.h>
15024 int main() {
15025  modff(0, 0);
15026 ; return 0; }
15027 EOF
15028 if { (eval echo configure:15029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15029   rm -rf conftest*
15030   glibcpp_cv_func_modff_use=yes
15031 else
15032   echo "configure: failed program was:" >&5
15033   cat conftest.$ac_ext >&5
15034   rm -rf conftest*
15035   glibcpp_cv_func_modff_use=no
15036 fi
15037 rm -f conftest*
15038       ac_ext=c
15039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15040 ac_cpp='$CPP $CPPFLAGS'
15041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15043 cross_compiling=$ac_cv_prog_cc_cross
15044
15045     
15046 fi
15047
15048   fi
15049   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15050
15051   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15052     for ac_func in modff
15053 do
15054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15055 echo "configure:15056: checking for $ac_func" >&5
15056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15057   echo $ac_n "(cached) $ac_c" 1>&6
15058 else
15059   cat > conftest.$ac_ext <<EOF
15060 #line 15061 "configure"
15061 #include "confdefs.h"
15062 /* System header to define __stub macros and hopefully few prototypes,
15063     which can conflict with char $ac_func(); below.  */
15064 #include <assert.h>
15065 /* Override any gcc2 internal prototype to avoid an error.  */
15066 /* We use char because int might match the return type of a gcc2
15067     builtin and then its argument prototype would still apply.  */
15068 char $ac_func();
15069
15070 int main() {
15071
15072 /* The GNU C library defines this for functions which it implements
15073     to always fail with ENOSYS.  Some functions are actually named
15074     something starting with __ and the normal name is an alias.  */
15075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15076 choke me
15077 #else
15078 $ac_func();
15079 #endif
15080
15081 ; return 0; }
15082 EOF
15083 if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15084   rm -rf conftest*
15085   eval "ac_cv_func_$ac_func=yes"
15086 else
15087   echo "configure: failed program was:" >&5
15088   cat conftest.$ac_ext >&5
15089   rm -rf conftest*
15090   eval "ac_cv_func_$ac_func=no"
15091 fi
15092 rm -f conftest*
15093 fi
15094
15095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15096   echo "$ac_t""yes" 1>&6
15097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15098   cat >> confdefs.h <<EOF
15099 #define $ac_tr_func 1
15100 EOF
15101  
15102 else
15103   echo "$ac_t""no" 1>&6
15104 fi
15105 done
15106     
15107   else
15108     
15109   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15110 echo "configure:15111: checking for _modff declaration" >&5
15111   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15112     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15113   echo $ac_n "(cached) $ac_c" 1>&6
15114 else
15115   
15116       
15117       ac_ext=C
15118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15119 ac_cpp='$CXXCPP $CPPFLAGS'
15120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15122 cross_compiling=$ac_cv_prog_cxx_cross
15123
15124       cat > conftest.$ac_ext <<EOF
15125 #line 15126 "configure"
15126 #include "confdefs.h"
15127 #include <math.h>
15128 int main() {
15129  _modff(0, 0);
15130 ; return 0; }
15131 EOF
15132 if { (eval echo configure:15133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15133   rm -rf conftest*
15134   glibcpp_cv_func__modff_use=yes
15135 else
15136   echo "configure: failed program was:" >&5
15137   cat conftest.$ac_ext >&5
15138   rm -rf conftest*
15139   glibcpp_cv_func__modff_use=no
15140 fi
15141 rm -f conftest*
15142       ac_ext=c
15143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15144 ac_cpp='$CPP $CPPFLAGS'
15145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15147 cross_compiling=$ac_cv_prog_cc_cross
15148
15149     
15150 fi
15151
15152   fi
15153   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15154
15155     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15156       for ac_func in _modff
15157 do
15158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15159 echo "configure:15160: checking for $ac_func" >&5
15160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15161   echo $ac_n "(cached) $ac_c" 1>&6
15162 else
15163   cat > conftest.$ac_ext <<EOF
15164 #line 15165 "configure"
15165 #include "confdefs.h"
15166 /* System header to define __stub macros and hopefully few prototypes,
15167     which can conflict with char $ac_func(); below.  */
15168 #include <assert.h>
15169 /* Override any gcc2 internal prototype to avoid an error.  */
15170 /* We use char because int might match the return type of a gcc2
15171     builtin and then its argument prototype would still apply.  */
15172 char $ac_func();
15173
15174 int main() {
15175
15176 /* The GNU C library defines this for functions which it implements
15177     to always fail with ENOSYS.  Some functions are actually named
15178     something starting with __ and the normal name is an alias.  */
15179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15180 choke me
15181 #else
15182 $ac_func();
15183 #endif
15184
15185 ; return 0; }
15186 EOF
15187 if { (eval echo configure:15188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15188   rm -rf conftest*
15189   eval "ac_cv_func_$ac_func=yes"
15190 else
15191   echo "configure: failed program was:" >&5
15192   cat conftest.$ac_ext >&5
15193   rm -rf conftest*
15194   eval "ac_cv_func_$ac_func=no"
15195 fi
15196 rm -f conftest*
15197 fi
15198
15199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15200   echo "$ac_t""yes" 1>&6
15201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15202   cat >> confdefs.h <<EOF
15203 #define $ac_tr_func 1
15204 EOF
15205  
15206 else
15207   echo "$ac_t""no" 1>&6
15208 fi
15209 done
15210     
15211     fi
15212   fi
15213
15214   
15215   
15216   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15217 echo "configure:15218: checking for powf declaration" >&5
15218   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15219     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15220   echo $ac_n "(cached) $ac_c" 1>&6
15221 else
15222   
15223       
15224       ac_ext=C
15225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15226 ac_cpp='$CXXCPP $CPPFLAGS'
15227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15229 cross_compiling=$ac_cv_prog_cxx_cross
15230
15231       cat > conftest.$ac_ext <<EOF
15232 #line 15233 "configure"
15233 #include "confdefs.h"
15234 #include <math.h>
15235 int main() {
15236  powf(0, 0);
15237 ; return 0; }
15238 EOF
15239 if { (eval echo configure:15240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15240   rm -rf conftest*
15241   glibcpp_cv_func_powf_use=yes
15242 else
15243   echo "configure: failed program was:" >&5
15244   cat conftest.$ac_ext >&5
15245   rm -rf conftest*
15246   glibcpp_cv_func_powf_use=no
15247 fi
15248 rm -f conftest*
15249       ac_ext=c
15250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15254 cross_compiling=$ac_cv_prog_cc_cross
15255
15256     
15257 fi
15258
15259   fi
15260   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15261
15262   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15263     for ac_func in powf
15264 do
15265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15266 echo "configure:15267: checking for $ac_func" >&5
15267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15268   echo $ac_n "(cached) $ac_c" 1>&6
15269 else
15270   cat > conftest.$ac_ext <<EOF
15271 #line 15272 "configure"
15272 #include "confdefs.h"
15273 /* System header to define __stub macros and hopefully few prototypes,
15274     which can conflict with char $ac_func(); below.  */
15275 #include <assert.h>
15276 /* Override any gcc2 internal prototype to avoid an error.  */
15277 /* We use char because int might match the return type of a gcc2
15278     builtin and then its argument prototype would still apply.  */
15279 char $ac_func();
15280
15281 int main() {
15282
15283 /* The GNU C library defines this for functions which it implements
15284     to always fail with ENOSYS.  Some functions are actually named
15285     something starting with __ and the normal name is an alias.  */
15286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15287 choke me
15288 #else
15289 $ac_func();
15290 #endif
15291
15292 ; return 0; }
15293 EOF
15294 if { (eval echo configure:15295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15295   rm -rf conftest*
15296   eval "ac_cv_func_$ac_func=yes"
15297 else
15298   echo "configure: failed program was:" >&5
15299   cat conftest.$ac_ext >&5
15300   rm -rf conftest*
15301   eval "ac_cv_func_$ac_func=no"
15302 fi
15303 rm -f conftest*
15304 fi
15305
15306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15307   echo "$ac_t""yes" 1>&6
15308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15309   cat >> confdefs.h <<EOF
15310 #define $ac_tr_func 1
15311 EOF
15312  
15313 else
15314   echo "$ac_t""no" 1>&6
15315 fi
15316 done
15317     
15318   else
15319     
15320   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15321 echo "configure:15322: checking for _powf declaration" >&5
15322   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15323     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15324   echo $ac_n "(cached) $ac_c" 1>&6
15325 else
15326   
15327       
15328       ac_ext=C
15329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15330 ac_cpp='$CXXCPP $CPPFLAGS'
15331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15333 cross_compiling=$ac_cv_prog_cxx_cross
15334
15335       cat > conftest.$ac_ext <<EOF
15336 #line 15337 "configure"
15337 #include "confdefs.h"
15338 #include <math.h>
15339 int main() {
15340  _powf(0, 0);
15341 ; return 0; }
15342 EOF
15343 if { (eval echo configure:15344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15344   rm -rf conftest*
15345   glibcpp_cv_func__powf_use=yes
15346 else
15347   echo "configure: failed program was:" >&5
15348   cat conftest.$ac_ext >&5
15349   rm -rf conftest*
15350   glibcpp_cv_func__powf_use=no
15351 fi
15352 rm -f conftest*
15353       ac_ext=c
15354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15355 ac_cpp='$CPP $CPPFLAGS'
15356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15358 cross_compiling=$ac_cv_prog_cc_cross
15359
15360     
15361 fi
15362
15363   fi
15364   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15365
15366     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15367       for ac_func in _powf
15368 do
15369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15370 echo "configure:15371: checking for $ac_func" >&5
15371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15372   echo $ac_n "(cached) $ac_c" 1>&6
15373 else
15374   cat > conftest.$ac_ext <<EOF
15375 #line 15376 "configure"
15376 #include "confdefs.h"
15377 /* System header to define __stub macros and hopefully few prototypes,
15378     which can conflict with char $ac_func(); below.  */
15379 #include <assert.h>
15380 /* Override any gcc2 internal prototype to avoid an error.  */
15381 /* We use char because int might match the return type of a gcc2
15382     builtin and then its argument prototype would still apply.  */
15383 char $ac_func();
15384
15385 int main() {
15386
15387 /* The GNU C library defines this for functions which it implements
15388     to always fail with ENOSYS.  Some functions are actually named
15389     something starting with __ and the normal name is an alias.  */
15390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15391 choke me
15392 #else
15393 $ac_func();
15394 #endif
15395
15396 ; return 0; }
15397 EOF
15398 if { (eval echo configure:15399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15399   rm -rf conftest*
15400   eval "ac_cv_func_$ac_func=yes"
15401 else
15402   echo "configure: failed program was:" >&5
15403   cat conftest.$ac_ext >&5
15404   rm -rf conftest*
15405   eval "ac_cv_func_$ac_func=no"
15406 fi
15407 rm -f conftest*
15408 fi
15409
15410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15411   echo "$ac_t""yes" 1>&6
15412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15413   cat >> confdefs.h <<EOF
15414 #define $ac_tr_func 1
15415 EOF
15416  
15417 else
15418   echo "$ac_t""no" 1>&6
15419 fi
15420 done
15421     
15422     fi
15423   fi
15424
15425   
15426   
15427   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15428 echo "configure:15429: checking for sqrtf declaration" >&5
15429   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15430     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15431   echo $ac_n "(cached) $ac_c" 1>&6
15432 else
15433   
15434       
15435       ac_ext=C
15436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15437 ac_cpp='$CXXCPP $CPPFLAGS'
15438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15440 cross_compiling=$ac_cv_prog_cxx_cross
15441
15442       cat > conftest.$ac_ext <<EOF
15443 #line 15444 "configure"
15444 #include "confdefs.h"
15445 #include <math.h>
15446                       #ifdef HAVE_IEEEFP_H
15447                       #include <ieeefp.h>
15448                       #endif
15449                      
15450 int main() {
15451  sqrtf(0);
15452 ; return 0; }
15453 EOF
15454 if { (eval echo configure:15455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15455   rm -rf conftest*
15456   glibcpp_cv_func_sqrtf_use=yes
15457 else
15458   echo "configure: failed program was:" >&5
15459   cat conftest.$ac_ext >&5
15460   rm -rf conftest*
15461   glibcpp_cv_func_sqrtf_use=no
15462 fi
15463 rm -f conftest*
15464       ac_ext=c
15465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15466 ac_cpp='$CPP $CPPFLAGS'
15467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15469 cross_compiling=$ac_cv_prog_cc_cross
15470
15471     
15472 fi
15473
15474   fi
15475   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15476
15477   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15478     for ac_func in sqrtf
15479 do
15480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15481 echo "configure:15482: checking for $ac_func" >&5
15482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15483   echo $ac_n "(cached) $ac_c" 1>&6
15484 else
15485   cat > conftest.$ac_ext <<EOF
15486 #line 15487 "configure"
15487 #include "confdefs.h"
15488 /* System header to define __stub macros and hopefully few prototypes,
15489     which can conflict with char $ac_func(); below.  */
15490 #include <assert.h>
15491 /* Override any gcc2 internal prototype to avoid an error.  */
15492 /* We use char because int might match the return type of a gcc2
15493     builtin and then its argument prototype would still apply.  */
15494 char $ac_func();
15495
15496 int main() {
15497
15498 /* The GNU C library defines this for functions which it implements
15499     to always fail with ENOSYS.  Some functions are actually named
15500     something starting with __ and the normal name is an alias.  */
15501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15502 choke me
15503 #else
15504 $ac_func();
15505 #endif
15506
15507 ; return 0; }
15508 EOF
15509 if { (eval echo configure:15510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15510   rm -rf conftest*
15511   eval "ac_cv_func_$ac_func=yes"
15512 else
15513   echo "configure: failed program was:" >&5
15514   cat conftest.$ac_ext >&5
15515   rm -rf conftest*
15516   eval "ac_cv_func_$ac_func=no"
15517 fi
15518 rm -f conftest*
15519 fi
15520
15521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15522   echo "$ac_t""yes" 1>&6
15523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15524   cat >> confdefs.h <<EOF
15525 #define $ac_tr_func 1
15526 EOF
15527  
15528 else
15529   echo "$ac_t""no" 1>&6
15530 fi
15531 done
15532     
15533   else
15534     
15535   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15536 echo "configure:15537: checking for _sqrtf declaration" >&5
15537   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15538     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15539   echo $ac_n "(cached) $ac_c" 1>&6
15540 else
15541   
15542       
15543       ac_ext=C
15544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15545 ac_cpp='$CXXCPP $CPPFLAGS'
15546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15548 cross_compiling=$ac_cv_prog_cxx_cross
15549
15550       cat > conftest.$ac_ext <<EOF
15551 #line 15552 "configure"
15552 #include "confdefs.h"
15553 #include <math.h>
15554                       #ifdef HAVE_IEEEFP_H
15555                       #include <ieeefp.h>
15556                       #endif
15557                      
15558 int main() {
15559  _sqrtf(0);
15560 ; return 0; }
15561 EOF
15562 if { (eval echo configure:15563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15563   rm -rf conftest*
15564   glibcpp_cv_func__sqrtf_use=yes
15565 else
15566   echo "configure: failed program was:" >&5
15567   cat conftest.$ac_ext >&5
15568   rm -rf conftest*
15569   glibcpp_cv_func__sqrtf_use=no
15570 fi
15571 rm -f conftest*
15572       ac_ext=c
15573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15577 cross_compiling=$ac_cv_prog_cc_cross
15578
15579     
15580 fi
15581
15582   fi
15583   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15584
15585     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15586       for ac_func in _sqrtf
15587 do
15588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15589 echo "configure:15590: checking for $ac_func" >&5
15590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15591   echo $ac_n "(cached) $ac_c" 1>&6
15592 else
15593   cat > conftest.$ac_ext <<EOF
15594 #line 15595 "configure"
15595 #include "confdefs.h"
15596 /* System header to define __stub macros and hopefully few prototypes,
15597     which can conflict with char $ac_func(); below.  */
15598 #include <assert.h>
15599 /* Override any gcc2 internal prototype to avoid an error.  */
15600 /* We use char because int might match the return type of a gcc2
15601     builtin and then its argument prototype would still apply.  */
15602 char $ac_func();
15603
15604 int main() {
15605
15606 /* The GNU C library defines this for functions which it implements
15607     to always fail with ENOSYS.  Some functions are actually named
15608     something starting with __ and the normal name is an alias.  */
15609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15610 choke me
15611 #else
15612 $ac_func();
15613 #endif
15614
15615 ; return 0; }
15616 EOF
15617 if { (eval echo configure:15618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15618   rm -rf conftest*
15619   eval "ac_cv_func_$ac_func=yes"
15620 else
15621   echo "configure: failed program was:" >&5
15622   cat conftest.$ac_ext >&5
15623   rm -rf conftest*
15624   eval "ac_cv_func_$ac_func=no"
15625 fi
15626 rm -f conftest*
15627 fi
15628
15629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15630   echo "$ac_t""yes" 1>&6
15631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15632   cat >> confdefs.h <<EOF
15633 #define $ac_tr_func 1
15634 EOF
15635  
15636 else
15637   echo "$ac_t""no" 1>&6
15638 fi
15639 done
15640     
15641     fi
15642   fi
15643
15644   
15645   
15646   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15647 echo "configure:15648: checking for sincosf declaration" >&5
15648   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15649     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15650   echo $ac_n "(cached) $ac_c" 1>&6
15651 else
15652   
15653       
15654       ac_ext=C
15655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15656 ac_cpp='$CXXCPP $CPPFLAGS'
15657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15659 cross_compiling=$ac_cv_prog_cxx_cross
15660
15661       cat > conftest.$ac_ext <<EOF
15662 #line 15663 "configure"
15663 #include "confdefs.h"
15664 #include <math.h>
15665 int main() {
15666  sincosf(0, 0, 0);
15667 ; return 0; }
15668 EOF
15669 if { (eval echo configure:15670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15670   rm -rf conftest*
15671   glibcpp_cv_func_sincosf_use=yes
15672 else
15673   echo "configure: failed program was:" >&5
15674   cat conftest.$ac_ext >&5
15675   rm -rf conftest*
15676   glibcpp_cv_func_sincosf_use=no
15677 fi
15678 rm -f conftest*
15679       ac_ext=c
15680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15684 cross_compiling=$ac_cv_prog_cc_cross
15685
15686     
15687 fi
15688
15689   fi
15690   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15691
15692   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15693     for ac_func in sincosf
15694 do
15695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15696 echo "configure:15697: checking for $ac_func" >&5
15697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15698   echo $ac_n "(cached) $ac_c" 1>&6
15699 else
15700   cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15703 /* System header to define __stub macros and hopefully few prototypes,
15704     which can conflict with char $ac_func(); below.  */
15705 #include <assert.h>
15706 /* Override any gcc2 internal prototype to avoid an error.  */
15707 /* We use char because int might match the return type of a gcc2
15708     builtin and then its argument prototype would still apply.  */
15709 char $ac_func();
15710
15711 int main() {
15712
15713 /* The GNU C library defines this for functions which it implements
15714     to always fail with ENOSYS.  Some functions are actually named
15715     something starting with __ and the normal name is an alias.  */
15716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15717 choke me
15718 #else
15719 $ac_func();
15720 #endif
15721
15722 ; return 0; }
15723 EOF
15724 if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15725   rm -rf conftest*
15726   eval "ac_cv_func_$ac_func=yes"
15727 else
15728   echo "configure: failed program was:" >&5
15729   cat conftest.$ac_ext >&5
15730   rm -rf conftest*
15731   eval "ac_cv_func_$ac_func=no"
15732 fi
15733 rm -f conftest*
15734 fi
15735
15736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15737   echo "$ac_t""yes" 1>&6
15738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15739   cat >> confdefs.h <<EOF
15740 #define $ac_tr_func 1
15741 EOF
15742  
15743 else
15744   echo "$ac_t""no" 1>&6
15745 fi
15746 done
15747     
15748   else
15749     
15750   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15751 echo "configure:15752: checking for _sincosf declaration" >&5
15752   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15753     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15754   echo $ac_n "(cached) $ac_c" 1>&6
15755 else
15756   
15757       
15758       ac_ext=C
15759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15760 ac_cpp='$CXXCPP $CPPFLAGS'
15761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15763 cross_compiling=$ac_cv_prog_cxx_cross
15764
15765       cat > conftest.$ac_ext <<EOF
15766 #line 15767 "configure"
15767 #include "confdefs.h"
15768 #include <math.h>
15769 int main() {
15770  _sincosf(0, 0, 0);
15771 ; return 0; }
15772 EOF
15773 if { (eval echo configure:15774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15774   rm -rf conftest*
15775   glibcpp_cv_func__sincosf_use=yes
15776 else
15777   echo "configure: failed program was:" >&5
15778   cat conftest.$ac_ext >&5
15779   rm -rf conftest*
15780   glibcpp_cv_func__sincosf_use=no
15781 fi
15782 rm -f conftest*
15783       ac_ext=c
15784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15785 ac_cpp='$CPP $CPPFLAGS'
15786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15788 cross_compiling=$ac_cv_prog_cc_cross
15789
15790     
15791 fi
15792
15793   fi
15794   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15795
15796     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15797       for ac_func in _sincosf
15798 do
15799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15800 echo "configure:15801: checking for $ac_func" >&5
15801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15802   echo $ac_n "(cached) $ac_c" 1>&6
15803 else
15804   cat > conftest.$ac_ext <<EOF
15805 #line 15806 "configure"
15806 #include "confdefs.h"
15807 /* System header to define __stub macros and hopefully few prototypes,
15808     which can conflict with char $ac_func(); below.  */
15809 #include <assert.h>
15810 /* Override any gcc2 internal prototype to avoid an error.  */
15811 /* We use char because int might match the return type of a gcc2
15812     builtin and then its argument prototype would still apply.  */
15813 char $ac_func();
15814
15815 int main() {
15816
15817 /* The GNU C library defines this for functions which it implements
15818     to always fail with ENOSYS.  Some functions are actually named
15819     something starting with __ and the normal name is an alias.  */
15820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15821 choke me
15822 #else
15823 $ac_func();
15824 #endif
15825
15826 ; return 0; }
15827 EOF
15828 if { (eval echo configure:15829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15829   rm -rf conftest*
15830   eval "ac_cv_func_$ac_func=yes"
15831 else
15832   echo "configure: failed program was:" >&5
15833   cat conftest.$ac_ext >&5
15834   rm -rf conftest*
15835   eval "ac_cv_func_$ac_func=no"
15836 fi
15837 rm -f conftest*
15838 fi
15839
15840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15841   echo "$ac_t""yes" 1>&6
15842     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15843   cat >> confdefs.h <<EOF
15844 #define $ac_tr_func 1
15845 EOF
15846  
15847 else
15848   echo "$ac_t""no" 1>&6
15849 fi
15850 done
15851     
15852     fi
15853   fi
15854
15855   
15856   
15857   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15858 echo "configure:15859: checking for finitef declaration" >&5
15859   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15860     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15861   echo $ac_n "(cached) $ac_c" 1>&6
15862 else
15863   
15864       
15865       ac_ext=C
15866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15867 ac_cpp='$CXXCPP $CPPFLAGS'
15868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15870 cross_compiling=$ac_cv_prog_cxx_cross
15871
15872       cat > conftest.$ac_ext <<EOF
15873 #line 15874 "configure"
15874 #include "confdefs.h"
15875 #include <math.h>
15876                       #ifdef HAVE_IEEEFP_H
15877                       #include <ieeefp.h>
15878                       #endif
15879                      
15880 int main() {
15881  finitef(0);
15882 ; return 0; }
15883 EOF
15884 if { (eval echo configure:15885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15885   rm -rf conftest*
15886   glibcpp_cv_func_finitef_use=yes
15887 else
15888   echo "configure: failed program was:" >&5
15889   cat conftest.$ac_ext >&5
15890   rm -rf conftest*
15891   glibcpp_cv_func_finitef_use=no
15892 fi
15893 rm -f conftest*
15894       ac_ext=c
15895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15896 ac_cpp='$CPP $CPPFLAGS'
15897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15899 cross_compiling=$ac_cv_prog_cc_cross
15900
15901     
15902 fi
15903
15904   fi
15905   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15906
15907   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15908     for ac_func in finitef
15909 do
15910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15911 echo "configure:15912: checking for $ac_func" >&5
15912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15913   echo $ac_n "(cached) $ac_c" 1>&6
15914 else
15915   cat > conftest.$ac_ext <<EOF
15916 #line 15917 "configure"
15917 #include "confdefs.h"
15918 /* System header to define __stub macros and hopefully few prototypes,
15919     which can conflict with char $ac_func(); below.  */
15920 #include <assert.h>
15921 /* Override any gcc2 internal prototype to avoid an error.  */
15922 /* We use char because int might match the return type of a gcc2
15923     builtin and then its argument prototype would still apply.  */
15924 char $ac_func();
15925
15926 int main() {
15927
15928 /* The GNU C library defines this for functions which it implements
15929     to always fail with ENOSYS.  Some functions are actually named
15930     something starting with __ and the normal name is an alias.  */
15931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15932 choke me
15933 #else
15934 $ac_func();
15935 #endif
15936
15937 ; return 0; }
15938 EOF
15939 if { (eval echo configure:15940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15940   rm -rf conftest*
15941   eval "ac_cv_func_$ac_func=yes"
15942 else
15943   echo "configure: failed program was:" >&5
15944   cat conftest.$ac_ext >&5
15945   rm -rf conftest*
15946   eval "ac_cv_func_$ac_func=no"
15947 fi
15948 rm -f conftest*
15949 fi
15950
15951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15952   echo "$ac_t""yes" 1>&6
15953     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15954   cat >> confdefs.h <<EOF
15955 #define $ac_tr_func 1
15956 EOF
15957  
15958 else
15959   echo "$ac_t""no" 1>&6
15960 fi
15961 done
15962     
15963   else
15964     
15965   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15966 echo "configure:15967: checking for _finitef declaration" >&5
15967   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15968     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15969   echo $ac_n "(cached) $ac_c" 1>&6
15970 else
15971   
15972       
15973       ac_ext=C
15974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15975 ac_cpp='$CXXCPP $CPPFLAGS'
15976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15978 cross_compiling=$ac_cv_prog_cxx_cross
15979
15980       cat > conftest.$ac_ext <<EOF
15981 #line 15982 "configure"
15982 #include "confdefs.h"
15983 #include <math.h>
15984                       #ifdef HAVE_IEEEFP_H
15985                       #include <ieeefp.h>
15986                       #endif
15987                      
15988 int main() {
15989  _finitef(0);
15990 ; return 0; }
15991 EOF
15992 if { (eval echo configure:15993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15993   rm -rf conftest*
15994   glibcpp_cv_func__finitef_use=yes
15995 else
15996   echo "configure: failed program was:" >&5
15997   cat conftest.$ac_ext >&5
15998   rm -rf conftest*
15999   glibcpp_cv_func__finitef_use=no
16000 fi
16001 rm -f conftest*
16002       ac_ext=c
16003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16004 ac_cpp='$CPP $CPPFLAGS'
16005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16007 cross_compiling=$ac_cv_prog_cc_cross
16008
16009     
16010 fi
16011
16012   fi
16013   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16014
16015     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16016       for ac_func in _finitef
16017 do
16018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16019 echo "configure:16020: checking for $ac_func" >&5
16020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16021   echo $ac_n "(cached) $ac_c" 1>&6
16022 else
16023   cat > conftest.$ac_ext <<EOF
16024 #line 16025 "configure"
16025 #include "confdefs.h"
16026 /* System header to define __stub macros and hopefully few prototypes,
16027     which can conflict with char $ac_func(); below.  */
16028 #include <assert.h>
16029 /* Override any gcc2 internal prototype to avoid an error.  */
16030 /* We use char because int might match the return type of a gcc2
16031     builtin and then its argument prototype would still apply.  */
16032 char $ac_func();
16033
16034 int main() {
16035
16036 /* The GNU C library defines this for functions which it implements
16037     to always fail with ENOSYS.  Some functions are actually named
16038     something starting with __ and the normal name is an alias.  */
16039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16040 choke me
16041 #else
16042 $ac_func();
16043 #endif
16044
16045 ; return 0; }
16046 EOF
16047 if { (eval echo configure:16048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16048   rm -rf conftest*
16049   eval "ac_cv_func_$ac_func=yes"
16050 else
16051   echo "configure: failed program was:" >&5
16052   cat conftest.$ac_ext >&5
16053   rm -rf conftest*
16054   eval "ac_cv_func_$ac_func=no"
16055 fi
16056 rm -f conftest*
16057 fi
16058
16059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16060   echo "$ac_t""yes" 1>&6
16061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16062   cat >> confdefs.h <<EOF
16063 #define $ac_tr_func 1
16064 EOF
16065  
16066 else
16067   echo "$ac_t""no" 1>&6
16068 fi
16069 done
16070     
16071     fi
16072   fi
16073
16074
16075     
16076   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16077 echo "configure:16078: checking for long double trig functions" >&5
16078   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16079   echo $ac_n "(cached) $ac_c" 1>&6
16080 else
16081   
16082     
16083     ac_ext=C
16084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16085 ac_cpp='$CXXCPP $CPPFLAGS'
16086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16088 cross_compiling=$ac_cv_prog_cxx_cross
16089
16090     cat > conftest.$ac_ext <<EOF
16091 #line 16092 "configure"
16092 #include "confdefs.h"
16093 #include <math.h>
16094 int main() {
16095  `for x in acosl asinl atanl \
16096                                           cosl sinl tanl \
16097                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16098 ; return 0; }
16099 EOF
16100 if { (eval echo configure:16101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16101   rm -rf conftest*
16102   glibcpp_cv_func_long_double_trig_use=yes
16103 else
16104   echo "configure: failed program was:" >&5
16105   cat conftest.$ac_ext >&5
16106   rm -rf conftest*
16107   glibcpp_cv_func_long_double_trig_use=no
16108 fi
16109 rm -f conftest*
16110     ac_ext=c
16111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16112 ac_cpp='$CPP $CPPFLAGS'
16113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16115 cross_compiling=$ac_cv_prog_cc_cross
16116
16117 fi
16118
16119   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16120   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16121     for ac_func in acosl asinl atanl \
16122                                           cosl sinl tanl \
16123                                           coshl sinhl tanhl
16124 do
16125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16126 echo "configure:16127: checking for $ac_func" >&5
16127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16128   echo $ac_n "(cached) $ac_c" 1>&6
16129 else
16130   cat > conftest.$ac_ext <<EOF
16131 #line 16132 "configure"
16132 #include "confdefs.h"
16133 /* System header to define __stub macros and hopefully few prototypes,
16134     which can conflict with char $ac_func(); below.  */
16135 #include <assert.h>
16136 /* Override any gcc2 internal prototype to avoid an error.  */
16137 /* We use char because int might match the return type of a gcc2
16138     builtin and then its argument prototype would still apply.  */
16139 char $ac_func();
16140
16141 int main() {
16142
16143 /* The GNU C library defines this for functions which it implements
16144     to always fail with ENOSYS.  Some functions are actually named
16145     something starting with __ and the normal name is an alias.  */
16146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16147 choke me
16148 #else
16149 $ac_func();
16150 #endif
16151
16152 ; return 0; }
16153 EOF
16154 if { (eval echo configure:16155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16155   rm -rf conftest*
16156   eval "ac_cv_func_$ac_func=yes"
16157 else
16158   echo "configure: failed program was:" >&5
16159   cat conftest.$ac_ext >&5
16160   rm -rf conftest*
16161   eval "ac_cv_func_$ac_func=no"
16162 fi
16163 rm -f conftest*
16164 fi
16165
16166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16167   echo "$ac_t""yes" 1>&6
16168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16169   cat >> confdefs.h <<EOF
16170 #define $ac_tr_func 1
16171 EOF
16172  
16173 else
16174   echo "$ac_t""no" 1>&6
16175 fi
16176 done
16177
16178   fi
16179
16180   
16181   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16182 echo "configure:16183: checking for long double round functions" >&5
16183   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16184   echo $ac_n "(cached) $ac_c" 1>&6
16185 else
16186   
16187     
16188     ac_ext=C
16189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16190 ac_cpp='$CXXCPP $CPPFLAGS'
16191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16193 cross_compiling=$ac_cv_prog_cxx_cross
16194
16195     cat > conftest.$ac_ext <<EOF
16196 #line 16197 "configure"
16197 #include "confdefs.h"
16198 #include <math.h>
16199 int main() {
16200  `for x in ceill floorl; do echo "$x (0);"; done` 
16201 ; return 0; }
16202 EOF
16203 if { (eval echo configure:16204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16204   rm -rf conftest*
16205   glibcpp_cv_func_long_double_round_use=yes
16206 else
16207   echo "configure: failed program was:" >&5
16208   cat conftest.$ac_ext >&5
16209   rm -rf conftest*
16210   glibcpp_cv_func_long_double_round_use=no
16211 fi
16212 rm -f conftest*
16213     ac_ext=c
16214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16215 ac_cpp='$CPP $CPPFLAGS'
16216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16218 cross_compiling=$ac_cv_prog_cc_cross
16219
16220 fi
16221
16222   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16223   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16224     for ac_func in ceill floorl
16225 do
16226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16227 echo "configure:16228: checking for $ac_func" >&5
16228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16229   echo $ac_n "(cached) $ac_c" 1>&6
16230 else
16231   cat > conftest.$ac_ext <<EOF
16232 #line 16233 "configure"
16233 #include "confdefs.h"
16234 /* System header to define __stub macros and hopefully few prototypes,
16235     which can conflict with char $ac_func(); below.  */
16236 #include <assert.h>
16237 /* Override any gcc2 internal prototype to avoid an error.  */
16238 /* We use char because int might match the return type of a gcc2
16239     builtin and then its argument prototype would still apply.  */
16240 char $ac_func();
16241
16242 int main() {
16243
16244 /* The GNU C library defines this for functions which it implements
16245     to always fail with ENOSYS.  Some functions are actually named
16246     something starting with __ and the normal name is an alias.  */
16247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16248 choke me
16249 #else
16250 $ac_func();
16251 #endif
16252
16253 ; return 0; }
16254 EOF
16255 if { (eval echo configure:16256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16256   rm -rf conftest*
16257   eval "ac_cv_func_$ac_func=yes"
16258 else
16259   echo "configure: failed program was:" >&5
16260   cat conftest.$ac_ext >&5
16261   rm -rf conftest*
16262   eval "ac_cv_func_$ac_func=no"
16263 fi
16264 rm -f conftest*
16265 fi
16266
16267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16268   echo "$ac_t""yes" 1>&6
16269     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16270   cat >> confdefs.h <<EOF
16271 #define $ac_tr_func 1
16272 EOF
16273  
16274 else
16275   echo "$ac_t""no" 1>&6
16276 fi
16277 done
16278
16279   fi
16280
16281   
16282   
16283   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16284 echo "configure:16285: checking for isnanl declaration" >&5
16285   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16286     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16287   echo $ac_n "(cached) $ac_c" 1>&6
16288 else
16289   
16290       
16291       ac_ext=C
16292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16293 ac_cpp='$CXXCPP $CPPFLAGS'
16294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16296 cross_compiling=$ac_cv_prog_cxx_cross
16297
16298       cat > conftest.$ac_ext <<EOF
16299 #line 16300 "configure"
16300 #include "confdefs.h"
16301 #include <math.h>
16302                       #ifdef HAVE_IEEEFP_H
16303                       #include <ieeefp.h>
16304                       #endif
16305                      
16306 int main() {
16307  isnanl(0);
16308 ; return 0; }
16309 EOF
16310 if { (eval echo configure:16311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16311   rm -rf conftest*
16312   glibcpp_cv_func_isnanl_use=yes
16313 else
16314   echo "configure: failed program was:" >&5
16315   cat conftest.$ac_ext >&5
16316   rm -rf conftest*
16317   glibcpp_cv_func_isnanl_use=no
16318 fi
16319 rm -f conftest*
16320       ac_ext=c
16321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16325 cross_compiling=$ac_cv_prog_cc_cross
16326
16327     
16328 fi
16329
16330   fi
16331   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16332
16333   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16334     for ac_func in isnanl
16335 do
16336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16337 echo "configure:16338: checking for $ac_func" >&5
16338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16339   echo $ac_n "(cached) $ac_c" 1>&6
16340 else
16341   cat > conftest.$ac_ext <<EOF
16342 #line 16343 "configure"
16343 #include "confdefs.h"
16344 /* System header to define __stub macros and hopefully few prototypes,
16345     which can conflict with char $ac_func(); below.  */
16346 #include <assert.h>
16347 /* Override any gcc2 internal prototype to avoid an error.  */
16348 /* We use char because int might match the return type of a gcc2
16349     builtin and then its argument prototype would still apply.  */
16350 char $ac_func();
16351
16352 int main() {
16353
16354 /* The GNU C library defines this for functions which it implements
16355     to always fail with ENOSYS.  Some functions are actually named
16356     something starting with __ and the normal name is an alias.  */
16357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16358 choke me
16359 #else
16360 $ac_func();
16361 #endif
16362
16363 ; return 0; }
16364 EOF
16365 if { (eval echo configure:16366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16366   rm -rf conftest*
16367   eval "ac_cv_func_$ac_func=yes"
16368 else
16369   echo "configure: failed program was:" >&5
16370   cat conftest.$ac_ext >&5
16371   rm -rf conftest*
16372   eval "ac_cv_func_$ac_func=no"
16373 fi
16374 rm -f conftest*
16375 fi
16376
16377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16378   echo "$ac_t""yes" 1>&6
16379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16380   cat >> confdefs.h <<EOF
16381 #define $ac_tr_func 1
16382 EOF
16383  
16384 else
16385   echo "$ac_t""no" 1>&6
16386 fi
16387 done
16388     
16389   else
16390     
16391   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16392 echo "configure:16393: checking for _isnanl declaration" >&5
16393   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16394     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16395   echo $ac_n "(cached) $ac_c" 1>&6
16396 else
16397   
16398       
16399       ac_ext=C
16400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16401 ac_cpp='$CXXCPP $CPPFLAGS'
16402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16404 cross_compiling=$ac_cv_prog_cxx_cross
16405
16406       cat > conftest.$ac_ext <<EOF
16407 #line 16408 "configure"
16408 #include "confdefs.h"
16409 #include <math.h>
16410                       #ifdef HAVE_IEEEFP_H
16411                       #include <ieeefp.h>
16412                       #endif
16413                      
16414 int main() {
16415  _isnanl(0);
16416 ; return 0; }
16417 EOF
16418 if { (eval echo configure:16419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16419   rm -rf conftest*
16420   glibcpp_cv_func__isnanl_use=yes
16421 else
16422   echo "configure: failed program was:" >&5
16423   cat conftest.$ac_ext >&5
16424   rm -rf conftest*
16425   glibcpp_cv_func__isnanl_use=no
16426 fi
16427 rm -f conftest*
16428       ac_ext=c
16429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16430 ac_cpp='$CPP $CPPFLAGS'
16431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16433 cross_compiling=$ac_cv_prog_cc_cross
16434
16435     
16436 fi
16437
16438   fi
16439   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16440
16441     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16442       for ac_func in _isnanl
16443 do
16444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16445 echo "configure:16446: checking for $ac_func" >&5
16446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16447   echo $ac_n "(cached) $ac_c" 1>&6
16448 else
16449   cat > conftest.$ac_ext <<EOF
16450 #line 16451 "configure"
16451 #include "confdefs.h"
16452 /* System header to define __stub macros and hopefully few prototypes,
16453     which can conflict with char $ac_func(); below.  */
16454 #include <assert.h>
16455 /* Override any gcc2 internal prototype to avoid an error.  */
16456 /* We use char because int might match the return type of a gcc2
16457     builtin and then its argument prototype would still apply.  */
16458 char $ac_func();
16459
16460 int main() {
16461
16462 /* The GNU C library defines this for functions which it implements
16463     to always fail with ENOSYS.  Some functions are actually named
16464     something starting with __ and the normal name is an alias.  */
16465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16466 choke me
16467 #else
16468 $ac_func();
16469 #endif
16470
16471 ; return 0; }
16472 EOF
16473 if { (eval echo configure:16474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16474   rm -rf conftest*
16475   eval "ac_cv_func_$ac_func=yes"
16476 else
16477   echo "configure: failed program was:" >&5
16478   cat conftest.$ac_ext >&5
16479   rm -rf conftest*
16480   eval "ac_cv_func_$ac_func=no"
16481 fi
16482 rm -f conftest*
16483 fi
16484
16485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16486   echo "$ac_t""yes" 1>&6
16487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16488   cat >> confdefs.h <<EOF
16489 #define $ac_tr_func 1
16490 EOF
16491  
16492 else
16493   echo "$ac_t""no" 1>&6
16494 fi
16495 done
16496     
16497     fi
16498   fi
16499
16500   
16501   
16502   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16503 echo "configure:16504: checking for isinfl declaration" >&5
16504   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16505     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16506   echo $ac_n "(cached) $ac_c" 1>&6
16507 else
16508   
16509       
16510       ac_ext=C
16511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16512 ac_cpp='$CXXCPP $CPPFLAGS'
16513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16515 cross_compiling=$ac_cv_prog_cxx_cross
16516
16517       cat > conftest.$ac_ext <<EOF
16518 #line 16519 "configure"
16519 #include "confdefs.h"
16520 #include <math.h>
16521                       #ifdef HAVE_IEEEFP_H
16522                       #include <ieeefp.h>
16523                       #endif
16524                      
16525 int main() {
16526  isinfl(0);
16527 ; return 0; }
16528 EOF
16529 if { (eval echo configure:16530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16530   rm -rf conftest*
16531   glibcpp_cv_func_isinfl_use=yes
16532 else
16533   echo "configure: failed program was:" >&5
16534   cat conftest.$ac_ext >&5
16535   rm -rf conftest*
16536   glibcpp_cv_func_isinfl_use=no
16537 fi
16538 rm -f conftest*
16539       ac_ext=c
16540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16541 ac_cpp='$CPP $CPPFLAGS'
16542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16544 cross_compiling=$ac_cv_prog_cc_cross
16545
16546     
16547 fi
16548
16549   fi
16550   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16551
16552   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16553     for ac_func in isinfl
16554 do
16555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16556 echo "configure:16557: checking for $ac_func" >&5
16557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16558   echo $ac_n "(cached) $ac_c" 1>&6
16559 else
16560   cat > conftest.$ac_ext <<EOF
16561 #line 16562 "configure"
16562 #include "confdefs.h"
16563 /* System header to define __stub macros and hopefully few prototypes,
16564     which can conflict with char $ac_func(); below.  */
16565 #include <assert.h>
16566 /* Override any gcc2 internal prototype to avoid an error.  */
16567 /* We use char because int might match the return type of a gcc2
16568     builtin and then its argument prototype would still apply.  */
16569 char $ac_func();
16570
16571 int main() {
16572
16573 /* The GNU C library defines this for functions which it implements
16574     to always fail with ENOSYS.  Some functions are actually named
16575     something starting with __ and the normal name is an alias.  */
16576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16577 choke me
16578 #else
16579 $ac_func();
16580 #endif
16581
16582 ; return 0; }
16583 EOF
16584 if { (eval echo configure:16585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16585   rm -rf conftest*
16586   eval "ac_cv_func_$ac_func=yes"
16587 else
16588   echo "configure: failed program was:" >&5
16589   cat conftest.$ac_ext >&5
16590   rm -rf conftest*
16591   eval "ac_cv_func_$ac_func=no"
16592 fi
16593 rm -f conftest*
16594 fi
16595
16596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16597   echo "$ac_t""yes" 1>&6
16598     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16599   cat >> confdefs.h <<EOF
16600 #define $ac_tr_func 1
16601 EOF
16602  
16603 else
16604   echo "$ac_t""no" 1>&6
16605 fi
16606 done
16607     
16608   else
16609     
16610   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16611 echo "configure:16612: checking for _isinfl declaration" >&5
16612   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16613     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16614   echo $ac_n "(cached) $ac_c" 1>&6
16615 else
16616   
16617       
16618       ac_ext=C
16619 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16620 ac_cpp='$CXXCPP $CPPFLAGS'
16621 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16622 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16623 cross_compiling=$ac_cv_prog_cxx_cross
16624
16625       cat > conftest.$ac_ext <<EOF
16626 #line 16627 "configure"
16627 #include "confdefs.h"
16628 #include <math.h>
16629                       #ifdef HAVE_IEEEFP_H
16630                       #include <ieeefp.h>
16631                       #endif
16632                      
16633 int main() {
16634  _isinfl(0);
16635 ; return 0; }
16636 EOF
16637 if { (eval echo configure:16638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16638   rm -rf conftest*
16639   glibcpp_cv_func__isinfl_use=yes
16640 else
16641   echo "configure: failed program was:" >&5
16642   cat conftest.$ac_ext >&5
16643   rm -rf conftest*
16644   glibcpp_cv_func__isinfl_use=no
16645 fi
16646 rm -f conftest*
16647       ac_ext=c
16648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16649 ac_cpp='$CPP $CPPFLAGS'
16650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16652 cross_compiling=$ac_cv_prog_cc_cross
16653
16654     
16655 fi
16656
16657   fi
16658   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16659
16660     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16661       for ac_func in _isinfl
16662 do
16663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16664 echo "configure:16665: checking for $ac_func" >&5
16665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16666   echo $ac_n "(cached) $ac_c" 1>&6
16667 else
16668   cat > conftest.$ac_ext <<EOF
16669 #line 16670 "configure"
16670 #include "confdefs.h"
16671 /* System header to define __stub macros and hopefully few prototypes,
16672     which can conflict with char $ac_func(); below.  */
16673 #include <assert.h>
16674 /* Override any gcc2 internal prototype to avoid an error.  */
16675 /* We use char because int might match the return type of a gcc2
16676     builtin and then its argument prototype would still apply.  */
16677 char $ac_func();
16678
16679 int main() {
16680
16681 /* The GNU C library defines this for functions which it implements
16682     to always fail with ENOSYS.  Some functions are actually named
16683     something starting with __ and the normal name is an alias.  */
16684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16685 choke me
16686 #else
16687 $ac_func();
16688 #endif
16689
16690 ; return 0; }
16691 EOF
16692 if { (eval echo configure:16693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16693   rm -rf conftest*
16694   eval "ac_cv_func_$ac_func=yes"
16695 else
16696   echo "configure: failed program was:" >&5
16697   cat conftest.$ac_ext >&5
16698   rm -rf conftest*
16699   eval "ac_cv_func_$ac_func=no"
16700 fi
16701 rm -f conftest*
16702 fi
16703
16704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16705   echo "$ac_t""yes" 1>&6
16706     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16707   cat >> confdefs.h <<EOF
16708 #define $ac_tr_func 1
16709 EOF
16710  
16711 else
16712   echo "$ac_t""no" 1>&6
16713 fi
16714 done
16715     
16716     fi
16717   fi
16718
16719   
16720   
16721   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16722 echo "configure:16723: checking for copysignl declaration" >&5
16723   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16724     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16725   echo $ac_n "(cached) $ac_c" 1>&6
16726 else
16727   
16728       
16729       ac_ext=C
16730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16731 ac_cpp='$CXXCPP $CPPFLAGS'
16732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16734 cross_compiling=$ac_cv_prog_cxx_cross
16735
16736       cat > conftest.$ac_ext <<EOF
16737 #line 16738 "configure"
16738 #include "confdefs.h"
16739 #include <math.h>
16740 int main() {
16741  copysignl(0, 0);
16742 ; return 0; }
16743 EOF
16744 if { (eval echo configure:16745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16745   rm -rf conftest*
16746   glibcpp_cv_func_copysignl_use=yes
16747 else
16748   echo "configure: failed program was:" >&5
16749   cat conftest.$ac_ext >&5
16750   rm -rf conftest*
16751   glibcpp_cv_func_copysignl_use=no
16752 fi
16753 rm -f conftest*
16754       ac_ext=c
16755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16756 ac_cpp='$CPP $CPPFLAGS'
16757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16759 cross_compiling=$ac_cv_prog_cc_cross
16760
16761     
16762 fi
16763
16764   fi
16765   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16766
16767   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16768     for ac_func in copysignl
16769 do
16770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16771 echo "configure:16772: checking for $ac_func" >&5
16772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16773   echo $ac_n "(cached) $ac_c" 1>&6
16774 else
16775   cat > conftest.$ac_ext <<EOF
16776 #line 16777 "configure"
16777 #include "confdefs.h"
16778 /* System header to define __stub macros and hopefully few prototypes,
16779     which can conflict with char $ac_func(); below.  */
16780 #include <assert.h>
16781 /* Override any gcc2 internal prototype to avoid an error.  */
16782 /* We use char because int might match the return type of a gcc2
16783     builtin and then its argument prototype would still apply.  */
16784 char $ac_func();
16785
16786 int main() {
16787
16788 /* The GNU C library defines this for functions which it implements
16789     to always fail with ENOSYS.  Some functions are actually named
16790     something starting with __ and the normal name is an alias.  */
16791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16792 choke me
16793 #else
16794 $ac_func();
16795 #endif
16796
16797 ; return 0; }
16798 EOF
16799 if { (eval echo configure:16800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16800   rm -rf conftest*
16801   eval "ac_cv_func_$ac_func=yes"
16802 else
16803   echo "configure: failed program was:" >&5
16804   cat conftest.$ac_ext >&5
16805   rm -rf conftest*
16806   eval "ac_cv_func_$ac_func=no"
16807 fi
16808 rm -f conftest*
16809 fi
16810
16811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16812   echo "$ac_t""yes" 1>&6
16813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16814   cat >> confdefs.h <<EOF
16815 #define $ac_tr_func 1
16816 EOF
16817  
16818 else
16819   echo "$ac_t""no" 1>&6
16820 fi
16821 done
16822     
16823   else
16824     
16825   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16826 echo "configure:16827: checking for _copysignl declaration" >&5
16827   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16828     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16829   echo $ac_n "(cached) $ac_c" 1>&6
16830 else
16831   
16832       
16833       ac_ext=C
16834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16835 ac_cpp='$CXXCPP $CPPFLAGS'
16836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16838 cross_compiling=$ac_cv_prog_cxx_cross
16839
16840       cat > conftest.$ac_ext <<EOF
16841 #line 16842 "configure"
16842 #include "confdefs.h"
16843 #include <math.h>
16844 int main() {
16845  _copysignl(0, 0);
16846 ; return 0; }
16847 EOF
16848 if { (eval echo configure:16849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16849   rm -rf conftest*
16850   glibcpp_cv_func__copysignl_use=yes
16851 else
16852   echo "configure: failed program was:" >&5
16853   cat conftest.$ac_ext >&5
16854   rm -rf conftest*
16855   glibcpp_cv_func__copysignl_use=no
16856 fi
16857 rm -f conftest*
16858       ac_ext=c
16859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16860 ac_cpp='$CPP $CPPFLAGS'
16861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16863 cross_compiling=$ac_cv_prog_cc_cross
16864
16865     
16866 fi
16867
16868   fi
16869   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16870
16871     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16872       for ac_func in _copysignl
16873 do
16874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16875 echo "configure:16876: checking for $ac_func" >&5
16876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16877   echo $ac_n "(cached) $ac_c" 1>&6
16878 else
16879   cat > conftest.$ac_ext <<EOF
16880 #line 16881 "configure"
16881 #include "confdefs.h"
16882 /* System header to define __stub macros and hopefully few prototypes,
16883     which can conflict with char $ac_func(); below.  */
16884 #include <assert.h>
16885 /* Override any gcc2 internal prototype to avoid an error.  */
16886 /* We use char because int might match the return type of a gcc2
16887     builtin and then its argument prototype would still apply.  */
16888 char $ac_func();
16889
16890 int main() {
16891
16892 /* The GNU C library defines this for functions which it implements
16893     to always fail with ENOSYS.  Some functions are actually named
16894     something starting with __ and the normal name is an alias.  */
16895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16896 choke me
16897 #else
16898 $ac_func();
16899 #endif
16900
16901 ; return 0; }
16902 EOF
16903 if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16904   rm -rf conftest*
16905   eval "ac_cv_func_$ac_func=yes"
16906 else
16907   echo "configure: failed program was:" >&5
16908   cat conftest.$ac_ext >&5
16909   rm -rf conftest*
16910   eval "ac_cv_func_$ac_func=no"
16911 fi
16912 rm -f conftest*
16913 fi
16914
16915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16916   echo "$ac_t""yes" 1>&6
16917     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16918   cat >> confdefs.h <<EOF
16919 #define $ac_tr_func 1
16920 EOF
16921  
16922 else
16923   echo "$ac_t""no" 1>&6
16924 fi
16925 done
16926     
16927     fi
16928   fi
16929
16930   
16931   
16932   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16933 echo "configure:16934: checking for atan2l declaration" >&5
16934   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16935     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16936   echo $ac_n "(cached) $ac_c" 1>&6
16937 else
16938   
16939       
16940       ac_ext=C
16941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16942 ac_cpp='$CXXCPP $CPPFLAGS'
16943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16945 cross_compiling=$ac_cv_prog_cxx_cross
16946
16947       cat > conftest.$ac_ext <<EOF
16948 #line 16949 "configure"
16949 #include "confdefs.h"
16950 #include <math.h>
16951 int main() {
16952  atan2l(0, 0);
16953 ; return 0; }
16954 EOF
16955 if { (eval echo configure:16956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16956   rm -rf conftest*
16957   glibcpp_cv_func_atan2l_use=yes
16958 else
16959   echo "configure: failed program was:" >&5
16960   cat conftest.$ac_ext >&5
16961   rm -rf conftest*
16962   glibcpp_cv_func_atan2l_use=no
16963 fi
16964 rm -f conftest*
16965       ac_ext=c
16966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16967 ac_cpp='$CPP $CPPFLAGS'
16968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16970 cross_compiling=$ac_cv_prog_cc_cross
16971
16972     
16973 fi
16974
16975   fi
16976   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16977
16978   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16979     for ac_func in atan2l
16980 do
16981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16982 echo "configure:16983: checking for $ac_func" >&5
16983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16984   echo $ac_n "(cached) $ac_c" 1>&6
16985 else
16986   cat > conftest.$ac_ext <<EOF
16987 #line 16988 "configure"
16988 #include "confdefs.h"
16989 /* System header to define __stub macros and hopefully few prototypes,
16990     which can conflict with char $ac_func(); below.  */
16991 #include <assert.h>
16992 /* Override any gcc2 internal prototype to avoid an error.  */
16993 /* We use char because int might match the return type of a gcc2
16994     builtin and then its argument prototype would still apply.  */
16995 char $ac_func();
16996
16997 int main() {
16998
16999 /* The GNU C library defines this for functions which it implements
17000     to always fail with ENOSYS.  Some functions are actually named
17001     something starting with __ and the normal name is an alias.  */
17002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17003 choke me
17004 #else
17005 $ac_func();
17006 #endif
17007
17008 ; return 0; }
17009 EOF
17010 if { (eval echo configure:17011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17011   rm -rf conftest*
17012   eval "ac_cv_func_$ac_func=yes"
17013 else
17014   echo "configure: failed program was:" >&5
17015   cat conftest.$ac_ext >&5
17016   rm -rf conftest*
17017   eval "ac_cv_func_$ac_func=no"
17018 fi
17019 rm -f conftest*
17020 fi
17021
17022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17023   echo "$ac_t""yes" 1>&6
17024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17025   cat >> confdefs.h <<EOF
17026 #define $ac_tr_func 1
17027 EOF
17028  
17029 else
17030   echo "$ac_t""no" 1>&6
17031 fi
17032 done
17033     
17034   else
17035     
17036   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17037 echo "configure:17038: checking for _atan2l declaration" >&5
17038   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17039     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17040   echo $ac_n "(cached) $ac_c" 1>&6
17041 else
17042   
17043       
17044       ac_ext=C
17045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17046 ac_cpp='$CXXCPP $CPPFLAGS'
17047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17049 cross_compiling=$ac_cv_prog_cxx_cross
17050
17051       cat > conftest.$ac_ext <<EOF
17052 #line 17053 "configure"
17053 #include "confdefs.h"
17054 #include <math.h>
17055 int main() {
17056  _atan2l(0, 0);
17057 ; return 0; }
17058 EOF
17059 if { (eval echo configure:17060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17060   rm -rf conftest*
17061   glibcpp_cv_func__atan2l_use=yes
17062 else
17063   echo "configure: failed program was:" >&5
17064   cat conftest.$ac_ext >&5
17065   rm -rf conftest*
17066   glibcpp_cv_func__atan2l_use=no
17067 fi
17068 rm -f conftest*
17069       ac_ext=c
17070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17071 ac_cpp='$CPP $CPPFLAGS'
17072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17074 cross_compiling=$ac_cv_prog_cc_cross
17075
17076     
17077 fi
17078
17079   fi
17080   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17081
17082     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17083       for ac_func in _atan2l
17084 do
17085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17086 echo "configure:17087: checking for $ac_func" >&5
17087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17088   echo $ac_n "(cached) $ac_c" 1>&6
17089 else
17090   cat > conftest.$ac_ext <<EOF
17091 #line 17092 "configure"
17092 #include "confdefs.h"
17093 /* System header to define __stub macros and hopefully few prototypes,
17094     which can conflict with char $ac_func(); below.  */
17095 #include <assert.h>
17096 /* Override any gcc2 internal prototype to avoid an error.  */
17097 /* We use char because int might match the return type of a gcc2
17098     builtin and then its argument prototype would still apply.  */
17099 char $ac_func();
17100
17101 int main() {
17102
17103 /* The GNU C library defines this for functions which it implements
17104     to always fail with ENOSYS.  Some functions are actually named
17105     something starting with __ and the normal name is an alias.  */
17106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17107 choke me
17108 #else
17109 $ac_func();
17110 #endif
17111
17112 ; return 0; }
17113 EOF
17114 if { (eval echo configure:17115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17115   rm -rf conftest*
17116   eval "ac_cv_func_$ac_func=yes"
17117 else
17118   echo "configure: failed program was:" >&5
17119   cat conftest.$ac_ext >&5
17120   rm -rf conftest*
17121   eval "ac_cv_func_$ac_func=no"
17122 fi
17123 rm -f conftest*
17124 fi
17125
17126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17127   echo "$ac_t""yes" 1>&6
17128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17129   cat >> confdefs.h <<EOF
17130 #define $ac_tr_func 1
17131 EOF
17132  
17133 else
17134   echo "$ac_t""no" 1>&6
17135 fi
17136 done
17137     
17138     fi
17139   fi
17140
17141   
17142   
17143   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17144 echo "configure:17145: checking for expl declaration" >&5
17145   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17146     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17147   echo $ac_n "(cached) $ac_c" 1>&6
17148 else
17149   
17150       
17151       ac_ext=C
17152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17153 ac_cpp='$CXXCPP $CPPFLAGS'
17154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17156 cross_compiling=$ac_cv_prog_cxx_cross
17157
17158       cat > conftest.$ac_ext <<EOF
17159 #line 17160 "configure"
17160 #include "confdefs.h"
17161 #include <math.h>
17162                       #ifdef HAVE_IEEEFP_H
17163                       #include <ieeefp.h>
17164                       #endif
17165                      
17166 int main() {
17167  expl(0);
17168 ; return 0; }
17169 EOF
17170 if { (eval echo configure:17171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17171   rm -rf conftest*
17172   glibcpp_cv_func_expl_use=yes
17173 else
17174   echo "configure: failed program was:" >&5
17175   cat conftest.$ac_ext >&5
17176   rm -rf conftest*
17177   glibcpp_cv_func_expl_use=no
17178 fi
17179 rm -f conftest*
17180       ac_ext=c
17181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17182 ac_cpp='$CPP $CPPFLAGS'
17183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17185 cross_compiling=$ac_cv_prog_cc_cross
17186
17187     
17188 fi
17189
17190   fi
17191   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17192
17193   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17194     for ac_func in expl
17195 do
17196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17197 echo "configure:17198: checking for $ac_func" >&5
17198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17199   echo $ac_n "(cached) $ac_c" 1>&6
17200 else
17201   cat > conftest.$ac_ext <<EOF
17202 #line 17203 "configure"
17203 #include "confdefs.h"
17204 /* System header to define __stub macros and hopefully few prototypes,
17205     which can conflict with char $ac_func(); below.  */
17206 #include <assert.h>
17207 /* Override any gcc2 internal prototype to avoid an error.  */
17208 /* We use char because int might match the return type of a gcc2
17209     builtin and then its argument prototype would still apply.  */
17210 char $ac_func();
17211
17212 int main() {
17213
17214 /* The GNU C library defines this for functions which it implements
17215     to always fail with ENOSYS.  Some functions are actually named
17216     something starting with __ and the normal name is an alias.  */
17217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17218 choke me
17219 #else
17220 $ac_func();
17221 #endif
17222
17223 ; return 0; }
17224 EOF
17225 if { (eval echo configure:17226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17226   rm -rf conftest*
17227   eval "ac_cv_func_$ac_func=yes"
17228 else
17229   echo "configure: failed program was:" >&5
17230   cat conftest.$ac_ext >&5
17231   rm -rf conftest*
17232   eval "ac_cv_func_$ac_func=no"
17233 fi
17234 rm -f conftest*
17235 fi
17236
17237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17238   echo "$ac_t""yes" 1>&6
17239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17240   cat >> confdefs.h <<EOF
17241 #define $ac_tr_func 1
17242 EOF
17243  
17244 else
17245   echo "$ac_t""no" 1>&6
17246 fi
17247 done
17248     
17249   else
17250     
17251   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17252 echo "configure:17253: checking for _expl declaration" >&5
17253   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17254     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17255   echo $ac_n "(cached) $ac_c" 1>&6
17256 else
17257   
17258       
17259       ac_ext=C
17260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17261 ac_cpp='$CXXCPP $CPPFLAGS'
17262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17264 cross_compiling=$ac_cv_prog_cxx_cross
17265
17266       cat > conftest.$ac_ext <<EOF
17267 #line 17268 "configure"
17268 #include "confdefs.h"
17269 #include <math.h>
17270                       #ifdef HAVE_IEEEFP_H
17271                       #include <ieeefp.h>
17272                       #endif
17273                      
17274 int main() {
17275  _expl(0);
17276 ; return 0; }
17277 EOF
17278 if { (eval echo configure:17279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17279   rm -rf conftest*
17280   glibcpp_cv_func__expl_use=yes
17281 else
17282   echo "configure: failed program was:" >&5
17283   cat conftest.$ac_ext >&5
17284   rm -rf conftest*
17285   glibcpp_cv_func__expl_use=no
17286 fi
17287 rm -f conftest*
17288       ac_ext=c
17289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17290 ac_cpp='$CPP $CPPFLAGS'
17291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17293 cross_compiling=$ac_cv_prog_cc_cross
17294
17295     
17296 fi
17297
17298   fi
17299   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17300
17301     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17302       for ac_func in _expl
17303 do
17304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17305 echo "configure:17306: checking for $ac_func" >&5
17306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17307   echo $ac_n "(cached) $ac_c" 1>&6
17308 else
17309   cat > conftest.$ac_ext <<EOF
17310 #line 17311 "configure"
17311 #include "confdefs.h"
17312 /* System header to define __stub macros and hopefully few prototypes,
17313     which can conflict with char $ac_func(); below.  */
17314 #include <assert.h>
17315 /* Override any gcc2 internal prototype to avoid an error.  */
17316 /* We use char because int might match the return type of a gcc2
17317     builtin and then its argument prototype would still apply.  */
17318 char $ac_func();
17319
17320 int main() {
17321
17322 /* The GNU C library defines this for functions which it implements
17323     to always fail with ENOSYS.  Some functions are actually named
17324     something starting with __ and the normal name is an alias.  */
17325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17326 choke me
17327 #else
17328 $ac_func();
17329 #endif
17330
17331 ; return 0; }
17332 EOF
17333 if { (eval echo configure:17334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17334   rm -rf conftest*
17335   eval "ac_cv_func_$ac_func=yes"
17336 else
17337   echo "configure: failed program was:" >&5
17338   cat conftest.$ac_ext >&5
17339   rm -rf conftest*
17340   eval "ac_cv_func_$ac_func=no"
17341 fi
17342 rm -f conftest*
17343 fi
17344
17345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17346   echo "$ac_t""yes" 1>&6
17347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17348   cat >> confdefs.h <<EOF
17349 #define $ac_tr_func 1
17350 EOF
17351  
17352 else
17353   echo "$ac_t""no" 1>&6
17354 fi
17355 done
17356     
17357     fi
17358   fi
17359
17360   
17361   
17362   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17363 echo "configure:17364: checking for fabsl declaration" >&5
17364   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17365     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17366   echo $ac_n "(cached) $ac_c" 1>&6
17367 else
17368   
17369       
17370       ac_ext=C
17371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17372 ac_cpp='$CXXCPP $CPPFLAGS'
17373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17375 cross_compiling=$ac_cv_prog_cxx_cross
17376
17377       cat > conftest.$ac_ext <<EOF
17378 #line 17379 "configure"
17379 #include "confdefs.h"
17380 #include <math.h>
17381                       #ifdef HAVE_IEEEFP_H
17382                       #include <ieeefp.h>
17383                       #endif
17384                      
17385 int main() {
17386  fabsl(0);
17387 ; return 0; }
17388 EOF
17389 if { (eval echo configure:17390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17390   rm -rf conftest*
17391   glibcpp_cv_func_fabsl_use=yes
17392 else
17393   echo "configure: failed program was:" >&5
17394   cat conftest.$ac_ext >&5
17395   rm -rf conftest*
17396   glibcpp_cv_func_fabsl_use=no
17397 fi
17398 rm -f conftest*
17399       ac_ext=c
17400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17401 ac_cpp='$CPP $CPPFLAGS'
17402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17404 cross_compiling=$ac_cv_prog_cc_cross
17405
17406     
17407 fi
17408
17409   fi
17410   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17411
17412   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17413     for ac_func in fabsl
17414 do
17415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17416 echo "configure:17417: checking for $ac_func" >&5
17417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17418   echo $ac_n "(cached) $ac_c" 1>&6
17419 else
17420   cat > conftest.$ac_ext <<EOF
17421 #line 17422 "configure"
17422 #include "confdefs.h"
17423 /* System header to define __stub macros and hopefully few prototypes,
17424     which can conflict with char $ac_func(); below.  */
17425 #include <assert.h>
17426 /* Override any gcc2 internal prototype to avoid an error.  */
17427 /* We use char because int might match the return type of a gcc2
17428     builtin and then its argument prototype would still apply.  */
17429 char $ac_func();
17430
17431 int main() {
17432
17433 /* The GNU C library defines this for functions which it implements
17434     to always fail with ENOSYS.  Some functions are actually named
17435     something starting with __ and the normal name is an alias.  */
17436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17437 choke me
17438 #else
17439 $ac_func();
17440 #endif
17441
17442 ; return 0; }
17443 EOF
17444 if { (eval echo configure:17445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17445   rm -rf conftest*
17446   eval "ac_cv_func_$ac_func=yes"
17447 else
17448   echo "configure: failed program was:" >&5
17449   cat conftest.$ac_ext >&5
17450   rm -rf conftest*
17451   eval "ac_cv_func_$ac_func=no"
17452 fi
17453 rm -f conftest*
17454 fi
17455
17456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17457   echo "$ac_t""yes" 1>&6
17458     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17459   cat >> confdefs.h <<EOF
17460 #define $ac_tr_func 1
17461 EOF
17462  
17463 else
17464   echo "$ac_t""no" 1>&6
17465 fi
17466 done
17467     
17468   else
17469     
17470   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17471 echo "configure:17472: checking for _fabsl declaration" >&5
17472   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17473     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17474   echo $ac_n "(cached) $ac_c" 1>&6
17475 else
17476   
17477       
17478       ac_ext=C
17479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17480 ac_cpp='$CXXCPP $CPPFLAGS'
17481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17483 cross_compiling=$ac_cv_prog_cxx_cross
17484
17485       cat > conftest.$ac_ext <<EOF
17486 #line 17487 "configure"
17487 #include "confdefs.h"
17488 #include <math.h>
17489                       #ifdef HAVE_IEEEFP_H
17490                       #include <ieeefp.h>
17491                       #endif
17492                      
17493 int main() {
17494  _fabsl(0);
17495 ; return 0; }
17496 EOF
17497 if { (eval echo configure:17498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17498   rm -rf conftest*
17499   glibcpp_cv_func__fabsl_use=yes
17500 else
17501   echo "configure: failed program was:" >&5
17502   cat conftest.$ac_ext >&5
17503   rm -rf conftest*
17504   glibcpp_cv_func__fabsl_use=no
17505 fi
17506 rm -f conftest*
17507       ac_ext=c
17508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17509 ac_cpp='$CPP $CPPFLAGS'
17510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17512 cross_compiling=$ac_cv_prog_cc_cross
17513
17514     
17515 fi
17516
17517   fi
17518   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17519
17520     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17521       for ac_func in _fabsl
17522 do
17523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17524 echo "configure:17525: checking for $ac_func" >&5
17525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17526   echo $ac_n "(cached) $ac_c" 1>&6
17527 else
17528   cat > conftest.$ac_ext <<EOF
17529 #line 17530 "configure"
17530 #include "confdefs.h"
17531 /* System header to define __stub macros and hopefully few prototypes,
17532     which can conflict with char $ac_func(); below.  */
17533 #include <assert.h>
17534 /* Override any gcc2 internal prototype to avoid an error.  */
17535 /* We use char because int might match the return type of a gcc2
17536     builtin and then its argument prototype would still apply.  */
17537 char $ac_func();
17538
17539 int main() {
17540
17541 /* The GNU C library defines this for functions which it implements
17542     to always fail with ENOSYS.  Some functions are actually named
17543     something starting with __ and the normal name is an alias.  */
17544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17545 choke me
17546 #else
17547 $ac_func();
17548 #endif
17549
17550 ; return 0; }
17551 EOF
17552 if { (eval echo configure:17553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17553   rm -rf conftest*
17554   eval "ac_cv_func_$ac_func=yes"
17555 else
17556   echo "configure: failed program was:" >&5
17557   cat conftest.$ac_ext >&5
17558   rm -rf conftest*
17559   eval "ac_cv_func_$ac_func=no"
17560 fi
17561 rm -f conftest*
17562 fi
17563
17564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17565   echo "$ac_t""yes" 1>&6
17566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17567   cat >> confdefs.h <<EOF
17568 #define $ac_tr_func 1
17569 EOF
17570  
17571 else
17572   echo "$ac_t""no" 1>&6
17573 fi
17574 done
17575     
17576     fi
17577   fi
17578
17579   
17580   
17581   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17582 echo "configure:17583: checking for fmodl declaration" >&5
17583   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17584     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17585   echo $ac_n "(cached) $ac_c" 1>&6
17586 else
17587   
17588       
17589       ac_ext=C
17590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17591 ac_cpp='$CXXCPP $CPPFLAGS'
17592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17594 cross_compiling=$ac_cv_prog_cxx_cross
17595
17596       cat > conftest.$ac_ext <<EOF
17597 #line 17598 "configure"
17598 #include "confdefs.h"
17599 #include <math.h>
17600 int main() {
17601  fmodl(0, 0);
17602 ; return 0; }
17603 EOF
17604 if { (eval echo configure:17605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17605   rm -rf conftest*
17606   glibcpp_cv_func_fmodl_use=yes
17607 else
17608   echo "configure: failed program was:" >&5
17609   cat conftest.$ac_ext >&5
17610   rm -rf conftest*
17611   glibcpp_cv_func_fmodl_use=no
17612 fi
17613 rm -f conftest*
17614       ac_ext=c
17615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17616 ac_cpp='$CPP $CPPFLAGS'
17617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17619 cross_compiling=$ac_cv_prog_cc_cross
17620
17621     
17622 fi
17623
17624   fi
17625   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17626
17627   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17628     for ac_func in fmodl
17629 do
17630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17631 echo "configure:17632: checking for $ac_func" >&5
17632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17633   echo $ac_n "(cached) $ac_c" 1>&6
17634 else
17635   cat > conftest.$ac_ext <<EOF
17636 #line 17637 "configure"
17637 #include "confdefs.h"
17638 /* System header to define __stub macros and hopefully few prototypes,
17639     which can conflict with char $ac_func(); below.  */
17640 #include <assert.h>
17641 /* Override any gcc2 internal prototype to avoid an error.  */
17642 /* We use char because int might match the return type of a gcc2
17643     builtin and then its argument prototype would still apply.  */
17644 char $ac_func();
17645
17646 int main() {
17647
17648 /* The GNU C library defines this for functions which it implements
17649     to always fail with ENOSYS.  Some functions are actually named
17650     something starting with __ and the normal name is an alias.  */
17651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17652 choke me
17653 #else
17654 $ac_func();
17655 #endif
17656
17657 ; return 0; }
17658 EOF
17659 if { (eval echo configure:17660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17660   rm -rf conftest*
17661   eval "ac_cv_func_$ac_func=yes"
17662 else
17663   echo "configure: failed program was:" >&5
17664   cat conftest.$ac_ext >&5
17665   rm -rf conftest*
17666   eval "ac_cv_func_$ac_func=no"
17667 fi
17668 rm -f conftest*
17669 fi
17670
17671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17672   echo "$ac_t""yes" 1>&6
17673     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17674   cat >> confdefs.h <<EOF
17675 #define $ac_tr_func 1
17676 EOF
17677  
17678 else
17679   echo "$ac_t""no" 1>&6
17680 fi
17681 done
17682     
17683   else
17684     
17685   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17686 echo "configure:17687: checking for _fmodl declaration" >&5
17687   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17688     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17689   echo $ac_n "(cached) $ac_c" 1>&6
17690 else
17691   
17692       
17693       ac_ext=C
17694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17695 ac_cpp='$CXXCPP $CPPFLAGS'
17696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17698 cross_compiling=$ac_cv_prog_cxx_cross
17699
17700       cat > conftest.$ac_ext <<EOF
17701 #line 17702 "configure"
17702 #include "confdefs.h"
17703 #include <math.h>
17704 int main() {
17705  _fmodl(0, 0);
17706 ; return 0; }
17707 EOF
17708 if { (eval echo configure:17709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17709   rm -rf conftest*
17710   glibcpp_cv_func__fmodl_use=yes
17711 else
17712   echo "configure: failed program was:" >&5
17713   cat conftest.$ac_ext >&5
17714   rm -rf conftest*
17715   glibcpp_cv_func__fmodl_use=no
17716 fi
17717 rm -f conftest*
17718       ac_ext=c
17719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17720 ac_cpp='$CPP $CPPFLAGS'
17721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17723 cross_compiling=$ac_cv_prog_cc_cross
17724
17725     
17726 fi
17727
17728   fi
17729   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17730
17731     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17732       for ac_func in _fmodl
17733 do
17734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17735 echo "configure:17736: checking for $ac_func" >&5
17736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17737   echo $ac_n "(cached) $ac_c" 1>&6
17738 else
17739   cat > conftest.$ac_ext <<EOF
17740 #line 17741 "configure"
17741 #include "confdefs.h"
17742 /* System header to define __stub macros and hopefully few prototypes,
17743     which can conflict with char $ac_func(); below.  */
17744 #include <assert.h>
17745 /* Override any gcc2 internal prototype to avoid an error.  */
17746 /* We use char because int might match the return type of a gcc2
17747     builtin and then its argument prototype would still apply.  */
17748 char $ac_func();
17749
17750 int main() {
17751
17752 /* The GNU C library defines this for functions which it implements
17753     to always fail with ENOSYS.  Some functions are actually named
17754     something starting with __ and the normal name is an alias.  */
17755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17756 choke me
17757 #else
17758 $ac_func();
17759 #endif
17760
17761 ; return 0; }
17762 EOF
17763 if { (eval echo configure:17764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17764   rm -rf conftest*
17765   eval "ac_cv_func_$ac_func=yes"
17766 else
17767   echo "configure: failed program was:" >&5
17768   cat conftest.$ac_ext >&5
17769   rm -rf conftest*
17770   eval "ac_cv_func_$ac_func=no"
17771 fi
17772 rm -f conftest*
17773 fi
17774
17775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17776   echo "$ac_t""yes" 1>&6
17777     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17778   cat >> confdefs.h <<EOF
17779 #define $ac_tr_func 1
17780 EOF
17781  
17782 else
17783   echo "$ac_t""no" 1>&6
17784 fi
17785 done
17786     
17787     fi
17788   fi
17789
17790   
17791   
17792   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17793 echo "configure:17794: checking for frexpl declaration" >&5
17794   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17795     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17796   echo $ac_n "(cached) $ac_c" 1>&6
17797 else
17798   
17799       
17800       ac_ext=C
17801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17802 ac_cpp='$CXXCPP $CPPFLAGS'
17803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17805 cross_compiling=$ac_cv_prog_cxx_cross
17806
17807       cat > conftest.$ac_ext <<EOF
17808 #line 17809 "configure"
17809 #include "confdefs.h"
17810 #include <math.h>
17811 int main() {
17812  frexpl(0, 0);
17813 ; return 0; }
17814 EOF
17815 if { (eval echo configure:17816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17816   rm -rf conftest*
17817   glibcpp_cv_func_frexpl_use=yes
17818 else
17819   echo "configure: failed program was:" >&5
17820   cat conftest.$ac_ext >&5
17821   rm -rf conftest*
17822   glibcpp_cv_func_frexpl_use=no
17823 fi
17824 rm -f conftest*
17825       ac_ext=c
17826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17827 ac_cpp='$CPP $CPPFLAGS'
17828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17830 cross_compiling=$ac_cv_prog_cc_cross
17831
17832     
17833 fi
17834
17835   fi
17836   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17837
17838   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17839     for ac_func in frexpl
17840 do
17841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17842 echo "configure:17843: checking for $ac_func" >&5
17843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17844   echo $ac_n "(cached) $ac_c" 1>&6
17845 else
17846   cat > conftest.$ac_ext <<EOF
17847 #line 17848 "configure"
17848 #include "confdefs.h"
17849 /* System header to define __stub macros and hopefully few prototypes,
17850     which can conflict with char $ac_func(); below.  */
17851 #include <assert.h>
17852 /* Override any gcc2 internal prototype to avoid an error.  */
17853 /* We use char because int might match the return type of a gcc2
17854     builtin and then its argument prototype would still apply.  */
17855 char $ac_func();
17856
17857 int main() {
17858
17859 /* The GNU C library defines this for functions which it implements
17860     to always fail with ENOSYS.  Some functions are actually named
17861     something starting with __ and the normal name is an alias.  */
17862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17863 choke me
17864 #else
17865 $ac_func();
17866 #endif
17867
17868 ; return 0; }
17869 EOF
17870 if { (eval echo configure:17871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17871   rm -rf conftest*
17872   eval "ac_cv_func_$ac_func=yes"
17873 else
17874   echo "configure: failed program was:" >&5
17875   cat conftest.$ac_ext >&5
17876   rm -rf conftest*
17877   eval "ac_cv_func_$ac_func=no"
17878 fi
17879 rm -f conftest*
17880 fi
17881
17882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17883   echo "$ac_t""yes" 1>&6
17884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17885   cat >> confdefs.h <<EOF
17886 #define $ac_tr_func 1
17887 EOF
17888  
17889 else
17890   echo "$ac_t""no" 1>&6
17891 fi
17892 done
17893     
17894   else
17895     
17896   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17897 echo "configure:17898: checking for _frexpl declaration" >&5
17898   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17899     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17900   echo $ac_n "(cached) $ac_c" 1>&6
17901 else
17902   
17903       
17904       ac_ext=C
17905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17906 ac_cpp='$CXXCPP $CPPFLAGS'
17907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17909 cross_compiling=$ac_cv_prog_cxx_cross
17910
17911       cat > conftest.$ac_ext <<EOF
17912 #line 17913 "configure"
17913 #include "confdefs.h"
17914 #include <math.h>
17915 int main() {
17916  _frexpl(0, 0);
17917 ; return 0; }
17918 EOF
17919 if { (eval echo configure:17920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17920   rm -rf conftest*
17921   glibcpp_cv_func__frexpl_use=yes
17922 else
17923   echo "configure: failed program was:" >&5
17924   cat conftest.$ac_ext >&5
17925   rm -rf conftest*
17926   glibcpp_cv_func__frexpl_use=no
17927 fi
17928 rm -f conftest*
17929       ac_ext=c
17930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17931 ac_cpp='$CPP $CPPFLAGS'
17932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17934 cross_compiling=$ac_cv_prog_cc_cross
17935
17936     
17937 fi
17938
17939   fi
17940   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17941
17942     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17943       for ac_func in _frexpl
17944 do
17945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17946 echo "configure:17947: checking for $ac_func" >&5
17947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17948   echo $ac_n "(cached) $ac_c" 1>&6
17949 else
17950   cat > conftest.$ac_ext <<EOF
17951 #line 17952 "configure"
17952 #include "confdefs.h"
17953 /* System header to define __stub macros and hopefully few prototypes,
17954     which can conflict with char $ac_func(); below.  */
17955 #include <assert.h>
17956 /* Override any gcc2 internal prototype to avoid an error.  */
17957 /* We use char because int might match the return type of a gcc2
17958     builtin and then its argument prototype would still apply.  */
17959 char $ac_func();
17960
17961 int main() {
17962
17963 /* The GNU C library defines this for functions which it implements
17964     to always fail with ENOSYS.  Some functions are actually named
17965     something starting with __ and the normal name is an alias.  */
17966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17967 choke me
17968 #else
17969 $ac_func();
17970 #endif
17971
17972 ; return 0; }
17973 EOF
17974 if { (eval echo configure:17975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17975   rm -rf conftest*
17976   eval "ac_cv_func_$ac_func=yes"
17977 else
17978   echo "configure: failed program was:" >&5
17979   cat conftest.$ac_ext >&5
17980   rm -rf conftest*
17981   eval "ac_cv_func_$ac_func=no"
17982 fi
17983 rm -f conftest*
17984 fi
17985
17986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17987   echo "$ac_t""yes" 1>&6
17988     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17989   cat >> confdefs.h <<EOF
17990 #define $ac_tr_func 1
17991 EOF
17992  
17993 else
17994   echo "$ac_t""no" 1>&6
17995 fi
17996 done
17997     
17998     fi
17999   fi
18000
18001   
18002   
18003   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18004 echo "configure:18005: checking for hypotl declaration" >&5
18005   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18006     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18007   echo $ac_n "(cached) $ac_c" 1>&6
18008 else
18009   
18010       
18011       ac_ext=C
18012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18013 ac_cpp='$CXXCPP $CPPFLAGS'
18014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18016 cross_compiling=$ac_cv_prog_cxx_cross
18017
18018       cat > conftest.$ac_ext <<EOF
18019 #line 18020 "configure"
18020 #include "confdefs.h"
18021 #include <math.h>
18022 int main() {
18023  hypotl(0, 0);
18024 ; return 0; }
18025 EOF
18026 if { (eval echo configure:18027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18027   rm -rf conftest*
18028   glibcpp_cv_func_hypotl_use=yes
18029 else
18030   echo "configure: failed program was:" >&5
18031   cat conftest.$ac_ext >&5
18032   rm -rf conftest*
18033   glibcpp_cv_func_hypotl_use=no
18034 fi
18035 rm -f conftest*
18036       ac_ext=c
18037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18038 ac_cpp='$CPP $CPPFLAGS'
18039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18041 cross_compiling=$ac_cv_prog_cc_cross
18042
18043     
18044 fi
18045
18046   fi
18047   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18048
18049   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18050     for ac_func in hypotl
18051 do
18052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18053 echo "configure:18054: checking for $ac_func" >&5
18054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18055   echo $ac_n "(cached) $ac_c" 1>&6
18056 else
18057   cat > conftest.$ac_ext <<EOF
18058 #line 18059 "configure"
18059 #include "confdefs.h"
18060 /* System header to define __stub macros and hopefully few prototypes,
18061     which can conflict with char $ac_func(); below.  */
18062 #include <assert.h>
18063 /* Override any gcc2 internal prototype to avoid an error.  */
18064 /* We use char because int might match the return type of a gcc2
18065     builtin and then its argument prototype would still apply.  */
18066 char $ac_func();
18067
18068 int main() {
18069
18070 /* The GNU C library defines this for functions which it implements
18071     to always fail with ENOSYS.  Some functions are actually named
18072     something starting with __ and the normal name is an alias.  */
18073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18074 choke me
18075 #else
18076 $ac_func();
18077 #endif
18078
18079 ; return 0; }
18080 EOF
18081 if { (eval echo configure:18082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18082   rm -rf conftest*
18083   eval "ac_cv_func_$ac_func=yes"
18084 else
18085   echo "configure: failed program was:" >&5
18086   cat conftest.$ac_ext >&5
18087   rm -rf conftest*
18088   eval "ac_cv_func_$ac_func=no"
18089 fi
18090 rm -f conftest*
18091 fi
18092
18093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18094   echo "$ac_t""yes" 1>&6
18095     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18096   cat >> confdefs.h <<EOF
18097 #define $ac_tr_func 1
18098 EOF
18099  
18100 else
18101   echo "$ac_t""no" 1>&6
18102 fi
18103 done
18104     
18105   else
18106     
18107   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18108 echo "configure:18109: checking for _hypotl declaration" >&5
18109   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18110     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18111   echo $ac_n "(cached) $ac_c" 1>&6
18112 else
18113   
18114       
18115       ac_ext=C
18116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18117 ac_cpp='$CXXCPP $CPPFLAGS'
18118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18120 cross_compiling=$ac_cv_prog_cxx_cross
18121
18122       cat > conftest.$ac_ext <<EOF
18123 #line 18124 "configure"
18124 #include "confdefs.h"
18125 #include <math.h>
18126 int main() {
18127  _hypotl(0, 0);
18128 ; return 0; }
18129 EOF
18130 if { (eval echo configure:18131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18131   rm -rf conftest*
18132   glibcpp_cv_func__hypotl_use=yes
18133 else
18134   echo "configure: failed program was:" >&5
18135   cat conftest.$ac_ext >&5
18136   rm -rf conftest*
18137   glibcpp_cv_func__hypotl_use=no
18138 fi
18139 rm -f conftest*
18140       ac_ext=c
18141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18142 ac_cpp='$CPP $CPPFLAGS'
18143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18145 cross_compiling=$ac_cv_prog_cc_cross
18146
18147     
18148 fi
18149
18150   fi
18151   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18152
18153     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18154       for ac_func in _hypotl
18155 do
18156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18157 echo "configure:18158: checking for $ac_func" >&5
18158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18159   echo $ac_n "(cached) $ac_c" 1>&6
18160 else
18161   cat > conftest.$ac_ext <<EOF
18162 #line 18163 "configure"
18163 #include "confdefs.h"
18164 /* System header to define __stub macros and hopefully few prototypes,
18165     which can conflict with char $ac_func(); below.  */
18166 #include <assert.h>
18167 /* Override any gcc2 internal prototype to avoid an error.  */
18168 /* We use char because int might match the return type of a gcc2
18169     builtin and then its argument prototype would still apply.  */
18170 char $ac_func();
18171
18172 int main() {
18173
18174 /* The GNU C library defines this for functions which it implements
18175     to always fail with ENOSYS.  Some functions are actually named
18176     something starting with __ and the normal name is an alias.  */
18177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18178 choke me
18179 #else
18180 $ac_func();
18181 #endif
18182
18183 ; return 0; }
18184 EOF
18185 if { (eval echo configure:18186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18186   rm -rf conftest*
18187   eval "ac_cv_func_$ac_func=yes"
18188 else
18189   echo "configure: failed program was:" >&5
18190   cat conftest.$ac_ext >&5
18191   rm -rf conftest*
18192   eval "ac_cv_func_$ac_func=no"
18193 fi
18194 rm -f conftest*
18195 fi
18196
18197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18198   echo "$ac_t""yes" 1>&6
18199     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18200   cat >> confdefs.h <<EOF
18201 #define $ac_tr_func 1
18202 EOF
18203  
18204 else
18205   echo "$ac_t""no" 1>&6
18206 fi
18207 done
18208     
18209     fi
18210   fi
18211
18212   
18213   
18214   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18215 echo "configure:18216: checking for ldexpl declaration" >&5
18216   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18217     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18218   echo $ac_n "(cached) $ac_c" 1>&6
18219 else
18220   
18221       
18222       ac_ext=C
18223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18224 ac_cpp='$CXXCPP $CPPFLAGS'
18225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18227 cross_compiling=$ac_cv_prog_cxx_cross
18228
18229       cat > conftest.$ac_ext <<EOF
18230 #line 18231 "configure"
18231 #include "confdefs.h"
18232 #include <math.h>
18233 int main() {
18234  ldexpl(0, 0);
18235 ; return 0; }
18236 EOF
18237 if { (eval echo configure:18238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18238   rm -rf conftest*
18239   glibcpp_cv_func_ldexpl_use=yes
18240 else
18241   echo "configure: failed program was:" >&5
18242   cat conftest.$ac_ext >&5
18243   rm -rf conftest*
18244   glibcpp_cv_func_ldexpl_use=no
18245 fi
18246 rm -f conftest*
18247       ac_ext=c
18248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18249 ac_cpp='$CPP $CPPFLAGS'
18250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18252 cross_compiling=$ac_cv_prog_cc_cross
18253
18254     
18255 fi
18256
18257   fi
18258   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18259
18260   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18261     for ac_func in ldexpl
18262 do
18263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18264 echo "configure:18265: checking for $ac_func" >&5
18265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18266   echo $ac_n "(cached) $ac_c" 1>&6
18267 else
18268   cat > conftest.$ac_ext <<EOF
18269 #line 18270 "configure"
18270 #include "confdefs.h"
18271 /* System header to define __stub macros and hopefully few prototypes,
18272     which can conflict with char $ac_func(); below.  */
18273 #include <assert.h>
18274 /* Override any gcc2 internal prototype to avoid an error.  */
18275 /* We use char because int might match the return type of a gcc2
18276     builtin and then its argument prototype would still apply.  */
18277 char $ac_func();
18278
18279 int main() {
18280
18281 /* The GNU C library defines this for functions which it implements
18282     to always fail with ENOSYS.  Some functions are actually named
18283     something starting with __ and the normal name is an alias.  */
18284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18285 choke me
18286 #else
18287 $ac_func();
18288 #endif
18289
18290 ; return 0; }
18291 EOF
18292 if { (eval echo configure:18293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18293   rm -rf conftest*
18294   eval "ac_cv_func_$ac_func=yes"
18295 else
18296   echo "configure: failed program was:" >&5
18297   cat conftest.$ac_ext >&5
18298   rm -rf conftest*
18299   eval "ac_cv_func_$ac_func=no"
18300 fi
18301 rm -f conftest*
18302 fi
18303
18304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18305   echo "$ac_t""yes" 1>&6
18306     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18307   cat >> confdefs.h <<EOF
18308 #define $ac_tr_func 1
18309 EOF
18310  
18311 else
18312   echo "$ac_t""no" 1>&6
18313 fi
18314 done
18315     
18316   else
18317     
18318   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18319 echo "configure:18320: checking for _ldexpl declaration" >&5
18320   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18321     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18322   echo $ac_n "(cached) $ac_c" 1>&6
18323 else
18324   
18325       
18326       ac_ext=C
18327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18328 ac_cpp='$CXXCPP $CPPFLAGS'
18329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18331 cross_compiling=$ac_cv_prog_cxx_cross
18332
18333       cat > conftest.$ac_ext <<EOF
18334 #line 18335 "configure"
18335 #include "confdefs.h"
18336 #include <math.h>
18337 int main() {
18338  _ldexpl(0, 0);
18339 ; return 0; }
18340 EOF
18341 if { (eval echo configure:18342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18342   rm -rf conftest*
18343   glibcpp_cv_func__ldexpl_use=yes
18344 else
18345   echo "configure: failed program was:" >&5
18346   cat conftest.$ac_ext >&5
18347   rm -rf conftest*
18348   glibcpp_cv_func__ldexpl_use=no
18349 fi
18350 rm -f conftest*
18351       ac_ext=c
18352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18353 ac_cpp='$CPP $CPPFLAGS'
18354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18356 cross_compiling=$ac_cv_prog_cc_cross
18357
18358     
18359 fi
18360
18361   fi
18362   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18363
18364     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18365       for ac_func in _ldexpl
18366 do
18367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18368 echo "configure:18369: checking for $ac_func" >&5
18369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18370   echo $ac_n "(cached) $ac_c" 1>&6
18371 else
18372   cat > conftest.$ac_ext <<EOF
18373 #line 18374 "configure"
18374 #include "confdefs.h"
18375 /* System header to define __stub macros and hopefully few prototypes,
18376     which can conflict with char $ac_func(); below.  */
18377 #include <assert.h>
18378 /* Override any gcc2 internal prototype to avoid an error.  */
18379 /* We use char because int might match the return type of a gcc2
18380     builtin and then its argument prototype would still apply.  */
18381 char $ac_func();
18382
18383 int main() {
18384
18385 /* The GNU C library defines this for functions which it implements
18386     to always fail with ENOSYS.  Some functions are actually named
18387     something starting with __ and the normal name is an alias.  */
18388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18389 choke me
18390 #else
18391 $ac_func();
18392 #endif
18393
18394 ; return 0; }
18395 EOF
18396 if { (eval echo configure:18397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18397   rm -rf conftest*
18398   eval "ac_cv_func_$ac_func=yes"
18399 else
18400   echo "configure: failed program was:" >&5
18401   cat conftest.$ac_ext >&5
18402   rm -rf conftest*
18403   eval "ac_cv_func_$ac_func=no"
18404 fi
18405 rm -f conftest*
18406 fi
18407
18408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18409   echo "$ac_t""yes" 1>&6
18410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18411   cat >> confdefs.h <<EOF
18412 #define $ac_tr_func 1
18413 EOF
18414  
18415 else
18416   echo "$ac_t""no" 1>&6
18417 fi
18418 done
18419     
18420     fi
18421   fi
18422
18423   
18424   
18425   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18426 echo "configure:18427: checking for logl declaration" >&5
18427   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18428     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18429   echo $ac_n "(cached) $ac_c" 1>&6
18430 else
18431   
18432       
18433       ac_ext=C
18434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18435 ac_cpp='$CXXCPP $CPPFLAGS'
18436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18438 cross_compiling=$ac_cv_prog_cxx_cross
18439
18440       cat > conftest.$ac_ext <<EOF
18441 #line 18442 "configure"
18442 #include "confdefs.h"
18443 #include <math.h>
18444                       #ifdef HAVE_IEEEFP_H
18445                       #include <ieeefp.h>
18446                       #endif
18447                      
18448 int main() {
18449  logl(0);
18450 ; return 0; }
18451 EOF
18452 if { (eval echo configure:18453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18453   rm -rf conftest*
18454   glibcpp_cv_func_logl_use=yes
18455 else
18456   echo "configure: failed program was:" >&5
18457   cat conftest.$ac_ext >&5
18458   rm -rf conftest*
18459   glibcpp_cv_func_logl_use=no
18460 fi
18461 rm -f conftest*
18462       ac_ext=c
18463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18464 ac_cpp='$CPP $CPPFLAGS'
18465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18467 cross_compiling=$ac_cv_prog_cc_cross
18468
18469     
18470 fi
18471
18472   fi
18473   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18474
18475   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18476     for ac_func in logl
18477 do
18478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18479 echo "configure:18480: checking for $ac_func" >&5
18480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18481   echo $ac_n "(cached) $ac_c" 1>&6
18482 else
18483   cat > conftest.$ac_ext <<EOF
18484 #line 18485 "configure"
18485 #include "confdefs.h"
18486 /* System header to define __stub macros and hopefully few prototypes,
18487     which can conflict with char $ac_func(); below.  */
18488 #include <assert.h>
18489 /* Override any gcc2 internal prototype to avoid an error.  */
18490 /* We use char because int might match the return type of a gcc2
18491     builtin and then its argument prototype would still apply.  */
18492 char $ac_func();
18493
18494 int main() {
18495
18496 /* The GNU C library defines this for functions which it implements
18497     to always fail with ENOSYS.  Some functions are actually named
18498     something starting with __ and the normal name is an alias.  */
18499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18500 choke me
18501 #else
18502 $ac_func();
18503 #endif
18504
18505 ; return 0; }
18506 EOF
18507 if { (eval echo configure:18508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18508   rm -rf conftest*
18509   eval "ac_cv_func_$ac_func=yes"
18510 else
18511   echo "configure: failed program was:" >&5
18512   cat conftest.$ac_ext >&5
18513   rm -rf conftest*
18514   eval "ac_cv_func_$ac_func=no"
18515 fi
18516 rm -f conftest*
18517 fi
18518
18519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18520   echo "$ac_t""yes" 1>&6
18521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18522   cat >> confdefs.h <<EOF
18523 #define $ac_tr_func 1
18524 EOF
18525  
18526 else
18527   echo "$ac_t""no" 1>&6
18528 fi
18529 done
18530     
18531   else
18532     
18533   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18534 echo "configure:18535: checking for _logl declaration" >&5
18535   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18536     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18537   echo $ac_n "(cached) $ac_c" 1>&6
18538 else
18539   
18540       
18541       ac_ext=C
18542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18543 ac_cpp='$CXXCPP $CPPFLAGS'
18544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18546 cross_compiling=$ac_cv_prog_cxx_cross
18547
18548       cat > conftest.$ac_ext <<EOF
18549 #line 18550 "configure"
18550 #include "confdefs.h"
18551 #include <math.h>
18552                       #ifdef HAVE_IEEEFP_H
18553                       #include <ieeefp.h>
18554                       #endif
18555                      
18556 int main() {
18557  _logl(0);
18558 ; return 0; }
18559 EOF
18560 if { (eval echo configure:18561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18561   rm -rf conftest*
18562   glibcpp_cv_func__logl_use=yes
18563 else
18564   echo "configure: failed program was:" >&5
18565   cat conftest.$ac_ext >&5
18566   rm -rf conftest*
18567   glibcpp_cv_func__logl_use=no
18568 fi
18569 rm -f conftest*
18570       ac_ext=c
18571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18572 ac_cpp='$CPP $CPPFLAGS'
18573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18575 cross_compiling=$ac_cv_prog_cc_cross
18576
18577     
18578 fi
18579
18580   fi
18581   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18582
18583     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18584       for ac_func in _logl
18585 do
18586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18587 echo "configure:18588: checking for $ac_func" >&5
18588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18589   echo $ac_n "(cached) $ac_c" 1>&6
18590 else
18591   cat > conftest.$ac_ext <<EOF
18592 #line 18593 "configure"
18593 #include "confdefs.h"
18594 /* System header to define __stub macros and hopefully few prototypes,
18595     which can conflict with char $ac_func(); below.  */
18596 #include <assert.h>
18597 /* Override any gcc2 internal prototype to avoid an error.  */
18598 /* We use char because int might match the return type of a gcc2
18599     builtin and then its argument prototype would still apply.  */
18600 char $ac_func();
18601
18602 int main() {
18603
18604 /* The GNU C library defines this for functions which it implements
18605     to always fail with ENOSYS.  Some functions are actually named
18606     something starting with __ and the normal name is an alias.  */
18607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18608 choke me
18609 #else
18610 $ac_func();
18611 #endif
18612
18613 ; return 0; }
18614 EOF
18615 if { (eval echo configure:18616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18616   rm -rf conftest*
18617   eval "ac_cv_func_$ac_func=yes"
18618 else
18619   echo "configure: failed program was:" >&5
18620   cat conftest.$ac_ext >&5
18621   rm -rf conftest*
18622   eval "ac_cv_func_$ac_func=no"
18623 fi
18624 rm -f conftest*
18625 fi
18626
18627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18628   echo "$ac_t""yes" 1>&6
18629     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18630   cat >> confdefs.h <<EOF
18631 #define $ac_tr_func 1
18632 EOF
18633  
18634 else
18635   echo "$ac_t""no" 1>&6
18636 fi
18637 done
18638     
18639     fi
18640   fi
18641
18642   
18643   
18644   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18645 echo "configure:18646: checking for log10l declaration" >&5
18646   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18647     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18648   echo $ac_n "(cached) $ac_c" 1>&6
18649 else
18650   
18651       
18652       ac_ext=C
18653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18654 ac_cpp='$CXXCPP $CPPFLAGS'
18655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18657 cross_compiling=$ac_cv_prog_cxx_cross
18658
18659       cat > conftest.$ac_ext <<EOF
18660 #line 18661 "configure"
18661 #include "confdefs.h"
18662 #include <math.h>
18663                       #ifdef HAVE_IEEEFP_H
18664                       #include <ieeefp.h>
18665                       #endif
18666                      
18667 int main() {
18668  log10l(0);
18669 ; return 0; }
18670 EOF
18671 if { (eval echo configure:18672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18672   rm -rf conftest*
18673   glibcpp_cv_func_log10l_use=yes
18674 else
18675   echo "configure: failed program was:" >&5
18676   cat conftest.$ac_ext >&5
18677   rm -rf conftest*
18678   glibcpp_cv_func_log10l_use=no
18679 fi
18680 rm -f conftest*
18681       ac_ext=c
18682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18683 ac_cpp='$CPP $CPPFLAGS'
18684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18686 cross_compiling=$ac_cv_prog_cc_cross
18687
18688     
18689 fi
18690
18691   fi
18692   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18693
18694   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18695     for ac_func in log10l
18696 do
18697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18698 echo "configure:18699: checking for $ac_func" >&5
18699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18700   echo $ac_n "(cached) $ac_c" 1>&6
18701 else
18702   cat > conftest.$ac_ext <<EOF
18703 #line 18704 "configure"
18704 #include "confdefs.h"
18705 /* System header to define __stub macros and hopefully few prototypes,
18706     which can conflict with char $ac_func(); below.  */
18707 #include <assert.h>
18708 /* Override any gcc2 internal prototype to avoid an error.  */
18709 /* We use char because int might match the return type of a gcc2
18710     builtin and then its argument prototype would still apply.  */
18711 char $ac_func();
18712
18713 int main() {
18714
18715 /* The GNU C library defines this for functions which it implements
18716     to always fail with ENOSYS.  Some functions are actually named
18717     something starting with __ and the normal name is an alias.  */
18718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18719 choke me
18720 #else
18721 $ac_func();
18722 #endif
18723
18724 ; return 0; }
18725 EOF
18726 if { (eval echo configure:18727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18727   rm -rf conftest*
18728   eval "ac_cv_func_$ac_func=yes"
18729 else
18730   echo "configure: failed program was:" >&5
18731   cat conftest.$ac_ext >&5
18732   rm -rf conftest*
18733   eval "ac_cv_func_$ac_func=no"
18734 fi
18735 rm -f conftest*
18736 fi
18737
18738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18739   echo "$ac_t""yes" 1>&6
18740     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18741   cat >> confdefs.h <<EOF
18742 #define $ac_tr_func 1
18743 EOF
18744  
18745 else
18746   echo "$ac_t""no" 1>&6
18747 fi
18748 done
18749     
18750   else
18751     
18752   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18753 echo "configure:18754: checking for _log10l declaration" >&5
18754   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18755     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18756   echo $ac_n "(cached) $ac_c" 1>&6
18757 else
18758   
18759       
18760       ac_ext=C
18761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18762 ac_cpp='$CXXCPP $CPPFLAGS'
18763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18765 cross_compiling=$ac_cv_prog_cxx_cross
18766
18767       cat > conftest.$ac_ext <<EOF
18768 #line 18769 "configure"
18769 #include "confdefs.h"
18770 #include <math.h>
18771                       #ifdef HAVE_IEEEFP_H
18772                       #include <ieeefp.h>
18773                       #endif
18774                      
18775 int main() {
18776  _log10l(0);
18777 ; return 0; }
18778 EOF
18779 if { (eval echo configure:18780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18780   rm -rf conftest*
18781   glibcpp_cv_func__log10l_use=yes
18782 else
18783   echo "configure: failed program was:" >&5
18784   cat conftest.$ac_ext >&5
18785   rm -rf conftest*
18786   glibcpp_cv_func__log10l_use=no
18787 fi
18788 rm -f conftest*
18789       ac_ext=c
18790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18791 ac_cpp='$CPP $CPPFLAGS'
18792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18794 cross_compiling=$ac_cv_prog_cc_cross
18795
18796     
18797 fi
18798
18799   fi
18800   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18801
18802     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18803       for ac_func in _log10l
18804 do
18805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18806 echo "configure:18807: checking for $ac_func" >&5
18807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18808   echo $ac_n "(cached) $ac_c" 1>&6
18809 else
18810   cat > conftest.$ac_ext <<EOF
18811 #line 18812 "configure"
18812 #include "confdefs.h"
18813 /* System header to define __stub macros and hopefully few prototypes,
18814     which can conflict with char $ac_func(); below.  */
18815 #include <assert.h>
18816 /* Override any gcc2 internal prototype to avoid an error.  */
18817 /* We use char because int might match the return type of a gcc2
18818     builtin and then its argument prototype would still apply.  */
18819 char $ac_func();
18820
18821 int main() {
18822
18823 /* The GNU C library defines this for functions which it implements
18824     to always fail with ENOSYS.  Some functions are actually named
18825     something starting with __ and the normal name is an alias.  */
18826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18827 choke me
18828 #else
18829 $ac_func();
18830 #endif
18831
18832 ; return 0; }
18833 EOF
18834 if { (eval echo configure:18835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18835   rm -rf conftest*
18836   eval "ac_cv_func_$ac_func=yes"
18837 else
18838   echo "configure: failed program was:" >&5
18839   cat conftest.$ac_ext >&5
18840   rm -rf conftest*
18841   eval "ac_cv_func_$ac_func=no"
18842 fi
18843 rm -f conftest*
18844 fi
18845
18846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18847   echo "$ac_t""yes" 1>&6
18848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18849   cat >> confdefs.h <<EOF
18850 #define $ac_tr_func 1
18851 EOF
18852  
18853 else
18854   echo "$ac_t""no" 1>&6
18855 fi
18856 done
18857     
18858     fi
18859   fi
18860
18861   
18862   
18863   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18864 echo "configure:18865: checking for modfl declaration" >&5
18865   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18866     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18867   echo $ac_n "(cached) $ac_c" 1>&6
18868 else
18869   
18870       
18871       ac_ext=C
18872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18873 ac_cpp='$CXXCPP $CPPFLAGS'
18874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18876 cross_compiling=$ac_cv_prog_cxx_cross
18877
18878       cat > conftest.$ac_ext <<EOF
18879 #line 18880 "configure"
18880 #include "confdefs.h"
18881 #include <math.h>
18882 int main() {
18883  modfl(0, 0);
18884 ; return 0; }
18885 EOF
18886 if { (eval echo configure:18887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18887   rm -rf conftest*
18888   glibcpp_cv_func_modfl_use=yes
18889 else
18890   echo "configure: failed program was:" >&5
18891   cat conftest.$ac_ext >&5
18892   rm -rf conftest*
18893   glibcpp_cv_func_modfl_use=no
18894 fi
18895 rm -f conftest*
18896       ac_ext=c
18897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18898 ac_cpp='$CPP $CPPFLAGS'
18899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18901 cross_compiling=$ac_cv_prog_cc_cross
18902
18903     
18904 fi
18905
18906   fi
18907   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18908
18909   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18910     for ac_func in modfl
18911 do
18912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18913 echo "configure:18914: checking for $ac_func" >&5
18914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18915   echo $ac_n "(cached) $ac_c" 1>&6
18916 else
18917   cat > conftest.$ac_ext <<EOF
18918 #line 18919 "configure"
18919 #include "confdefs.h"
18920 /* System header to define __stub macros and hopefully few prototypes,
18921     which can conflict with char $ac_func(); below.  */
18922 #include <assert.h>
18923 /* Override any gcc2 internal prototype to avoid an error.  */
18924 /* We use char because int might match the return type of a gcc2
18925     builtin and then its argument prototype would still apply.  */
18926 char $ac_func();
18927
18928 int main() {
18929
18930 /* The GNU C library defines this for functions which it implements
18931     to always fail with ENOSYS.  Some functions are actually named
18932     something starting with __ and the normal name is an alias.  */
18933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18934 choke me
18935 #else
18936 $ac_func();
18937 #endif
18938
18939 ; return 0; }
18940 EOF
18941 if { (eval echo configure:18942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18942   rm -rf conftest*
18943   eval "ac_cv_func_$ac_func=yes"
18944 else
18945   echo "configure: failed program was:" >&5
18946   cat conftest.$ac_ext >&5
18947   rm -rf conftest*
18948   eval "ac_cv_func_$ac_func=no"
18949 fi
18950 rm -f conftest*
18951 fi
18952
18953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18954   echo "$ac_t""yes" 1>&6
18955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18956   cat >> confdefs.h <<EOF
18957 #define $ac_tr_func 1
18958 EOF
18959  
18960 else
18961   echo "$ac_t""no" 1>&6
18962 fi
18963 done
18964     
18965   else
18966     
18967   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18968 echo "configure:18969: checking for _modfl declaration" >&5
18969   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18970     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18971   echo $ac_n "(cached) $ac_c" 1>&6
18972 else
18973   
18974       
18975       ac_ext=C
18976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18977 ac_cpp='$CXXCPP $CPPFLAGS'
18978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18980 cross_compiling=$ac_cv_prog_cxx_cross
18981
18982       cat > conftest.$ac_ext <<EOF
18983 #line 18984 "configure"
18984 #include "confdefs.h"
18985 #include <math.h>
18986 int main() {
18987  _modfl(0, 0);
18988 ; return 0; }
18989 EOF
18990 if { (eval echo configure:18991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18991   rm -rf conftest*
18992   glibcpp_cv_func__modfl_use=yes
18993 else
18994   echo "configure: failed program was:" >&5
18995   cat conftest.$ac_ext >&5
18996   rm -rf conftest*
18997   glibcpp_cv_func__modfl_use=no
18998 fi
18999 rm -f conftest*
19000       ac_ext=c
19001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19002 ac_cpp='$CPP $CPPFLAGS'
19003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19005 cross_compiling=$ac_cv_prog_cc_cross
19006
19007     
19008 fi
19009
19010   fi
19011   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19012
19013     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19014       for ac_func in _modfl
19015 do
19016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19017 echo "configure:19018: checking for $ac_func" >&5
19018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19019   echo $ac_n "(cached) $ac_c" 1>&6
19020 else
19021   cat > conftest.$ac_ext <<EOF
19022 #line 19023 "configure"
19023 #include "confdefs.h"
19024 /* System header to define __stub macros and hopefully few prototypes,
19025     which can conflict with char $ac_func(); below.  */
19026 #include <assert.h>
19027 /* Override any gcc2 internal prototype to avoid an error.  */
19028 /* We use char because int might match the return type of a gcc2
19029     builtin and then its argument prototype would still apply.  */
19030 char $ac_func();
19031
19032 int main() {
19033
19034 /* The GNU C library defines this for functions which it implements
19035     to always fail with ENOSYS.  Some functions are actually named
19036     something starting with __ and the normal name is an alias.  */
19037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19038 choke me
19039 #else
19040 $ac_func();
19041 #endif
19042
19043 ; return 0; }
19044 EOF
19045 if { (eval echo configure:19046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19046   rm -rf conftest*
19047   eval "ac_cv_func_$ac_func=yes"
19048 else
19049   echo "configure: failed program was:" >&5
19050   cat conftest.$ac_ext >&5
19051   rm -rf conftest*
19052   eval "ac_cv_func_$ac_func=no"
19053 fi
19054 rm -f conftest*
19055 fi
19056
19057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19058   echo "$ac_t""yes" 1>&6
19059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19060   cat >> confdefs.h <<EOF
19061 #define $ac_tr_func 1
19062 EOF
19063  
19064 else
19065   echo "$ac_t""no" 1>&6
19066 fi
19067 done
19068     
19069     fi
19070   fi
19071
19072   
19073   
19074   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19075 echo "configure:19076: checking for powl declaration" >&5
19076   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19077     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19078   echo $ac_n "(cached) $ac_c" 1>&6
19079 else
19080   
19081       
19082       ac_ext=C
19083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19084 ac_cpp='$CXXCPP $CPPFLAGS'
19085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19087 cross_compiling=$ac_cv_prog_cxx_cross
19088
19089       cat > conftest.$ac_ext <<EOF
19090 #line 19091 "configure"
19091 #include "confdefs.h"
19092 #include <math.h>
19093 int main() {
19094  powl(0, 0);
19095 ; return 0; }
19096 EOF
19097 if { (eval echo configure:19098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19098   rm -rf conftest*
19099   glibcpp_cv_func_powl_use=yes
19100 else
19101   echo "configure: failed program was:" >&5
19102   cat conftest.$ac_ext >&5
19103   rm -rf conftest*
19104   glibcpp_cv_func_powl_use=no
19105 fi
19106 rm -f conftest*
19107       ac_ext=c
19108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19109 ac_cpp='$CPP $CPPFLAGS'
19110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19112 cross_compiling=$ac_cv_prog_cc_cross
19113
19114     
19115 fi
19116
19117   fi
19118   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19119
19120   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19121     for ac_func in powl
19122 do
19123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19124 echo "configure:19125: checking for $ac_func" >&5
19125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19126   echo $ac_n "(cached) $ac_c" 1>&6
19127 else
19128   cat > conftest.$ac_ext <<EOF
19129 #line 19130 "configure"
19130 #include "confdefs.h"
19131 /* System header to define __stub macros and hopefully few prototypes,
19132     which can conflict with char $ac_func(); below.  */
19133 #include <assert.h>
19134 /* Override any gcc2 internal prototype to avoid an error.  */
19135 /* We use char because int might match the return type of a gcc2
19136     builtin and then its argument prototype would still apply.  */
19137 char $ac_func();
19138
19139 int main() {
19140
19141 /* The GNU C library defines this for functions which it implements
19142     to always fail with ENOSYS.  Some functions are actually named
19143     something starting with __ and the normal name is an alias.  */
19144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19145 choke me
19146 #else
19147 $ac_func();
19148 #endif
19149
19150 ; return 0; }
19151 EOF
19152 if { (eval echo configure:19153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19153   rm -rf conftest*
19154   eval "ac_cv_func_$ac_func=yes"
19155 else
19156   echo "configure: failed program was:" >&5
19157   cat conftest.$ac_ext >&5
19158   rm -rf conftest*
19159   eval "ac_cv_func_$ac_func=no"
19160 fi
19161 rm -f conftest*
19162 fi
19163
19164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19165   echo "$ac_t""yes" 1>&6
19166     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19167   cat >> confdefs.h <<EOF
19168 #define $ac_tr_func 1
19169 EOF
19170  
19171 else
19172   echo "$ac_t""no" 1>&6
19173 fi
19174 done
19175     
19176   else
19177     
19178   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19179 echo "configure:19180: checking for _powl declaration" >&5
19180   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19181     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19182   echo $ac_n "(cached) $ac_c" 1>&6
19183 else
19184   
19185       
19186       ac_ext=C
19187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19188 ac_cpp='$CXXCPP $CPPFLAGS'
19189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19191 cross_compiling=$ac_cv_prog_cxx_cross
19192
19193       cat > conftest.$ac_ext <<EOF
19194 #line 19195 "configure"
19195 #include "confdefs.h"
19196 #include <math.h>
19197 int main() {
19198  _powl(0, 0);
19199 ; return 0; }
19200 EOF
19201 if { (eval echo configure:19202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19202   rm -rf conftest*
19203   glibcpp_cv_func__powl_use=yes
19204 else
19205   echo "configure: failed program was:" >&5
19206   cat conftest.$ac_ext >&5
19207   rm -rf conftest*
19208   glibcpp_cv_func__powl_use=no
19209 fi
19210 rm -f conftest*
19211       ac_ext=c
19212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19213 ac_cpp='$CPP $CPPFLAGS'
19214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19216 cross_compiling=$ac_cv_prog_cc_cross
19217
19218     
19219 fi
19220
19221   fi
19222   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19223
19224     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19225       for ac_func in _powl
19226 do
19227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19228 echo "configure:19229: checking for $ac_func" >&5
19229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19230   echo $ac_n "(cached) $ac_c" 1>&6
19231 else
19232   cat > conftest.$ac_ext <<EOF
19233 #line 19234 "configure"
19234 #include "confdefs.h"
19235 /* System header to define __stub macros and hopefully few prototypes,
19236     which can conflict with char $ac_func(); below.  */
19237 #include <assert.h>
19238 /* Override any gcc2 internal prototype to avoid an error.  */
19239 /* We use char because int might match the return type of a gcc2
19240     builtin and then its argument prototype would still apply.  */
19241 char $ac_func();
19242
19243 int main() {
19244
19245 /* The GNU C library defines this for functions which it implements
19246     to always fail with ENOSYS.  Some functions are actually named
19247     something starting with __ and the normal name is an alias.  */
19248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19249 choke me
19250 #else
19251 $ac_func();
19252 #endif
19253
19254 ; return 0; }
19255 EOF
19256 if { (eval echo configure:19257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19257   rm -rf conftest*
19258   eval "ac_cv_func_$ac_func=yes"
19259 else
19260   echo "configure: failed program was:" >&5
19261   cat conftest.$ac_ext >&5
19262   rm -rf conftest*
19263   eval "ac_cv_func_$ac_func=no"
19264 fi
19265 rm -f conftest*
19266 fi
19267
19268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19269   echo "$ac_t""yes" 1>&6
19270     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19271   cat >> confdefs.h <<EOF
19272 #define $ac_tr_func 1
19273 EOF
19274  
19275 else
19276   echo "$ac_t""no" 1>&6
19277 fi
19278 done
19279     
19280     fi
19281   fi
19282
19283   
19284   
19285   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19286 echo "configure:19287: checking for sqrtl declaration" >&5
19287   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19288     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19289   echo $ac_n "(cached) $ac_c" 1>&6
19290 else
19291   
19292       
19293       ac_ext=C
19294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19295 ac_cpp='$CXXCPP $CPPFLAGS'
19296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19298 cross_compiling=$ac_cv_prog_cxx_cross
19299
19300       cat > conftest.$ac_ext <<EOF
19301 #line 19302 "configure"
19302 #include "confdefs.h"
19303 #include <math.h>
19304                       #ifdef HAVE_IEEEFP_H
19305                       #include <ieeefp.h>
19306                       #endif
19307                      
19308 int main() {
19309  sqrtl(0);
19310 ; return 0; }
19311 EOF
19312 if { (eval echo configure:19313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19313   rm -rf conftest*
19314   glibcpp_cv_func_sqrtl_use=yes
19315 else
19316   echo "configure: failed program was:" >&5
19317   cat conftest.$ac_ext >&5
19318   rm -rf conftest*
19319   glibcpp_cv_func_sqrtl_use=no
19320 fi
19321 rm -f conftest*
19322       ac_ext=c
19323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19324 ac_cpp='$CPP $CPPFLAGS'
19325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19327 cross_compiling=$ac_cv_prog_cc_cross
19328
19329     
19330 fi
19331
19332   fi
19333   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19334
19335   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19336     for ac_func in sqrtl
19337 do
19338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19339 echo "configure:19340: checking for $ac_func" >&5
19340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19341   echo $ac_n "(cached) $ac_c" 1>&6
19342 else
19343   cat > conftest.$ac_ext <<EOF
19344 #line 19345 "configure"
19345 #include "confdefs.h"
19346 /* System header to define __stub macros and hopefully few prototypes,
19347     which can conflict with char $ac_func(); below.  */
19348 #include <assert.h>
19349 /* Override any gcc2 internal prototype to avoid an error.  */
19350 /* We use char because int might match the return type of a gcc2
19351     builtin and then its argument prototype would still apply.  */
19352 char $ac_func();
19353
19354 int main() {
19355
19356 /* The GNU C library defines this for functions which it implements
19357     to always fail with ENOSYS.  Some functions are actually named
19358     something starting with __ and the normal name is an alias.  */
19359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19360 choke me
19361 #else
19362 $ac_func();
19363 #endif
19364
19365 ; return 0; }
19366 EOF
19367 if { (eval echo configure:19368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19368   rm -rf conftest*
19369   eval "ac_cv_func_$ac_func=yes"
19370 else
19371   echo "configure: failed program was:" >&5
19372   cat conftest.$ac_ext >&5
19373   rm -rf conftest*
19374   eval "ac_cv_func_$ac_func=no"
19375 fi
19376 rm -f conftest*
19377 fi
19378
19379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19380   echo "$ac_t""yes" 1>&6
19381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19382   cat >> confdefs.h <<EOF
19383 #define $ac_tr_func 1
19384 EOF
19385  
19386 else
19387   echo "$ac_t""no" 1>&6
19388 fi
19389 done
19390     
19391   else
19392     
19393   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19394 echo "configure:19395: checking for _sqrtl declaration" >&5
19395   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19396     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19397   echo $ac_n "(cached) $ac_c" 1>&6
19398 else
19399   
19400       
19401       ac_ext=C
19402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19403 ac_cpp='$CXXCPP $CPPFLAGS'
19404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19406 cross_compiling=$ac_cv_prog_cxx_cross
19407
19408       cat > conftest.$ac_ext <<EOF
19409 #line 19410 "configure"
19410 #include "confdefs.h"
19411 #include <math.h>
19412                       #ifdef HAVE_IEEEFP_H
19413                       #include <ieeefp.h>
19414                       #endif
19415                      
19416 int main() {
19417  _sqrtl(0);
19418 ; return 0; }
19419 EOF
19420 if { (eval echo configure:19421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19421   rm -rf conftest*
19422   glibcpp_cv_func__sqrtl_use=yes
19423 else
19424   echo "configure: failed program was:" >&5
19425   cat conftest.$ac_ext >&5
19426   rm -rf conftest*
19427   glibcpp_cv_func__sqrtl_use=no
19428 fi
19429 rm -f conftest*
19430       ac_ext=c
19431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19432 ac_cpp='$CPP $CPPFLAGS'
19433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19435 cross_compiling=$ac_cv_prog_cc_cross
19436
19437     
19438 fi
19439
19440   fi
19441   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19442
19443     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19444       for ac_func in _sqrtl
19445 do
19446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19447 echo "configure:19448: checking for $ac_func" >&5
19448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19449   echo $ac_n "(cached) $ac_c" 1>&6
19450 else
19451   cat > conftest.$ac_ext <<EOF
19452 #line 19453 "configure"
19453 #include "confdefs.h"
19454 /* System header to define __stub macros and hopefully few prototypes,
19455     which can conflict with char $ac_func(); below.  */
19456 #include <assert.h>
19457 /* Override any gcc2 internal prototype to avoid an error.  */
19458 /* We use char because int might match the return type of a gcc2
19459     builtin and then its argument prototype would still apply.  */
19460 char $ac_func();
19461
19462 int main() {
19463
19464 /* The GNU C library defines this for functions which it implements
19465     to always fail with ENOSYS.  Some functions are actually named
19466     something starting with __ and the normal name is an alias.  */
19467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19468 choke me
19469 #else
19470 $ac_func();
19471 #endif
19472
19473 ; return 0; }
19474 EOF
19475 if { (eval echo configure:19476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19476   rm -rf conftest*
19477   eval "ac_cv_func_$ac_func=yes"
19478 else
19479   echo "configure: failed program was:" >&5
19480   cat conftest.$ac_ext >&5
19481   rm -rf conftest*
19482   eval "ac_cv_func_$ac_func=no"
19483 fi
19484 rm -f conftest*
19485 fi
19486
19487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19488   echo "$ac_t""yes" 1>&6
19489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19490   cat >> confdefs.h <<EOF
19491 #define $ac_tr_func 1
19492 EOF
19493  
19494 else
19495   echo "$ac_t""no" 1>&6
19496 fi
19497 done
19498     
19499     fi
19500   fi
19501
19502   
19503   
19504   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19505 echo "configure:19506: checking for sincosl declaration" >&5
19506   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19507     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19508   echo $ac_n "(cached) $ac_c" 1>&6
19509 else
19510   
19511       
19512       ac_ext=C
19513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19514 ac_cpp='$CXXCPP $CPPFLAGS'
19515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19517 cross_compiling=$ac_cv_prog_cxx_cross
19518
19519       cat > conftest.$ac_ext <<EOF
19520 #line 19521 "configure"
19521 #include "confdefs.h"
19522 #include <math.h>
19523 int main() {
19524  sincosl(0, 0, 0);
19525 ; return 0; }
19526 EOF
19527 if { (eval echo configure:19528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19528   rm -rf conftest*
19529   glibcpp_cv_func_sincosl_use=yes
19530 else
19531   echo "configure: failed program was:" >&5
19532   cat conftest.$ac_ext >&5
19533   rm -rf conftest*
19534   glibcpp_cv_func_sincosl_use=no
19535 fi
19536 rm -f conftest*
19537       ac_ext=c
19538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19539 ac_cpp='$CPP $CPPFLAGS'
19540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19542 cross_compiling=$ac_cv_prog_cc_cross
19543
19544     
19545 fi
19546
19547   fi
19548   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19549
19550   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19551     for ac_func in sincosl
19552 do
19553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19554 echo "configure:19555: checking for $ac_func" >&5
19555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19556   echo $ac_n "(cached) $ac_c" 1>&6
19557 else
19558   cat > conftest.$ac_ext <<EOF
19559 #line 19560 "configure"
19560 #include "confdefs.h"
19561 /* System header to define __stub macros and hopefully few prototypes,
19562     which can conflict with char $ac_func(); below.  */
19563 #include <assert.h>
19564 /* Override any gcc2 internal prototype to avoid an error.  */
19565 /* We use char because int might match the return type of a gcc2
19566     builtin and then its argument prototype would still apply.  */
19567 char $ac_func();
19568
19569 int main() {
19570
19571 /* The GNU C library defines this for functions which it implements
19572     to always fail with ENOSYS.  Some functions are actually named
19573     something starting with __ and the normal name is an alias.  */
19574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19575 choke me
19576 #else
19577 $ac_func();
19578 #endif
19579
19580 ; return 0; }
19581 EOF
19582 if { (eval echo configure:19583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19583   rm -rf conftest*
19584   eval "ac_cv_func_$ac_func=yes"
19585 else
19586   echo "configure: failed program was:" >&5
19587   cat conftest.$ac_ext >&5
19588   rm -rf conftest*
19589   eval "ac_cv_func_$ac_func=no"
19590 fi
19591 rm -f conftest*
19592 fi
19593
19594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19595   echo "$ac_t""yes" 1>&6
19596     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19597   cat >> confdefs.h <<EOF
19598 #define $ac_tr_func 1
19599 EOF
19600  
19601 else
19602   echo "$ac_t""no" 1>&6
19603 fi
19604 done
19605     
19606   else
19607     
19608   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19609 echo "configure:19610: checking for _sincosl declaration" >&5
19610   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19611     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19612   echo $ac_n "(cached) $ac_c" 1>&6
19613 else
19614   
19615       
19616       ac_ext=C
19617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19618 ac_cpp='$CXXCPP $CPPFLAGS'
19619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19621 cross_compiling=$ac_cv_prog_cxx_cross
19622
19623       cat > conftest.$ac_ext <<EOF
19624 #line 19625 "configure"
19625 #include "confdefs.h"
19626 #include <math.h>
19627 int main() {
19628  _sincosl(0, 0, 0);
19629 ; return 0; }
19630 EOF
19631 if { (eval echo configure:19632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19632   rm -rf conftest*
19633   glibcpp_cv_func__sincosl_use=yes
19634 else
19635   echo "configure: failed program was:" >&5
19636   cat conftest.$ac_ext >&5
19637   rm -rf conftest*
19638   glibcpp_cv_func__sincosl_use=no
19639 fi
19640 rm -f conftest*
19641       ac_ext=c
19642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19643 ac_cpp='$CPP $CPPFLAGS'
19644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19646 cross_compiling=$ac_cv_prog_cc_cross
19647
19648     
19649 fi
19650
19651   fi
19652   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19653
19654     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19655       for ac_func in _sincosl
19656 do
19657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19658 echo "configure:19659: checking for $ac_func" >&5
19659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19660   echo $ac_n "(cached) $ac_c" 1>&6
19661 else
19662   cat > conftest.$ac_ext <<EOF
19663 #line 19664 "configure"
19664 #include "confdefs.h"
19665 /* System header to define __stub macros and hopefully few prototypes,
19666     which can conflict with char $ac_func(); below.  */
19667 #include <assert.h>
19668 /* Override any gcc2 internal prototype to avoid an error.  */
19669 /* We use char because int might match the return type of a gcc2
19670     builtin and then its argument prototype would still apply.  */
19671 char $ac_func();
19672
19673 int main() {
19674
19675 /* The GNU C library defines this for functions which it implements
19676     to always fail with ENOSYS.  Some functions are actually named
19677     something starting with __ and the normal name is an alias.  */
19678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19679 choke me
19680 #else
19681 $ac_func();
19682 #endif
19683
19684 ; return 0; }
19685 EOF
19686 if { (eval echo configure:19687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19687   rm -rf conftest*
19688   eval "ac_cv_func_$ac_func=yes"
19689 else
19690   echo "configure: failed program was:" >&5
19691   cat conftest.$ac_ext >&5
19692   rm -rf conftest*
19693   eval "ac_cv_func_$ac_func=no"
19694 fi
19695 rm -f conftest*
19696 fi
19697
19698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19699   echo "$ac_t""yes" 1>&6
19700     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19701   cat >> confdefs.h <<EOF
19702 #define $ac_tr_func 1
19703 EOF
19704  
19705 else
19706   echo "$ac_t""no" 1>&6
19707 fi
19708 done
19709     
19710     fi
19711   fi
19712
19713   
19714   
19715   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19716 echo "configure:19717: checking for finitel declaration" >&5
19717   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19718     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19719   echo $ac_n "(cached) $ac_c" 1>&6
19720 else
19721   
19722       
19723       ac_ext=C
19724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19725 ac_cpp='$CXXCPP $CPPFLAGS'
19726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19728 cross_compiling=$ac_cv_prog_cxx_cross
19729
19730       cat > conftest.$ac_ext <<EOF
19731 #line 19732 "configure"
19732 #include "confdefs.h"
19733 #include <math.h>
19734                       #ifdef HAVE_IEEEFP_H
19735                       #include <ieeefp.h>
19736                       #endif
19737                      
19738 int main() {
19739  finitel(0);
19740 ; return 0; }
19741 EOF
19742 if { (eval echo configure:19743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19743   rm -rf conftest*
19744   glibcpp_cv_func_finitel_use=yes
19745 else
19746   echo "configure: failed program was:" >&5
19747   cat conftest.$ac_ext >&5
19748   rm -rf conftest*
19749   glibcpp_cv_func_finitel_use=no
19750 fi
19751 rm -f conftest*
19752       ac_ext=c
19753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19754 ac_cpp='$CPP $CPPFLAGS'
19755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19757 cross_compiling=$ac_cv_prog_cc_cross
19758
19759     
19760 fi
19761
19762   fi
19763   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19764
19765   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19766     for ac_func in finitel
19767 do
19768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19769 echo "configure:19770: checking for $ac_func" >&5
19770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19771   echo $ac_n "(cached) $ac_c" 1>&6
19772 else
19773   cat > conftest.$ac_ext <<EOF
19774 #line 19775 "configure"
19775 #include "confdefs.h"
19776 /* System header to define __stub macros and hopefully few prototypes,
19777     which can conflict with char $ac_func(); below.  */
19778 #include <assert.h>
19779 /* Override any gcc2 internal prototype to avoid an error.  */
19780 /* We use char because int might match the return type of a gcc2
19781     builtin and then its argument prototype would still apply.  */
19782 char $ac_func();
19783
19784 int main() {
19785
19786 /* The GNU C library defines this for functions which it implements
19787     to always fail with ENOSYS.  Some functions are actually named
19788     something starting with __ and the normal name is an alias.  */
19789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19790 choke me
19791 #else
19792 $ac_func();
19793 #endif
19794
19795 ; return 0; }
19796 EOF
19797 if { (eval echo configure:19798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19798   rm -rf conftest*
19799   eval "ac_cv_func_$ac_func=yes"
19800 else
19801   echo "configure: failed program was:" >&5
19802   cat conftest.$ac_ext >&5
19803   rm -rf conftest*
19804   eval "ac_cv_func_$ac_func=no"
19805 fi
19806 rm -f conftest*
19807 fi
19808
19809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19810   echo "$ac_t""yes" 1>&6
19811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19812   cat >> confdefs.h <<EOF
19813 #define $ac_tr_func 1
19814 EOF
19815  
19816 else
19817   echo "$ac_t""no" 1>&6
19818 fi
19819 done
19820     
19821   else
19822     
19823   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19824 echo "configure:19825: checking for _finitel declaration" >&5
19825   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19826     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19827   echo $ac_n "(cached) $ac_c" 1>&6
19828 else
19829   
19830       
19831       ac_ext=C
19832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19833 ac_cpp='$CXXCPP $CPPFLAGS'
19834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19836 cross_compiling=$ac_cv_prog_cxx_cross
19837
19838       cat > conftest.$ac_ext <<EOF
19839 #line 19840 "configure"
19840 #include "confdefs.h"
19841 #include <math.h>
19842                       #ifdef HAVE_IEEEFP_H
19843                       #include <ieeefp.h>
19844                       #endif
19845                      
19846 int main() {
19847  _finitel(0);
19848 ; return 0; }
19849 EOF
19850 if { (eval echo configure:19851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19851   rm -rf conftest*
19852   glibcpp_cv_func__finitel_use=yes
19853 else
19854   echo "configure: failed program was:" >&5
19855   cat conftest.$ac_ext >&5
19856   rm -rf conftest*
19857   glibcpp_cv_func__finitel_use=no
19858 fi
19859 rm -f conftest*
19860       ac_ext=c
19861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19862 ac_cpp='$CPP $CPPFLAGS'
19863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19865 cross_compiling=$ac_cv_prog_cc_cross
19866
19867     
19868 fi
19869
19870   fi
19871   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19872
19873     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19874       for ac_func in _finitel
19875 do
19876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19877 echo "configure:19878: checking for $ac_func" >&5
19878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19879   echo $ac_n "(cached) $ac_c" 1>&6
19880 else
19881   cat > conftest.$ac_ext <<EOF
19882 #line 19883 "configure"
19883 #include "confdefs.h"
19884 /* System header to define __stub macros and hopefully few prototypes,
19885     which can conflict with char $ac_func(); below.  */
19886 #include <assert.h>
19887 /* Override any gcc2 internal prototype to avoid an error.  */
19888 /* We use char because int might match the return type of a gcc2
19889     builtin and then its argument prototype would still apply.  */
19890 char $ac_func();
19891
19892 int main() {
19893
19894 /* The GNU C library defines this for functions which it implements
19895     to always fail with ENOSYS.  Some functions are actually named
19896     something starting with __ and the normal name is an alias.  */
19897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19898 choke me
19899 #else
19900 $ac_func();
19901 #endif
19902
19903 ; return 0; }
19904 EOF
19905 if { (eval echo configure:19906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19906   rm -rf conftest*
19907   eval "ac_cv_func_$ac_func=yes"
19908 else
19909   echo "configure: failed program was:" >&5
19910   cat conftest.$ac_ext >&5
19911   rm -rf conftest*
19912   eval "ac_cv_func_$ac_func=no"
19913 fi
19914 rm -f conftest*
19915 fi
19916
19917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19918   echo "$ac_t""yes" 1>&6
19919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19920   cat >> confdefs.h <<EOF
19921 #define $ac_tr_func 1
19922 EOF
19923  
19924 else
19925   echo "$ac_t""no" 1>&6
19926 fi
19927 done
19928     
19929     fi
19930   fi
19931
19932
19933         
19934     
19935   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19936 echo "configure:19937: checking for _float trig functions" >&5
19937   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19938   echo $ac_n "(cached) $ac_c" 1>&6
19939 else
19940   
19941     
19942     ac_ext=C
19943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19944 ac_cpp='$CXXCPP $CPPFLAGS'
19945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19947 cross_compiling=$ac_cv_prog_cxx_cross
19948
19949     cat > conftest.$ac_ext <<EOF
19950 #line 19951 "configure"
19951 #include "confdefs.h"
19952 #include <math.h>
19953 int main() {
19954  `for x in _acosf _asinf _atanf \
19955                                           _cosf _sinf _tanf \
19956                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19957 ; return 0; }
19958 EOF
19959 if { (eval echo configure:19960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19960   rm -rf conftest*
19961   glibcpp_cv_func__float_trig_use=yes
19962 else
19963   echo "configure: failed program was:" >&5
19964   cat conftest.$ac_ext >&5
19965   rm -rf conftest*
19966   glibcpp_cv_func__float_trig_use=no
19967 fi
19968 rm -f conftest*
19969     ac_ext=c
19970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19971 ac_cpp='$CPP $CPPFLAGS'
19972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19974 cross_compiling=$ac_cv_prog_cc_cross
19975
19976 fi
19977
19978   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19979   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19980     for ac_func in _acosf _asinf _atanf \
19981                                           _cosf _sinf _tanf \
19982                                           _coshf _sinhf _tanhf
19983 do
19984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19985 echo "configure:19986: checking for $ac_func" >&5
19986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19987   echo $ac_n "(cached) $ac_c" 1>&6
19988 else
19989   cat > conftest.$ac_ext <<EOF
19990 #line 19991 "configure"
19991 #include "confdefs.h"
19992 /* System header to define __stub macros and hopefully few prototypes,
19993     which can conflict with char $ac_func(); below.  */
19994 #include <assert.h>
19995 /* Override any gcc2 internal prototype to avoid an error.  */
19996 /* We use char because int might match the return type of a gcc2
19997     builtin and then its argument prototype would still apply.  */
19998 char $ac_func();
19999
20000 int main() {
20001
20002 /* The GNU C library defines this for functions which it implements
20003     to always fail with ENOSYS.  Some functions are actually named
20004     something starting with __ and the normal name is an alias.  */
20005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20006 choke me
20007 #else
20008 $ac_func();
20009 #endif
20010
20011 ; return 0; }
20012 EOF
20013 if { (eval echo configure:20014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20014   rm -rf conftest*
20015   eval "ac_cv_func_$ac_func=yes"
20016 else
20017   echo "configure: failed program was:" >&5
20018   cat conftest.$ac_ext >&5
20019   rm -rf conftest*
20020   eval "ac_cv_func_$ac_func=no"
20021 fi
20022 rm -f conftest*
20023 fi
20024
20025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20026   echo "$ac_t""yes" 1>&6
20027     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20028   cat >> confdefs.h <<EOF
20029 #define $ac_tr_func 1
20030 EOF
20031  
20032 else
20033   echo "$ac_t""no" 1>&6
20034 fi
20035 done
20036
20037   fi
20038
20039   
20040   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20041 echo "configure:20042: checking for _float round functions" >&5
20042   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20043   echo $ac_n "(cached) $ac_c" 1>&6
20044 else
20045   
20046     
20047     ac_ext=C
20048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20049 ac_cpp='$CXXCPP $CPPFLAGS'
20050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20052 cross_compiling=$ac_cv_prog_cxx_cross
20053
20054     cat > conftest.$ac_ext <<EOF
20055 #line 20056 "configure"
20056 #include "confdefs.h"
20057 #include <math.h>
20058 int main() {
20059  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20060 ; return 0; }
20061 EOF
20062 if { (eval echo configure:20063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20063   rm -rf conftest*
20064   glibcpp_cv_func__float_round_use=yes
20065 else
20066   echo "configure: failed program was:" >&5
20067   cat conftest.$ac_ext >&5
20068   rm -rf conftest*
20069   glibcpp_cv_func__float_round_use=no
20070 fi
20071 rm -f conftest*
20072     ac_ext=c
20073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20074 ac_cpp='$CPP $CPPFLAGS'
20075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20077 cross_compiling=$ac_cv_prog_cc_cross
20078
20079 fi
20080
20081   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20082   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20083     for ac_func in _ceilf _floorf
20084 do
20085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20086 echo "configure:20087: checking for $ac_func" >&5
20087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20088   echo $ac_n "(cached) $ac_c" 1>&6
20089 else
20090   cat > conftest.$ac_ext <<EOF
20091 #line 20092 "configure"
20092 #include "confdefs.h"
20093 /* System header to define __stub macros and hopefully few prototypes,
20094     which can conflict with char $ac_func(); below.  */
20095 #include <assert.h>
20096 /* Override any gcc2 internal prototype to avoid an error.  */
20097 /* We use char because int might match the return type of a gcc2
20098     builtin and then its argument prototype would still apply.  */
20099 char $ac_func();
20100
20101 int main() {
20102
20103 /* The GNU C library defines this for functions which it implements
20104     to always fail with ENOSYS.  Some functions are actually named
20105     something starting with __ and the normal name is an alias.  */
20106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20107 choke me
20108 #else
20109 $ac_func();
20110 #endif
20111
20112 ; return 0; }
20113 EOF
20114 if { (eval echo configure:20115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20115   rm -rf conftest*
20116   eval "ac_cv_func_$ac_func=yes"
20117 else
20118   echo "configure: failed program was:" >&5
20119   cat conftest.$ac_ext >&5
20120   rm -rf conftest*
20121   eval "ac_cv_func_$ac_func=no"
20122 fi
20123 rm -f conftest*
20124 fi
20125
20126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20127   echo "$ac_t""yes" 1>&6
20128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20129   cat >> confdefs.h <<EOF
20130 #define $ac_tr_func 1
20131 EOF
20132  
20133 else
20134   echo "$ac_t""no" 1>&6
20135 fi
20136 done
20137
20138   fi
20139
20140
20141     
20142   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20143 echo "configure:20144: checking for _long double trig functions" >&5
20144   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20145   echo $ac_n "(cached) $ac_c" 1>&6
20146 else
20147   
20148     
20149     ac_ext=C
20150 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20151 ac_cpp='$CXXCPP $CPPFLAGS'
20152 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20153 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20154 cross_compiling=$ac_cv_prog_cxx_cross
20155
20156     cat > conftest.$ac_ext <<EOF
20157 #line 20158 "configure"
20158 #include "confdefs.h"
20159 #include <math.h>
20160 int main() {
20161  `for x in _acosl _asinl _atanl \
20162                                           _cosl _sinl _tanl \
20163                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20164 ; return 0; }
20165 EOF
20166 if { (eval echo configure:20167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20167   rm -rf conftest*
20168   glibcpp_cv_func__long_double_trig_use=yes
20169 else
20170   echo "configure: failed program was:" >&5
20171   cat conftest.$ac_ext >&5
20172   rm -rf conftest*
20173   glibcpp_cv_func__long_double_trig_use=no
20174 fi
20175 rm -f conftest*
20176     ac_ext=c
20177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20178 ac_cpp='$CPP $CPPFLAGS'
20179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20181 cross_compiling=$ac_cv_prog_cc_cross
20182
20183 fi
20184
20185   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20186   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20187     for ac_func in _acosl _asinl _atanl \
20188                                           _cosl _sinl _tanl \
20189                                           _coshl _sinhl _tanhl
20190 do
20191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20192 echo "configure:20193: checking for $ac_func" >&5
20193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20194   echo $ac_n "(cached) $ac_c" 1>&6
20195 else
20196   cat > conftest.$ac_ext <<EOF
20197 #line 20198 "configure"
20198 #include "confdefs.h"
20199 /* System header to define __stub macros and hopefully few prototypes,
20200     which can conflict with char $ac_func(); below.  */
20201 #include <assert.h>
20202 /* Override any gcc2 internal prototype to avoid an error.  */
20203 /* We use char because int might match the return type of a gcc2
20204     builtin and then its argument prototype would still apply.  */
20205 char $ac_func();
20206
20207 int main() {
20208
20209 /* The GNU C library defines this for functions which it implements
20210     to always fail with ENOSYS.  Some functions are actually named
20211     something starting with __ and the normal name is an alias.  */
20212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20213 choke me
20214 #else
20215 $ac_func();
20216 #endif
20217
20218 ; return 0; }
20219 EOF
20220 if { (eval echo configure:20221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20221   rm -rf conftest*
20222   eval "ac_cv_func_$ac_func=yes"
20223 else
20224   echo "configure: failed program was:" >&5
20225   cat conftest.$ac_ext >&5
20226   rm -rf conftest*
20227   eval "ac_cv_func_$ac_func=no"
20228 fi
20229 rm -f conftest*
20230 fi
20231
20232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20233   echo "$ac_t""yes" 1>&6
20234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20235   cat >> confdefs.h <<EOF
20236 #define $ac_tr_func 1
20237 EOF
20238  
20239 else
20240   echo "$ac_t""no" 1>&6
20241 fi
20242 done
20243
20244   fi
20245
20246   
20247   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20248 echo "configure:20249: checking for _long double round functions" >&5
20249   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20250   echo $ac_n "(cached) $ac_c" 1>&6
20251 else
20252   
20253     
20254     ac_ext=C
20255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20256 ac_cpp='$CXXCPP $CPPFLAGS'
20257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20259 cross_compiling=$ac_cv_prog_cxx_cross
20260
20261     cat > conftest.$ac_ext <<EOF
20262 #line 20263 "configure"
20263 #include "confdefs.h"
20264 #include <math.h>
20265 int main() {
20266  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20267 ; return 0; }
20268 EOF
20269 if { (eval echo configure:20270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20270   rm -rf conftest*
20271   glibcpp_cv_func__long_double_round_use=yes
20272 else
20273   echo "configure: failed program was:" >&5
20274   cat conftest.$ac_ext >&5
20275   rm -rf conftest*
20276   glibcpp_cv_func__long_double_round_use=no
20277 fi
20278 rm -f conftest*
20279     ac_ext=c
20280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20284 cross_compiling=$ac_cv_prog_cc_cross
20285
20286 fi
20287
20288   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20289   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20290     for ac_func in _ceill _floorl
20291 do
20292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20293 echo "configure:20294: checking for $ac_func" >&5
20294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20295   echo $ac_n "(cached) $ac_c" 1>&6
20296 else
20297   cat > conftest.$ac_ext <<EOF
20298 #line 20299 "configure"
20299 #include "confdefs.h"
20300 /* System header to define __stub macros and hopefully few prototypes,
20301     which can conflict with char $ac_func(); below.  */
20302 #include <assert.h>
20303 /* Override any gcc2 internal prototype to avoid an error.  */
20304 /* We use char because int might match the return type of a gcc2
20305     builtin and then its argument prototype would still apply.  */
20306 char $ac_func();
20307
20308 int main() {
20309
20310 /* The GNU C library defines this for functions which it implements
20311     to always fail with ENOSYS.  Some functions are actually named
20312     something starting with __ and the normal name is an alias.  */
20313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20314 choke me
20315 #else
20316 $ac_func();
20317 #endif
20318
20319 ; return 0; }
20320 EOF
20321 if { (eval echo configure:20322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20322   rm -rf conftest*
20323   eval "ac_cv_func_$ac_func=yes"
20324 else
20325   echo "configure: failed program was:" >&5
20326   cat conftest.$ac_ext >&5
20327   rm -rf conftest*
20328   eval "ac_cv_func_$ac_func=no"
20329 fi
20330 rm -f conftest*
20331 fi
20332
20333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20334   echo "$ac_t""yes" 1>&6
20335     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20336   cat >> confdefs.h <<EOF
20337 #define $ac_tr_func 1
20338 EOF
20339  
20340 else
20341   echo "$ac_t""no" 1>&6
20342 fi
20343 done
20344
20345   fi
20346
20347
20348   LIBS="$ac_save_LIBS"
20349   CXXFLAGS="$ac_save_CXXFLAGS"
20350
20351   
20352     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20353 echo "configure:20354: checking for main in -lm" >&5
20354 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20356   echo $ac_n "(cached) $ac_c" 1>&6
20357 else
20358   ac_save_LIBS="$LIBS"
20359 LIBS="-lm  $LIBS"
20360 cat > conftest.$ac_ext <<EOF
20361 #line 20362 "configure"
20362 #include "confdefs.h"
20363
20364 int main() {
20365 main()
20366 ; return 0; }
20367 EOF
20368 if { (eval echo configure:20369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20369   rm -rf conftest*
20370   eval "ac_cv_lib_$ac_lib_var=yes"
20371 else
20372   echo "configure: failed program was:" >&5
20373   cat conftest.$ac_ext >&5
20374   rm -rf conftest*
20375   eval "ac_cv_lib_$ac_lib_var=no"
20376 fi
20377 rm -f conftest*
20378 LIBS="$ac_save_LIBS"
20379
20380 fi
20381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20382   echo "$ac_t""yes" 1>&6
20383     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20384     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20385   cat >> confdefs.h <<EOF
20386 #define $ac_tr_lib 1
20387 EOF
20388
20389   LIBS="-lm $LIBS"
20390
20391 else
20392   echo "$ac_t""no" 1>&6
20393 fi
20394
20395   for ac_func in nan copysignf
20396 do
20397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20398 echo "configure:20399: checking for $ac_func" >&5
20399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20400   echo $ac_n "(cached) $ac_c" 1>&6
20401 else
20402   cat > conftest.$ac_ext <<EOF
20403 #line 20404 "configure"
20404 #include "confdefs.h"
20405 /* System header to define __stub macros and hopefully few prototypes,
20406     which can conflict with char $ac_func(); below.  */
20407 #include <assert.h>
20408 /* Override any gcc2 internal prototype to avoid an error.  */
20409 /* We use char because int might match the return type of a gcc2
20410     builtin and then its argument prototype would still apply.  */
20411 char $ac_func();
20412
20413 int main() {
20414
20415 /* The GNU C library defines this for functions which it implements
20416     to always fail with ENOSYS.  Some functions are actually named
20417     something starting with __ and the normal name is an alias.  */
20418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20419 choke me
20420 #else
20421 $ac_func();
20422 #endif
20423
20424 ; return 0; }
20425 EOF
20426 if { (eval echo configure:20427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20427   rm -rf conftest*
20428   eval "ac_cv_func_$ac_func=yes"
20429 else
20430   echo "configure: failed program was:" >&5
20431   cat conftest.$ac_ext >&5
20432   rm -rf conftest*
20433   eval "ac_cv_func_$ac_func=no"
20434 fi
20435 rm -f conftest*
20436 fi
20437
20438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20439   echo "$ac_t""yes" 1>&6
20440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20441   cat >> confdefs.h <<EOF
20442 #define $ac_tr_func 1
20443 EOF
20444  
20445 else
20446   echo "$ac_t""no" 1>&6
20447 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20448 fi
20449 done
20450
20451
20452     for ac_func in __signbit
20453 do
20454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20455 echo "configure:20456: checking for $ac_func" >&5
20456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20457   echo $ac_n "(cached) $ac_c" 1>&6
20458 else
20459   cat > conftest.$ac_ext <<EOF
20460 #line 20461 "configure"
20461 #include "confdefs.h"
20462 /* System header to define __stub macros and hopefully few prototypes,
20463     which can conflict with char $ac_func(); below.  */
20464 #include <assert.h>
20465 /* Override any gcc2 internal prototype to avoid an error.  */
20466 /* We use char because int might match the return type of a gcc2
20467     builtin and then its argument prototype would still apply.  */
20468 char $ac_func();
20469
20470 int main() {
20471
20472 /* The GNU C library defines this for functions which it implements
20473     to always fail with ENOSYS.  Some functions are actually named
20474     something starting with __ and the normal name is an alias.  */
20475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20476 choke me
20477 #else
20478 $ac_func();
20479 #endif
20480
20481 ; return 0; }
20482 EOF
20483 if { (eval echo configure:20484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20484   rm -rf conftest*
20485   eval "ac_cv_func_$ac_func=yes"
20486 else
20487   echo "configure: failed program was:" >&5
20488   cat conftest.$ac_ext >&5
20489   rm -rf conftest*
20490   eval "ac_cv_func_$ac_func=no"
20491 fi
20492 rm -f conftest*
20493 fi
20494
20495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20496   echo "$ac_t""yes" 1>&6
20497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20498   cat >> confdefs.h <<EOF
20499 #define $ac_tr_func 1
20500 EOF
20501  
20502 else
20503   echo "$ac_t""no" 1>&6
20504 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20505 fi
20506 done
20507
20508   for ac_func in __signbitf
20509 do
20510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20511 echo "configure:20512: checking for $ac_func" >&5
20512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20513   echo $ac_n "(cached) $ac_c" 1>&6
20514 else
20515   cat > conftest.$ac_ext <<EOF
20516 #line 20517 "configure"
20517 #include "confdefs.h"
20518 /* System header to define __stub macros and hopefully few prototypes,
20519     which can conflict with char $ac_func(); below.  */
20520 #include <assert.h>
20521 /* Override any gcc2 internal prototype to avoid an error.  */
20522 /* We use char because int might match the return type of a gcc2
20523     builtin and then its argument prototype would still apply.  */
20524 char $ac_func();
20525
20526 int main() {
20527
20528 /* The GNU C library defines this for functions which it implements
20529     to always fail with ENOSYS.  Some functions are actually named
20530     something starting with __ and the normal name is an alias.  */
20531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20532 choke me
20533 #else
20534 $ac_func();
20535 #endif
20536
20537 ; return 0; }
20538 EOF
20539 if { (eval echo configure:20540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20540   rm -rf conftest*
20541   eval "ac_cv_func_$ac_func=yes"
20542 else
20543   echo "configure: failed program was:" >&5
20544   cat conftest.$ac_ext >&5
20545   rm -rf conftest*
20546   eval "ac_cv_func_$ac_func=no"
20547 fi
20548 rm -f conftest*
20549 fi
20550
20551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20552   echo "$ac_t""yes" 1>&6
20553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20554   cat >> confdefs.h <<EOF
20555 #define $ac_tr_func 1
20556 EOF
20557  
20558 else
20559   echo "$ac_t""no" 1>&6
20560 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20561 fi
20562 done
20563
20564
20565           if test x$ac_cv_func_copysignl = x"yes"; then
20566     for ac_func in __signbitl
20567 do
20568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20569 echo "configure:20570: checking for $ac_func" >&5
20570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20571   echo $ac_n "(cached) $ac_c" 1>&6
20572 else
20573   cat > conftest.$ac_ext <<EOF
20574 #line 20575 "configure"
20575 #include "confdefs.h"
20576 /* System header to define __stub macros and hopefully few prototypes,
20577     which can conflict with char $ac_func(); below.  */
20578 #include <assert.h>
20579 /* Override any gcc2 internal prototype to avoid an error.  */
20580 /* We use char because int might match the return type of a gcc2
20581     builtin and then its argument prototype would still apply.  */
20582 char $ac_func();
20583
20584 int main() {
20585
20586 /* The GNU C library defines this for functions which it implements
20587     to always fail with ENOSYS.  Some functions are actually named
20588     something starting with __ and the normal name is an alias.  */
20589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20590 choke me
20591 #else
20592 $ac_func();
20593 #endif
20594
20595 ; return 0; }
20596 EOF
20597 if { (eval echo configure:20598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20598   rm -rf conftest*
20599   eval "ac_cv_func_$ac_func=yes"
20600 else
20601   echo "configure: failed program was:" >&5
20602   cat conftest.$ac_ext >&5
20603   rm -rf conftest*
20604   eval "ac_cv_func_$ac_func=no"
20605 fi
20606 rm -f conftest*
20607 fi
20608
20609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20610   echo "$ac_t""yes" 1>&6
20611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20612   cat >> confdefs.h <<EOF
20613 #define $ac_tr_func 1
20614 EOF
20615  
20616 else
20617   echo "$ac_t""no" 1>&6
20618 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20619 fi
20620 done
20621
20622   fi
20623
20624   
20625
20626   
20627
20628       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20629 echo "configure:20630: checking for mbstate_t" >&5
20630   cat > conftest.$ac_ext <<EOF
20631 #line 20632 "configure"
20632 #include "confdefs.h"
20633 #include <wchar.h>
20634 int main() {
20635 mbstate_t teststate;
20636 ; return 0; }
20637 EOF
20638 if { (eval echo configure:20639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20639   rm -rf conftest*
20640   have_mbstate_t=yes
20641 else
20642   echo "configure: failed program was:" >&5
20643   cat conftest.$ac_ext >&5
20644   rm -rf conftest*
20645   have_mbstate_t=no
20646 fi
20647 rm -f conftest*
20648   echo "$ac_t""$have_mbstate_t" 1>&6
20649   if test x"$have_mbstate_t" = xyes; then
20650     cat >> confdefs.h <<\EOF
20651 #define HAVE_MBSTATE_T 1
20652 EOF
20653
20654   fi
20655
20656     for ac_hdr in wchar.h
20657 do
20658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20660 echo "configure:20661: checking for $ac_hdr" >&5
20661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20662   echo $ac_n "(cached) $ac_c" 1>&6
20663 else
20664   cat > conftest.$ac_ext <<EOF
20665 #line 20666 "configure"
20666 #include "confdefs.h"
20667 #include <$ac_hdr>
20668 EOF
20669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20670 { (eval echo configure:20671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20672 if test -z "$ac_err"; then
20673   rm -rf conftest*
20674   eval "ac_cv_header_$ac_safe=yes"
20675 else
20676   echo "$ac_err" >&5
20677   echo "configure: failed program was:" >&5
20678   cat conftest.$ac_ext >&5
20679   rm -rf conftest*
20680   eval "ac_cv_header_$ac_safe=no"
20681 fi
20682 rm -f conftest*
20683 fi
20684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20685   echo "$ac_t""yes" 1>&6
20686     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20687   cat >> confdefs.h <<EOF
20688 #define $ac_tr_hdr 1
20689 EOF
20690  ac_has_wchar_h=yes
20691 else
20692   echo "$ac_t""no" 1>&6
20693 ac_has_wchar_h=no
20694 fi
20695 done
20696
20697   for ac_hdr in wctype.h
20698 do
20699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20701 echo "configure:20702: checking for $ac_hdr" >&5
20702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20703   echo $ac_n "(cached) $ac_c" 1>&6
20704 else
20705   cat > conftest.$ac_ext <<EOF
20706 #line 20707 "configure"
20707 #include "confdefs.h"
20708 #include <$ac_hdr>
20709 EOF
20710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20711 { (eval echo configure:20712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20713 if test -z "$ac_err"; then
20714   rm -rf conftest*
20715   eval "ac_cv_header_$ac_safe=yes"
20716 else
20717   echo "$ac_err" >&5
20718   echo "configure: failed program was:" >&5
20719   cat conftest.$ac_ext >&5
20720   rm -rf conftest*
20721   eval "ac_cv_header_$ac_safe=no"
20722 fi
20723 rm -f conftest*
20724 fi
20725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20726   echo "$ac_t""yes" 1>&6
20727     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20728   cat >> confdefs.h <<EOF
20729 #define $ac_tr_hdr 1
20730 EOF
20731  ac_has_wctype_h=yes
20732 else
20733   echo "$ac_t""no" 1>&6
20734 ac_has_wctype_h=no
20735 fi
20736 done
20737
20738   
20739     if test x"$ac_has_wchar_h" = xyes &&
20740      test x"$ac_has_wctype_h" = xyes &&
20741      test x"$enable_c_mbchar" != xno; then
20742       
20743             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20744 echo "configure:20745: checking for WCHAR_MIN and WCHAR_MAX" >&5
20745     cat > conftest.$ac_ext <<EOF
20746 #line 20747 "configure"
20747 #include "confdefs.h"
20748 #include <wchar.h>
20749 int main() {
20750 int i = WCHAR_MIN; int j = WCHAR_MAX;
20751 ; return 0; }
20752 EOF
20753 if { (eval echo configure:20754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20754   rm -rf conftest*
20755   has_wchar_minmax=yes
20756 else
20757   echo "configure: failed program was:" >&5
20758   cat conftest.$ac_ext >&5
20759   rm -rf conftest*
20760   has_wchar_minmax=no
20761 fi
20762 rm -f conftest*
20763     echo "$ac_t""$has_wchar_minmax" 1>&6
20764     
20765             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20766 echo "configure:20767: checking for WEOF" >&5
20767     cat > conftest.$ac_ext <<EOF
20768 #line 20769 "configure"
20769 #include "confdefs.h"
20770
20771       #include <wchar.h>
20772       #include <stddef.h>
20773 int main() {
20774 wint_t i = WEOF;
20775 ; return 0; }
20776 EOF
20777 if { (eval echo configure:20778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20778   rm -rf conftest*
20779   has_weof=yes
20780 else
20781   echo "configure: failed program was:" >&5
20782   cat conftest.$ac_ext >&5
20783   rm -rf conftest*
20784   has_weof=no
20785 fi
20786 rm -f conftest*
20787     echo "$ac_t""$has_weof" 1>&6
20788   
20789         ac_wfuncs=yes
20790     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20791 do
20792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20793 echo "configure:20794: checking for $ac_func" >&5
20794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20795   echo $ac_n "(cached) $ac_c" 1>&6
20796 else
20797   cat > conftest.$ac_ext <<EOF
20798 #line 20799 "configure"
20799 #include "confdefs.h"
20800 /* System header to define __stub macros and hopefully few prototypes,
20801     which can conflict with char $ac_func(); below.  */
20802 #include <assert.h>
20803 /* Override any gcc2 internal prototype to avoid an error.  */
20804 /* We use char because int might match the return type of a gcc2
20805     builtin and then its argument prototype would still apply.  */
20806 char $ac_func();
20807
20808 int main() {
20809
20810 /* The GNU C library defines this for functions which it implements
20811     to always fail with ENOSYS.  Some functions are actually named
20812     something starting with __ and the normal name is an alias.  */
20813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20814 choke me
20815 #else
20816 $ac_func();
20817 #endif
20818
20819 ; return 0; }
20820 EOF
20821 if { (eval echo configure:20822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20822   rm -rf conftest*
20823   eval "ac_cv_func_$ac_func=yes"
20824 else
20825   echo "configure: failed program was:" >&5
20826   cat conftest.$ac_ext >&5
20827   rm -rf conftest*
20828   eval "ac_cv_func_$ac_func=no"
20829 fi
20830 rm -f conftest*
20831 fi
20832
20833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20834   echo "$ac_t""yes" 1>&6
20835     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20836   cat >> confdefs.h <<EOF
20837 #define $ac_tr_func 1
20838 EOF
20839  
20840 else
20841   echo "$ac_t""no" 1>&6
20842 \
20843     ac_wfuncs=no
20844 fi
20845 done
20846
20847   
20848         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20849     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20850     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20851     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20852     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20853     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20854 do
20855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20856 echo "configure:20857: checking for $ac_func" >&5
20857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20858   echo $ac_n "(cached) $ac_c" 1>&6
20859 else
20860   cat > conftest.$ac_ext <<EOF
20861 #line 20862 "configure"
20862 #include "confdefs.h"
20863 /* System header to define __stub macros and hopefully few prototypes,
20864     which can conflict with char $ac_func(); below.  */
20865 #include <assert.h>
20866 /* Override any gcc2 internal prototype to avoid an error.  */
20867 /* We use char because int might match the return type of a gcc2
20868     builtin and then its argument prototype would still apply.  */
20869 char $ac_func();
20870
20871 int main() {
20872
20873 /* The GNU C library defines this for functions which it implements
20874     to always fail with ENOSYS.  Some functions are actually named
20875     something starting with __ and the normal name is an alias.  */
20876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20877 choke me
20878 #else
20879 $ac_func();
20880 #endif
20881
20882 ; return 0; }
20883 EOF
20884 if { (eval echo configure:20885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20885   rm -rf conftest*
20886   eval "ac_cv_func_$ac_func=yes"
20887 else
20888   echo "configure: failed program was:" >&5
20889   cat conftest.$ac_ext >&5
20890   rm -rf conftest*
20891   eval "ac_cv_func_$ac_func=no"
20892 fi
20893 rm -f conftest*
20894 fi
20895
20896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20897   echo "$ac_t""yes" 1>&6
20898     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20899   cat >> confdefs.h <<EOF
20900 #define $ac_tr_func 1
20901 EOF
20902  
20903 else
20904   echo "$ac_t""no" 1>&6
20905 \
20906     ac_wfuncs=no
20907 fi
20908 done
20909
20910
20911     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20912 echo "configure:20913: checking for ISO C99 wchar_t support" >&5
20913     if test x"$has_weof" = xyes &&
20914        test x"$has_wchar_minmax" = xyes &&
20915        test x"$ac_wfuncs" = xyes; then
20916       ac_isoC99_wchar_t=yes
20917     else
20918       ac_isoC99_wchar_t=no
20919     fi
20920     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20921   
20922             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20923 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20924 echo "configure:20925: checking for iconv.h" >&5
20925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20926   echo $ac_n "(cached) $ac_c" 1>&6
20927 else
20928   cat > conftest.$ac_ext <<EOF
20929 #line 20930 "configure"
20930 #include "confdefs.h"
20931 #include <iconv.h>
20932 EOF
20933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20934 { (eval echo configure:20935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20936 if test -z "$ac_err"; then
20937   rm -rf conftest*
20938   eval "ac_cv_header_$ac_safe=yes"
20939 else
20940   echo "$ac_err" >&5
20941   echo "configure: failed program was:" >&5
20942   cat conftest.$ac_ext >&5
20943   rm -rf conftest*
20944   eval "ac_cv_header_$ac_safe=no"
20945 fi
20946 rm -f conftest*
20947 fi
20948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20949   echo "$ac_t""yes" 1>&6
20950   ac_has_iconv_h=yes
20951 else
20952   echo "$ac_t""no" 1>&6
20953 ac_has_iconv_h=no
20954 fi
20955
20956     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20957 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20958 echo "configure:20959: checking for langinfo.h" >&5
20959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20960   echo $ac_n "(cached) $ac_c" 1>&6
20961 else
20962   cat > conftest.$ac_ext <<EOF
20963 #line 20964 "configure"
20964 #include "confdefs.h"
20965 #include <langinfo.h>
20966 EOF
20967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20968 { (eval echo configure:20969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20970 if test -z "$ac_err"; then
20971   rm -rf conftest*
20972   eval "ac_cv_header_$ac_safe=yes"
20973 else
20974   echo "$ac_err" >&5
20975   echo "configure: failed program was:" >&5
20976   cat conftest.$ac_ext >&5
20977   rm -rf conftest*
20978   eval "ac_cv_header_$ac_safe=no"
20979 fi
20980 rm -f conftest*
20981 fi
20982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20983   echo "$ac_t""yes" 1>&6
20984   ac_has_langinfo_h=yes
20985 else
20986   echo "$ac_t""no" 1>&6
20987 ac_has_langinfo_h=no
20988 fi
20989
20990
20991         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20992 echo "configure:20993: checking for iconv in -liconv" >&5
20993 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20995   echo $ac_n "(cached) $ac_c" 1>&6
20996 else
20997   ac_save_LIBS="$LIBS"
20998 LIBS="-liconv  $LIBS"
20999 cat > conftest.$ac_ext <<EOF
21000 #line 21001 "configure"
21001 #include "confdefs.h"
21002 /* Override any gcc2 internal prototype to avoid an error.  */
21003 /* We use char because int might match the return type of a gcc2
21004     builtin and then its argument prototype would still apply.  */
21005 char iconv();
21006
21007 int main() {
21008 iconv()
21009 ; return 0; }
21010 EOF
21011 if { (eval echo configure:21012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21012   rm -rf conftest*
21013   eval "ac_cv_lib_$ac_lib_var=yes"
21014 else
21015   echo "configure: failed program was:" >&5
21016   cat conftest.$ac_ext >&5
21017   rm -rf conftest*
21018   eval "ac_cv_lib_$ac_lib_var=no"
21019 fi
21020 rm -f conftest*
21021 LIBS="$ac_save_LIBS"
21022
21023 fi
21024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21025   echo "$ac_t""yes" 1>&6
21026   libiconv="-liconv"
21027 else
21028   echo "$ac_t""no" 1>&6
21029 fi
21030
21031     ac_save_LIBS="$LIBS"
21032     LIBS="$LIBS $libiconv"
21033
21034     for ac_func in iconv_open iconv_close iconv nl_langinfo
21035 do
21036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21037 echo "configure:21038: checking for $ac_func" >&5
21038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21039   echo $ac_n "(cached) $ac_c" 1>&6
21040 else
21041   cat > conftest.$ac_ext <<EOF
21042 #line 21043 "configure"
21043 #include "confdefs.h"
21044 /* System header to define __stub macros and hopefully few prototypes,
21045     which can conflict with char $ac_func(); below.  */
21046 #include <assert.h>
21047 /* Override any gcc2 internal prototype to avoid an error.  */
21048 /* We use char because int might match the return type of a gcc2
21049     builtin and then its argument prototype would still apply.  */
21050 char $ac_func();
21051
21052 int main() {
21053
21054 /* The GNU C library defines this for functions which it implements
21055     to always fail with ENOSYS.  Some functions are actually named
21056     something starting with __ and the normal name is an alias.  */
21057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21058 choke me
21059 #else
21060 $ac_func();
21061 #endif
21062
21063 ; return 0; }
21064 EOF
21065 if { (eval echo configure:21066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21066   rm -rf conftest*
21067   eval "ac_cv_func_$ac_func=yes"
21068 else
21069   echo "configure: failed program was:" >&5
21070   cat conftest.$ac_ext >&5
21071   rm -rf conftest*
21072   eval "ac_cv_func_$ac_func=no"
21073 fi
21074 rm -f conftest*
21075 fi
21076
21077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21078   echo "$ac_t""yes" 1>&6
21079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21080   cat >> confdefs.h <<EOF
21081 #define $ac_tr_func 1
21082 EOF
21083  \
21084     ac_XPG2funcs=yes
21085 else
21086   echo "$ac_t""no" 1>&6
21087 ac_XPG2funcs=no
21088 fi
21089 done
21090
21091   
21092     LIBS="$ac_save_LIBS"
21093
21094     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21095 echo "configure:21096: checking for XPG2 wchar_t support" >&5
21096     if test x"$ac_has_iconv_h" = xyes &&
21097        test x"$ac_has_langinfo_h" = xyes &&
21098        test x"$ac_XPG2funcs" = xyes; then
21099       ac_XPG2_wchar_t=yes
21100     else
21101       ac_XPG2_wchar_t=no
21102     fi
21103     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21104   
21105             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21106 echo "configure:21107: checking for enabled wchar_t specializations" >&5
21107     if test x"$ac_isoC99_wchar_t" = xyes &&
21108        test x"$ac_XPG2_wchar_t" = xyes; then
21109       cat >> confdefs.h <<\EOF
21110 #define _GLIBCPP_USE_WCHAR_T 1
21111 EOF
21112
21113       echo "$ac_t"""yes"" 1>&6
21114     else
21115       echo "$ac_t"""no"" 1>&6
21116     fi
21117   else
21118         echo "configure: warning: wchar_t support disabled." 1>&2
21119   fi
21120
21121   
21122   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21123   ac_save_CXXFLAGS="$CXXFLAGS"
21124   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21125
21126   
21127   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21128 echo "configure:21129: checking for strtold declaration" >&5
21129   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21130     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21131   echo $ac_n "(cached) $ac_c" 1>&6
21132 else
21133   
21134       
21135       ac_ext=C
21136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21137 ac_cpp='$CXXCPP $CPPFLAGS'
21138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21139 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21140 cross_compiling=$ac_cv_prog_cxx_cross
21141
21142       cat > conftest.$ac_ext <<EOF
21143 #line 21144 "configure"
21144 #include "confdefs.h"
21145 #include <stdlib.h>
21146 int main() {
21147  strtold(0, 0);
21148 ; return 0; }
21149 EOF
21150 if { (eval echo configure:21151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21151   rm -rf conftest*
21152   glibcpp_cv_func_strtold_use=yes
21153 else
21154   echo "configure: failed program was:" >&5
21155   cat conftest.$ac_ext >&5
21156   rm -rf conftest*
21157   glibcpp_cv_func_strtold_use=no
21158 fi
21159 rm -f conftest*
21160       ac_ext=c
21161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21162 ac_cpp='$CPP $CPPFLAGS'
21163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21165 cross_compiling=$ac_cv_prog_cc_cross
21166
21167     
21168 fi
21169
21170   fi
21171   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21172   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21173     for ac_func in strtold
21174 do
21175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21176 echo "configure:21177: checking for $ac_func" >&5
21177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21178   echo $ac_n "(cached) $ac_c" 1>&6
21179 else
21180   cat > conftest.$ac_ext <<EOF
21181 #line 21182 "configure"
21182 #include "confdefs.h"
21183 /* System header to define __stub macros and hopefully few prototypes,
21184     which can conflict with char $ac_func(); below.  */
21185 #include <assert.h>
21186 /* Override any gcc2 internal prototype to avoid an error.  */
21187 /* We use char because int might match the return type of a gcc2
21188     builtin and then its argument prototype would still apply.  */
21189 char $ac_func();
21190
21191 int main() {
21192
21193 /* The GNU C library defines this for functions which it implements
21194     to always fail with ENOSYS.  Some functions are actually named
21195     something starting with __ and the normal name is an alias.  */
21196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21197 choke me
21198 #else
21199 $ac_func();
21200 #endif
21201
21202 ; return 0; }
21203 EOF
21204 if { (eval echo configure:21205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21205   rm -rf conftest*
21206   eval "ac_cv_func_$ac_func=yes"
21207 else
21208   echo "configure: failed program was:" >&5
21209   cat conftest.$ac_ext >&5
21210   rm -rf conftest*
21211   eval "ac_cv_func_$ac_func=no"
21212 fi
21213 rm -f conftest*
21214 fi
21215
21216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21217   echo "$ac_t""yes" 1>&6
21218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21219   cat >> confdefs.h <<EOF
21220 #define $ac_tr_func 1
21221 EOF
21222  
21223 else
21224   echo "$ac_t""no" 1>&6
21225 fi
21226 done
21227     
21228   fi
21229
21230   
21231   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21232 echo "configure:21233: checking for strtof declaration" >&5
21233   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21234     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21235   echo $ac_n "(cached) $ac_c" 1>&6
21236 else
21237   
21238       
21239       ac_ext=C
21240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21241 ac_cpp='$CXXCPP $CPPFLAGS'
21242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21244 cross_compiling=$ac_cv_prog_cxx_cross
21245
21246       cat > conftest.$ac_ext <<EOF
21247 #line 21248 "configure"
21248 #include "confdefs.h"
21249 #include <stdlib.h>
21250 int main() {
21251  strtof(0, 0);
21252 ; return 0; }
21253 EOF
21254 if { (eval echo configure:21255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21255   rm -rf conftest*
21256   glibcpp_cv_func_strtof_use=yes
21257 else
21258   echo "configure: failed program was:" >&5
21259   cat conftest.$ac_ext >&5
21260   rm -rf conftest*
21261   glibcpp_cv_func_strtof_use=no
21262 fi
21263 rm -f conftest*
21264       ac_ext=c
21265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21266 ac_cpp='$CPP $CPPFLAGS'
21267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21269 cross_compiling=$ac_cv_prog_cc_cross
21270
21271     
21272 fi
21273
21274   fi
21275   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21276   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21277     for ac_func in strtof
21278 do
21279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21280 echo "configure:21281: checking for $ac_func" >&5
21281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21282   echo $ac_n "(cached) $ac_c" 1>&6
21283 else
21284   cat > conftest.$ac_ext <<EOF
21285 #line 21286 "configure"
21286 #include "confdefs.h"
21287 /* System header to define __stub macros and hopefully few prototypes,
21288     which can conflict with char $ac_func(); below.  */
21289 #include <assert.h>
21290 /* Override any gcc2 internal prototype to avoid an error.  */
21291 /* We use char because int might match the return type of a gcc2
21292     builtin and then its argument prototype would still apply.  */
21293 char $ac_func();
21294
21295 int main() {
21296
21297 /* The GNU C library defines this for functions which it implements
21298     to always fail with ENOSYS.  Some functions are actually named
21299     something starting with __ and the normal name is an alias.  */
21300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21301 choke me
21302 #else
21303 $ac_func();
21304 #endif
21305
21306 ; return 0; }
21307 EOF
21308 if { (eval echo configure:21309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21309   rm -rf conftest*
21310   eval "ac_cv_func_$ac_func=yes"
21311 else
21312   echo "configure: failed program was:" >&5
21313   cat conftest.$ac_ext >&5
21314   rm -rf conftest*
21315   eval "ac_cv_func_$ac_func=no"
21316 fi
21317 rm -f conftest*
21318 fi
21319
21320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21321   echo "$ac_t""yes" 1>&6
21322     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21323   cat >> confdefs.h <<EOF
21324 #define $ac_tr_func 1
21325 EOF
21326  
21327 else
21328   echo "$ac_t""no" 1>&6
21329 fi
21330 done
21331     
21332   fi
21333
21334   for ac_func in drand48
21335 do
21336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21337 echo "configure:21338: checking for $ac_func" >&5
21338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21339   echo $ac_n "(cached) $ac_c" 1>&6
21340 else
21341   cat > conftest.$ac_ext <<EOF
21342 #line 21343 "configure"
21343 #include "confdefs.h"
21344 /* System header to define __stub macros and hopefully few prototypes,
21345     which can conflict with char $ac_func(); below.  */
21346 #include <assert.h>
21347 /* Override any gcc2 internal prototype to avoid an error.  */
21348 /* We use char because int might match the return type of a gcc2
21349     builtin and then its argument prototype would still apply.  */
21350 char $ac_func();
21351
21352 int main() {
21353
21354 /* The GNU C library defines this for functions which it implements
21355     to always fail with ENOSYS.  Some functions are actually named
21356     something starting with __ and the normal name is an alias.  */
21357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21358 choke me
21359 #else
21360 $ac_func();
21361 #endif
21362
21363 ; return 0; }
21364 EOF
21365 if { (eval echo configure:21366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21366   rm -rf conftest*
21367   eval "ac_cv_func_$ac_func=yes"
21368 else
21369   echo "configure: failed program was:" >&5
21370   cat conftest.$ac_ext >&5
21371   rm -rf conftest*
21372   eval "ac_cv_func_$ac_func=no"
21373 fi
21374 rm -f conftest*
21375 fi
21376
21377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21378   echo "$ac_t""yes" 1>&6
21379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21380   cat >> confdefs.h <<EOF
21381 #define $ac_tr_func 1
21382 EOF
21383  
21384 else
21385   echo "$ac_t""no" 1>&6
21386 fi
21387 done
21388
21389
21390   CXXFLAGS="$ac_save_CXXFLAGS"
21391
21392   
21393   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21394 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21395 echo "configure:21396: checking for locale.h" >&5
21396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21397   echo $ac_n "(cached) $ac_c" 1>&6
21398 else
21399   cat > conftest.$ac_ext <<EOF
21400 #line 21401 "configure"
21401 #include "confdefs.h"
21402 #include <locale.h>
21403 EOF
21404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21405 { (eval echo configure:21406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21407 if test -z "$ac_err"; then
21408   rm -rf conftest*
21409   eval "ac_cv_header_$ac_safe=yes"
21410 else
21411   echo "$ac_err" >&5
21412   echo "configure: failed program was:" >&5
21413   cat conftest.$ac_ext >&5
21414   rm -rf conftest*
21415   eval "ac_cv_header_$ac_safe=no"
21416 fi
21417 rm -f conftest*
21418 fi
21419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21420   echo "$ac_t""yes" 1>&6
21421   
21422     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21423 echo "configure:21424: checking for LC_MESSAGES" >&5
21424 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21425   echo $ac_n "(cached) $ac_c" 1>&6
21426 else
21427   cat > conftest.$ac_ext <<EOF
21428 #line 21429 "configure"
21429 #include "confdefs.h"
21430 #include <locale.h>
21431 int main() {
21432 return LC_MESSAGES
21433 ; return 0; }
21434 EOF
21435 if { (eval echo configure:21436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21436   rm -rf conftest*
21437   ac_cv_val_LC_MESSAGES=yes
21438 else
21439   echo "configure: failed program was:" >&5
21440   cat conftest.$ac_ext >&5
21441   rm -rf conftest*
21442   ac_cv_val_LC_MESSAGES=no
21443 fi
21444 rm -f conftest*
21445 fi
21446
21447 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21448     if test $ac_cv_val_LC_MESSAGES = yes; then
21449       cat >> confdefs.h <<\EOF
21450 #define HAVE_LC_MESSAGES 1
21451 EOF
21452
21453     fi
21454   
21455 else
21456   echo "$ac_t""no" 1>&6
21457 fi
21458
21459
21460
21461   cat > conftest.$ac_ext <<EOF
21462 #line 21463 "configure"
21463 #include "confdefs.h"
21464
21465   #include <setjmp.h>
21466   
21467 int main() {
21468 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21469 ; return 0; }
21470 EOF
21471 if { (eval echo configure:21472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21472   rm -rf conftest*
21473   cat >> confdefs.h <<\EOF
21474 #define HAVE_SIGSETJMP 1
21475 EOF
21476
21477   
21478 else
21479   echo "configure: failed program was:" >&5
21480   cat conftest.$ac_ext >&5
21481 fi
21482 rm -f conftest*
21483
21484   for ac_hdr in unistd.h
21485 do
21486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21488 echo "configure:21489: checking for $ac_hdr" >&5
21489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21490   echo $ac_n "(cached) $ac_c" 1>&6
21491 else
21492   cat > conftest.$ac_ext <<EOF
21493 #line 21494 "configure"
21494 #include "confdefs.h"
21495 #include <$ac_hdr>
21496 EOF
21497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21498 { (eval echo configure:21499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21500 if test -z "$ac_err"; then
21501   rm -rf conftest*
21502   eval "ac_cv_header_$ac_safe=yes"
21503 else
21504   echo "$ac_err" >&5
21505   echo "configure: failed program was:" >&5
21506   cat conftest.$ac_ext >&5
21507   rm -rf conftest*
21508   eval "ac_cv_header_$ac_safe=no"
21509 fi
21510 rm -f conftest*
21511 fi
21512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21513   echo "$ac_t""yes" 1>&6
21514     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21515   cat >> confdefs.h <<EOF
21516 #define $ac_tr_hdr 1
21517 EOF
21518  
21519 else
21520   echo "$ac_t""no" 1>&6
21521 fi
21522 done
21523
21524 for ac_func in getpagesize
21525 do
21526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21527 echo "configure:21528: checking for $ac_func" >&5
21528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21529   echo $ac_n "(cached) $ac_c" 1>&6
21530 else
21531   cat > conftest.$ac_ext <<EOF
21532 #line 21533 "configure"
21533 #include "confdefs.h"
21534 /* System header to define __stub macros and hopefully few prototypes,
21535     which can conflict with char $ac_func(); below.  */
21536 #include <assert.h>
21537 /* Override any gcc2 internal prototype to avoid an error.  */
21538 /* We use char because int might match the return type of a gcc2
21539     builtin and then its argument prototype would still apply.  */
21540 char $ac_func();
21541
21542 int main() {
21543
21544 /* The GNU C library defines this for functions which it implements
21545     to always fail with ENOSYS.  Some functions are actually named
21546     something starting with __ and the normal name is an alias.  */
21547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21548 choke me
21549 #else
21550 $ac_func();
21551 #endif
21552
21553 ; return 0; }
21554 EOF
21555 if { (eval echo configure:21556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21556   rm -rf conftest*
21557   eval "ac_cv_func_$ac_func=yes"
21558 else
21559   echo "configure: failed program was:" >&5
21560   cat conftest.$ac_ext >&5
21561   rm -rf conftest*
21562   eval "ac_cv_func_$ac_func=no"
21563 fi
21564 rm -f conftest*
21565 fi
21566
21567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21568   echo "$ac_t""yes" 1>&6
21569     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21570   cat >> confdefs.h <<EOF
21571 #define $ac_tr_func 1
21572 EOF
21573  
21574 else
21575   echo "$ac_t""no" 1>&6
21576 fi
21577 done
21578
21579 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21580 echo "configure:21581: checking for working mmap" >&5
21581 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21582   echo $ac_n "(cached) $ac_c" 1>&6
21583 else
21584   if test "$cross_compiling" = yes; then
21585   ac_cv_func_mmap_fixed_mapped=no
21586 else
21587   cat > conftest.$ac_ext <<EOF
21588 #line 21589 "configure"
21589 #include "confdefs.h"
21590
21591 /* Thanks to Mike Haertel and Jim Avera for this test.
21592    Here is a matrix of mmap possibilities:
21593         mmap private not fixed
21594         mmap private fixed at somewhere currently unmapped
21595         mmap private fixed at somewhere already mapped
21596         mmap shared not fixed
21597         mmap shared fixed at somewhere currently unmapped
21598         mmap shared fixed at somewhere already mapped
21599    For private mappings, we should verify that changes cannot be read()
21600    back from the file, nor mmap's back from the file at a different
21601    address.  (There have been systems where private was not correctly
21602    implemented like the infamous i386 svr4.0, and systems where the
21603    VM page cache was not coherent with the filesystem buffer cache
21604    like early versions of FreeBSD and possibly contemporary NetBSD.)
21605    For shared mappings, we should conversely verify that changes get
21606    propogated back to all the places they're supposed to be.
21607
21608    Grep wants private fixed already mapped.
21609    The main things grep needs to know about mmap are:
21610    * does it exist and is it safe to write into the mmap'd area
21611    * how to use it (BSD variants)  */
21612 #include <sys/types.h>
21613 #include <fcntl.h>
21614 #include <sys/mman.h>
21615
21616 /* This mess was copied from the GNU getpagesize.h.  */
21617 #ifndef HAVE_GETPAGESIZE
21618 # ifdef HAVE_UNISTD_H
21619 #  include <unistd.h>
21620 # endif
21621
21622 /* Assume that all systems that can run configure have sys/param.h.  */
21623 # ifndef HAVE_SYS_PARAM_H
21624 #  define HAVE_SYS_PARAM_H 1
21625 # endif
21626
21627 # ifdef _SC_PAGESIZE
21628 #  define getpagesize() sysconf(_SC_PAGESIZE)
21629 # else /* no _SC_PAGESIZE */
21630 #  ifdef HAVE_SYS_PARAM_H
21631 #   include <sys/param.h>
21632 #   ifdef EXEC_PAGESIZE
21633 #    define getpagesize() EXEC_PAGESIZE
21634 #   else /* no EXEC_PAGESIZE */
21635 #    ifdef NBPG
21636 #     define getpagesize() NBPG * CLSIZE
21637 #     ifndef CLSIZE
21638 #      define CLSIZE 1
21639 #     endif /* no CLSIZE */
21640 #    else /* no NBPG */
21641 #     ifdef NBPC
21642 #      define getpagesize() NBPC
21643 #     else /* no NBPC */
21644 #      ifdef PAGESIZE
21645 #       define getpagesize() PAGESIZE
21646 #      endif /* PAGESIZE */
21647 #     endif /* no NBPC */
21648 #    endif /* no NBPG */
21649 #   endif /* no EXEC_PAGESIZE */
21650 #  else /* no HAVE_SYS_PARAM_H */
21651 #   define getpagesize() 8192   /* punt totally */
21652 #  endif /* no HAVE_SYS_PARAM_H */
21653 # endif /* no _SC_PAGESIZE */
21654
21655 #endif /* no HAVE_GETPAGESIZE */
21656
21657 #ifdef __cplusplus
21658 extern "C" { void *malloc(unsigned); }
21659 #else
21660 char *malloc();
21661 #endif
21662
21663 int
21664 main()
21665 {
21666         char *data, *data2, *data3;
21667         int i, pagesize;
21668         int fd;
21669
21670         pagesize = getpagesize();
21671
21672         /*
21673          * First, make a file with some known garbage in it.
21674          */
21675         data = malloc(pagesize);
21676         if (!data)
21677                 exit(1);
21678         for (i = 0; i < pagesize; ++i)
21679                 *(data + i) = rand();
21680         umask(0);
21681         fd = creat("conftestmmap", 0600);
21682         if (fd < 0)
21683                 exit(1);
21684         if (write(fd, data, pagesize) != pagesize)
21685                 exit(1);
21686         close(fd);
21687
21688         /*
21689          * Next, try to mmap the file at a fixed address which
21690          * already has something else allocated at it.  If we can,
21691          * also make sure that we see the same garbage.
21692          */
21693         fd = open("conftestmmap", O_RDWR);
21694         if (fd < 0)
21695                 exit(1);
21696         data2 = malloc(2 * pagesize);
21697         if (!data2)
21698                 exit(1);
21699         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21700         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21701             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21702                 exit(1);
21703         for (i = 0; i < pagesize; ++i)
21704                 if (*(data + i) != *(data2 + i))
21705                         exit(1);
21706
21707         /*
21708          * Finally, make sure that changes to the mapped area
21709          * do not percolate back to the file as seen by read().
21710          * (This is a bug on some variants of i386 svr4.0.)
21711          */
21712         for (i = 0; i < pagesize; ++i)
21713                 *(data2 + i) = *(data2 + i) + 1;
21714         data3 = malloc(pagesize);
21715         if (!data3)
21716                 exit(1);
21717         if (read(fd, data3, pagesize) != pagesize)
21718                 exit(1);
21719         for (i = 0; i < pagesize; ++i)
21720                 if (*(data + i) != *(data3 + i))
21721                         exit(1);
21722         close(fd);
21723         unlink("conftestmmap");
21724         exit(0);
21725 }
21726
21727 EOF
21728 if { (eval echo configure:21729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21729 then
21730   ac_cv_func_mmap_fixed_mapped=yes
21731 else
21732   echo "configure: failed program was:" >&5
21733   cat conftest.$ac_ext >&5
21734   rm -fr conftest*
21735   ac_cv_func_mmap_fixed_mapped=no
21736 fi
21737 rm -fr conftest*
21738 fi
21739
21740 fi
21741
21742 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21743 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21744   cat >> confdefs.h <<\EOF
21745 #define HAVE_MMAP 1
21746 EOF
21747
21748 fi
21749
21750
21751   # Establish limits on memory usage during 'make check'
21752   
21753   
21754   setrlimit_have_headers=yes
21755   for ac_hdr in unistd.h sys/time.h sys/resource.h
21756 do
21757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21759 echo "configure:21760: checking for $ac_hdr" >&5
21760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21761   echo $ac_n "(cached) $ac_c" 1>&6
21762 else
21763   cat > conftest.$ac_ext <<EOF
21764 #line 21765 "configure"
21765 #include "confdefs.h"
21766 #include <$ac_hdr>
21767 EOF
21768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21769 { (eval echo configure:21770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21771 if test -z "$ac_err"; then
21772   rm -rf conftest*
21773   eval "ac_cv_header_$ac_safe=yes"
21774 else
21775   echo "$ac_err" >&5
21776   echo "configure: failed program was:" >&5
21777   cat conftest.$ac_ext >&5
21778   rm -rf conftest*
21779   eval "ac_cv_header_$ac_safe=no"
21780 fi
21781 rm -f conftest*
21782 fi
21783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21784   echo "$ac_t""yes" 1>&6
21785     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21786   cat >> confdefs.h <<EOF
21787 #define $ac_tr_hdr 1
21788 EOF
21789  
21790 else
21791   echo "$ac_t""no" 1>&6
21792 setrlimit_have_headers=no
21793 fi
21794 done
21795
21796   # If don't have the headers, then we can't run the tests now, and we
21797   # won't be seeing any of these during testsuite compilation.
21798   if test $setrlimit_have_headers = yes; then
21799     # Can't do these in a loop, else the resulting syntax is wrong.
21800     
21801   cat > conftest.$ac_ext <<EOF
21802 #line 21803 "configure"
21803 #include "confdefs.h"
21804 #include <unistd.h>
21805                   #include <sys/time.h>
21806                   #include <sys/resource.h>
21807                  
21808 int main() {
21809  int f = RLIMIT_DATA ; 
21810 ; return 0; }
21811 EOF
21812 if { (eval echo configure:21813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21813   rm -rf conftest*
21814   glibcpp_mresult=1
21815 else
21816   echo "configure: failed program was:" >&5
21817   cat conftest.$ac_ext >&5
21818   rm -rf conftest*
21819   glibcpp_mresult=0
21820 fi
21821 rm -f conftest*
21822   cat >> confdefs.h <<EOF
21823 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21824 EOF
21825
21826
21827     
21828   cat > conftest.$ac_ext <<EOF
21829 #line 21830 "configure"
21830 #include "confdefs.h"
21831 #include <unistd.h>
21832                   #include <sys/time.h>
21833                   #include <sys/resource.h>
21834                  
21835 int main() {
21836  int f = RLIMIT_RSS ; 
21837 ; return 0; }
21838 EOF
21839 if { (eval echo configure:21840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21840   rm -rf conftest*
21841   glibcpp_mresult=1
21842 else
21843   echo "configure: failed program was:" >&5
21844   cat conftest.$ac_ext >&5
21845   rm -rf conftest*
21846   glibcpp_mresult=0
21847 fi
21848 rm -f conftest*
21849   cat >> confdefs.h <<EOF
21850 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21851 EOF
21852
21853
21854     
21855   cat > conftest.$ac_ext <<EOF
21856 #line 21857 "configure"
21857 #include "confdefs.h"
21858 #include <unistd.h>
21859                   #include <sys/time.h>
21860                   #include <sys/resource.h>
21861                  
21862 int main() {
21863  int f = RLIMIT_VMEM ; 
21864 ; return 0; }
21865 EOF
21866 if { (eval echo configure:21867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21867   rm -rf conftest*
21868   glibcpp_mresult=1
21869 else
21870   echo "configure: failed program was:" >&5
21871   cat conftest.$ac_ext >&5
21872   rm -rf conftest*
21873   glibcpp_mresult=0
21874 fi
21875 rm -f conftest*
21876   cat >> confdefs.h <<EOF
21877 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21878 EOF
21879
21880
21881     
21882   cat > conftest.$ac_ext <<EOF
21883 #line 21884 "configure"
21884 #include "confdefs.h"
21885 #include <unistd.h>
21886                   #include <sys/time.h>
21887                   #include <sys/resource.h>
21888                  
21889 int main() {
21890  int f = RLIMIT_AS ; 
21891 ; return 0; }
21892 EOF
21893 if { (eval echo configure:21894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21894   rm -rf conftest*
21895   glibcpp_mresult=1
21896 else
21897   echo "configure: failed program was:" >&5
21898   cat conftest.$ac_ext >&5
21899   rm -rf conftest*
21900   glibcpp_mresult=0
21901 fi
21902 rm -f conftest*
21903   cat >> confdefs.h <<EOF
21904 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21905 EOF
21906
21907
21908
21909     # Check for rlimit, setrlimit.
21910     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21911   echo $ac_n "(cached) $ac_c" 1>&6
21912 else
21913   
21914       cat > conftest.$ac_ext <<EOF
21915 #line 21916 "configure"
21916 #include "confdefs.h"
21917 #include <unistd.h>
21918                   #include <sys/time.h>
21919                   #include <sys/resource.h>
21920                      
21921 int main() {
21922  struct rlimit r; setrlimit(0, &r);
21923 ; return 0; }
21924 EOF
21925 if { (eval echo configure:21926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21926   rm -rf conftest*
21927   ac_setrlimit=yes
21928 else
21929   echo "configure: failed program was:" >&5
21930   cat conftest.$ac_ext >&5
21931   rm -rf conftest*
21932   ac_setrlimit=no
21933 fi
21934 rm -f conftest*
21935     
21936 fi
21937
21938   fi
21939
21940   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21941 echo "configure:21942: checking for testsuite memory limit support" >&5
21942   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21943     ac_mem_limits=yes
21944     cat >> confdefs.h <<\EOF
21945 #define _GLIBCPP_MEM_LIMITS 1
21946 EOF
21947
21948   else
21949     ac_mem_limits=no
21950   fi
21951   echo "$ac_t""$ac_mem_limits" 1>&6
21952
21953
21954   # Look for setenv, so that extended locale tests can be performed.
21955   
21956   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21957 echo "configure:21958: checking for setenv declaration" >&5
21958   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21959     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21960   echo $ac_n "(cached) $ac_c" 1>&6
21961 else
21962   
21963       
21964       ac_ext=C
21965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21966 ac_cpp='$CXXCPP $CPPFLAGS'
21967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21969 cross_compiling=$ac_cv_prog_cxx_cross
21970
21971       cat > conftest.$ac_ext <<EOF
21972 #line 21973 "configure"
21973 #include "confdefs.h"
21974 #include <stdlib.h>
21975 int main() {
21976  setenv(0, 0, 0);
21977 ; return 0; }
21978 EOF
21979 if { (eval echo configure:21980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21980   rm -rf conftest*
21981   glibcpp_cv_func_setenv_use=yes
21982 else
21983   echo "configure: failed program was:" >&5
21984   cat conftest.$ac_ext >&5
21985   rm -rf conftest*
21986   glibcpp_cv_func_setenv_use=no
21987 fi
21988 rm -f conftest*
21989       ac_ext=c
21990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21991 ac_cpp='$CPP $CPPFLAGS'
21992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21994 cross_compiling=$ac_cv_prog_cc_cross
21995
21996     
21997 fi
21998
21999   fi
22000   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22001   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22002     for ac_func in setenv
22003 do
22004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22005 echo "configure:22006: checking for $ac_func" >&5
22006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22007   echo $ac_n "(cached) $ac_c" 1>&6
22008 else
22009   cat > conftest.$ac_ext <<EOF
22010 #line 22011 "configure"
22011 #include "confdefs.h"
22012 /* System header to define __stub macros and hopefully few prototypes,
22013     which can conflict with char $ac_func(); below.  */
22014 #include <assert.h>
22015 /* Override any gcc2 internal prototype to avoid an error.  */
22016 /* We use char because int might match the return type of a gcc2
22017     builtin and then its argument prototype would still apply.  */
22018 char $ac_func();
22019
22020 int main() {
22021
22022 /* The GNU C library defines this for functions which it implements
22023     to always fail with ENOSYS.  Some functions are actually named
22024     something starting with __ and the normal name is an alias.  */
22025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22026 choke me
22027 #else
22028 $ac_func();
22029 #endif
22030
22031 ; return 0; }
22032 EOF
22033 if { (eval echo configure:22034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22034   rm -rf conftest*
22035   eval "ac_cv_func_$ac_func=yes"
22036 else
22037   echo "configure: failed program was:" >&5
22038   cat conftest.$ac_ext >&5
22039   rm -rf conftest*
22040   eval "ac_cv_func_$ac_func=no"
22041 fi
22042 rm -f conftest*
22043 fi
22044
22045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22046   echo "$ac_t""yes" 1>&6
22047     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22048   cat >> confdefs.h <<EOF
22049 #define $ac_tr_func 1
22050 EOF
22051  
22052 else
22053   echo "$ac_t""no" 1>&6
22054 fi
22055 done
22056     
22057   fi
22058
22059
22060 fi
22061
22062 # This depends on the possibly-skipped linker test above.
22063 # Check whether --enable-symvers or --disable-symvers was given.
22064 if test "${enable_symvers+set}" = set; then
22065   enableval="$enable_symvers"
22066   case "$enableval" in
22067  yes) enable_symvers=yes ;;
22068  no)  enable_symvers=no ;;
22069  # other names here, just as sanity checks
22070  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22071  gnu) enable_symvers=$enableval ;;
22072  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22073  esac
22074 else
22075   enable_symvers=yes
22076 fi
22077
22078 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22079 # don't know enough about $LD to do tricks... 
22080 if test x$enable_shared = xno || 
22081         test "x$LD" = x || 
22082         test x$glibcpp_gnu_ld_version = x; then
22083   enable_symvers=no
22084 fi
22085
22086 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22087 if test $enable_symvers != no; then
22088   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22089 echo "configure:22090: checking for shared libgcc" >&5
22090   ac_save_CFLAGS="$CFLAGS"
22091   CFLAGS=' -lgcc_s'
22092   cat > conftest.$ac_ext <<EOF
22093 #line 22094 "configure"
22094 #include "confdefs.h"
22095
22096 int main() {
22097 return 0
22098 ; return 0; }
22099 EOF
22100 if { (eval echo configure:22101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22101   rm -rf conftest*
22102   glibcpp_shared_libgcc=yes
22103 else
22104   echo "configure: failed program was:" >&5
22105   cat conftest.$ac_ext >&5
22106   rm -rf conftest*
22107   glibcpp_shared_libgcc=no
22108 fi
22109 rm -f conftest*
22110   CFLAGS="$ac_save_CFLAGS"
22111   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22112 fi
22113
22114 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22115 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22116 glibcpp_min_gnu_ld_version=21200
22117
22118 # Check to see if unspecified "yes" value can win, given results
22119 # above.  
22120 if test $enable_symvers = yes ; then
22121   if test $with_gnu_ld = yes &&
22122     test $glibcpp_shared_libgcc = yes ;
22123   then
22124     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22125         enable_symvers=gnu
22126     else
22127       ac_test_CFLAGS="${CFLAGS+set}"
22128       ac_save_CFLAGS="$CFLAGS"
22129       CFLAGS='-shared -Wl,--version-script,conftest.map'
22130       enable_symvers=no
22131       
22132       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22133       
22134       cat > conftest.$ac_ext <<EOF
22135 #line 22136 "configure"
22136 #include "confdefs.h"
22137 int foo;
22138 int main() {
22139
22140 ; return 0; }
22141 EOF
22142 if { (eval echo configure:22143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22143   rm -rf conftest*
22144   enable_symvers=gnu
22145 else
22146   echo "configure: failed program was:" >&5
22147   cat conftest.$ac_ext >&5
22148 fi
22149 rm -f conftest*
22150       if test "$ac_test_CFLAGS" = set; then
22151         CFLAGS="$ac_save_CFLAGS"
22152       else
22153         # this is the suspicious part
22154         CFLAGS=''
22155       fi
22156       rm -f conftest.map
22157     fi
22158   else
22159     # just fail for now
22160     enable_symvers=no
22161   fi
22162 fi
22163
22164 case $enable_symvers in
22165   no)
22166       LINKER_MAP=config/linker-map.dummy
22167       ;;
22168   gnu)
22169       LINKER_MAP=config/linker-map.gnu
22170       ;;
22171 esac
22172
22173
22174
22175
22176 if test $enable_symvers != no; then
22177   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22178   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22179 else
22180   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22181   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22182 fi
22183 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22184 echo "configure:22185: checking versioning on shared library symbols" >&5
22185 echo "$ac_t""$enable_symvers" 1>&6
22186
22187
22188 # Propagate the target-specific source directories through the build chain.
22189 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22190 # CPULIMITSH [might] use it, and they only get used here.)
22191 OS_INC_SRCDIR=config/${os_include_dir}/bits
22192 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}/bits
22193 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}/bits
22194
22195
22196
22197
22198 # Set up cross-compile flags
22199   
22200
22201 if test "$CANADIAN" = yes; then
22202   CANADIAN_TRUE=
22203   CANADIAN_FALSE='#'
22204 else
22205   CANADIAN_TRUE='#'
22206   CANADIAN_FALSE=
22207 fi
22208  
22209 cat > confcache <<\EOF
22210 # This file is a shell script that caches the results of configure
22211 # tests run on this system so they can be shared between configure
22212 # scripts and configure runs.  It is not useful on other systems.
22213 # If it contains results you don't want to keep, you may remove or edit it.
22214 #
22215 # By default, configure uses ./config.cache as the cache file,
22216 # creating it if it does not exist already.  You can give configure
22217 # the --cache-file=FILE option to use a different cache file; that is
22218 # what configure does when it calls configure scripts in
22219 # subdirectories, so they share the cache.
22220 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22221 # config.status only pays attention to the cache file if you give it the
22222 # --recheck option to rerun configure.
22223 #
22224 EOF
22225 # The following way of writing the cache mishandles newlines in values,
22226 # but we know of no workaround that is simple, portable, and efficient.
22227 # So, don't put newlines in cache variables' values.
22228 # Ultrix sh set writes to stderr and can't be redirected directly,
22229 # and sets the high bit in the cache file unless we assign to the vars.
22230 (set) 2>&1 |
22231   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22232   *ac_space=\ *)
22233     # `set' does not quote correctly, so add quotes (double-quote substitution
22234     # turns \\\\ into \\, and sed turns \\ into \).
22235     sed -n \
22236       -e "s/'/'\\\\''/g" \
22237       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22238     ;;
22239   *)
22240     # `set' quotes correctly as required by POSIX, so do not add quotes.
22241     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22242     ;;
22243   esac >> confcache
22244 if cmp -s $cache_file confcache; then
22245   :
22246 else
22247   if test -w $cache_file; then
22248     echo "updating cache $cache_file"
22249     cat confcache > $cache_file
22250   else
22251     echo "not updating unwritable cache $cache_file"
22252   fi
22253 fi
22254 rm -f confcache
22255
22256
22257 if test "${multilib}" = "yes"; then
22258   multilib_arg="--enable-multilib"
22259 else
22260   multilib_arg=
22261 fi
22262
22263 # Needed so that g++ can find the correct include subdir automatically.
22264 INTERFACE=v3
22265
22266 # Export all the install information
22267
22268 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22269 # exported correctly in GLIBCPP_CONFIGURE.
22270 glibcpp_toolexecdir=no
22271 glibcpp_toolexeclibdir=no
22272 glibcpp_prefixdir=${prefix}
22273
22274 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
22275 echo "configure:22276: checking for interface version number" >&5
22276 libstdcxx_interface=$INTERFACE
22277 echo "$ac_t""$libstdcxx_interface" 1>&6
22278
22279 # Process the option --with-gxx-include-dir=<path to include-files directory>
22280 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22281 echo "configure:22282: checking for --with-gxx-include-dir" >&5
22282 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22283 if test "${with_gxx_include_dir+set}" = set; then
22284   withval="$with_gxx_include_dir"
22285   case "${withval}" in
22286   yes)
22287     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22288     gxx_include_dir=no
22289     ;;
22290   no)
22291     gxx_include_dir=no
22292     ;;
22293   *)
22294     gxx_include_dir=${withval}
22295     ;;
22296 esac
22297 else
22298   gxx_include_dir=no
22299 fi
22300
22301 echo "$ac_t""$gxx_include_dir" 1>&6
22302
22303 # Process the option "--enable-version-specific-runtime-libs"
22304 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22305 echo "configure:22306: checking for --enable-version-specific-runtime-libs" >&5
22306 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22307 if test "${enable_version_specific_runtime_libs+set}" = set; then
22308   enableval="$enable_version_specific_runtime_libs"
22309   case "$enableval" in
22310  yes) version_specific_libs=yes ;;
22311  no)  version_specific_libs=no ;;
22312  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22313  esac
22314 else
22315   version_specific_libs=no
22316 fi
22317 # Option set, now we can test it.
22318 echo "$ac_t""$version_specific_libs" 1>&6
22319
22320 if test $version_specific_libs = yes; then
22321   # Need the gcc compiler version to know where to install libraries
22322   # and header files if --enable-version-specific-runtime-libs option
22323   # is selected.
22324     gcc_version_trigger=${srcdir}/../gcc/version.c
22325   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
22326   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
22327   if test x"$gxx_include_dir" = x"no"; then
22328     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
22329   fi
22330   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22331   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22332   fi
22333
22334 # Default case for install directory for include files.
22335 if test $version_specific_libs = no &&
22336    test $gxx_include_dir = no; then
22337   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
22338 fi
22339
22340 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22341 # Install a library built with a cross compiler in tooldir, not libdir.
22342 if test x"$glibcpp_toolexecdir" = x"no"; then 
22343   if test -n "$with_cross_host" &&
22344      test x"$with_cross_host" != x"no"; then
22345     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22346     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22347   else
22348     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22349     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22350   fi
22351 fi
22352
22353 echo $ac_n "checking for install location""... $ac_c" 1>&6
22354 echo "configure:22355: checking for install location" >&5
22355 echo "$ac_t""$gxx_include_dir" 1>&6
22356
22357
22358
22359
22360
22361
22362
22363 # Export all the include and flag information to makefiles.
22364
22365   # Root level of the build directory include sources.
22366   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22367
22368   # Passed down for canadian crosses.
22369   if test x"$CANADIAN" = xyes; then
22370     TOPLEVEL_INCLUDES='-I$(includedir)'
22371   fi
22372
22373   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22374
22375   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22376
22377   if test x"$need_libio" = xyes; then
22378     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22379     
22380   fi
22381
22382   # Now, export this to all the little Makefiles....
22383   
22384   
22385   
22386   
22387
22388
22389   # Optimization flags that are probably a good idea for thrill-seekers. Just
22390   # uncomment the lines below and make, everything else is ready to go... 
22391   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22392   OPTIMIZE_CXXFLAGS=
22393   
22394
22395   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22396   
22397
22398
22399 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22400    grep "enable shared" > /dev/null; then
22401   LIBSUPCXX_PICFLAGS=-prefer-pic
22402 else
22403   LIBSUPCXX_PICFLAGS=
22404 fi
22405
22406
22407 # Generate the various Makefiles, include files, and scripts.
22408 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22409 # and libsupc++/Makefile.am so that multilib installs will end up
22410 # installed in the correct place. To work around this not being passed
22411 # down from config-ml.in -> top_srcdir/Makefile.am ->
22412 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22413 trap '' 1 2 15
22414 cat > confcache <<\EOF
22415 # This file is a shell script that caches the results of configure
22416 # tests run on this system so they can be shared between configure
22417 # scripts and configure runs.  It is not useful on other systems.
22418 # If it contains results you don't want to keep, you may remove or edit it.
22419 #
22420 # By default, configure uses ./config.cache as the cache file,
22421 # creating it if it does not exist already.  You can give configure
22422 # the --cache-file=FILE option to use a different cache file; that is
22423 # what configure does when it calls configure scripts in
22424 # subdirectories, so they share the cache.
22425 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22426 # config.status only pays attention to the cache file if you give it the
22427 # --recheck option to rerun configure.
22428 #
22429 EOF
22430 # The following way of writing the cache mishandles newlines in values,
22431 # but we know of no workaround that is simple, portable, and efficient.
22432 # So, don't put newlines in cache variables' values.
22433 # Ultrix sh set writes to stderr and can't be redirected directly,
22434 # and sets the high bit in the cache file unless we assign to the vars.
22435 (set) 2>&1 |
22436   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22437   *ac_space=\ *)
22438     # `set' does not quote correctly, so add quotes (double-quote substitution
22439     # turns \\\\ into \\, and sed turns \\ into \).
22440     sed -n \
22441       -e "s/'/'\\\\''/g" \
22442       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22443     ;;
22444   *)
22445     # `set' quotes correctly as required by POSIX, so do not add quotes.
22446     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22447     ;;
22448   esac >> confcache
22449 if cmp -s $cache_file confcache; then
22450   :
22451 else
22452   if test -w $cache_file; then
22453     echo "updating cache $cache_file"
22454     cat confcache > $cache_file
22455   else
22456     echo "not updating unwritable cache $cache_file"
22457   fi
22458 fi
22459 rm -f confcache
22460
22461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22462
22463 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22464 # Let make expand exec_prefix.
22465 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22466
22467 # Any assignment to VPATH causes Sun make to only execute
22468 # the first set of double-colon rules, so remove it if not needed.
22469 # If there is a colon in the path, we need to keep it.
22470 if test "x$srcdir" = x.; then
22471   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22472 fi
22473
22474 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22475
22476 DEFS=-DHAVE_CONFIG_H
22477
22478 # Without the "./", some shells look in PATH for config.status.
22479 : ${CONFIG_STATUS=./config.status}
22480
22481 echo creating $CONFIG_STATUS
22482 rm -f $CONFIG_STATUS
22483 cat > $CONFIG_STATUS <<EOF
22484 #! /bin/sh
22485 # Generated automatically by configure.
22486 # Run this file to recreate the current configuration.
22487 # This directory was configured as follows,
22488 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22489 #
22490 # $0 $ac_configure_args
22491 #
22492 # Compiler output produced by configure, useful for debugging
22493 # configure, is in ./config.log if it exists.
22494
22495 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22496 for ac_option
22497 do
22498   case "\$ac_option" in
22499   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22500     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22501     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22502   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22503     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22504     exit 0 ;;
22505   -help | --help | --hel | --he | --h)
22506     echo "\$ac_cs_usage"; exit 0 ;;
22507   *) echo "\$ac_cs_usage"; exit 1 ;;
22508   esac
22509 done
22510
22511 ac_given_srcdir=$srcdir
22512 ac_given_INSTALL="$INSTALL"
22513
22514 trap 'rm -fr `echo "Makefile \
22515     include/Makefile src/Makefile \
22516     libmath/Makefile libio/Makefile libsupc++/Makefile \
22517     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22518 EOF
22519 cat >> $CONFIG_STATUS <<EOF
22520
22521 # Protect against being on the right side of a sed subst in config.status.
22522 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22523  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22524 $ac_vpsub
22525 $extrasub
22526 s%@SHELL@%$SHELL%g
22527 s%@CFLAGS@%$CFLAGS%g
22528 s%@CPPFLAGS@%$CPPFLAGS%g
22529 s%@CXXFLAGS@%$CXXFLAGS%g
22530 s%@FFLAGS@%$FFLAGS%g
22531 s%@DEFS@%$DEFS%g
22532 s%@LDFLAGS@%$LDFLAGS%g
22533 s%@LIBS@%$LIBS%g
22534 s%@exec_prefix@%$exec_prefix%g
22535 s%@prefix@%$prefix%g
22536 s%@program_transform_name@%$program_transform_name%g
22537 s%@bindir@%$bindir%g
22538 s%@sbindir@%$sbindir%g
22539 s%@libexecdir@%$libexecdir%g
22540 s%@datadir@%$datadir%g
22541 s%@sysconfdir@%$sysconfdir%g
22542 s%@sharedstatedir@%$sharedstatedir%g
22543 s%@localstatedir@%$localstatedir%g
22544 s%@libdir@%$libdir%g
22545 s%@includedir@%$includedir%g
22546 s%@oldincludedir@%$oldincludedir%g
22547 s%@infodir@%$infodir%g
22548 s%@mandir@%$mandir%g
22549 s%@PACKAGE@%$PACKAGE%g
22550 s%@release_VERSION@%$release_VERSION%g
22551 s%@libtool_VERSION@%$libtool_VERSION%g
22552 s%@host@%$host%g
22553 s%@host_alias@%$host_alias%g
22554 s%@host_cpu@%$host_cpu%g
22555 s%@host_vendor@%$host_vendor%g
22556 s%@host_os@%$host_os%g
22557 s%@target@%$target%g
22558 s%@target_alias@%$target_alias%g
22559 s%@target_cpu@%$target_cpu%g
22560 s%@target_vendor@%$target_vendor%g
22561 s%@target_os@%$target_os%g
22562 s%@build@%$build%g
22563 s%@build_alias@%$build_alias%g
22564 s%@build_cpu@%$build_cpu%g
22565 s%@build_vendor@%$build_vendor%g
22566 s%@build_os@%$build_os%g
22567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22568 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22569 s%@INSTALL_DATA@%$INSTALL_DATA%g
22570 s%@VERSION@%$VERSION%g
22571 s%@ACLOCAL@%$ACLOCAL%g
22572 s%@AUTOCONF@%$AUTOCONF%g
22573 s%@AUTOMAKE@%$AUTOMAKE%g
22574 s%@AUTOHEADER@%$AUTOHEADER%g
22575 s%@MAKEINFO@%$MAKEINFO%g
22576 s%@SET_MAKE@%$SET_MAKE%g
22577 s%@toplevel_srcdir@%$toplevel_srcdir%g
22578 s%@glibcpp_builddir@%$glibcpp_builddir%g
22579 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22580 s%@AWK@%$AWK%g
22581 s%@LN_S@%$LN_S%g
22582 s%@glibcpp_basedir@%$glibcpp_basedir%g
22583 s%@CC@%$CC%g
22584 s%@glibcpp_CXX@%$glibcpp_CXX%g
22585 s%@AS@%$AS%g
22586 s%@AR@%$AR%g
22587 s%@RANLIB@%$RANLIB%g
22588 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22589 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22590 s%@MAINT@%$MAINT%g
22591 s%@EXEEXT@%$EXEEXT%g
22592 s%@OBJEXT@%$OBJEXT%g
22593 s%@STRIP@%$STRIP%g
22594 s%@LIBTOOL@%$LIBTOOL%g
22595 s%@CXXCPP@%$CXXCPP%g
22596 s%@enable_shared@%$enable_shared%g
22597 s%@enable_static@%$enable_static%g
22598 s%@ifGNUmake@%$ifGNUmake%g
22599 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22600 s%@CPP@%$CPP%g
22601 s%@CSTDIO_H@%$CSTDIO_H%g
22602 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22603 s%@CCODECVT_C@%$CCODECVT_C%g
22604 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22605 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22606 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22607 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22608 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22609 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22610 s%@libio_la@%$libio_la%g
22611 s%@check_msgfmt@%$check_msgfmt%g
22612 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22613 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22614 s%@glibcpp_localedir@%$glibcpp_localedir%g
22615 s%@USE_NLS@%$USE_NLS%g
22616 s%@CLOCALE_H@%$CLOCALE_H%g
22617 s%@CCODECVT_H@%$CCODECVT_H%g
22618 s%@CMESSAGES_H@%$CMESSAGES_H%g
22619 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
22620 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22621 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22622 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22623 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22624 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22625 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22626 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22627 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22628 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22629 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22630 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22631 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22632 s%@WERROR@%$WERROR%g
22633 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22634 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22635 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22636 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22637 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22638 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22639 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22640 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22641 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22642 s%@gxx_include_dir@%$gxx_include_dir%g
22643 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22644 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22645 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22646 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22647 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22648 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22649 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22650 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22651 s%@WARN_FLAGS@%$WARN_FLAGS%g
22652 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22653
22654 CEOF
22655 EOF
22656
22657 cat >> $CONFIG_STATUS <<\EOF
22658
22659 # Split the substitutions into bite-sized pieces for seds with
22660 # small command number limits, like on Digital OSF/1 and HP-UX.
22661 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22662 ac_file=1 # Number of current file.
22663 ac_beg=1 # First line for current file.
22664 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22665 ac_more_lines=:
22666 ac_sed_cmds=""
22667 while $ac_more_lines; do
22668   if test $ac_beg -gt 1; then
22669     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22670   else
22671     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22672   fi
22673   if test ! -s conftest.s$ac_file; then
22674     ac_more_lines=false
22675     rm -f conftest.s$ac_file
22676   else
22677     if test -z "$ac_sed_cmds"; then
22678       ac_sed_cmds="sed -f conftest.s$ac_file"
22679     else
22680       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22681     fi
22682     ac_file=`expr $ac_file + 1`
22683     ac_beg=$ac_end
22684     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22685   fi
22686 done
22687 if test -z "$ac_sed_cmds"; then
22688   ac_sed_cmds=cat
22689 fi
22690 EOF
22691
22692 cat >> $CONFIG_STATUS <<EOF
22693
22694 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22695     include/Makefile src/Makefile \
22696     libmath/Makefile libio/Makefile libsupc++/Makefile \
22697     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22698 EOF
22699 cat >> $CONFIG_STATUS <<\EOF
22700 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22701   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22702   case "$ac_file" in
22703   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22704        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22705   *) ac_file_in="${ac_file}.in" ;;
22706   esac
22707
22708   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22709
22710   # Remove last slash and all that follows it.  Not all systems have dirname.
22711   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22712   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22713     # The file is in a subdirectory.
22714     test ! -d "$ac_dir" && mkdir "$ac_dir"
22715     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22716     # A "../" for each directory in $ac_dir_suffix.
22717     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22718   else
22719     ac_dir_suffix= ac_dots=
22720   fi
22721
22722   case "$ac_given_srcdir" in
22723   .)  srcdir=.
22724       if test -z "$ac_dots"; then top_srcdir=.
22725       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22726   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22727   *) # Relative path.
22728     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22729     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22730   esac
22731
22732   case "$ac_given_INSTALL" in
22733   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22734   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22735   esac
22736
22737   echo creating "$ac_file"
22738   rm -f "$ac_file"
22739   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22740   case "$ac_file" in
22741   *Makefile*) ac_comsub="1i\\
22742 # $configure_input" ;;
22743   *) ac_comsub= ;;
22744   esac
22745
22746   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22747   sed -e "$ac_comsub
22748 s%@configure_input@%$configure_input%g
22749 s%@srcdir@%$srcdir%g
22750 s%@top_srcdir@%$top_srcdir%g
22751 s%@INSTALL@%$INSTALL%g
22752 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22753 fi; done
22754 rm -f conftest.s*
22755
22756 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22757 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22758 #
22759 # ac_d sets the value in "#define NAME VALUE" lines.
22760 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22761 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22762 ac_dC='\3'
22763 ac_dD='%g'
22764 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22765 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22766 ac_uB='\([      ]\)%\1#\2define\3'
22767 ac_uC=' '
22768 ac_uD='\4%g'
22769 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22770 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22771 ac_eB='$%\1#\2define\3'
22772 ac_eC=' '
22773 ac_eD='%g'
22774
22775 if test "${CONFIG_HEADERS+set}" != set; then
22776 EOF
22777 cat >> $CONFIG_STATUS <<EOF
22778   CONFIG_HEADERS="config.h"
22779 EOF
22780 cat >> $CONFIG_STATUS <<\EOF
22781 fi
22782 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22783   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22784   case "$ac_file" in
22785   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22786        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22787   *) ac_file_in="${ac_file}.in" ;;
22788   esac
22789
22790   echo creating $ac_file
22791
22792   rm -f conftest.frag conftest.in conftest.out
22793   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22794   cat $ac_file_inputs > conftest.in
22795
22796 EOF
22797
22798 # Transform confdefs.h into a sed script conftest.vals that substitutes
22799 # the proper values into config.h.in to produce config.h.  And first:
22800 # Protect against being on the right side of a sed subst in config.status.
22801 # Protect against being in an unquoted here document in config.status.
22802 rm -f conftest.vals
22803 cat > conftest.hdr <<\EOF
22804 s/[\\&%]/\\&/g
22805 s%[\\$`]%\\&%g
22806 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22807 s%ac_d%ac_u%gp
22808 s%ac_u%ac_e%gp
22809 EOF
22810 sed -n -f conftest.hdr confdefs.h > conftest.vals
22811 rm -f conftest.hdr
22812
22813 # This sed command replaces #undef with comments.  This is necessary, for
22814 # example, in the case of _POSIX_SOURCE, which is predefined and required
22815 # on some systems where configure will not decide to define it.
22816 cat >> conftest.vals <<\EOF
22817 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22818 EOF
22819
22820 # Break up conftest.vals because some shells have a limit on
22821 # the size of here documents, and old seds have small limits too.
22822
22823 rm -f conftest.tail
22824 while :
22825 do
22826   ac_lines=`grep -c . conftest.vals`
22827   # grep -c gives empty output for an empty file on some AIX systems.
22828   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22829   # Write a limited-size here document to conftest.frag.
22830   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22831   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22832   echo 'CEOF
22833   sed -f conftest.frag conftest.in > conftest.out
22834   rm -f conftest.in
22835   mv conftest.out conftest.in
22836 ' >> $CONFIG_STATUS
22837   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22838   rm -f conftest.vals
22839   mv conftest.tail conftest.vals
22840 done
22841 rm -f conftest.vals
22842
22843 cat >> $CONFIG_STATUS <<\EOF
22844   rm -f conftest.frag conftest.h
22845   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22846   cat conftest.in >> conftest.h
22847   rm -f conftest.in
22848   if cmp -s $ac_file conftest.h 2>/dev/null; then
22849     echo "$ac_file is unchanged"
22850     rm -f conftest.h
22851   else
22852     # Remove last slash and all that follows it.  Not all systems have dirname.
22853       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22854       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22855       # The file is in a subdirectory.
22856       test ! -d "$ac_dir" && mkdir "$ac_dir"
22857     fi
22858     rm -f $ac_file
22859     mv conftest.h $ac_file
22860   fi
22861 fi; done
22862
22863 EOF
22864
22865 cat >> $CONFIG_STATUS <<EOF
22866 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22867 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"
22868 EOF
22869
22870 cat >> $CONFIG_STATUS <<\EOF
22871 srcdir=$ac_given_srcdir
22872 while test -n "$ac_sources"; do
22873   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22874   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22875
22876   echo "linking $srcdir/$ac_source to $ac_dest"
22877
22878   if test ! -r $srcdir/$ac_source; then
22879     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22880   fi
22881   rm -f $ac_dest
22882
22883   # Make relative symlinks.
22884   # Remove last slash and all that follows it.  Not all systems have dirname.
22885   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22886   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22887     # The dest file is in a subdirectory.
22888     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22889     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22890     # A "../" for each directory in $ac_dest_dir_suffix.
22891     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22892   else
22893     ac_dest_dir_suffix= ac_dots=
22894   fi
22895
22896   case "$srcdir" in
22897   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22898   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22899   esac
22900
22901   # Make a symlink if possible; otherwise try a hard link.
22902   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22903     ln $srcdir/$ac_source $ac_dest; then :
22904   else
22905     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22906   fi
22907 done
22908 EOF
22909 cat >> $CONFIG_STATUS <<EOF
22910
22911 srcdir=${srcdir}
22912 host=${host}
22913 target=${target}
22914 with_multisubdir=${with_multisubdir}
22915 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22916 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22917 glibcpp_basedir=${glibcpp_basedir}
22918 CC="${CC}"
22919 CXX="${CXX}"
22920
22921 EOF
22922 cat >> $CONFIG_STATUS <<\EOF
22923 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22924 if test -n "$CONFIG_FILES"; then
22925   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22926   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22927   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22928   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22929 fi
22930 chmod +x mkcheck
22931 chmod +x testsuite_flags
22932
22933 exit 0
22934 EOF
22935 chmod +x $CONFIG_STATUS
22936 rm -fr confdefs* $ac_clean_files
22937 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22938
22939
22940
22941 # Sanity checking & User-visible messages.
22942 # Checks down here, otherwise they get scrolled off before
22943 # the user will notice.
22944
22945 # Trying to get more people to read documentation.  Possibly remove
22946 # check and warn all the time. There is no "informational" AC_MSG_
22947 # macro, so these are going to be printed even when --quiet/--silent
22948 # is given.
22949 if test ! -f stamp-sanity-warned; then
22950   touch stamp-sanity-warned
22951   echo ""
22952   echo "Please make certain that you read the installation information here:"
22953   echo "  faster => ${srcdir}/docs/html/install.html"
22954   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22955   echo ""
22956   echo "and the configuration information here:"
22957   echo "  faster => ${srcdir}/docs/html/configopts.html"
22958   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22959   echo ""
22960   echo "before proceeding with ${_cv_gnu_make_command}."
22961   echo ""
22962 fi