OSDN Git Service

2002-10-17 Momchil Velikov <velco@fadata.bg>
[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 libtool versioning info, format is CURRENT:REVISION:AGE
602 libtool_VERSION=5:1:0
603
604
605
606       # Check whether --enable-multilib or --disable-multilib was given.
607 if test "${enable_multilib+set}" = set; then
608   enableval="$enable_multilib"
609   case "${enableval}" in
610     yes) multilib=yes ;;
611     no)  multilib=no ;;
612     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
613    esac
614 else
615   multilib=yes
616 fi
617
618   # When building with srcdir == objdir, links to the source files will
619   # be created in directories within the target_subdir.  We have to
620   # adjust toplevel_srcdir accordingly, so that configure finds
621   # install-sh and other auxiliary files that live in the top-level
622   # source directory.
623   if test "${srcdir}" = "."; then
624     if test -z "${with_target_subdir}"; then
625       toprel=".."
626     else
627       if test "${with_target_subdir}" != "."; then
628         toprel="${with_multisrctop}../.."
629       else
630         toprel="${with_multisrctop}.."
631       fi
632     fi
633   else
634     toprel=".."
635   fi
636   ac_aux_dir=
637 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
638   if test -f $ac_dir/install-sh; then
639     ac_aux_dir=$ac_dir
640     ac_install_sh="$ac_aux_dir/install-sh -c"
641     break
642   elif test -f $ac_dir/install.sh; then
643     ac_aux_dir=$ac_dir
644     ac_install_sh="$ac_aux_dir/install.sh -c"
645     break
646   fi
647 done
648 if test -z "$ac_aux_dir"; then
649   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
650 fi
651 ac_config_guess=$ac_aux_dir/config.guess
652 ac_config_sub=$ac_aux_dir/config.sub
653 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
654
655   toplevel_srcdir=\${top_srcdir}/$toprel
656   
657
658
659 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
660 #
661 # You will slowly go insane if you do not grok the following fact:  when
662 # building v3 as part of the compiler, the top-level /target/ becomes the
663 # library's /host/.  `configure' then causes --target to default to --host,
664 # exactly like any other package using autoconf.  Therefore, 'target' and
665 # 'host' will always be the same.  This makes sense both for native and
666 # cross compilers, just think about it for a little while.  :-)
667 #
668 # Also, if v3 is being configured as part of a cross compiler, the top-level
669 # configure script will pass the "real" host as $with_cross_host.
670 #
671 # AC 2.5x sets target_alias iff the user specified --target, but we use it
672 # everywhere, so we set it here just to be sure.  In AC 2.13
673 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
674
675 # Do some error checking and defaulting for the host and target type.
676 # The inputs are:
677 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
678 #
679 # The rules are:
680 # 1. You are not allowed to specify --host, --target, and nonopt at the
681 #    same time.
682 # 2. Host defaults to nonopt.
683 # 3. If nonopt is not specified, then host defaults to the current host,
684 #    as determined by config.guess.
685 # 4. Target and build default to nonopt.
686 # 5. If nonopt is not specified, then target and build default to host.
687
688 # The aliases save the names the user supplied, while $host etc.
689 # will get canonicalized.
690 case $host---$target---$nonopt in
691 NONE---*---* | *---NONE---* | *---*---NONE) ;;
692 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
693 esac
694
695
696 # Make sure we can run config.sub.
697 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
698 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
699 fi
700
701 echo $ac_n "checking host system type""... $ac_c" 1>&6
702 echo "configure:703: checking host system type" >&5
703
704 host_alias=$host
705 case "$host_alias" in
706 NONE)
707   case $nonopt in
708   NONE)
709     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
710     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
711     fi ;;
712   *) host_alias=$nonopt ;;
713   esac ;;
714 esac
715
716 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
717 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo "$ac_t""$host" 1>&6
721
722 echo $ac_n "checking target system type""... $ac_c" 1>&6
723 echo "configure:724: checking target system type" >&5
724
725 target_alias=$target
726 case "$target_alias" in
727 NONE)
728   case $nonopt in
729   NONE) target_alias=$host_alias ;;
730   *) target_alias=$nonopt ;;
731   esac ;;
732 esac
733
734 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
735 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
738 echo "$ac_t""$target" 1>&6
739
740 echo $ac_n "checking build system type""... $ac_c" 1>&6
741 echo "configure:742: checking build system type" >&5
742
743 build_alias=$build
744 case "$build_alias" in
745 NONE)
746   case $nonopt in
747   NONE) build_alias=$host_alias ;;
748   *) build_alias=$nonopt ;;
749   esac ;;
750 esac
751
752 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
753 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
754 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
755 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
756 echo "$ac_t""$build" 1>&6
757
758 test "$host_alias" != "$target_alias" &&
759   test "$program_prefix$program_suffix$program_transform_name" = \
760     NONENONEs,x,x, &&
761   program_prefix=${target_alias}-
762
763 target_alias=${target_alias-$target}
764
765
766 # Runs configure.target, finds CC, CXX and assorted other critical bits.
767 # Must run this before the GLIBCPP_ENABLE_* macros below.
768 if test $host != $build; then
769   ac_tool_prefix=${host_alias}-
770 else
771   ac_tool_prefix=
772 fi
773
774 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
775 echo "configure:776: checking for Cygwin environment" >&5
776 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
777   echo $ac_n "(cached) $ac_c" 1>&6
778 else
779   cat > conftest.$ac_ext <<EOF
780 #line 781 "configure"
781 #include "confdefs.h"
782
783 int main() {
784
785 #ifndef __CYGWIN__
786 #define __CYGWIN__ __CYGWIN32__
787 #endif
788 return __CYGWIN__;
789 ; return 0; }
790 EOF
791 if { (eval echo configure:792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
792   rm -rf conftest*
793   ac_cv_cygwin=yes
794 else
795   echo "configure: failed program was:" >&5
796   cat conftest.$ac_ext >&5
797   rm -rf conftest*
798   ac_cv_cygwin=no
799 fi
800 rm -f conftest*
801 rm -f conftest*
802 fi
803
804 echo "$ac_t""$ac_cv_cygwin" 1>&6
805 CYGWIN=
806 test "$ac_cv_cygwin" = yes && CYGWIN=yes
807 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
808 echo "configure:809: checking for mingw32 environment" >&5
809 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
810   echo $ac_n "(cached) $ac_c" 1>&6
811 else
812   cat > conftest.$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
815
816 int main() {
817 return __MINGW32__;
818 ; return 0; }
819 EOF
820 if { (eval echo configure:821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
821   rm -rf conftest*
822   ac_cv_mingw32=yes
823 else
824   echo "configure: failed program was:" >&5
825   cat conftest.$ac_ext >&5
826   rm -rf conftest*
827   ac_cv_mingw32=no
828 fi
829 rm -f conftest*
830 rm -f conftest*
831 fi
832
833 echo "$ac_t""$ac_cv_mingw32" 1>&6
834 MINGW32=
835 test "$ac_cv_mingw32" = yes && MINGW32=yes
836
837   # Export build and source directories.
838   # These need to be absolute paths, yet at the same time need to
839   # canonicalize only relative paths, because then amd will not unmount
840   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
841   glibcpp_builddir=`${PWDCMD-pwd}`
842   case $srcdir in
843   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
844   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
845   esac
846   
847   
848
849     
850
851   for ac_prog in mawk gawk nawk awk
852 do
853 # Extract the first word of "$ac_prog", so it can be a program name with args.
854 set dummy $ac_prog; ac_word=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
858   echo $ac_n "(cached) $ac_c" 1>&6
859 else
860   if test -n "$AWK"; then
861   ac_cv_prog_AWK="$AWK" # Let the user override the test.
862 else
863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
864   ac_dummy="$PATH"
865   for ac_dir in $ac_dummy; do
866     test -z "$ac_dir" && ac_dir=.
867     if test -f $ac_dir/$ac_word; then
868       ac_cv_prog_AWK="$ac_prog"
869       break
870     fi
871   done
872   IFS="$ac_save_ifs"
873 fi
874 fi
875 AWK="$ac_cv_prog_AWK"
876 if test -n "$AWK"; then
877   echo "$ac_t""$AWK" 1>&6
878 else
879   echo "$ac_t""no" 1>&6
880 fi
881
882 test -n "$AWK" && break
883 done
884
885   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
886   # be 'cp -p' if linking isn't available.  Uncomment the next line to
887   # force a particular method.
888   #ac_cv_prog_LN_S='cp -p'
889   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
890 echo "configure:891: checking whether ln -s works" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
892   echo $ac_n "(cached) $ac_c" 1>&6
893 else
894   rm -f conftestdata
895 if ln -s X conftestdata 2>/dev/null
896 then
897   rm -f conftestdata
898   ac_cv_prog_LN_S="ln -s"
899 else
900   ac_cv_prog_LN_S=ln
901 fi
902 fi
903 LN_S="$ac_cv_prog_LN_S"
904 if test "$ac_cv_prog_LN_S" = "ln -s"; then
905   echo "$ac_t""yes" 1>&6
906 else
907   echo "$ac_t""no" 1>&6
908 fi
909
910
911   # We use these options to decide which functions to include.
912   # Check whether --with-target-subdir or --without-target-subdir was given.
913 if test "${with_target_subdir+set}" = set; then
914   withval="$with_target_subdir"
915   :
916 fi
917
918   # Check whether --with-cross-host or --without-cross-host was given.
919 if test "${with_cross_host+set}" = set; then
920   withval="$with_cross_host"
921   :
922 fi
923
924
925   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
926   
927
928   # Never versions of autoconf add an underscore to these functions.
929   # Prevent future problems ...
930   
931   
932   
933   
934
935   # AC_PROG_CC
936   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
937   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
938   # are probably using a cross compiler, which will not be able to fully
939   # link an executable.  This is addressed in later versions of autoconf.
940
941   
942
943       
944   # Extract the first word of "gcc", so it can be a program name with args.
945 set dummy gcc; ac_word=$2
946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947 echo "configure:948: checking for $ac_word" >&5
948 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
949   echo $ac_n "(cached) $ac_c" 1>&6
950 else
951   if test -n "$CC"; then
952   ac_cv_prog_CC="$CC" # Let the user override the test.
953 else
954   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
955   ac_dummy="$PATH"
956   for ac_dir in $ac_dummy; do
957     test -z "$ac_dir" && ac_dir=.
958     if test -f $ac_dir/$ac_word; then
959       ac_cv_prog_CC="gcc"
960       break
961     fi
962   done
963   IFS="$ac_save_ifs"
964 fi
965 fi
966 CC="$ac_cv_prog_CC"
967 if test -n "$CC"; then
968   echo "$ac_t""$CC" 1>&6
969 else
970   echo "$ac_t""no" 1>&6
971 fi
972
973   if test -z "$CC"; then
974     # Extract the first word of "cc", so it can be a program name with args.
975 set dummy cc; ac_word=$2
976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
977 echo "configure:978: checking for $ac_word" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
979   echo $ac_n "(cached) $ac_c" 1>&6
980 else
981   if test -n "$CC"; then
982   ac_cv_prog_CC="$CC" # Let the user override the test.
983 else
984   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
985   ac_prog_rejected=no
986   ac_dummy="$PATH"
987   for ac_dir in $ac_dummy; do
988     test -z "$ac_dir" && ac_dir=.
989     if test -f $ac_dir/$ac_word; then
990       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
991         ac_prog_rejected=yes
992         continue
993       fi
994       ac_cv_prog_CC="cc"
995       break
996     fi
997   done
998   IFS="$ac_save_ifs"
999 if test $ac_prog_rejected = yes; then
1000   # We found a bogon in the path, so make sure we never use it.
1001   set dummy $ac_cv_prog_CC
1002   shift
1003   if test $# -gt 0; then
1004     # We chose a different compiler from the bogus one.
1005     # However, it has the same basename, so the bogon will be chosen
1006     # first if we set CC to just the basename; use the full file name.
1007     shift
1008     set dummy "$ac_dir/$ac_word" "$@"
1009     shift
1010     ac_cv_prog_CC="$@"
1011   fi
1012 fi
1013 fi
1014 fi
1015 CC="$ac_cv_prog_CC"
1016 if test -n "$CC"; then
1017   echo "$ac_t""$CC" 1>&6
1018 else
1019   echo "$ac_t""no" 1>&6
1020 fi
1021
1022     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1023   fi
1024
1025   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1026 echo "configure:1027: checking whether we are using GNU C" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1028   echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030   cat > conftest.c <<EOF
1031 #ifdef __GNUC__
1032   yes;
1033 #endif
1034 EOF
1035 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1036   ac_cv_prog_gcc=yes
1037 else
1038   ac_cv_prog_gcc=no
1039 fi
1040 fi
1041
1042 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1043
1044   if test $ac_cv_prog_gcc = yes; then
1045     GCC=yes
1046           ac_test_CFLAGS="${CFLAGS+set}"
1047     ac_save_CFLAGS="$CFLAGS"
1048     CFLAGS=
1049     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1052   echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054   echo 'void f(){}' > conftest.c
1055 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1056   ac_cv_prog_cc_g=yes
1057 else
1058   ac_cv_prog_cc_g=no
1059 fi
1060 rm -f conftest*
1061
1062 fi
1063
1064 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1065     if test "$ac_test_CFLAGS" = set; then
1066       CFLAGS="$ac_save_CFLAGS"
1067     elif test $ac_cv_prog_cc_g = yes; then
1068       CFLAGS="-g -O2"
1069     else
1070       CFLAGS="-O2"
1071     fi
1072   else
1073     GCC=
1074     test "${CFLAGS+set}" = set || CFLAGS="-g"
1075   fi
1076   
1077
1078   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1079   # will try to link in libstdc++.
1080   
1081
1082       
1083   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1084   # flags that come in CXX while configuring libstdc++.  They're different
1085   # from those used for all other target libraries.  If CXX is set in
1086   # the environment, respect that here.
1087   glibcpp_CXX=$CXX
1088   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1089 do
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1095   echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097   if test -n "$glibcpp_CXX"; then
1098   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1099 else
1100   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1101   ac_dummy="$PATH"
1102   for ac_dir in $ac_dummy; do
1103     test -z "$ac_dir" && ac_dir=.
1104     if test -f $ac_dir/$ac_word; then
1105       ac_cv_prog_glibcpp_CXX="$ac_prog"
1106       break
1107     fi
1108   done
1109   IFS="$ac_save_ifs"
1110 fi
1111 fi
1112 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1113 if test -n "$glibcpp_CXX"; then
1114   echo "$ac_t""$glibcpp_CXX" 1>&6
1115 else
1116   echo "$ac_t""no" 1>&6
1117 fi
1118
1119 test -n "$glibcpp_CXX" && break
1120 done
1121 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1122
1123   
1124   CXX=$glibcpp_CXX
1125   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1126
1127   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether we are using GNU C++" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1130   echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132   cat > conftest.C <<EOF
1133 #ifdef __GNUC__
1134   yes;
1135 #endif
1136 EOF
1137 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1138   ac_cv_prog_gxx=yes
1139 else
1140   ac_cv_prog_gxx=no
1141 fi
1142 fi
1143
1144 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1145
1146   if test $ac_cv_prog_gxx = yes; then
1147     GXX=yes
1148                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1149     ac_save_CXXFLAGS="$CXXFLAGS"
1150     CXXFLAGS=
1151     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CXX-g++} accepts -g" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1154   echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156   echo 'void f(){}' > conftest.cc
1157 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1158   ac_cv_prog_cxx_g=yes
1159 else
1160   ac_cv_prog_cxx_g=no
1161 fi
1162 rm -f conftest*
1163
1164 fi
1165
1166 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1167     if test "$ac_test_CXXFLAGS" = set; then
1168       CXXFLAGS="$ac_save_CXXFLAGS"
1169     elif test $ac_cv_prog_cxx_g = yes; then
1170       CXXFLAGS="-g -O2"
1171     else
1172       CXXFLAGS="-O2"
1173     fi
1174   else
1175     GXX=
1176     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1177   fi
1178   
1179
1180   # For directory versioning (e.g., headers) and other variables.
1181   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1182 echo "configure:1183: checking for GCC version number" >&5
1183   gcc_version=`$glibcpp_CXX -dumpversion`
1184   echo "$ac_t""$gcc_version" 1>&6
1185
1186   # For some reason, gettext needs this.
1187   
1188         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1189 echo "configure:1190: checking for strerror in -lcposix" >&5
1190 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1192   echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194   ac_save_LIBS="$LIBS"
1195 LIBS="-lcposix  $LIBS"
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 /* Override any gcc2 internal prototype to avoid an error.  */
1200 /* We use char because int might match the return type of a gcc2
1201     builtin and then its argument prototype would still apply.  */
1202 char strerror();
1203
1204 int main() {
1205 strerror()
1206 ; return 0; }
1207 EOF
1208 if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209   rm -rf conftest*
1210   eval "ac_cv_lib_$ac_lib_var=yes"
1211 else
1212   echo "configure: failed program was:" >&5
1213   cat conftest.$ac_ext >&5
1214   rm -rf conftest*
1215   eval "ac_cv_lib_$ac_lib_var=no"
1216 fi
1217 rm -f conftest*
1218 LIBS="$ac_save_LIBS"
1219
1220 fi
1221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1222   echo "$ac_t""yes" 1>&6
1223   LIBS="$LIBS -lcposix"
1224 else
1225   echo "$ac_t""no" 1>&6
1226 fi
1227
1228   
1229
1230
1231   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}as; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1236   echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238   if test -n "$AS"; then
1239   ac_cv_prog_AS="$AS" # Let the user override the test.
1240 else
1241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1242   ac_dummy="$PATH"
1243   for ac_dir in $ac_dummy; do
1244     test -z "$ac_dir" && ac_dir=.
1245     if test -f $ac_dir/$ac_word; then
1246       ac_cv_prog_AS="${ac_tool_prefix}as"
1247       break
1248     fi
1249   done
1250   IFS="$ac_save_ifs"
1251   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1252 fi
1253 fi
1254 AS="$ac_cv_prog_AS"
1255 if test -n "$AS"; then
1256   echo "$ac_t""$AS" 1>&6
1257 else
1258   echo "$ac_t""no" 1>&6
1259 fi
1260
1261
1262
1263   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}ar; ac_word=$2
1265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_word" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268   echo $ac_n "(cached) $ac_c" 1>&6
1269 else
1270   if test -n "$AR"; then
1271   ac_cv_prog_AR="$AR" # Let the user override the test.
1272 else
1273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1274   ac_dummy="$PATH"
1275   for ac_dir in $ac_dummy; do
1276     test -z "$ac_dir" && ac_dir=.
1277     if test -f $ac_dir/$ac_word; then
1278       ac_cv_prog_AR="${ac_tool_prefix}ar"
1279       break
1280     fi
1281   done
1282   IFS="$ac_save_ifs"
1283   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1284 fi
1285 fi
1286 AR="$ac_cv_prog_AR"
1287 if test -n "$AR"; then
1288   echo "$ac_t""$AR" 1>&6
1289 else
1290   echo "$ac_t""no" 1>&6
1291 fi
1292
1293
1294
1295   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300   echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302   if test -n "$RANLIB"; then
1303   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1304 else
1305   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1306   ac_dummy="$PATH"
1307   for ac_dir in $ac_dummy; do
1308     test -z "$ac_dir" && ac_dir=.
1309     if test -f $ac_dir/$ac_word; then
1310       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1311       break
1312     fi
1313   done
1314   IFS="$ac_save_ifs"
1315 fi
1316 fi
1317 RANLIB="$ac_cv_prog_RANLIB"
1318 if test -n "$RANLIB"; then
1319   echo "$ac_t""$RANLIB" 1>&6
1320 else
1321   echo "$ac_t""no" 1>&6
1322 fi
1323
1324
1325 if test -z "$ac_cv_prog_RANLIB"; then
1326 if test -n "$ac_tool_prefix"; then
1327   # Extract the first word of "ranlib", so it can be a program name with args.
1328 set dummy ranlib; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332   echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334   if test -n "$RANLIB"; then
1335   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336 else
1337   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1338   ac_dummy="$PATH"
1339   for ac_dir in $ac_dummy; do
1340     test -z "$ac_dir" && ac_dir=.
1341     if test -f $ac_dir/$ac_word; then
1342       ac_cv_prog_RANLIB="ranlib"
1343       break
1344     fi
1345   done
1346   IFS="$ac_save_ifs"
1347   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1348 fi
1349 fi
1350 RANLIB="$ac_cv_prog_RANLIB"
1351 if test -n "$RANLIB"; then
1352   echo "$ac_t""$RANLIB" 1>&6
1353 else
1354   echo "$ac_t""no" 1>&6
1355 fi
1356
1357 else
1358   RANLIB="ranlib-not-found-in-path-error"
1359 fi
1360 fi
1361
1362   # Find a good install program.  We prefer a C program (faster),
1363 # so one script is as good as another.  But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1372 # ./install, which can be erroneously created by make from ./install.sh.
1373 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1374 echo "configure:1375: checking for a BSD compatible install" >&5
1375 if test -z "$INSTALL"; then
1376 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1377   echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1380   for ac_dir in $PATH; do
1381     # Account for people who put trailing slashes in PATH elements.
1382     case "$ac_dir/" in
1383     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1384     *)
1385       # OSF1 and SCO ODT 3.0 have their own names for install.
1386       # Don't use installbsd from OSF since it installs stuff as root
1387       # by default.
1388       for ac_prog in ginstall scoinst install; do
1389         if test -f $ac_dir/$ac_prog; then
1390           if test $ac_prog = install &&
1391             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1392             # AIX install.  It has an incompatible calling convention.
1393             :
1394           else
1395             ac_cv_path_install="$ac_dir/$ac_prog -c"
1396             break 2
1397           fi
1398         fi
1399       done
1400       ;;
1401     esac
1402   done
1403   IFS="$ac_save_IFS"
1404
1405 fi
1406   if test "${ac_cv_path_install+set}" = set; then
1407     INSTALL="$ac_cv_path_install"
1408   else
1409     # As a last resort, use the slow shell script.  We don't cache a
1410     # path for INSTALL within a source directory, because that will
1411     # break other packages using the cache if that directory is
1412     # removed, or if the path is relative.
1413     INSTALL="$ac_install_sh"
1414   fi
1415 fi
1416 echo "$ac_t""$INSTALL" 1>&6
1417
1418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419 # It thinks the first close brace ends the variable substitution.
1420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1421
1422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1423
1424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1425
1426
1427   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether to enable maintainer-specific portions of Makefiles" >&5
1429     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1430 if test "${enable_maintainer_mode+set}" = set; then
1431   enableval="$enable_maintainer_mode"
1432   USE_MAINTAINER_MODE=$enableval
1433 else
1434   USE_MAINTAINER_MODE=no
1435 fi
1436
1437   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1438   
1439
1440 if test $USE_MAINTAINER_MODE = yes; then
1441   MAINTAINER_MODE_TRUE=
1442   MAINTAINER_MODE_FALSE='#'
1443 else
1444   MAINTAINER_MODE_TRUE='#'
1445   MAINTAINER_MODE_FALSE=
1446 fi
1447   MAINT=$MAINTAINER_MODE_TRUE
1448   
1449
1450
1451   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1452   # at least currently, we never actually build a program, so we never
1453   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1454   # fails, because we are probably configuring with a cross compiler
1455   # which can't create executables.  So we include AC_EXEEXT to keep
1456   # automake happy, but we don't execute it, since we don't care about
1457   # the result.
1458   if false; then
1459     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1460     # to nothing, so nothing would remain between `then' and `fi' if it
1461     # were not for the `:' below.
1462     :
1463     
1464
1465 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1466 echo "configure:1467: checking for executable suffix" >&5
1467 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1468   echo $ac_n "(cached) $ac_c" 1>&6
1469 else
1470   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1471   ac_cv_exeext=.exe
1472 else
1473   rm -f conftest*
1474   echo 'int main () { return 0; }' > conftest.$ac_ext
1475   ac_cv_exeext=
1476   if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1477     for file in conftest.*; do
1478       case $file in
1479       *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
1480       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1481       esac
1482     done
1483   else
1484     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1485   fi
1486   rm -f conftest*
1487   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1488 fi
1489 fi
1490
1491 EXEEXT=""
1492 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1493 echo "$ac_t""${ac_cv_exeext}" 1>&6
1494 ac_exeext=$EXEEXT
1495
1496   fi
1497
1498   case ${glibcpp_basedir} in
1499     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1500     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1501   esac
1502
1503   # Find platform-specific directories containing configuration info.  In
1504   # addition to possibly modifying the same flags, it also sets up symlinks.
1505   
1506     . ${glibcpp_basedir}/configure.target
1507     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1508     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1509
1510
1511
1512 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1513 echo "configure:1514: checking whether build environment is sane" >&5
1514 # Just in case
1515 sleep 1
1516 echo timestamp > conftestfile
1517 # Do `set' in a subshell so we don't clobber the current shell's
1518 # arguments.  Must try -L first in case configure is actually a
1519 # symlink; some systems play weird games with the mod time of symlinks
1520 # (eg FreeBSD returns the mod time of the symlink's containing
1521 # directory).
1522 if (
1523    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1524    if test "$*" = "X"; then
1525       # -L didn't work.
1526       set X `ls -t $srcdir/configure conftestfile`
1527    fi
1528    if test "$*" != "X $srcdir/configure conftestfile" \
1529       && test "$*" != "X conftestfile $srcdir/configure"; then
1530
1531       # If neither matched, then we have a broken ls.  This can happen
1532       # if, for instance, CONFIG_SHELL is bash and it inherits a
1533       # broken ls alias from the environment.  This has actually
1534       # happened.  Such a system could not be considered "sane".
1535       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1536 alias in your environment" 1>&2; exit 1; }
1537    fi
1538
1539    test "$2" = conftestfile
1540    )
1541 then
1542    # Ok.
1543    :
1544 else
1545    { echo "configure: error: newly created file is older than distributed files!
1546 Check your system clock" 1>&2; exit 1; }
1547 fi
1548 rm -f conftest*
1549 echo "$ac_t""yes" 1>&6
1550 if test "$program_transform_name" = s,x,x,; then
1551   program_transform_name=
1552 else
1553   # Double any \ or $.  echo might interpret backslashes.
1554   cat <<\EOF_SED > conftestsed
1555 s,\\,\\\\,g; s,\$,$$,g
1556 EOF_SED
1557   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1558   rm -f conftestsed
1559 fi
1560 test "$program_prefix" != NONE &&
1561   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1562 # Use a double $ so make ignores it.
1563 test "$program_suffix" != NONE &&
1564   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1565
1566 # sed with no file args requires a program.
1567 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1568
1569 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1570 echo "configure:1571: checking whether ${MAKE-make} sets \${MAKE}" >&5
1571 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1572 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1573   echo $ac_n "(cached) $ac_c" 1>&6
1574 else
1575   cat > conftestmake <<\EOF
1576 all:
1577         @echo 'ac_maketemp="${MAKE}"'
1578 EOF
1579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1580 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1581 if test -n "$ac_maketemp"; then
1582   eval ac_cv_prog_make_${ac_make}_set=yes
1583 else
1584   eval ac_cv_prog_make_${ac_make}_set=no
1585 fi
1586 rm -f conftestmake
1587 fi
1588 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1589   echo "$ac_t""yes" 1>&6
1590   SET_MAKE=
1591 else
1592   echo "$ac_t""no" 1>&6
1593   SET_MAKE="MAKE=${MAKE-make}"
1594 fi
1595
1596
1597 PACKAGE=$PACKAGE
1598
1599 VERSION=$gcc_version
1600
1601 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1602   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1603 fi
1604 cat >> confdefs.h <<EOF
1605 #define PACKAGE "$PACKAGE"
1606 EOF
1607
1608 cat >> confdefs.h <<EOF
1609 #define VERSION "$VERSION"
1610 EOF
1611
1612
1613
1614 missing_dir=`cd $ac_aux_dir && pwd`
1615 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1616 echo "configure:1617: checking for working aclocal" >&5
1617 # Run test in a subshell; some versions of sh will print an error if
1618 # an executable is not found, even if stderr is redirected.
1619 # Redirect stdin to placate older versions of autoconf.  Sigh.
1620 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1621    ACLOCAL=aclocal
1622    echo "$ac_t""found" 1>&6
1623 else
1624    ACLOCAL="$missing_dir/missing aclocal"
1625    echo "$ac_t""missing" 1>&6
1626 fi
1627
1628 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1629 echo "configure:1630: checking for working autoconf" >&5
1630 # Run test in a subshell; some versions of sh will print an error if
1631 # an executable is not found, even if stderr is redirected.
1632 # Redirect stdin to placate older versions of autoconf.  Sigh.
1633 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1634    AUTOCONF=autoconf
1635    echo "$ac_t""found" 1>&6
1636 else
1637    AUTOCONF="$missing_dir/missing autoconf"
1638    echo "$ac_t""missing" 1>&6
1639 fi
1640
1641 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1642 echo "configure:1643: checking for working automake" >&5
1643 # Run test in a subshell; some versions of sh will print an error if
1644 # an executable is not found, even if stderr is redirected.
1645 # Redirect stdin to placate older versions of autoconf.  Sigh.
1646 if (automake --version) < /dev/null > /dev/null 2>&1; then
1647    AUTOMAKE=automake
1648    echo "$ac_t""found" 1>&6
1649 else
1650    AUTOMAKE="$missing_dir/missing automake"
1651    echo "$ac_t""missing" 1>&6
1652 fi
1653
1654 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1655 echo "configure:1656: checking for working autoheader" >&5
1656 # Run test in a subshell; some versions of sh will print an error if
1657 # an executable is not found, even if stderr is redirected.
1658 # Redirect stdin to placate older versions of autoconf.  Sigh.
1659 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1660    AUTOHEADER=autoheader
1661    echo "$ac_t""found" 1>&6
1662 else
1663    AUTOHEADER="$missing_dir/missing autoheader"
1664    echo "$ac_t""missing" 1>&6
1665 fi
1666
1667 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1668 echo "configure:1669: checking for working makeinfo" >&5
1669 # Run test in a subshell; some versions of sh will print an error if
1670 # an executable is not found, even if stderr is redirected.
1671 # Redirect stdin to placate older versions of autoconf.  Sigh.
1672 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1673    MAKEINFO=makeinfo
1674    echo "$ac_t""found" 1>&6
1675 else
1676    MAKEINFO="$missing_dir/missing makeinfo"
1677    echo "$ac_t""missing" 1>&6
1678 fi
1679
1680
1681
1682
1683
1684
1685
1686 # Check whether --enable-shared or --disable-shared was given.
1687 if test "${enable_shared+set}" = set; then
1688   enableval="$enable_shared"
1689   p=${PACKAGE-default}
1690 case $enableval in
1691 yes) enable_shared=yes ;;
1692 no) enable_shared=no ;;
1693 *)
1694   enable_shared=no
1695   # Look at the argument we got.  We use all the common list separators.
1696   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1697   for pkg in $enableval; do
1698     if test "X$pkg" = "X$p"; then
1699       enable_shared=yes
1700     fi
1701   done
1702   IFS="$ac_save_ifs"
1703   ;;
1704 esac
1705 else
1706   enable_shared=yes
1707 fi
1708
1709 # Check whether --enable-static or --disable-static was given.
1710 if test "${enable_static+set}" = set; then
1711   enableval="$enable_static"
1712   p=${PACKAGE-default}
1713 case $enableval in
1714 yes) enable_static=yes ;;
1715 no) enable_static=no ;;
1716 *)
1717   enable_static=no
1718   # Look at the argument we got.  We use all the common list separators.
1719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1720   for pkg in $enableval; do
1721     if test "X$pkg" = "X$p"; then
1722       enable_static=yes
1723     fi
1724   done
1725   IFS="$ac_save_ifs"
1726   ;;
1727 esac
1728 else
1729   enable_static=yes
1730 fi
1731
1732 # Check whether --enable-fast-install or --disable-fast-install was given.
1733 if test "${enable_fast_install+set}" = set; then
1734   enableval="$enable_fast_install"
1735   p=${PACKAGE-default}
1736 case $enableval in
1737 yes) enable_fast_install=yes ;;
1738 no) enable_fast_install=no ;;
1739 *)
1740   enable_fast_install=no
1741   # Look at the argument we got.  We use all the common list separators.
1742   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1743   for pkg in $enableval; do
1744     if test "X$pkg" = "X$p"; then
1745       enable_fast_install=yes
1746     fi
1747   done
1748   IFS="$ac_save_ifs"
1749   ;;
1750 esac
1751 else
1752   enable_fast_install=yes
1753 fi
1754
1755 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1756 if test "${with_gnu_ld+set}" = set; then
1757   withval="$with_gnu_ld"
1758   test "$withval" = no || with_gnu_ld=yes
1759 else
1760   with_gnu_ld=no
1761 fi
1762
1763 ac_prog=ld
1764 if test "$GCC" = yes; then
1765   # Check if gcc -print-prog-name=ld gives a path.
1766   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1767 echo "configure:1768: checking for ld used by GCC" >&5
1768   case $host in
1769   *-*-mingw*)
1770     # gcc leaves a trailing carriage return which upsets mingw
1771     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1772   *)
1773     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1774   esac
1775   case $ac_prog in
1776     # Accept absolute paths.
1777     [\\/]* | [A-Za-z]:[\\/]*)
1778       re_direlt='/[^/][^/]*/\.\./'
1779       # Canonicalize the path of ld
1780       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1781       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1782         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1783       done
1784       test -z "$LD" && LD="$ac_prog"
1785       ;;
1786   "")
1787     # If it fails, then pretend we aren't using GCC.
1788     ac_prog=ld
1789     ;;
1790   *)
1791     # If it is relative, then search for the first ld in PATH.
1792     with_gnu_ld=unknown
1793     ;;
1794   esac
1795 elif test "$with_gnu_ld" = yes; then
1796   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1797 echo "configure:1798: checking for GNU ld" >&5
1798 else
1799   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1800 echo "configure:1801: checking for non-GNU ld" >&5
1801 fi
1802 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1803   echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805   if test -z "$LD"; then
1806   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1807   for ac_dir in $PATH; do
1808     test -z "$ac_dir" && ac_dir=.
1809     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1810       lt_cv_path_LD="$ac_dir/$ac_prog"
1811       # Check to see if the program is GNU ld.  I'd rather use --version,
1812       # but apparently some GNU ld's only accept -v.
1813       # Break only if it was the GNU/non-GNU ld that we prefer.
1814       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1815         test "$with_gnu_ld" != no && break
1816       else
1817         test "$with_gnu_ld" != yes && break
1818       fi
1819     fi
1820   done
1821   IFS="$ac_save_ifs"
1822 else
1823   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1824 fi
1825 fi
1826
1827 LD="$lt_cv_path_LD"
1828 if test -n "$LD"; then
1829   echo "$ac_t""$LD" 1>&6
1830 else
1831   echo "$ac_t""no" 1>&6
1832 fi
1833 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1834 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1835 echo "configure:1836: checking if the linker ($LD) is GNU ld" >&5
1836 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1837   echo $ac_n "(cached) $ac_c" 1>&6
1838 else
1839   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1840 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1841   lt_cv_prog_gnu_ld=yes
1842 else
1843   lt_cv_prog_gnu_ld=no
1844 fi
1845 fi
1846
1847 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1848 with_gnu_ld=$lt_cv_prog_gnu_ld
1849
1850
1851 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1852 echo "configure:1853: checking for $LD option to reload object files" >&5
1853 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1854   echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856   lt_cv_ld_reload_flag='-r'
1857 fi
1858
1859 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1860 reload_flag=$lt_cv_ld_reload_flag
1861 test -n "$reload_flag" && reload_flag=" $reload_flag"
1862
1863 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1864 echo "configure:1865: checking for BSD-compatible nm" >&5
1865 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1866   echo $ac_n "(cached) $ac_c" 1>&6
1867 else
1868   if test -n "$NM"; then
1869   # Let the user override the test.
1870   lt_cv_path_NM="$NM"
1871 else
1872   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1873   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1874     test -z "$ac_dir" && ac_dir=.
1875     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1876     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1877       # Check to see if the nm accepts a BSD-compat flag.
1878       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1879       #   nm: unknown option "B" ignored
1880       # Tru64's nm complains that /dev/null is an invalid object file
1881       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1882         lt_cv_path_NM="$tmp_nm -B"
1883         break
1884       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1885         lt_cv_path_NM="$tmp_nm -p"
1886         break
1887       else
1888         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1889         continue # so that we can try to find one that supports BSD flags
1890       fi
1891     fi
1892   done
1893   IFS="$ac_save_ifs"
1894   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1895 fi
1896 fi
1897
1898 NM="$lt_cv_path_NM"
1899 echo "$ac_t""$NM" 1>&6
1900
1901 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1902 echo "configure:1903: checking how to recognise dependant libraries" >&5
1903 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1904   echo $ac_n "(cached) $ac_c" 1>&6
1905 else
1906   lt_cv_file_magic_cmd='$MAGIC_CMD'
1907 lt_cv_file_magic_test_file=
1908 lt_cv_deplibs_check_method='unknown'
1909 # Need to set the preceding variable on all platforms that support
1910 # interlibrary dependencies.
1911 # 'none' -- dependencies not supported.
1912 # `unknown' -- same as none, but documents that we really don't know.
1913 # 'pass_all' -- all dependencies passed with no checks.
1914 # 'test_compile' -- check by making test program.
1915 # 'file_magic [regex]' -- check by looking for files in library path
1916 # which responds to the $file_magic_cmd with a given egrep regex.
1917 # If you have `file' or equivalent on your system and you're not sure
1918 # whether `pass_all' will *always* work, you probably want this one.
1919
1920 case $host_os in
1921 aix*)
1922   lt_cv_deplibs_check_method=pass_all
1923   ;;
1924
1925 beos*)
1926   lt_cv_deplibs_check_method=pass_all
1927   ;;
1928
1929 bsdi4*)
1930   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1931   lt_cv_file_magic_cmd='/usr/bin/file -L'
1932   lt_cv_file_magic_test_file=/shlib/libc.so
1933   ;;
1934
1935 cygwin* | mingw* |pw32*)
1936   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1937   lt_cv_file_magic_cmd='$OBJDUMP -f'
1938   ;;
1939
1940 darwin* | rhapsody*)
1941   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1942   lt_cv_file_magic_cmd='/usr/bin/file -L'
1943   case "$host_os" in
1944   rhapsody* | darwin1.012)
1945     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1946     ;;
1947   *) # Darwin 1.3 on
1948     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1949     ;;
1950   esac
1951   ;;
1952
1953 freebsd* )
1954   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1955     case $host_cpu in
1956     i*86 )
1957       # Not sure whether the presence of OpenBSD here was a mistake.
1958       # Let's accept both of them until this is cleared up.
1959       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1960       lt_cv_file_magic_cmd=/usr/bin/file
1961       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1962       ;;
1963     esac
1964   else
1965     lt_cv_deplibs_check_method=pass_all
1966   fi
1967   ;;
1968
1969 gnu*)
1970   lt_cv_deplibs_check_method=pass_all
1971   ;;
1972
1973 hpux10.20*|hpux11*)
1974   case $host_cpu in
1975   hppa*)
1976     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1977     lt_cv_file_magic_cmd=/usr/bin/file
1978     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1979     ;;
1980   ia64*)
1981     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1982     lt_cv_file_magic_cmd=/usr/bin/file
1983     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1984     ;;
1985   esac
1986   ;;
1987
1988 irix5* | irix6*)
1989   case $host_os in
1990   irix5*)
1991     # this will be overridden with pass_all, but let us keep it just in case
1992     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1993     ;;
1994   *)
1995     case $LD in
1996     *-32|*"-32 ") libmagic=32-bit;;
1997     *-n32|*"-n32 ") libmagic=N32;;
1998     *-64|*"-64 ") libmagic=64-bit;;
1999     *) libmagic=never-match;;
2000     esac
2001     # this will be overridden with pass_all, but let us keep it just in case
2002     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2003     ;;
2004   esac
2005   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2006   lt_cv_deplibs_check_method=pass_all
2007   ;;
2008
2009 # This must be Linux ELF.
2010 linux-gnu*)
2011   case $host_cpu in
2012   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2013     lt_cv_deplibs_check_method=pass_all ;;
2014   *)
2015     # glibc up to 2.1.1 does not perform some relocations on ARM
2016     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2017   esac
2018   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2019   ;;
2020
2021 netbsd*)
2022   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2023     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2024   else
2025     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2026   fi
2027   ;;
2028
2029 newsos6)
2030   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2031   lt_cv_file_magic_cmd=/usr/bin/file
2032   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2033   ;;
2034
2035 osf3* | osf4* | osf5*)
2036   # this will be overridden with pass_all, but let us keep it just in case
2037   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2038   lt_cv_file_magic_test_file=/shlib/libc.so
2039   lt_cv_deplibs_check_method=pass_all
2040   ;;
2041
2042 sco3.2v5*)
2043   lt_cv_deplibs_check_method=pass_all
2044   ;;
2045
2046 solaris*)
2047   lt_cv_deplibs_check_method=pass_all
2048   lt_cv_file_magic_test_file=/lib/libc.so
2049   ;;
2050
2051 sysv5uw[78]* | sysv4*uw2*)
2052   lt_cv_deplibs_check_method=pass_all
2053   ;;
2054
2055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2056   case $host_vendor in
2057   ncr)
2058     lt_cv_deplibs_check_method=pass_all
2059     ;;
2060   motorola)
2061     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]'
2062     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2063     ;;
2064   esac
2065   ;;
2066 esac
2067
2068 fi
2069
2070 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2071 file_magic_cmd=$lt_cv_file_magic_cmd
2072 deplibs_check_method=$lt_cv_deplibs_check_method
2073
2074 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2075 echo "configure:2076: checking for object suffix" >&5
2076 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2077   echo $ac_n "(cached) $ac_c" 1>&6
2078 else
2079   rm -f conftest*
2080 echo 'int i = 1;' > conftest.$ac_ext
2081 if { (eval echo configure:2082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2082   for ac_file in conftest.*; do
2083     case $ac_file in
2084     *.c) ;;
2085     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2086     esac
2087   done
2088 else
2089   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2090 fi
2091 rm -f conftest*
2092 fi
2093
2094 echo "$ac_t""$ac_cv_objext" 1>&6
2095 OBJEXT=$ac_cv_objext
2096 ac_objext=$ac_cv_objext
2097
2098 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2099
2100 # Only perform the check for file, if the check method requires it
2101 case $deplibs_check_method in
2102 file_magic*)
2103   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2104     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2105 echo "configure:2106: checking for ${ac_tool_prefix}file" >&5
2106 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2107   echo $ac_n "(cached) $ac_c" 1>&6
2108 else
2109   case $MAGIC_CMD in
2110   /*)
2111   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2112   ;;
2113   ?:/*)
2114   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2115   ;;
2116   *)
2117   ac_save_MAGIC_CMD="$MAGIC_CMD"
2118   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2119   ac_dummy="/usr/bin:$PATH"
2120   for ac_dir in $ac_dummy; do
2121     test -z "$ac_dir" && ac_dir=.
2122     if test -f $ac_dir/${ac_tool_prefix}file; then
2123       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2124       if test -n "$file_magic_test_file"; then
2125         case $deplibs_check_method in
2126         "file_magic "*)
2127           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2128           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2129           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2130             egrep "$file_magic_regex" > /dev/null; then
2131             :
2132           else
2133             cat <<EOF 1>&2
2134
2135 *** Warning: the command libtool uses to detect shared libraries,
2136 *** $file_magic_cmd, produces output that libtool cannot recognize.
2137 *** The result is that libtool may fail to recognize shared libraries
2138 *** as such.  This will affect the creation of libtool libraries that
2139 *** depend on shared libraries, but programs linked with such libtool
2140 *** libraries will work regardless of this problem.  Nevertheless, you
2141 *** may want to report the problem to your system manager and/or to
2142 *** bug-libtool@gnu.org
2143
2144 EOF
2145           fi ;;
2146         esac
2147       fi
2148       break
2149     fi
2150   done
2151   IFS="$ac_save_ifs"
2152   MAGIC_CMD="$ac_save_MAGIC_CMD"
2153   ;;
2154 esac
2155 fi
2156
2157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2158 if test -n "$MAGIC_CMD"; then
2159   echo "$ac_t""$MAGIC_CMD" 1>&6
2160 else
2161   echo "$ac_t""no" 1>&6
2162 fi
2163
2164 if test -z "$lt_cv_path_MAGIC_CMD"; then
2165   if test -n "$ac_tool_prefix"; then
2166     echo $ac_n "checking for file""... $ac_c" 1>&6
2167 echo "configure:2168: checking for file" >&5
2168 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2169   echo $ac_n "(cached) $ac_c" 1>&6
2170 else
2171   case $MAGIC_CMD in
2172   /*)
2173   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2174   ;;
2175   ?:/*)
2176   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2177   ;;
2178   *)
2179   ac_save_MAGIC_CMD="$MAGIC_CMD"
2180   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2181   ac_dummy="/usr/bin:$PATH"
2182   for ac_dir in $ac_dummy; do
2183     test -z "$ac_dir" && ac_dir=.
2184     if test -f $ac_dir/file; then
2185       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2186       if test -n "$file_magic_test_file"; then
2187         case $deplibs_check_method in
2188         "file_magic "*)
2189           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2190           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2191           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2192             egrep "$file_magic_regex" > /dev/null; then
2193             :
2194           else
2195             cat <<EOF 1>&2
2196
2197 *** Warning: the command libtool uses to detect shared libraries,
2198 *** $file_magic_cmd, produces output that libtool cannot recognize.
2199 *** The result is that libtool may fail to recognize shared libraries
2200 *** as such.  This will affect the creation of libtool libraries that
2201 *** depend on shared libraries, but programs linked with such libtool
2202 *** libraries will work regardless of this problem.  Nevertheless, you
2203 *** may want to report the problem to your system manager and/or to
2204 *** bug-libtool@gnu.org
2205
2206 EOF
2207           fi ;;
2208         esac
2209       fi
2210       break
2211     fi
2212   done
2213   IFS="$ac_save_ifs"
2214   MAGIC_CMD="$ac_save_MAGIC_CMD"
2215   ;;
2216 esac
2217 fi
2218
2219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2220 if test -n "$MAGIC_CMD"; then
2221   echo "$ac_t""$MAGIC_CMD" 1>&6
2222 else
2223   echo "$ac_t""no" 1>&6
2224 fi
2225
2226   else
2227     MAGIC_CMD=:
2228   fi
2229 fi
2230
2231   fi
2232   ;;
2233 esac
2234
2235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_word" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2240   echo $ac_n "(cached) $ac_c" 1>&6
2241 else
2242   if test -n "$RANLIB"; then
2243   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2244 else
2245   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2246   ac_dummy="$PATH"
2247   for ac_dir in $ac_dummy; do
2248     test -z "$ac_dir" && ac_dir=.
2249     if test -f $ac_dir/$ac_word; then
2250       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2251       break
2252     fi
2253   done
2254   IFS="$ac_save_ifs"
2255 fi
2256 fi
2257 RANLIB="$ac_cv_prog_RANLIB"
2258 if test -n "$RANLIB"; then
2259   echo "$ac_t""$RANLIB" 1>&6
2260 else
2261   echo "$ac_t""no" 1>&6
2262 fi
2263
2264
2265 if test -z "$ac_cv_prog_RANLIB"; then
2266 if test -n "$ac_tool_prefix"; then
2267   # Extract the first word of "ranlib", so it can be a program name with args.
2268 set dummy ranlib; ac_word=$2
2269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_word" >&5
2271 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2272   echo $ac_n "(cached) $ac_c" 1>&6
2273 else
2274   if test -n "$RANLIB"; then
2275   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2276 else
2277   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2278   ac_dummy="$PATH"
2279   for ac_dir in $ac_dummy; do
2280     test -z "$ac_dir" && ac_dir=.
2281     if test -f $ac_dir/$ac_word; then
2282       ac_cv_prog_RANLIB="ranlib"
2283       break
2284     fi
2285   done
2286   IFS="$ac_save_ifs"
2287   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2288 fi
2289 fi
2290 RANLIB="$ac_cv_prog_RANLIB"
2291 if test -n "$RANLIB"; then
2292   echo "$ac_t""$RANLIB" 1>&6
2293 else
2294   echo "$ac_t""no" 1>&6
2295 fi
2296
2297 else
2298   RANLIB=":"
2299 fi
2300 fi
2301
2302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303 set dummy ${ac_tool_prefix}strip; ac_word=$2
2304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_word" >&5
2306 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2307   echo $ac_n "(cached) $ac_c" 1>&6
2308 else
2309   if test -n "$STRIP"; then
2310   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311 else
2312   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2313   ac_dummy="$PATH"
2314   for ac_dir in $ac_dummy; do
2315     test -z "$ac_dir" && ac_dir=.
2316     if test -f $ac_dir/$ac_word; then
2317       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2318       break
2319     fi
2320   done
2321   IFS="$ac_save_ifs"
2322 fi
2323 fi
2324 STRIP="$ac_cv_prog_STRIP"
2325 if test -n "$STRIP"; then
2326   echo "$ac_t""$STRIP" 1>&6
2327 else
2328   echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332 if test -z "$ac_cv_prog_STRIP"; then
2333 if test -n "$ac_tool_prefix"; then
2334   # Extract the first word of "strip", so it can be a program name with args.
2335 set dummy strip; ac_word=$2
2336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2337 echo "configure:2338: checking for $ac_word" >&5
2338 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2339   echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341   if test -n "$STRIP"; then
2342   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2343 else
2344   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2345   ac_dummy="$PATH"
2346   for ac_dir in $ac_dummy; do
2347     test -z "$ac_dir" && ac_dir=.
2348     if test -f $ac_dir/$ac_word; then
2349       ac_cv_prog_STRIP="strip"
2350       break
2351     fi
2352   done
2353   IFS="$ac_save_ifs"
2354   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2355 fi
2356 fi
2357 STRIP="$ac_cv_prog_STRIP"
2358 if test -n "$STRIP"; then
2359   echo "$ac_t""$STRIP" 1>&6
2360 else
2361   echo "$ac_t""no" 1>&6
2362 fi
2363
2364 else
2365   STRIP=":"
2366 fi
2367 fi
2368
2369
2370 # Check for any special flags to pass to ltconfig.
2371 libtool_flags="--cache-file=$cache_file"
2372 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2373 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2374 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2375 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2376 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2377 libtool_flags="$libtool_flags --enable-dlopen"
2378
2379 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2380 if test "${enable_libtool_lock+set}" = set; then
2381   enableval="$enable_libtool_lock"
2382   :
2383 fi
2384
2385 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2386 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2387
2388 # Check whether --with-pic or --without-pic was given.
2389 if test "${with_pic+set}" = set; then
2390   withval="$with_pic"
2391   pic_mode="$withval"
2392 else
2393   pic_mode=default
2394 fi
2395
2396 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2397 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2398
2399 # Some flags need to be propagated to the compiler or linker for good
2400 # libtool support.
2401 case $host in
2402 *-*-irix6*)
2403   # Find out which ABI we are using.
2404   echo '#line 2405 "configure"' > conftest.$ac_ext
2405   if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2406     case `/usr/bin/file conftest.$ac_objext` in
2407     *32-bit*)
2408       LD="${LD-ld} -32"
2409       ;;
2410     *N32*)
2411       LD="${LD-ld} -n32"
2412       ;;
2413     *64-bit*)
2414       LD="${LD-ld} -64"
2415       ;;
2416     esac
2417   fi
2418   rm -rf conftest*
2419   ;;
2420
2421 ia64-*-hpux*)
2422   # Find out which ABI we are using.
2423   echo 'int i;' > conftest.$ac_ext
2424   if { (eval echo configure:2425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425     case "`/usr/bin/file conftest.o`" in
2426     *ELF-32*)
2427       HPUX_IA64_MODE="32"
2428       ;;
2429     *ELF-64*)
2430       HPUX_IA64_MODE="64"
2431       ;;
2432     esac
2433   fi
2434   rm -rf conftest*
2435   ;;
2436
2437 *-*-sco3.2v5*)
2438   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2439   SAVE_CFLAGS="$CFLAGS"
2440   CFLAGS="$CFLAGS -belf"
2441   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2442 echo "configure:2443: checking whether the C compiler needs -belf" >&5
2443 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2444   echo $ac_n "(cached) $ac_c" 1>&6
2445 else
2446   
2447      ac_ext=c
2448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2452 cross_compiling=$ac_cv_prog_cc_cross
2453
2454      cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457
2458 int main() {
2459
2460 ; return 0; }
2461 EOF
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2463   rm -rf conftest*
2464   lt_cv_cc_needs_belf=yes
2465 else
2466   echo "configure: failed program was:" >&5
2467   cat conftest.$ac_ext >&5
2468   rm -rf conftest*
2469   lt_cv_cc_needs_belf=no
2470 fi
2471 rm -f conftest*
2472      ac_ext=c
2473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2477 cross_compiling=$ac_cv_prog_cc_cross
2478
2479 fi
2480
2481 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2482   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2483     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2484     CFLAGS="$SAVE_CFLAGS"
2485   fi
2486   ;;
2487
2488
2489 esac
2490
2491 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2492 echo "configure:2493: checking how to run the C++ preprocessor" >&5
2493 if test -z "$CXXCPP"; then
2494 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2495   echo $ac_n "(cached) $ac_c" 1>&6
2496 else
2497   ac_ext=C
2498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2499 ac_cpp='$CXXCPP $CPPFLAGS'
2500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2502 cross_compiling=$ac_cv_prog_cxx_cross
2503   CXXCPP="${CXX-g++} -E"
2504   cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 #include <stdlib.h>
2508 EOF
2509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510 { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512 if test -z "$ac_err"; then
2513   :
2514 else
2515   echo "$ac_err" >&5
2516   echo "configure: failed program was:" >&5
2517   cat conftest.$ac_ext >&5
2518   rm -rf conftest*
2519   CXXCPP=/lib/cpp
2520 fi
2521 rm -f conftest*
2522   ac_cv_prog_CXXCPP="$CXXCPP"
2523 ac_ext=c
2524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2528 cross_compiling=$ac_cv_prog_cc_cross
2529 fi
2530 fi
2531 CXXCPP="$ac_cv_prog_CXXCPP"
2532 echo "$ac_t""$CXXCPP" 1>&6
2533
2534
2535 # Save cache, so that ltconfig can load it
2536 cat > confcache <<\EOF
2537 # This file is a shell script that caches the results of configure
2538 # tests run on this system so they can be shared between configure
2539 # scripts and configure runs.  It is not useful on other systems.
2540 # If it contains results you don't want to keep, you may remove or edit it.
2541 #
2542 # By default, configure uses ./config.cache as the cache file,
2543 # creating it if it does not exist already.  You can give configure
2544 # the --cache-file=FILE option to use a different cache file; that is
2545 # what configure does when it calls configure scripts in
2546 # subdirectories, so they share the cache.
2547 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2548 # config.status only pays attention to the cache file if you give it the
2549 # --recheck option to rerun configure.
2550 #
2551 EOF
2552 # The following way of writing the cache mishandles newlines in values,
2553 # but we know of no workaround that is simple, portable, and efficient.
2554 # So, don't put newlines in cache variables' values.
2555 # Ultrix sh set writes to stderr and can't be redirected directly,
2556 # and sets the high bit in the cache file unless we assign to the vars.
2557 (set) 2>&1 |
2558   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2559   *ac_space=\ *)
2560     # `set' does not quote correctly, so add quotes (double-quote substitution
2561     # turns \\\\ into \\, and sed turns \\ into \).
2562     sed -n \
2563       -e "s/'/'\\\\''/g" \
2564       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2565     ;;
2566   *)
2567     # `set' quotes correctly as required by POSIX, so do not add quotes.
2568     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2569     ;;
2570   esac >> confcache
2571 if cmp -s $cache_file confcache; then
2572   :
2573 else
2574   if test -w $cache_file; then
2575     echo "updating cache $cache_file"
2576     cat confcache > $cache_file
2577   else
2578     echo "not updating unwritable cache $cache_file"
2579   fi
2580 fi
2581 rm -f confcache
2582
2583
2584 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2585 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2586 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2587 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2588 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2589 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2590 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2591 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2592 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2593 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2594
2595 # Reload cache, that may have been modified by ltconfig
2596 if test -r "$cache_file"; then
2597   echo "loading cache $cache_file"
2598   . $cache_file
2599 else
2600   echo "creating cache $cache_file"
2601   > $cache_file
2602 fi
2603
2604
2605 # This can be used to rebuild libtool when needed
2606 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2607
2608 # Always use our own libtool.
2609 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2610
2611 # Redirect the config.log output again, so that the ltconfig log is not
2612 # clobbered by the next message.
2613 exec 5>>./config.log
2614
2615
2616
2617 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2618 lt_save_CC="$CC"
2619 lt_save_CFLAGS="$CFLAGS"
2620 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2621 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2622 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2623 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2624 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2625 deplibs_check_method="$deplibs_check_method" \
2626 file_magic_cmd="$file_magic_cmd" \
2627 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2628 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2629 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2630 CC="$lt_save_CC"
2631 CFLAGS="$lt_save_CFLAGS"
2632
2633 # Redirect the config.log output again, so that the ltconfig log is not
2634 # clobbered by the next message.
2635 exec 5>>./config.log
2636
2637   
2638
2639   
2640          
2641          
2642
2643
2644
2645 # Check for c++ or library specific bits that don't require linking.
2646 #GLIBCPP_CHECK_COMPILER_VERSION
2647 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2648 echo "configure:2649: checking for GNU make" >&5
2649 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2650   echo $ac_n "(cached) $ac_c" 1>&6
2651 else
2652   _cv_gnu_make_command='' ;
2653           for a in "${MAKE-make}" make gmake gnumake ; do
2654                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2655                   then
2656                           _cv_gnu_make_command=$a ;
2657                           break;
2658                   fi
2659           done ;
2660   
2661 fi
2662
2663 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2664   if test  "x$_cv_gnu_make_command" != "x"  ; then
2665           ifGNUmake='' ;
2666   else
2667           ifGNUmake='#' ;
2668   fi
2669   
2670
2671
2672 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2673 # Check whether --enable-debug or --disable-debug was given.
2674 if test "${enable_debug+set}" = set; then
2675   enableval="$enable_debug"
2676   case "${enableval}" in
2677  yes) enable_debug=yes ;;
2678  no)  enable_debug=no ;;
2679  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2680  esac
2681 else
2682   enable_debug=no
2683 fi
2684
2685 case "${enable_debug}" in
2686     yes) 
2687         DEBUG_FLAGS='-O0 -ggdb3'                        
2688         ;; 
2689     no)   
2690         DEBUG_FLAGS='-g'
2691         ;;
2692 esac
2693
2694
2695 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2696 echo "configure:2697: checking how to run the C preprocessor" >&5
2697 # On Suns, sometimes $CPP names a directory.
2698 if test -n "$CPP" && test -d "$CPP"; then
2699   CPP=
2700 fi
2701 if test -z "$CPP"; then
2702 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2703   echo $ac_n "(cached) $ac_c" 1>&6
2704 else
2705     # This must be in double quotes, not single quotes, because CPP may get
2706   # substituted into the Makefile and "${CC-cc}" will confuse make.
2707   CPP="${CC-cc} -E"
2708   # On the NeXT, cc -E runs the code through the compiler's parser,
2709   # not just through cpp.
2710   cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <assert.h>
2714 Syntax Error
2715 EOF
2716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2717 { (eval echo configure:2718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2719 if test -z "$ac_err"; then
2720   :
2721 else
2722   echo "$ac_err" >&5
2723   echo "configure: failed program was:" >&5
2724   cat conftest.$ac_ext >&5
2725   rm -rf conftest*
2726   CPP="${CC-cc} -E -traditional-cpp"
2727   cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 #include <assert.h>
2731 Syntax Error
2732 EOF
2733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2737   :
2738 else
2739   echo "$ac_err" >&5
2740   echo "configure: failed program was:" >&5
2741   cat conftest.$ac_ext >&5
2742   rm -rf conftest*
2743   CPP="${CC-cc} -nologo -E"
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=/lib/cpp
2761 fi
2762 rm -f conftest*
2763 fi
2764 rm -f conftest*
2765 fi
2766 rm -f conftest*
2767   ac_cv_prog_CPP="$CPP"
2768 fi
2769   CPP="$ac_cv_prog_CPP"
2770 else
2771   ac_cv_prog_CPP="$CPP"
2772 fi
2773 echo "$ac_t""$CPP" 1>&6
2774
2775
2776   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2777 echo "configure:2778: checking for cstdio to use" >&5
2778   # Check whether --enable-cstdio or --disable-cstdio was given.
2779 if test "${enable_cstdio+set}" = set; then
2780   enableval="$enable_cstdio"
2781   if test x$enable_cstdio = xno; then
2782      enable_cstdio=stdio
2783   fi
2784 else
2785   enable_cstdio=stdio
2786 fi
2787
2788
2789   enable_cstdio_flag=$enable_cstdio
2790
2791     case x${enable_cstdio_flag} in
2792     xlibio)
2793       CSTDIO_H=config/io/c_io_libio.h
2794       BASIC_FILE_H=config/io/basic_file_libio.h
2795       BASIC_FILE_CC=config/io/basic_file_libio.cc
2796       echo "$ac_t""libio" 1>&6
2797
2798       # see if we are on a system with libio native (ie, linux)
2799       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2800 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2801 echo "configure:2802: checking for libio.h" >&5
2802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2803   echo $ac_n "(cached) $ac_c" 1>&6
2804 else
2805   cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <libio.h>
2809 EOF
2810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2811 { (eval echo configure:2812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2813 if test -z "$ac_err"; then
2814   rm -rf conftest*
2815   eval "ac_cv_header_$ac_safe=yes"
2816 else
2817   echo "$ac_err" >&5
2818   echo "configure: failed program was:" >&5
2819   cat conftest.$ac_ext >&5
2820   rm -rf conftest*
2821   eval "ac_cv_header_$ac_safe=no"
2822 fi
2823 rm -f conftest*
2824 fi
2825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2826   echo "$ac_t""yes" 1>&6
2827   has_libio=yes
2828 else
2829   echo "$ac_t""no" 1>&6
2830 has_libio=no
2831 fi
2832
2833
2834       # Need to check and see what version of glibc is being used. If
2835       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2836       # compile most of libio for linux systems.
2837       if test x$has_libio = x"yes"; then
2838         case "$target" in
2839           *-*-linux*)
2840               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2841 echo "configure:2842: checking for glibc version >= 2.2" >&5
2842               cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845
2846             #include <features.h>
2847               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2848                     ok
2849               #endif
2850               
2851 EOF
2852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2853   egrep "ok" >/dev/null 2>&1; then
2854   rm -rf conftest*
2855   glibc_satisfactory=yes
2856 else
2857   rm -rf conftest*
2858   glibc_satisfactory=no
2859 fi
2860 rm -f conftest*
2861
2862               echo "$ac_t""$glibc_satisfactory" 1>&6
2863             ;;
2864         esac
2865
2866         # XXX at the moment, admit defeat and force the recompilation
2867         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2868         glibc_satisfactory=no        
2869
2870         if test x$glibc_satisfactory = x"yes"; then
2871            need_libio=no
2872            need_wlibio=no        
2873         else
2874            need_libio=yes
2875            # bkoz XXX need to add checks to enable this
2876            # pme XXX here's a first pass at such a check
2877            if test x$enable_c_mbchar != xno; then
2878               need_wlibio=yes
2879            else
2880               need_wlibio=no
2881            fi
2882         fi
2883
2884       else
2885          # Using libio, but <libio.h> doesn't exist on the target system. . .
2886          need_libio=yes
2887          # bkoz XXX need to add checks to enable this
2888          # pme XXX here's a first pass at such a check
2889          if test x$enable_c_mbchar != xno; then
2890              need_wlibio=yes
2891          else
2892              need_wlibio=no
2893          fi
2894       fi
2895       ;;
2896     xstdio | x | xno | xnone | xyes)
2897       # default
2898       CSTDIO_H=config/io/c_io_stdio.h
2899       BASIC_FILE_H=config/io/basic_file_stdio.h
2900       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2901       echo "$ac_t""stdio" 1>&6
2902
2903       # We're not using stdio.
2904       need_libio=no
2905       need_wlibio=no
2906       ;;
2907     *)
2908       echo "$enable_cstdio is an unknown io package" 1>&2
2909       exit 1
2910       ;;
2911   esac
2912   
2913   
2914   
2915
2916   # 2000-08-04 bkoz hack
2917   CCODECVT_C=config/io/c_io_libio_codecvt.c
2918   
2919   # 2000-08-04 bkoz hack
2920
2921   
2922
2923 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2924   GLIBCPP_BUILD_LIBIO_TRUE=
2925   GLIBCPP_BUILD_LIBIO_FALSE='#'
2926 else
2927   GLIBCPP_BUILD_LIBIO_TRUE='#'
2928   GLIBCPP_BUILD_LIBIO_FALSE=
2929 fi
2930   
2931
2932 if test "$need_libio" = yes; then
2933   GLIBCPP_NEED_LIBIO_TRUE=
2934   GLIBCPP_NEED_LIBIO_FALSE='#'
2935 else
2936   GLIBCPP_NEED_LIBIO_TRUE='#'
2937   GLIBCPP_NEED_LIBIO_FALSE=
2938 fi
2939   
2940
2941 if test "$need_wlibio" = yes; then
2942   GLIBCPP_NEED_WLIBIO_TRUE=
2943   GLIBCPP_NEED_WLIBIO_FALSE='#'
2944 else
2945   GLIBCPP_NEED_WLIBIO_TRUE='#'
2946   GLIBCPP_NEED_WLIBIO_FALSE=
2947 fi
2948   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2949     libio_la=../libio/libio.la
2950   else
2951     libio_la=
2952   fi
2953   
2954
2955
2956   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2957 echo "configure:2958: checking for clocale to use" >&5
2958   # Check whether --enable-clocale or --disable-clocale was given.
2959 if test "${enable_clocale+set}" = set; then
2960   enableval="$enable_clocale"
2961   if test x$enable_clocale = xno; then
2962      enable_clocale=no
2963   fi
2964 else
2965   enable_clocale=no
2966 fi
2967
2968
2969   enable_clocale_flag=$enable_clocale
2970
2971       if test x$enable_clocale_flag = xno; then
2972     case x${target_os} in
2973       xlinux* | xgnu*)
2974         cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977
2978         #include <features.h>
2979         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2980           _GLIBCPP_ok
2981         #endif
2982         
2983 EOF
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2986   rm -rf conftest*
2987   enable_clocale_flag=gnu
2988 else
2989   rm -rf conftest*
2990   enable_clocale_flag=generic
2991 fi
2992 rm -f conftest*
2993
2994
2995         # Test for bugs early in glibc-2.2.x series
2996         if test x$enable_clocale_flag = xgnu; then
2997           if test "$cross_compiling" = yes; then
2998   enable_clocale_flag=generic
2999 else
3000   cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003
3004           #define _GNU_SOURCE 1
3005           #include <locale.h>
3006           #include <string.h>
3007           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3008           extern __typeof(newlocale) __newlocale;
3009           extern __typeof(duplocale) __duplocale;
3010           extern __typeof(strcoll_l) __strcoll_l;
3011           #endif
3012           int main()
3013           {
3014             const char __one[] = "Äuglein Augmen";
3015             const char __two[] = "Äuglein";
3016             int i;
3017             int j;
3018             __locale_t  loc;
3019             __locale_t  loc_dup;
3020             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3021             loc_dup = __duplocale(loc);
3022             i = __strcoll_l(__one, __two, loc);
3023             j = __strcoll_l(__one, __two, loc_dup);
3024             return 0;
3025           }
3026           
3027 EOF
3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3029 then
3030   enable_clocale_flag=gnu
3031 else
3032   echo "configure: failed program was:" >&5
3033   cat conftest.$ac_ext >&5
3034   rm -fr conftest*
3035   enable_clocale_flag=generic
3036 fi
3037 rm -fr conftest*
3038 fi
3039
3040         fi
3041
3042         # ... at some point put __strxfrm_l tests in as well.
3043         ;;
3044       *)
3045         enable_clocale_flag=generic
3046         ;;
3047     esac
3048   fi
3049
3050     # Check whether --enable-nls or --disable-nls was given.
3051 if test "${enable_nls+set}" = set; then
3052   enableval="$enable_nls"
3053   :
3054 else
3055   enable_nls=yes
3056 fi
3057
3058   USE_NLS=no
3059
3060     case x${enable_clocale_flag} in
3061     xgeneric)
3062       echo "$ac_t""generic" 1>&6
3063
3064       CLOCALE_H=config/locale/generic/c_locale.h
3065       CLOCALE_CC=config/locale/generic/c_locale.cc
3066       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3067       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3068       CCOLLATE_CC=config/locale/generic/collate_members.cc
3069       CCTYPE_CC=config/locale/generic/ctype_members.cc
3070       CMESSAGES_H=config/locale/generic/messages_members.h
3071       CMESSAGES_CC=config/locale/generic/messages_members.cc
3072       CMONEY_CC=config/locale/generic/monetary_members.cc
3073       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3074       CTIME_CC=config/locale/generic/time_members.cc
3075       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3076       ;;
3077     xgnu)
3078       echo "$ac_t""gnu" 1>&6
3079
3080       # Declare intention to use gettext, and add support for specific
3081       # languages.
3082       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3083       ALL_LINGUAS="de fr"
3084
3085       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3086       # Extract the first word of "msgfmt", so it can be a program name with args.
3087 set dummy msgfmt; ac_word=$2
3088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_word" >&5
3090 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3091   echo $ac_n "(cached) $ac_c" 1>&6
3092 else
3093   if test -n "$check_msgfmt"; then
3094   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3095 else
3096   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3097   ac_dummy="$PATH"
3098   for ac_dir in $ac_dummy; do
3099     test -z "$ac_dir" && ac_dir=.
3100     if test -f $ac_dir/$ac_word; then
3101       ac_cv_prog_check_msgfmt="yes"
3102       break
3103     fi
3104   done
3105   IFS="$ac_save_ifs"
3106   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3107 fi
3108 fi
3109 check_msgfmt="$ac_cv_prog_check_msgfmt"
3110 if test -n "$check_msgfmt"; then
3111   echo "$ac_t""$check_msgfmt" 1>&6
3112 else
3113   echo "$ac_t""no" 1>&6
3114 fi
3115
3116       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3117         USE_NLS=yes
3118       fi
3119       # Export the build objects.
3120       for ling in $ALL_LINGUAS; do \
3121         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3122         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3123       done
3124       
3125       
3126
3127       CLOCALE_H=config/locale/gnu/c_locale.h
3128       CLOCALE_CC=config/locale/gnu/c_locale.cc
3129       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3130       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3131       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3132       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3133       CMESSAGES_H=config/locale/gnu/messages_members.h
3134       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3135       CMONEY_CC=config/locale/gnu/monetary_members.cc
3136       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3137       CTIME_CC=config/locale/gnu/time_members.cc
3138       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3139       ;;
3140     xieee_1003.1-2001)
3141       echo "$ac_t""generic" 1>&6
3142
3143       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3144       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3145       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3146       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3147       CCOLLATE_CC=config/locale/generic/collate_members.cc
3148       CCTYPE_CC=config/locale/generic/ctype_members.cc
3149       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3150       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3151       CMONEY_CC=config/locale/generic/monetary_members.cc
3152       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3153       CTIME_CC=config/locale/generic/time_members.cc
3154       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3155       ;;
3156     *)
3157       echo "$enable_clocale is an unknown locale package" 1>&2
3158       exit 1
3159       ;;
3160   esac
3161
3162   # This is where the testsuite looks for locale catalogs, using the
3163   # -DLOCALEDIR define during testsuite compilation.
3164   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3165   
3166
3167   # For the time being, transform ctype_noninline.h to ctype_members_char.cc
3168 #  CCTYPE_CHAR_CC=config/${os_include_dir}/ctype_noninline.h
3169
3170   
3171   
3172   
3173   
3174   
3175   
3176   
3177 #  AC_LINK_FILES($CCTYPE_CHAR_CC, src/ctype_members_char.cc)
3178   
3179   
3180   
3181   
3182   
3183   
3184
3185 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3186 if test "${enable_c_mbchar+set}" = set; then
3187   enableval="$enable_c_mbchar"
3188   case "$enableval" in
3189  yes) enable_c_mbchar=yes ;;
3190  no)  enable_c_mbchar=no ;;
3191  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3192  esac
3193 else
3194   enable_c_mbchar=yes
3195 fi
3196
3197   
3198   # Check whether --enable-c99 or --disable-c99 was given.
3199 if test "${enable_c99+set}" = set; then
3200   enableval="$enable_c99"
3201     case "$enableval" in
3202    yes) enable_c99=yes ;;
3203    no)  enable_c99=no ;;
3204    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3205    esac
3206 else
3207   enable_c99=yes
3208 fi
3209  
3210   
3211   ac_ext=C
3212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3213 ac_cpp='$CXXCPP $CPPFLAGS'
3214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3216 cross_compiling=$ac_cv_prog_cxx_cross
3217
3218
3219   # Check for the existence of <math.h> functions used if C99 is enabled.
3220   ac_c99_math=yes;
3221   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3222 echo "configure:3223: checking for ISO C99 support in <math.h>" >&5
3223   cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <math.h>
3227 int main() {
3228 fpclassify(0.0);
3229 ; return 0; }
3230 EOF
3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3232   :
3233 else
3234   echo "configure: failed program was:" >&5
3235   cat conftest.$ac_ext >&5
3236   rm -rf conftest*
3237   ac_c99_math=no
3238 fi
3239 rm -f conftest*
3240   cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <math.h>
3244 int main() {
3245 isfinite(0.0);
3246 ; return 0; }
3247 EOF
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3249   :
3250 else
3251   echo "configure: failed program was:" >&5
3252   cat conftest.$ac_ext >&5
3253   rm -rf conftest*
3254   ac_c99_math=no
3255 fi
3256 rm -f conftest*
3257   cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <math.h>
3261 int main() {
3262 isinf(0.0);
3263 ; return 0; }
3264 EOF
3265 if { (eval echo configure:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3266   :
3267 else
3268   echo "configure: failed program was:" >&5
3269   cat conftest.$ac_ext >&5
3270   rm -rf conftest*
3271   ac_c99_math=no
3272 fi
3273 rm -f conftest*
3274   cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 #include <math.h>
3278 int main() {
3279 isnan(0.0);
3280 ; return 0; }
3281 EOF
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3283   :
3284 else
3285   echo "configure: failed program was:" >&5
3286   cat conftest.$ac_ext >&5
3287   rm -rf conftest*
3288   ac_c99_math=no
3289 fi
3290 rm -f conftest*
3291   cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <math.h>
3295 int main() {
3296 isnormal(0.0);
3297 ; return 0; }
3298 EOF
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300   :
3301 else
3302   echo "configure: failed program was:" >&5
3303   cat conftest.$ac_ext >&5
3304   rm -rf conftest*
3305   ac_c99_math=no
3306 fi
3307 rm -f conftest*
3308   cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 #include <math.h>
3312 int main() {
3313 signbit(0.0);
3314 ; return 0; }
3315 EOF
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317   :
3318 else
3319   echo "configure: failed program was:" >&5
3320   cat conftest.$ac_ext >&5
3321   rm -rf conftest*
3322   ac_c99_math=no
3323 fi
3324 rm -f conftest*
3325   cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <math.h>
3329 int main() {
3330 isgreater(0.0,0.0);
3331 ; return 0; }
3332 EOF
3333 if { (eval echo configure:3334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3334   :
3335 else
3336   echo "configure: failed program was:" >&5
3337   cat conftest.$ac_ext >&5
3338   rm -rf conftest*
3339   ac_c99_math=no
3340 fi
3341 rm -f conftest*
3342   cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 #include <math.h>
3346 int main() {
3347 isgreaterequal(0.0,0.0);
3348 ; return 0; }
3349 EOF
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3351   :
3352 else
3353   echo "configure: failed program was:" >&5
3354   cat conftest.$ac_ext >&5
3355   rm -rf conftest*
3356   ac_c99_math=no
3357 fi
3358 rm -f conftest*
3359   cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 #include <math.h>
3363 int main() {
3364 isless(0.0,0.0);
3365 ; return 0; }
3366 EOF
3367 if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368   :
3369 else
3370   echo "configure: failed program was:" >&5
3371   cat conftest.$ac_ext >&5
3372   rm -rf conftest*
3373   ac_c99_math=no
3374 fi
3375 rm -f conftest*
3376   cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 #include <math.h>
3380 int main() {
3381 islessequal(0.0,0.0);
3382 ; return 0; }
3383 EOF
3384 if { (eval echo configure:3385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3385   :
3386 else
3387   echo "configure: failed program was:" >&5
3388   cat conftest.$ac_ext >&5
3389   rm -rf conftest*
3390   ac_c99_math=no
3391 fi
3392 rm -f conftest*
3393   cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <math.h>
3397 int main() {
3398 islessgreater(0.0,0.0);
3399 ; return 0; }
3400 EOF
3401 if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402   :
3403 else
3404   echo "configure: failed program was:" >&5
3405   cat conftest.$ac_ext >&5
3406   rm -rf conftest*
3407   ac_c99_math=no
3408 fi
3409 rm -f conftest*
3410   cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <math.h>
3414 int main() {
3415 isunordered(0.0,0.0);
3416 ; return 0; }
3417 EOF
3418 if { (eval echo configure:3419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419   :
3420 else
3421   echo "configure: failed program was:" >&5
3422   cat conftest.$ac_ext >&5
3423   rm -rf conftest*
3424   ac_c99_math=no
3425 fi
3426 rm -f conftest*
3427   echo "$ac_t""$ac_c99_math" 1>&6
3428
3429   # Check for the existence in <stdio.h> of vscanf, et. al.
3430   ac_c99_stdio=yes;
3431   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3432 echo "configure:3433: checking for ISO C99 support in <stdio.h>" >&5
3433   cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <stdio.h>
3437 int main() {
3438 snprintf("12", 0, "%i");
3439 ; return 0; }
3440 EOF
3441 if { (eval echo configure:3442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3442   :
3443 else
3444   echo "configure: failed program was:" >&5
3445   cat conftest.$ac_ext >&5
3446   rm -rf conftest*
3447   ac_c99_stdio=no
3448 fi
3449 rm -f conftest*
3450   cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 #include <stdio.h>
3454                   #include <stdarg.h>
3455                   void foo(char* fmt, ...)
3456                   {va_list args; va_start(args, fmt);
3457                   vfscanf(stderr, "%i", args);}
3458 int main() {
3459
3460 ; return 0; }
3461 EOF
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3463   :
3464 else
3465   echo "configure: failed program was:" >&5
3466   cat conftest.$ac_ext >&5
3467   rm -rf conftest*
3468   ac_c99_stdio=no
3469 fi
3470 rm -f conftest*
3471   cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <stdio.h>
3475                   #include <stdarg.h>
3476                   void foo(char* fmt, ...)
3477                   {va_list args; va_start(args, fmt);
3478                   vscanf("%i", args);}
3479 int main() {
3480
3481 ; return 0; }
3482 EOF
3483 if { (eval echo configure:3484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3484   :
3485 else
3486   echo "configure: failed program was:" >&5
3487   cat conftest.$ac_ext >&5
3488   rm -rf conftest*
3489   ac_c99_stdio=no
3490 fi
3491 rm -f conftest*
3492   cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 #include <stdio.h>
3496                   #include <stdarg.h>
3497                   void foo(char* fmt, ...)
3498                   {va_list args; va_start(args, fmt);
3499                   vsnprintf(fmt, 0, "%i", args);}
3500 int main() {
3501
3502 ; return 0; }
3503 EOF
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505   :
3506 else
3507   echo "configure: failed program was:" >&5
3508   cat conftest.$ac_ext >&5
3509   rm -rf conftest*
3510   ac_c99_stdio=no
3511 fi
3512 rm -f conftest*
3513   cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <stdio.h>
3517                   #include <stdarg.h>
3518                   void foo(char* fmt, ...)
3519                   {va_list args; va_start(args, fmt);
3520                   vsscanf(fmt, "%i", args);}
3521 int main() {
3522
3523 ; return 0; }
3524 EOF
3525 if { (eval echo configure:3526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3526   :
3527 else
3528   echo "configure: failed program was:" >&5
3529   cat conftest.$ac_ext >&5
3530   rm -rf conftest*
3531   ac_c99_stdio=no
3532 fi
3533 rm -f conftest*
3534   echo "$ac_t""$ac_c99_stdio" 1>&6
3535
3536   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3537   ac_c99_stdlib=yes;
3538   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3539 echo "configure:3540: checking for lldiv_t declaration" >&5
3540   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3541   echo $ac_n "(cached) $ac_c" 1>&6
3542 else
3543   
3544   cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <stdlib.h>
3548 int main() {
3549  lldiv_t mydivt;
3550 ; return 0; }
3551 EOF
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553   rm -rf conftest*
3554   ac_c99_lldiv_t=yes
3555 else
3556   echo "configure: failed program was:" >&5
3557   cat conftest.$ac_ext >&5
3558   rm -rf conftest*
3559   ac_c99_lldiv_t=no
3560 fi
3561 rm -f conftest*
3562   
3563 fi
3564
3565   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3566
3567   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3568 echo "configure:3569: checking for ISO C99 support in <stdlib.h>" >&5
3569   cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 #include <stdlib.h>
3573 int main() {
3574 char* tmp; strtof("gnu", &tmp);
3575 ; return 0; }
3576 EOF
3577 if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578   :
3579 else
3580   echo "configure: failed program was:" >&5
3581   cat conftest.$ac_ext >&5
3582   rm -rf conftest*
3583   ac_c99_stdlib=no
3584 fi
3585 rm -f conftest*
3586   cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <stdlib.h>
3590 int main() {
3591 char* tmp; strtold("gnu", &tmp);
3592 ; return 0; }
3593 EOF
3594 if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3595   :
3596 else
3597   echo "configure: failed program was:" >&5
3598   cat conftest.$ac_ext >&5
3599   rm -rf conftest*
3600   ac_c99_stdlib=no
3601 fi
3602 rm -f conftest*
3603   cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606 #include <stdlib.h>
3607 int main() {
3608 llabs(10);
3609 ; return 0; }
3610 EOF
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3612   :
3613 else
3614   echo "configure: failed program was:" >&5
3615   cat conftest.$ac_ext >&5
3616   rm -rf conftest*
3617   ac_c99_stdlib=no
3618 fi
3619 rm -f conftest*
3620   cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <stdlib.h>
3624 int main() {
3625 lldiv(10,1);
3626 ; return 0; }
3627 EOF
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629   :
3630 else
3631   echo "configure: failed program was:" >&5
3632   cat conftest.$ac_ext >&5
3633   rm -rf conftest*
3634   ac_c99_stdlib=no
3635 fi
3636 rm -f conftest*
3637   cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <stdlib.h>
3641 int main() {
3642 atoll("10");
3643 ; return 0; }
3644 EOF
3645 if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646   :
3647 else
3648   echo "configure: failed program was:" >&5
3649   cat conftest.$ac_ext >&5
3650   rm -rf conftest*
3651   ac_c99_stdlib=no
3652 fi
3653 rm -f conftest*
3654   cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <stdlib.h>
3658 int main() {
3659 _Exit(0);
3660 ; return 0; }
3661 EOF
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663   :
3664 else
3665   echo "configure: failed program was:" >&5
3666   cat conftest.$ac_ext >&5
3667   rm -rf conftest*
3668   ac_c99_stdlib=no
3669 fi
3670 rm -f conftest*
3671   if test x"$ac_c99_lldiv_t" = x"no"; then
3672     ac_c99_stdlib=no; 
3673   fi; 
3674   echo "$ac_t""$ac_c99_stdlib" 1>&6
3675
3676   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3677   # XXX the wchar.h checks should be rolled into the general C99 bits.
3678   ac_c99_wchar=yes;
3679   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3680 echo "configure:3681: checking for additional ISO C99 support in <wchar.h>" >&5
3681   cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <wchar.h>
3685 int main() {
3686 wcstold(L"10.0", NULL);
3687 ; return 0; }
3688 EOF
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690   :
3691 else
3692   echo "configure: failed program was:" >&5
3693   cat conftest.$ac_ext >&5
3694   rm -rf conftest*
3695   ac_c99_wchar=no
3696 fi
3697 rm -f conftest*
3698   cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 #include <wchar.h>
3702 int main() {
3703 wcstoll(L"10", NULL, 10);
3704 ; return 0; }
3705 EOF
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707   :
3708 else
3709   echo "configure: failed program was:" >&5
3710   cat conftest.$ac_ext >&5
3711   rm -rf conftest*
3712   ac_c99_wchar=no
3713 fi
3714 rm -f conftest*
3715   cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <wchar.h>
3719 int main() {
3720 wcstoull(L"10", NULL, 10);
3721 ; return 0; }
3722 EOF
3723 if { (eval echo configure:3724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3724   :
3725 else
3726   echo "configure: failed program was:" >&5
3727   cat conftest.$ac_ext >&5
3728   rm -rf conftest*
3729   ac_c99_wchar=no
3730 fi
3731 rm -f conftest*
3732   echo "$ac_t""$ac_c99_wchar" 1>&6
3733
3734   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3735 echo "configure:3736: checking for enabled ISO C99 support" >&5
3736   if test x"$ac_c99_math" = x"no" ||
3737      test x"$ac_c99_stdio" = x"no" ||
3738      test x"$ac_c99_stdlib" = x"no" ||
3739      test x"$ac_c99_wchar" = x"no"; then
3740     enable_c99=no; 
3741   fi; 
3742   echo "$ac_t""$enable_c99" 1>&6
3743
3744   # Option parsed, now set things appropriately
3745   if test x"$enable_c99" = x"yes"; then
3746     cat >> confdefs.h <<\EOF
3747 #define _GLIBCPP_USE_C99 1
3748 EOF
3749
3750   fi
3751
3752   ac_ext=c
3753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3757 cross_compiling=$ac_cv_prog_cc_cross
3758
3759
3760   
3761   # Check whether --enable-long-long or --disable-long-long was given.
3762 if test "${enable_long_long+set}" = set; then
3763   enableval="$enable_long_long"
3764     case "$enableval" in
3765    yes) enable_long_long=yes ;;
3766    no)  enable_long_long=no ;;
3767    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3768    esac
3769 else
3770   enable_long_long=yes
3771 fi
3772
3773   
3774   ac_ext=C
3775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3776 ac_cpp='$CXXCPP $CPPFLAGS'
3777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3779 cross_compiling=$ac_cv_prog_cxx_cross
3780
3781
3782   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3783 echo "configure:3784: checking for enabled long long I/O support" >&5
3784   # iostreams require strtoll, strtoull to compile
3785   cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include <stdlib.h>
3789 int main() {
3790 char* tmp; strtoll("gnu", &tmp, 10);
3791 ; return 0; }
3792 EOF
3793 if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794   :
3795 else
3796   echo "configure: failed program was:" >&5
3797   cat conftest.$ac_ext >&5
3798   rm -rf conftest*
3799   enable_long_long=no
3800 fi
3801 rm -f conftest*
3802   cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <stdlib.h>
3806 int main() {
3807 char* tmp; strtoull("gnu", &tmp, 10);
3808 ; return 0; }
3809 EOF
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811   :
3812 else
3813   echo "configure: failed program was:" >&5
3814   cat conftest.$ac_ext >&5
3815   rm -rf conftest*
3816   enable_long_long=no
3817 fi
3818 rm -f conftest*
3819
3820   # Option parsed, now set things appropriately
3821   if test x"$enable_long_long" = xyes; then
3822     cat >> confdefs.h <<\EOF
3823 #define _GLIBCPP_USE_LONG_LONG 1
3824 EOF
3825
3826   fi
3827   echo "$ac_t""$enable_long_long" 1>&6
3828
3829   ac_ext=c
3830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3834 cross_compiling=$ac_cv_prog_cc_cross
3835
3836
3837 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3838 echo "configure:3839: checking for c header strategy to use" >&5
3839 # Check whether --enable-cheaders or --disable-cheaders was given.
3840 if test "${enable_cheaders+set}" = set; then
3841   enableval="$enable_cheaders"
3842   
3843   case "$enableval" in
3844    c) 
3845         enable_cheaders=c 
3846         ;;
3847    c_std)  
3848         enable_cheaders=c_std 
3849         ;;
3850    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3851         ;;
3852   esac
3853 else
3854   enable_cheaders=c_std
3855 fi
3856
3857   echo "$ac_t""$enable_cheaders" 1>&6
3858
3859     case "$enable_cheaders" in
3860     c_std)   
3861         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3862         ;;
3863     c)   
3864         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3865         ;;
3866   esac
3867
3868   
3869   
3870
3871 if test "$enable_cheaders" = c; then
3872   GLIBCPP_C_HEADERS_C_TRUE=
3873   GLIBCPP_C_HEADERS_C_FALSE='#'
3874 else
3875   GLIBCPP_C_HEADERS_C_TRUE='#'
3876   GLIBCPP_C_HEADERS_C_FALSE=
3877 fi
3878   
3879
3880 if test "$enable_cheaders" = c_std; then
3881   GLIBCPP_C_HEADERS_C_STD_TRUE=
3882   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3883 else
3884   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3885   GLIBCPP_C_HEADERS_C_STD_FALSE=
3886 fi
3887   
3888
3889 if test "$c_compatibility" = yes; then
3890   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3891   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3892 else
3893   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3894   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3895 fi
3896
3897
3898   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3899 echo "configure:3900: checking for thread model used by GCC" >&5
3900   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3901   echo "$ac_t""$target_thread_file" 1>&6
3902
3903   if test $target_thread_file != single; then
3904     cat >> confdefs.h <<\EOF
3905 #define HAVE_GTHR_DEFAULT 1
3906 EOF
3907
3908     cat >> confdefs.h <<\EOF
3909 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3910 EOF
3911
3912   fi
3913
3914   glibcpp_thread_h=gthr-$target_thread_file.h
3915   
3916
3917 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3918 if test "${enable_cxx_flags+set}" = set; then
3919   enableval="$enable_cxx_flags"
3920   case "x$enableval" in
3921  xyes)   
3922         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3923  xno|x)  
3924         enable_cxx_flags='' ;;
3925  *)      
3926         enable_cxx_flags="$enableval" ;;
3927  esac
3928 else
3929   enable_cxx_flags='none'
3930 fi
3931
3932
3933 if test "$enable_cxx_flags" = "none"; then 
3934   enable_cxx_flags=''; 
3935 fi
3936
3937 if test -n "$enable_cxx_flags"; then
3938     for f in $enable_cxx_flags; do
3939         case "$f" in
3940             -fhonor-std)  ;;
3941             -*)  ;;
3942             *)   # and we're trying to pass /what/ exactly?
3943                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3944         esac
3945     done
3946 fi
3947 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3948
3949
3950
3951   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3952 echo "configure:3953: checking for exception model to use" >&5
3953   
3954   ac_ext=C
3955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3956 ac_cpp='$CXXCPP $CPPFLAGS'
3957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3959 cross_compiling=$ac_cv_prog_cxx_cross
3960
3961   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3962 if test "${enable_sjlj_exceptions+set}" = set; then
3963   enableval="$enable_sjlj_exceptions"
3964   :
3965 else
3966                        cat > conftest.$ac_ext << EOF
3967 #line 3968 "configure"
3968 struct S { ~S(); };
3969 void bar();
3970 void foo()
3971 {
3972   S s;
3973   bar();
3974 }
3975 EOF
3976    old_CXXFLAGS="$CXXFLAGS"  
3977    CXXFLAGS=-S
3978    if { (eval echo configure:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3979      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3980        enable_sjlj_exceptions=yes
3981      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3982        enable_sjlj_exceptions=no
3983      fi
3984    fi
3985    CXXFLAGS="$old_CXXFLAGS"
3986    rm -f conftest*
3987 fi
3988
3989    if test x$enable_sjlj_exceptions = xyes; then
3990      cat >> confdefs.h <<\EOF
3991 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3992 EOF
3993
3994      ac_exception_model_name=sjlj
3995    elif test x$enable_sjlj_exceptions = xno; then
3996      ac_exception_model_name="call frame"
3997    else
3998      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3999    fi
4000    ac_ext=c
4001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4005 cross_compiling=$ac_cv_prog_cc_cross
4006
4007    echo "$ac_t""$ac_exception_model_name" 1>&6
4008
4009
4010   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4011 echo "configure:4012: checking for use of libunwind" >&5
4012   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4013 if test "${enable_libunwind_exceptions+set}" = set; then
4014   enableval="$enable_libunwind_exceptions"
4015   use_libunwind_exceptions=$enableval
4016 else
4017   use_libunwind_exceptions=no
4018 fi
4019
4020   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4021     if test x"$use_libunwind_exceptions" = xyes; then
4022     LIBUNWIND_FLAG="-lunwind"
4023   else
4024     LIBUNWIND_FLAG=""
4025   fi
4026   
4027
4028 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4029 if test "${enable_concept_checks+set}" = set; then
4030   enableval="$enable_concept_checks"
4031   case "$enableval" in
4032  yes) enable_concept_checks=yes ;;
4033  no)  enable_concept_checks=no ;;
4034  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4035  esac
4036 else
4037   enable_concept_checks=no
4038 fi
4039 if test x"$enable_concept_checks" = xyes; then
4040   cat >> confdefs.h <<\EOF
4041 #define _GLIBCPP_CONCEPT_CHECKS 1
4042 EOF
4043
4044 fi
4045
4046
4047 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4048 for ac_hdr in string.h stdlib.h
4049 do
4050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_hdr" >&5
4053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4054   echo $ac_n "(cached) $ac_c" 1>&6
4055 else
4056   cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 #include <$ac_hdr>
4060 EOF
4061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062 { (eval echo configure:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064 if test -z "$ac_err"; then
4065   rm -rf conftest*
4066   eval "ac_cv_header_$ac_safe=yes"
4067 else
4068   echo "$ac_err" >&5
4069   echo "configure: failed program was:" >&5
4070   cat conftest.$ac_ext >&5
4071   rm -rf conftest*
4072   eval "ac_cv_header_$ac_safe=no"
4073 fi
4074 rm -f conftest*
4075 fi
4076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4077   echo "$ac_t""yes" 1>&6
4078     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4079   cat >> confdefs.h <<EOF
4080 #define $ac_tr_hdr 1
4081 EOF
4082  
4083 else
4084   echo "$ac_t""no" 1>&6
4085 fi
4086 done
4087
4088
4089 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4090
4091   # We are being configured with some form of cross compiler.
4092   GLIBCPP_IS_CROSS_COMPILING=1
4093
4094   # This lets us hard-code the functionality we know we'll have in the cross
4095   # target environment.  "Let" is a sugar-coated word placed on an especially
4096   # dull and tedious hack, actually.
4097   #
4098   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4099   # that involve linking, can't be used:
4100   #    "cannot open sim-crt0.o"
4101   #    "cannot open crt0.o"
4102   # etc.  All this is because there currently exists no unified, consistent
4103   # way for top level CC information to be passed down to target directories:
4104   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4105   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4106   # crosses can be removed.
4107
4108   # If Canadian cross, then don't pick up tools from the build directory.
4109   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4110   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4111     CANADIAN=yes
4112   else
4113     CANADIAN=no
4114   fi
4115
4116   # Construct crosses by hand, eliminating bits that need ld...
4117   # GLIBCPP_CHECK_COMPILER_FEATURES
4118   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4119   # GLIBCPP_CHECK_MATH_SUPPORT
4120
4121   case "$target_alias" in
4122     *-linux*)
4123       os_include_dir="os/gnu-linux"
4124       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4125         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4126         fp.h locale.h float.h inttypes.h
4127 do
4128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_hdr" >&5
4131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4132   echo $ac_n "(cached) $ac_c" 1>&6
4133 else
4134   cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 #include <$ac_hdr>
4138 EOF
4139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4140 { (eval echo configure:4141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4142 if test -z "$ac_err"; then
4143   rm -rf conftest*
4144   eval "ac_cv_header_$ac_safe=yes"
4145 else
4146   echo "$ac_err" >&5
4147   echo "configure: failed program was:" >&5
4148   cat conftest.$ac_ext >&5
4149   rm -rf conftest*
4150   eval "ac_cv_header_$ac_safe=no"
4151 fi
4152 rm -f conftest*
4153 fi
4154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4155   echo "$ac_t""yes" 1>&6
4156     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4157   cat >> confdefs.h <<EOF
4158 #define $ac_tr_hdr 1
4159 EOF
4160  
4161 else
4162   echo "$ac_t""no" 1>&6
4163 fi
4164 done
4165
4166       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4167       
4168       
4169   # If we're not using GNU ld, then there's no point in even trying these
4170   # tests.  Check for that first.  We should have already tested for gld
4171   # by now (in libtool), but require it now just to be safe...
4172   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4173   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4174   
4175
4176   # The name set by libtool depends on the version of libtool.  Shame on us
4177   # for depending on an impl detail, but c'est la vie.  Older versions used
4178   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4179   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4180   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4181   # set (hence we're using an older libtool), then set it.
4182   if test x${with_gnu_ld+set} != xset; then
4183     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4184       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4185       with_gnu_ld=no
4186     else
4187       with_gnu_ld=$ac_cv_prog_gnu_ld
4188     fi
4189   fi
4190
4191   # Start by getting the version number.  I think the libtool test already
4192   # does some of this, but throws away the result.
4193   
4194   ldver=`$LD --version 2>/dev/null | head -1 | \
4195          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4196   
4197   glibcpp_gnu_ld_version=`echo $ldver | \
4198          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4199
4200   # Set --gc-sections.
4201   if test "$with_gnu_ld" = "notbroken"; then
4202     # GNU ld it is!  Joy and bunny rabbits!
4203
4204     # All these tests are for C++; save the language and the compiler flags.
4205     # Need to do this so that g++ won't try to link in libstdc++
4206     ac_test_CFLAGS="${CFLAGS+set}"
4207     ac_save_CFLAGS="$CFLAGS"
4208     CFLAGS='-x c++  -Wl,--gc-sections'
4209
4210     # Check for -Wl,--gc-sections
4211     # XXX This test is broken at the moment, as symbols required for
4212     # linking are now in libsupc++ (not built yet.....). In addition, 
4213     # this test has cored on solaris in the past. In addition,
4214     # --gc-sections doesn't really work at the moment (keeps on discarding
4215     # used sections, first .eh_frame and now some of the glibc sections for
4216     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4217     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4218 echo "configure:4219: checking for ld that supports -Wl,--gc-sections" >&5
4219     if test "$cross_compiling" = yes; then
4220   ac_sectionLDflags=yes
4221 else
4222   cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225
4226      int main(void) 
4227      {
4228        try { throw 1; }
4229        catch (...) { };
4230        return 0;
4231      }
4232     
4233 EOF
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4235 then
4236   ac_sectionLDflags=yes
4237 else
4238   echo "configure: failed program was:" >&5
4239   cat conftest.$ac_ext >&5
4240   rm -fr conftest*
4241   ac_sectionLDflags=no
4242 fi
4243 rm -fr conftest*
4244 fi
4245
4246     if test "$ac_test_CFLAGS" = set; then
4247       CFLAGS="$ac_save_CFLAGS"
4248     else
4249       # this is the suspicious part
4250       CFLAGS=''
4251     fi
4252     if test "$ac_sectionLDflags" = "yes"; then
4253       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4254     fi
4255     echo "$ac_t""$ac_sectionLDflags" 1>&6
4256   fi
4257
4258   # Set linker optimization flags.
4259   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4260     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4261   fi
4262
4263   
4264   
4265
4266       
4267     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4268 echo "configure:4269: checking for main in -lm" >&5
4269 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4271   echo $ac_n "(cached) $ac_c" 1>&6
4272 else
4273   ac_save_LIBS="$LIBS"
4274 LIBS="-lm  $LIBS"
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278
4279 int main() {
4280 main()
4281 ; return 0; }
4282 EOF
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4284   rm -rf conftest*
4285   eval "ac_cv_lib_$ac_lib_var=yes"
4286 else
4287   echo "configure: failed program was:" >&5
4288   cat conftest.$ac_ext >&5
4289   rm -rf conftest*
4290   eval "ac_cv_lib_$ac_lib_var=no"
4291 fi
4292 rm -f conftest*
4293 LIBS="$ac_save_LIBS"
4294
4295 fi
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297   echo "$ac_t""yes" 1>&6
4298     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4299     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4300   cat >> confdefs.h <<EOF
4301 #define $ac_tr_lib 1
4302 EOF
4303
4304   LIBS="-lm $LIBS"
4305
4306 else
4307   echo "$ac_t""no" 1>&6
4308 fi
4309
4310   for ac_func in nan copysignf
4311 do
4312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4313 echo "configure:4314: checking for $ac_func" >&5
4314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4315   echo $ac_n "(cached) $ac_c" 1>&6
4316 else
4317   cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 /* System header to define __stub macros and hopefully few prototypes,
4321     which can conflict with char $ac_func(); below.  */
4322 #include <assert.h>
4323 /* Override any gcc2 internal prototype to avoid an error.  */
4324 /* We use char because int might match the return type of a gcc2
4325     builtin and then its argument prototype would still apply.  */
4326 char $ac_func();
4327
4328 int main() {
4329
4330 /* The GNU C library defines this for functions which it implements
4331     to always fail with ENOSYS.  Some functions are actually named
4332     something starting with __ and the normal name is an alias.  */
4333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4334 choke me
4335 #else
4336 $ac_func();
4337 #endif
4338
4339 ; return 0; }
4340 EOF
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342   rm -rf conftest*
4343   eval "ac_cv_func_$ac_func=yes"
4344 else
4345   echo "configure: failed program was:" >&5
4346   cat conftest.$ac_ext >&5
4347   rm -rf conftest*
4348   eval "ac_cv_func_$ac_func=no"
4349 fi
4350 rm -f conftest*
4351 fi
4352
4353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4354   echo "$ac_t""yes" 1>&6
4355     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4356   cat >> confdefs.h <<EOF
4357 #define $ac_tr_func 1
4358 EOF
4359  
4360 else
4361   echo "$ac_t""no" 1>&6
4362 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4363 fi
4364 done
4365
4366
4367     for ac_func in __signbit
4368 do
4369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4370 echo "configure:4371: checking for $ac_func" >&5
4371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4372   echo $ac_n "(cached) $ac_c" 1>&6
4373 else
4374   cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* System header to define __stub macros and hopefully few prototypes,
4378     which can conflict with char $ac_func(); below.  */
4379 #include <assert.h>
4380 /* Override any gcc2 internal prototype to avoid an error.  */
4381 /* We use char because int might match the return type of a gcc2
4382     builtin and then its argument prototype would still apply.  */
4383 char $ac_func();
4384
4385 int main() {
4386
4387 /* The GNU C library defines this for functions which it implements
4388     to always fail with ENOSYS.  Some functions are actually named
4389     something starting with __ and the normal name is an alias.  */
4390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4391 choke me
4392 #else
4393 $ac_func();
4394 #endif
4395
4396 ; return 0; }
4397 EOF
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399   rm -rf conftest*
4400   eval "ac_cv_func_$ac_func=yes"
4401 else
4402   echo "configure: failed program was:" >&5
4403   cat conftest.$ac_ext >&5
4404   rm -rf conftest*
4405   eval "ac_cv_func_$ac_func=no"
4406 fi
4407 rm -f conftest*
4408 fi
4409
4410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4411   echo "$ac_t""yes" 1>&6
4412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4413   cat >> confdefs.h <<EOF
4414 #define $ac_tr_func 1
4415 EOF
4416  
4417 else
4418   echo "$ac_t""no" 1>&6
4419 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4420 fi
4421 done
4422
4423   for ac_func in __signbitf
4424 do
4425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4426 echo "configure:4427: checking for $ac_func" >&5
4427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4428   echo $ac_n "(cached) $ac_c" 1>&6
4429 else
4430   cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 /* System header to define __stub macros and hopefully few prototypes,
4434     which can conflict with char $ac_func(); below.  */
4435 #include <assert.h>
4436 /* Override any gcc2 internal prototype to avoid an error.  */
4437 /* We use char because int might match the return type of a gcc2
4438     builtin and then its argument prototype would still apply.  */
4439 char $ac_func();
4440
4441 int main() {
4442
4443 /* The GNU C library defines this for functions which it implements
4444     to always fail with ENOSYS.  Some functions are actually named
4445     something starting with __ and the normal name is an alias.  */
4446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4447 choke me
4448 #else
4449 $ac_func();
4450 #endif
4451
4452 ; return 0; }
4453 EOF
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4455   rm -rf conftest*
4456   eval "ac_cv_func_$ac_func=yes"
4457 else
4458   echo "configure: failed program was:" >&5
4459   cat conftest.$ac_ext >&5
4460   rm -rf conftest*
4461   eval "ac_cv_func_$ac_func=no"
4462 fi
4463 rm -f conftest*
4464 fi
4465
4466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4467   echo "$ac_t""yes" 1>&6
4468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4469   cat >> confdefs.h <<EOF
4470 #define $ac_tr_func 1
4471 EOF
4472  
4473 else
4474   echo "$ac_t""no" 1>&6
4475 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4476 fi
4477 done
4478
4479
4480           if test x$ac_cv_func_copysignl = x"yes"; then
4481     for ac_func in __signbitl
4482 do
4483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_func" >&5
4485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4486   echo $ac_n "(cached) $ac_c" 1>&6
4487 else
4488   cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 /* System header to define __stub macros and hopefully few prototypes,
4492     which can conflict with char $ac_func(); below.  */
4493 #include <assert.h>
4494 /* Override any gcc2 internal prototype to avoid an error.  */
4495 /* We use char because int might match the return type of a gcc2
4496     builtin and then its argument prototype would still apply.  */
4497 char $ac_func();
4498
4499 int main() {
4500
4501 /* The GNU C library defines this for functions which it implements
4502     to always fail with ENOSYS.  Some functions are actually named
4503     something starting with __ and the normal name is an alias.  */
4504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4505 choke me
4506 #else
4507 $ac_func();
4508 #endif
4509
4510 ; return 0; }
4511 EOF
4512 if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513   rm -rf conftest*
4514   eval "ac_cv_func_$ac_func=yes"
4515 else
4516   echo "configure: failed program was:" >&5
4517   cat conftest.$ac_ext >&5
4518   rm -rf conftest*
4519   eval "ac_cv_func_$ac_func=no"
4520 fi
4521 rm -f conftest*
4522 fi
4523
4524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4525   echo "$ac_t""yes" 1>&6
4526     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4527   cat >> confdefs.h <<EOF
4528 #define $ac_tr_func 1
4529 EOF
4530  
4531 else
4532   echo "$ac_t""no" 1>&6
4533 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4534 fi
4535 done
4536
4537   fi
4538
4539   
4540
4541       
4542
4543       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4544 echo "configure:4545: checking for mbstate_t" >&5
4545   cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 #include <wchar.h>
4549 int main() {
4550 mbstate_t teststate;
4551 ; return 0; }
4552 EOF
4553 if { (eval echo configure:4554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4554   rm -rf conftest*
4555   have_mbstate_t=yes
4556 else
4557   echo "configure: failed program was:" >&5
4558   cat conftest.$ac_ext >&5
4559   rm -rf conftest*
4560   have_mbstate_t=no
4561 fi
4562 rm -f conftest*
4563   echo "$ac_t""$have_mbstate_t" 1>&6
4564   if test x"$have_mbstate_t" = xyes; then
4565     cat >> confdefs.h <<\EOF
4566 #define HAVE_MBSTATE_T 1
4567 EOF
4568
4569   fi
4570
4571     for ac_hdr in wchar.h
4572 do
4573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4575 echo "configure:4576: checking for $ac_hdr" >&5
4576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4577   echo $ac_n "(cached) $ac_c" 1>&6
4578 else
4579   cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 #include <$ac_hdr>
4583 EOF
4584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4585 { (eval echo configure:4586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4587 if test -z "$ac_err"; then
4588   rm -rf conftest*
4589   eval "ac_cv_header_$ac_safe=yes"
4590 else
4591   echo "$ac_err" >&5
4592   echo "configure: failed program was:" >&5
4593   cat conftest.$ac_ext >&5
4594   rm -rf conftest*
4595   eval "ac_cv_header_$ac_safe=no"
4596 fi
4597 rm -f conftest*
4598 fi
4599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4600   echo "$ac_t""yes" 1>&6
4601     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4602   cat >> confdefs.h <<EOF
4603 #define $ac_tr_hdr 1
4604 EOF
4605  ac_has_wchar_h=yes
4606 else
4607   echo "$ac_t""no" 1>&6
4608 ac_has_wchar_h=no
4609 fi
4610 done
4611
4612   for ac_hdr in wctype.h
4613 do
4614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618   echo $ac_n "(cached) $ac_c" 1>&6
4619 else
4620   cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 #include <$ac_hdr>
4624 EOF
4625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4629   rm -rf conftest*
4630   eval "ac_cv_header_$ac_safe=yes"
4631 else
4632   echo "$ac_err" >&5
4633   echo "configure: failed program was:" >&5
4634   cat conftest.$ac_ext >&5
4635   rm -rf conftest*
4636   eval "ac_cv_header_$ac_safe=no"
4637 fi
4638 rm -f conftest*
4639 fi
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641   echo "$ac_t""yes" 1>&6
4642     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643   cat >> confdefs.h <<EOF
4644 #define $ac_tr_hdr 1
4645 EOF
4646  ac_has_wctype_h=yes
4647 else
4648   echo "$ac_t""no" 1>&6
4649 ac_has_wctype_h=no
4650 fi
4651 done
4652
4653   
4654     if test x"$ac_has_wchar_h" = xyes &&
4655      test x"$ac_has_wctype_h" = xyes &&
4656      test x"$enable_c_mbchar" != xno; then
4657       
4658             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4659 echo "configure:4660: checking for WCHAR_MIN and WCHAR_MAX" >&5
4660     cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <wchar.h>
4664 int main() {
4665 int i = WCHAR_MIN; int j = WCHAR_MAX;
4666 ; return 0; }
4667 EOF
4668 if { (eval echo configure:4669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4669   rm -rf conftest*
4670   has_wchar_minmax=yes
4671 else
4672   echo "configure: failed program was:" >&5
4673   cat conftest.$ac_ext >&5
4674   rm -rf conftest*
4675   has_wchar_minmax=no
4676 fi
4677 rm -f conftest*
4678     echo "$ac_t""$has_wchar_minmax" 1>&6
4679     
4680             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4681 echo "configure:4682: checking for WEOF" >&5
4682     cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685
4686       #include <wchar.h>
4687       #include <stddef.h>
4688 int main() {
4689 wint_t i = WEOF;
4690 ; return 0; }
4691 EOF
4692 if { (eval echo configure:4693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693   rm -rf conftest*
4694   has_weof=yes
4695 else
4696   echo "configure: failed program was:" >&5
4697   cat conftest.$ac_ext >&5
4698   rm -rf conftest*
4699   has_weof=no
4700 fi
4701 rm -f conftest*
4702     echo "$ac_t""$has_weof" 1>&6
4703   
4704         ac_wfuncs=yes
4705     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4706 do
4707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4708 echo "configure:4709: checking for $ac_func" >&5
4709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4710   echo $ac_n "(cached) $ac_c" 1>&6
4711 else
4712   cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 /* System header to define __stub macros and hopefully few prototypes,
4716     which can conflict with char $ac_func(); below.  */
4717 #include <assert.h>
4718 /* Override any gcc2 internal prototype to avoid an error.  */
4719 /* We use char because int might match the return type of a gcc2
4720     builtin and then its argument prototype would still apply.  */
4721 char $ac_func();
4722
4723 int main() {
4724
4725 /* The GNU C library defines this for functions which it implements
4726     to always fail with ENOSYS.  Some functions are actually named
4727     something starting with __ and the normal name is an alias.  */
4728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4729 choke me
4730 #else
4731 $ac_func();
4732 #endif
4733
4734 ; return 0; }
4735 EOF
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4737   rm -rf conftest*
4738   eval "ac_cv_func_$ac_func=yes"
4739 else
4740   echo "configure: failed program was:" >&5
4741   cat conftest.$ac_ext >&5
4742   rm -rf conftest*
4743   eval "ac_cv_func_$ac_func=no"
4744 fi
4745 rm -f conftest*
4746 fi
4747
4748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4749   echo "$ac_t""yes" 1>&6
4750     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4751   cat >> confdefs.h <<EOF
4752 #define $ac_tr_func 1
4753 EOF
4754  
4755 else
4756   echo "$ac_t""no" 1>&6
4757 \
4758     ac_wfuncs=no
4759 fi
4760 done
4761
4762   
4763         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4764     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4765     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4766     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4767     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4768     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4769 do
4770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4771 echo "configure:4772: checking for $ac_func" >&5
4772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4773   echo $ac_n "(cached) $ac_c" 1>&6
4774 else
4775   cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 /* System header to define __stub macros and hopefully few prototypes,
4779     which can conflict with char $ac_func(); below.  */
4780 #include <assert.h>
4781 /* Override any gcc2 internal prototype to avoid an error.  */
4782 /* We use char because int might match the return type of a gcc2
4783     builtin and then its argument prototype would still apply.  */
4784 char $ac_func();
4785
4786 int main() {
4787
4788 /* The GNU C library defines this for functions which it implements
4789     to always fail with ENOSYS.  Some functions are actually named
4790     something starting with __ and the normal name is an alias.  */
4791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4792 choke me
4793 #else
4794 $ac_func();
4795 #endif
4796
4797 ; return 0; }
4798 EOF
4799 if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4800   rm -rf conftest*
4801   eval "ac_cv_func_$ac_func=yes"
4802 else
4803   echo "configure: failed program was:" >&5
4804   cat conftest.$ac_ext >&5
4805   rm -rf conftest*
4806   eval "ac_cv_func_$ac_func=no"
4807 fi
4808 rm -f conftest*
4809 fi
4810
4811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4812   echo "$ac_t""yes" 1>&6
4813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4814   cat >> confdefs.h <<EOF
4815 #define $ac_tr_func 1
4816 EOF
4817  
4818 else
4819   echo "$ac_t""no" 1>&6
4820 \
4821     ac_wfuncs=no
4822 fi
4823 done
4824
4825
4826     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4827 echo "configure:4828: checking for ISO C99 wchar_t support" >&5
4828     if test x"$has_weof" = xyes &&
4829        test x"$has_wchar_minmax" = xyes &&
4830        test x"$ac_wfuncs" = xyes; then
4831       ac_isoC99_wchar_t=yes
4832     else
4833       ac_isoC99_wchar_t=no
4834     fi
4835     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4836   
4837             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4838 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4839 echo "configure:4840: checking for iconv.h" >&5
4840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4841   echo $ac_n "(cached) $ac_c" 1>&6
4842 else
4843   cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4846 #include <iconv.h>
4847 EOF
4848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4849 { (eval echo configure:4850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4851 if test -z "$ac_err"; then
4852   rm -rf conftest*
4853   eval "ac_cv_header_$ac_safe=yes"
4854 else
4855   echo "$ac_err" >&5
4856   echo "configure: failed program was:" >&5
4857   cat conftest.$ac_ext >&5
4858   rm -rf conftest*
4859   eval "ac_cv_header_$ac_safe=no"
4860 fi
4861 rm -f conftest*
4862 fi
4863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4864   echo "$ac_t""yes" 1>&6
4865   ac_has_iconv_h=yes
4866 else
4867   echo "$ac_t""no" 1>&6
4868 ac_has_iconv_h=no
4869 fi
4870
4871     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4872 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4873 echo "configure:4874: checking for langinfo.h" >&5
4874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4875   echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877   cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4880 #include <langinfo.h>
4881 EOF
4882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4883 { (eval echo configure:4884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4885 if test -z "$ac_err"; then
4886   rm -rf conftest*
4887   eval "ac_cv_header_$ac_safe=yes"
4888 else
4889   echo "$ac_err" >&5
4890   echo "configure: failed program was:" >&5
4891   cat conftest.$ac_ext >&5
4892   rm -rf conftest*
4893   eval "ac_cv_header_$ac_safe=no"
4894 fi
4895 rm -f conftest*
4896 fi
4897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4898   echo "$ac_t""yes" 1>&6
4899   ac_has_langinfo_h=yes
4900 else
4901   echo "$ac_t""no" 1>&6
4902 ac_has_langinfo_h=no
4903 fi
4904
4905
4906         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4907 echo "configure:4908: checking for iconv in -liconv" >&5
4908 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4910   echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4912   ac_save_LIBS="$LIBS"
4913 LIBS="-liconv  $LIBS"
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4917 /* Override any gcc2 internal prototype to avoid an error.  */
4918 /* We use char because int might match the return type of a gcc2
4919     builtin and then its argument prototype would still apply.  */
4920 char iconv();
4921
4922 int main() {
4923 iconv()
4924 ; return 0; }
4925 EOF
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927   rm -rf conftest*
4928   eval "ac_cv_lib_$ac_lib_var=yes"
4929 else
4930   echo "configure: failed program was:" >&5
4931   cat conftest.$ac_ext >&5
4932   rm -rf conftest*
4933   eval "ac_cv_lib_$ac_lib_var=no"
4934 fi
4935 rm -f conftest*
4936 LIBS="$ac_save_LIBS"
4937
4938 fi
4939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4940   echo "$ac_t""yes" 1>&6
4941   libiconv="-liconv"
4942 else
4943   echo "$ac_t""no" 1>&6
4944 fi
4945
4946     ac_save_LIBS="$LIBS"
4947     LIBS="$LIBS $libiconv"
4948
4949     for ac_func in iconv_open iconv_close iconv nl_langinfo
4950 do
4951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4952 echo "configure:4953: checking for $ac_func" >&5
4953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4954   echo $ac_n "(cached) $ac_c" 1>&6
4955 else
4956   cat > conftest.$ac_ext <<EOF
4957 #line 4958 "configure"
4958 #include "confdefs.h"
4959 /* System header to define __stub macros and hopefully few prototypes,
4960     which can conflict with char $ac_func(); below.  */
4961 #include <assert.h>
4962 /* Override any gcc2 internal prototype to avoid an error.  */
4963 /* We use char because int might match the return type of a gcc2
4964     builtin and then its argument prototype would still apply.  */
4965 char $ac_func();
4966
4967 int main() {
4968
4969 /* The GNU C library defines this for functions which it implements
4970     to always fail with ENOSYS.  Some functions are actually named
4971     something starting with __ and the normal name is an alias.  */
4972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4973 choke me
4974 #else
4975 $ac_func();
4976 #endif
4977
4978 ; return 0; }
4979 EOF
4980 if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4981   rm -rf conftest*
4982   eval "ac_cv_func_$ac_func=yes"
4983 else
4984   echo "configure: failed program was:" >&5
4985   cat conftest.$ac_ext >&5
4986   rm -rf conftest*
4987   eval "ac_cv_func_$ac_func=no"
4988 fi
4989 rm -f conftest*
4990 fi
4991
4992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4993   echo "$ac_t""yes" 1>&6
4994     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4995   cat >> confdefs.h <<EOF
4996 #define $ac_tr_func 1
4997 EOF
4998  \
4999     ac_XPG2funcs=yes
5000 else
5001   echo "$ac_t""no" 1>&6
5002 ac_XPG2funcs=no
5003 fi
5004 done
5005
5006   
5007     LIBS="$ac_save_LIBS"
5008
5009     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5010 echo "configure:5011: checking for XPG2 wchar_t support" >&5
5011     if test x"$ac_has_iconv_h" = xyes &&
5012        test x"$ac_has_langinfo_h" = xyes &&
5013        test x"$ac_XPG2funcs" = xyes; then
5014       ac_XPG2_wchar_t=yes
5015     else
5016       ac_XPG2_wchar_t=no
5017     fi
5018     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5019   
5020             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5021 echo "configure:5022: checking for enabled wchar_t specializations" >&5
5022     if test x"$ac_isoC99_wchar_t" = xyes &&
5023        test x"$ac_XPG2_wchar_t" = xyes; then
5024       cat >> confdefs.h <<\EOF
5025 #define _GLIBCPP_USE_WCHAR_T 1
5026 EOF
5027
5028       echo "$ac_t"""yes"" 1>&6
5029     else
5030       echo "$ac_t"""no"" 1>&6
5031     fi
5032   else
5033         echo "configure: warning: wchar_t support disabled." 1>&2
5034   fi
5035
5036       cat >> confdefs.h <<\EOF
5037 #define HAVE_COPYSIGN 1
5038 EOF
5039
5040       cat >> confdefs.h <<\EOF
5041 #define HAVE_COPYSIGNF 1
5042 EOF
5043
5044       cat >> confdefs.h <<\EOF
5045 #define HAVE_FINITE 1
5046 EOF
5047
5048       cat >> confdefs.h <<\EOF
5049 #define HAVE_FINITEF 1
5050 EOF
5051
5052       cat >> confdefs.h <<\EOF
5053 #define HAVE_FREXPF 1
5054 EOF
5055
5056       cat >> confdefs.h <<\EOF
5057 #define HAVE_HYPOTF 1
5058 EOF
5059
5060       cat >> confdefs.h <<\EOF
5061 #define HAVE_ISINF 1
5062 EOF
5063
5064       cat >> confdefs.h <<\EOF
5065 #define HAVE_ISINFF 1
5066 EOF
5067
5068       cat >> confdefs.h <<\EOF
5069 #define HAVE_ISNAN 1
5070 EOF
5071
5072       cat >> confdefs.h <<\EOF
5073 #define HAVE_ISNANF 1
5074 EOF
5075
5076       cat >> confdefs.h <<\EOF
5077 #define HAVE_SINCOS 1
5078 EOF
5079
5080       cat >> confdefs.h <<\EOF
5081 #define HAVE_SINCOSF 1
5082 EOF
5083
5084       if test x"long_double_math_on_this_cpu" = x"yes"; then
5085         cat >> confdefs.h <<\EOF
5086 #define HAVE_FINITEL 1
5087 EOF
5088
5089         cat >> confdefs.h <<\EOF
5090 #define HAVE_HYPOTL 1
5091 EOF
5092
5093         cat >> confdefs.h <<\EOF
5094 #define HAVE_ISINFL 1
5095 EOF
5096
5097         cat >> confdefs.h <<\EOF
5098 #define HAVE_ISNANL 1
5099 EOF
5100
5101       fi
5102       ;;
5103     *-hpux*)
5104       # Check for available headers.
5105       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5106         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5107         fp.h locale.h float.h inttypes.h
5108 do
5109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5111 echo "configure:5112: checking for $ac_hdr" >&5
5112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5113   echo $ac_n "(cached) $ac_c" 1>&6
5114 else
5115   cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5118 #include <$ac_hdr>
5119 EOF
5120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5121 { (eval echo configure:5122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5123 if test -z "$ac_err"; then
5124   rm -rf conftest*
5125   eval "ac_cv_header_$ac_safe=yes"
5126 else
5127   echo "$ac_err" >&5
5128   echo "configure: failed program was:" >&5
5129   cat conftest.$ac_ext >&5
5130   rm -rf conftest*
5131   eval "ac_cv_header_$ac_safe=no"
5132 fi
5133 rm -f conftest*
5134 fi
5135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5136   echo "$ac_t""yes" 1>&6
5137     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5138   cat >> confdefs.h <<EOF
5139 #define $ac_tr_hdr 1
5140 EOF
5141  
5142 else
5143   echo "$ac_t""no" 1>&6
5144 fi
5145 done
5146
5147       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5148       
5149       
5150   # If we're not using GNU ld, then there's no point in even trying these
5151   # tests.  Check for that first.  We should have already tested for gld
5152   # by now (in libtool), but require it now just to be safe...
5153   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5154   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5155   
5156
5157   # The name set by libtool depends on the version of libtool.  Shame on us
5158   # for depending on an impl detail, but c'est la vie.  Older versions used
5159   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5160   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5161   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5162   # set (hence we're using an older libtool), then set it.
5163   if test x${with_gnu_ld+set} != xset; then
5164     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5165       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5166       with_gnu_ld=no
5167     else
5168       with_gnu_ld=$ac_cv_prog_gnu_ld
5169     fi
5170   fi
5171
5172   # Start by getting the version number.  I think the libtool test already
5173   # does some of this, but throws away the result.
5174   
5175   ldver=`$LD --version 2>/dev/null | head -1 | \
5176          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5177   
5178   glibcpp_gnu_ld_version=`echo $ldver | \
5179          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5180
5181   # Set --gc-sections.
5182   if test "$with_gnu_ld" = "notbroken"; then
5183     # GNU ld it is!  Joy and bunny rabbits!
5184
5185     # All these tests are for C++; save the language and the compiler flags.
5186     # Need to do this so that g++ won't try to link in libstdc++
5187     ac_test_CFLAGS="${CFLAGS+set}"
5188     ac_save_CFLAGS="$CFLAGS"
5189     CFLAGS='-x c++  -Wl,--gc-sections'
5190
5191     # Check for -Wl,--gc-sections
5192     # XXX This test is broken at the moment, as symbols required for
5193     # linking are now in libsupc++ (not built yet.....). In addition, 
5194     # this test has cored on solaris in the past. In addition,
5195     # --gc-sections doesn't really work at the moment (keeps on discarding
5196     # used sections, first .eh_frame and now some of the glibc sections for
5197     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5198     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5199 echo "configure:5200: checking for ld that supports -Wl,--gc-sections" >&5
5200     if test "$cross_compiling" = yes; then
5201   ac_sectionLDflags=yes
5202 else
5203   cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5206
5207      int main(void) 
5208      {
5209        try { throw 1; }
5210        catch (...) { };
5211        return 0;
5212      }
5213     
5214 EOF
5215 if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5216 then
5217   ac_sectionLDflags=yes
5218 else
5219   echo "configure: failed program was:" >&5
5220   cat conftest.$ac_ext >&5
5221   rm -fr conftest*
5222   ac_sectionLDflags=no
5223 fi
5224 rm -fr conftest*
5225 fi
5226
5227     if test "$ac_test_CFLAGS" = set; then
5228       CFLAGS="$ac_save_CFLAGS"
5229     else
5230       # this is the suspicious part
5231       CFLAGS=''
5232     fi
5233     if test "$ac_sectionLDflags" = "yes"; then
5234       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5235     fi
5236     echo "$ac_t""$ac_sectionLDflags" 1>&6
5237   fi
5238
5239   # Set linker optimization flags.
5240   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5241     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5242   fi
5243
5244   
5245   
5246
5247       
5248     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5249 echo "configure:5250: checking for main in -lm" >&5
5250 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5252   echo $ac_n "(cached) $ac_c" 1>&6
5253 else
5254   ac_save_LIBS="$LIBS"
5255 LIBS="-lm  $LIBS"
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259
5260 int main() {
5261 main()
5262 ; return 0; }
5263 EOF
5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5265   rm -rf conftest*
5266   eval "ac_cv_lib_$ac_lib_var=yes"
5267 else
5268   echo "configure: failed program was:" >&5
5269   cat conftest.$ac_ext >&5
5270   rm -rf conftest*
5271   eval "ac_cv_lib_$ac_lib_var=no"
5272 fi
5273 rm -f conftest*
5274 LIBS="$ac_save_LIBS"
5275
5276 fi
5277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5278   echo "$ac_t""yes" 1>&6
5279     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5280     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5281   cat >> confdefs.h <<EOF
5282 #define $ac_tr_lib 1
5283 EOF
5284
5285   LIBS="-lm $LIBS"
5286
5287 else
5288   echo "$ac_t""no" 1>&6
5289 fi
5290
5291   for ac_func in nan copysignf
5292 do
5293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5294 echo "configure:5295: checking for $ac_func" >&5
5295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5296   echo $ac_n "(cached) $ac_c" 1>&6
5297 else
5298   cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* System header to define __stub macros and hopefully few prototypes,
5302     which can conflict with char $ac_func(); below.  */
5303 #include <assert.h>
5304 /* Override any gcc2 internal prototype to avoid an error.  */
5305 /* We use char because int might match the return type of a gcc2
5306     builtin and then its argument prototype would still apply.  */
5307 char $ac_func();
5308
5309 int main() {
5310
5311 /* The GNU C library defines this for functions which it implements
5312     to always fail with ENOSYS.  Some functions are actually named
5313     something starting with __ and the normal name is an alias.  */
5314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5315 choke me
5316 #else
5317 $ac_func();
5318 #endif
5319
5320 ; return 0; }
5321 EOF
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323   rm -rf conftest*
5324   eval "ac_cv_func_$ac_func=yes"
5325 else
5326   echo "configure: failed program was:" >&5
5327   cat conftest.$ac_ext >&5
5328   rm -rf conftest*
5329   eval "ac_cv_func_$ac_func=no"
5330 fi
5331 rm -f conftest*
5332 fi
5333
5334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5335   echo "$ac_t""yes" 1>&6
5336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5337   cat >> confdefs.h <<EOF
5338 #define $ac_tr_func 1
5339 EOF
5340  
5341 else
5342   echo "$ac_t""no" 1>&6
5343 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5344 fi
5345 done
5346
5347
5348     for ac_func in __signbit
5349 do
5350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5351 echo "configure:5352: checking for $ac_func" >&5
5352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5353   echo $ac_n "(cached) $ac_c" 1>&6
5354 else
5355   cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 /* System header to define __stub macros and hopefully few prototypes,
5359     which can conflict with char $ac_func(); below.  */
5360 #include <assert.h>
5361 /* Override any gcc2 internal prototype to avoid an error.  */
5362 /* We use char because int might match the return type of a gcc2
5363     builtin and then its argument prototype would still apply.  */
5364 char $ac_func();
5365
5366 int main() {
5367
5368 /* The GNU C library defines this for functions which it implements
5369     to always fail with ENOSYS.  Some functions are actually named
5370     something starting with __ and the normal name is an alias.  */
5371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5372 choke me
5373 #else
5374 $ac_func();
5375 #endif
5376
5377 ; return 0; }
5378 EOF
5379 if { (eval echo configure:5380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5380   rm -rf conftest*
5381   eval "ac_cv_func_$ac_func=yes"
5382 else
5383   echo "configure: failed program was:" >&5
5384   cat conftest.$ac_ext >&5
5385   rm -rf conftest*
5386   eval "ac_cv_func_$ac_func=no"
5387 fi
5388 rm -f conftest*
5389 fi
5390
5391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5392   echo "$ac_t""yes" 1>&6
5393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5394   cat >> confdefs.h <<EOF
5395 #define $ac_tr_func 1
5396 EOF
5397  
5398 else
5399   echo "$ac_t""no" 1>&6
5400 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5401 fi
5402 done
5403
5404   for ac_func in __signbitf
5405 do
5406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5407 echo "configure:5408: checking for $ac_func" >&5
5408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5409   echo $ac_n "(cached) $ac_c" 1>&6
5410 else
5411   cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5414 /* System header to define __stub macros and hopefully few prototypes,
5415     which can conflict with char $ac_func(); below.  */
5416 #include <assert.h>
5417 /* Override any gcc2 internal prototype to avoid an error.  */
5418 /* We use char because int might match the return type of a gcc2
5419     builtin and then its argument prototype would still apply.  */
5420 char $ac_func();
5421
5422 int main() {
5423
5424 /* The GNU C library defines this for functions which it implements
5425     to always fail with ENOSYS.  Some functions are actually named
5426     something starting with __ and the normal name is an alias.  */
5427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5428 choke me
5429 #else
5430 $ac_func();
5431 #endif
5432
5433 ; return 0; }
5434 EOF
5435 if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436   rm -rf conftest*
5437   eval "ac_cv_func_$ac_func=yes"
5438 else
5439   echo "configure: failed program was:" >&5
5440   cat conftest.$ac_ext >&5
5441   rm -rf conftest*
5442   eval "ac_cv_func_$ac_func=no"
5443 fi
5444 rm -f conftest*
5445 fi
5446
5447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5448   echo "$ac_t""yes" 1>&6
5449     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5450   cat >> confdefs.h <<EOF
5451 #define $ac_tr_func 1
5452 EOF
5453  
5454 else
5455   echo "$ac_t""no" 1>&6
5456 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5457 fi
5458 done
5459
5460
5461           if test x$ac_cv_func_copysignl = x"yes"; then
5462     for ac_func in __signbitl
5463 do
5464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5465 echo "configure:5466: checking for $ac_func" >&5
5466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5467   echo $ac_n "(cached) $ac_c" 1>&6
5468 else
5469   cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 /* System header to define __stub macros and hopefully few prototypes,
5473     which can conflict with char $ac_func(); below.  */
5474 #include <assert.h>
5475 /* Override any gcc2 internal prototype to avoid an error.  */
5476 /* We use char because int might match the return type of a gcc2
5477     builtin and then its argument prototype would still apply.  */
5478 char $ac_func();
5479
5480 int main() {
5481
5482 /* The GNU C library defines this for functions which it implements
5483     to always fail with ENOSYS.  Some functions are actually named
5484     something starting with __ and the normal name is an alias.  */
5485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5486 choke me
5487 #else
5488 $ac_func();
5489 #endif
5490
5491 ; return 0; }
5492 EOF
5493 if { (eval echo configure:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5494   rm -rf conftest*
5495   eval "ac_cv_func_$ac_func=yes"
5496 else
5497   echo "configure: failed program was:" >&5
5498   cat conftest.$ac_ext >&5
5499   rm -rf conftest*
5500   eval "ac_cv_func_$ac_func=no"
5501 fi
5502 rm -f conftest*
5503 fi
5504
5505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5506   echo "$ac_t""yes" 1>&6
5507     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5508   cat >> confdefs.h <<EOF
5509 #define $ac_tr_func 1
5510 EOF
5511  
5512 else
5513   echo "$ac_t""no" 1>&6
5514 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5515 fi
5516 done
5517
5518   fi
5519
5520   
5521
5522       
5523
5524       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5525 echo "configure:5526: checking for mbstate_t" >&5
5526   cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 #include <wchar.h>
5530 int main() {
5531 mbstate_t teststate;
5532 ; return 0; }
5533 EOF
5534 if { (eval echo configure:5535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5535   rm -rf conftest*
5536   have_mbstate_t=yes
5537 else
5538   echo "configure: failed program was:" >&5
5539   cat conftest.$ac_ext >&5
5540   rm -rf conftest*
5541   have_mbstate_t=no
5542 fi
5543 rm -f conftest*
5544   echo "$ac_t""$have_mbstate_t" 1>&6
5545   if test x"$have_mbstate_t" = xyes; then
5546     cat >> confdefs.h <<\EOF
5547 #define HAVE_MBSTATE_T 1
5548 EOF
5549
5550   fi
5551
5552     for ac_hdr in wchar.h
5553 do
5554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_hdr" >&5
5557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5558   echo $ac_n "(cached) $ac_c" 1>&6
5559 else
5560   cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 #include <$ac_hdr>
5564 EOF
5565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5566 { (eval echo configure:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5568 if test -z "$ac_err"; then
5569   rm -rf conftest*
5570   eval "ac_cv_header_$ac_safe=yes"
5571 else
5572   echo "$ac_err" >&5
5573   echo "configure: failed program was:" >&5
5574   cat conftest.$ac_ext >&5
5575   rm -rf conftest*
5576   eval "ac_cv_header_$ac_safe=no"
5577 fi
5578 rm -f conftest*
5579 fi
5580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5581   echo "$ac_t""yes" 1>&6
5582     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5583   cat >> confdefs.h <<EOF
5584 #define $ac_tr_hdr 1
5585 EOF
5586  ac_has_wchar_h=yes
5587 else
5588   echo "$ac_t""no" 1>&6
5589 ac_has_wchar_h=no
5590 fi
5591 done
5592
5593   for ac_hdr in wctype.h
5594 do
5595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5597 echo "configure:5598: checking for $ac_hdr" >&5
5598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5599   echo $ac_n "(cached) $ac_c" 1>&6
5600 else
5601   cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5604 #include <$ac_hdr>
5605 EOF
5606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5607 { (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5609 if test -z "$ac_err"; then
5610   rm -rf conftest*
5611   eval "ac_cv_header_$ac_safe=yes"
5612 else
5613   echo "$ac_err" >&5
5614   echo "configure: failed program was:" >&5
5615   cat conftest.$ac_ext >&5
5616   rm -rf conftest*
5617   eval "ac_cv_header_$ac_safe=no"
5618 fi
5619 rm -f conftest*
5620 fi
5621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5622   echo "$ac_t""yes" 1>&6
5623     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5624   cat >> confdefs.h <<EOF
5625 #define $ac_tr_hdr 1
5626 EOF
5627  ac_has_wctype_h=yes
5628 else
5629   echo "$ac_t""no" 1>&6
5630 ac_has_wctype_h=no
5631 fi
5632 done
5633
5634   
5635     if test x"$ac_has_wchar_h" = xyes &&
5636      test x"$ac_has_wctype_h" = xyes &&
5637      test x"$enable_c_mbchar" != xno; then
5638       
5639             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5640 echo "configure:5641: checking for WCHAR_MIN and WCHAR_MAX" >&5
5641     cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <wchar.h>
5645 int main() {
5646 int i = WCHAR_MIN; int j = WCHAR_MAX;
5647 ; return 0; }
5648 EOF
5649 if { (eval echo configure:5650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5650   rm -rf conftest*
5651   has_wchar_minmax=yes
5652 else
5653   echo "configure: failed program was:" >&5
5654   cat conftest.$ac_ext >&5
5655   rm -rf conftest*
5656   has_wchar_minmax=no
5657 fi
5658 rm -f conftest*
5659     echo "$ac_t""$has_wchar_minmax" 1>&6
5660     
5661             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5662 echo "configure:5663: checking for WEOF" >&5
5663     cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666
5667       #include <wchar.h>
5668       #include <stddef.h>
5669 int main() {
5670 wint_t i = WEOF;
5671 ; return 0; }
5672 EOF
5673 if { (eval echo configure:5674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5674   rm -rf conftest*
5675   has_weof=yes
5676 else
5677   echo "configure: failed program was:" >&5
5678   cat conftest.$ac_ext >&5
5679   rm -rf conftest*
5680   has_weof=no
5681 fi
5682 rm -f conftest*
5683     echo "$ac_t""$has_weof" 1>&6
5684   
5685         ac_wfuncs=yes
5686     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5687 do
5688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5689 echo "configure:5690: checking for $ac_func" >&5
5690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5691   echo $ac_n "(cached) $ac_c" 1>&6
5692 else
5693   cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5696 /* System header to define __stub macros and hopefully few prototypes,
5697     which can conflict with char $ac_func(); below.  */
5698 #include <assert.h>
5699 /* Override any gcc2 internal prototype to avoid an error.  */
5700 /* We use char because int might match the return type of a gcc2
5701     builtin and then its argument prototype would still apply.  */
5702 char $ac_func();
5703
5704 int main() {
5705
5706 /* The GNU C library defines this for functions which it implements
5707     to always fail with ENOSYS.  Some functions are actually named
5708     something starting with __ and the normal name is an alias.  */
5709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5710 choke me
5711 #else
5712 $ac_func();
5713 #endif
5714
5715 ; return 0; }
5716 EOF
5717 if { (eval echo configure:5718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5718   rm -rf conftest*
5719   eval "ac_cv_func_$ac_func=yes"
5720 else
5721   echo "configure: failed program was:" >&5
5722   cat conftest.$ac_ext >&5
5723   rm -rf conftest*
5724   eval "ac_cv_func_$ac_func=no"
5725 fi
5726 rm -f conftest*
5727 fi
5728
5729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5730   echo "$ac_t""yes" 1>&6
5731     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5732   cat >> confdefs.h <<EOF
5733 #define $ac_tr_func 1
5734 EOF
5735  
5736 else
5737   echo "$ac_t""no" 1>&6
5738 \
5739     ac_wfuncs=no
5740 fi
5741 done
5742
5743   
5744         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5745     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5746     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5747     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5748     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5749     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5750 do
5751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5752 echo "configure:5753: checking for $ac_func" >&5
5753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5754   echo $ac_n "(cached) $ac_c" 1>&6
5755 else
5756   cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 /* System header to define __stub macros and hopefully few prototypes,
5760     which can conflict with char $ac_func(); below.  */
5761 #include <assert.h>
5762 /* Override any gcc2 internal prototype to avoid an error.  */
5763 /* We use char because int might match the return type of a gcc2
5764     builtin and then its argument prototype would still apply.  */
5765 char $ac_func();
5766
5767 int main() {
5768
5769 /* The GNU C library defines this for functions which it implements
5770     to always fail with ENOSYS.  Some functions are actually named
5771     something starting with __ and the normal name is an alias.  */
5772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5773 choke me
5774 #else
5775 $ac_func();
5776 #endif
5777
5778 ; return 0; }
5779 EOF
5780 if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5781   rm -rf conftest*
5782   eval "ac_cv_func_$ac_func=yes"
5783 else
5784   echo "configure: failed program was:" >&5
5785   cat conftest.$ac_ext >&5
5786   rm -rf conftest*
5787   eval "ac_cv_func_$ac_func=no"
5788 fi
5789 rm -f conftest*
5790 fi
5791
5792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5793   echo "$ac_t""yes" 1>&6
5794     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5795   cat >> confdefs.h <<EOF
5796 #define $ac_tr_func 1
5797 EOF
5798  
5799 else
5800   echo "$ac_t""no" 1>&6
5801 \
5802     ac_wfuncs=no
5803 fi
5804 done
5805
5806
5807     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5808 echo "configure:5809: checking for ISO C99 wchar_t support" >&5
5809     if test x"$has_weof" = xyes &&
5810        test x"$has_wchar_minmax" = xyes &&
5811        test x"$ac_wfuncs" = xyes; then
5812       ac_isoC99_wchar_t=yes
5813     else
5814       ac_isoC99_wchar_t=no
5815     fi
5816     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5817   
5818             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5819 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5820 echo "configure:5821: checking for iconv.h" >&5
5821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5822   echo $ac_n "(cached) $ac_c" 1>&6
5823 else
5824   cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5827 #include <iconv.h>
5828 EOF
5829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5830 { (eval echo configure:5831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5832 if test -z "$ac_err"; then
5833   rm -rf conftest*
5834   eval "ac_cv_header_$ac_safe=yes"
5835 else
5836   echo "$ac_err" >&5
5837   echo "configure: failed program was:" >&5
5838   cat conftest.$ac_ext >&5
5839   rm -rf conftest*
5840   eval "ac_cv_header_$ac_safe=no"
5841 fi
5842 rm -f conftest*
5843 fi
5844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5845   echo "$ac_t""yes" 1>&6
5846   ac_has_iconv_h=yes
5847 else
5848   echo "$ac_t""no" 1>&6
5849 ac_has_iconv_h=no
5850 fi
5851
5852     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5853 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5854 echo "configure:5855: checking for langinfo.h" >&5
5855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5856   echo $ac_n "(cached) $ac_c" 1>&6
5857 else
5858   cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5861 #include <langinfo.h>
5862 EOF
5863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5864 { (eval echo configure:5865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5866 if test -z "$ac_err"; then
5867   rm -rf conftest*
5868   eval "ac_cv_header_$ac_safe=yes"
5869 else
5870   echo "$ac_err" >&5
5871   echo "configure: failed program was:" >&5
5872   cat conftest.$ac_ext >&5
5873   rm -rf conftest*
5874   eval "ac_cv_header_$ac_safe=no"
5875 fi
5876 rm -f conftest*
5877 fi
5878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5879   echo "$ac_t""yes" 1>&6
5880   ac_has_langinfo_h=yes
5881 else
5882   echo "$ac_t""no" 1>&6
5883 ac_has_langinfo_h=no
5884 fi
5885
5886
5887         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5888 echo "configure:5889: checking for iconv in -liconv" >&5
5889 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5891   echo $ac_n "(cached) $ac_c" 1>&6
5892 else
5893   ac_save_LIBS="$LIBS"
5894 LIBS="-liconv  $LIBS"
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5898 /* Override any gcc2 internal prototype to avoid an error.  */
5899 /* We use char because int might match the return type of a gcc2
5900     builtin and then its argument prototype would still apply.  */
5901 char iconv();
5902
5903 int main() {
5904 iconv()
5905 ; return 0; }
5906 EOF
5907 if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5908   rm -rf conftest*
5909   eval "ac_cv_lib_$ac_lib_var=yes"
5910 else
5911   echo "configure: failed program was:" >&5
5912   cat conftest.$ac_ext >&5
5913   rm -rf conftest*
5914   eval "ac_cv_lib_$ac_lib_var=no"
5915 fi
5916 rm -f conftest*
5917 LIBS="$ac_save_LIBS"
5918
5919 fi
5920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5921   echo "$ac_t""yes" 1>&6
5922   libiconv="-liconv"
5923 else
5924   echo "$ac_t""no" 1>&6
5925 fi
5926
5927     ac_save_LIBS="$LIBS"
5928     LIBS="$LIBS $libiconv"
5929
5930     for ac_func in iconv_open iconv_close iconv nl_langinfo
5931 do
5932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5933 echo "configure:5934: checking for $ac_func" >&5
5934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5935   echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5937   cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 /* System header to define __stub macros and hopefully few prototypes,
5941     which can conflict with char $ac_func(); below.  */
5942 #include <assert.h>
5943 /* Override any gcc2 internal prototype to avoid an error.  */
5944 /* We use char because int might match the return type of a gcc2
5945     builtin and then its argument prototype would still apply.  */
5946 char $ac_func();
5947
5948 int main() {
5949
5950 /* The GNU C library defines this for functions which it implements
5951     to always fail with ENOSYS.  Some functions are actually named
5952     something starting with __ and the normal name is an alias.  */
5953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5954 choke me
5955 #else
5956 $ac_func();
5957 #endif
5958
5959 ; return 0; }
5960 EOF
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962   rm -rf conftest*
5963   eval "ac_cv_func_$ac_func=yes"
5964 else
5965   echo "configure: failed program was:" >&5
5966   cat conftest.$ac_ext >&5
5967   rm -rf conftest*
5968   eval "ac_cv_func_$ac_func=no"
5969 fi
5970 rm -f conftest*
5971 fi
5972
5973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5974   echo "$ac_t""yes" 1>&6
5975     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5976   cat >> confdefs.h <<EOF
5977 #define $ac_tr_func 1
5978 EOF
5979  \
5980     ac_XPG2funcs=yes
5981 else
5982   echo "$ac_t""no" 1>&6
5983 ac_XPG2funcs=no
5984 fi
5985 done
5986
5987   
5988     LIBS="$ac_save_LIBS"
5989
5990     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5991 echo "configure:5992: checking for XPG2 wchar_t support" >&5
5992     if test x"$ac_has_iconv_h" = xyes &&
5993        test x"$ac_has_langinfo_h" = xyes &&
5994        test x"$ac_XPG2funcs" = xyes; then
5995       ac_XPG2_wchar_t=yes
5996     else
5997       ac_XPG2_wchar_t=no
5998     fi
5999     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6000   
6001             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6002 echo "configure:6003: checking for enabled wchar_t specializations" >&5
6003     if test x"$ac_isoC99_wchar_t" = xyes &&
6004        test x"$ac_XPG2_wchar_t" = xyes; then
6005       cat >> confdefs.h <<\EOF
6006 #define _GLIBCPP_USE_WCHAR_T 1
6007 EOF
6008
6009       echo "$ac_t"""yes"" 1>&6
6010     else
6011       echo "$ac_t"""no"" 1>&6
6012     fi
6013   else
6014         echo "configure: warning: wchar_t support disabled." 1>&2
6015   fi
6016
6017       os_include_dir="os/hpux"
6018       cat >> confdefs.h <<\EOF
6019 #define HAVE_COPYSIGN 1
6020 EOF
6021
6022       cat >> confdefs.h <<\EOF
6023 #define HAVE_COPYSIGNF 1
6024 EOF
6025
6026       cat >> confdefs.h <<\EOF
6027 #define HAVE_FREXPF 1
6028 EOF
6029
6030       cat >> confdefs.h <<\EOF
6031 #define HAVE_HYPOT 1
6032 EOF
6033
6034       case "$target_alias" in
6035         *-hpux10*)
6036           cat >> confdefs.h <<\EOF
6037 #define HAVE_FINITE 1
6038 EOF
6039
6040           cat >> confdefs.h <<\EOF
6041 #define HAVE_FINITEF 1
6042 EOF
6043
6044           cat >> confdefs.h <<\EOF
6045 #define HAVE_ISINF 1
6046 EOF
6047
6048           cat >> confdefs.h <<\EOF
6049 #define HAVE_ISINFF 1
6050 EOF
6051
6052           cat >> confdefs.h <<\EOF
6053 #define HAVE_ISNAN 1
6054 EOF
6055
6056           cat >> confdefs.h <<\EOF
6057 #define HAVE_ISNANF 1
6058 EOF
6059
6060           ;;
6061       esac
6062
6063       ;;
6064     *-netbsd*)
6065       # Check for available headers.
6066       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6067         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6068         fp.h locale.h float.h inttypes.h
6069 do
6070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6072 echo "configure:6073: checking for $ac_hdr" >&5
6073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6074   echo $ac_n "(cached) $ac_c" 1>&6
6075 else
6076   cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 #include <$ac_hdr>
6080 EOF
6081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6082 { (eval echo configure:6083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6084 if test -z "$ac_err"; then
6085   rm -rf conftest*
6086   eval "ac_cv_header_$ac_safe=yes"
6087 else
6088   echo "$ac_err" >&5
6089   echo "configure: failed program was:" >&5
6090   cat conftest.$ac_ext >&5
6091   rm -rf conftest*
6092   eval "ac_cv_header_$ac_safe=no"
6093 fi
6094 rm -f conftest*
6095 fi
6096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6097   echo "$ac_t""yes" 1>&6
6098     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6099   cat >> confdefs.h <<EOF
6100 #define $ac_tr_hdr 1
6101 EOF
6102  
6103 else
6104   echo "$ac_t""no" 1>&6
6105 fi
6106 done
6107
6108       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6109        
6110       
6111   # If we're not using GNU ld, then there's no point in even trying these
6112   # tests.  Check for that first.  We should have already tested for gld
6113   # by now (in libtool), but require it now just to be safe...
6114   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6115   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6116   
6117
6118   # The name set by libtool depends on the version of libtool.  Shame on us
6119   # for depending on an impl detail, but c'est la vie.  Older versions used
6120   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6121   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6122   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6123   # set (hence we're using an older libtool), then set it.
6124   if test x${with_gnu_ld+set} != xset; then
6125     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6126       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6127       with_gnu_ld=no
6128     else
6129       with_gnu_ld=$ac_cv_prog_gnu_ld
6130     fi
6131   fi
6132
6133   # Start by getting the version number.  I think the libtool test already
6134   # does some of this, but throws away the result.
6135   
6136   ldver=`$LD --version 2>/dev/null | head -1 | \
6137          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6138   
6139   glibcpp_gnu_ld_version=`echo $ldver | \
6140          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6141
6142   # Set --gc-sections.
6143   if test "$with_gnu_ld" = "notbroken"; then
6144     # GNU ld it is!  Joy and bunny rabbits!
6145
6146     # All these tests are for C++; save the language and the compiler flags.
6147     # Need to do this so that g++ won't try to link in libstdc++
6148     ac_test_CFLAGS="${CFLAGS+set}"
6149     ac_save_CFLAGS="$CFLAGS"
6150     CFLAGS='-x c++  -Wl,--gc-sections'
6151
6152     # Check for -Wl,--gc-sections
6153     # XXX This test is broken at the moment, as symbols required for
6154     # linking are now in libsupc++ (not built yet.....). In addition, 
6155     # this test has cored on solaris in the past. In addition,
6156     # --gc-sections doesn't really work at the moment (keeps on discarding
6157     # used sections, first .eh_frame and now some of the glibc sections for
6158     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6159     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6160 echo "configure:6161: checking for ld that supports -Wl,--gc-sections" >&5
6161     if test "$cross_compiling" = yes; then
6162   ac_sectionLDflags=yes
6163 else
6164   cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6167
6168      int main(void) 
6169      {
6170        try { throw 1; }
6171        catch (...) { };
6172        return 0;
6173      }
6174     
6175 EOF
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6177 then
6178   ac_sectionLDflags=yes
6179 else
6180   echo "configure: failed program was:" >&5
6181   cat conftest.$ac_ext >&5
6182   rm -fr conftest*
6183   ac_sectionLDflags=no
6184 fi
6185 rm -fr conftest*
6186 fi
6187
6188     if test "$ac_test_CFLAGS" = set; then
6189       CFLAGS="$ac_save_CFLAGS"
6190     else
6191       # this is the suspicious part
6192       CFLAGS=''
6193     fi
6194     if test "$ac_sectionLDflags" = "yes"; then
6195       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6196     fi
6197     echo "$ac_t""$ac_sectionLDflags" 1>&6
6198   fi
6199
6200   # Set linker optimization flags.
6201   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6202     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6203   fi
6204
6205   
6206   
6207
6208       
6209     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6210 echo "configure:6211: checking for main in -lm" >&5
6211 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6213   echo $ac_n "(cached) $ac_c" 1>&6
6214 else
6215   ac_save_LIBS="$LIBS"
6216 LIBS="-lm  $LIBS"
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6220
6221 int main() {
6222 main()
6223 ; return 0; }
6224 EOF
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226   rm -rf conftest*
6227   eval "ac_cv_lib_$ac_lib_var=yes"
6228 else
6229   echo "configure: failed program was:" >&5
6230   cat conftest.$ac_ext >&5
6231   rm -rf conftest*
6232   eval "ac_cv_lib_$ac_lib_var=no"
6233 fi
6234 rm -f conftest*
6235 LIBS="$ac_save_LIBS"
6236
6237 fi
6238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6239   echo "$ac_t""yes" 1>&6
6240     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6241     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6242   cat >> confdefs.h <<EOF
6243 #define $ac_tr_lib 1
6244 EOF
6245
6246   LIBS="-lm $LIBS"
6247
6248 else
6249   echo "$ac_t""no" 1>&6
6250 fi
6251
6252   for ac_func in nan copysignf
6253 do
6254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6255 echo "configure:6256: checking for $ac_func" >&5
6256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6257   echo $ac_n "(cached) $ac_c" 1>&6
6258 else
6259   cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 /* System header to define __stub macros and hopefully few prototypes,
6263     which can conflict with char $ac_func(); below.  */
6264 #include <assert.h>
6265 /* Override any gcc2 internal prototype to avoid an error.  */
6266 /* We use char because int might match the return type of a gcc2
6267     builtin and then its argument prototype would still apply.  */
6268 char $ac_func();
6269
6270 int main() {
6271
6272 /* The GNU C library defines this for functions which it implements
6273     to always fail with ENOSYS.  Some functions are actually named
6274     something starting with __ and the normal name is an alias.  */
6275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6276 choke me
6277 #else
6278 $ac_func();
6279 #endif
6280
6281 ; return 0; }
6282 EOF
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284   rm -rf conftest*
6285   eval "ac_cv_func_$ac_func=yes"
6286 else
6287   echo "configure: failed program was:" >&5
6288   cat conftest.$ac_ext >&5
6289   rm -rf conftest*
6290   eval "ac_cv_func_$ac_func=no"
6291 fi
6292 rm -f conftest*
6293 fi
6294
6295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6296   echo "$ac_t""yes" 1>&6
6297     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6298   cat >> confdefs.h <<EOF
6299 #define $ac_tr_func 1
6300 EOF
6301  
6302 else
6303   echo "$ac_t""no" 1>&6
6304 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6305 fi
6306 done
6307
6308
6309     for ac_func in __signbit
6310 do
6311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6312 echo "configure:6313: checking for $ac_func" >&5
6313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6314   echo $ac_n "(cached) $ac_c" 1>&6
6315 else
6316   cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* System header to define __stub macros and hopefully few prototypes,
6320     which can conflict with char $ac_func(); below.  */
6321 #include <assert.h>
6322 /* Override any gcc2 internal prototype to avoid an error.  */
6323 /* We use char because int might match the return type of a gcc2
6324     builtin and then its argument prototype would still apply.  */
6325 char $ac_func();
6326
6327 int main() {
6328
6329 /* The GNU C library defines this for functions which it implements
6330     to always fail with ENOSYS.  Some functions are actually named
6331     something starting with __ and the normal name is an alias.  */
6332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6333 choke me
6334 #else
6335 $ac_func();
6336 #endif
6337
6338 ; return 0; }
6339 EOF
6340 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341   rm -rf conftest*
6342   eval "ac_cv_func_$ac_func=yes"
6343 else
6344   echo "configure: failed program was:" >&5
6345   cat conftest.$ac_ext >&5
6346   rm -rf conftest*
6347   eval "ac_cv_func_$ac_func=no"
6348 fi
6349 rm -f conftest*
6350 fi
6351
6352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6353   echo "$ac_t""yes" 1>&6
6354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6355   cat >> confdefs.h <<EOF
6356 #define $ac_tr_func 1
6357 EOF
6358  
6359 else
6360   echo "$ac_t""no" 1>&6
6361 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6362 fi
6363 done
6364
6365   for ac_func in __signbitf
6366 do
6367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6368 echo "configure:6369: checking for $ac_func" >&5
6369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6370   echo $ac_n "(cached) $ac_c" 1>&6
6371 else
6372   cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 /* System header to define __stub macros and hopefully few prototypes,
6376     which can conflict with char $ac_func(); below.  */
6377 #include <assert.h>
6378 /* Override any gcc2 internal prototype to avoid an error.  */
6379 /* We use char because int might match the return type of a gcc2
6380     builtin and then its argument prototype would still apply.  */
6381 char $ac_func();
6382
6383 int main() {
6384
6385 /* The GNU C library defines this for functions which it implements
6386     to always fail with ENOSYS.  Some functions are actually named
6387     something starting with __ and the normal name is an alias.  */
6388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6389 choke me
6390 #else
6391 $ac_func();
6392 #endif
6393
6394 ; return 0; }
6395 EOF
6396 if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6397   rm -rf conftest*
6398   eval "ac_cv_func_$ac_func=yes"
6399 else
6400   echo "configure: failed program was:" >&5
6401   cat conftest.$ac_ext >&5
6402   rm -rf conftest*
6403   eval "ac_cv_func_$ac_func=no"
6404 fi
6405 rm -f conftest*
6406 fi
6407
6408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6409   echo "$ac_t""yes" 1>&6
6410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6411   cat >> confdefs.h <<EOF
6412 #define $ac_tr_func 1
6413 EOF
6414  
6415 else
6416   echo "$ac_t""no" 1>&6
6417 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6418 fi
6419 done
6420
6421
6422           if test x$ac_cv_func_copysignl = x"yes"; then
6423     for ac_func in __signbitl
6424 do
6425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6426 echo "configure:6427: checking for $ac_func" >&5
6427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6428   echo $ac_n "(cached) $ac_c" 1>&6
6429 else
6430   cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 /* System header to define __stub macros and hopefully few prototypes,
6434     which can conflict with char $ac_func(); below.  */
6435 #include <assert.h>
6436 /* Override any gcc2 internal prototype to avoid an error.  */
6437 /* We use char because int might match the return type of a gcc2
6438     builtin and then its argument prototype would still apply.  */
6439 char $ac_func();
6440
6441 int main() {
6442
6443 /* The GNU C library defines this for functions which it implements
6444     to always fail with ENOSYS.  Some functions are actually named
6445     something starting with __ and the normal name is an alias.  */
6446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6447 choke me
6448 #else
6449 $ac_func();
6450 #endif
6451
6452 ; return 0; }
6453 EOF
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6455   rm -rf conftest*
6456   eval "ac_cv_func_$ac_func=yes"
6457 else
6458   echo "configure: failed program was:" >&5
6459   cat conftest.$ac_ext >&5
6460   rm -rf conftest*
6461   eval "ac_cv_func_$ac_func=no"
6462 fi
6463 rm -f conftest*
6464 fi
6465
6466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6467   echo "$ac_t""yes" 1>&6
6468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6469   cat >> confdefs.h <<EOF
6470 #define $ac_tr_func 1
6471 EOF
6472  
6473 else
6474   echo "$ac_t""no" 1>&6
6475 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6476 fi
6477 done
6478
6479   fi
6480
6481   
6482
6483       
6484
6485       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6486 echo "configure:6487: checking for mbstate_t" >&5
6487   cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 #include <wchar.h>
6491 int main() {
6492 mbstate_t teststate;
6493 ; return 0; }
6494 EOF
6495 if { (eval echo configure:6496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6496   rm -rf conftest*
6497   have_mbstate_t=yes
6498 else
6499   echo "configure: failed program was:" >&5
6500   cat conftest.$ac_ext >&5
6501   rm -rf conftest*
6502   have_mbstate_t=no
6503 fi
6504 rm -f conftest*
6505   echo "$ac_t""$have_mbstate_t" 1>&6
6506   if test x"$have_mbstate_t" = xyes; then
6507     cat >> confdefs.h <<\EOF
6508 #define HAVE_MBSTATE_T 1
6509 EOF
6510
6511   fi
6512
6513     for ac_hdr in wchar.h
6514 do
6515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6517 echo "configure:6518: checking for $ac_hdr" >&5
6518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6519   echo $ac_n "(cached) $ac_c" 1>&6
6520 else
6521   cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6524 #include <$ac_hdr>
6525 EOF
6526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6527 { (eval echo configure:6528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6529 if test -z "$ac_err"; then
6530   rm -rf conftest*
6531   eval "ac_cv_header_$ac_safe=yes"
6532 else
6533   echo "$ac_err" >&5
6534   echo "configure: failed program was:" >&5
6535   cat conftest.$ac_ext >&5
6536   rm -rf conftest*
6537   eval "ac_cv_header_$ac_safe=no"
6538 fi
6539 rm -f conftest*
6540 fi
6541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6542   echo "$ac_t""yes" 1>&6
6543     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6544   cat >> confdefs.h <<EOF
6545 #define $ac_tr_hdr 1
6546 EOF
6547  ac_has_wchar_h=yes
6548 else
6549   echo "$ac_t""no" 1>&6
6550 ac_has_wchar_h=no
6551 fi
6552 done
6553
6554   for ac_hdr in wctype.h
6555 do
6556 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6557 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6558 echo "configure:6559: checking for $ac_hdr" >&5
6559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6560   echo $ac_n "(cached) $ac_c" 1>&6
6561 else
6562   cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 #include <$ac_hdr>
6566 EOF
6567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6568 { (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6570 if test -z "$ac_err"; then
6571   rm -rf conftest*
6572   eval "ac_cv_header_$ac_safe=yes"
6573 else
6574   echo "$ac_err" >&5
6575   echo "configure: failed program was:" >&5
6576   cat conftest.$ac_ext >&5
6577   rm -rf conftest*
6578   eval "ac_cv_header_$ac_safe=no"
6579 fi
6580 rm -f conftest*
6581 fi
6582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6583   echo "$ac_t""yes" 1>&6
6584     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6585   cat >> confdefs.h <<EOF
6586 #define $ac_tr_hdr 1
6587 EOF
6588  ac_has_wctype_h=yes
6589 else
6590   echo "$ac_t""no" 1>&6
6591 ac_has_wctype_h=no
6592 fi
6593 done
6594
6595   
6596     if test x"$ac_has_wchar_h" = xyes &&
6597      test x"$ac_has_wctype_h" = xyes &&
6598      test x"$enable_c_mbchar" != xno; then
6599       
6600             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6601 echo "configure:6602: checking for WCHAR_MIN and WCHAR_MAX" >&5
6602     cat > conftest.$ac_ext <<EOF
6603 #line 6604 "configure"
6604 #include "confdefs.h"
6605 #include <wchar.h>
6606 int main() {
6607 int i = WCHAR_MIN; int j = WCHAR_MAX;
6608 ; return 0; }
6609 EOF
6610 if { (eval echo configure:6611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6611   rm -rf conftest*
6612   has_wchar_minmax=yes
6613 else
6614   echo "configure: failed program was:" >&5
6615   cat conftest.$ac_ext >&5
6616   rm -rf conftest*
6617   has_wchar_minmax=no
6618 fi
6619 rm -f conftest*
6620     echo "$ac_t""$has_wchar_minmax" 1>&6
6621     
6622             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6623 echo "configure:6624: checking for WEOF" >&5
6624     cat > conftest.$ac_ext <<EOF
6625 #line 6626 "configure"
6626 #include "confdefs.h"
6627
6628       #include <wchar.h>
6629       #include <stddef.h>
6630 int main() {
6631 wint_t i = WEOF;
6632 ; return 0; }
6633 EOF
6634 if { (eval echo configure:6635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6635   rm -rf conftest*
6636   has_weof=yes
6637 else
6638   echo "configure: failed program was:" >&5
6639   cat conftest.$ac_ext >&5
6640   rm -rf conftest*
6641   has_weof=no
6642 fi
6643 rm -f conftest*
6644     echo "$ac_t""$has_weof" 1>&6
6645   
6646         ac_wfuncs=yes
6647     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6648 do
6649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6650 echo "configure:6651: checking for $ac_func" >&5
6651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6652   echo $ac_n "(cached) $ac_c" 1>&6
6653 else
6654   cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 /* System header to define __stub macros and hopefully few prototypes,
6658     which can conflict with char $ac_func(); below.  */
6659 #include <assert.h>
6660 /* Override any gcc2 internal prototype to avoid an error.  */
6661 /* We use char because int might match the return type of a gcc2
6662     builtin and then its argument prototype would still apply.  */
6663 char $ac_func();
6664
6665 int main() {
6666
6667 /* The GNU C library defines this for functions which it implements
6668     to always fail with ENOSYS.  Some functions are actually named
6669     something starting with __ and the normal name is an alias.  */
6670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6671 choke me
6672 #else
6673 $ac_func();
6674 #endif
6675
6676 ; return 0; }
6677 EOF
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6679   rm -rf conftest*
6680   eval "ac_cv_func_$ac_func=yes"
6681 else
6682   echo "configure: failed program was:" >&5
6683   cat conftest.$ac_ext >&5
6684   rm -rf conftest*
6685   eval "ac_cv_func_$ac_func=no"
6686 fi
6687 rm -f conftest*
6688 fi
6689
6690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6691   echo "$ac_t""yes" 1>&6
6692     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6693   cat >> confdefs.h <<EOF
6694 #define $ac_tr_func 1
6695 EOF
6696  
6697 else
6698   echo "$ac_t""no" 1>&6
6699 \
6700     ac_wfuncs=no
6701 fi
6702 done
6703
6704   
6705         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6706     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6707     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6708     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6709     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6710     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6711 do
6712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6713 echo "configure:6714: checking for $ac_func" >&5
6714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6715   echo $ac_n "(cached) $ac_c" 1>&6
6716 else
6717   cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6720 /* System header to define __stub macros and hopefully few prototypes,
6721     which can conflict with char $ac_func(); below.  */
6722 #include <assert.h>
6723 /* Override any gcc2 internal prototype to avoid an error.  */
6724 /* We use char because int might match the return type of a gcc2
6725     builtin and then its argument prototype would still apply.  */
6726 char $ac_func();
6727
6728 int main() {
6729
6730 /* The GNU C library defines this for functions which it implements
6731     to always fail with ENOSYS.  Some functions are actually named
6732     something starting with __ and the normal name is an alias.  */
6733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6734 choke me
6735 #else
6736 $ac_func();
6737 #endif
6738
6739 ; return 0; }
6740 EOF
6741 if { (eval echo configure:6742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6742   rm -rf conftest*
6743   eval "ac_cv_func_$ac_func=yes"
6744 else
6745   echo "configure: failed program was:" >&5
6746   cat conftest.$ac_ext >&5
6747   rm -rf conftest*
6748   eval "ac_cv_func_$ac_func=no"
6749 fi
6750 rm -f conftest*
6751 fi
6752
6753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6754   echo "$ac_t""yes" 1>&6
6755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6756   cat >> confdefs.h <<EOF
6757 #define $ac_tr_func 1
6758 EOF
6759  
6760 else
6761   echo "$ac_t""no" 1>&6
6762 \
6763     ac_wfuncs=no
6764 fi
6765 done
6766
6767
6768     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6769 echo "configure:6770: checking for ISO C99 wchar_t support" >&5
6770     if test x"$has_weof" = xyes &&
6771        test x"$has_wchar_minmax" = xyes &&
6772        test x"$ac_wfuncs" = xyes; then
6773       ac_isoC99_wchar_t=yes
6774     else
6775       ac_isoC99_wchar_t=no
6776     fi
6777     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6778   
6779             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6780 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6781 echo "configure:6782: checking for iconv.h" >&5
6782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6783   echo $ac_n "(cached) $ac_c" 1>&6
6784 else
6785   cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 #include <iconv.h>
6789 EOF
6790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6791 { (eval echo configure:6792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6793 if test -z "$ac_err"; then
6794   rm -rf conftest*
6795   eval "ac_cv_header_$ac_safe=yes"
6796 else
6797   echo "$ac_err" >&5
6798   echo "configure: failed program was:" >&5
6799   cat conftest.$ac_ext >&5
6800   rm -rf conftest*
6801   eval "ac_cv_header_$ac_safe=no"
6802 fi
6803 rm -f conftest*
6804 fi
6805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6806   echo "$ac_t""yes" 1>&6
6807   ac_has_iconv_h=yes
6808 else
6809   echo "$ac_t""no" 1>&6
6810 ac_has_iconv_h=no
6811 fi
6812
6813     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6814 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6815 echo "configure:6816: checking for langinfo.h" >&5
6816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6817   echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819   cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 #include <langinfo.h>
6823 EOF
6824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6825 { (eval echo configure:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6827 if test -z "$ac_err"; then
6828   rm -rf conftest*
6829   eval "ac_cv_header_$ac_safe=yes"
6830 else
6831   echo "$ac_err" >&5
6832   echo "configure: failed program was:" >&5
6833   cat conftest.$ac_ext >&5
6834   rm -rf conftest*
6835   eval "ac_cv_header_$ac_safe=no"
6836 fi
6837 rm -f conftest*
6838 fi
6839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6840   echo "$ac_t""yes" 1>&6
6841   ac_has_langinfo_h=yes
6842 else
6843   echo "$ac_t""no" 1>&6
6844 ac_has_langinfo_h=no
6845 fi
6846
6847
6848         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6849 echo "configure:6850: checking for iconv in -liconv" >&5
6850 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6852   echo $ac_n "(cached) $ac_c" 1>&6
6853 else
6854   ac_save_LIBS="$LIBS"
6855 LIBS="-liconv  $LIBS"
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 /* Override any gcc2 internal prototype to avoid an error.  */
6860 /* We use char because int might match the return type of a gcc2
6861     builtin and then its argument prototype would still apply.  */
6862 char iconv();
6863
6864 int main() {
6865 iconv()
6866 ; return 0; }
6867 EOF
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6869   rm -rf conftest*
6870   eval "ac_cv_lib_$ac_lib_var=yes"
6871 else
6872   echo "configure: failed program was:" >&5
6873   cat conftest.$ac_ext >&5
6874   rm -rf conftest*
6875   eval "ac_cv_lib_$ac_lib_var=no"
6876 fi
6877 rm -f conftest*
6878 LIBS="$ac_save_LIBS"
6879
6880 fi
6881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6882   echo "$ac_t""yes" 1>&6
6883   libiconv="-liconv"
6884 else
6885   echo "$ac_t""no" 1>&6
6886 fi
6887
6888     ac_save_LIBS="$LIBS"
6889     LIBS="$LIBS $libiconv"
6890
6891     for ac_func in iconv_open iconv_close iconv nl_langinfo
6892 do
6893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6894 echo "configure:6895: checking for $ac_func" >&5
6895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6896   echo $ac_n "(cached) $ac_c" 1>&6
6897 else
6898   cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 /* System header to define __stub macros and hopefully few prototypes,
6902     which can conflict with char $ac_func(); below.  */
6903 #include <assert.h>
6904 /* Override any gcc2 internal prototype to avoid an error.  */
6905 /* We use char because int might match the return type of a gcc2
6906     builtin and then its argument prototype would still apply.  */
6907 char $ac_func();
6908
6909 int main() {
6910
6911 /* The GNU C library defines this for functions which it implements
6912     to always fail with ENOSYS.  Some functions are actually named
6913     something starting with __ and the normal name is an alias.  */
6914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6915 choke me
6916 #else
6917 $ac_func();
6918 #endif
6919
6920 ; return 0; }
6921 EOF
6922 if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6923   rm -rf conftest*
6924   eval "ac_cv_func_$ac_func=yes"
6925 else
6926   echo "configure: failed program was:" >&5
6927   cat conftest.$ac_ext >&5
6928   rm -rf conftest*
6929   eval "ac_cv_func_$ac_func=no"
6930 fi
6931 rm -f conftest*
6932 fi
6933
6934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6935   echo "$ac_t""yes" 1>&6
6936     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6937   cat >> confdefs.h <<EOF
6938 #define $ac_tr_func 1
6939 EOF
6940  \
6941     ac_XPG2funcs=yes
6942 else
6943   echo "$ac_t""no" 1>&6
6944 ac_XPG2funcs=no
6945 fi
6946 done
6947
6948   
6949     LIBS="$ac_save_LIBS"
6950
6951     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6952 echo "configure:6953: checking for XPG2 wchar_t support" >&5
6953     if test x"$ac_has_iconv_h" = xyes &&
6954        test x"$ac_has_langinfo_h" = xyes &&
6955        test x"$ac_XPG2funcs" = xyes; then
6956       ac_XPG2_wchar_t=yes
6957     else
6958       ac_XPG2_wchar_t=no
6959     fi
6960     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6961   
6962             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6963 echo "configure:6964: checking for enabled wchar_t specializations" >&5
6964     if test x"$ac_isoC99_wchar_t" = xyes &&
6965        test x"$ac_XPG2_wchar_t" = xyes; then
6966       cat >> confdefs.h <<\EOF
6967 #define _GLIBCPP_USE_WCHAR_T 1
6968 EOF
6969
6970       echo "$ac_t"""yes"" 1>&6
6971     else
6972       echo "$ac_t"""no"" 1>&6
6973     fi
6974   else
6975         echo "configure: warning: wchar_t support disabled." 1>&2
6976   fi
6977
6978       os_include_dir="os/bsd/netbsd"
6979       cat >> confdefs.h <<\EOF
6980 #define HAVE_COPYSIGN 1
6981 EOF
6982
6983       cat >> confdefs.h <<\EOF
6984 #define HAVE_COPYSIGNF 1
6985 EOF
6986
6987       cat >> confdefs.h <<\EOF
6988 #define HAVE_FINITEF 1
6989 EOF
6990
6991       cat >> confdefs.h <<\EOF
6992 #define HAVE_FINITE 1
6993 EOF
6994
6995       cat >> confdefs.h <<\EOF
6996 #define HAVE_FREXPF 1
6997 EOF
6998
6999       cat >> confdefs.h <<\EOF
7000 #define HAVE_HYPOTF 1
7001 EOF
7002
7003       cat >> confdefs.h <<\EOF
7004 #define HAVE_ISINF 1
7005 EOF
7006
7007       cat >> confdefs.h <<\EOF
7008 #define HAVE_ISINFF 1
7009 EOF
7010
7011       cat >> confdefs.h <<\EOF
7012 #define HAVE_ISNAN 1
7013 EOF
7014
7015       cat >> confdefs.h <<\EOF
7016 #define HAVE_ISNANF 1
7017 EOF
7018
7019       if test x"long_double_math_on_this_cpu" = x"yes"; then
7020         cat >> confdefs.h <<\EOF
7021 #define HAVE_FINITEL 1
7022 EOF
7023
7024         cat >> confdefs.h <<\EOF
7025 #define HAVE_ISINFL 1
7026 EOF
7027
7028         cat >> confdefs.h <<\EOF
7029 #define HAVE_ISNANL 1
7030 EOF
7031
7032       fi
7033       ;;
7034     *-freebsd*)
7035       # Check for available headers.
7036       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7037         machine/endian.h machine/param.h sys/machine.h sys/types.h \
7038         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7039         sys/time.h unistd.h
7040 do
7041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7043 echo "configure:7044: checking for $ac_hdr" >&5
7044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7045   echo $ac_n "(cached) $ac_c" 1>&6
7046 else
7047   cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 #include <$ac_hdr>
7051 EOF
7052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7053 { (eval echo configure:7054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7055 if test -z "$ac_err"; then
7056   rm -rf conftest*
7057   eval "ac_cv_header_$ac_safe=yes"
7058 else
7059   echo "$ac_err" >&5
7060   echo "configure: failed program was:" >&5
7061   cat conftest.$ac_ext >&5
7062   rm -rf conftest*
7063   eval "ac_cv_header_$ac_safe=no"
7064 fi
7065 rm -f conftest*
7066 fi
7067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7068   echo "$ac_t""yes" 1>&6
7069     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7070   cat >> confdefs.h <<EOF
7071 #define $ac_tr_hdr 1
7072 EOF
7073  
7074 else
7075   echo "$ac_t""no" 1>&6
7076 fi
7077 done
7078
7079       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7080        
7081       
7082   # If we're not using GNU ld, then there's no point in even trying these
7083   # tests.  Check for that first.  We should have already tested for gld
7084   # by now (in libtool), but require it now just to be safe...
7085   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7086   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7087   
7088
7089   # The name set by libtool depends on the version of libtool.  Shame on us
7090   # for depending on an impl detail, but c'est la vie.  Older versions used
7091   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7092   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7093   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7094   # set (hence we're using an older libtool), then set it.
7095   if test x${with_gnu_ld+set} != xset; then
7096     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7097       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7098       with_gnu_ld=no
7099     else
7100       with_gnu_ld=$ac_cv_prog_gnu_ld
7101     fi
7102   fi
7103
7104   # Start by getting the version number.  I think the libtool test already
7105   # does some of this, but throws away the result.
7106   
7107   ldver=`$LD --version 2>/dev/null | head -1 | \
7108          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7109   
7110   glibcpp_gnu_ld_version=`echo $ldver | \
7111          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7112
7113   # Set --gc-sections.
7114   if test "$with_gnu_ld" = "notbroken"; then
7115     # GNU ld it is!  Joy and bunny rabbits!
7116
7117     # All these tests are for C++; save the language and the compiler flags.
7118     # Need to do this so that g++ won't try to link in libstdc++
7119     ac_test_CFLAGS="${CFLAGS+set}"
7120     ac_save_CFLAGS="$CFLAGS"
7121     CFLAGS='-x c++  -Wl,--gc-sections'
7122
7123     # Check for -Wl,--gc-sections
7124     # XXX This test is broken at the moment, as symbols required for
7125     # linking are now in libsupc++ (not built yet.....). In addition, 
7126     # this test has cored on solaris in the past. In addition,
7127     # --gc-sections doesn't really work at the moment (keeps on discarding
7128     # used sections, first .eh_frame and now some of the glibc sections for
7129     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7130     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7131 echo "configure:7132: checking for ld that supports -Wl,--gc-sections" >&5
7132     if test "$cross_compiling" = yes; then
7133   ac_sectionLDflags=yes
7134 else
7135   cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138
7139      int main(void) 
7140      {
7141        try { throw 1; }
7142        catch (...) { };
7143        return 0;
7144      }
7145     
7146 EOF
7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7148 then
7149   ac_sectionLDflags=yes
7150 else
7151   echo "configure: failed program was:" >&5
7152   cat conftest.$ac_ext >&5
7153   rm -fr conftest*
7154   ac_sectionLDflags=no
7155 fi
7156 rm -fr conftest*
7157 fi
7158
7159     if test "$ac_test_CFLAGS" = set; then
7160       CFLAGS="$ac_save_CFLAGS"
7161     else
7162       # this is the suspicious part
7163       CFLAGS=''
7164     fi
7165     if test "$ac_sectionLDflags" = "yes"; then
7166       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7167     fi
7168     echo "$ac_t""$ac_sectionLDflags" 1>&6
7169   fi
7170
7171   # Set linker optimization flags.
7172   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7173     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7174   fi
7175
7176   
7177   
7178
7179       
7180     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7181 echo "configure:7182: checking for main in -lm" >&5
7182 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7184   echo $ac_n "(cached) $ac_c" 1>&6
7185 else
7186   ac_save_LIBS="$LIBS"
7187 LIBS="-lm  $LIBS"
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191
7192 int main() {
7193 main()
7194 ; return 0; }
7195 EOF
7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7197   rm -rf conftest*
7198   eval "ac_cv_lib_$ac_lib_var=yes"
7199 else
7200   echo "configure: failed program was:" >&5
7201   cat conftest.$ac_ext >&5
7202   rm -rf conftest*
7203   eval "ac_cv_lib_$ac_lib_var=no"
7204 fi
7205 rm -f conftest*
7206 LIBS="$ac_save_LIBS"
7207
7208 fi
7209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7210   echo "$ac_t""yes" 1>&6
7211     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7212     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7213   cat >> confdefs.h <<EOF
7214 #define $ac_tr_lib 1
7215 EOF
7216
7217   LIBS="-lm $LIBS"
7218
7219 else
7220   echo "$ac_t""no" 1>&6
7221 fi
7222
7223   for ac_func in nan copysignf
7224 do
7225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7226 echo "configure:7227: checking for $ac_func" >&5
7227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7228   echo $ac_n "(cached) $ac_c" 1>&6
7229 else
7230   cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* System header to define __stub macros and hopefully few prototypes,
7234     which can conflict with char $ac_func(); below.  */
7235 #include <assert.h>
7236 /* Override any gcc2 internal prototype to avoid an error.  */
7237 /* We use char because int might match the return type of a gcc2
7238     builtin and then its argument prototype would still apply.  */
7239 char $ac_func();
7240
7241 int main() {
7242
7243 /* The GNU C library defines this for functions which it implements
7244     to always fail with ENOSYS.  Some functions are actually named
7245     something starting with __ and the normal name is an alias.  */
7246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7247 choke me
7248 #else
7249 $ac_func();
7250 #endif
7251
7252 ; return 0; }
7253 EOF
7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255   rm -rf conftest*
7256   eval "ac_cv_func_$ac_func=yes"
7257 else
7258   echo "configure: failed program was:" >&5
7259   cat conftest.$ac_ext >&5
7260   rm -rf conftest*
7261   eval "ac_cv_func_$ac_func=no"
7262 fi
7263 rm -f conftest*
7264 fi
7265
7266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7267   echo "$ac_t""yes" 1>&6
7268     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7269   cat >> confdefs.h <<EOF
7270 #define $ac_tr_func 1
7271 EOF
7272  
7273 else
7274   echo "$ac_t""no" 1>&6
7275 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7276 fi
7277 done
7278
7279
7280     for ac_func in __signbit
7281 do
7282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7283 echo "configure:7284: checking for $ac_func" >&5
7284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7285   echo $ac_n "(cached) $ac_c" 1>&6
7286 else
7287   cat > conftest.$ac_ext <<EOF
7288 #line 7289 "configure"
7289 #include "confdefs.h"
7290 /* System header to define __stub macros and hopefully few prototypes,
7291     which can conflict with char $ac_func(); below.  */
7292 #include <assert.h>
7293 /* Override any gcc2 internal prototype to avoid an error.  */
7294 /* We use char because int might match the return type of a gcc2
7295     builtin and then its argument prototype would still apply.  */
7296 char $ac_func();
7297
7298 int main() {
7299
7300 /* The GNU C library defines this for functions which it implements
7301     to always fail with ENOSYS.  Some functions are actually named
7302     something starting with __ and the normal name is an alias.  */
7303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7304 choke me
7305 #else
7306 $ac_func();
7307 #endif
7308
7309 ; return 0; }
7310 EOF
7311 if { (eval echo configure:7312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7312   rm -rf conftest*
7313   eval "ac_cv_func_$ac_func=yes"
7314 else
7315   echo "configure: failed program was:" >&5
7316   cat conftest.$ac_ext >&5
7317   rm -rf conftest*
7318   eval "ac_cv_func_$ac_func=no"
7319 fi
7320 rm -f conftest*
7321 fi
7322
7323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7324   echo "$ac_t""yes" 1>&6
7325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7326   cat >> confdefs.h <<EOF
7327 #define $ac_tr_func 1
7328 EOF
7329  
7330 else
7331   echo "$ac_t""no" 1>&6
7332 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7333 fi
7334 done
7335
7336   for ac_func in __signbitf
7337 do
7338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7339 echo "configure:7340: checking for $ac_func" >&5
7340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7341   echo $ac_n "(cached) $ac_c" 1>&6
7342 else
7343   cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 /* System header to define __stub macros and hopefully few prototypes,
7347     which can conflict with char $ac_func(); below.  */
7348 #include <assert.h>
7349 /* Override any gcc2 internal prototype to avoid an error.  */
7350 /* We use char because int might match the return type of a gcc2
7351     builtin and then its argument prototype would still apply.  */
7352 char $ac_func();
7353
7354 int main() {
7355
7356 /* The GNU C library defines this for functions which it implements
7357     to always fail with ENOSYS.  Some functions are actually named
7358     something starting with __ and the normal name is an alias.  */
7359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7360 choke me
7361 #else
7362 $ac_func();
7363 #endif
7364
7365 ; return 0; }
7366 EOF
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7368   rm -rf conftest*
7369   eval "ac_cv_func_$ac_func=yes"
7370 else
7371   echo "configure: failed program was:" >&5
7372   cat conftest.$ac_ext >&5
7373   rm -rf conftest*
7374   eval "ac_cv_func_$ac_func=no"
7375 fi
7376 rm -f conftest*
7377 fi
7378
7379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7380   echo "$ac_t""yes" 1>&6
7381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7382   cat >> confdefs.h <<EOF
7383 #define $ac_tr_func 1
7384 EOF
7385  
7386 else
7387   echo "$ac_t""no" 1>&6
7388 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7389 fi
7390 done
7391
7392
7393           if test x$ac_cv_func_copysignl = x"yes"; then
7394     for ac_func in __signbitl
7395 do
7396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_func" >&5
7398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7399   echo $ac_n "(cached) $ac_c" 1>&6
7400 else
7401   cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 /* System header to define __stub macros and hopefully few prototypes,
7405     which can conflict with char $ac_func(); below.  */
7406 #include <assert.h>
7407 /* Override any gcc2 internal prototype to avoid an error.  */
7408 /* We use char because int might match the return type of a gcc2
7409     builtin and then its argument prototype would still apply.  */
7410 char $ac_func();
7411
7412 int main() {
7413
7414 /* The GNU C library defines this for functions which it implements
7415     to always fail with ENOSYS.  Some functions are actually named
7416     something starting with __ and the normal name is an alias.  */
7417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7418 choke me
7419 #else
7420 $ac_func();
7421 #endif
7422
7423 ; return 0; }
7424 EOF
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7426   rm -rf conftest*
7427   eval "ac_cv_func_$ac_func=yes"
7428 else
7429   echo "configure: failed program was:" >&5
7430   cat conftest.$ac_ext >&5
7431   rm -rf conftest*
7432   eval "ac_cv_func_$ac_func=no"
7433 fi
7434 rm -f conftest*
7435 fi
7436
7437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7438   echo "$ac_t""yes" 1>&6
7439     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7440   cat >> confdefs.h <<EOF
7441 #define $ac_tr_func 1
7442 EOF
7443  
7444 else
7445   echo "$ac_t""no" 1>&6
7446 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7447 fi
7448 done
7449
7450   fi
7451
7452   
7453
7454       
7455
7456       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7457 echo "configure:7458: checking for mbstate_t" >&5
7458   cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 #include <wchar.h>
7462 int main() {
7463 mbstate_t teststate;
7464 ; return 0; }
7465 EOF
7466 if { (eval echo configure:7467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7467   rm -rf conftest*
7468   have_mbstate_t=yes
7469 else
7470   echo "configure: failed program was:" >&5
7471   cat conftest.$ac_ext >&5
7472   rm -rf conftest*
7473   have_mbstate_t=no
7474 fi
7475 rm -f conftest*
7476   echo "$ac_t""$have_mbstate_t" 1>&6
7477   if test x"$have_mbstate_t" = xyes; then
7478     cat >> confdefs.h <<\EOF
7479 #define HAVE_MBSTATE_T 1
7480 EOF
7481
7482   fi
7483
7484     for ac_hdr in wchar.h
7485 do
7486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7488 echo "configure:7489: checking for $ac_hdr" >&5
7489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7490   echo $ac_n "(cached) $ac_c" 1>&6
7491 else
7492   cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 #include <$ac_hdr>
7496 EOF
7497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7498 { (eval echo configure:7499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7500 if test -z "$ac_err"; then
7501   rm -rf conftest*
7502   eval "ac_cv_header_$ac_safe=yes"
7503 else
7504   echo "$ac_err" >&5
7505   echo "configure: failed program was:" >&5
7506   cat conftest.$ac_ext >&5
7507   rm -rf conftest*
7508   eval "ac_cv_header_$ac_safe=no"
7509 fi
7510 rm -f conftest*
7511 fi
7512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7513   echo "$ac_t""yes" 1>&6
7514     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7515   cat >> confdefs.h <<EOF
7516 #define $ac_tr_hdr 1
7517 EOF
7518  ac_has_wchar_h=yes
7519 else
7520   echo "$ac_t""no" 1>&6
7521 ac_has_wchar_h=no
7522 fi
7523 done
7524
7525   for ac_hdr in wctype.h
7526 do
7527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_hdr" >&5
7530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7531   echo $ac_n "(cached) $ac_c" 1>&6
7532 else
7533   cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 #include <$ac_hdr>
7537 EOF
7538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7539 { (eval echo configure:7540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7541 if test -z "$ac_err"; then
7542   rm -rf conftest*
7543   eval "ac_cv_header_$ac_safe=yes"
7544 else
7545   echo "$ac_err" >&5
7546   echo "configure: failed program was:" >&5
7547   cat conftest.$ac_ext >&5
7548   rm -rf conftest*
7549   eval "ac_cv_header_$ac_safe=no"
7550 fi
7551 rm -f conftest*
7552 fi
7553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7554   echo "$ac_t""yes" 1>&6
7555     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7556   cat >> confdefs.h <<EOF
7557 #define $ac_tr_hdr 1
7558 EOF
7559  ac_has_wctype_h=yes
7560 else
7561   echo "$ac_t""no" 1>&6
7562 ac_has_wctype_h=no
7563 fi
7564 done
7565
7566   
7567     if test x"$ac_has_wchar_h" = xyes &&
7568      test x"$ac_has_wctype_h" = xyes &&
7569      test x"$enable_c_mbchar" != xno; then
7570       
7571             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7572 echo "configure:7573: checking for WCHAR_MIN and WCHAR_MAX" >&5
7573     cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 #include <wchar.h>
7577 int main() {
7578 int i = WCHAR_MIN; int j = WCHAR_MAX;
7579 ; return 0; }
7580 EOF
7581 if { (eval echo configure:7582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7582   rm -rf conftest*
7583   has_wchar_minmax=yes
7584 else
7585   echo "configure: failed program was:" >&5
7586   cat conftest.$ac_ext >&5
7587   rm -rf conftest*
7588   has_wchar_minmax=no
7589 fi
7590 rm -f conftest*
7591     echo "$ac_t""$has_wchar_minmax" 1>&6
7592     
7593             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7594 echo "configure:7595: checking for WEOF" >&5
7595     cat > conftest.$ac_ext <<EOF
7596 #line 7597 "configure"
7597 #include "confdefs.h"
7598
7599       #include <wchar.h>
7600       #include <stddef.h>
7601 int main() {
7602 wint_t i = WEOF;
7603 ; return 0; }
7604 EOF
7605 if { (eval echo configure:7606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7606   rm -rf conftest*
7607   has_weof=yes
7608 else
7609   echo "configure: failed program was:" >&5
7610   cat conftest.$ac_ext >&5
7611   rm -rf conftest*
7612   has_weof=no
7613 fi
7614 rm -f conftest*
7615     echo "$ac_t""$has_weof" 1>&6
7616   
7617         ac_wfuncs=yes
7618     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7619 do
7620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7621 echo "configure:7622: checking for $ac_func" >&5
7622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7623   echo $ac_n "(cached) $ac_c" 1>&6
7624 else
7625   cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 /* System header to define __stub macros and hopefully few prototypes,
7629     which can conflict with char $ac_func(); below.  */
7630 #include <assert.h>
7631 /* Override any gcc2 internal prototype to avoid an error.  */
7632 /* We use char because int might match the return type of a gcc2
7633     builtin and then its argument prototype would still apply.  */
7634 char $ac_func();
7635
7636 int main() {
7637
7638 /* The GNU C library defines this for functions which it implements
7639     to always fail with ENOSYS.  Some functions are actually named
7640     something starting with __ and the normal name is an alias.  */
7641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7642 choke me
7643 #else
7644 $ac_func();
7645 #endif
7646
7647 ; return 0; }
7648 EOF
7649 if { (eval echo configure:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7650   rm -rf conftest*
7651   eval "ac_cv_func_$ac_func=yes"
7652 else
7653   echo "configure: failed program was:" >&5
7654   cat conftest.$ac_ext >&5
7655   rm -rf conftest*
7656   eval "ac_cv_func_$ac_func=no"
7657 fi
7658 rm -f conftest*
7659 fi
7660
7661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7662   echo "$ac_t""yes" 1>&6
7663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7664   cat >> confdefs.h <<EOF
7665 #define $ac_tr_func 1
7666 EOF
7667  
7668 else
7669   echo "$ac_t""no" 1>&6
7670 \
7671     ac_wfuncs=no
7672 fi
7673 done
7674
7675   
7676         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7677     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7678     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7679     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7680     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7681     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7682 do
7683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7684 echo "configure:7685: checking for $ac_func" >&5
7685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7686   echo $ac_n "(cached) $ac_c" 1>&6
7687 else
7688   cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7691 /* System header to define __stub macros and hopefully few prototypes,
7692     which can conflict with char $ac_func(); below.  */
7693 #include <assert.h>
7694 /* Override any gcc2 internal prototype to avoid an error.  */
7695 /* We use char because int might match the return type of a gcc2
7696     builtin and then its argument prototype would still apply.  */
7697 char $ac_func();
7698
7699 int main() {
7700
7701 /* The GNU C library defines this for functions which it implements
7702     to always fail with ENOSYS.  Some functions are actually named
7703     something starting with __ and the normal name is an alias.  */
7704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7705 choke me
7706 #else
7707 $ac_func();
7708 #endif
7709
7710 ; return 0; }
7711 EOF
7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7713   rm -rf conftest*
7714   eval "ac_cv_func_$ac_func=yes"
7715 else
7716   echo "configure: failed program was:" >&5
7717   cat conftest.$ac_ext >&5
7718   rm -rf conftest*
7719   eval "ac_cv_func_$ac_func=no"
7720 fi
7721 rm -f conftest*
7722 fi
7723
7724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7725   echo "$ac_t""yes" 1>&6
7726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7727   cat >> confdefs.h <<EOF
7728 #define $ac_tr_func 1
7729 EOF
7730  
7731 else
7732   echo "$ac_t""no" 1>&6
7733 \
7734     ac_wfuncs=no
7735 fi
7736 done
7737
7738
7739     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7740 echo "configure:7741: checking for ISO C99 wchar_t support" >&5
7741     if test x"$has_weof" = xyes &&
7742        test x"$has_wchar_minmax" = xyes &&
7743        test x"$ac_wfuncs" = xyes; then
7744       ac_isoC99_wchar_t=yes
7745     else
7746       ac_isoC99_wchar_t=no
7747     fi
7748     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7749   
7750             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7751 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7752 echo "configure:7753: checking for iconv.h" >&5
7753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7754   echo $ac_n "(cached) $ac_c" 1>&6
7755 else
7756   cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7759 #include <iconv.h>
7760 EOF
7761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7762 { (eval echo configure:7763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7764 if test -z "$ac_err"; then
7765   rm -rf conftest*
7766   eval "ac_cv_header_$ac_safe=yes"
7767 else
7768   echo "$ac_err" >&5
7769   echo "configure: failed program was:" >&5
7770   cat conftest.$ac_ext >&5
7771   rm -rf conftest*
7772   eval "ac_cv_header_$ac_safe=no"
7773 fi
7774 rm -f conftest*
7775 fi
7776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7777   echo "$ac_t""yes" 1>&6
7778   ac_has_iconv_h=yes
7779 else
7780   echo "$ac_t""no" 1>&6
7781 ac_has_iconv_h=no
7782 fi
7783
7784     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7785 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7786 echo "configure:7787: checking for langinfo.h" >&5
7787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7788   echo $ac_n "(cached) $ac_c" 1>&6
7789 else
7790   cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 #include <langinfo.h>
7794 EOF
7795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7796 { (eval echo configure:7797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7798 if test -z "$ac_err"; then
7799   rm -rf conftest*
7800   eval "ac_cv_header_$ac_safe=yes"
7801 else
7802   echo "$ac_err" >&5
7803   echo "configure: failed program was:" >&5
7804   cat conftest.$ac_ext >&5
7805   rm -rf conftest*
7806   eval "ac_cv_header_$ac_safe=no"
7807 fi
7808 rm -f conftest*
7809 fi
7810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7811   echo "$ac_t""yes" 1>&6
7812   ac_has_langinfo_h=yes
7813 else
7814   echo "$ac_t""no" 1>&6
7815 ac_has_langinfo_h=no
7816 fi
7817
7818
7819         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7820 echo "configure:7821: checking for iconv in -liconv" >&5
7821 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7823   echo $ac_n "(cached) $ac_c" 1>&6
7824 else
7825   ac_save_LIBS="$LIBS"
7826 LIBS="-liconv  $LIBS"
7827 cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7830 /* Override any gcc2 internal prototype to avoid an error.  */
7831 /* We use char because int might match the return type of a gcc2
7832     builtin and then its argument prototype would still apply.  */
7833 char iconv();
7834
7835 int main() {
7836 iconv()
7837 ; return 0; }
7838 EOF
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7840   rm -rf conftest*
7841   eval "ac_cv_lib_$ac_lib_var=yes"
7842 else
7843   echo "configure: failed program was:" >&5
7844   cat conftest.$ac_ext >&5
7845   rm -rf conftest*
7846   eval "ac_cv_lib_$ac_lib_var=no"
7847 fi
7848 rm -f conftest*
7849 LIBS="$ac_save_LIBS"
7850
7851 fi
7852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7853   echo "$ac_t""yes" 1>&6
7854   libiconv="-liconv"
7855 else
7856   echo "$ac_t""no" 1>&6
7857 fi
7858
7859     ac_save_LIBS="$LIBS"
7860     LIBS="$LIBS $libiconv"
7861
7862     for ac_func in iconv_open iconv_close iconv nl_langinfo
7863 do
7864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7865 echo "configure:7866: checking for $ac_func" >&5
7866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7867   echo $ac_n "(cached) $ac_c" 1>&6
7868 else
7869   cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7872 /* System header to define __stub macros and hopefully few prototypes,
7873     which can conflict with char $ac_func(); below.  */
7874 #include <assert.h>
7875 /* Override any gcc2 internal prototype to avoid an error.  */
7876 /* We use char because int might match the return type of a gcc2
7877     builtin and then its argument prototype would still apply.  */
7878 char $ac_func();
7879
7880 int main() {
7881
7882 /* The GNU C library defines this for functions which it implements
7883     to always fail with ENOSYS.  Some functions are actually named
7884     something starting with __ and the normal name is an alias.  */
7885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7886 choke me
7887 #else
7888 $ac_func();
7889 #endif
7890
7891 ; return 0; }
7892 EOF
7893 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7894   rm -rf conftest*
7895   eval "ac_cv_func_$ac_func=yes"
7896 else
7897   echo "configure: failed program was:" >&5
7898   cat conftest.$ac_ext >&5
7899   rm -rf conftest*
7900   eval "ac_cv_func_$ac_func=no"
7901 fi
7902 rm -f conftest*
7903 fi
7904
7905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7906   echo "$ac_t""yes" 1>&6
7907     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7908   cat >> confdefs.h <<EOF
7909 #define $ac_tr_func 1
7910 EOF
7911  \
7912     ac_XPG2funcs=yes
7913 else
7914   echo "$ac_t""no" 1>&6
7915 ac_XPG2funcs=no
7916 fi
7917 done
7918
7919   
7920     LIBS="$ac_save_LIBS"
7921
7922     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7923 echo "configure:7924: checking for XPG2 wchar_t support" >&5
7924     if test x"$ac_has_iconv_h" = xyes &&
7925        test x"$ac_has_langinfo_h" = xyes &&
7926        test x"$ac_XPG2funcs" = xyes; then
7927       ac_XPG2_wchar_t=yes
7928     else
7929       ac_XPG2_wchar_t=no
7930     fi
7931     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7932   
7933             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7934 echo "configure:7935: checking for enabled wchar_t specializations" >&5
7935     if test x"$ac_isoC99_wchar_t" = xyes &&
7936        test x"$ac_XPG2_wchar_t" = xyes; then
7937       cat >> confdefs.h <<\EOF
7938 #define _GLIBCPP_USE_WCHAR_T 1
7939 EOF
7940
7941       echo "$ac_t"""yes"" 1>&6
7942     else
7943       echo "$ac_t"""no"" 1>&6
7944     fi
7945   else
7946         echo "configure: warning: wchar_t support disabled." 1>&2
7947   fi
7948
7949       os_include_dir="os/bsd/freebsd"
7950       cat >> confdefs.h <<\EOF
7951 #define HAVE_LC_MESSAGES 1
7952 EOF
7953
7954       cat >> confdefs.h <<\EOF
7955 #define HAVE_DRAND48 1
7956 EOF
7957
7958       cat >> confdefs.h <<\EOF
7959 #define HAVE_GETPAGESIZE 1
7960 EOF
7961
7962       cat >> confdefs.h <<\EOF
7963 #define HAVE_SETENV 1
7964 EOF
7965
7966       cat >> confdefs.h <<\EOF
7967 #define HAVE_SIGSETJMP 1
7968 EOF
7969
7970       cat >> confdefs.h <<\EOF
7971 #define HAVE_COPYSIGN 1
7972 EOF
7973
7974       cat >> confdefs.h <<\EOF
7975 #define HAVE_COPYSIGNF 1
7976 EOF
7977
7978       cat >> confdefs.h <<\EOF
7979 #define HAVE_FINITEF 1
7980 EOF
7981
7982       cat >> confdefs.h <<\EOF
7983 #define HAVE_FINITE 1
7984 EOF
7985
7986       cat >> confdefs.h <<\EOF
7987 #define HAVE_FREXPF 1
7988 EOF
7989
7990       cat >> confdefs.h <<\EOF
7991 #define HAVE_HYPOT 1
7992 EOF
7993
7994       cat >> confdefs.h <<\EOF
7995 #define HAVE_HYPOTF 1
7996 EOF
7997
7998       cat >> confdefs.h <<\EOF
7999 #define HAVE_ISINF 1
8000 EOF
8001
8002       cat >> confdefs.h <<\EOF
8003 #define HAVE_ISNAN 1
8004 EOF
8005
8006       cat >> confdefs.h <<\EOF
8007 #define HAVE_ISNANF 1
8008 EOF
8009
8010       if test x"long_double_math_on_this_cpu" = x"yes"; then
8011         cat >> confdefs.h <<\EOF
8012 #define HAVE_FINITEL 1
8013 EOF
8014
8015         cat >> confdefs.h <<\EOF
8016 #define HAVE_ISINFL 1
8017 EOF
8018
8019         cat >> confdefs.h <<\EOF
8020 #define HAVE_ISNANL 1
8021 EOF
8022
8023       fi
8024       ;;
8025     *-mingw32*)
8026       for ac_hdr in sys/types.h locale.h float.h
8027 do
8028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8030 echo "configure:8031: checking for $ac_hdr" >&5
8031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
8038 EOF
8039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8040 { (eval echo configure:8041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8042 if test -z "$ac_err"; then
8043   rm -rf conftest*
8044   eval "ac_cv_header_$ac_safe=yes"
8045 else
8046   echo "$ac_err" >&5
8047   echo "configure: failed program was:" >&5
8048   cat conftest.$ac_ext >&5
8049   rm -rf conftest*
8050   eval "ac_cv_header_$ac_safe=no"
8051 fi
8052 rm -f conftest*
8053 fi
8054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8055   echo "$ac_t""yes" 1>&6
8056     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8057   cat >> confdefs.h <<EOF
8058 #define $ac_tr_hdr 1
8059 EOF
8060  
8061 else
8062   echo "$ac_t""no" 1>&6
8063 fi
8064 done
8065
8066       
8067   # If we're not using GNU ld, then there's no point in even trying these
8068   # tests.  Check for that first.  We should have already tested for gld
8069   # by now (in libtool), but require it now just to be safe...
8070   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8071   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8072   
8073
8074   # The name set by libtool depends on the version of libtool.  Shame on us
8075   # for depending on an impl detail, but c'est la vie.  Older versions used
8076   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8077   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8078   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8079   # set (hence we're using an older libtool), then set it.
8080   if test x${with_gnu_ld+set} != xset; then
8081     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8082       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8083       with_gnu_ld=no
8084     else
8085       with_gnu_ld=$ac_cv_prog_gnu_ld
8086     fi
8087   fi
8088
8089   # Start by getting the version number.  I think the libtool test already
8090   # does some of this, but throws away the result.
8091   
8092   ldver=`$LD --version 2>/dev/null | head -1 | \
8093          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8094   
8095   glibcpp_gnu_ld_version=`echo $ldver | \
8096          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8097
8098   # Set --gc-sections.
8099   if test "$with_gnu_ld" = "notbroken"; then
8100     # GNU ld it is!  Joy and bunny rabbits!
8101
8102     # All these tests are for C++; save the language and the compiler flags.
8103     # Need to do this so that g++ won't try to link in libstdc++
8104     ac_test_CFLAGS="${CFLAGS+set}"
8105     ac_save_CFLAGS="$CFLAGS"
8106     CFLAGS='-x c++  -Wl,--gc-sections'
8107
8108     # Check for -Wl,--gc-sections
8109     # XXX This test is broken at the moment, as symbols required for
8110     # linking are now in libsupc++ (not built yet.....). In addition, 
8111     # this test has cored on solaris in the past. In addition,
8112     # --gc-sections doesn't really work at the moment (keeps on discarding
8113     # used sections, first .eh_frame and now some of the glibc sections for
8114     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8115     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8116 echo "configure:8117: checking for ld that supports -Wl,--gc-sections" >&5
8117     if test "$cross_compiling" = yes; then
8118   ac_sectionLDflags=yes
8119 else
8120   cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123
8124      int main(void) 
8125      {
8126        try { throw 1; }
8127        catch (...) { };
8128        return 0;
8129      }
8130     
8131 EOF
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8133 then
8134   ac_sectionLDflags=yes
8135 else
8136   echo "configure: failed program was:" >&5
8137   cat conftest.$ac_ext >&5
8138   rm -fr conftest*
8139   ac_sectionLDflags=no
8140 fi
8141 rm -fr conftest*
8142 fi
8143
8144     if test "$ac_test_CFLAGS" = set; then
8145       CFLAGS="$ac_save_CFLAGS"
8146     else
8147       # this is the suspicious part
8148       CFLAGS=''
8149     fi
8150     if test "$ac_sectionLDflags" = "yes"; then
8151       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8152     fi
8153     echo "$ac_t""$ac_sectionLDflags" 1>&6
8154   fi
8155
8156   # Set linker optimization flags.
8157   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8158     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8159   fi
8160
8161   
8162   
8163
8164       
8165     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8166 echo "configure:8167: checking for main in -lm" >&5
8167 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8169   echo $ac_n "(cached) $ac_c" 1>&6
8170 else
8171   ac_save_LIBS="$LIBS"
8172 LIBS="-lm  $LIBS"
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176
8177 int main() {
8178 main()
8179 ; return 0; }
8180 EOF
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8182   rm -rf conftest*
8183   eval "ac_cv_lib_$ac_lib_var=yes"
8184 else
8185   echo "configure: failed program was:" >&5
8186   cat conftest.$ac_ext >&5
8187   rm -rf conftest*
8188   eval "ac_cv_lib_$ac_lib_var=no"
8189 fi
8190 rm -f conftest*
8191 LIBS="$ac_save_LIBS"
8192
8193 fi
8194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8195   echo "$ac_t""yes" 1>&6
8196     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8197     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8198   cat >> confdefs.h <<EOF
8199 #define $ac_tr_lib 1
8200 EOF
8201
8202   LIBS="-lm $LIBS"
8203
8204 else
8205   echo "$ac_t""no" 1>&6
8206 fi
8207
8208   for ac_func in nan copysignf
8209 do
8210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8211 echo "configure:8212: checking for $ac_func" >&5
8212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8213   echo $ac_n "(cached) $ac_c" 1>&6
8214 else
8215   cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* System header to define __stub macros and hopefully few prototypes,
8219     which can conflict with char $ac_func(); below.  */
8220 #include <assert.h>
8221 /* Override any gcc2 internal prototype to avoid an error.  */
8222 /* We use char because int might match the return type of a gcc2
8223     builtin and then its argument prototype would still apply.  */
8224 char $ac_func();
8225
8226 int main() {
8227
8228 /* The GNU C library defines this for functions which it implements
8229     to always fail with ENOSYS.  Some functions are actually named
8230     something starting with __ and the normal name is an alias.  */
8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8232 choke me
8233 #else
8234 $ac_func();
8235 #endif
8236
8237 ; return 0; }
8238 EOF
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240   rm -rf conftest*
8241   eval "ac_cv_func_$ac_func=yes"
8242 else
8243   echo "configure: failed program was:" >&5
8244   cat conftest.$ac_ext >&5
8245   rm -rf conftest*
8246   eval "ac_cv_func_$ac_func=no"
8247 fi
8248 rm -f conftest*
8249 fi
8250
8251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8252   echo "$ac_t""yes" 1>&6
8253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8254   cat >> confdefs.h <<EOF
8255 #define $ac_tr_func 1
8256 EOF
8257  
8258 else
8259   echo "$ac_t""no" 1>&6
8260 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8261 fi
8262 done
8263
8264
8265     for ac_func in __signbit
8266 do
8267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8268 echo "configure:8269: checking for $ac_func" >&5
8269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8270   echo $ac_n "(cached) $ac_c" 1>&6
8271 else
8272   cat > conftest.$ac_ext <<EOF
8273 #line 8274 "configure"
8274 #include "confdefs.h"
8275 /* System header to define __stub macros and hopefully few prototypes,
8276     which can conflict with char $ac_func(); below.  */
8277 #include <assert.h>
8278 /* Override any gcc2 internal prototype to avoid an error.  */
8279 /* We use char because int might match the return type of a gcc2
8280     builtin and then its argument prototype would still apply.  */
8281 char $ac_func();
8282
8283 int main() {
8284
8285 /* The GNU C library defines this for functions which it implements
8286     to always fail with ENOSYS.  Some functions are actually named
8287     something starting with __ and the normal name is an alias.  */
8288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8289 choke me
8290 #else
8291 $ac_func();
8292 #endif
8293
8294 ; return 0; }
8295 EOF
8296 if { (eval echo configure:8297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8297   rm -rf conftest*
8298   eval "ac_cv_func_$ac_func=yes"
8299 else
8300   echo "configure: failed program was:" >&5
8301   cat conftest.$ac_ext >&5
8302   rm -rf conftest*
8303   eval "ac_cv_func_$ac_func=no"
8304 fi
8305 rm -f conftest*
8306 fi
8307
8308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8309   echo "$ac_t""yes" 1>&6
8310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8311   cat >> confdefs.h <<EOF
8312 #define $ac_tr_func 1
8313 EOF
8314  
8315 else
8316   echo "$ac_t""no" 1>&6
8317 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8318 fi
8319 done
8320
8321   for ac_func in __signbitf
8322 do
8323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8324 echo "configure:8325: checking for $ac_func" >&5
8325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8326   echo $ac_n "(cached) $ac_c" 1>&6
8327 else
8328   cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* System header to define __stub macros and hopefully few prototypes,
8332     which can conflict with char $ac_func(); below.  */
8333 #include <assert.h>
8334 /* Override any gcc2 internal prototype to avoid an error.  */
8335 /* We use char because int might match the return type of a gcc2
8336     builtin and then its argument prototype would still apply.  */
8337 char $ac_func();
8338
8339 int main() {
8340
8341 /* The GNU C library defines this for functions which it implements
8342     to always fail with ENOSYS.  Some functions are actually named
8343     something starting with __ and the normal name is an alias.  */
8344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8345 choke me
8346 #else
8347 $ac_func();
8348 #endif
8349
8350 ; return 0; }
8351 EOF
8352 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353   rm -rf conftest*
8354   eval "ac_cv_func_$ac_func=yes"
8355 else
8356   echo "configure: failed program was:" >&5
8357   cat conftest.$ac_ext >&5
8358   rm -rf conftest*
8359   eval "ac_cv_func_$ac_func=no"
8360 fi
8361 rm -f conftest*
8362 fi
8363
8364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8365   echo "$ac_t""yes" 1>&6
8366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8367   cat >> confdefs.h <<EOF
8368 #define $ac_tr_func 1
8369 EOF
8370  
8371 else
8372   echo "$ac_t""no" 1>&6
8373 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8374 fi
8375 done
8376
8377
8378           if test x$ac_cv_func_copysignl = x"yes"; then
8379     for ac_func in __signbitl
8380 do
8381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_func" >&5
8383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8384   echo $ac_n "(cached) $ac_c" 1>&6
8385 else
8386   cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* System header to define __stub macros and hopefully few prototypes,
8390     which can conflict with char $ac_func(); below.  */
8391 #include <assert.h>
8392 /* Override any gcc2 internal prototype to avoid an error.  */
8393 /* We use char because int might match the return type of a gcc2
8394     builtin and then its argument prototype would still apply.  */
8395 char $ac_func();
8396
8397 int main() {
8398
8399 /* The GNU C library defines this for functions which it implements
8400     to always fail with ENOSYS.  Some functions are actually named
8401     something starting with __ and the normal name is an alias.  */
8402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8403 choke me
8404 #else
8405 $ac_func();
8406 #endif
8407
8408 ; return 0; }
8409 EOF
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8411   rm -rf conftest*
8412   eval "ac_cv_func_$ac_func=yes"
8413 else
8414   echo "configure: failed program was:" >&5
8415   cat conftest.$ac_ext >&5
8416   rm -rf conftest*
8417   eval "ac_cv_func_$ac_func=no"
8418 fi
8419 rm -f conftest*
8420 fi
8421
8422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8423   echo "$ac_t""yes" 1>&6
8424     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8425   cat >> confdefs.h <<EOF
8426 #define $ac_tr_func 1
8427 EOF
8428  
8429 else
8430   echo "$ac_t""no" 1>&6
8431 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8432 fi
8433 done
8434
8435   fi
8436
8437   
8438
8439       
8440
8441       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8442 echo "configure:8443: checking for mbstate_t" >&5
8443   cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 #include <wchar.h>
8447 int main() {
8448 mbstate_t teststate;
8449 ; return 0; }
8450 EOF
8451 if { (eval echo configure:8452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8452   rm -rf conftest*
8453   have_mbstate_t=yes
8454 else
8455   echo "configure: failed program was:" >&5
8456   cat conftest.$ac_ext >&5
8457   rm -rf conftest*
8458   have_mbstate_t=no
8459 fi
8460 rm -f conftest*
8461   echo "$ac_t""$have_mbstate_t" 1>&6
8462   if test x"$have_mbstate_t" = xyes; then
8463     cat >> confdefs.h <<\EOF
8464 #define HAVE_MBSTATE_T 1
8465 EOF
8466
8467   fi
8468
8469     for ac_hdr in wchar.h
8470 do
8471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8473 echo "configure:8474: checking for $ac_hdr" >&5
8474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8475   echo $ac_n "(cached) $ac_c" 1>&6
8476 else
8477   cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 #include <$ac_hdr>
8481 EOF
8482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8483 { (eval echo configure:8484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8485 if test -z "$ac_err"; then
8486   rm -rf conftest*
8487   eval "ac_cv_header_$ac_safe=yes"
8488 else
8489   echo "$ac_err" >&5
8490   echo "configure: failed program was:" >&5
8491   cat conftest.$ac_ext >&5
8492   rm -rf conftest*
8493   eval "ac_cv_header_$ac_safe=no"
8494 fi
8495 rm -f conftest*
8496 fi
8497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8498   echo "$ac_t""yes" 1>&6
8499     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8500   cat >> confdefs.h <<EOF
8501 #define $ac_tr_hdr 1
8502 EOF
8503  ac_has_wchar_h=yes
8504 else
8505   echo "$ac_t""no" 1>&6
8506 ac_has_wchar_h=no
8507 fi
8508 done
8509
8510   for ac_hdr in wctype.h
8511 do
8512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8514 echo "configure:8515: checking for $ac_hdr" >&5
8515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8516   echo $ac_n "(cached) $ac_c" 1>&6
8517 else
8518   cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 #include <$ac_hdr>
8522 EOF
8523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8524 { (eval echo configure:8525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8526 if test -z "$ac_err"; then
8527   rm -rf conftest*
8528   eval "ac_cv_header_$ac_safe=yes"
8529 else
8530   echo "$ac_err" >&5
8531   echo "configure: failed program was:" >&5
8532   cat conftest.$ac_ext >&5
8533   rm -rf conftest*
8534   eval "ac_cv_header_$ac_safe=no"
8535 fi
8536 rm -f conftest*
8537 fi
8538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8539   echo "$ac_t""yes" 1>&6
8540     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8541   cat >> confdefs.h <<EOF
8542 #define $ac_tr_hdr 1
8543 EOF
8544  ac_has_wctype_h=yes
8545 else
8546   echo "$ac_t""no" 1>&6
8547 ac_has_wctype_h=no
8548 fi
8549 done
8550
8551   
8552     if test x"$ac_has_wchar_h" = xyes &&
8553      test x"$ac_has_wctype_h" = xyes &&
8554      test x"$enable_c_mbchar" != xno; then
8555       
8556             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8557 echo "configure:8558: checking for WCHAR_MIN and WCHAR_MAX" >&5
8558     cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 #include <wchar.h>
8562 int main() {
8563 int i = WCHAR_MIN; int j = WCHAR_MAX;
8564 ; return 0; }
8565 EOF
8566 if { (eval echo configure:8567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8567   rm -rf conftest*
8568   has_wchar_minmax=yes
8569 else
8570   echo "configure: failed program was:" >&5
8571   cat conftest.$ac_ext >&5
8572   rm -rf conftest*
8573   has_wchar_minmax=no
8574 fi
8575 rm -f conftest*
8576     echo "$ac_t""$has_wchar_minmax" 1>&6
8577     
8578             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8579 echo "configure:8580: checking for WEOF" >&5
8580     cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8583
8584       #include <wchar.h>
8585       #include <stddef.h>
8586 int main() {
8587 wint_t i = WEOF;
8588 ; return 0; }
8589 EOF
8590 if { (eval echo configure:8591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8591   rm -rf conftest*
8592   has_weof=yes
8593 else
8594   echo "configure: failed program was:" >&5
8595   cat conftest.$ac_ext >&5
8596   rm -rf conftest*
8597   has_weof=no
8598 fi
8599 rm -f conftest*
8600     echo "$ac_t""$has_weof" 1>&6
8601   
8602         ac_wfuncs=yes
8603     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8604 do
8605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8606 echo "configure:8607: checking for $ac_func" >&5
8607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8608   echo $ac_n "(cached) $ac_c" 1>&6
8609 else
8610   cat > conftest.$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8613 /* System header to define __stub macros and hopefully few prototypes,
8614     which can conflict with char $ac_func(); below.  */
8615 #include <assert.h>
8616 /* Override any gcc2 internal prototype to avoid an error.  */
8617 /* We use char because int might match the return type of a gcc2
8618     builtin and then its argument prototype would still apply.  */
8619 char $ac_func();
8620
8621 int main() {
8622
8623 /* The GNU C library defines this for functions which it implements
8624     to always fail with ENOSYS.  Some functions are actually named
8625     something starting with __ and the normal name is an alias.  */
8626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8627 choke me
8628 #else
8629 $ac_func();
8630 #endif
8631
8632 ; return 0; }
8633 EOF
8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635   rm -rf conftest*
8636   eval "ac_cv_func_$ac_func=yes"
8637 else
8638   echo "configure: failed program was:" >&5
8639   cat conftest.$ac_ext >&5
8640   rm -rf conftest*
8641   eval "ac_cv_func_$ac_func=no"
8642 fi
8643 rm -f conftest*
8644 fi
8645
8646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8647   echo "$ac_t""yes" 1>&6
8648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8649   cat >> confdefs.h <<EOF
8650 #define $ac_tr_func 1
8651 EOF
8652  
8653 else
8654   echo "$ac_t""no" 1>&6
8655 \
8656     ac_wfuncs=no
8657 fi
8658 done
8659
8660   
8661         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8662     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8663     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8664     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8665     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8666     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
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 else
8717   echo "$ac_t""no" 1>&6
8718 \
8719     ac_wfuncs=no
8720 fi
8721 done
8722
8723
8724     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8725 echo "configure:8726: checking for ISO C99 wchar_t support" >&5
8726     if test x"$has_weof" = xyes &&
8727        test x"$has_wchar_minmax" = xyes &&
8728        test x"$ac_wfuncs" = xyes; then
8729       ac_isoC99_wchar_t=yes
8730     else
8731       ac_isoC99_wchar_t=no
8732     fi
8733     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8734   
8735             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8736 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8737 echo "configure:8738: checking for iconv.h" >&5
8738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8739   echo $ac_n "(cached) $ac_c" 1>&6
8740 else
8741   cat > conftest.$ac_ext <<EOF
8742 #line 8743 "configure"
8743 #include "confdefs.h"
8744 #include <iconv.h>
8745 EOF
8746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8747 { (eval echo configure:8748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8749 if test -z "$ac_err"; then
8750   rm -rf conftest*
8751   eval "ac_cv_header_$ac_safe=yes"
8752 else
8753   echo "$ac_err" >&5
8754   echo "configure: failed program was:" >&5
8755   cat conftest.$ac_ext >&5
8756   rm -rf conftest*
8757   eval "ac_cv_header_$ac_safe=no"
8758 fi
8759 rm -f conftest*
8760 fi
8761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8762   echo "$ac_t""yes" 1>&6
8763   ac_has_iconv_h=yes
8764 else
8765   echo "$ac_t""no" 1>&6
8766 ac_has_iconv_h=no
8767 fi
8768
8769     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8770 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8771 echo "configure:8772: checking for langinfo.h" >&5
8772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8773   echo $ac_n "(cached) $ac_c" 1>&6
8774 else
8775   cat > conftest.$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8778 #include <langinfo.h>
8779 EOF
8780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8781 { (eval echo configure:8782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8783 if test -z "$ac_err"; then
8784   rm -rf conftest*
8785   eval "ac_cv_header_$ac_safe=yes"
8786 else
8787   echo "$ac_err" >&5
8788   echo "configure: failed program was:" >&5
8789   cat conftest.$ac_ext >&5
8790   rm -rf conftest*
8791   eval "ac_cv_header_$ac_safe=no"
8792 fi
8793 rm -f conftest*
8794 fi
8795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8796   echo "$ac_t""yes" 1>&6
8797   ac_has_langinfo_h=yes
8798 else
8799   echo "$ac_t""no" 1>&6
8800 ac_has_langinfo_h=no
8801 fi
8802
8803
8804         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8805 echo "configure:8806: checking for iconv in -liconv" >&5
8806 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8808   echo $ac_n "(cached) $ac_c" 1>&6
8809 else
8810   ac_save_LIBS="$LIBS"
8811 LIBS="-liconv  $LIBS"
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 /* Override any gcc2 internal prototype to avoid an error.  */
8816 /* We use char because int might match the return type of a gcc2
8817     builtin and then its argument prototype would still apply.  */
8818 char iconv();
8819
8820 int main() {
8821 iconv()
8822 ; return 0; }
8823 EOF
8824 if { (eval echo configure:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8825   rm -rf conftest*
8826   eval "ac_cv_lib_$ac_lib_var=yes"
8827 else
8828   echo "configure: failed program was:" >&5
8829   cat conftest.$ac_ext >&5
8830   rm -rf conftest*
8831   eval "ac_cv_lib_$ac_lib_var=no"
8832 fi
8833 rm -f conftest*
8834 LIBS="$ac_save_LIBS"
8835
8836 fi
8837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8838   echo "$ac_t""yes" 1>&6
8839   libiconv="-liconv"
8840 else
8841   echo "$ac_t""no" 1>&6
8842 fi
8843
8844     ac_save_LIBS="$LIBS"
8845     LIBS="$LIBS $libiconv"
8846
8847     for ac_func in iconv_open iconv_close iconv nl_langinfo
8848 do
8849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8850 echo "configure:8851: checking for $ac_func" >&5
8851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8852   echo $ac_n "(cached) $ac_c" 1>&6
8853 else
8854   cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8857 /* System header to define __stub macros and hopefully few prototypes,
8858     which can conflict with char $ac_func(); below.  */
8859 #include <assert.h>
8860 /* Override any gcc2 internal prototype to avoid an error.  */
8861 /* We use char because int might match the return type of a gcc2
8862     builtin and then its argument prototype would still apply.  */
8863 char $ac_func();
8864
8865 int main() {
8866
8867 /* The GNU C library defines this for functions which it implements
8868     to always fail with ENOSYS.  Some functions are actually named
8869     something starting with __ and the normal name is an alias.  */
8870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8871 choke me
8872 #else
8873 $ac_func();
8874 #endif
8875
8876 ; return 0; }
8877 EOF
8878 if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8879   rm -rf conftest*
8880   eval "ac_cv_func_$ac_func=yes"
8881 else
8882   echo "configure: failed program was:" >&5
8883   cat conftest.$ac_ext >&5
8884   rm -rf conftest*
8885   eval "ac_cv_func_$ac_func=no"
8886 fi
8887 rm -f conftest*
8888 fi
8889
8890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8891   echo "$ac_t""yes" 1>&6
8892     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8893   cat >> confdefs.h <<EOF
8894 #define $ac_tr_func 1
8895 EOF
8896  \
8897     ac_XPG2funcs=yes
8898 else
8899   echo "$ac_t""no" 1>&6
8900 ac_XPG2funcs=no
8901 fi
8902 done
8903
8904   
8905     LIBS="$ac_save_LIBS"
8906
8907     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8908 echo "configure:8909: checking for XPG2 wchar_t support" >&5
8909     if test x"$ac_has_iconv_h" = xyes &&
8910        test x"$ac_has_langinfo_h" = xyes &&
8911        test x"$ac_XPG2funcs" = xyes; then
8912       ac_XPG2_wchar_t=yes
8913     else
8914       ac_XPG2_wchar_t=no
8915     fi
8916     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8917   
8918             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8919 echo "configure:8920: checking for enabled wchar_t specializations" >&5
8920     if test x"$ac_isoC99_wchar_t" = xyes &&
8921        test x"$ac_XPG2_wchar_t" = xyes; then
8922       cat >> confdefs.h <<\EOF
8923 #define _GLIBCPP_USE_WCHAR_T 1
8924 EOF
8925
8926       echo "$ac_t"""yes"" 1>&6
8927     else
8928       echo "$ac_t"""no"" 1>&6
8929     fi
8930   else
8931         echo "configure: warning: wchar_t support disabled." 1>&2
8932   fi
8933
8934       os_include_dir="os/mingw32"
8935       ;;
8936     *-windiss*)
8937       os_include_dir="os/windiss"
8938       ;;
8939     *-qnx6.[12]*)
8940       SECTION_FLAGS='-ffunction-sections -fdata-sections'
8941        
8942       
8943   # If we're not using GNU ld, then there's no point in even trying these
8944   # tests.  Check for that first.  We should have already tested for gld
8945   # by now (in libtool), but require it now just to be safe...
8946   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8947   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8948   
8949
8950   # The name set by libtool depends on the version of libtool.  Shame on us
8951   # for depending on an impl detail, but c'est la vie.  Older versions used
8952   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8953   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8954   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8955   # set (hence we're using an older libtool), then set it.
8956   if test x${with_gnu_ld+set} != xset; then
8957     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8958       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8959       with_gnu_ld=no
8960     else
8961       with_gnu_ld=$ac_cv_prog_gnu_ld
8962     fi
8963   fi
8964
8965   # Start by getting the version number.  I think the libtool test already
8966   # does some of this, but throws away the result.
8967   
8968   ldver=`$LD --version 2>/dev/null | head -1 | \
8969          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8970   
8971   glibcpp_gnu_ld_version=`echo $ldver | \
8972          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8973
8974   # Set --gc-sections.
8975   if test "$with_gnu_ld" = "notbroken"; then
8976     # GNU ld it is!  Joy and bunny rabbits!
8977
8978     # All these tests are for C++; save the language and the compiler flags.
8979     # Need to do this so that g++ won't try to link in libstdc++
8980     ac_test_CFLAGS="${CFLAGS+set}"
8981     ac_save_CFLAGS="$CFLAGS"
8982     CFLAGS='-x c++  -Wl,--gc-sections'
8983
8984     # Check for -Wl,--gc-sections
8985     # XXX This test is broken at the moment, as symbols required for
8986     # linking are now in libsupc++ (not built yet.....). In addition, 
8987     # this test has cored on solaris in the past. In addition,
8988     # --gc-sections doesn't really work at the moment (keeps on discarding
8989     # used sections, first .eh_frame and now some of the glibc sections for
8990     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8991     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8992 echo "configure:8993: checking for ld that supports -Wl,--gc-sections" >&5
8993     if test "$cross_compiling" = yes; then
8994   ac_sectionLDflags=yes
8995 else
8996   cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
8999
9000      int main(void) 
9001      {
9002        try { throw 1; }
9003        catch (...) { };
9004        return 0;
9005      }
9006     
9007 EOF
9008 if { (eval echo configure:9009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9009 then
9010   ac_sectionLDflags=yes
9011 else
9012   echo "configure: failed program was:" >&5
9013   cat conftest.$ac_ext >&5
9014   rm -fr conftest*
9015   ac_sectionLDflags=no
9016 fi
9017 rm -fr conftest*
9018 fi
9019
9020     if test "$ac_test_CFLAGS" = set; then
9021       CFLAGS="$ac_save_CFLAGS"
9022     else
9023       # this is the suspicious part
9024       CFLAGS=''
9025     fi
9026     if test "$ac_sectionLDflags" = "yes"; then
9027       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9028     fi
9029     echo "$ac_t""$ac_sectionLDflags" 1>&6
9030   fi
9031
9032   # Set linker optimization flags.
9033   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9034     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9035   fi
9036
9037   
9038   
9039
9040       
9041     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9042 echo "configure:9043: checking for main in -lm" >&5
9043 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9045   echo $ac_n "(cached) $ac_c" 1>&6
9046 else
9047   ac_save_LIBS="$LIBS"
9048 LIBS="-lm  $LIBS"
9049 cat > conftest.$ac_ext <<EOF
9050 #line 9051 "configure"
9051 #include "confdefs.h"
9052
9053 int main() {
9054 main()
9055 ; return 0; }
9056 EOF
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058   rm -rf conftest*
9059   eval "ac_cv_lib_$ac_lib_var=yes"
9060 else
9061   echo "configure: failed program was:" >&5
9062   cat conftest.$ac_ext >&5
9063   rm -rf conftest*
9064   eval "ac_cv_lib_$ac_lib_var=no"
9065 fi
9066 rm -f conftest*
9067 LIBS="$ac_save_LIBS"
9068
9069 fi
9070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9071   echo "$ac_t""yes" 1>&6
9072     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9073     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9074   cat >> confdefs.h <<EOF
9075 #define $ac_tr_lib 1
9076 EOF
9077
9078   LIBS="-lm $LIBS"
9079
9080 else
9081   echo "$ac_t""no" 1>&6
9082 fi
9083
9084   for ac_func in nan copysignf
9085 do
9086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9087 echo "configure:9088: checking for $ac_func" >&5
9088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9089   echo $ac_n "(cached) $ac_c" 1>&6
9090 else
9091   cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9094 /* System header to define __stub macros and hopefully few prototypes,
9095     which can conflict with char $ac_func(); below.  */
9096 #include <assert.h>
9097 /* Override any gcc2 internal prototype to avoid an error.  */
9098 /* We use char because int might match the return type of a gcc2
9099     builtin and then its argument prototype would still apply.  */
9100 char $ac_func();
9101
9102 int main() {
9103
9104 /* The GNU C library defines this for functions which it implements
9105     to always fail with ENOSYS.  Some functions are actually named
9106     something starting with __ and the normal name is an alias.  */
9107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9108 choke me
9109 #else
9110 $ac_func();
9111 #endif
9112
9113 ; return 0; }
9114 EOF
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9116   rm -rf conftest*
9117   eval "ac_cv_func_$ac_func=yes"
9118 else
9119   echo "configure: failed program was:" >&5
9120   cat conftest.$ac_ext >&5
9121   rm -rf conftest*
9122   eval "ac_cv_func_$ac_func=no"
9123 fi
9124 rm -f conftest*
9125 fi
9126
9127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9128   echo "$ac_t""yes" 1>&6
9129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9130   cat >> confdefs.h <<EOF
9131 #define $ac_tr_func 1
9132 EOF
9133  
9134 else
9135   echo "$ac_t""no" 1>&6
9136 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9137 fi
9138 done
9139
9140
9141     for ac_func in __signbit
9142 do
9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9144 echo "configure:9145: checking for $ac_func" >&5
9145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9146   echo $ac_n "(cached) $ac_c" 1>&6
9147 else
9148   cat > conftest.$ac_ext <<EOF
9149 #line 9150 "configure"
9150 #include "confdefs.h"
9151 /* System header to define __stub macros and hopefully few prototypes,
9152     which can conflict with char $ac_func(); below.  */
9153 #include <assert.h>
9154 /* Override any gcc2 internal prototype to avoid an error.  */
9155 /* We use char because int might match the return type of a gcc2
9156     builtin and then its argument prototype would still apply.  */
9157 char $ac_func();
9158
9159 int main() {
9160
9161 /* The GNU C library defines this for functions which it implements
9162     to always fail with ENOSYS.  Some functions are actually named
9163     something starting with __ and the normal name is an alias.  */
9164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9165 choke me
9166 #else
9167 $ac_func();
9168 #endif
9169
9170 ; return 0; }
9171 EOF
9172 if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9173   rm -rf conftest*
9174   eval "ac_cv_func_$ac_func=yes"
9175 else
9176   echo "configure: failed program was:" >&5
9177   cat conftest.$ac_ext >&5
9178   rm -rf conftest*
9179   eval "ac_cv_func_$ac_func=no"
9180 fi
9181 rm -f conftest*
9182 fi
9183
9184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9185   echo "$ac_t""yes" 1>&6
9186     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9187   cat >> confdefs.h <<EOF
9188 #define $ac_tr_func 1
9189 EOF
9190  
9191 else
9192   echo "$ac_t""no" 1>&6
9193 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9194 fi
9195 done
9196
9197   for ac_func in __signbitf
9198 do
9199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9200 echo "configure:9201: checking for $ac_func" >&5
9201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9202   echo $ac_n "(cached) $ac_c" 1>&6
9203 else
9204   cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure"
9206 #include "confdefs.h"
9207 /* System header to define __stub macros and hopefully few prototypes,
9208     which can conflict with char $ac_func(); below.  */
9209 #include <assert.h>
9210 /* Override any gcc2 internal prototype to avoid an error.  */
9211 /* We use char because int might match the return type of a gcc2
9212     builtin and then its argument prototype would still apply.  */
9213 char $ac_func();
9214
9215 int main() {
9216
9217 /* The GNU C library defines this for functions which it implements
9218     to always fail with ENOSYS.  Some functions are actually named
9219     something starting with __ and the normal name is an alias.  */
9220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9221 choke me
9222 #else
9223 $ac_func();
9224 #endif
9225
9226 ; return 0; }
9227 EOF
9228 if { (eval echo configure:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9229   rm -rf conftest*
9230   eval "ac_cv_func_$ac_func=yes"
9231 else
9232   echo "configure: failed program was:" >&5
9233   cat conftest.$ac_ext >&5
9234   rm -rf conftest*
9235   eval "ac_cv_func_$ac_func=no"
9236 fi
9237 rm -f conftest*
9238 fi
9239
9240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9241   echo "$ac_t""yes" 1>&6
9242     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9243   cat >> confdefs.h <<EOF
9244 #define $ac_tr_func 1
9245 EOF
9246  
9247 else
9248   echo "$ac_t""no" 1>&6
9249 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9250 fi
9251 done
9252
9253
9254           if test x$ac_cv_func_copysignl = x"yes"; then
9255     for ac_func in __signbitl
9256 do
9257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9258 echo "configure:9259: checking for $ac_func" >&5
9259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9260   echo $ac_n "(cached) $ac_c" 1>&6
9261 else
9262   cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9265 /* System header to define __stub macros and hopefully few prototypes,
9266     which can conflict with char $ac_func(); below.  */
9267 #include <assert.h>
9268 /* Override any gcc2 internal prototype to avoid an error.  */
9269 /* We use char because int might match the return type of a gcc2
9270     builtin and then its argument prototype would still apply.  */
9271 char $ac_func();
9272
9273 int main() {
9274
9275 /* The GNU C library defines this for functions which it implements
9276     to always fail with ENOSYS.  Some functions are actually named
9277     something starting with __ and the normal name is an alias.  */
9278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9279 choke me
9280 #else
9281 $ac_func();
9282 #endif
9283
9284 ; return 0; }
9285 EOF
9286 if { (eval echo configure:9287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9287   rm -rf conftest*
9288   eval "ac_cv_func_$ac_func=yes"
9289 else
9290   echo "configure: failed program was:" >&5
9291   cat conftest.$ac_ext >&5
9292   rm -rf conftest*
9293   eval "ac_cv_func_$ac_func=no"
9294 fi
9295 rm -f conftest*
9296 fi
9297
9298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9299   echo "$ac_t""yes" 1>&6
9300     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9301   cat >> confdefs.h <<EOF
9302 #define $ac_tr_func 1
9303 EOF
9304  
9305 else
9306   echo "$ac_t""no" 1>&6
9307 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9308 fi
9309 done
9310
9311   fi
9312
9313   
9314
9315       
9316
9317       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9318 echo "configure:9319: checking for mbstate_t" >&5
9319   cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322 #include <wchar.h>
9323 int main() {
9324 mbstate_t teststate;
9325 ; return 0; }
9326 EOF
9327 if { (eval echo configure:9328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9328   rm -rf conftest*
9329   have_mbstate_t=yes
9330 else
9331   echo "configure: failed program was:" >&5
9332   cat conftest.$ac_ext >&5
9333   rm -rf conftest*
9334   have_mbstate_t=no
9335 fi
9336 rm -f conftest*
9337   echo "$ac_t""$have_mbstate_t" 1>&6
9338   if test x"$have_mbstate_t" = xyes; then
9339     cat >> confdefs.h <<\EOF
9340 #define HAVE_MBSTATE_T 1
9341 EOF
9342
9343   fi
9344
9345     for ac_hdr in wchar.h
9346 do
9347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9349 echo "configure:9350: checking for $ac_hdr" >&5
9350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9351   echo $ac_n "(cached) $ac_c" 1>&6
9352 else
9353   cat > conftest.$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <$ac_hdr>
9357 EOF
9358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9359 { (eval echo configure:9360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9361 if test -z "$ac_err"; then
9362   rm -rf conftest*
9363   eval "ac_cv_header_$ac_safe=yes"
9364 else
9365   echo "$ac_err" >&5
9366   echo "configure: failed program was:" >&5
9367   cat conftest.$ac_ext >&5
9368   rm -rf conftest*
9369   eval "ac_cv_header_$ac_safe=no"
9370 fi
9371 rm -f conftest*
9372 fi
9373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9374   echo "$ac_t""yes" 1>&6
9375     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9376   cat >> confdefs.h <<EOF
9377 #define $ac_tr_hdr 1
9378 EOF
9379  ac_has_wchar_h=yes
9380 else
9381   echo "$ac_t""no" 1>&6
9382 ac_has_wchar_h=no
9383 fi
9384 done
9385
9386   for ac_hdr in wctype.h
9387 do
9388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9390 echo "configure:9391: checking for $ac_hdr" >&5
9391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9392   echo $ac_n "(cached) $ac_c" 1>&6
9393 else
9394   cat > conftest.$ac_ext <<EOF
9395 #line 9396 "configure"
9396 #include "confdefs.h"
9397 #include <$ac_hdr>
9398 EOF
9399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9400 { (eval echo configure:9401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9402 if test -z "$ac_err"; then
9403   rm -rf conftest*
9404   eval "ac_cv_header_$ac_safe=yes"
9405 else
9406   echo "$ac_err" >&5
9407   echo "configure: failed program was:" >&5
9408   cat conftest.$ac_ext >&5
9409   rm -rf conftest*
9410   eval "ac_cv_header_$ac_safe=no"
9411 fi
9412 rm -f conftest*
9413 fi
9414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9415   echo "$ac_t""yes" 1>&6
9416     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9417   cat >> confdefs.h <<EOF
9418 #define $ac_tr_hdr 1
9419 EOF
9420  ac_has_wctype_h=yes
9421 else
9422   echo "$ac_t""no" 1>&6
9423 ac_has_wctype_h=no
9424 fi
9425 done
9426
9427   
9428     if test x"$ac_has_wchar_h" = xyes &&
9429      test x"$ac_has_wctype_h" = xyes &&
9430      test x"$enable_c_mbchar" != xno; then
9431       
9432             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9433 echo "configure:9434: checking for WCHAR_MIN and WCHAR_MAX" >&5
9434     cat > conftest.$ac_ext <<EOF
9435 #line 9436 "configure"
9436 #include "confdefs.h"
9437 #include <wchar.h>
9438 int main() {
9439 int i = WCHAR_MIN; int j = WCHAR_MAX;
9440 ; return 0; }
9441 EOF
9442 if { (eval echo configure:9443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9443   rm -rf conftest*
9444   has_wchar_minmax=yes
9445 else
9446   echo "configure: failed program was:" >&5
9447   cat conftest.$ac_ext >&5
9448   rm -rf conftest*
9449   has_wchar_minmax=no
9450 fi
9451 rm -f conftest*
9452     echo "$ac_t""$has_wchar_minmax" 1>&6
9453     
9454             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9455 echo "configure:9456: checking for WEOF" >&5
9456     cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459
9460       #include <wchar.h>
9461       #include <stddef.h>
9462 int main() {
9463 wint_t i = WEOF;
9464 ; return 0; }
9465 EOF
9466 if { (eval echo configure:9467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9467   rm -rf conftest*
9468   has_weof=yes
9469 else
9470   echo "configure: failed program was:" >&5
9471   cat conftest.$ac_ext >&5
9472   rm -rf conftest*
9473   has_weof=no
9474 fi
9475 rm -f conftest*
9476     echo "$ac_t""$has_weof" 1>&6
9477   
9478         ac_wfuncs=yes
9479     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9480 do
9481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9482 echo "configure:9483: checking for $ac_func" >&5
9483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9484   echo $ac_n "(cached) $ac_c" 1>&6
9485 else
9486   cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 /* System header to define __stub macros and hopefully few prototypes,
9490     which can conflict with char $ac_func(); below.  */
9491 #include <assert.h>
9492 /* Override any gcc2 internal prototype to avoid an error.  */
9493 /* We use char because int might match the return type of a gcc2
9494     builtin and then its argument prototype would still apply.  */
9495 char $ac_func();
9496
9497 int main() {
9498
9499 /* The GNU C library defines this for functions which it implements
9500     to always fail with ENOSYS.  Some functions are actually named
9501     something starting with __ and the normal name is an alias.  */
9502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9503 choke me
9504 #else
9505 $ac_func();
9506 #endif
9507
9508 ; return 0; }
9509 EOF
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9511   rm -rf conftest*
9512   eval "ac_cv_func_$ac_func=yes"
9513 else
9514   echo "configure: failed program was:" >&5
9515   cat conftest.$ac_ext >&5
9516   rm -rf conftest*
9517   eval "ac_cv_func_$ac_func=no"
9518 fi
9519 rm -f conftest*
9520 fi
9521
9522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9523   echo "$ac_t""yes" 1>&6
9524     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9525   cat >> confdefs.h <<EOF
9526 #define $ac_tr_func 1
9527 EOF
9528  
9529 else
9530   echo "$ac_t""no" 1>&6
9531 \
9532     ac_wfuncs=no
9533 fi
9534 done
9535
9536   
9537         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
9538     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9539     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9540     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9541     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9542     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9543 do
9544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9545 echo "configure:9546: checking for $ac_func" >&5
9546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9547   echo $ac_n "(cached) $ac_c" 1>&6
9548 else
9549   cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 /* System header to define __stub macros and hopefully few prototypes,
9553     which can conflict with char $ac_func(); below.  */
9554 #include <assert.h>
9555 /* Override any gcc2 internal prototype to avoid an error.  */
9556 /* We use char because int might match the return type of a gcc2
9557     builtin and then its argument prototype would still apply.  */
9558 char $ac_func();
9559
9560 int main() {
9561
9562 /* The GNU C library defines this for functions which it implements
9563     to always fail with ENOSYS.  Some functions are actually named
9564     something starting with __ and the normal name is an alias.  */
9565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9566 choke me
9567 #else
9568 $ac_func();
9569 #endif
9570
9571 ; return 0; }
9572 EOF
9573 if { (eval echo configure:9574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9574   rm -rf conftest*
9575   eval "ac_cv_func_$ac_func=yes"
9576 else
9577   echo "configure: failed program was:" >&5
9578   cat conftest.$ac_ext >&5
9579   rm -rf conftest*
9580   eval "ac_cv_func_$ac_func=no"
9581 fi
9582 rm -f conftest*
9583 fi
9584
9585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9586   echo "$ac_t""yes" 1>&6
9587     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9588   cat >> confdefs.h <<EOF
9589 #define $ac_tr_func 1
9590 EOF
9591  
9592 else
9593   echo "$ac_t""no" 1>&6
9594 \
9595     ac_wfuncs=no
9596 fi
9597 done
9598
9599
9600     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9601 echo "configure:9602: checking for ISO C99 wchar_t support" >&5
9602     if test x"$has_weof" = xyes &&
9603        test x"$has_wchar_minmax" = xyes &&
9604        test x"$ac_wfuncs" = xyes; then
9605       ac_isoC99_wchar_t=yes
9606     else
9607       ac_isoC99_wchar_t=no
9608     fi
9609     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9610   
9611             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9612 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9613 echo "configure:9614: checking for iconv.h" >&5
9614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9615   echo $ac_n "(cached) $ac_c" 1>&6
9616 else
9617   cat > conftest.$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9620 #include <iconv.h>
9621 EOF
9622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9623 { (eval echo configure:9624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9625 if test -z "$ac_err"; then
9626   rm -rf conftest*
9627   eval "ac_cv_header_$ac_safe=yes"
9628 else
9629   echo "$ac_err" >&5
9630   echo "configure: failed program was:" >&5
9631   cat conftest.$ac_ext >&5
9632   rm -rf conftest*
9633   eval "ac_cv_header_$ac_safe=no"
9634 fi
9635 rm -f conftest*
9636 fi
9637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9638   echo "$ac_t""yes" 1>&6
9639   ac_has_iconv_h=yes
9640 else
9641   echo "$ac_t""no" 1>&6
9642 ac_has_iconv_h=no
9643 fi
9644
9645     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9646 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9647 echo "configure:9648: checking for langinfo.h" >&5
9648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9649   echo $ac_n "(cached) $ac_c" 1>&6
9650 else
9651   cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9654 #include <langinfo.h>
9655 EOF
9656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9657 { (eval echo configure:9658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9659 if test -z "$ac_err"; then
9660   rm -rf conftest*
9661   eval "ac_cv_header_$ac_safe=yes"
9662 else
9663   echo "$ac_err" >&5
9664   echo "configure: failed program was:" >&5
9665   cat conftest.$ac_ext >&5
9666   rm -rf conftest*
9667   eval "ac_cv_header_$ac_safe=no"
9668 fi
9669 rm -f conftest*
9670 fi
9671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9672   echo "$ac_t""yes" 1>&6
9673   ac_has_langinfo_h=yes
9674 else
9675   echo "$ac_t""no" 1>&6
9676 ac_has_langinfo_h=no
9677 fi
9678
9679
9680         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9681 echo "configure:9682: checking for iconv in -liconv" >&5
9682 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9684   echo $ac_n "(cached) $ac_c" 1>&6
9685 else
9686   ac_save_LIBS="$LIBS"
9687 LIBS="-liconv  $LIBS"
9688 cat > conftest.$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9691 /* Override any gcc2 internal prototype to avoid an error.  */
9692 /* We use char because int might match the return type of a gcc2
9693     builtin and then its argument prototype would still apply.  */
9694 char iconv();
9695
9696 int main() {
9697 iconv()
9698 ; return 0; }
9699 EOF
9700 if { (eval echo configure:9701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9701   rm -rf conftest*
9702   eval "ac_cv_lib_$ac_lib_var=yes"
9703 else
9704   echo "configure: failed program was:" >&5
9705   cat conftest.$ac_ext >&5
9706   rm -rf conftest*
9707   eval "ac_cv_lib_$ac_lib_var=no"
9708 fi
9709 rm -f conftest*
9710 LIBS="$ac_save_LIBS"
9711
9712 fi
9713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9714   echo "$ac_t""yes" 1>&6
9715   libiconv="-liconv"
9716 else
9717   echo "$ac_t""no" 1>&6
9718 fi
9719
9720     ac_save_LIBS="$LIBS"
9721     LIBS="$LIBS $libiconv"
9722
9723     for ac_func in iconv_open iconv_close iconv nl_langinfo
9724 do
9725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9726 echo "configure:9727: checking for $ac_func" >&5
9727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9728   echo $ac_n "(cached) $ac_c" 1>&6
9729 else
9730   cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 /* System header to define __stub macros and hopefully few prototypes,
9734     which can conflict with char $ac_func(); below.  */
9735 #include <assert.h>
9736 /* Override any gcc2 internal prototype to avoid an error.  */
9737 /* We use char because int might match the return type of a gcc2
9738     builtin and then its argument prototype would still apply.  */
9739 char $ac_func();
9740
9741 int main() {
9742
9743 /* The GNU C library defines this for functions which it implements
9744     to always fail with ENOSYS.  Some functions are actually named
9745     something starting with __ and the normal name is an alias.  */
9746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9747 choke me
9748 #else
9749 $ac_func();
9750 #endif
9751
9752 ; return 0; }
9753 EOF
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755   rm -rf conftest*
9756   eval "ac_cv_func_$ac_func=yes"
9757 else
9758   echo "configure: failed program was:" >&5
9759   cat conftest.$ac_ext >&5
9760   rm -rf conftest*
9761   eval "ac_cv_func_$ac_func=no"
9762 fi
9763 rm -f conftest*
9764 fi
9765
9766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9767   echo "$ac_t""yes" 1>&6
9768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9769   cat >> confdefs.h <<EOF
9770 #define $ac_tr_func 1
9771 EOF
9772  \
9773     ac_XPG2funcs=yes
9774 else
9775   echo "$ac_t""no" 1>&6
9776 ac_XPG2funcs=no
9777 fi
9778 done
9779
9780   
9781     LIBS="$ac_save_LIBS"
9782
9783     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9784 echo "configure:9785: checking for XPG2 wchar_t support" >&5
9785     if test x"$ac_has_iconv_h" = xyes &&
9786        test x"$ac_has_langinfo_h" = xyes &&
9787        test x"$ac_XPG2funcs" = xyes; then
9788       ac_XPG2_wchar_t=yes
9789     else
9790       ac_XPG2_wchar_t=no
9791     fi
9792     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9793   
9794             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9795 echo "configure:9796: checking for enabled wchar_t specializations" >&5
9796     if test x"$ac_isoC99_wchar_t" = xyes &&
9797        test x"$ac_XPG2_wchar_t" = xyes; then
9798       cat >> confdefs.h <<\EOF
9799 #define _GLIBCPP_USE_WCHAR_T 1
9800 EOF
9801
9802       echo "$ac_t"""yes"" 1>&6
9803     else
9804       echo "$ac_t"""no"" 1>&6
9805     fi
9806   else
9807         echo "configure: warning: wchar_t support disabled." 1>&2
9808   fi
9809
9810       os_include_dir="os/qnx/qnx6.1"
9811       cat >> confdefs.h <<\EOF
9812 #define HAVE_COSF 1
9813 EOF
9814
9815       cat >> confdefs.h <<\EOF
9816 #define HAVE_COSL 1
9817 EOF
9818
9819       cat >> confdefs.h <<\EOF
9820 #define HAVE_COSHF 1
9821 EOF
9822
9823       cat >> confdefs.h <<\EOF
9824 #define HAVE_COSHL 1
9825 EOF
9826
9827       cat >> confdefs.h <<\EOF
9828 #define HAVE_LOGF 1
9829 EOF
9830
9831       cat >> confdefs.h <<\EOF
9832 #define HAVE_LOGL 1
9833 EOF
9834
9835       cat >> confdefs.h <<\EOF
9836 #define HAVE_LOG10F 1
9837 EOF
9838
9839       cat >> confdefs.h <<\EOF
9840 #define HAVE_LOG10L 1
9841 EOF
9842
9843       cat >> confdefs.h <<\EOF
9844 #define HAVE_SINF 1
9845 EOF
9846
9847       cat >> confdefs.h <<\EOF
9848 #define HAVE_SINL 1
9849 EOF
9850
9851       cat >> confdefs.h <<\EOF
9852 #define HAVE_SINHF 1
9853 EOF
9854
9855       cat >> confdefs.h <<\EOF
9856 #define HAVE_SINHL 1
9857 EOF
9858
9859       ;;
9860     *)
9861       os_include_dir="os/newlib"
9862       cat >> confdefs.h <<\EOF
9863 #define HAVE_HYPOT 1
9864 EOF
9865
9866       ;;
9867   esac
9868
9869   case "$target_alias" in
9870     *-mingw32*)
9871       ;;
9872     *-windiss*)
9873       cat >> confdefs.h <<\EOF
9874 #define HAVE_ACOSF 1
9875 EOF
9876
9877       cat >> confdefs.h <<\EOF
9878 #define HAVE_ASINF 1
9879 EOF
9880
9881       cat >> confdefs.h <<\EOF
9882 #define HAVE_ATAN2F 1
9883 EOF
9884
9885       cat >> confdefs.h <<\EOF
9886 #define HAVE_ATANF 1
9887 EOF
9888
9889       cat >> confdefs.h <<\EOF
9890 #define HAVE_CEILF 1
9891 EOF
9892
9893       cat >> confdefs.h <<\EOF
9894 #define HAVE_COPYSIGN 1
9895 EOF
9896
9897       cat >> confdefs.h <<\EOF
9898 #define HAVE_COPYSIGNF 1
9899 EOF
9900
9901       cat >> confdefs.h <<\EOF
9902 #define HAVE_COSF 1
9903 EOF
9904
9905       cat >> confdefs.h <<\EOF
9906 #define HAVE_COSHF 1
9907 EOF
9908
9909       cat >> confdefs.h <<\EOF
9910 #define HAVE_EXPF 1
9911 EOF
9912
9913       cat >> confdefs.h <<\EOF
9914 #define HAVE_FABSF 1
9915 EOF
9916
9917       cat >> confdefs.h <<\EOF
9918 #define HAVE_FLOORF 1
9919 EOF
9920
9921       cat >> confdefs.h <<\EOF
9922 #define HAVE_FMODF 1
9923 EOF
9924
9925       cat >> confdefs.h <<\EOF
9926 #define HAVE_FREXPF 1
9927 EOF
9928
9929       cat >> confdefs.h <<\EOF
9930 #define HAVE_LDEXPF 1
9931 EOF
9932
9933       cat >> confdefs.h <<\EOF
9934 #define HAVE_LOG10F 1
9935 EOF
9936
9937       cat >> confdefs.h <<\EOF
9938 #define HAVE_LOGF 1
9939 EOF
9940
9941       cat >> confdefs.h <<\EOF
9942 #define HAVE_MODFF 1
9943 EOF
9944
9945       cat >> confdefs.h <<\EOF
9946 #define HAVE_POWF 1
9947 EOF
9948
9949       cat >> confdefs.h <<\EOF
9950 #define HAVE_SINF 1
9951 EOF
9952
9953       cat >> confdefs.h <<\EOF
9954 #define HAVE_SINHF 1
9955 EOF
9956
9957       cat >> confdefs.h <<\EOF
9958 #define HAVE_SQRTF 1
9959 EOF
9960
9961       cat >> confdefs.h <<\EOF
9962 #define HAVE_TANF 1
9963 EOF
9964
9965       cat >> confdefs.h <<\EOF
9966 #define HAVE_TANHF 1
9967 EOF
9968
9969       ;;
9970     *-freebsd*)
9971       # Must replicate generic section since we don't have strtof or strtold.
9972       cat >> confdefs.h <<\EOF
9973 #define HAVE_MMAP 1
9974 EOF
9975
9976       cat >> confdefs.h <<\EOF
9977 #define HAVE_ACOSF 1
9978 EOF
9979
9980       cat >> confdefs.h <<\EOF
9981 #define HAVE_ASINF 1
9982 EOF
9983
9984       cat >> confdefs.h <<\EOF
9985 #define HAVE_ATAN2F 1
9986 EOF
9987
9988       cat >> confdefs.h <<\EOF
9989 #define HAVE_ATANF 1
9990 EOF
9991
9992       cat >> confdefs.h <<\EOF
9993 #define HAVE_CEILF 1
9994 EOF
9995
9996       cat >> confdefs.h <<\EOF
9997 #define HAVE_COPYSIGN 1
9998 EOF
9999
10000       cat >> confdefs.h <<\EOF
10001 #define HAVE_COPYSIGNF 1
10002 EOF
10003
10004       cat >> confdefs.h <<\EOF
10005 #define HAVE_COSF 1
10006 EOF
10007
10008       cat >> confdefs.h <<\EOF
10009 #define HAVE_COSHF 1
10010 EOF
10011
10012       cat >> confdefs.h <<\EOF
10013 #define HAVE_EXPF 1
10014 EOF
10015
10016       cat >> confdefs.h <<\EOF
10017 #define HAVE_FABSF 1
10018 EOF
10019
10020       cat >> confdefs.h <<\EOF
10021 #define HAVE_FLOORF 1
10022 EOF
10023
10024       cat >> confdefs.h <<\EOF
10025 #define HAVE_FMODF 1
10026 EOF
10027
10028       cat >> confdefs.h <<\EOF
10029 #define HAVE_FREXPF 1
10030 EOF
10031
10032       cat >> confdefs.h <<\EOF
10033 #define HAVE_LDEXPF 1
10034 EOF
10035
10036       cat >> confdefs.h <<\EOF
10037 #define HAVE_LOG10F 1
10038 EOF
10039
10040       cat >> confdefs.h <<\EOF
10041 #define HAVE_LOGF 1
10042 EOF
10043
10044       cat >> confdefs.h <<\EOF
10045 #define HAVE_MODFF 1
10046 EOF
10047
10048       cat >> confdefs.h <<\EOF
10049 #define HAVE_POWF 1
10050 EOF
10051
10052       cat >> confdefs.h <<\EOF
10053 #define HAVE_SINF 1
10054 EOF
10055
10056       cat >> confdefs.h <<\EOF
10057 #define HAVE_SINHF 1
10058 EOF
10059
10060       cat >> confdefs.h <<\EOF
10061 #define HAVE_SQRTF 1
10062 EOF
10063
10064       cat >> confdefs.h <<\EOF
10065 #define HAVE_TANF 1
10066 EOF
10067
10068       cat >> confdefs.h <<\EOF
10069 #define HAVE_TANHF 1
10070 EOF
10071
10072       ;;
10073     *)
10074       # GLIBCPP_CHECK_STDLIB_SUPPORT
10075       cat >> confdefs.h <<\EOF
10076 #define HAVE_STRTOF 1
10077 EOF
10078         
10079       cat >> confdefs.h <<\EOF
10080 #define HAVE_STRTOLD 1
10081 EOF
10082         
10083       # AC_FUNC_MMAP
10084       cat >> confdefs.h <<\EOF
10085 #define HAVE_MMAP 1
10086 EOF
10087
10088
10089       cat >> confdefs.h <<\EOF
10090 #define HAVE_ACOSF 1
10091 EOF
10092
10093       cat >> confdefs.h <<\EOF
10094 #define HAVE_ASINF 1
10095 EOF
10096
10097       cat >> confdefs.h <<\EOF
10098 #define HAVE_ATAN2F 1
10099 EOF
10100
10101       cat >> confdefs.h <<\EOF
10102 #define HAVE_ATANF 1
10103 EOF
10104
10105       cat >> confdefs.h <<\EOF
10106 #define HAVE_CEILF 1
10107 EOF
10108
10109       cat >> confdefs.h <<\EOF
10110 #define HAVE_COPYSIGN 1
10111 EOF
10112
10113       cat >> confdefs.h <<\EOF
10114 #define HAVE_COPYSIGNF 1
10115 EOF
10116
10117       cat >> confdefs.h <<\EOF
10118 #define HAVE_COSF 1
10119 EOF
10120
10121       cat >> confdefs.h <<\EOF
10122 #define HAVE_COSHF 1
10123 EOF
10124
10125       cat >> confdefs.h <<\EOF
10126 #define HAVE_EXPF 1
10127 EOF
10128
10129       cat >> confdefs.h <<\EOF
10130 #define HAVE_FABSF 1
10131 EOF
10132
10133       cat >> confdefs.h <<\EOF
10134 #define HAVE_FLOORF 1
10135 EOF
10136
10137       cat >> confdefs.h <<\EOF
10138 #define HAVE_FMODF 1
10139 EOF
10140
10141       cat >> confdefs.h <<\EOF
10142 #define HAVE_FREXPF 1
10143 EOF
10144
10145       cat >> confdefs.h <<\EOF
10146 #define HAVE_LDEXPF 1
10147 EOF
10148
10149       cat >> confdefs.h <<\EOF
10150 #define HAVE_LOG10F 1
10151 EOF
10152
10153       cat >> confdefs.h <<\EOF
10154 #define HAVE_LOGF 1
10155 EOF
10156
10157       cat >> confdefs.h <<\EOF
10158 #define HAVE_MODFF 1
10159 EOF
10160
10161       cat >> confdefs.h <<\EOF
10162 #define HAVE_POWF 1
10163 EOF
10164
10165       cat >> confdefs.h <<\EOF
10166 #define HAVE_SINF 1
10167 EOF
10168
10169       cat >> confdefs.h <<\EOF
10170 #define HAVE_SINHF 1
10171 EOF
10172
10173       cat >> confdefs.h <<\EOF
10174 #define HAVE_SQRTF 1
10175 EOF
10176
10177       cat >> confdefs.h <<\EOF
10178 #define HAVE_TANF 1
10179 EOF
10180
10181       cat >> confdefs.h <<\EOF
10182 #define HAVE_TANHF 1
10183 EOF
10184
10185       ;;
10186   esac
10187
10188   # At some point, we should differentiate between architectures
10189   # like x86, which have long double versions, and alpha/powerpc/etc.,
10190   # which don't. For the time being, punt.
10191   if test x"long_double_math_on_this_cpu" = x"yes"; then
10192     cat >> confdefs.h <<\EOF
10193 #define HAVE_ACOSL 1
10194 EOF
10195
10196     cat >> confdefs.h <<\EOF
10197 #define HAVE_ASINL 1
10198 EOF
10199
10200     cat >> confdefs.h <<\EOF
10201 #define HAVE_ATAN2L 1
10202 EOF
10203
10204     cat >> confdefs.h <<\EOF
10205 #define HAVE_ATANL 1
10206 EOF
10207
10208     cat >> confdefs.h <<\EOF
10209 #define HAVE_CEILL 1
10210 EOF
10211
10212     cat >> confdefs.h <<\EOF
10213 #define HAVE_COPYSIGNL 1
10214 EOF
10215
10216     cat >> confdefs.h <<\EOF
10217 #define HAVE_COSL 1
10218 EOF
10219
10220     cat >> confdefs.h <<\EOF
10221 #define HAVE_COSHL 1
10222 EOF
10223
10224     cat >> confdefs.h <<\EOF
10225 #define HAVE_EXPL 1
10226 EOF
10227
10228     cat >> confdefs.h <<\EOF
10229 #define HAVE_FABSL 1
10230 EOF
10231
10232     cat >> confdefs.h <<\EOF
10233 #define HAVE_FLOORL 1
10234 EOF
10235
10236     cat >> confdefs.h <<\EOF
10237 #define HAVE_FMODL 1
10238 EOF
10239
10240     cat >> confdefs.h <<\EOF
10241 #define HAVE_FREXPL 1
10242 EOF
10243
10244     cat >> confdefs.h <<\EOF
10245 #define HAVE_LDEXPL 1
10246 EOF
10247
10248     cat >> confdefs.h <<\EOF
10249 #define HAVE_LOG10L 1
10250 EOF
10251
10252     cat >> confdefs.h <<\EOF
10253 #define HAVE_LOGL 1
10254 EOF
10255
10256     cat >> confdefs.h <<\EOF
10257 #define HAVE_MODFL 1
10258 EOF
10259
10260     cat >> confdefs.h <<\EOF
10261 #define HAVE_POWL 1
10262 EOF
10263
10264     cat >> confdefs.h <<\EOF
10265 #define HAVE_SINCOSL 1
10266 EOF
10267
10268     cat >> confdefs.h <<\EOF
10269 #define HAVE_SINL 1
10270 EOF
10271
10272     cat >> confdefs.h <<\EOF
10273 #define HAVE_SINHL 1
10274 EOF
10275
10276     cat >> confdefs.h <<\EOF
10277 #define HAVE_SQRTL 1
10278 EOF
10279
10280     cat >> confdefs.h <<\EOF
10281 #define HAVE_TANL 1
10282 EOF
10283
10284     cat >> confdefs.h <<\EOF
10285 #define HAVE_TANHL 1
10286 EOF
10287
10288   fi
10289
10290 else
10291
10292   # We are being configured natively. We can do more elaborate tests
10293   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10294   # working.
10295   GLIBCPP_IS_CROSS_COMPILING=0
10296   CANADIAN=no
10297
10298   # Check for available headers.
10299   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10300   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10301 do
10302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10304 echo "configure:10305: checking for $ac_hdr" >&5
10305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10306   echo $ac_n "(cached) $ac_c" 1>&6
10307 else
10308   cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 #include <$ac_hdr>
10312 EOF
10313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10314 { (eval echo configure:10315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10316 if test -z "$ac_err"; then
10317   rm -rf conftest*
10318   eval "ac_cv_header_$ac_safe=yes"
10319 else
10320   echo "$ac_err" >&5
10321   echo "configure: failed program was:" >&5
10322   cat conftest.$ac_ext >&5
10323   rm -rf conftest*
10324   eval "ac_cv_header_$ac_safe=no"
10325 fi
10326 rm -f conftest*
10327 fi
10328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10329   echo "$ac_t""yes" 1>&6
10330     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10331   cat >> confdefs.h <<EOF
10332 #define $ac_tr_hdr 1
10333 EOF
10334  
10335 else
10336   echo "$ac_t""no" 1>&6
10337 fi
10338 done
10339
10340
10341   
10342   # All these tests are for C++; save the language and the compiler flags.
10343   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10344   # found in GLIBCPP_CONFIGURE.
10345   
10346   ac_ext=C
10347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10348 ac_cpp='$CXXCPP $CPPFLAGS'
10349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10351 cross_compiling=$ac_cv_prog_cxx_cross
10352
10353   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10354   ac_save_CXXFLAGS="$CXXFLAGS"
10355
10356   # Check for maintainer-mode bits.
10357   if test x"$USE_MAINTAINER_MODE" = xno; then
10358     WERROR=''
10359   else
10360     WERROR='-Werror'
10361   fi
10362
10363   # Check for -ffunction-sections -fdata-sections
10364   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10365 echo "configure:10366: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10366   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10367   cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10370
10371 int main() {
10372 int foo;
10373   
10374 ; return 0; }
10375 EOF
10376 if { (eval echo configure:10377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10377   rm -rf conftest*
10378   ac_fdsections=yes
10379 else
10380   echo "configure: failed program was:" >&5
10381   cat conftest.$ac_ext >&5
10382   rm -rf conftest*
10383   ac_fdsections=no
10384 fi
10385 rm -f conftest*
10386   if test "$ac_test_CXXFLAGS" = set; then
10387     CXXFLAGS="$ac_save_CXXFLAGS"
10388   else
10389     # this is the suspicious part
10390     CXXFLAGS=''
10391   fi
10392   if test x"$ac_fdsections" = x"yes" &&
10393      test x"$enable_debug" = x"no"; then
10394     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10395   fi
10396   echo "$ac_t""$ac_fdsections" 1>&6
10397
10398   ac_ext=c
10399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10400 ac_cpp='$CPP $CPPFLAGS'
10401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10403 cross_compiling=$ac_cv_prog_cc_cross
10404
10405   
10406   
10407
10408   
10409   # If we're not using GNU ld, then there's no point in even trying these
10410   # tests.  Check for that first.  We should have already tested for gld
10411   # by now (in libtool), but require it now just to be safe...
10412   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10413   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10414   
10415
10416   # The name set by libtool depends on the version of libtool.  Shame on us
10417   # for depending on an impl detail, but c'est la vie.  Older versions used
10418   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10419   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10420   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10421   # set (hence we're using an older libtool), then set it.
10422   if test x${with_gnu_ld+set} != xset; then
10423     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10424       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10425       with_gnu_ld=no
10426     else
10427       with_gnu_ld=$ac_cv_prog_gnu_ld
10428     fi
10429   fi
10430
10431   # Start by getting the version number.  I think the libtool test already
10432   # does some of this, but throws away the result.
10433   
10434   ldver=`$LD --version 2>/dev/null | head -1 | \
10435          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10436   
10437   glibcpp_gnu_ld_version=`echo $ldver | \
10438          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10439
10440   # Set --gc-sections.
10441   if test "$with_gnu_ld" = "notbroken"; then
10442     # GNU ld it is!  Joy and bunny rabbits!
10443
10444     # All these tests are for C++; save the language and the compiler flags.
10445     # Need to do this so that g++ won't try to link in libstdc++
10446     ac_test_CFLAGS="${CFLAGS+set}"
10447     ac_save_CFLAGS="$CFLAGS"
10448     CFLAGS='-x c++  -Wl,--gc-sections'
10449
10450     # Check for -Wl,--gc-sections
10451     # XXX This test is broken at the moment, as symbols required for
10452     # linking are now in libsupc++ (not built yet.....). In addition, 
10453     # this test has cored on solaris in the past. In addition,
10454     # --gc-sections doesn't really work at the moment (keeps on discarding
10455     # used sections, first .eh_frame and now some of the glibc sections for
10456     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10457     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10458 echo "configure:10459: checking for ld that supports -Wl,--gc-sections" >&5
10459     if test "$cross_compiling" = yes; then
10460   ac_sectionLDflags=yes
10461 else
10462   cat > conftest.$ac_ext <<EOF
10463 #line 10464 "configure"
10464 #include "confdefs.h"
10465
10466      int main(void) 
10467      {
10468        try { throw 1; }
10469        catch (...) { };
10470        return 0;
10471      }
10472     
10473 EOF
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10475 then
10476   ac_sectionLDflags=yes
10477 else
10478   echo "configure: failed program was:" >&5
10479   cat conftest.$ac_ext >&5
10480   rm -fr conftest*
10481   ac_sectionLDflags=no
10482 fi
10483 rm -fr conftest*
10484 fi
10485
10486     if test "$ac_test_CFLAGS" = set; then
10487       CFLAGS="$ac_save_CFLAGS"
10488     else
10489       # this is the suspicious part
10490       CFLAGS=''
10491     fi
10492     if test "$ac_sectionLDflags" = "yes"; then
10493       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10494     fi
10495     echo "$ac_t""$ac_sectionLDflags" 1>&6
10496   fi
10497
10498   # Set linker optimization flags.
10499   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
10500     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10501   fi
10502
10503   
10504   
10505
10506   
10507       
10508   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10509 echo "configure:10510: checking for __builtin_abs declaration" >&5
10510   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10511     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10512   echo $ac_n "(cached) $ac_c" 1>&6
10513 else
10514   
10515       
10516       ac_ext=C
10517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10518 ac_cpp='$CXXCPP $CPPFLAGS'
10519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10521 cross_compiling=$ac_cv_prog_cxx_cross
10522
10523       cat > conftest.$ac_ext <<EOF
10524 #line 10525 "configure"
10525 #include "confdefs.h"
10526 #include <math.h>
10527 int main() {
10528  __builtin_abs(0);
10529 ; return 0; }
10530 EOF
10531 if { (eval echo configure:10532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10532   rm -rf conftest*
10533   glibcpp_cv_func___builtin_abs_use=yes
10534 else
10535   echo "configure: failed program was:" >&5
10536   cat conftest.$ac_ext >&5
10537   rm -rf conftest*
10538   glibcpp_cv_func___builtin_abs_use=no
10539 fi
10540 rm -f conftest*
10541       ac_ext=c
10542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10543 ac_cpp='$CPP $CPPFLAGS'
10544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10546 cross_compiling=$ac_cv_prog_cc_cross
10547
10548     
10549 fi
10550
10551   fi
10552   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10553   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10554     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10555 echo "configure:10556: checking for __builtin_abs linkage" >&5
10556     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10557       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10558   echo $ac_n "(cached) $ac_c" 1>&6
10559 else
10560   
10561         cat > conftest.$ac_ext <<EOF
10562 #line 10563 "configure"
10563 #include "confdefs.h"
10564 #include <math.h>
10565 int main() {
10566  __builtin_abs(0);
10567 ; return 0; }
10568 EOF
10569 if { (eval echo configure:10570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10570   rm -rf conftest*
10571   glibcpp_cv_func___builtin_abs_link=yes
10572 else
10573   echo "configure: failed program was:" >&5
10574   cat conftest.$ac_ext >&5
10575   rm -rf conftest*
10576   glibcpp_cv_func___builtin_abs_link=no
10577 fi
10578 rm -f conftest*
10579       
10580 fi
10581
10582     fi
10583     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10584     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10585       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10586       cat >> confdefs.h <<EOF
10587 #define ${ac_tr_func} 1
10588 EOF
10589
10590     fi
10591   fi
10592
10593   
10594   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10595 echo "configure:10596: checking for __builtin_fabsf declaration" >&5
10596   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10597     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10598   echo $ac_n "(cached) $ac_c" 1>&6
10599 else
10600   
10601       
10602       ac_ext=C
10603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10604 ac_cpp='$CXXCPP $CPPFLAGS'
10605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10607 cross_compiling=$ac_cv_prog_cxx_cross
10608
10609       cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10612 #include <math.h>
10613 int main() {
10614  __builtin_fabsf(0);
10615 ; return 0; }
10616 EOF
10617 if { (eval echo configure:10618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10618   rm -rf conftest*
10619   glibcpp_cv_func___builtin_fabsf_use=yes
10620 else
10621   echo "configure: failed program was:" >&5
10622   cat conftest.$ac_ext >&5
10623   rm -rf conftest*
10624   glibcpp_cv_func___builtin_fabsf_use=no
10625 fi
10626 rm -f conftest*
10627       ac_ext=c
10628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10629 ac_cpp='$CPP $CPPFLAGS'
10630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10632 cross_compiling=$ac_cv_prog_cc_cross
10633
10634     
10635 fi
10636
10637   fi
10638   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10639   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10640     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10641 echo "configure:10642: checking for __builtin_fabsf linkage" >&5
10642     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10643       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10644   echo $ac_n "(cached) $ac_c" 1>&6
10645 else
10646   
10647         cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include <math.h>
10651 int main() {
10652  __builtin_fabsf(0);
10653 ; return 0; }
10654 EOF
10655 if { (eval echo configure:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10656   rm -rf conftest*
10657   glibcpp_cv_func___builtin_fabsf_link=yes
10658 else
10659   echo "configure: failed program was:" >&5
10660   cat conftest.$ac_ext >&5
10661   rm -rf conftest*
10662   glibcpp_cv_func___builtin_fabsf_link=no
10663 fi
10664 rm -f conftest*
10665       
10666 fi
10667
10668     fi
10669     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10670     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10671       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10672       cat >> confdefs.h <<EOF
10673 #define ${ac_tr_func} 1
10674 EOF
10675
10676     fi
10677   fi
10678
10679   
10680   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10681 echo "configure:10682: checking for __builtin_fabs declaration" >&5
10682   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10683     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10684   echo $ac_n "(cached) $ac_c" 1>&6
10685 else
10686   
10687       
10688       ac_ext=C
10689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10690 ac_cpp='$CXXCPP $CPPFLAGS'
10691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10693 cross_compiling=$ac_cv_prog_cxx_cross
10694
10695       cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 #include <math.h>
10699 int main() {
10700  __builtin_fabs(0);
10701 ; return 0; }
10702 EOF
10703 if { (eval echo configure:10704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10704   rm -rf conftest*
10705   glibcpp_cv_func___builtin_fabs_use=yes
10706 else
10707   echo "configure: failed program was:" >&5
10708   cat conftest.$ac_ext >&5
10709   rm -rf conftest*
10710   glibcpp_cv_func___builtin_fabs_use=no
10711 fi
10712 rm -f conftest*
10713       ac_ext=c
10714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10715 ac_cpp='$CPP $CPPFLAGS'
10716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10718 cross_compiling=$ac_cv_prog_cc_cross
10719
10720     
10721 fi
10722
10723   fi
10724   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10725   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10726     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10727 echo "configure:10728: checking for __builtin_fabs linkage" >&5
10728     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10729       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10730   echo $ac_n "(cached) $ac_c" 1>&6
10731 else
10732   
10733         cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10736 #include <math.h>
10737 int main() {
10738  __builtin_fabs(0);
10739 ; return 0; }
10740 EOF
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10742   rm -rf conftest*
10743   glibcpp_cv_func___builtin_fabs_link=yes
10744 else
10745   echo "configure: failed program was:" >&5
10746   cat conftest.$ac_ext >&5
10747   rm -rf conftest*
10748   glibcpp_cv_func___builtin_fabs_link=no
10749 fi
10750 rm -f conftest*
10751       
10752 fi
10753
10754     fi
10755     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10756     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10757       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10758       cat >> confdefs.h <<EOF
10759 #define ${ac_tr_func} 1
10760 EOF
10761
10762     fi
10763   fi
10764
10765   
10766   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10767 echo "configure:10768: checking for __builtin_fabsl declaration" >&5
10768   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10769     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10770   echo $ac_n "(cached) $ac_c" 1>&6
10771 else
10772   
10773       
10774       ac_ext=C
10775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10776 ac_cpp='$CXXCPP $CPPFLAGS'
10777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10779 cross_compiling=$ac_cv_prog_cxx_cross
10780
10781       cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10784 #include <math.h>
10785 int main() {
10786  __builtin_fabsl(0);
10787 ; return 0; }
10788 EOF
10789 if { (eval echo configure:10790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10790   rm -rf conftest*
10791   glibcpp_cv_func___builtin_fabsl_use=yes
10792 else
10793   echo "configure: failed program was:" >&5
10794   cat conftest.$ac_ext >&5
10795   rm -rf conftest*
10796   glibcpp_cv_func___builtin_fabsl_use=no
10797 fi
10798 rm -f conftest*
10799       ac_ext=c
10800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10801 ac_cpp='$CPP $CPPFLAGS'
10802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10804 cross_compiling=$ac_cv_prog_cc_cross
10805
10806     
10807 fi
10808
10809   fi
10810   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
10811   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
10812     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
10813 echo "configure:10814: checking for __builtin_fabsl linkage" >&5
10814     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
10815       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
10816   echo $ac_n "(cached) $ac_c" 1>&6
10817 else
10818   
10819         cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10822 #include <math.h>
10823 int main() {
10824  __builtin_fabsl(0);
10825 ; return 0; }
10826 EOF
10827 if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10828   rm -rf conftest*
10829   glibcpp_cv_func___builtin_fabsl_link=yes
10830 else
10831   echo "configure: failed program was:" >&5
10832   cat conftest.$ac_ext >&5
10833   rm -rf conftest*
10834   glibcpp_cv_func___builtin_fabsl_link=no
10835 fi
10836 rm -f conftest*
10837       
10838 fi
10839
10840     fi
10841     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
10842     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
10843       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10844       cat >> confdefs.h <<EOF
10845 #define ${ac_tr_func} 1
10846 EOF
10847
10848     fi
10849   fi
10850
10851   
10852   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
10853 echo "configure:10854: checking for __builtin_labs declaration" >&5
10854   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
10855     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
10856   echo $ac_n "(cached) $ac_c" 1>&6
10857 else
10858   
10859       
10860       ac_ext=C
10861 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10862 ac_cpp='$CXXCPP $CPPFLAGS'
10863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10865 cross_compiling=$ac_cv_prog_cxx_cross
10866
10867       cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include <math.h>
10871 int main() {
10872  __builtin_labs(0);
10873 ; return 0; }
10874 EOF
10875 if { (eval echo configure:10876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10876   rm -rf conftest*
10877   glibcpp_cv_func___builtin_labs_use=yes
10878 else
10879   echo "configure: failed program was:" >&5
10880   cat conftest.$ac_ext >&5
10881   rm -rf conftest*
10882   glibcpp_cv_func___builtin_labs_use=no
10883 fi
10884 rm -f conftest*
10885       ac_ext=c
10886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10887 ac_cpp='$CPP $CPPFLAGS'
10888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10890 cross_compiling=$ac_cv_prog_cc_cross
10891
10892     
10893 fi
10894
10895   fi
10896   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
10897   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
10898     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
10899 echo "configure:10900: checking for __builtin_labs linkage" >&5
10900     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
10901       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
10902   echo $ac_n "(cached) $ac_c" 1>&6
10903 else
10904   
10905         cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 #include <math.h>
10909 int main() {
10910  __builtin_labs(0);
10911 ; return 0; }
10912 EOF
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914   rm -rf conftest*
10915   glibcpp_cv_func___builtin_labs_link=yes
10916 else
10917   echo "configure: failed program was:" >&5
10918   cat conftest.$ac_ext >&5
10919   rm -rf conftest*
10920   glibcpp_cv_func___builtin_labs_link=no
10921 fi
10922 rm -f conftest*
10923       
10924 fi
10925
10926     fi
10927     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
10928     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
10929       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10930       cat >> confdefs.h <<EOF
10931 #define ${ac_tr_func} 1
10932 EOF
10933
10934     fi
10935   fi
10936
10937
10938   
10939   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
10940 echo "configure:10941: checking for __builtin_sqrtf declaration" >&5
10941   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
10942     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
10943   echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10945   
10946       
10947       ac_ext=C
10948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10949 ac_cpp='$CXXCPP $CPPFLAGS'
10950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10952 cross_compiling=$ac_cv_prog_cxx_cross
10953
10954       cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 #include <math.h>
10958 int main() {
10959  __builtin_sqrtf(0);
10960 ; return 0; }
10961 EOF
10962 if { (eval echo configure:10963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10963   rm -rf conftest*
10964   glibcpp_cv_func___builtin_sqrtf_use=yes
10965 else
10966   echo "configure: failed program was:" >&5
10967   cat conftest.$ac_ext >&5
10968   rm -rf conftest*
10969   glibcpp_cv_func___builtin_sqrtf_use=no
10970 fi
10971 rm -f conftest*
10972       ac_ext=c
10973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10977 cross_compiling=$ac_cv_prog_cc_cross
10978
10979     
10980 fi
10981
10982   fi
10983   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
10984   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
10985     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
10986 echo "configure:10987: checking for __builtin_sqrtf linkage" >&5
10987     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
10988       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
10989   echo $ac_n "(cached) $ac_c" 1>&6
10990 else
10991   
10992         cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 #include <math.h>
10996 int main() {
10997  __builtin_sqrtf(0);
10998 ; return 0; }
10999 EOF
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11001   rm -rf conftest*
11002   glibcpp_cv_func___builtin_sqrtf_link=yes
11003 else
11004   echo "configure: failed program was:" >&5
11005   cat conftest.$ac_ext >&5
11006   rm -rf conftest*
11007   glibcpp_cv_func___builtin_sqrtf_link=no
11008 fi
11009 rm -f conftest*
11010       
11011 fi
11012
11013     fi
11014     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11015     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11016       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11017       cat >> confdefs.h <<EOF
11018 #define ${ac_tr_func} 1
11019 EOF
11020
11021     fi
11022   fi
11023
11024   
11025   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11026 echo "configure:11027: checking for __builtin_sqrt declaration" >&5
11027   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11028     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11029   echo $ac_n "(cached) $ac_c" 1>&6
11030 else
11031   
11032       
11033       ac_ext=C
11034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11035 ac_cpp='$CXXCPP $CPPFLAGS'
11036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11038 cross_compiling=$ac_cv_prog_cxx_cross
11039
11040       cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11043 #include <math.h>
11044 int main() {
11045  __builtin_sqrt(0);
11046 ; return 0; }
11047 EOF
11048 if { (eval echo configure:11049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11049   rm -rf conftest*
11050   glibcpp_cv_func___builtin_sqrt_use=yes
11051 else
11052   echo "configure: failed program was:" >&5
11053   cat conftest.$ac_ext >&5
11054   rm -rf conftest*
11055   glibcpp_cv_func___builtin_sqrt_use=no
11056 fi
11057 rm -f conftest*
11058       ac_ext=c
11059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CPP $CPPFLAGS'
11061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cc_cross
11064
11065     
11066 fi
11067
11068   fi
11069   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11070   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11071     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11072 echo "configure:11073: checking for __builtin_sqrt linkage" >&5
11073     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11074       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11075   echo $ac_n "(cached) $ac_c" 1>&6
11076 else
11077   
11078         cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11081 #include <math.h>
11082 int main() {
11083  __builtin_sqrt(0);
11084 ; return 0; }
11085 EOF
11086 if { (eval echo configure:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11087   rm -rf conftest*
11088   glibcpp_cv_func___builtin_sqrt_link=yes
11089 else
11090   echo "configure: failed program was:" >&5
11091   cat conftest.$ac_ext >&5
11092   rm -rf conftest*
11093   glibcpp_cv_func___builtin_sqrt_link=no
11094 fi
11095 rm -f conftest*
11096       
11097 fi
11098
11099     fi
11100     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11101     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11102       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11103       cat >> confdefs.h <<EOF
11104 #define ${ac_tr_func} 1
11105 EOF
11106
11107     fi
11108   fi
11109
11110   
11111   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11112 echo "configure:11113: checking for __builtin_sqrtl declaration" >&5
11113   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11114     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11115   echo $ac_n "(cached) $ac_c" 1>&6
11116 else
11117   
11118       
11119       ac_ext=C
11120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11121 ac_cpp='$CXXCPP $CPPFLAGS'
11122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11124 cross_compiling=$ac_cv_prog_cxx_cross
11125
11126       cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 #include <math.h>
11130 int main() {
11131  __builtin_sqrtl(0);
11132 ; return 0; }
11133 EOF
11134 if { (eval echo configure:11135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11135   rm -rf conftest*
11136   glibcpp_cv_func___builtin_sqrtl_use=yes
11137 else
11138   echo "configure: failed program was:" >&5
11139   cat conftest.$ac_ext >&5
11140   rm -rf conftest*
11141   glibcpp_cv_func___builtin_sqrtl_use=no
11142 fi
11143 rm -f conftest*
11144       ac_ext=c
11145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11146 ac_cpp='$CPP $CPPFLAGS'
11147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11149 cross_compiling=$ac_cv_prog_cc_cross
11150
11151     
11152 fi
11153
11154   fi
11155   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11156   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11157     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11158 echo "configure:11159: checking for __builtin_sqrtl linkage" >&5
11159     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11160       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11161   echo $ac_n "(cached) $ac_c" 1>&6
11162 else
11163   
11164         cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11167 #include <math.h>
11168 int main() {
11169  __builtin_sqrtl(0);
11170 ; return 0; }
11171 EOF
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173   rm -rf conftest*
11174   glibcpp_cv_func___builtin_sqrtl_link=yes
11175 else
11176   echo "configure: failed program was:" >&5
11177   cat conftest.$ac_ext >&5
11178   rm -rf conftest*
11179   glibcpp_cv_func___builtin_sqrtl_link=no
11180 fi
11181 rm -f conftest*
11182       
11183 fi
11184
11185     fi
11186     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11187     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11188       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11189       cat >> confdefs.h <<EOF
11190 #define ${ac_tr_func} 1
11191 EOF
11192
11193     fi
11194   fi
11195
11196
11197   
11198   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11199 echo "configure:11200: checking for __builtin_sinf declaration" >&5
11200   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11201     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11202   echo $ac_n "(cached) $ac_c" 1>&6
11203 else
11204   
11205       
11206       ac_ext=C
11207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11208 ac_cpp='$CXXCPP $CPPFLAGS'
11209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11211 cross_compiling=$ac_cv_prog_cxx_cross
11212
11213       cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 #include <math.h>
11217 int main() {
11218  __builtin_sinf(0);
11219 ; return 0; }
11220 EOF
11221 if { (eval echo configure:11222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11222   rm -rf conftest*
11223   glibcpp_cv_func___builtin_sinf_use=yes
11224 else
11225   echo "configure: failed program was:" >&5
11226   cat conftest.$ac_ext >&5
11227   rm -rf conftest*
11228   glibcpp_cv_func___builtin_sinf_use=no
11229 fi
11230 rm -f conftest*
11231       ac_ext=c
11232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11233 ac_cpp='$CPP $CPPFLAGS'
11234 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11235 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11236 cross_compiling=$ac_cv_prog_cc_cross
11237
11238     
11239 fi
11240
11241   fi
11242   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11243   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11244     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11245 echo "configure:11246: checking for __builtin_sinf linkage" >&5
11246     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11247       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11248   echo $ac_n "(cached) $ac_c" 1>&6
11249 else
11250   
11251         cat > conftest.$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11254 #include <math.h>
11255 int main() {
11256  __builtin_sinf(0);
11257 ; return 0; }
11258 EOF
11259 if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11260   rm -rf conftest*
11261   glibcpp_cv_func___builtin_sinf_link=yes
11262 else
11263   echo "configure: failed program was:" >&5
11264   cat conftest.$ac_ext >&5
11265   rm -rf conftest*
11266   glibcpp_cv_func___builtin_sinf_link=no
11267 fi
11268 rm -f conftest*
11269       
11270 fi
11271
11272     fi
11273     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11274     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11275       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11276       cat >> confdefs.h <<EOF
11277 #define ${ac_tr_func} 1
11278 EOF
11279
11280     fi
11281   fi
11282
11283   
11284   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11285 echo "configure:11286: checking for __builtin_sin declaration" >&5
11286   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11287     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11288   echo $ac_n "(cached) $ac_c" 1>&6
11289 else
11290   
11291       
11292       ac_ext=C
11293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11294 ac_cpp='$CXXCPP $CPPFLAGS'
11295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11297 cross_compiling=$ac_cv_prog_cxx_cross
11298
11299       cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 #include <math.h>
11303 int main() {
11304  __builtin_sin(0);
11305 ; return 0; }
11306 EOF
11307 if { (eval echo configure:11308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11308   rm -rf conftest*
11309   glibcpp_cv_func___builtin_sin_use=yes
11310 else
11311   echo "configure: failed program was:" >&5
11312   cat conftest.$ac_ext >&5
11313   rm -rf conftest*
11314   glibcpp_cv_func___builtin_sin_use=no
11315 fi
11316 rm -f conftest*
11317       ac_ext=c
11318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11319 ac_cpp='$CPP $CPPFLAGS'
11320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11322 cross_compiling=$ac_cv_prog_cc_cross
11323
11324     
11325 fi
11326
11327   fi
11328   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11329   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11330     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11331 echo "configure:11332: checking for __builtin_sin linkage" >&5
11332     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11333       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11334   echo $ac_n "(cached) $ac_c" 1>&6
11335 else
11336   
11337         cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 #include <math.h>
11341 int main() {
11342  __builtin_sin(0);
11343 ; return 0; }
11344 EOF
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11346   rm -rf conftest*
11347   glibcpp_cv_func___builtin_sin_link=yes
11348 else
11349   echo "configure: failed program was:" >&5
11350   cat conftest.$ac_ext >&5
11351   rm -rf conftest*
11352   glibcpp_cv_func___builtin_sin_link=no
11353 fi
11354 rm -f conftest*
11355       
11356 fi
11357
11358     fi
11359     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11360     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11361       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11362       cat >> confdefs.h <<EOF
11363 #define ${ac_tr_func} 1
11364 EOF
11365
11366     fi
11367   fi
11368
11369   
11370   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11371 echo "configure:11372: checking for __builtin_sinl declaration" >&5
11372   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11373     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11374   echo $ac_n "(cached) $ac_c" 1>&6
11375 else
11376   
11377       
11378       ac_ext=C
11379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11380 ac_cpp='$CXXCPP $CPPFLAGS'
11381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11383 cross_compiling=$ac_cv_prog_cxx_cross
11384
11385       cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 #include <math.h>
11389 int main() {
11390  __builtin_sinl(0);
11391 ; return 0; }
11392 EOF
11393 if { (eval echo configure:11394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11394   rm -rf conftest*
11395   glibcpp_cv_func___builtin_sinl_use=yes
11396 else
11397   echo "configure: failed program was:" >&5
11398   cat conftest.$ac_ext >&5
11399   rm -rf conftest*
11400   glibcpp_cv_func___builtin_sinl_use=no
11401 fi
11402 rm -f conftest*
11403       ac_ext=c
11404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11405 ac_cpp='$CPP $CPPFLAGS'
11406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11408 cross_compiling=$ac_cv_prog_cc_cross
11409
11410     
11411 fi
11412
11413   fi
11414   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11415   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11416     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11417 echo "configure:11418: checking for __builtin_sinl linkage" >&5
11418     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11419       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11420   echo $ac_n "(cached) $ac_c" 1>&6
11421 else
11422   
11423         cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure"
11425 #include "confdefs.h"
11426 #include <math.h>
11427 int main() {
11428  __builtin_sinl(0);
11429 ; return 0; }
11430 EOF
11431 if { (eval echo configure:11432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432   rm -rf conftest*
11433   glibcpp_cv_func___builtin_sinl_link=yes
11434 else
11435   echo "configure: failed program was:" >&5
11436   cat conftest.$ac_ext >&5
11437   rm -rf conftest*
11438   glibcpp_cv_func___builtin_sinl_link=no
11439 fi
11440 rm -f conftest*
11441       
11442 fi
11443
11444     fi
11445     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11446     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11447       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11448       cat >> confdefs.h <<EOF
11449 #define ${ac_tr_func} 1
11450 EOF
11451
11452     fi
11453   fi
11454
11455
11456   
11457   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11458 echo "configure:11459: checking for __builtin_cosf declaration" >&5
11459   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11460     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11461   echo $ac_n "(cached) $ac_c" 1>&6
11462 else
11463   
11464       
11465       ac_ext=C
11466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11467 ac_cpp='$CXXCPP $CPPFLAGS'
11468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11470 cross_compiling=$ac_cv_prog_cxx_cross
11471
11472       cat > conftest.$ac_ext <<EOF
11473 #line 11474 "configure"
11474 #include "confdefs.h"
11475 #include <math.h>
11476 int main() {
11477  __builtin_cosf(0);
11478 ; return 0; }
11479 EOF
11480 if { (eval echo configure:11481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11481   rm -rf conftest*
11482   glibcpp_cv_func___builtin_cosf_use=yes
11483 else
11484   echo "configure: failed program was:" >&5
11485   cat conftest.$ac_ext >&5
11486   rm -rf conftest*
11487   glibcpp_cv_func___builtin_cosf_use=no
11488 fi
11489 rm -f conftest*
11490       ac_ext=c
11491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11492 ac_cpp='$CPP $CPPFLAGS'
11493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11495 cross_compiling=$ac_cv_prog_cc_cross
11496
11497     
11498 fi
11499
11500   fi
11501   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11502   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11503     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11504 echo "configure:11505: checking for __builtin_cosf linkage" >&5
11505     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11506       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11507   echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509   
11510         cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 #include <math.h>
11514 int main() {
11515  __builtin_cosf(0);
11516 ; return 0; }
11517 EOF
11518 if { (eval echo configure:11519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11519   rm -rf conftest*
11520   glibcpp_cv_func___builtin_cosf_link=yes
11521 else
11522   echo "configure: failed program was:" >&5
11523   cat conftest.$ac_ext >&5
11524   rm -rf conftest*
11525   glibcpp_cv_func___builtin_cosf_link=no
11526 fi
11527 rm -f conftest*
11528       
11529 fi
11530
11531     fi
11532     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11533     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11534       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11535       cat >> confdefs.h <<EOF
11536 #define ${ac_tr_func} 1
11537 EOF
11538
11539     fi
11540   fi
11541
11542   
11543   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11544 echo "configure:11545: checking for __builtin_cos declaration" >&5
11545   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11546     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11547   echo $ac_n "(cached) $ac_c" 1>&6
11548 else
11549   
11550       
11551       ac_ext=C
11552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11553 ac_cpp='$CXXCPP $CPPFLAGS'
11554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11556 cross_compiling=$ac_cv_prog_cxx_cross
11557
11558       cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11561 #include <math.h>
11562 int main() {
11563  __builtin_cos(0);
11564 ; return 0; }
11565 EOF
11566 if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11567   rm -rf conftest*
11568   glibcpp_cv_func___builtin_cos_use=yes
11569 else
11570   echo "configure: failed program was:" >&5
11571   cat conftest.$ac_ext >&5
11572   rm -rf conftest*
11573   glibcpp_cv_func___builtin_cos_use=no
11574 fi
11575 rm -f conftest*
11576       ac_ext=c
11577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11578 ac_cpp='$CPP $CPPFLAGS'
11579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11581 cross_compiling=$ac_cv_prog_cc_cross
11582
11583     
11584 fi
11585
11586   fi
11587   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11588   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11589     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11590 echo "configure:11591: checking for __builtin_cos linkage" >&5
11591     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11592       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11593   echo $ac_n "(cached) $ac_c" 1>&6
11594 else
11595   
11596         cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11599 #include <math.h>
11600 int main() {
11601  __builtin_cos(0);
11602 ; return 0; }
11603 EOF
11604 if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11605   rm -rf conftest*
11606   glibcpp_cv_func___builtin_cos_link=yes
11607 else
11608   echo "configure: failed program was:" >&5
11609   cat conftest.$ac_ext >&5
11610   rm -rf conftest*
11611   glibcpp_cv_func___builtin_cos_link=no
11612 fi
11613 rm -f conftest*
11614       
11615 fi
11616
11617     fi
11618     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11619     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11620       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11621       cat >> confdefs.h <<EOF
11622 #define ${ac_tr_func} 1
11623 EOF
11624
11625     fi
11626   fi
11627
11628   
11629   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11630 echo "configure:11631: checking for __builtin_cosl declaration" >&5
11631   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11632     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11633   echo $ac_n "(cached) $ac_c" 1>&6
11634 else
11635   
11636       
11637       ac_ext=C
11638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11639 ac_cpp='$CXXCPP $CPPFLAGS'
11640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11642 cross_compiling=$ac_cv_prog_cxx_cross
11643
11644       cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 #include <math.h>
11648 int main() {
11649  __builtin_cosl(0);
11650 ; return 0; }
11651 EOF
11652 if { (eval echo configure:11653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11653   rm -rf conftest*
11654   glibcpp_cv_func___builtin_cosl_use=yes
11655 else
11656   echo "configure: failed program was:" >&5
11657   cat conftest.$ac_ext >&5
11658   rm -rf conftest*
11659   glibcpp_cv_func___builtin_cosl_use=no
11660 fi
11661 rm -f conftest*
11662       ac_ext=c
11663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11664 ac_cpp='$CPP $CPPFLAGS'
11665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11667 cross_compiling=$ac_cv_prog_cc_cross
11668
11669     
11670 fi
11671
11672   fi
11673   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11674   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11675     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11676 echo "configure:11677: checking for __builtin_cosl linkage" >&5
11677     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11678       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11679   echo $ac_n "(cached) $ac_c" 1>&6
11680 else
11681   
11682         cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11685 #include <math.h>
11686 int main() {
11687  __builtin_cosl(0);
11688 ; return 0; }
11689 EOF
11690 if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11691   rm -rf conftest*
11692   glibcpp_cv_func___builtin_cosl_link=yes
11693 else
11694   echo "configure: failed program was:" >&5
11695   cat conftest.$ac_ext >&5
11696   rm -rf conftest*
11697   glibcpp_cv_func___builtin_cosl_link=no
11698 fi
11699 rm -f conftest*
11700       
11701 fi
11702
11703     fi
11704     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11705     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11706       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11707       cat >> confdefs.h <<EOF
11708 #define ${ac_tr_func} 1
11709 EOF
11710
11711     fi
11712   fi
11713
11714
11715               dummyvar=no
11716   if test x$dummyvar = x"yes"; then
11717     cat >> confdefs.h <<\EOF
11718 #define HAVE___BUILTIN_ABS 1
11719 EOF
11720
11721     cat >> confdefs.h <<\EOF
11722 #define HAVE___BUILTIN_LABS 1
11723 EOF
11724
11725     cat >> confdefs.h <<\EOF
11726 #define HAVE___BUILTIN_COS 1
11727 EOF
11728
11729     cat >> confdefs.h <<\EOF
11730 #define HAVE___BUILTIN_COSF 1
11731 EOF
11732
11733     cat >> confdefs.h <<\EOF
11734 #define HAVE___BUILTIN_COSL 1
11735 EOF
11736
11737     cat >> confdefs.h <<\EOF
11738 #define HAVE___BUILTIN_FABS 1
11739 EOF
11740
11741     cat >> confdefs.h <<\EOF
11742 #define HAVE___BUILTIN_FABSF 1
11743 EOF
11744
11745     cat >> confdefs.h <<\EOF
11746 #define HAVE___BUILTIN_FABSL 1
11747 EOF
11748
11749     cat >> confdefs.h <<\EOF
11750 #define HAVE___BUILTIN_SIN 1
11751 EOF
11752
11753     cat >> confdefs.h <<\EOF
11754 #define HAVE___BUILTIN_SINF 1
11755 EOF
11756
11757     cat >> confdefs.h <<\EOF
11758 #define HAVE___BUILTIN_SINL 1
11759 EOF
11760
11761     cat >> confdefs.h <<\EOF
11762 #define HAVE___BUILTIN_SQRT 1
11763 EOF
11764
11765     cat >> confdefs.h <<\EOF
11766 #define HAVE___BUILTIN_SQRTF 1
11767 EOF
11768
11769     cat >> confdefs.h <<\EOF
11770 #define HAVE___BUILTIN_SQRTL 1
11771 EOF
11772
11773   fi
11774
11775   
11776   ac_test_CXXFLAGS="${CXXFLAGS+set}"
11777   ac_save_CXXFLAGS="$CXXFLAGS"
11778   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11779
11780     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11781 echo "configure:11782: checking for sin in -lm" >&5
11782 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11784   echo $ac_n "(cached) $ac_c" 1>&6
11785 else
11786   ac_save_LIBS="$LIBS"
11787 LIBS="-lm  $LIBS"
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791 /* Override any gcc2 internal prototype to avoid an error.  */
11792 /* We use char because int might match the return type of a gcc2
11793     builtin and then its argument prototype would still apply.  */
11794 char sin();
11795
11796 int main() {
11797 sin()
11798 ; return 0; }
11799 EOF
11800 if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11801   rm -rf conftest*
11802   eval "ac_cv_lib_$ac_lib_var=yes"
11803 else
11804   echo "configure: failed program was:" >&5
11805   cat conftest.$ac_ext >&5
11806   rm -rf conftest*
11807   eval "ac_cv_lib_$ac_lib_var=no"
11808 fi
11809 rm -f conftest*
11810 LIBS="$ac_save_LIBS"
11811
11812 fi
11813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11814   echo "$ac_t""yes" 1>&6
11815   libm="-lm"
11816 else
11817   echo "$ac_t""no" 1>&6
11818 fi
11819
11820   ac_save_LIBS="$LIBS"
11821   LIBS="$LIBS $libm"
11822
11823     
11824   
11825   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
11826 echo "configure:11827: checking for isinf declaration" >&5
11827   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
11828     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
11829   echo $ac_n "(cached) $ac_c" 1>&6
11830 else
11831   
11832       
11833       ac_ext=C
11834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11835 ac_cpp='$CXXCPP $CPPFLAGS'
11836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11838 cross_compiling=$ac_cv_prog_cxx_cross
11839
11840       cat > conftest.$ac_ext <<EOF
11841 #line 11842 "configure"
11842 #include "confdefs.h"
11843 #include <math.h>
11844                       #ifdef HAVE_IEEEFP_H
11845                       #include <ieeefp.h>
11846                       #endif
11847                      
11848 int main() {
11849  isinf(0);
11850 ; return 0; }
11851 EOF
11852 if { (eval echo configure:11853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11853   rm -rf conftest*
11854   glibcpp_cv_func_isinf_use=yes
11855 else
11856   echo "configure: failed program was:" >&5
11857   cat conftest.$ac_ext >&5
11858   rm -rf conftest*
11859   glibcpp_cv_func_isinf_use=no
11860 fi
11861 rm -f conftest*
11862       ac_ext=c
11863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11864 ac_cpp='$CPP $CPPFLAGS'
11865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11867 cross_compiling=$ac_cv_prog_cc_cross
11868
11869     
11870 fi
11871
11872   fi
11873   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
11874
11875   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
11876     for ac_func in isinf
11877 do
11878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11879 echo "configure:11880: checking for $ac_func" >&5
11880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11881   echo $ac_n "(cached) $ac_c" 1>&6
11882 else
11883   cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure"
11885 #include "confdefs.h"
11886 /* System header to define __stub macros and hopefully few prototypes,
11887     which can conflict with char $ac_func(); below.  */
11888 #include <assert.h>
11889 /* Override any gcc2 internal prototype to avoid an error.  */
11890 /* We use char because int might match the return type of a gcc2
11891     builtin and then its argument prototype would still apply.  */
11892 char $ac_func();
11893
11894 int main() {
11895
11896 /* The GNU C library defines this for functions which it implements
11897     to always fail with ENOSYS.  Some functions are actually named
11898     something starting with __ and the normal name is an alias.  */
11899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11900 choke me
11901 #else
11902 $ac_func();
11903 #endif
11904
11905 ; return 0; }
11906 EOF
11907 if { (eval echo configure:11908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11908   rm -rf conftest*
11909   eval "ac_cv_func_$ac_func=yes"
11910 else
11911   echo "configure: failed program was:" >&5
11912   cat conftest.$ac_ext >&5
11913   rm -rf conftest*
11914   eval "ac_cv_func_$ac_func=no"
11915 fi
11916 rm -f conftest*
11917 fi
11918
11919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11920   echo "$ac_t""yes" 1>&6
11921     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11922   cat >> confdefs.h <<EOF
11923 #define $ac_tr_func 1
11924 EOF
11925  
11926 else
11927   echo "$ac_t""no" 1>&6
11928 fi
11929 done
11930     
11931   else
11932     
11933   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11934 echo "configure:11935: checking for _isinf declaration" >&5
11935   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11936     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11937   echo $ac_n "(cached) $ac_c" 1>&6
11938 else
11939   
11940       
11941       ac_ext=C
11942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11943 ac_cpp='$CXXCPP $CPPFLAGS'
11944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11946 cross_compiling=$ac_cv_prog_cxx_cross
11947
11948       cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 #include <math.h>
11952                       #ifdef HAVE_IEEEFP_H
11953                       #include <ieeefp.h>
11954                       #endif
11955                      
11956 int main() {
11957  _isinf(0);
11958 ; return 0; }
11959 EOF
11960 if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11961   rm -rf conftest*
11962   glibcpp_cv_func__isinf_use=yes
11963 else
11964   echo "configure: failed program was:" >&5
11965   cat conftest.$ac_ext >&5
11966   rm -rf conftest*
11967   glibcpp_cv_func__isinf_use=no
11968 fi
11969 rm -f conftest*
11970       ac_ext=c
11971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11975 cross_compiling=$ac_cv_prog_cc_cross
11976
11977     
11978 fi
11979
11980   fi
11981   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11982
11983     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11984       for ac_func in _isinf
11985 do
11986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11987 echo "configure:11988: checking for $ac_func" >&5
11988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11989   echo $ac_n "(cached) $ac_c" 1>&6
11990 else
11991   cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11994 /* System header to define __stub macros and hopefully few prototypes,
11995     which can conflict with char $ac_func(); below.  */
11996 #include <assert.h>
11997 /* Override any gcc2 internal prototype to avoid an error.  */
11998 /* We use char because int might match the return type of a gcc2
11999     builtin and then its argument prototype would still apply.  */
12000 char $ac_func();
12001
12002 int main() {
12003
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 choke me
12009 #else
12010 $ac_func();
12011 #endif
12012
12013 ; return 0; }
12014 EOF
12015 if { (eval echo configure:12016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12016   rm -rf conftest*
12017   eval "ac_cv_func_$ac_func=yes"
12018 else
12019   echo "configure: failed program was:" >&5
12020   cat conftest.$ac_ext >&5
12021   rm -rf conftest*
12022   eval "ac_cv_func_$ac_func=no"
12023 fi
12024 rm -f conftest*
12025 fi
12026
12027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12028   echo "$ac_t""yes" 1>&6
12029     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12030   cat >> confdefs.h <<EOF
12031 #define $ac_tr_func 1
12032 EOF
12033  
12034 else
12035   echo "$ac_t""no" 1>&6
12036 fi
12037 done
12038     
12039     fi
12040   fi
12041
12042   
12043   
12044   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12045 echo "configure:12046: checking for isnan declaration" >&5
12046   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12047     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12048   echo $ac_n "(cached) $ac_c" 1>&6
12049 else
12050   
12051       
12052       ac_ext=C
12053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12054 ac_cpp='$CXXCPP $CPPFLAGS'
12055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12057 cross_compiling=$ac_cv_prog_cxx_cross
12058
12059       cat > conftest.$ac_ext <<EOF
12060 #line 12061 "configure"
12061 #include "confdefs.h"
12062 #include <math.h>
12063                       #ifdef HAVE_IEEEFP_H
12064                       #include <ieeefp.h>
12065                       #endif
12066                      
12067 int main() {
12068  isnan(0);
12069 ; return 0; }
12070 EOF
12071 if { (eval echo configure:12072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12072   rm -rf conftest*
12073   glibcpp_cv_func_isnan_use=yes
12074 else
12075   echo "configure: failed program was:" >&5
12076   cat conftest.$ac_ext >&5
12077   rm -rf conftest*
12078   glibcpp_cv_func_isnan_use=no
12079 fi
12080 rm -f conftest*
12081       ac_ext=c
12082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12083 ac_cpp='$CPP $CPPFLAGS'
12084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12086 cross_compiling=$ac_cv_prog_cc_cross
12087
12088     
12089 fi
12090
12091   fi
12092   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12093
12094   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12095     for ac_func in isnan
12096 do
12097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12098 echo "configure:12099: checking for $ac_func" >&5
12099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12100   echo $ac_n "(cached) $ac_c" 1>&6
12101 else
12102   cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12105 /* System header to define __stub macros and hopefully few prototypes,
12106     which can conflict with char $ac_func(); below.  */
12107 #include <assert.h>
12108 /* Override any gcc2 internal prototype to avoid an error.  */
12109 /* We use char because int might match the return type of a gcc2
12110     builtin and then its argument prototype would still apply.  */
12111 char $ac_func();
12112
12113 int main() {
12114
12115 /* The GNU C library defines this for functions which it implements
12116     to always fail with ENOSYS.  Some functions are actually named
12117     something starting with __ and the normal name is an alias.  */
12118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12119 choke me
12120 #else
12121 $ac_func();
12122 #endif
12123
12124 ; return 0; }
12125 EOF
12126 if { (eval echo configure:12127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12127   rm -rf conftest*
12128   eval "ac_cv_func_$ac_func=yes"
12129 else
12130   echo "configure: failed program was:" >&5
12131   cat conftest.$ac_ext >&5
12132   rm -rf conftest*
12133   eval "ac_cv_func_$ac_func=no"
12134 fi
12135 rm -f conftest*
12136 fi
12137
12138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12139   echo "$ac_t""yes" 1>&6
12140     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12141   cat >> confdefs.h <<EOF
12142 #define $ac_tr_func 1
12143 EOF
12144  
12145 else
12146   echo "$ac_t""no" 1>&6
12147 fi
12148 done
12149     
12150   else
12151     
12152   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12153 echo "configure:12154: checking for _isnan declaration" >&5
12154   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12155     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12156   echo $ac_n "(cached) $ac_c" 1>&6
12157 else
12158   
12159       
12160       ac_ext=C
12161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12162 ac_cpp='$CXXCPP $CPPFLAGS'
12163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12165 cross_compiling=$ac_cv_prog_cxx_cross
12166
12167       cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure"
12169 #include "confdefs.h"
12170 #include <math.h>
12171                       #ifdef HAVE_IEEEFP_H
12172                       #include <ieeefp.h>
12173                       #endif
12174                      
12175 int main() {
12176  _isnan(0);
12177 ; return 0; }
12178 EOF
12179 if { (eval echo configure:12180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12180   rm -rf conftest*
12181   glibcpp_cv_func__isnan_use=yes
12182 else
12183   echo "configure: failed program was:" >&5
12184   cat conftest.$ac_ext >&5
12185   rm -rf conftest*
12186   glibcpp_cv_func__isnan_use=no
12187 fi
12188 rm -f conftest*
12189       ac_ext=c
12190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12191 ac_cpp='$CPP $CPPFLAGS'
12192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12194 cross_compiling=$ac_cv_prog_cc_cross
12195
12196     
12197 fi
12198
12199   fi
12200   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12201
12202     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12203       for ac_func in _isnan
12204 do
12205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12206 echo "configure:12207: checking for $ac_func" >&5
12207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12208   echo $ac_n "(cached) $ac_c" 1>&6
12209 else
12210   cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12213 /* System header to define __stub macros and hopefully few prototypes,
12214     which can conflict with char $ac_func(); below.  */
12215 #include <assert.h>
12216 /* Override any gcc2 internal prototype to avoid an error.  */
12217 /* We use char because int might match the return type of a gcc2
12218     builtin and then its argument prototype would still apply.  */
12219 char $ac_func();
12220
12221 int main() {
12222
12223 /* The GNU C library defines this for functions which it implements
12224     to always fail with ENOSYS.  Some functions are actually named
12225     something starting with __ and the normal name is an alias.  */
12226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12227 choke me
12228 #else
12229 $ac_func();
12230 #endif
12231
12232 ; return 0; }
12233 EOF
12234 if { (eval echo configure:12235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12235   rm -rf conftest*
12236   eval "ac_cv_func_$ac_func=yes"
12237 else
12238   echo "configure: failed program was:" >&5
12239   cat conftest.$ac_ext >&5
12240   rm -rf conftest*
12241   eval "ac_cv_func_$ac_func=no"
12242 fi
12243 rm -f conftest*
12244 fi
12245
12246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12247   echo "$ac_t""yes" 1>&6
12248     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12249   cat >> confdefs.h <<EOF
12250 #define $ac_tr_func 1
12251 EOF
12252  
12253 else
12254   echo "$ac_t""no" 1>&6
12255 fi
12256 done
12257     
12258     fi
12259   fi
12260
12261   
12262   
12263   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12264 echo "configure:12265: checking for finite declaration" >&5
12265   if test x${glibcpp_cv_func_finite_use+set} != xset; then
12266     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12267   echo $ac_n "(cached) $ac_c" 1>&6
12268 else
12269   
12270       
12271       ac_ext=C
12272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12273 ac_cpp='$CXXCPP $CPPFLAGS'
12274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12276 cross_compiling=$ac_cv_prog_cxx_cross
12277
12278       cat > conftest.$ac_ext <<EOF
12279 #line 12280 "configure"
12280 #include "confdefs.h"
12281 #include <math.h>
12282                       #ifdef HAVE_IEEEFP_H
12283                       #include <ieeefp.h>
12284                       #endif
12285                      
12286 int main() {
12287  finite(0);
12288 ; return 0; }
12289 EOF
12290 if { (eval echo configure:12291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12291   rm -rf conftest*
12292   glibcpp_cv_func_finite_use=yes
12293 else
12294   echo "configure: failed program was:" >&5
12295   cat conftest.$ac_ext >&5
12296   rm -rf conftest*
12297   glibcpp_cv_func_finite_use=no
12298 fi
12299 rm -f conftest*
12300       ac_ext=c
12301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12302 ac_cpp='$CPP $CPPFLAGS'
12303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12305 cross_compiling=$ac_cv_prog_cc_cross
12306
12307     
12308 fi
12309
12310   fi
12311   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12312
12313   if test x$glibcpp_cv_func_finite_use = x"yes"; then
12314     for ac_func in finite
12315 do
12316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12317 echo "configure:12318: checking for $ac_func" >&5
12318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12319   echo $ac_n "(cached) $ac_c" 1>&6
12320 else
12321   cat > conftest.$ac_ext <<EOF
12322 #line 12323 "configure"
12323 #include "confdefs.h"
12324 /* System header to define __stub macros and hopefully few prototypes,
12325     which can conflict with char $ac_func(); below.  */
12326 #include <assert.h>
12327 /* Override any gcc2 internal prototype to avoid an error.  */
12328 /* We use char because int might match the return type of a gcc2
12329     builtin and then its argument prototype would still apply.  */
12330 char $ac_func();
12331
12332 int main() {
12333
12334 /* The GNU C library defines this for functions which it implements
12335     to always fail with ENOSYS.  Some functions are actually named
12336     something starting with __ and the normal name is an alias.  */
12337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12338 choke me
12339 #else
12340 $ac_func();
12341 #endif
12342
12343 ; return 0; }
12344 EOF
12345 if { (eval echo configure:12346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12346   rm -rf conftest*
12347   eval "ac_cv_func_$ac_func=yes"
12348 else
12349   echo "configure: failed program was:" >&5
12350   cat conftest.$ac_ext >&5
12351   rm -rf conftest*
12352   eval "ac_cv_func_$ac_func=no"
12353 fi
12354 rm -f conftest*
12355 fi
12356
12357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12358   echo "$ac_t""yes" 1>&6
12359     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12360   cat >> confdefs.h <<EOF
12361 #define $ac_tr_func 1
12362 EOF
12363  
12364 else
12365   echo "$ac_t""no" 1>&6
12366 fi
12367 done
12368     
12369   else
12370     
12371   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12372 echo "configure:12373: checking for _finite declaration" >&5
12373   if test x${glibcpp_cv_func__finite_use+set} != xset; then
12374     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12375   echo $ac_n "(cached) $ac_c" 1>&6
12376 else
12377   
12378       
12379       ac_ext=C
12380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12381 ac_cpp='$CXXCPP $CPPFLAGS'
12382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12384 cross_compiling=$ac_cv_prog_cxx_cross
12385
12386       cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 #include <math.h>
12390                       #ifdef HAVE_IEEEFP_H
12391                       #include <ieeefp.h>
12392                       #endif
12393                      
12394 int main() {
12395  _finite(0);
12396 ; return 0; }
12397 EOF
12398 if { (eval echo configure:12399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12399   rm -rf conftest*
12400   glibcpp_cv_func__finite_use=yes
12401 else
12402   echo "configure: failed program was:" >&5
12403   cat conftest.$ac_ext >&5
12404   rm -rf conftest*
12405   glibcpp_cv_func__finite_use=no
12406 fi
12407 rm -f conftest*
12408       ac_ext=c
12409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12410 ac_cpp='$CPP $CPPFLAGS'
12411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12413 cross_compiling=$ac_cv_prog_cc_cross
12414
12415     
12416 fi
12417
12418   fi
12419   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12420
12421     if test x$glibcpp_cv_func__finite_use = x"yes"; then
12422       for ac_func in _finite
12423 do
12424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12425 echo "configure:12426: checking for $ac_func" >&5
12426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12427   echo $ac_n "(cached) $ac_c" 1>&6
12428 else
12429   cat > conftest.$ac_ext <<EOF
12430 #line 12431 "configure"
12431 #include "confdefs.h"
12432 /* System header to define __stub macros and hopefully few prototypes,
12433     which can conflict with char $ac_func(); below.  */
12434 #include <assert.h>
12435 /* Override any gcc2 internal prototype to avoid an error.  */
12436 /* We use char because int might match the return type of a gcc2
12437     builtin and then its argument prototype would still apply.  */
12438 char $ac_func();
12439
12440 int main() {
12441
12442 /* The GNU C library defines this for functions which it implements
12443     to always fail with ENOSYS.  Some functions are actually named
12444     something starting with __ and the normal name is an alias.  */
12445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12446 choke me
12447 #else
12448 $ac_func();
12449 #endif
12450
12451 ; return 0; }
12452 EOF
12453 if { (eval echo configure:12454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12454   rm -rf conftest*
12455   eval "ac_cv_func_$ac_func=yes"
12456 else
12457   echo "configure: failed program was:" >&5
12458   cat conftest.$ac_ext >&5
12459   rm -rf conftest*
12460   eval "ac_cv_func_$ac_func=no"
12461 fi
12462 rm -f conftest*
12463 fi
12464
12465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12466   echo "$ac_t""yes" 1>&6
12467     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12468   cat >> confdefs.h <<EOF
12469 #define $ac_tr_func 1
12470 EOF
12471  
12472 else
12473   echo "$ac_t""no" 1>&6
12474 fi
12475 done
12476     
12477     fi
12478   fi
12479
12480   
12481   
12482   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12483 echo "configure:12484: checking for copysign declaration" >&5
12484   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12485     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12486   echo $ac_n "(cached) $ac_c" 1>&6
12487 else
12488   
12489       
12490       ac_ext=C
12491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12492 ac_cpp='$CXXCPP $CPPFLAGS'
12493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12495 cross_compiling=$ac_cv_prog_cxx_cross
12496
12497       cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure"
12499 #include "confdefs.h"
12500 #include <math.h>
12501 int main() {
12502  copysign(0, 0);
12503 ; return 0; }
12504 EOF
12505 if { (eval echo configure:12506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12506   rm -rf conftest*
12507   glibcpp_cv_func_copysign_use=yes
12508 else
12509   echo "configure: failed program was:" >&5
12510   cat conftest.$ac_ext >&5
12511   rm -rf conftest*
12512   glibcpp_cv_func_copysign_use=no
12513 fi
12514 rm -f conftest*
12515       ac_ext=c
12516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12517 ac_cpp='$CPP $CPPFLAGS'
12518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12520 cross_compiling=$ac_cv_prog_cc_cross
12521
12522     
12523 fi
12524
12525   fi
12526   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12527
12528   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12529     for ac_func in copysign
12530 do
12531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12532 echo "configure:12533: checking for $ac_func" >&5
12533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12534   echo $ac_n "(cached) $ac_c" 1>&6
12535 else
12536   cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12539 /* System header to define __stub macros and hopefully few prototypes,
12540     which can conflict with char $ac_func(); below.  */
12541 #include <assert.h>
12542 /* Override any gcc2 internal prototype to avoid an error.  */
12543 /* We use char because int might match the return type of a gcc2
12544     builtin and then its argument prototype would still apply.  */
12545 char $ac_func();
12546
12547 int main() {
12548
12549 /* The GNU C library defines this for functions which it implements
12550     to always fail with ENOSYS.  Some functions are actually named
12551     something starting with __ and the normal name is an alias.  */
12552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12553 choke me
12554 #else
12555 $ac_func();
12556 #endif
12557
12558 ; return 0; }
12559 EOF
12560 if { (eval echo configure:12561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12561   rm -rf conftest*
12562   eval "ac_cv_func_$ac_func=yes"
12563 else
12564   echo "configure: failed program was:" >&5
12565   cat conftest.$ac_ext >&5
12566   rm -rf conftest*
12567   eval "ac_cv_func_$ac_func=no"
12568 fi
12569 rm -f conftest*
12570 fi
12571
12572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12573   echo "$ac_t""yes" 1>&6
12574     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12575   cat >> confdefs.h <<EOF
12576 #define $ac_tr_func 1
12577 EOF
12578  
12579 else
12580   echo "$ac_t""no" 1>&6
12581 fi
12582 done
12583     
12584   else
12585     
12586   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12587 echo "configure:12588: checking for _copysign declaration" >&5
12588   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12589     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12590   echo $ac_n "(cached) $ac_c" 1>&6
12591 else
12592   
12593       
12594       ac_ext=C
12595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12596 ac_cpp='$CXXCPP $CPPFLAGS'
12597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12599 cross_compiling=$ac_cv_prog_cxx_cross
12600
12601       cat > conftest.$ac_ext <<EOF
12602 #line 12603 "configure"
12603 #include "confdefs.h"
12604 #include <math.h>
12605 int main() {
12606  _copysign(0, 0);
12607 ; return 0; }
12608 EOF
12609 if { (eval echo configure:12610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12610   rm -rf conftest*
12611   glibcpp_cv_func__copysign_use=yes
12612 else
12613   echo "configure: failed program was:" >&5
12614   cat conftest.$ac_ext >&5
12615   rm -rf conftest*
12616   glibcpp_cv_func__copysign_use=no
12617 fi
12618 rm -f conftest*
12619       ac_ext=c
12620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12621 ac_cpp='$CPP $CPPFLAGS'
12622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12624 cross_compiling=$ac_cv_prog_cc_cross
12625
12626     
12627 fi
12628
12629   fi
12630   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12631
12632     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12633       for ac_func in _copysign
12634 do
12635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12636 echo "configure:12637: checking for $ac_func" >&5
12637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12638   echo $ac_n "(cached) $ac_c" 1>&6
12639 else
12640   cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644     which can conflict with char $ac_func(); below.  */
12645 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error.  */
12647 /* We use char because int might match the return type of a gcc2
12648     builtin and then its argument prototype would still apply.  */
12649 char $ac_func();
12650
12651 int main() {
12652
12653 /* The GNU C library defines this for functions which it implements
12654     to always fail with ENOSYS.  Some functions are actually named
12655     something starting with __ and the normal name is an alias.  */
12656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12657 choke me
12658 #else
12659 $ac_func();
12660 #endif
12661
12662 ; return 0; }
12663 EOF
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665   rm -rf conftest*
12666   eval "ac_cv_func_$ac_func=yes"
12667 else
12668   echo "configure: failed program was:" >&5
12669   cat conftest.$ac_ext >&5
12670   rm -rf conftest*
12671   eval "ac_cv_func_$ac_func=no"
12672 fi
12673 rm -f conftest*
12674 fi
12675
12676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12677   echo "$ac_t""yes" 1>&6
12678     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12679   cat >> confdefs.h <<EOF
12680 #define $ac_tr_func 1
12681 EOF
12682  
12683 else
12684   echo "$ac_t""no" 1>&6
12685 fi
12686 done
12687     
12688     fi
12689   fi
12690
12691   
12692   
12693   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12694 echo "configure:12695: checking for sincos declaration" >&5
12695   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12696     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12697   echo $ac_n "(cached) $ac_c" 1>&6
12698 else
12699   
12700       
12701       ac_ext=C
12702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12703 ac_cpp='$CXXCPP $CPPFLAGS'
12704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12706 cross_compiling=$ac_cv_prog_cxx_cross
12707
12708       cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 #include <math.h>
12712 int main() {
12713  sincos(0, 0, 0);
12714 ; return 0; }
12715 EOF
12716 if { (eval echo configure:12717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12717   rm -rf conftest*
12718   glibcpp_cv_func_sincos_use=yes
12719 else
12720   echo "configure: failed program was:" >&5
12721   cat conftest.$ac_ext >&5
12722   rm -rf conftest*
12723   glibcpp_cv_func_sincos_use=no
12724 fi
12725 rm -f conftest*
12726       ac_ext=c
12727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12728 ac_cpp='$CPP $CPPFLAGS'
12729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12731 cross_compiling=$ac_cv_prog_cc_cross
12732
12733     
12734 fi
12735
12736   fi
12737   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12738
12739   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12740     for ac_func in sincos
12741 do
12742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12743 echo "configure:12744: checking for $ac_func" >&5
12744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12745   echo $ac_n "(cached) $ac_c" 1>&6
12746 else
12747   cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 /* System header to define __stub macros and hopefully few prototypes,
12751     which can conflict with char $ac_func(); below.  */
12752 #include <assert.h>
12753 /* Override any gcc2 internal prototype to avoid an error.  */
12754 /* We use char because int might match the return type of a gcc2
12755     builtin and then its argument prototype would still apply.  */
12756 char $ac_func();
12757
12758 int main() {
12759
12760 /* The GNU C library defines this for functions which it implements
12761     to always fail with ENOSYS.  Some functions are actually named
12762     something starting with __ and the normal name is an alias.  */
12763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12764 choke me
12765 #else
12766 $ac_func();
12767 #endif
12768
12769 ; return 0; }
12770 EOF
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12772   rm -rf conftest*
12773   eval "ac_cv_func_$ac_func=yes"
12774 else
12775   echo "configure: failed program was:" >&5
12776   cat conftest.$ac_ext >&5
12777   rm -rf conftest*
12778   eval "ac_cv_func_$ac_func=no"
12779 fi
12780 rm -f conftest*
12781 fi
12782
12783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12784   echo "$ac_t""yes" 1>&6
12785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12786   cat >> confdefs.h <<EOF
12787 #define $ac_tr_func 1
12788 EOF
12789  
12790 else
12791   echo "$ac_t""no" 1>&6
12792 fi
12793 done
12794     
12795   else
12796     
12797   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12798 echo "configure:12799: checking for _sincos declaration" >&5
12799   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12800     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12801   echo $ac_n "(cached) $ac_c" 1>&6
12802 else
12803   
12804       
12805       ac_ext=C
12806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12807 ac_cpp='$CXXCPP $CPPFLAGS'
12808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12810 cross_compiling=$ac_cv_prog_cxx_cross
12811
12812       cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 #include <math.h>
12816 int main() {
12817  _sincos(0, 0, 0);
12818 ; return 0; }
12819 EOF
12820 if { (eval echo configure:12821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12821   rm -rf conftest*
12822   glibcpp_cv_func__sincos_use=yes
12823 else
12824   echo "configure: failed program was:" >&5
12825   cat conftest.$ac_ext >&5
12826   rm -rf conftest*
12827   glibcpp_cv_func__sincos_use=no
12828 fi
12829 rm -f conftest*
12830       ac_ext=c
12831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12832 ac_cpp='$CPP $CPPFLAGS'
12833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12835 cross_compiling=$ac_cv_prog_cc_cross
12836
12837     
12838 fi
12839
12840   fi
12841   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
12842
12843     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
12844       for ac_func in _sincos
12845 do
12846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12847 echo "configure:12848: checking for $ac_func" >&5
12848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12849   echo $ac_n "(cached) $ac_c" 1>&6
12850 else
12851   cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 /* System header to define __stub macros and hopefully few prototypes,
12855     which can conflict with char $ac_func(); below.  */
12856 #include <assert.h>
12857 /* Override any gcc2 internal prototype to avoid an error.  */
12858 /* We use char because int might match the return type of a gcc2
12859     builtin and then its argument prototype would still apply.  */
12860 char $ac_func();
12861
12862 int main() {
12863
12864 /* The GNU C library defines this for functions which it implements
12865     to always fail with ENOSYS.  Some functions are actually named
12866     something starting with __ and the normal name is an alias.  */
12867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12868 choke me
12869 #else
12870 $ac_func();
12871 #endif
12872
12873 ; return 0; }
12874 EOF
12875 if { (eval echo configure:12876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12876   rm -rf conftest*
12877   eval "ac_cv_func_$ac_func=yes"
12878 else
12879   echo "configure: failed program was:" >&5
12880   cat conftest.$ac_ext >&5
12881   rm -rf conftest*
12882   eval "ac_cv_func_$ac_func=no"
12883 fi
12884 rm -f conftest*
12885 fi
12886
12887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12888   echo "$ac_t""yes" 1>&6
12889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12890   cat >> confdefs.h <<EOF
12891 #define $ac_tr_func 1
12892 EOF
12893  
12894 else
12895   echo "$ac_t""no" 1>&6
12896 fi
12897 done
12898     
12899     fi
12900   fi
12901
12902   
12903   
12904   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
12905 echo "configure:12906: checking for fpclass declaration" >&5
12906   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
12907     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
12908   echo $ac_n "(cached) $ac_c" 1>&6
12909 else
12910   
12911       
12912       ac_ext=C
12913 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12914 ac_cpp='$CXXCPP $CPPFLAGS'
12915 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12916 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12917 cross_compiling=$ac_cv_prog_cxx_cross
12918
12919       cat > conftest.$ac_ext <<EOF
12920 #line 12921 "configure"
12921 #include "confdefs.h"
12922 #include <math.h>
12923                       #ifdef HAVE_IEEEFP_H
12924                       #include <ieeefp.h>
12925                       #endif
12926                      
12927 int main() {
12928  fpclass(0);
12929 ; return 0; }
12930 EOF
12931 if { (eval echo configure:12932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12932   rm -rf conftest*
12933   glibcpp_cv_func_fpclass_use=yes
12934 else
12935   echo "configure: failed program was:" >&5
12936   cat conftest.$ac_ext >&5
12937   rm -rf conftest*
12938   glibcpp_cv_func_fpclass_use=no
12939 fi
12940 rm -f conftest*
12941       ac_ext=c
12942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12943 ac_cpp='$CPP $CPPFLAGS'
12944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12946 cross_compiling=$ac_cv_prog_cc_cross
12947
12948     
12949 fi
12950
12951   fi
12952   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12953
12954   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12955     for ac_func in fpclass
12956 do
12957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12958 echo "configure:12959: checking for $ac_func" >&5
12959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12960   echo $ac_n "(cached) $ac_c" 1>&6
12961 else
12962   cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965 /* System header to define __stub macros and hopefully few prototypes,
12966     which can conflict with char $ac_func(); below.  */
12967 #include <assert.h>
12968 /* Override any gcc2 internal prototype to avoid an error.  */
12969 /* We use char because int might match the return type of a gcc2
12970     builtin and then its argument prototype would still apply.  */
12971 char $ac_func();
12972
12973 int main() {
12974
12975 /* The GNU C library defines this for functions which it implements
12976     to always fail with ENOSYS.  Some functions are actually named
12977     something starting with __ and the normal name is an alias.  */
12978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12979 choke me
12980 #else
12981 $ac_func();
12982 #endif
12983
12984 ; return 0; }
12985 EOF
12986 if { (eval echo configure:12987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12987   rm -rf conftest*
12988   eval "ac_cv_func_$ac_func=yes"
12989 else
12990   echo "configure: failed program was:" >&5
12991   cat conftest.$ac_ext >&5
12992   rm -rf conftest*
12993   eval "ac_cv_func_$ac_func=no"
12994 fi
12995 rm -f conftest*
12996 fi
12997
12998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12999   echo "$ac_t""yes" 1>&6
13000     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13001   cat >> confdefs.h <<EOF
13002 #define $ac_tr_func 1
13003 EOF
13004  
13005 else
13006   echo "$ac_t""no" 1>&6
13007 fi
13008 done
13009     
13010   else
13011     
13012   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13013 echo "configure:13014: checking for _fpclass declaration" >&5
13014   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13015     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13016   echo $ac_n "(cached) $ac_c" 1>&6
13017 else
13018   
13019       
13020       ac_ext=C
13021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13022 ac_cpp='$CXXCPP $CPPFLAGS'
13023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13025 cross_compiling=$ac_cv_prog_cxx_cross
13026
13027       cat > conftest.$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 #include <math.h>
13031                       #ifdef HAVE_IEEEFP_H
13032                       #include <ieeefp.h>
13033                       #endif
13034                      
13035 int main() {
13036  _fpclass(0);
13037 ; return 0; }
13038 EOF
13039 if { (eval echo configure:13040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13040   rm -rf conftest*
13041   glibcpp_cv_func__fpclass_use=yes
13042 else
13043   echo "configure: failed program was:" >&5
13044   cat conftest.$ac_ext >&5
13045   rm -rf conftest*
13046   glibcpp_cv_func__fpclass_use=no
13047 fi
13048 rm -f conftest*
13049       ac_ext=c
13050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13051 ac_cpp='$CPP $CPPFLAGS'
13052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13054 cross_compiling=$ac_cv_prog_cc_cross
13055
13056     
13057 fi
13058
13059   fi
13060   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13061
13062     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13063       for ac_func in _fpclass
13064 do
13065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13066 echo "configure:13067: checking for $ac_func" >&5
13067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13068   echo $ac_n "(cached) $ac_c" 1>&6
13069 else
13070   cat > conftest.$ac_ext <<EOF
13071 #line 13072 "configure"
13072 #include "confdefs.h"
13073 /* System header to define __stub macros and hopefully few prototypes,
13074     which can conflict with char $ac_func(); below.  */
13075 #include <assert.h>
13076 /* Override any gcc2 internal prototype to avoid an error.  */
13077 /* We use char because int might match the return type of a gcc2
13078     builtin and then its argument prototype would still apply.  */
13079 char $ac_func();
13080
13081 int main() {
13082
13083 /* The GNU C library defines this for functions which it implements
13084     to always fail with ENOSYS.  Some functions are actually named
13085     something starting with __ and the normal name is an alias.  */
13086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13087 choke me
13088 #else
13089 $ac_func();
13090 #endif
13091
13092 ; return 0; }
13093 EOF
13094 if { (eval echo configure:13095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13095   rm -rf conftest*
13096   eval "ac_cv_func_$ac_func=yes"
13097 else
13098   echo "configure: failed program was:" >&5
13099   cat conftest.$ac_ext >&5
13100   rm -rf conftest*
13101   eval "ac_cv_func_$ac_func=no"
13102 fi
13103 rm -f conftest*
13104 fi
13105
13106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13107   echo "$ac_t""yes" 1>&6
13108     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13109   cat >> confdefs.h <<EOF
13110 #define $ac_tr_func 1
13111 EOF
13112  
13113 else
13114   echo "$ac_t""no" 1>&6
13115 fi
13116 done
13117     
13118     fi
13119   fi
13120
13121   
13122   
13123   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13124 echo "configure:13125: checking for qfpclass declaration" >&5
13125   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13126     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13127   echo $ac_n "(cached) $ac_c" 1>&6
13128 else
13129   
13130       
13131       ac_ext=C
13132 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13133 ac_cpp='$CXXCPP $CPPFLAGS'
13134 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13135 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13136 cross_compiling=$ac_cv_prog_cxx_cross
13137
13138       cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13141 #include <math.h>
13142                       #ifdef HAVE_IEEEFP_H
13143                       #include <ieeefp.h>
13144                       #endif
13145                      
13146 int main() {
13147  qfpclass(0);
13148 ; return 0; }
13149 EOF
13150 if { (eval echo configure:13151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13151   rm -rf conftest*
13152   glibcpp_cv_func_qfpclass_use=yes
13153 else
13154   echo "configure: failed program was:" >&5
13155   cat conftest.$ac_ext >&5
13156   rm -rf conftest*
13157   glibcpp_cv_func_qfpclass_use=no
13158 fi
13159 rm -f conftest*
13160       ac_ext=c
13161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13162 ac_cpp='$CPP $CPPFLAGS'
13163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13165 cross_compiling=$ac_cv_prog_cc_cross
13166
13167     
13168 fi
13169
13170   fi
13171   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13172
13173   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13174     for ac_func in qfpclass
13175 do
13176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13177 echo "configure:13178: checking for $ac_func" >&5
13178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13179   echo $ac_n "(cached) $ac_c" 1>&6
13180 else
13181   cat > conftest.$ac_ext <<EOF
13182 #line 13183 "configure"
13183 #include "confdefs.h"
13184 /* System header to define __stub macros and hopefully few prototypes,
13185     which can conflict with char $ac_func(); below.  */
13186 #include <assert.h>
13187 /* Override any gcc2 internal prototype to avoid an error.  */
13188 /* We use char because int might match the return type of a gcc2
13189     builtin and then its argument prototype would still apply.  */
13190 char $ac_func();
13191
13192 int main() {
13193
13194 /* The GNU C library defines this for functions which it implements
13195     to always fail with ENOSYS.  Some functions are actually named
13196     something starting with __ and the normal name is an alias.  */
13197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13198 choke me
13199 #else
13200 $ac_func();
13201 #endif
13202
13203 ; return 0; }
13204 EOF
13205 if { (eval echo configure:13206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13206   rm -rf conftest*
13207   eval "ac_cv_func_$ac_func=yes"
13208 else
13209   echo "configure: failed program was:" >&5
13210   cat conftest.$ac_ext >&5
13211   rm -rf conftest*
13212   eval "ac_cv_func_$ac_func=no"
13213 fi
13214 rm -f conftest*
13215 fi
13216
13217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13218   echo "$ac_t""yes" 1>&6
13219     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13220   cat >> confdefs.h <<EOF
13221 #define $ac_tr_func 1
13222 EOF
13223  
13224 else
13225   echo "$ac_t""no" 1>&6
13226 fi
13227 done
13228     
13229   else
13230     
13231   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13232 echo "configure:13233: checking for _qfpclass declaration" >&5
13233   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13234     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13235   echo $ac_n "(cached) $ac_c" 1>&6
13236 else
13237   
13238       
13239       ac_ext=C
13240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13241 ac_cpp='$CXXCPP $CPPFLAGS'
13242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13244 cross_compiling=$ac_cv_prog_cxx_cross
13245
13246       cat > conftest.$ac_ext <<EOF
13247 #line 13248 "configure"
13248 #include "confdefs.h"
13249 #include <math.h>
13250                       #ifdef HAVE_IEEEFP_H
13251                       #include <ieeefp.h>
13252                       #endif
13253                      
13254 int main() {
13255  _qfpclass(0);
13256 ; return 0; }
13257 EOF
13258 if { (eval echo configure:13259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13259   rm -rf conftest*
13260   glibcpp_cv_func__qfpclass_use=yes
13261 else
13262   echo "configure: failed program was:" >&5
13263   cat conftest.$ac_ext >&5
13264   rm -rf conftest*
13265   glibcpp_cv_func__qfpclass_use=no
13266 fi
13267 rm -f conftest*
13268       ac_ext=c
13269 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13270 ac_cpp='$CPP $CPPFLAGS'
13271 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13272 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13273 cross_compiling=$ac_cv_prog_cc_cross
13274
13275     
13276 fi
13277
13278   fi
13279   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13280
13281     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13282       for ac_func in _qfpclass
13283 do
13284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13285 echo "configure:13286: checking for $ac_func" >&5
13286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13287   echo $ac_n "(cached) $ac_c" 1>&6
13288 else
13289   cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13292 /* System header to define __stub macros and hopefully few prototypes,
13293     which can conflict with char $ac_func(); below.  */
13294 #include <assert.h>
13295 /* Override any gcc2 internal prototype to avoid an error.  */
13296 /* We use char because int might match the return type of a gcc2
13297     builtin and then its argument prototype would still apply.  */
13298 char $ac_func();
13299
13300 int main() {
13301
13302 /* The GNU C library defines this for functions which it implements
13303     to always fail with ENOSYS.  Some functions are actually named
13304     something starting with __ and the normal name is an alias.  */
13305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13306 choke me
13307 #else
13308 $ac_func();
13309 #endif
13310
13311 ; return 0; }
13312 EOF
13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13314   rm -rf conftest*
13315   eval "ac_cv_func_$ac_func=yes"
13316 else
13317   echo "configure: failed program was:" >&5
13318   cat conftest.$ac_ext >&5
13319   rm -rf conftest*
13320   eval "ac_cv_func_$ac_func=no"
13321 fi
13322 rm -f conftest*
13323 fi
13324
13325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13326   echo "$ac_t""yes" 1>&6
13327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13328   cat >> confdefs.h <<EOF
13329 #define $ac_tr_func 1
13330 EOF
13331  
13332 else
13333   echo "$ac_t""no" 1>&6
13334 fi
13335 done
13336     
13337     fi
13338   fi
13339
13340   
13341   
13342   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13343 echo "configure:13344: checking for hypot declaration" >&5
13344   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13345     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13346   echo $ac_n "(cached) $ac_c" 1>&6
13347 else
13348   
13349       
13350       ac_ext=C
13351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13352 ac_cpp='$CXXCPP $CPPFLAGS'
13353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13355 cross_compiling=$ac_cv_prog_cxx_cross
13356
13357       cat > conftest.$ac_ext <<EOF
13358 #line 13359 "configure"
13359 #include "confdefs.h"
13360 #include <math.h>
13361 int main() {
13362  hypot(0, 0);
13363 ; return 0; }
13364 EOF
13365 if { (eval echo configure:13366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13366   rm -rf conftest*
13367   glibcpp_cv_func_hypot_use=yes
13368 else
13369   echo "configure: failed program was:" >&5
13370   cat conftest.$ac_ext >&5
13371   rm -rf conftest*
13372   glibcpp_cv_func_hypot_use=no
13373 fi
13374 rm -f conftest*
13375       ac_ext=c
13376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13377 ac_cpp='$CPP $CPPFLAGS'
13378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13380 cross_compiling=$ac_cv_prog_cc_cross
13381
13382     
13383 fi
13384
13385   fi
13386   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13387
13388   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13389     for ac_func in hypot
13390 do
13391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13392 echo "configure:13393: checking for $ac_func" >&5
13393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13394   echo $ac_n "(cached) $ac_c" 1>&6
13395 else
13396   cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13399 /* System header to define __stub macros and hopefully few prototypes,
13400     which can conflict with char $ac_func(); below.  */
13401 #include <assert.h>
13402 /* Override any gcc2 internal prototype to avoid an error.  */
13403 /* We use char because int might match the return type of a gcc2
13404     builtin and then its argument prototype would still apply.  */
13405 char $ac_func();
13406
13407 int main() {
13408
13409 /* The GNU C library defines this for functions which it implements
13410     to always fail with ENOSYS.  Some functions are actually named
13411     something starting with __ and the normal name is an alias.  */
13412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13413 choke me
13414 #else
13415 $ac_func();
13416 #endif
13417
13418 ; return 0; }
13419 EOF
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13421   rm -rf conftest*
13422   eval "ac_cv_func_$ac_func=yes"
13423 else
13424   echo "configure: failed program was:" >&5
13425   cat conftest.$ac_ext >&5
13426   rm -rf conftest*
13427   eval "ac_cv_func_$ac_func=no"
13428 fi
13429 rm -f conftest*
13430 fi
13431
13432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13433   echo "$ac_t""yes" 1>&6
13434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13435   cat >> confdefs.h <<EOF
13436 #define $ac_tr_func 1
13437 EOF
13438  
13439 else
13440   echo "$ac_t""no" 1>&6
13441 fi
13442 done
13443     
13444   else
13445     
13446   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13447 echo "configure:13448: checking for _hypot declaration" >&5
13448   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13449     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13450   echo $ac_n "(cached) $ac_c" 1>&6
13451 else
13452   
13453       
13454       ac_ext=C
13455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13456 ac_cpp='$CXXCPP $CPPFLAGS'
13457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13459 cross_compiling=$ac_cv_prog_cxx_cross
13460
13461       cat > conftest.$ac_ext <<EOF
13462 #line 13463 "configure"
13463 #include "confdefs.h"
13464 #include <math.h>
13465 int main() {
13466  _hypot(0, 0);
13467 ; return 0; }
13468 EOF
13469 if { (eval echo configure:13470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13470   rm -rf conftest*
13471   glibcpp_cv_func__hypot_use=yes
13472 else
13473   echo "configure: failed program was:" >&5
13474   cat conftest.$ac_ext >&5
13475   rm -rf conftest*
13476   glibcpp_cv_func__hypot_use=no
13477 fi
13478 rm -f conftest*
13479       ac_ext=c
13480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13481 ac_cpp='$CPP $CPPFLAGS'
13482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13484 cross_compiling=$ac_cv_prog_cc_cross
13485
13486     
13487 fi
13488
13489   fi
13490   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13491
13492     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13493       for ac_func in _hypot
13494 do
13495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13496 echo "configure:13497: checking for $ac_func" >&5
13497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13498   echo $ac_n "(cached) $ac_c" 1>&6
13499 else
13500   cat > conftest.$ac_ext <<EOF
13501 #line 13502 "configure"
13502 #include "confdefs.h"
13503 /* System header to define __stub macros and hopefully few prototypes,
13504     which can conflict with char $ac_func(); below.  */
13505 #include <assert.h>
13506 /* Override any gcc2 internal prototype to avoid an error.  */
13507 /* We use char because int might match the return type of a gcc2
13508     builtin and then its argument prototype would still apply.  */
13509 char $ac_func();
13510
13511 int main() {
13512
13513 /* The GNU C library defines this for functions which it implements
13514     to always fail with ENOSYS.  Some functions are actually named
13515     something starting with __ and the normal name is an alias.  */
13516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13517 choke me
13518 #else
13519 $ac_func();
13520 #endif
13521
13522 ; return 0; }
13523 EOF
13524 if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13525   rm -rf conftest*
13526   eval "ac_cv_func_$ac_func=yes"
13527 else
13528   echo "configure: failed program was:" >&5
13529   cat conftest.$ac_ext >&5
13530   rm -rf conftest*
13531   eval "ac_cv_func_$ac_func=no"
13532 fi
13533 rm -f conftest*
13534 fi
13535
13536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13537   echo "$ac_t""yes" 1>&6
13538     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13539   cat >> confdefs.h <<EOF
13540 #define $ac_tr_func 1
13541 EOF
13542  
13543 else
13544   echo "$ac_t""no" 1>&6
13545 fi
13546 done
13547     
13548     fi
13549   fi
13550
13551
13552     
13553   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13554 echo "configure:13555: checking for float trig functions" >&5
13555   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13556   echo $ac_n "(cached) $ac_c" 1>&6
13557 else
13558   
13559     
13560     ac_ext=C
13561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13562 ac_cpp='$CXXCPP $CPPFLAGS'
13563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13565 cross_compiling=$ac_cv_prog_cxx_cross
13566
13567     cat > conftest.$ac_ext <<EOF
13568 #line 13569 "configure"
13569 #include "confdefs.h"
13570 #include <math.h>
13571 int main() {
13572  `for x in acosf asinf atanf \
13573                                           cosf sinf tanf \
13574                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
13575 ; return 0; }
13576 EOF
13577 if { (eval echo configure:13578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13578   rm -rf conftest*
13579   glibcpp_cv_func_float_trig_use=yes
13580 else
13581   echo "configure: failed program was:" >&5
13582   cat conftest.$ac_ext >&5
13583   rm -rf conftest*
13584   glibcpp_cv_func_float_trig_use=no
13585 fi
13586 rm -f conftest*
13587     ac_ext=c
13588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13589 ac_cpp='$CPP $CPPFLAGS'
13590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13592 cross_compiling=$ac_cv_prog_cc_cross
13593
13594 fi
13595
13596   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13597   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13598     for ac_func in acosf asinf atanf \
13599                                           cosf sinf tanf \
13600                                           coshf sinhf tanhf
13601 do
13602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13603 echo "configure:13604: checking for $ac_func" >&5
13604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13605   echo $ac_n "(cached) $ac_c" 1>&6
13606 else
13607   cat > conftest.$ac_ext <<EOF
13608 #line 13609 "configure"
13609 #include "confdefs.h"
13610 /* System header to define __stub macros and hopefully few prototypes,
13611     which can conflict with char $ac_func(); below.  */
13612 #include <assert.h>
13613 /* Override any gcc2 internal prototype to avoid an error.  */
13614 /* We use char because int might match the return type of a gcc2
13615     builtin and then its argument prototype would still apply.  */
13616 char $ac_func();
13617
13618 int main() {
13619
13620 /* The GNU C library defines this for functions which it implements
13621     to always fail with ENOSYS.  Some functions are actually named
13622     something starting with __ and the normal name is an alias.  */
13623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13624 choke me
13625 #else
13626 $ac_func();
13627 #endif
13628
13629 ; return 0; }
13630 EOF
13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13632   rm -rf conftest*
13633   eval "ac_cv_func_$ac_func=yes"
13634 else
13635   echo "configure: failed program was:" >&5
13636   cat conftest.$ac_ext >&5
13637   rm -rf conftest*
13638   eval "ac_cv_func_$ac_func=no"
13639 fi
13640 rm -f conftest*
13641 fi
13642
13643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13644   echo "$ac_t""yes" 1>&6
13645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13646   cat >> confdefs.h <<EOF
13647 #define $ac_tr_func 1
13648 EOF
13649  
13650 else
13651   echo "$ac_t""no" 1>&6
13652 fi
13653 done
13654
13655   fi
13656
13657   
13658   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13659 echo "configure:13660: checking for float round functions" >&5
13660   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13661   echo $ac_n "(cached) $ac_c" 1>&6
13662 else
13663   
13664     
13665     ac_ext=C
13666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13667 ac_cpp='$CXXCPP $CPPFLAGS'
13668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13670 cross_compiling=$ac_cv_prog_cxx_cross
13671
13672     cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13675 #include <math.h>
13676 int main() {
13677  `for x in ceilf floorf; do echo "$x (0);"; done` 
13678 ; return 0; }
13679 EOF
13680 if { (eval echo configure:13681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13681   rm -rf conftest*
13682   glibcpp_cv_func_float_round_use=yes
13683 else
13684   echo "configure: failed program was:" >&5
13685   cat conftest.$ac_ext >&5
13686   rm -rf conftest*
13687   glibcpp_cv_func_float_round_use=no
13688 fi
13689 rm -f conftest*
13690     ac_ext=c
13691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13692 ac_cpp='$CPP $CPPFLAGS'
13693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13695 cross_compiling=$ac_cv_prog_cc_cross
13696
13697 fi
13698
13699   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13700   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13701     for ac_func in ceilf floorf
13702 do
13703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13704 echo "configure:13705: checking for $ac_func" >&5
13705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13706   echo $ac_n "(cached) $ac_c" 1>&6
13707 else
13708   cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure"
13710 #include "confdefs.h"
13711 /* System header to define __stub macros and hopefully few prototypes,
13712     which can conflict with char $ac_func(); below.  */
13713 #include <assert.h>
13714 /* Override any gcc2 internal prototype to avoid an error.  */
13715 /* We use char because int might match the return type of a gcc2
13716     builtin and then its argument prototype would still apply.  */
13717 char $ac_func();
13718
13719 int main() {
13720
13721 /* The GNU C library defines this for functions which it implements
13722     to always fail with ENOSYS.  Some functions are actually named
13723     something starting with __ and the normal name is an alias.  */
13724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13725 choke me
13726 #else
13727 $ac_func();
13728 #endif
13729
13730 ; return 0; }
13731 EOF
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13733   rm -rf conftest*
13734   eval "ac_cv_func_$ac_func=yes"
13735 else
13736   echo "configure: failed program was:" >&5
13737   cat conftest.$ac_ext >&5
13738   rm -rf conftest*
13739   eval "ac_cv_func_$ac_func=no"
13740 fi
13741 rm -f conftest*
13742 fi
13743
13744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13745   echo "$ac_t""yes" 1>&6
13746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13747   cat >> confdefs.h <<EOF
13748 #define $ac_tr_func 1
13749 EOF
13750  
13751 else
13752   echo "$ac_t""no" 1>&6
13753 fi
13754 done
13755
13756   fi
13757
13758   
13759   
13760   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13761 echo "configure:13762: checking for expf declaration" >&5
13762   if test x${glibcpp_cv_func_expf_use+set} != xset; then
13763     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13764   echo $ac_n "(cached) $ac_c" 1>&6
13765 else
13766   
13767       
13768       ac_ext=C
13769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13770 ac_cpp='$CXXCPP $CPPFLAGS'
13771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13773 cross_compiling=$ac_cv_prog_cxx_cross
13774
13775       cat > conftest.$ac_ext <<EOF
13776 #line 13777 "configure"
13777 #include "confdefs.h"
13778 #include <math.h>
13779                       #ifdef HAVE_IEEEFP_H
13780                       #include <ieeefp.h>
13781                       #endif
13782                      
13783 int main() {
13784  expf(0);
13785 ; return 0; }
13786 EOF
13787 if { (eval echo configure:13788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13788   rm -rf conftest*
13789   glibcpp_cv_func_expf_use=yes
13790 else
13791   echo "configure: failed program was:" >&5
13792   cat conftest.$ac_ext >&5
13793   rm -rf conftest*
13794   glibcpp_cv_func_expf_use=no
13795 fi
13796 rm -f conftest*
13797       ac_ext=c
13798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13799 ac_cpp='$CPP $CPPFLAGS'
13800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13802 cross_compiling=$ac_cv_prog_cc_cross
13803
13804     
13805 fi
13806
13807   fi
13808   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
13809
13810   if test x$glibcpp_cv_func_expf_use = x"yes"; then
13811     for ac_func in expf
13812 do
13813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13814 echo "configure:13815: checking for $ac_func" >&5
13815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13816   echo $ac_n "(cached) $ac_c" 1>&6
13817 else
13818   cat > conftest.$ac_ext <<EOF
13819 #line 13820 "configure"
13820 #include "confdefs.h"
13821 /* System header to define __stub macros and hopefully few prototypes,
13822     which can conflict with char $ac_func(); below.  */
13823 #include <assert.h>
13824 /* Override any gcc2 internal prototype to avoid an error.  */
13825 /* We use char because int might match the return type of a gcc2
13826     builtin and then its argument prototype would still apply.  */
13827 char $ac_func();
13828
13829 int main() {
13830
13831 /* The GNU C library defines this for functions which it implements
13832     to always fail with ENOSYS.  Some functions are actually named
13833     something starting with __ and the normal name is an alias.  */
13834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13835 choke me
13836 #else
13837 $ac_func();
13838 #endif
13839
13840 ; return 0; }
13841 EOF
13842 if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13843   rm -rf conftest*
13844   eval "ac_cv_func_$ac_func=yes"
13845 else
13846   echo "configure: failed program was:" >&5
13847   cat conftest.$ac_ext >&5
13848   rm -rf conftest*
13849   eval "ac_cv_func_$ac_func=no"
13850 fi
13851 rm -f conftest*
13852 fi
13853
13854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13855   echo "$ac_t""yes" 1>&6
13856     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13857   cat >> confdefs.h <<EOF
13858 #define $ac_tr_func 1
13859 EOF
13860  
13861 else
13862   echo "$ac_t""no" 1>&6
13863 fi
13864 done
13865     
13866   else
13867     
13868   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
13869 echo "configure:13870: checking for _expf declaration" >&5
13870   if test x${glibcpp_cv_func__expf_use+set} != xset; then
13871     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
13872   echo $ac_n "(cached) $ac_c" 1>&6
13873 else
13874   
13875       
13876       ac_ext=C
13877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13878 ac_cpp='$CXXCPP $CPPFLAGS'
13879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13881 cross_compiling=$ac_cv_prog_cxx_cross
13882
13883       cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 #include <math.h>
13887                       #ifdef HAVE_IEEEFP_H
13888                       #include <ieeefp.h>
13889                       #endif
13890                      
13891 int main() {
13892  _expf(0);
13893 ; return 0; }
13894 EOF
13895 if { (eval echo configure:13896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13896   rm -rf conftest*
13897   glibcpp_cv_func__expf_use=yes
13898 else
13899   echo "configure: failed program was:" >&5
13900   cat conftest.$ac_ext >&5
13901   rm -rf conftest*
13902   glibcpp_cv_func__expf_use=no
13903 fi
13904 rm -f conftest*
13905       ac_ext=c
13906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13907 ac_cpp='$CPP $CPPFLAGS'
13908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13910 cross_compiling=$ac_cv_prog_cc_cross
13911
13912     
13913 fi
13914
13915   fi
13916   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
13917
13918     if test x$glibcpp_cv_func__expf_use = x"yes"; then
13919       for ac_func in _expf
13920 do
13921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13922 echo "configure:13923: checking for $ac_func" >&5
13923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13924   echo $ac_n "(cached) $ac_c" 1>&6
13925 else
13926   cat > conftest.$ac_ext <<EOF
13927 #line 13928 "configure"
13928 #include "confdefs.h"
13929 /* System header to define __stub macros and hopefully few prototypes,
13930     which can conflict with char $ac_func(); below.  */
13931 #include <assert.h>
13932 /* Override any gcc2 internal prototype to avoid an error.  */
13933 /* We use char because int might match the return type of a gcc2
13934     builtin and then its argument prototype would still apply.  */
13935 char $ac_func();
13936
13937 int main() {
13938
13939 /* The GNU C library defines this for functions which it implements
13940     to always fail with ENOSYS.  Some functions are actually named
13941     something starting with __ and the normal name is an alias.  */
13942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13943 choke me
13944 #else
13945 $ac_func();
13946 #endif
13947
13948 ; return 0; }
13949 EOF
13950 if { (eval echo configure:13951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13951   rm -rf conftest*
13952   eval "ac_cv_func_$ac_func=yes"
13953 else
13954   echo "configure: failed program was:" >&5
13955   cat conftest.$ac_ext >&5
13956   rm -rf conftest*
13957   eval "ac_cv_func_$ac_func=no"
13958 fi
13959 rm -f conftest*
13960 fi
13961
13962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13963   echo "$ac_t""yes" 1>&6
13964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13965   cat >> confdefs.h <<EOF
13966 #define $ac_tr_func 1
13967 EOF
13968  
13969 else
13970   echo "$ac_t""no" 1>&6
13971 fi
13972 done
13973     
13974     fi
13975   fi
13976
13977   
13978   
13979   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13980 echo "configure:13981: checking for isnanf declaration" >&5
13981   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13982     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13983   echo $ac_n "(cached) $ac_c" 1>&6
13984 else
13985   
13986       
13987       ac_ext=C
13988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13989 ac_cpp='$CXXCPP $CPPFLAGS'
13990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13992 cross_compiling=$ac_cv_prog_cxx_cross
13993
13994       cat > conftest.$ac_ext <<EOF
13995 #line 13996 "configure"
13996 #include "confdefs.h"
13997 #include <math.h>
13998                       #ifdef HAVE_IEEEFP_H
13999                       #include <ieeefp.h>
14000                       #endif
14001                      
14002 int main() {
14003  isnanf(0);
14004 ; return 0; }
14005 EOF
14006 if { (eval echo configure:14007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14007   rm -rf conftest*
14008   glibcpp_cv_func_isnanf_use=yes
14009 else
14010   echo "configure: failed program was:" >&5
14011   cat conftest.$ac_ext >&5
14012   rm -rf conftest*
14013   glibcpp_cv_func_isnanf_use=no
14014 fi
14015 rm -f conftest*
14016       ac_ext=c
14017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14021 cross_compiling=$ac_cv_prog_cc_cross
14022
14023     
14024 fi
14025
14026   fi
14027   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14028
14029   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14030     for ac_func in isnanf
14031 do
14032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14033 echo "configure:14034: checking for $ac_func" >&5
14034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14035   echo $ac_n "(cached) $ac_c" 1>&6
14036 else
14037   cat > conftest.$ac_ext <<EOF
14038 #line 14039 "configure"
14039 #include "confdefs.h"
14040 /* System header to define __stub macros and hopefully few prototypes,
14041     which can conflict with char $ac_func(); below.  */
14042 #include <assert.h>
14043 /* Override any gcc2 internal prototype to avoid an error.  */
14044 /* We use char because int might match the return type of a gcc2
14045     builtin and then its argument prototype would still apply.  */
14046 char $ac_func();
14047
14048 int main() {
14049
14050 /* The GNU C library defines this for functions which it implements
14051     to always fail with ENOSYS.  Some functions are actually named
14052     something starting with __ and the normal name is an alias.  */
14053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14054 choke me
14055 #else
14056 $ac_func();
14057 #endif
14058
14059 ; return 0; }
14060 EOF
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14062   rm -rf conftest*
14063   eval "ac_cv_func_$ac_func=yes"
14064 else
14065   echo "configure: failed program was:" >&5
14066   cat conftest.$ac_ext >&5
14067   rm -rf conftest*
14068   eval "ac_cv_func_$ac_func=no"
14069 fi
14070 rm -f conftest*
14071 fi
14072
14073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14074   echo "$ac_t""yes" 1>&6
14075     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14076   cat >> confdefs.h <<EOF
14077 #define $ac_tr_func 1
14078 EOF
14079  
14080 else
14081   echo "$ac_t""no" 1>&6
14082 fi
14083 done
14084     
14085   else
14086     
14087   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14088 echo "configure:14089: checking for _isnanf declaration" >&5
14089   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14090     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14091   echo $ac_n "(cached) $ac_c" 1>&6
14092 else
14093   
14094       
14095       ac_ext=C
14096 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14097 ac_cpp='$CXXCPP $CPPFLAGS'
14098 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14099 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14100 cross_compiling=$ac_cv_prog_cxx_cross
14101
14102       cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure"
14104 #include "confdefs.h"
14105 #include <math.h>
14106                       #ifdef HAVE_IEEEFP_H
14107                       #include <ieeefp.h>
14108                       #endif
14109                      
14110 int main() {
14111  _isnanf(0);
14112 ; return 0; }
14113 EOF
14114 if { (eval echo configure:14115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14115   rm -rf conftest*
14116   glibcpp_cv_func__isnanf_use=yes
14117 else
14118   echo "configure: failed program was:" >&5
14119   cat conftest.$ac_ext >&5
14120   rm -rf conftest*
14121   glibcpp_cv_func__isnanf_use=no
14122 fi
14123 rm -f conftest*
14124       ac_ext=c
14125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14126 ac_cpp='$CPP $CPPFLAGS'
14127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14129 cross_compiling=$ac_cv_prog_cc_cross
14130
14131     
14132 fi
14133
14134   fi
14135   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14136
14137     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14138       for ac_func in _isnanf
14139 do
14140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14141 echo "configure:14142: checking for $ac_func" >&5
14142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14143   echo $ac_n "(cached) $ac_c" 1>&6
14144 else
14145   cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 /* System header to define __stub macros and hopefully few prototypes,
14149     which can conflict with char $ac_func(); below.  */
14150 #include <assert.h>
14151 /* Override any gcc2 internal prototype to avoid an error.  */
14152 /* We use char because int might match the return type of a gcc2
14153     builtin and then its argument prototype would still apply.  */
14154 char $ac_func();
14155
14156 int main() {
14157
14158 /* The GNU C library defines this for functions which it implements
14159     to always fail with ENOSYS.  Some functions are actually named
14160     something starting with __ and the normal name is an alias.  */
14161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14162 choke me
14163 #else
14164 $ac_func();
14165 #endif
14166
14167 ; return 0; }
14168 EOF
14169 if { (eval echo configure:14170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14170   rm -rf conftest*
14171   eval "ac_cv_func_$ac_func=yes"
14172 else
14173   echo "configure: failed program was:" >&5
14174   cat conftest.$ac_ext >&5
14175   rm -rf conftest*
14176   eval "ac_cv_func_$ac_func=no"
14177 fi
14178 rm -f conftest*
14179 fi
14180
14181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14182   echo "$ac_t""yes" 1>&6
14183     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14184   cat >> confdefs.h <<EOF
14185 #define $ac_tr_func 1
14186 EOF
14187  
14188 else
14189   echo "$ac_t""no" 1>&6
14190 fi
14191 done
14192     
14193     fi
14194   fi
14195
14196   
14197   
14198   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14199 echo "configure:14200: checking for isinff declaration" >&5
14200   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14201     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14202   echo $ac_n "(cached) $ac_c" 1>&6
14203 else
14204   
14205       
14206       ac_ext=C
14207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14208 ac_cpp='$CXXCPP $CPPFLAGS'
14209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14211 cross_compiling=$ac_cv_prog_cxx_cross
14212
14213       cat > conftest.$ac_ext <<EOF
14214 #line 14215 "configure"
14215 #include "confdefs.h"
14216 #include <math.h>
14217                       #ifdef HAVE_IEEEFP_H
14218                       #include <ieeefp.h>
14219                       #endif
14220                      
14221 int main() {
14222  isinff(0);
14223 ; return 0; }
14224 EOF
14225 if { (eval echo configure:14226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14226   rm -rf conftest*
14227   glibcpp_cv_func_isinff_use=yes
14228 else
14229   echo "configure: failed program was:" >&5
14230   cat conftest.$ac_ext >&5
14231   rm -rf conftest*
14232   glibcpp_cv_func_isinff_use=no
14233 fi
14234 rm -f conftest*
14235       ac_ext=c
14236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14240 cross_compiling=$ac_cv_prog_cc_cross
14241
14242     
14243 fi
14244
14245   fi
14246   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14247
14248   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14249     for ac_func in isinff
14250 do
14251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14252 echo "configure:14253: checking for $ac_func" >&5
14253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14254   echo $ac_n "(cached) $ac_c" 1>&6
14255 else
14256   cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure"
14258 #include "confdefs.h"
14259 /* System header to define __stub macros and hopefully few prototypes,
14260     which can conflict with char $ac_func(); below.  */
14261 #include <assert.h>
14262 /* Override any gcc2 internal prototype to avoid an error.  */
14263 /* We use char because int might match the return type of a gcc2
14264     builtin and then its argument prototype would still apply.  */
14265 char $ac_func();
14266
14267 int main() {
14268
14269 /* The GNU C library defines this for functions which it implements
14270     to always fail with ENOSYS.  Some functions are actually named
14271     something starting with __ and the normal name is an alias.  */
14272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14273 choke me
14274 #else
14275 $ac_func();
14276 #endif
14277
14278 ; return 0; }
14279 EOF
14280 if { (eval echo configure:14281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14281   rm -rf conftest*
14282   eval "ac_cv_func_$ac_func=yes"
14283 else
14284   echo "configure: failed program was:" >&5
14285   cat conftest.$ac_ext >&5
14286   rm -rf conftest*
14287   eval "ac_cv_func_$ac_func=no"
14288 fi
14289 rm -f conftest*
14290 fi
14291
14292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14293   echo "$ac_t""yes" 1>&6
14294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14295   cat >> confdefs.h <<EOF
14296 #define $ac_tr_func 1
14297 EOF
14298  
14299 else
14300   echo "$ac_t""no" 1>&6
14301 fi
14302 done
14303     
14304   else
14305     
14306   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14307 echo "configure:14308: checking for _isinff declaration" >&5
14308   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14309     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14310   echo $ac_n "(cached) $ac_c" 1>&6
14311 else
14312   
14313       
14314       ac_ext=C
14315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14316 ac_cpp='$CXXCPP $CPPFLAGS'
14317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14319 cross_compiling=$ac_cv_prog_cxx_cross
14320
14321       cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 #include <math.h>
14325                       #ifdef HAVE_IEEEFP_H
14326                       #include <ieeefp.h>
14327                       #endif
14328                      
14329 int main() {
14330  _isinff(0);
14331 ; return 0; }
14332 EOF
14333 if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14334   rm -rf conftest*
14335   glibcpp_cv_func__isinff_use=yes
14336 else
14337   echo "configure: failed program was:" >&5
14338   cat conftest.$ac_ext >&5
14339   rm -rf conftest*
14340   glibcpp_cv_func__isinff_use=no
14341 fi
14342 rm -f conftest*
14343       ac_ext=c
14344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14345 ac_cpp='$CPP $CPPFLAGS'
14346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14348 cross_compiling=$ac_cv_prog_cc_cross
14349
14350     
14351 fi
14352
14353   fi
14354   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14355
14356     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14357       for ac_func in _isinff
14358 do
14359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14360 echo "configure:14361: checking for $ac_func" >&5
14361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14362   echo $ac_n "(cached) $ac_c" 1>&6
14363 else
14364   cat > conftest.$ac_ext <<EOF
14365 #line 14366 "configure"
14366 #include "confdefs.h"
14367 /* System header to define __stub macros and hopefully few prototypes,
14368     which can conflict with char $ac_func(); below.  */
14369 #include <assert.h>
14370 /* Override any gcc2 internal prototype to avoid an error.  */
14371 /* We use char because int might match the return type of a gcc2
14372     builtin and then its argument prototype would still apply.  */
14373 char $ac_func();
14374
14375 int main() {
14376
14377 /* The GNU C library defines this for functions which it implements
14378     to always fail with ENOSYS.  Some functions are actually named
14379     something starting with __ and the normal name is an alias.  */
14380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14381 choke me
14382 #else
14383 $ac_func();
14384 #endif
14385
14386 ; return 0; }
14387 EOF
14388 if { (eval echo configure:14389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14389   rm -rf conftest*
14390   eval "ac_cv_func_$ac_func=yes"
14391 else
14392   echo "configure: failed program was:" >&5
14393   cat conftest.$ac_ext >&5
14394   rm -rf conftest*
14395   eval "ac_cv_func_$ac_func=no"
14396 fi
14397 rm -f conftest*
14398 fi
14399
14400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14401   echo "$ac_t""yes" 1>&6
14402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14403   cat >> confdefs.h <<EOF
14404 #define $ac_tr_func 1
14405 EOF
14406  
14407 else
14408   echo "$ac_t""no" 1>&6
14409 fi
14410 done
14411     
14412     fi
14413   fi
14414
14415   
14416   
14417   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14418 echo "configure:14419: checking for atan2f declaration" >&5
14419   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14420     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14421   echo $ac_n "(cached) $ac_c" 1>&6
14422 else
14423   
14424       
14425       ac_ext=C
14426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14427 ac_cpp='$CXXCPP $CPPFLAGS'
14428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14430 cross_compiling=$ac_cv_prog_cxx_cross
14431
14432       cat > conftest.$ac_ext <<EOF
14433 #line 14434 "configure"
14434 #include "confdefs.h"
14435 #include <math.h>
14436 int main() {
14437  atan2f(0, 0);
14438 ; return 0; }
14439 EOF
14440 if { (eval echo configure:14441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14441   rm -rf conftest*
14442   glibcpp_cv_func_atan2f_use=yes
14443 else
14444   echo "configure: failed program was:" >&5
14445   cat conftest.$ac_ext >&5
14446   rm -rf conftest*
14447   glibcpp_cv_func_atan2f_use=no
14448 fi
14449 rm -f conftest*
14450       ac_ext=c
14451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14455 cross_compiling=$ac_cv_prog_cc_cross
14456
14457     
14458 fi
14459
14460   fi
14461   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14462
14463   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14464     for ac_func in atan2f
14465 do
14466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14467 echo "configure:14468: checking for $ac_func" >&5
14468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14469   echo $ac_n "(cached) $ac_c" 1>&6
14470 else
14471   cat > conftest.$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14474 /* System header to define __stub macros and hopefully few prototypes,
14475     which can conflict with char $ac_func(); below.  */
14476 #include <assert.h>
14477 /* Override any gcc2 internal prototype to avoid an error.  */
14478 /* We use char because int might match the return type of a gcc2
14479     builtin and then its argument prototype would still apply.  */
14480 char $ac_func();
14481
14482 int main() {
14483
14484 /* The GNU C library defines this for functions which it implements
14485     to always fail with ENOSYS.  Some functions are actually named
14486     something starting with __ and the normal name is an alias.  */
14487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14488 choke me
14489 #else
14490 $ac_func();
14491 #endif
14492
14493 ; return 0; }
14494 EOF
14495 if { (eval echo configure:14496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14496   rm -rf conftest*
14497   eval "ac_cv_func_$ac_func=yes"
14498 else
14499   echo "configure: failed program was:" >&5
14500   cat conftest.$ac_ext >&5
14501   rm -rf conftest*
14502   eval "ac_cv_func_$ac_func=no"
14503 fi
14504 rm -f conftest*
14505 fi
14506
14507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14508   echo "$ac_t""yes" 1>&6
14509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14510   cat >> confdefs.h <<EOF
14511 #define $ac_tr_func 1
14512 EOF
14513  
14514 else
14515   echo "$ac_t""no" 1>&6
14516 fi
14517 done
14518     
14519   else
14520     
14521   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14522 echo "configure:14523: checking for _atan2f declaration" >&5
14523   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14524     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14525   echo $ac_n "(cached) $ac_c" 1>&6
14526 else
14527   
14528       
14529       ac_ext=C
14530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14531 ac_cpp='$CXXCPP $CPPFLAGS'
14532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14534 cross_compiling=$ac_cv_prog_cxx_cross
14535
14536       cat > conftest.$ac_ext <<EOF
14537 #line 14538 "configure"
14538 #include "confdefs.h"
14539 #include <math.h>
14540 int main() {
14541  _atan2f(0, 0);
14542 ; return 0; }
14543 EOF
14544 if { (eval echo configure:14545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14545   rm -rf conftest*
14546   glibcpp_cv_func__atan2f_use=yes
14547 else
14548   echo "configure: failed program was:" >&5
14549   cat conftest.$ac_ext >&5
14550   rm -rf conftest*
14551   glibcpp_cv_func__atan2f_use=no
14552 fi
14553 rm -f conftest*
14554       ac_ext=c
14555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14556 ac_cpp='$CPP $CPPFLAGS'
14557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14559 cross_compiling=$ac_cv_prog_cc_cross
14560
14561     
14562 fi
14563
14564   fi
14565   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14566
14567     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14568       for ac_func in _atan2f
14569 do
14570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14571 echo "configure:14572: checking for $ac_func" >&5
14572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14573   echo $ac_n "(cached) $ac_c" 1>&6
14574 else
14575   cat > conftest.$ac_ext <<EOF
14576 #line 14577 "configure"
14577 #include "confdefs.h"
14578 /* System header to define __stub macros and hopefully few prototypes,
14579     which can conflict with char $ac_func(); below.  */
14580 #include <assert.h>
14581 /* Override any gcc2 internal prototype to avoid an error.  */
14582 /* We use char because int might match the return type of a gcc2
14583     builtin and then its argument prototype would still apply.  */
14584 char $ac_func();
14585
14586 int main() {
14587
14588 /* The GNU C library defines this for functions which it implements
14589     to always fail with ENOSYS.  Some functions are actually named
14590     something starting with __ and the normal name is an alias.  */
14591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14592 choke me
14593 #else
14594 $ac_func();
14595 #endif
14596
14597 ; return 0; }
14598 EOF
14599 if { (eval echo configure:14600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14600   rm -rf conftest*
14601   eval "ac_cv_func_$ac_func=yes"
14602 else
14603   echo "configure: failed program was:" >&5
14604   cat conftest.$ac_ext >&5
14605   rm -rf conftest*
14606   eval "ac_cv_func_$ac_func=no"
14607 fi
14608 rm -f conftest*
14609 fi
14610
14611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14612   echo "$ac_t""yes" 1>&6
14613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14614   cat >> confdefs.h <<EOF
14615 #define $ac_tr_func 1
14616 EOF
14617  
14618 else
14619   echo "$ac_t""no" 1>&6
14620 fi
14621 done
14622     
14623     fi
14624   fi
14625
14626   
14627   
14628   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14629 echo "configure:14630: checking for fabsf declaration" >&5
14630   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14631     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14632   echo $ac_n "(cached) $ac_c" 1>&6
14633 else
14634   
14635       
14636       ac_ext=C
14637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14638 ac_cpp='$CXXCPP $CPPFLAGS'
14639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14641 cross_compiling=$ac_cv_prog_cxx_cross
14642
14643       cat > conftest.$ac_ext <<EOF
14644 #line 14645 "configure"
14645 #include "confdefs.h"
14646 #include <math.h>
14647                       #ifdef HAVE_IEEEFP_H
14648                       #include <ieeefp.h>
14649                       #endif
14650                      
14651 int main() {
14652  fabsf(0);
14653 ; return 0; }
14654 EOF
14655 if { (eval echo configure:14656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14656   rm -rf conftest*
14657   glibcpp_cv_func_fabsf_use=yes
14658 else
14659   echo "configure: failed program was:" >&5
14660   cat conftest.$ac_ext >&5
14661   rm -rf conftest*
14662   glibcpp_cv_func_fabsf_use=no
14663 fi
14664 rm -f conftest*
14665       ac_ext=c
14666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14667 ac_cpp='$CPP $CPPFLAGS'
14668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14670 cross_compiling=$ac_cv_prog_cc_cross
14671
14672     
14673 fi
14674
14675   fi
14676   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14677
14678   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14679     for ac_func in fabsf
14680 do
14681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14682 echo "configure:14683: checking for $ac_func" >&5
14683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14684   echo $ac_n "(cached) $ac_c" 1>&6
14685 else
14686   cat > conftest.$ac_ext <<EOF
14687 #line 14688 "configure"
14688 #include "confdefs.h"
14689 /* System header to define __stub macros and hopefully few prototypes,
14690     which can conflict with char $ac_func(); below.  */
14691 #include <assert.h>
14692 /* Override any gcc2 internal prototype to avoid an error.  */
14693 /* We use char because int might match the return type of a gcc2
14694     builtin and then its argument prototype would still apply.  */
14695 char $ac_func();
14696
14697 int main() {
14698
14699 /* The GNU C library defines this for functions which it implements
14700     to always fail with ENOSYS.  Some functions are actually named
14701     something starting with __ and the normal name is an alias.  */
14702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14703 choke me
14704 #else
14705 $ac_func();
14706 #endif
14707
14708 ; return 0; }
14709 EOF
14710 if { (eval echo configure:14711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14711   rm -rf conftest*
14712   eval "ac_cv_func_$ac_func=yes"
14713 else
14714   echo "configure: failed program was:" >&5
14715   cat conftest.$ac_ext >&5
14716   rm -rf conftest*
14717   eval "ac_cv_func_$ac_func=no"
14718 fi
14719 rm -f conftest*
14720 fi
14721
14722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14723   echo "$ac_t""yes" 1>&6
14724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14725   cat >> confdefs.h <<EOF
14726 #define $ac_tr_func 1
14727 EOF
14728  
14729 else
14730   echo "$ac_t""no" 1>&6
14731 fi
14732 done
14733     
14734   else
14735     
14736   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14737 echo "configure:14738: checking for _fabsf declaration" >&5
14738   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14739     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14740   echo $ac_n "(cached) $ac_c" 1>&6
14741 else
14742   
14743       
14744       ac_ext=C
14745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14746 ac_cpp='$CXXCPP $CPPFLAGS'
14747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14749 cross_compiling=$ac_cv_prog_cxx_cross
14750
14751       cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 #include <math.h>
14755                       #ifdef HAVE_IEEEFP_H
14756                       #include <ieeefp.h>
14757                       #endif
14758                      
14759 int main() {
14760  _fabsf(0);
14761 ; return 0; }
14762 EOF
14763 if { (eval echo configure:14764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14764   rm -rf conftest*
14765   glibcpp_cv_func__fabsf_use=yes
14766 else
14767   echo "configure: failed program was:" >&5
14768   cat conftest.$ac_ext >&5
14769   rm -rf conftest*
14770   glibcpp_cv_func__fabsf_use=no
14771 fi
14772 rm -f conftest*
14773       ac_ext=c
14774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14775 ac_cpp='$CPP $CPPFLAGS'
14776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14778 cross_compiling=$ac_cv_prog_cc_cross
14779
14780     
14781 fi
14782
14783   fi
14784   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14785
14786     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14787       for ac_func in _fabsf
14788 do
14789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14790 echo "configure:14791: checking for $ac_func" >&5
14791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14792   echo $ac_n "(cached) $ac_c" 1>&6
14793 else
14794   cat > conftest.$ac_ext <<EOF
14795 #line 14796 "configure"
14796 #include "confdefs.h"
14797 /* System header to define __stub macros and hopefully few prototypes,
14798     which can conflict with char $ac_func(); below.  */
14799 #include <assert.h>
14800 /* Override any gcc2 internal prototype to avoid an error.  */
14801 /* We use char because int might match the return type of a gcc2
14802     builtin and then its argument prototype would still apply.  */
14803 char $ac_func();
14804
14805 int main() {
14806
14807 /* The GNU C library defines this for functions which it implements
14808     to always fail with ENOSYS.  Some functions are actually named
14809     something starting with __ and the normal name is an alias.  */
14810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14811 choke me
14812 #else
14813 $ac_func();
14814 #endif
14815
14816 ; return 0; }
14817 EOF
14818 if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14819   rm -rf conftest*
14820   eval "ac_cv_func_$ac_func=yes"
14821 else
14822   echo "configure: failed program was:" >&5
14823   cat conftest.$ac_ext >&5
14824   rm -rf conftest*
14825   eval "ac_cv_func_$ac_func=no"
14826 fi
14827 rm -f conftest*
14828 fi
14829
14830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14831   echo "$ac_t""yes" 1>&6
14832     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14833   cat >> confdefs.h <<EOF
14834 #define $ac_tr_func 1
14835 EOF
14836  
14837 else
14838   echo "$ac_t""no" 1>&6
14839 fi
14840 done
14841     
14842     fi
14843   fi
14844
14845   
14846   
14847   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
14848 echo "configure:14849: checking for fmodf declaration" >&5
14849   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
14850     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
14851   echo $ac_n "(cached) $ac_c" 1>&6
14852 else
14853   
14854       
14855       ac_ext=C
14856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14857 ac_cpp='$CXXCPP $CPPFLAGS'
14858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14860 cross_compiling=$ac_cv_prog_cxx_cross
14861
14862       cat > conftest.$ac_ext <<EOF
14863 #line 14864 "configure"
14864 #include "confdefs.h"
14865 #include <math.h>
14866 int main() {
14867  fmodf(0, 0);
14868 ; return 0; }
14869 EOF
14870 if { (eval echo configure:14871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14871   rm -rf conftest*
14872   glibcpp_cv_func_fmodf_use=yes
14873 else
14874   echo "configure: failed program was:" >&5
14875   cat conftest.$ac_ext >&5
14876   rm -rf conftest*
14877   glibcpp_cv_func_fmodf_use=no
14878 fi
14879 rm -f conftest*
14880       ac_ext=c
14881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14882 ac_cpp='$CPP $CPPFLAGS'
14883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14885 cross_compiling=$ac_cv_prog_cc_cross
14886
14887     
14888 fi
14889
14890   fi
14891   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
14892
14893   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
14894     for ac_func in fmodf
14895 do
14896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14897 echo "configure:14898: checking for $ac_func" >&5
14898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14899   echo $ac_n "(cached) $ac_c" 1>&6
14900 else
14901   cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14904 /* System header to define __stub macros and hopefully few prototypes,
14905     which can conflict with char $ac_func(); below.  */
14906 #include <assert.h>
14907 /* Override any gcc2 internal prototype to avoid an error.  */
14908 /* We use char because int might match the return type of a gcc2
14909     builtin and then its argument prototype would still apply.  */
14910 char $ac_func();
14911
14912 int main() {
14913
14914 /* The GNU C library defines this for functions which it implements
14915     to always fail with ENOSYS.  Some functions are actually named
14916     something starting with __ and the normal name is an alias.  */
14917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14918 choke me
14919 #else
14920 $ac_func();
14921 #endif
14922
14923 ; return 0; }
14924 EOF
14925 if { (eval echo configure:14926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14926   rm -rf conftest*
14927   eval "ac_cv_func_$ac_func=yes"
14928 else
14929   echo "configure: failed program was:" >&5
14930   cat conftest.$ac_ext >&5
14931   rm -rf conftest*
14932   eval "ac_cv_func_$ac_func=no"
14933 fi
14934 rm -f conftest*
14935 fi
14936
14937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14938   echo "$ac_t""yes" 1>&6
14939     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14940   cat >> confdefs.h <<EOF
14941 #define $ac_tr_func 1
14942 EOF
14943  
14944 else
14945   echo "$ac_t""no" 1>&6
14946 fi
14947 done
14948     
14949   else
14950     
14951   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14952 echo "configure:14953: checking for _fmodf declaration" >&5
14953   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14954     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14955   echo $ac_n "(cached) $ac_c" 1>&6
14956 else
14957   
14958       
14959       ac_ext=C
14960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14961 ac_cpp='$CXXCPP $CPPFLAGS'
14962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14964 cross_compiling=$ac_cv_prog_cxx_cross
14965
14966       cat > conftest.$ac_ext <<EOF
14967 #line 14968 "configure"
14968 #include "confdefs.h"
14969 #include <math.h>
14970 int main() {
14971  _fmodf(0, 0);
14972 ; return 0; }
14973 EOF
14974 if { (eval echo configure:14975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14975   rm -rf conftest*
14976   glibcpp_cv_func__fmodf_use=yes
14977 else
14978   echo "configure: failed program was:" >&5
14979   cat conftest.$ac_ext >&5
14980   rm -rf conftest*
14981   glibcpp_cv_func__fmodf_use=no
14982 fi
14983 rm -f conftest*
14984       ac_ext=c
14985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14986 ac_cpp='$CPP $CPPFLAGS'
14987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14989 cross_compiling=$ac_cv_prog_cc_cross
14990
14991     
14992 fi
14993
14994   fi
14995   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14996
14997     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14998       for ac_func in _fmodf
14999 do
15000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15001 echo "configure:15002: checking for $ac_func" >&5
15002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15003   echo $ac_n "(cached) $ac_c" 1>&6
15004 else
15005   cat > conftest.$ac_ext <<EOF
15006 #line 15007 "configure"
15007 #include "confdefs.h"
15008 /* System header to define __stub macros and hopefully few prototypes,
15009     which can conflict with char $ac_func(); below.  */
15010 #include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error.  */
15012 /* We use char because int might match the return type of a gcc2
15013     builtin and then its argument prototype would still apply.  */
15014 char $ac_func();
15015
15016 int main() {
15017
15018 /* The GNU C library defines this for functions which it implements
15019     to always fail with ENOSYS.  Some functions are actually named
15020     something starting with __ and the normal name is an alias.  */
15021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15022 choke me
15023 #else
15024 $ac_func();
15025 #endif
15026
15027 ; return 0; }
15028 EOF
15029 if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15030   rm -rf conftest*
15031   eval "ac_cv_func_$ac_func=yes"
15032 else
15033   echo "configure: failed program was:" >&5
15034   cat conftest.$ac_ext >&5
15035   rm -rf conftest*
15036   eval "ac_cv_func_$ac_func=no"
15037 fi
15038 rm -f conftest*
15039 fi
15040
15041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15042   echo "$ac_t""yes" 1>&6
15043     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15044   cat >> confdefs.h <<EOF
15045 #define $ac_tr_func 1
15046 EOF
15047  
15048 else
15049   echo "$ac_t""no" 1>&6
15050 fi
15051 done
15052     
15053     fi
15054   fi
15055
15056   
15057   
15058   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15059 echo "configure:15060: checking for frexpf declaration" >&5
15060   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15061     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15062   echo $ac_n "(cached) $ac_c" 1>&6
15063 else
15064   
15065       
15066       ac_ext=C
15067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15068 ac_cpp='$CXXCPP $CPPFLAGS'
15069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15071 cross_compiling=$ac_cv_prog_cxx_cross
15072
15073       cat > conftest.$ac_ext <<EOF
15074 #line 15075 "configure"
15075 #include "confdefs.h"
15076 #include <math.h>
15077 int main() {
15078  frexpf(0, 0);
15079 ; return 0; }
15080 EOF
15081 if { (eval echo configure:15082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15082   rm -rf conftest*
15083   glibcpp_cv_func_frexpf_use=yes
15084 else
15085   echo "configure: failed program was:" >&5
15086   cat conftest.$ac_ext >&5
15087   rm -rf conftest*
15088   glibcpp_cv_func_frexpf_use=no
15089 fi
15090 rm -f conftest*
15091       ac_ext=c
15092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15096 cross_compiling=$ac_cv_prog_cc_cross
15097
15098     
15099 fi
15100
15101   fi
15102   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15103
15104   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15105     for ac_func in frexpf
15106 do
15107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15108 echo "configure:15109: checking for $ac_func" >&5
15109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15110   echo $ac_n "(cached) $ac_c" 1>&6
15111 else
15112   cat > conftest.$ac_ext <<EOF
15113 #line 15114 "configure"
15114 #include "confdefs.h"
15115 /* System header to define __stub macros and hopefully few prototypes,
15116     which can conflict with char $ac_func(); below.  */
15117 #include <assert.h>
15118 /* Override any gcc2 internal prototype to avoid an error.  */
15119 /* We use char because int might match the return type of a gcc2
15120     builtin and then its argument prototype would still apply.  */
15121 char $ac_func();
15122
15123 int main() {
15124
15125 /* The GNU C library defines this for functions which it implements
15126     to always fail with ENOSYS.  Some functions are actually named
15127     something starting with __ and the normal name is an alias.  */
15128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15129 choke me
15130 #else
15131 $ac_func();
15132 #endif
15133
15134 ; return 0; }
15135 EOF
15136 if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137   rm -rf conftest*
15138   eval "ac_cv_func_$ac_func=yes"
15139 else
15140   echo "configure: failed program was:" >&5
15141   cat conftest.$ac_ext >&5
15142   rm -rf conftest*
15143   eval "ac_cv_func_$ac_func=no"
15144 fi
15145 rm -f conftest*
15146 fi
15147
15148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15149   echo "$ac_t""yes" 1>&6
15150     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15151   cat >> confdefs.h <<EOF
15152 #define $ac_tr_func 1
15153 EOF
15154  
15155 else
15156   echo "$ac_t""no" 1>&6
15157 fi
15158 done
15159     
15160   else
15161     
15162   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15163 echo "configure:15164: checking for _frexpf declaration" >&5
15164   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15165     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15166   echo $ac_n "(cached) $ac_c" 1>&6
15167 else
15168   
15169       
15170       ac_ext=C
15171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15172 ac_cpp='$CXXCPP $CPPFLAGS'
15173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15175 cross_compiling=$ac_cv_prog_cxx_cross
15176
15177       cat > conftest.$ac_ext <<EOF
15178 #line 15179 "configure"
15179 #include "confdefs.h"
15180 #include <math.h>
15181 int main() {
15182  _frexpf(0, 0);
15183 ; return 0; }
15184 EOF
15185 if { (eval echo configure:15186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15186   rm -rf conftest*
15187   glibcpp_cv_func__frexpf_use=yes
15188 else
15189   echo "configure: failed program was:" >&5
15190   cat conftest.$ac_ext >&5
15191   rm -rf conftest*
15192   glibcpp_cv_func__frexpf_use=no
15193 fi
15194 rm -f conftest*
15195       ac_ext=c
15196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15197 ac_cpp='$CPP $CPPFLAGS'
15198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15200 cross_compiling=$ac_cv_prog_cc_cross
15201
15202     
15203 fi
15204
15205   fi
15206   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15207
15208     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15209       for ac_func in _frexpf
15210 do
15211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15212 echo "configure:15213: checking for $ac_func" >&5
15213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15214   echo $ac_n "(cached) $ac_c" 1>&6
15215 else
15216   cat > conftest.$ac_ext <<EOF
15217 #line 15218 "configure"
15218 #include "confdefs.h"
15219 /* System header to define __stub macros and hopefully few prototypes,
15220     which can conflict with char $ac_func(); below.  */
15221 #include <assert.h>
15222 /* Override any gcc2 internal prototype to avoid an error.  */
15223 /* We use char because int might match the return type of a gcc2
15224     builtin and then its argument prototype would still apply.  */
15225 char $ac_func();
15226
15227 int main() {
15228
15229 /* The GNU C library defines this for functions which it implements
15230     to always fail with ENOSYS.  Some functions are actually named
15231     something starting with __ and the normal name is an alias.  */
15232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15233 choke me
15234 #else
15235 $ac_func();
15236 #endif
15237
15238 ; return 0; }
15239 EOF
15240 if { (eval echo configure:15241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15241   rm -rf conftest*
15242   eval "ac_cv_func_$ac_func=yes"
15243 else
15244   echo "configure: failed program was:" >&5
15245   cat conftest.$ac_ext >&5
15246   rm -rf conftest*
15247   eval "ac_cv_func_$ac_func=no"
15248 fi
15249 rm -f conftest*
15250 fi
15251
15252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15253   echo "$ac_t""yes" 1>&6
15254     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15255   cat >> confdefs.h <<EOF
15256 #define $ac_tr_func 1
15257 EOF
15258  
15259 else
15260   echo "$ac_t""no" 1>&6
15261 fi
15262 done
15263     
15264     fi
15265   fi
15266
15267   
15268   
15269   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15270 echo "configure:15271: checking for hypotf declaration" >&5
15271   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15272     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15273   echo $ac_n "(cached) $ac_c" 1>&6
15274 else
15275   
15276       
15277       ac_ext=C
15278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15279 ac_cpp='$CXXCPP $CPPFLAGS'
15280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15282 cross_compiling=$ac_cv_prog_cxx_cross
15283
15284       cat > conftest.$ac_ext <<EOF
15285 #line 15286 "configure"
15286 #include "confdefs.h"
15287 #include <math.h>
15288 int main() {
15289  hypotf(0, 0);
15290 ; return 0; }
15291 EOF
15292 if { (eval echo configure:15293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15293   rm -rf conftest*
15294   glibcpp_cv_func_hypotf_use=yes
15295 else
15296   echo "configure: failed program was:" >&5
15297   cat conftest.$ac_ext >&5
15298   rm -rf conftest*
15299   glibcpp_cv_func_hypotf_use=no
15300 fi
15301 rm -f conftest*
15302       ac_ext=c
15303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15306 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15307 cross_compiling=$ac_cv_prog_cc_cross
15308
15309     
15310 fi
15311
15312   fi
15313   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15314
15315   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15316     for ac_func in hypotf
15317 do
15318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15319 echo "configure:15320: checking for $ac_func" >&5
15320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15321   echo $ac_n "(cached) $ac_c" 1>&6
15322 else
15323   cat > conftest.$ac_ext <<EOF
15324 #line 15325 "configure"
15325 #include "confdefs.h"
15326 /* System header to define __stub macros and hopefully few prototypes,
15327     which can conflict with char $ac_func(); below.  */
15328 #include <assert.h>
15329 /* Override any gcc2 internal prototype to avoid an error.  */
15330 /* We use char because int might match the return type of a gcc2
15331     builtin and then its argument prototype would still apply.  */
15332 char $ac_func();
15333
15334 int main() {
15335
15336 /* The GNU C library defines this for functions which it implements
15337     to always fail with ENOSYS.  Some functions are actually named
15338     something starting with __ and the normal name is an alias.  */
15339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15340 choke me
15341 #else
15342 $ac_func();
15343 #endif
15344
15345 ; return 0; }
15346 EOF
15347 if { (eval echo configure:15348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15348   rm -rf conftest*
15349   eval "ac_cv_func_$ac_func=yes"
15350 else
15351   echo "configure: failed program was:" >&5
15352   cat conftest.$ac_ext >&5
15353   rm -rf conftest*
15354   eval "ac_cv_func_$ac_func=no"
15355 fi
15356 rm -f conftest*
15357 fi
15358
15359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15360   echo "$ac_t""yes" 1>&6
15361     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15362   cat >> confdefs.h <<EOF
15363 #define $ac_tr_func 1
15364 EOF
15365  
15366 else
15367   echo "$ac_t""no" 1>&6
15368 fi
15369 done
15370     
15371   else
15372     
15373   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15374 echo "configure:15375: checking for _hypotf declaration" >&5
15375   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15376     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15377   echo $ac_n "(cached) $ac_c" 1>&6
15378 else
15379   
15380       
15381       ac_ext=C
15382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15383 ac_cpp='$CXXCPP $CPPFLAGS'
15384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15386 cross_compiling=$ac_cv_prog_cxx_cross
15387
15388       cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 #include <math.h>
15392 int main() {
15393  _hypotf(0, 0);
15394 ; return 0; }
15395 EOF
15396 if { (eval echo configure:15397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15397   rm -rf conftest*
15398   glibcpp_cv_func__hypotf_use=yes
15399 else
15400   echo "configure: failed program was:" >&5
15401   cat conftest.$ac_ext >&5
15402   rm -rf conftest*
15403   glibcpp_cv_func__hypotf_use=no
15404 fi
15405 rm -f conftest*
15406       ac_ext=c
15407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15408 ac_cpp='$CPP $CPPFLAGS'
15409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15411 cross_compiling=$ac_cv_prog_cc_cross
15412
15413     
15414 fi
15415
15416   fi
15417   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15418
15419     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15420       for ac_func in _hypotf
15421 do
15422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15423 echo "configure:15424: checking for $ac_func" >&5
15424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15425   echo $ac_n "(cached) $ac_c" 1>&6
15426 else
15427   cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430 /* System header to define __stub macros and hopefully few prototypes,
15431     which can conflict with char $ac_func(); below.  */
15432 #include <assert.h>
15433 /* Override any gcc2 internal prototype to avoid an error.  */
15434 /* We use char because int might match the return type of a gcc2
15435     builtin and then its argument prototype would still apply.  */
15436 char $ac_func();
15437
15438 int main() {
15439
15440 /* The GNU C library defines this for functions which it implements
15441     to always fail with ENOSYS.  Some functions are actually named
15442     something starting with __ and the normal name is an alias.  */
15443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444 choke me
15445 #else
15446 $ac_func();
15447 #endif
15448
15449 ; return 0; }
15450 EOF
15451 if { (eval echo configure:15452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15452   rm -rf conftest*
15453   eval "ac_cv_func_$ac_func=yes"
15454 else
15455   echo "configure: failed program was:" >&5
15456   cat conftest.$ac_ext >&5
15457   rm -rf conftest*
15458   eval "ac_cv_func_$ac_func=no"
15459 fi
15460 rm -f conftest*
15461 fi
15462
15463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15464   echo "$ac_t""yes" 1>&6
15465     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15466   cat >> confdefs.h <<EOF
15467 #define $ac_tr_func 1
15468 EOF
15469  
15470 else
15471   echo "$ac_t""no" 1>&6
15472 fi
15473 done
15474     
15475     fi
15476   fi
15477
15478   
15479   
15480   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15481 echo "configure:15482: checking for ldexpf declaration" >&5
15482   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15483     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15484   echo $ac_n "(cached) $ac_c" 1>&6
15485 else
15486   
15487       
15488       ac_ext=C
15489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15490 ac_cpp='$CXXCPP $CPPFLAGS'
15491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15493 cross_compiling=$ac_cv_prog_cxx_cross
15494
15495       cat > conftest.$ac_ext <<EOF
15496 #line 15497 "configure"
15497 #include "confdefs.h"
15498 #include <math.h>
15499 int main() {
15500  ldexpf(0, 0);
15501 ; return 0; }
15502 EOF
15503 if { (eval echo configure:15504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15504   rm -rf conftest*
15505   glibcpp_cv_func_ldexpf_use=yes
15506 else
15507   echo "configure: failed program was:" >&5
15508   cat conftest.$ac_ext >&5
15509   rm -rf conftest*
15510   glibcpp_cv_func_ldexpf_use=no
15511 fi
15512 rm -f conftest*
15513       ac_ext=c
15514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15515 ac_cpp='$CPP $CPPFLAGS'
15516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15518 cross_compiling=$ac_cv_prog_cc_cross
15519
15520     
15521 fi
15522
15523   fi
15524   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15525
15526   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15527     for ac_func in ldexpf
15528 do
15529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15530 echo "configure:15531: checking for $ac_func" >&5
15531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15532   echo $ac_n "(cached) $ac_c" 1>&6
15533 else
15534   cat > conftest.$ac_ext <<EOF
15535 #line 15536 "configure"
15536 #include "confdefs.h"
15537 /* System header to define __stub macros and hopefully few prototypes,
15538     which can conflict with char $ac_func(); below.  */
15539 #include <assert.h>
15540 /* Override any gcc2 internal prototype to avoid an error.  */
15541 /* We use char because int might match the return type of a gcc2
15542     builtin and then its argument prototype would still apply.  */
15543 char $ac_func();
15544
15545 int main() {
15546
15547 /* The GNU C library defines this for functions which it implements
15548     to always fail with ENOSYS.  Some functions are actually named
15549     something starting with __ and the normal name is an alias.  */
15550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15551 choke me
15552 #else
15553 $ac_func();
15554 #endif
15555
15556 ; return 0; }
15557 EOF
15558 if { (eval echo configure:15559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15559   rm -rf conftest*
15560   eval "ac_cv_func_$ac_func=yes"
15561 else
15562   echo "configure: failed program was:" >&5
15563   cat conftest.$ac_ext >&5
15564   rm -rf conftest*
15565   eval "ac_cv_func_$ac_func=no"
15566 fi
15567 rm -f conftest*
15568 fi
15569
15570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15571   echo "$ac_t""yes" 1>&6
15572     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15573   cat >> confdefs.h <<EOF
15574 #define $ac_tr_func 1
15575 EOF
15576  
15577 else
15578   echo "$ac_t""no" 1>&6
15579 fi
15580 done
15581     
15582   else
15583     
15584   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15585 echo "configure:15586: checking for _ldexpf declaration" >&5
15586   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15587     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15588   echo $ac_n "(cached) $ac_c" 1>&6
15589 else
15590   
15591       
15592       ac_ext=C
15593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15594 ac_cpp='$CXXCPP $CPPFLAGS'
15595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15597 cross_compiling=$ac_cv_prog_cxx_cross
15598
15599       cat > conftest.$ac_ext <<EOF
15600 #line 15601 "configure"
15601 #include "confdefs.h"
15602 #include <math.h>
15603 int main() {
15604  _ldexpf(0, 0);
15605 ; return 0; }
15606 EOF
15607 if { (eval echo configure:15608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15608   rm -rf conftest*
15609   glibcpp_cv_func__ldexpf_use=yes
15610 else
15611   echo "configure: failed program was:" >&5
15612   cat conftest.$ac_ext >&5
15613   rm -rf conftest*
15614   glibcpp_cv_func__ldexpf_use=no
15615 fi
15616 rm -f conftest*
15617       ac_ext=c
15618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15619 ac_cpp='$CPP $CPPFLAGS'
15620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15622 cross_compiling=$ac_cv_prog_cc_cross
15623
15624     
15625 fi
15626
15627   fi
15628   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15629
15630     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15631       for ac_func in _ldexpf
15632 do
15633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15634 echo "configure:15635: checking for $ac_func" >&5
15635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15636   echo $ac_n "(cached) $ac_c" 1>&6
15637 else
15638   cat > conftest.$ac_ext <<EOF
15639 #line 15640 "configure"
15640 #include "confdefs.h"
15641 /* System header to define __stub macros and hopefully few prototypes,
15642     which can conflict with char $ac_func(); below.  */
15643 #include <assert.h>
15644 /* Override any gcc2 internal prototype to avoid an error.  */
15645 /* We use char because int might match the return type of a gcc2
15646     builtin and then its argument prototype would still apply.  */
15647 char $ac_func();
15648
15649 int main() {
15650
15651 /* The GNU C library defines this for functions which it implements
15652     to always fail with ENOSYS.  Some functions are actually named
15653     something starting with __ and the normal name is an alias.  */
15654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15655 choke me
15656 #else
15657 $ac_func();
15658 #endif
15659
15660 ; return 0; }
15661 EOF
15662 if { (eval echo configure:15663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15663   rm -rf conftest*
15664   eval "ac_cv_func_$ac_func=yes"
15665 else
15666   echo "configure: failed program was:" >&5
15667   cat conftest.$ac_ext >&5
15668   rm -rf conftest*
15669   eval "ac_cv_func_$ac_func=no"
15670 fi
15671 rm -f conftest*
15672 fi
15673
15674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15675   echo "$ac_t""yes" 1>&6
15676     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15677   cat >> confdefs.h <<EOF
15678 #define $ac_tr_func 1
15679 EOF
15680  
15681 else
15682   echo "$ac_t""no" 1>&6
15683 fi
15684 done
15685     
15686     fi
15687   fi
15688
15689   
15690   
15691   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15692 echo "configure:15693: checking for logf declaration" >&5
15693   if test x${glibcpp_cv_func_logf_use+set} != xset; then
15694     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15695   echo $ac_n "(cached) $ac_c" 1>&6
15696 else
15697   
15698       
15699       ac_ext=C
15700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15701 ac_cpp='$CXXCPP $CPPFLAGS'
15702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15704 cross_compiling=$ac_cv_prog_cxx_cross
15705
15706       cat > conftest.$ac_ext <<EOF
15707 #line 15708 "configure"
15708 #include "confdefs.h"
15709 #include <math.h>
15710                       #ifdef HAVE_IEEEFP_H
15711                       #include <ieeefp.h>
15712                       #endif
15713                      
15714 int main() {
15715  logf(0);
15716 ; return 0; }
15717 EOF
15718 if { (eval echo configure:15719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15719   rm -rf conftest*
15720   glibcpp_cv_func_logf_use=yes
15721 else
15722   echo "configure: failed program was:" >&5
15723   cat conftest.$ac_ext >&5
15724   rm -rf conftest*
15725   glibcpp_cv_func_logf_use=no
15726 fi
15727 rm -f conftest*
15728       ac_ext=c
15729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15730 ac_cpp='$CPP $CPPFLAGS'
15731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15733 cross_compiling=$ac_cv_prog_cc_cross
15734
15735     
15736 fi
15737
15738   fi
15739   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15740
15741   if test x$glibcpp_cv_func_logf_use = x"yes"; then
15742     for ac_func in logf
15743 do
15744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15745 echo "configure:15746: checking for $ac_func" >&5
15746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15747   echo $ac_n "(cached) $ac_c" 1>&6
15748 else
15749   cat > conftest.$ac_ext <<EOF
15750 #line 15751 "configure"
15751 #include "confdefs.h"
15752 /* System header to define __stub macros and hopefully few prototypes,
15753     which can conflict with char $ac_func(); below.  */
15754 #include <assert.h>
15755 /* Override any gcc2 internal prototype to avoid an error.  */
15756 /* We use char because int might match the return type of a gcc2
15757     builtin and then its argument prototype would still apply.  */
15758 char $ac_func();
15759
15760 int main() {
15761
15762 /* The GNU C library defines this for functions which it implements
15763     to always fail with ENOSYS.  Some functions are actually named
15764     something starting with __ and the normal name is an alias.  */
15765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15766 choke me
15767 #else
15768 $ac_func();
15769 #endif
15770
15771 ; return 0; }
15772 EOF
15773 if { (eval echo configure:15774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15774   rm -rf conftest*
15775   eval "ac_cv_func_$ac_func=yes"
15776 else
15777   echo "configure: failed program was:" >&5
15778   cat conftest.$ac_ext >&5
15779   rm -rf conftest*
15780   eval "ac_cv_func_$ac_func=no"
15781 fi
15782 rm -f conftest*
15783 fi
15784
15785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15786   echo "$ac_t""yes" 1>&6
15787     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15788   cat >> confdefs.h <<EOF
15789 #define $ac_tr_func 1
15790 EOF
15791  
15792 else
15793   echo "$ac_t""no" 1>&6
15794 fi
15795 done
15796     
15797   else
15798     
15799   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15800 echo "configure:15801: checking for _logf declaration" >&5
15801   if test x${glibcpp_cv_func__logf_use+set} != xset; then
15802     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15803   echo $ac_n "(cached) $ac_c" 1>&6
15804 else
15805   
15806       
15807       ac_ext=C
15808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15809 ac_cpp='$CXXCPP $CPPFLAGS'
15810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15812 cross_compiling=$ac_cv_prog_cxx_cross
15813
15814       cat > conftest.$ac_ext <<EOF
15815 #line 15816 "configure"
15816 #include "confdefs.h"
15817 #include <math.h>
15818                       #ifdef HAVE_IEEEFP_H
15819                       #include <ieeefp.h>
15820                       #endif
15821                      
15822 int main() {
15823  _logf(0);
15824 ; return 0; }
15825 EOF
15826 if { (eval echo configure:15827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15827   rm -rf conftest*
15828   glibcpp_cv_func__logf_use=yes
15829 else
15830   echo "configure: failed program was:" >&5
15831   cat conftest.$ac_ext >&5
15832   rm -rf conftest*
15833   glibcpp_cv_func__logf_use=no
15834 fi
15835 rm -f conftest*
15836       ac_ext=c
15837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15838 ac_cpp='$CPP $CPPFLAGS'
15839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15841 cross_compiling=$ac_cv_prog_cc_cross
15842
15843     
15844 fi
15845
15846   fi
15847   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
15848
15849     if test x$glibcpp_cv_func__logf_use = x"yes"; then
15850       for ac_func in _logf
15851 do
15852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15853 echo "configure:15854: checking for $ac_func" >&5
15854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15855   echo $ac_n "(cached) $ac_c" 1>&6
15856 else
15857   cat > conftest.$ac_ext <<EOF
15858 #line 15859 "configure"
15859 #include "confdefs.h"
15860 /* System header to define __stub macros and hopefully few prototypes,
15861     which can conflict with char $ac_func(); below.  */
15862 #include <assert.h>
15863 /* Override any gcc2 internal prototype to avoid an error.  */
15864 /* We use char because int might match the return type of a gcc2
15865     builtin and then its argument prototype would still apply.  */
15866 char $ac_func();
15867
15868 int main() {
15869
15870 /* The GNU C library defines this for functions which it implements
15871     to always fail with ENOSYS.  Some functions are actually named
15872     something starting with __ and the normal name is an alias.  */
15873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15874 choke me
15875 #else
15876 $ac_func();
15877 #endif
15878
15879 ; return 0; }
15880 EOF
15881 if { (eval echo configure:15882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15882   rm -rf conftest*
15883   eval "ac_cv_func_$ac_func=yes"
15884 else
15885   echo "configure: failed program was:" >&5
15886   cat conftest.$ac_ext >&5
15887   rm -rf conftest*
15888   eval "ac_cv_func_$ac_func=no"
15889 fi
15890 rm -f conftest*
15891 fi
15892
15893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15894   echo "$ac_t""yes" 1>&6
15895     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15896   cat >> confdefs.h <<EOF
15897 #define $ac_tr_func 1
15898 EOF
15899  
15900 else
15901   echo "$ac_t""no" 1>&6
15902 fi
15903 done
15904     
15905     fi
15906   fi
15907
15908   
15909   
15910   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
15911 echo "configure:15912: checking for log10f declaration" >&5
15912   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
15913     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
15914   echo $ac_n "(cached) $ac_c" 1>&6
15915 else
15916   
15917       
15918       ac_ext=C
15919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15920 ac_cpp='$CXXCPP $CPPFLAGS'
15921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15923 cross_compiling=$ac_cv_prog_cxx_cross
15924
15925       cat > conftest.$ac_ext <<EOF
15926 #line 15927 "configure"
15927 #include "confdefs.h"
15928 #include <math.h>
15929                       #ifdef HAVE_IEEEFP_H
15930                       #include <ieeefp.h>
15931                       #endif
15932                      
15933 int main() {
15934  log10f(0);
15935 ; return 0; }
15936 EOF
15937 if { (eval echo configure:15938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15938   rm -rf conftest*
15939   glibcpp_cv_func_log10f_use=yes
15940 else
15941   echo "configure: failed program was:" >&5
15942   cat conftest.$ac_ext >&5
15943   rm -rf conftest*
15944   glibcpp_cv_func_log10f_use=no
15945 fi
15946 rm -f conftest*
15947       ac_ext=c
15948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15949 ac_cpp='$CPP $CPPFLAGS'
15950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15952 cross_compiling=$ac_cv_prog_cc_cross
15953
15954     
15955 fi
15956
15957   fi
15958   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15959
15960   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15961     for ac_func in log10f
15962 do
15963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15964 echo "configure:15965: checking for $ac_func" >&5
15965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15966   echo $ac_n "(cached) $ac_c" 1>&6
15967 else
15968   cat > conftest.$ac_ext <<EOF
15969 #line 15970 "configure"
15970 #include "confdefs.h"
15971 /* System header to define __stub macros and hopefully few prototypes,
15972     which can conflict with char $ac_func(); below.  */
15973 #include <assert.h>
15974 /* Override any gcc2 internal prototype to avoid an error.  */
15975 /* We use char because int might match the return type of a gcc2
15976     builtin and then its argument prototype would still apply.  */
15977 char $ac_func();
15978
15979 int main() {
15980
15981 /* The GNU C library defines this for functions which it implements
15982     to always fail with ENOSYS.  Some functions are actually named
15983     something starting with __ and the normal name is an alias.  */
15984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15985 choke me
15986 #else
15987 $ac_func();
15988 #endif
15989
15990 ; return 0; }
15991 EOF
15992 if { (eval echo configure:15993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15993   rm -rf conftest*
15994   eval "ac_cv_func_$ac_func=yes"
15995 else
15996   echo "configure: failed program was:" >&5
15997   cat conftest.$ac_ext >&5
15998   rm -rf conftest*
15999   eval "ac_cv_func_$ac_func=no"
16000 fi
16001 rm -f conftest*
16002 fi
16003
16004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16005   echo "$ac_t""yes" 1>&6
16006     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16007   cat >> confdefs.h <<EOF
16008 #define $ac_tr_func 1
16009 EOF
16010  
16011 else
16012   echo "$ac_t""no" 1>&6
16013 fi
16014 done
16015     
16016   else
16017     
16018   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16019 echo "configure:16020: checking for _log10f declaration" >&5
16020   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16021     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16022   echo $ac_n "(cached) $ac_c" 1>&6
16023 else
16024   
16025       
16026       ac_ext=C
16027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16028 ac_cpp='$CXXCPP $CPPFLAGS'
16029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16031 cross_compiling=$ac_cv_prog_cxx_cross
16032
16033       cat > conftest.$ac_ext <<EOF
16034 #line 16035 "configure"
16035 #include "confdefs.h"
16036 #include <math.h>
16037                       #ifdef HAVE_IEEEFP_H
16038                       #include <ieeefp.h>
16039                       #endif
16040                      
16041 int main() {
16042  _log10f(0);
16043 ; return 0; }
16044 EOF
16045 if { (eval echo configure:16046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16046   rm -rf conftest*
16047   glibcpp_cv_func__log10f_use=yes
16048 else
16049   echo "configure: failed program was:" >&5
16050   cat conftest.$ac_ext >&5
16051   rm -rf conftest*
16052   glibcpp_cv_func__log10f_use=no
16053 fi
16054 rm -f conftest*
16055       ac_ext=c
16056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16057 ac_cpp='$CPP $CPPFLAGS'
16058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16060 cross_compiling=$ac_cv_prog_cc_cross
16061
16062     
16063 fi
16064
16065   fi
16066   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16067
16068     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16069       for ac_func in _log10f
16070 do
16071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16072 echo "configure:16073: checking for $ac_func" >&5
16073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16074   echo $ac_n "(cached) $ac_c" 1>&6
16075 else
16076   cat > conftest.$ac_ext <<EOF
16077 #line 16078 "configure"
16078 #include "confdefs.h"
16079 /* System header to define __stub macros and hopefully few prototypes,
16080     which can conflict with char $ac_func(); below.  */
16081 #include <assert.h>
16082 /* Override any gcc2 internal prototype to avoid an error.  */
16083 /* We use char because int might match the return type of a gcc2
16084     builtin and then its argument prototype would still apply.  */
16085 char $ac_func();
16086
16087 int main() {
16088
16089 /* The GNU C library defines this for functions which it implements
16090     to always fail with ENOSYS.  Some functions are actually named
16091     something starting with __ and the normal name is an alias.  */
16092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16093 choke me
16094 #else
16095 $ac_func();
16096 #endif
16097
16098 ; return 0; }
16099 EOF
16100 if { (eval echo configure:16101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16101   rm -rf conftest*
16102   eval "ac_cv_func_$ac_func=yes"
16103 else
16104   echo "configure: failed program was:" >&5
16105   cat conftest.$ac_ext >&5
16106   rm -rf conftest*
16107   eval "ac_cv_func_$ac_func=no"
16108 fi
16109 rm -f conftest*
16110 fi
16111
16112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16113   echo "$ac_t""yes" 1>&6
16114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16115   cat >> confdefs.h <<EOF
16116 #define $ac_tr_func 1
16117 EOF
16118  
16119 else
16120   echo "$ac_t""no" 1>&6
16121 fi
16122 done
16123     
16124     fi
16125   fi
16126
16127   
16128   
16129   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16130 echo "configure:16131: checking for modff declaration" >&5
16131   if test x${glibcpp_cv_func_modff_use+set} != xset; then
16132     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16133   echo $ac_n "(cached) $ac_c" 1>&6
16134 else
16135   
16136       
16137       ac_ext=C
16138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16139 ac_cpp='$CXXCPP $CPPFLAGS'
16140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16142 cross_compiling=$ac_cv_prog_cxx_cross
16143
16144       cat > conftest.$ac_ext <<EOF
16145 #line 16146 "configure"
16146 #include "confdefs.h"
16147 #include <math.h>
16148 int main() {
16149  modff(0, 0);
16150 ; return 0; }
16151 EOF
16152 if { (eval echo configure:16153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16153   rm -rf conftest*
16154   glibcpp_cv_func_modff_use=yes
16155 else
16156   echo "configure: failed program was:" >&5
16157   cat conftest.$ac_ext >&5
16158   rm -rf conftest*
16159   glibcpp_cv_func_modff_use=no
16160 fi
16161 rm -f conftest*
16162       ac_ext=c
16163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16164 ac_cpp='$CPP $CPPFLAGS'
16165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16167 cross_compiling=$ac_cv_prog_cc_cross
16168
16169     
16170 fi
16171
16172   fi
16173   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16174
16175   if test x$glibcpp_cv_func_modff_use = x"yes"; then
16176     for ac_func in modff
16177 do
16178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16179 echo "configure:16180: checking for $ac_func" >&5
16180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16181   echo $ac_n "(cached) $ac_c" 1>&6
16182 else
16183   cat > conftest.$ac_ext <<EOF
16184 #line 16185 "configure"
16185 #include "confdefs.h"
16186 /* System header to define __stub macros and hopefully few prototypes,
16187     which can conflict with char $ac_func(); below.  */
16188 #include <assert.h>
16189 /* Override any gcc2 internal prototype to avoid an error.  */
16190 /* We use char because int might match the return type of a gcc2
16191     builtin and then its argument prototype would still apply.  */
16192 char $ac_func();
16193
16194 int main() {
16195
16196 /* The GNU C library defines this for functions which it implements
16197     to always fail with ENOSYS.  Some functions are actually named
16198     something starting with __ and the normal name is an alias.  */
16199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16200 choke me
16201 #else
16202 $ac_func();
16203 #endif
16204
16205 ; return 0; }
16206 EOF
16207 if { (eval echo configure:16208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16208   rm -rf conftest*
16209   eval "ac_cv_func_$ac_func=yes"
16210 else
16211   echo "configure: failed program was:" >&5
16212   cat conftest.$ac_ext >&5
16213   rm -rf conftest*
16214   eval "ac_cv_func_$ac_func=no"
16215 fi
16216 rm -f conftest*
16217 fi
16218
16219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16220   echo "$ac_t""yes" 1>&6
16221     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16222   cat >> confdefs.h <<EOF
16223 #define $ac_tr_func 1
16224 EOF
16225  
16226 else
16227   echo "$ac_t""no" 1>&6
16228 fi
16229 done
16230     
16231   else
16232     
16233   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16234 echo "configure:16235: checking for _modff declaration" >&5
16235   if test x${glibcpp_cv_func__modff_use+set} != xset; then
16236     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16237   echo $ac_n "(cached) $ac_c" 1>&6
16238 else
16239   
16240       
16241       ac_ext=C
16242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16243 ac_cpp='$CXXCPP $CPPFLAGS'
16244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16246 cross_compiling=$ac_cv_prog_cxx_cross
16247
16248       cat > conftest.$ac_ext <<EOF
16249 #line 16250 "configure"
16250 #include "confdefs.h"
16251 #include <math.h>
16252 int main() {
16253  _modff(0, 0);
16254 ; return 0; }
16255 EOF
16256 if { (eval echo configure:16257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16257   rm -rf conftest*
16258   glibcpp_cv_func__modff_use=yes
16259 else
16260   echo "configure: failed program was:" >&5
16261   cat conftest.$ac_ext >&5
16262   rm -rf conftest*
16263   glibcpp_cv_func__modff_use=no
16264 fi
16265 rm -f conftest*
16266       ac_ext=c
16267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16268 ac_cpp='$CPP $CPPFLAGS'
16269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16271 cross_compiling=$ac_cv_prog_cc_cross
16272
16273     
16274 fi
16275
16276   fi
16277   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16278
16279     if test x$glibcpp_cv_func__modff_use = x"yes"; then
16280       for ac_func in _modff
16281 do
16282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16283 echo "configure:16284: checking for $ac_func" >&5
16284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16285   echo $ac_n "(cached) $ac_c" 1>&6
16286 else
16287   cat > conftest.$ac_ext <<EOF
16288 #line 16289 "configure"
16289 #include "confdefs.h"
16290 /* System header to define __stub macros and hopefully few prototypes,
16291     which can conflict with char $ac_func(); below.  */
16292 #include <assert.h>
16293 /* Override any gcc2 internal prototype to avoid an error.  */
16294 /* We use char because int might match the return type of a gcc2
16295     builtin and then its argument prototype would still apply.  */
16296 char $ac_func();
16297
16298 int main() {
16299
16300 /* The GNU C library defines this for functions which it implements
16301     to always fail with ENOSYS.  Some functions are actually named
16302     something starting with __ and the normal name is an alias.  */
16303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16304 choke me
16305 #else
16306 $ac_func();
16307 #endif
16308
16309 ; return 0; }
16310 EOF
16311 if { (eval echo configure:16312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16312   rm -rf conftest*
16313   eval "ac_cv_func_$ac_func=yes"
16314 else
16315   echo "configure: failed program was:" >&5
16316   cat conftest.$ac_ext >&5
16317   rm -rf conftest*
16318   eval "ac_cv_func_$ac_func=no"
16319 fi
16320 rm -f conftest*
16321 fi
16322
16323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16324   echo "$ac_t""yes" 1>&6
16325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16326   cat >> confdefs.h <<EOF
16327 #define $ac_tr_func 1
16328 EOF
16329  
16330 else
16331   echo "$ac_t""no" 1>&6
16332 fi
16333 done
16334     
16335     fi
16336   fi
16337
16338   
16339   
16340   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16341 echo "configure:16342: checking for powf declaration" >&5
16342   if test x${glibcpp_cv_func_powf_use+set} != xset; then
16343     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16344   echo $ac_n "(cached) $ac_c" 1>&6
16345 else
16346   
16347       
16348       ac_ext=C
16349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16350 ac_cpp='$CXXCPP $CPPFLAGS'
16351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16353 cross_compiling=$ac_cv_prog_cxx_cross
16354
16355       cat > conftest.$ac_ext <<EOF
16356 #line 16357 "configure"
16357 #include "confdefs.h"
16358 #include <math.h>
16359 int main() {
16360  powf(0, 0);
16361 ; return 0; }
16362 EOF
16363 if { (eval echo configure:16364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16364   rm -rf conftest*
16365   glibcpp_cv_func_powf_use=yes
16366 else
16367   echo "configure: failed program was:" >&5
16368   cat conftest.$ac_ext >&5
16369   rm -rf conftest*
16370   glibcpp_cv_func_powf_use=no
16371 fi
16372 rm -f conftest*
16373       ac_ext=c
16374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16375 ac_cpp='$CPP $CPPFLAGS'
16376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16378 cross_compiling=$ac_cv_prog_cc_cross
16379
16380     
16381 fi
16382
16383   fi
16384   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16385
16386   if test x$glibcpp_cv_func_powf_use = x"yes"; then
16387     for ac_func in powf
16388 do
16389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16390 echo "configure:16391: checking for $ac_func" >&5
16391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16392   echo $ac_n "(cached) $ac_c" 1>&6
16393 else
16394   cat > conftest.$ac_ext <<EOF
16395 #line 16396 "configure"
16396 #include "confdefs.h"
16397 /* System header to define __stub macros and hopefully few prototypes,
16398     which can conflict with char $ac_func(); below.  */
16399 #include <assert.h>
16400 /* Override any gcc2 internal prototype to avoid an error.  */
16401 /* We use char because int might match the return type of a gcc2
16402     builtin and then its argument prototype would still apply.  */
16403 char $ac_func();
16404
16405 int main() {
16406
16407 /* The GNU C library defines this for functions which it implements
16408     to always fail with ENOSYS.  Some functions are actually named
16409     something starting with __ and the normal name is an alias.  */
16410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16411 choke me
16412 #else
16413 $ac_func();
16414 #endif
16415
16416 ; return 0; }
16417 EOF
16418 if { (eval echo configure:16419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16419   rm -rf conftest*
16420   eval "ac_cv_func_$ac_func=yes"
16421 else
16422   echo "configure: failed program was:" >&5
16423   cat conftest.$ac_ext >&5
16424   rm -rf conftest*
16425   eval "ac_cv_func_$ac_func=no"
16426 fi
16427 rm -f conftest*
16428 fi
16429
16430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16431   echo "$ac_t""yes" 1>&6
16432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16433   cat >> confdefs.h <<EOF
16434 #define $ac_tr_func 1
16435 EOF
16436  
16437 else
16438   echo "$ac_t""no" 1>&6
16439 fi
16440 done
16441     
16442   else
16443     
16444   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16445 echo "configure:16446: checking for _powf declaration" >&5
16446   if test x${glibcpp_cv_func__powf_use+set} != xset; then
16447     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16448   echo $ac_n "(cached) $ac_c" 1>&6
16449 else
16450   
16451       
16452       ac_ext=C
16453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16454 ac_cpp='$CXXCPP $CPPFLAGS'
16455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16457 cross_compiling=$ac_cv_prog_cxx_cross
16458
16459       cat > conftest.$ac_ext <<EOF
16460 #line 16461 "configure"
16461 #include "confdefs.h"
16462 #include <math.h>
16463 int main() {
16464  _powf(0, 0);
16465 ; return 0; }
16466 EOF
16467 if { (eval echo configure:16468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16468   rm -rf conftest*
16469   glibcpp_cv_func__powf_use=yes
16470 else
16471   echo "configure: failed program was:" >&5
16472   cat conftest.$ac_ext >&5
16473   rm -rf conftest*
16474   glibcpp_cv_func__powf_use=no
16475 fi
16476 rm -f conftest*
16477       ac_ext=c
16478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16479 ac_cpp='$CPP $CPPFLAGS'
16480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16482 cross_compiling=$ac_cv_prog_cc_cross
16483
16484     
16485 fi
16486
16487   fi
16488   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16489
16490     if test x$glibcpp_cv_func__powf_use = x"yes"; then
16491       for ac_func in _powf
16492 do
16493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16494 echo "configure:16495: checking for $ac_func" >&5
16495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16496   echo $ac_n "(cached) $ac_c" 1>&6
16497 else
16498   cat > conftest.$ac_ext <<EOF
16499 #line 16500 "configure"
16500 #include "confdefs.h"
16501 /* System header to define __stub macros and hopefully few prototypes,
16502     which can conflict with char $ac_func(); below.  */
16503 #include <assert.h>
16504 /* Override any gcc2 internal prototype to avoid an error.  */
16505 /* We use char because int might match the return type of a gcc2
16506     builtin and then its argument prototype would still apply.  */
16507 char $ac_func();
16508
16509 int main() {
16510
16511 /* The GNU C library defines this for functions which it implements
16512     to always fail with ENOSYS.  Some functions are actually named
16513     something starting with __ and the normal name is an alias.  */
16514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16515 choke me
16516 #else
16517 $ac_func();
16518 #endif
16519
16520 ; return 0; }
16521 EOF
16522 if { (eval echo configure:16523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16523   rm -rf conftest*
16524   eval "ac_cv_func_$ac_func=yes"
16525 else
16526   echo "configure: failed program was:" >&5
16527   cat conftest.$ac_ext >&5
16528   rm -rf conftest*
16529   eval "ac_cv_func_$ac_func=no"
16530 fi
16531 rm -f conftest*
16532 fi
16533
16534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16535   echo "$ac_t""yes" 1>&6
16536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16537   cat >> confdefs.h <<EOF
16538 #define $ac_tr_func 1
16539 EOF
16540  
16541 else
16542   echo "$ac_t""no" 1>&6
16543 fi
16544 done
16545     
16546     fi
16547   fi
16548
16549   
16550   
16551   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16552 echo "configure:16553: checking for sqrtf declaration" >&5
16553   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16554     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16555   echo $ac_n "(cached) $ac_c" 1>&6
16556 else
16557   
16558       
16559       ac_ext=C
16560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16561 ac_cpp='$CXXCPP $CPPFLAGS'
16562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16564 cross_compiling=$ac_cv_prog_cxx_cross
16565
16566       cat > conftest.$ac_ext <<EOF
16567 #line 16568 "configure"
16568 #include "confdefs.h"
16569 #include <math.h>
16570                       #ifdef HAVE_IEEEFP_H
16571                       #include <ieeefp.h>
16572                       #endif
16573                      
16574 int main() {
16575  sqrtf(0);
16576 ; return 0; }
16577 EOF
16578 if { (eval echo configure:16579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16579   rm -rf conftest*
16580   glibcpp_cv_func_sqrtf_use=yes
16581 else
16582   echo "configure: failed program was:" >&5
16583   cat conftest.$ac_ext >&5
16584   rm -rf conftest*
16585   glibcpp_cv_func_sqrtf_use=no
16586 fi
16587 rm -f conftest*
16588       ac_ext=c
16589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16590 ac_cpp='$CPP $CPPFLAGS'
16591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16593 cross_compiling=$ac_cv_prog_cc_cross
16594
16595     
16596 fi
16597
16598   fi
16599   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16600
16601   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16602     for ac_func in sqrtf
16603 do
16604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16605 echo "configure:16606: checking for $ac_func" >&5
16606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16607   echo $ac_n "(cached) $ac_c" 1>&6
16608 else
16609   cat > conftest.$ac_ext <<EOF
16610 #line 16611 "configure"
16611 #include "confdefs.h"
16612 /* System header to define __stub macros and hopefully few prototypes,
16613     which can conflict with char $ac_func(); below.  */
16614 #include <assert.h>
16615 /* Override any gcc2 internal prototype to avoid an error.  */
16616 /* We use char because int might match the return type of a gcc2
16617     builtin and then its argument prototype would still apply.  */
16618 char $ac_func();
16619
16620 int main() {
16621
16622 /* The GNU C library defines this for functions which it implements
16623     to always fail with ENOSYS.  Some functions are actually named
16624     something starting with __ and the normal name is an alias.  */
16625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16626 choke me
16627 #else
16628 $ac_func();
16629 #endif
16630
16631 ; return 0; }
16632 EOF
16633 if { (eval echo configure:16634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16634   rm -rf conftest*
16635   eval "ac_cv_func_$ac_func=yes"
16636 else
16637   echo "configure: failed program was:" >&5
16638   cat conftest.$ac_ext >&5
16639   rm -rf conftest*
16640   eval "ac_cv_func_$ac_func=no"
16641 fi
16642 rm -f conftest*
16643 fi
16644
16645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16646   echo "$ac_t""yes" 1>&6
16647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16648   cat >> confdefs.h <<EOF
16649 #define $ac_tr_func 1
16650 EOF
16651  
16652 else
16653   echo "$ac_t""no" 1>&6
16654 fi
16655 done
16656     
16657   else
16658     
16659   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16660 echo "configure:16661: checking for _sqrtf declaration" >&5
16661   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16662     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16663   echo $ac_n "(cached) $ac_c" 1>&6
16664 else
16665   
16666       
16667       ac_ext=C
16668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16669 ac_cpp='$CXXCPP $CPPFLAGS'
16670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16672 cross_compiling=$ac_cv_prog_cxx_cross
16673
16674       cat > conftest.$ac_ext <<EOF
16675 #line 16676 "configure"
16676 #include "confdefs.h"
16677 #include <math.h>
16678                       #ifdef HAVE_IEEEFP_H
16679                       #include <ieeefp.h>
16680                       #endif
16681                      
16682 int main() {
16683  _sqrtf(0);
16684 ; return 0; }
16685 EOF
16686 if { (eval echo configure:16687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16687   rm -rf conftest*
16688   glibcpp_cv_func__sqrtf_use=yes
16689 else
16690   echo "configure: failed program was:" >&5
16691   cat conftest.$ac_ext >&5
16692   rm -rf conftest*
16693   glibcpp_cv_func__sqrtf_use=no
16694 fi
16695 rm -f conftest*
16696       ac_ext=c
16697 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16698 ac_cpp='$CPP $CPPFLAGS'
16699 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16700 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16701 cross_compiling=$ac_cv_prog_cc_cross
16702
16703     
16704 fi
16705
16706   fi
16707   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16708
16709     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16710       for ac_func in _sqrtf
16711 do
16712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16713 echo "configure:16714: checking for $ac_func" >&5
16714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16715   echo $ac_n "(cached) $ac_c" 1>&6
16716 else
16717   cat > conftest.$ac_ext <<EOF
16718 #line 16719 "configure"
16719 #include "confdefs.h"
16720 /* System header to define __stub macros and hopefully few prototypes,
16721     which can conflict with char $ac_func(); below.  */
16722 #include <assert.h>
16723 /* Override any gcc2 internal prototype to avoid an error.  */
16724 /* We use char because int might match the return type of a gcc2
16725     builtin and then its argument prototype would still apply.  */
16726 char $ac_func();
16727
16728 int main() {
16729
16730 /* The GNU C library defines this for functions which it implements
16731     to always fail with ENOSYS.  Some functions are actually named
16732     something starting with __ and the normal name is an alias.  */
16733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16734 choke me
16735 #else
16736 $ac_func();
16737 #endif
16738
16739 ; return 0; }
16740 EOF
16741 if { (eval echo configure:16742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16742   rm -rf conftest*
16743   eval "ac_cv_func_$ac_func=yes"
16744 else
16745   echo "configure: failed program was:" >&5
16746   cat conftest.$ac_ext >&5
16747   rm -rf conftest*
16748   eval "ac_cv_func_$ac_func=no"
16749 fi
16750 rm -f conftest*
16751 fi
16752
16753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16754   echo "$ac_t""yes" 1>&6
16755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16756   cat >> confdefs.h <<EOF
16757 #define $ac_tr_func 1
16758 EOF
16759  
16760 else
16761   echo "$ac_t""no" 1>&6
16762 fi
16763 done
16764     
16765     fi
16766   fi
16767
16768   
16769   
16770   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16771 echo "configure:16772: checking for sincosf declaration" >&5
16772   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16773     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16774   echo $ac_n "(cached) $ac_c" 1>&6
16775 else
16776   
16777       
16778       ac_ext=C
16779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16780 ac_cpp='$CXXCPP $CPPFLAGS'
16781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16783 cross_compiling=$ac_cv_prog_cxx_cross
16784
16785       cat > conftest.$ac_ext <<EOF
16786 #line 16787 "configure"
16787 #include "confdefs.h"
16788 #include <math.h>
16789 int main() {
16790  sincosf(0, 0, 0);
16791 ; return 0; }
16792 EOF
16793 if { (eval echo configure:16794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16794   rm -rf conftest*
16795   glibcpp_cv_func_sincosf_use=yes
16796 else
16797   echo "configure: failed program was:" >&5
16798   cat conftest.$ac_ext >&5
16799   rm -rf conftest*
16800   glibcpp_cv_func_sincosf_use=no
16801 fi
16802 rm -f conftest*
16803       ac_ext=c
16804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16805 ac_cpp='$CPP $CPPFLAGS'
16806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16808 cross_compiling=$ac_cv_prog_cc_cross
16809
16810     
16811 fi
16812
16813   fi
16814   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
16815
16816   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
16817     for ac_func in sincosf
16818 do
16819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16820 echo "configure:16821: checking for $ac_func" >&5
16821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16822   echo $ac_n "(cached) $ac_c" 1>&6
16823 else
16824   cat > conftest.$ac_ext <<EOF
16825 #line 16826 "configure"
16826 #include "confdefs.h"
16827 /* System header to define __stub macros and hopefully few prototypes,
16828     which can conflict with char $ac_func(); below.  */
16829 #include <assert.h>
16830 /* Override any gcc2 internal prototype to avoid an error.  */
16831 /* We use char because int might match the return type of a gcc2
16832     builtin and then its argument prototype would still apply.  */
16833 char $ac_func();
16834
16835 int main() {
16836
16837 /* The GNU C library defines this for functions which it implements
16838     to always fail with ENOSYS.  Some functions are actually named
16839     something starting with __ and the normal name is an alias.  */
16840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16841 choke me
16842 #else
16843 $ac_func();
16844 #endif
16845
16846 ; return 0; }
16847 EOF
16848 if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16849   rm -rf conftest*
16850   eval "ac_cv_func_$ac_func=yes"
16851 else
16852   echo "configure: failed program was:" >&5
16853   cat conftest.$ac_ext >&5
16854   rm -rf conftest*
16855   eval "ac_cv_func_$ac_func=no"
16856 fi
16857 rm -f conftest*
16858 fi
16859
16860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16861   echo "$ac_t""yes" 1>&6
16862     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16863   cat >> confdefs.h <<EOF
16864 #define $ac_tr_func 1
16865 EOF
16866  
16867 else
16868   echo "$ac_t""no" 1>&6
16869 fi
16870 done
16871     
16872   else
16873     
16874   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
16875 echo "configure:16876: checking for _sincosf declaration" >&5
16876   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
16877     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
16878   echo $ac_n "(cached) $ac_c" 1>&6
16879 else
16880   
16881       
16882       ac_ext=C
16883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16884 ac_cpp='$CXXCPP $CPPFLAGS'
16885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16887 cross_compiling=$ac_cv_prog_cxx_cross
16888
16889       cat > conftest.$ac_ext <<EOF
16890 #line 16891 "configure"
16891 #include "confdefs.h"
16892 #include <math.h>
16893 int main() {
16894  _sincosf(0, 0, 0);
16895 ; return 0; }
16896 EOF
16897 if { (eval echo configure:16898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16898   rm -rf conftest*
16899   glibcpp_cv_func__sincosf_use=yes
16900 else
16901   echo "configure: failed program was:" >&5
16902   cat conftest.$ac_ext >&5
16903   rm -rf conftest*
16904   glibcpp_cv_func__sincosf_use=no
16905 fi
16906 rm -f conftest*
16907       ac_ext=c
16908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16909 ac_cpp='$CPP $CPPFLAGS'
16910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16912 cross_compiling=$ac_cv_prog_cc_cross
16913
16914     
16915 fi
16916
16917   fi
16918   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
16919
16920     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
16921       for ac_func in _sincosf
16922 do
16923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16924 echo "configure:16925: checking for $ac_func" >&5
16925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16926   echo $ac_n "(cached) $ac_c" 1>&6
16927 else
16928   cat > conftest.$ac_ext <<EOF
16929 #line 16930 "configure"
16930 #include "confdefs.h"
16931 /* System header to define __stub macros and hopefully few prototypes,
16932     which can conflict with char $ac_func(); below.  */
16933 #include <assert.h>
16934 /* Override any gcc2 internal prototype to avoid an error.  */
16935 /* We use char because int might match the return type of a gcc2
16936     builtin and then its argument prototype would still apply.  */
16937 char $ac_func();
16938
16939 int main() {
16940
16941 /* The GNU C library defines this for functions which it implements
16942     to always fail with ENOSYS.  Some functions are actually named
16943     something starting with __ and the normal name is an alias.  */
16944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16945 choke me
16946 #else
16947 $ac_func();
16948 #endif
16949
16950 ; return 0; }
16951 EOF
16952 if { (eval echo configure:16953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16953   rm -rf conftest*
16954   eval "ac_cv_func_$ac_func=yes"
16955 else
16956   echo "configure: failed program was:" >&5
16957   cat conftest.$ac_ext >&5
16958   rm -rf conftest*
16959   eval "ac_cv_func_$ac_func=no"
16960 fi
16961 rm -f conftest*
16962 fi
16963
16964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16965   echo "$ac_t""yes" 1>&6
16966     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16967   cat >> confdefs.h <<EOF
16968 #define $ac_tr_func 1
16969 EOF
16970  
16971 else
16972   echo "$ac_t""no" 1>&6
16973 fi
16974 done
16975     
16976     fi
16977   fi
16978
16979   
16980   
16981   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16982 echo "configure:16983: checking for finitef declaration" >&5
16983   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16984     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16985   echo $ac_n "(cached) $ac_c" 1>&6
16986 else
16987   
16988       
16989       ac_ext=C
16990 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16991 ac_cpp='$CXXCPP $CPPFLAGS'
16992 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16993 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16994 cross_compiling=$ac_cv_prog_cxx_cross
16995
16996       cat > conftest.$ac_ext <<EOF
16997 #line 16998 "configure"
16998 #include "confdefs.h"
16999 #include <math.h>
17000                       #ifdef HAVE_IEEEFP_H
17001                       #include <ieeefp.h>
17002                       #endif
17003                      
17004 int main() {
17005  finitef(0);
17006 ; return 0; }
17007 EOF
17008 if { (eval echo configure:17009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17009   rm -rf conftest*
17010   glibcpp_cv_func_finitef_use=yes
17011 else
17012   echo "configure: failed program was:" >&5
17013   cat conftest.$ac_ext >&5
17014   rm -rf conftest*
17015   glibcpp_cv_func_finitef_use=no
17016 fi
17017 rm -f conftest*
17018       ac_ext=c
17019 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17020 ac_cpp='$CPP $CPPFLAGS'
17021 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17022 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17023 cross_compiling=$ac_cv_prog_cc_cross
17024
17025     
17026 fi
17027
17028   fi
17029   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17030
17031   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17032     for ac_func in finitef
17033 do
17034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17035 echo "configure:17036: checking for $ac_func" >&5
17036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17037   echo $ac_n "(cached) $ac_c" 1>&6
17038 else
17039   cat > conftest.$ac_ext <<EOF
17040 #line 17041 "configure"
17041 #include "confdefs.h"
17042 /* System header to define __stub macros and hopefully few prototypes,
17043     which can conflict with char $ac_func(); below.  */
17044 #include <assert.h>
17045 /* Override any gcc2 internal prototype to avoid an error.  */
17046 /* We use char because int might match the return type of a gcc2
17047     builtin and then its argument prototype would still apply.  */
17048 char $ac_func();
17049
17050 int main() {
17051
17052 /* The GNU C library defines this for functions which it implements
17053     to always fail with ENOSYS.  Some functions are actually named
17054     something starting with __ and the normal name is an alias.  */
17055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17056 choke me
17057 #else
17058 $ac_func();
17059 #endif
17060
17061 ; return 0; }
17062 EOF
17063 if { (eval echo configure:17064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17064   rm -rf conftest*
17065   eval "ac_cv_func_$ac_func=yes"
17066 else
17067   echo "configure: failed program was:" >&5
17068   cat conftest.$ac_ext >&5
17069   rm -rf conftest*
17070   eval "ac_cv_func_$ac_func=no"
17071 fi
17072 rm -f conftest*
17073 fi
17074
17075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17076   echo "$ac_t""yes" 1>&6
17077     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17078   cat >> confdefs.h <<EOF
17079 #define $ac_tr_func 1
17080 EOF
17081  
17082 else
17083   echo "$ac_t""no" 1>&6
17084 fi
17085 done
17086     
17087   else
17088     
17089   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17090 echo "configure:17091: checking for _finitef declaration" >&5
17091   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17092     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17093   echo $ac_n "(cached) $ac_c" 1>&6
17094 else
17095   
17096       
17097       ac_ext=C
17098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17099 ac_cpp='$CXXCPP $CPPFLAGS'
17100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17102 cross_compiling=$ac_cv_prog_cxx_cross
17103
17104       cat > conftest.$ac_ext <<EOF
17105 #line 17106 "configure"
17106 #include "confdefs.h"
17107 #include <math.h>
17108                       #ifdef HAVE_IEEEFP_H
17109                       #include <ieeefp.h>
17110                       #endif
17111                      
17112 int main() {
17113  _finitef(0);
17114 ; return 0; }
17115 EOF
17116 if { (eval echo configure:17117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17117   rm -rf conftest*
17118   glibcpp_cv_func__finitef_use=yes
17119 else
17120   echo "configure: failed program was:" >&5
17121   cat conftest.$ac_ext >&5
17122   rm -rf conftest*
17123   glibcpp_cv_func__finitef_use=no
17124 fi
17125 rm -f conftest*
17126       ac_ext=c
17127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17128 ac_cpp='$CPP $CPPFLAGS'
17129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17131 cross_compiling=$ac_cv_prog_cc_cross
17132
17133     
17134 fi
17135
17136   fi
17137   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17138
17139     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17140       for ac_func in _finitef
17141 do
17142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17143 echo "configure:17144: checking for $ac_func" >&5
17144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17145   echo $ac_n "(cached) $ac_c" 1>&6
17146 else
17147   cat > conftest.$ac_ext <<EOF
17148 #line 17149 "configure"
17149 #include "confdefs.h"
17150 /* System header to define __stub macros and hopefully few prototypes,
17151     which can conflict with char $ac_func(); below.  */
17152 #include <assert.h>
17153 /* Override any gcc2 internal prototype to avoid an error.  */
17154 /* We use char because int might match the return type of a gcc2
17155     builtin and then its argument prototype would still apply.  */
17156 char $ac_func();
17157
17158 int main() {
17159
17160 /* The GNU C library defines this for functions which it implements
17161     to always fail with ENOSYS.  Some functions are actually named
17162     something starting with __ and the normal name is an alias.  */
17163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17164 choke me
17165 #else
17166 $ac_func();
17167 #endif
17168
17169 ; return 0; }
17170 EOF
17171 if { (eval echo configure:17172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17172   rm -rf conftest*
17173   eval "ac_cv_func_$ac_func=yes"
17174 else
17175   echo "configure: failed program was:" >&5
17176   cat conftest.$ac_ext >&5
17177   rm -rf conftest*
17178   eval "ac_cv_func_$ac_func=no"
17179 fi
17180 rm -f conftest*
17181 fi
17182
17183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17184   echo "$ac_t""yes" 1>&6
17185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17186   cat >> confdefs.h <<EOF
17187 #define $ac_tr_func 1
17188 EOF
17189  
17190 else
17191   echo "$ac_t""no" 1>&6
17192 fi
17193 done
17194     
17195     fi
17196   fi
17197
17198
17199     
17200   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17201 echo "configure:17202: checking for long double trig functions" >&5
17202   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17203   echo $ac_n "(cached) $ac_c" 1>&6
17204 else
17205   
17206     
17207     ac_ext=C
17208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17209 ac_cpp='$CXXCPP $CPPFLAGS'
17210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17212 cross_compiling=$ac_cv_prog_cxx_cross
17213
17214     cat > conftest.$ac_ext <<EOF
17215 #line 17216 "configure"
17216 #include "confdefs.h"
17217 #include <math.h>
17218 int main() {
17219  `for x in acosl asinl atanl \
17220                                           cosl sinl tanl \
17221                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
17222 ; return 0; }
17223 EOF
17224 if { (eval echo configure:17225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17225   rm -rf conftest*
17226   glibcpp_cv_func_long_double_trig_use=yes
17227 else
17228   echo "configure: failed program was:" >&5
17229   cat conftest.$ac_ext >&5
17230   rm -rf conftest*
17231   glibcpp_cv_func_long_double_trig_use=no
17232 fi
17233 rm -f conftest*
17234     ac_ext=c
17235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17236 ac_cpp='$CPP $CPPFLAGS'
17237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17239 cross_compiling=$ac_cv_prog_cc_cross
17240
17241 fi
17242
17243   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17244   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17245     for ac_func in acosl asinl atanl \
17246                                           cosl sinl tanl \
17247                                           coshl sinhl tanhl
17248 do
17249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17250 echo "configure:17251: checking for $ac_func" >&5
17251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17252   echo $ac_n "(cached) $ac_c" 1>&6
17253 else
17254   cat > conftest.$ac_ext <<EOF
17255 #line 17256 "configure"
17256 #include "confdefs.h"
17257 /* System header to define __stub macros and hopefully few prototypes,
17258     which can conflict with char $ac_func(); below.  */
17259 #include <assert.h>
17260 /* Override any gcc2 internal prototype to avoid an error.  */
17261 /* We use char because int might match the return type of a gcc2
17262     builtin and then its argument prototype would still apply.  */
17263 char $ac_func();
17264
17265 int main() {
17266
17267 /* The GNU C library defines this for functions which it implements
17268     to always fail with ENOSYS.  Some functions are actually named
17269     something starting with __ and the normal name is an alias.  */
17270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17271 choke me
17272 #else
17273 $ac_func();
17274 #endif
17275
17276 ; return 0; }
17277 EOF
17278 if { (eval echo configure:17279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17279   rm -rf conftest*
17280   eval "ac_cv_func_$ac_func=yes"
17281 else
17282   echo "configure: failed program was:" >&5
17283   cat conftest.$ac_ext >&5
17284   rm -rf conftest*
17285   eval "ac_cv_func_$ac_func=no"
17286 fi
17287 rm -f conftest*
17288 fi
17289
17290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17291   echo "$ac_t""yes" 1>&6
17292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17293   cat >> confdefs.h <<EOF
17294 #define $ac_tr_func 1
17295 EOF
17296  
17297 else
17298   echo "$ac_t""no" 1>&6
17299 fi
17300 done
17301
17302   fi
17303
17304   
17305   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17306 echo "configure:17307: checking for long double round functions" >&5
17307   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17308   echo $ac_n "(cached) $ac_c" 1>&6
17309 else
17310   
17311     
17312     ac_ext=C
17313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17314 ac_cpp='$CXXCPP $CPPFLAGS'
17315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17317 cross_compiling=$ac_cv_prog_cxx_cross
17318
17319     cat > conftest.$ac_ext <<EOF
17320 #line 17321 "configure"
17321 #include "confdefs.h"
17322 #include <math.h>
17323 int main() {
17324  `for x in ceill floorl; do echo "$x (0);"; done` 
17325 ; return 0; }
17326 EOF
17327 if { (eval echo configure:17328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17328   rm -rf conftest*
17329   glibcpp_cv_func_long_double_round_use=yes
17330 else
17331   echo "configure: failed program was:" >&5
17332   cat conftest.$ac_ext >&5
17333   rm -rf conftest*
17334   glibcpp_cv_func_long_double_round_use=no
17335 fi
17336 rm -f conftest*
17337     ac_ext=c
17338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17339 ac_cpp='$CPP $CPPFLAGS'
17340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17342 cross_compiling=$ac_cv_prog_cc_cross
17343
17344 fi
17345
17346   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17347   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17348     for ac_func in ceill floorl
17349 do
17350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17351 echo "configure:17352: checking for $ac_func" >&5
17352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17353   echo $ac_n "(cached) $ac_c" 1>&6
17354 else
17355   cat > conftest.$ac_ext <<EOF
17356 #line 17357 "configure"
17357 #include "confdefs.h"
17358 /* System header to define __stub macros and hopefully few prototypes,
17359     which can conflict with char $ac_func(); below.  */
17360 #include <assert.h>
17361 /* Override any gcc2 internal prototype to avoid an error.  */
17362 /* We use char because int might match the return type of a gcc2
17363     builtin and then its argument prototype would still apply.  */
17364 char $ac_func();
17365
17366 int main() {
17367
17368 /* The GNU C library defines this for functions which it implements
17369     to always fail with ENOSYS.  Some functions are actually named
17370     something starting with __ and the normal name is an alias.  */
17371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17372 choke me
17373 #else
17374 $ac_func();
17375 #endif
17376
17377 ; return 0; }
17378 EOF
17379 if { (eval echo configure:17380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17380   rm -rf conftest*
17381   eval "ac_cv_func_$ac_func=yes"
17382 else
17383   echo "configure: failed program was:" >&5
17384   cat conftest.$ac_ext >&5
17385   rm -rf conftest*
17386   eval "ac_cv_func_$ac_func=no"
17387 fi
17388 rm -f conftest*
17389 fi
17390
17391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17392   echo "$ac_t""yes" 1>&6
17393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17394   cat >> confdefs.h <<EOF
17395 #define $ac_tr_func 1
17396 EOF
17397  
17398 else
17399   echo "$ac_t""no" 1>&6
17400 fi
17401 done
17402
17403   fi
17404
17405   
17406   
17407   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17408 echo "configure:17409: checking for isnanl declaration" >&5
17409   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17410     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17411   echo $ac_n "(cached) $ac_c" 1>&6
17412 else
17413   
17414       
17415       ac_ext=C
17416 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17417 ac_cpp='$CXXCPP $CPPFLAGS'
17418 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17419 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17420 cross_compiling=$ac_cv_prog_cxx_cross
17421
17422       cat > conftest.$ac_ext <<EOF
17423 #line 17424 "configure"
17424 #include "confdefs.h"
17425 #include <math.h>
17426                       #ifdef HAVE_IEEEFP_H
17427                       #include <ieeefp.h>
17428                       #endif
17429                      
17430 int main() {
17431  isnanl(0);
17432 ; return 0; }
17433 EOF
17434 if { (eval echo configure:17435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17435   rm -rf conftest*
17436   glibcpp_cv_func_isnanl_use=yes
17437 else
17438   echo "configure: failed program was:" >&5
17439   cat conftest.$ac_ext >&5
17440   rm -rf conftest*
17441   glibcpp_cv_func_isnanl_use=no
17442 fi
17443 rm -f conftest*
17444       ac_ext=c
17445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17446 ac_cpp='$CPP $CPPFLAGS'
17447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17449 cross_compiling=$ac_cv_prog_cc_cross
17450
17451     
17452 fi
17453
17454   fi
17455   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17456
17457   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17458     for ac_func in isnanl
17459 do
17460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17461 echo "configure:17462: checking for $ac_func" >&5
17462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17463   echo $ac_n "(cached) $ac_c" 1>&6
17464 else
17465   cat > conftest.$ac_ext <<EOF
17466 #line 17467 "configure"
17467 #include "confdefs.h"
17468 /* System header to define __stub macros and hopefully few prototypes,
17469     which can conflict with char $ac_func(); below.  */
17470 #include <assert.h>
17471 /* Override any gcc2 internal prototype to avoid an error.  */
17472 /* We use char because int might match the return type of a gcc2
17473     builtin and then its argument prototype would still apply.  */
17474 char $ac_func();
17475
17476 int main() {
17477
17478 /* The GNU C library defines this for functions which it implements
17479     to always fail with ENOSYS.  Some functions are actually named
17480     something starting with __ and the normal name is an alias.  */
17481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17482 choke me
17483 #else
17484 $ac_func();
17485 #endif
17486
17487 ; return 0; }
17488 EOF
17489 if { (eval echo configure:17490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17490   rm -rf conftest*
17491   eval "ac_cv_func_$ac_func=yes"
17492 else
17493   echo "configure: failed program was:" >&5
17494   cat conftest.$ac_ext >&5
17495   rm -rf conftest*
17496   eval "ac_cv_func_$ac_func=no"
17497 fi
17498 rm -f conftest*
17499 fi
17500
17501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17502   echo "$ac_t""yes" 1>&6
17503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17504   cat >> confdefs.h <<EOF
17505 #define $ac_tr_func 1
17506 EOF
17507  
17508 else
17509   echo "$ac_t""no" 1>&6
17510 fi
17511 done
17512     
17513   else
17514     
17515   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17516 echo "configure:17517: checking for _isnanl declaration" >&5
17517   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17518     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17519   echo $ac_n "(cached) $ac_c" 1>&6
17520 else
17521   
17522       
17523       ac_ext=C
17524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17525 ac_cpp='$CXXCPP $CPPFLAGS'
17526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17528 cross_compiling=$ac_cv_prog_cxx_cross
17529
17530       cat > conftest.$ac_ext <<EOF
17531 #line 17532 "configure"
17532 #include "confdefs.h"
17533 #include <math.h>
17534                       #ifdef HAVE_IEEEFP_H
17535                       #include <ieeefp.h>
17536                       #endif
17537                      
17538 int main() {
17539  _isnanl(0);
17540 ; return 0; }
17541 EOF
17542 if { (eval echo configure:17543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17543   rm -rf conftest*
17544   glibcpp_cv_func__isnanl_use=yes
17545 else
17546   echo "configure: failed program was:" >&5
17547   cat conftest.$ac_ext >&5
17548   rm -rf conftest*
17549   glibcpp_cv_func__isnanl_use=no
17550 fi
17551 rm -f conftest*
17552       ac_ext=c
17553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17554 ac_cpp='$CPP $CPPFLAGS'
17555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17557 cross_compiling=$ac_cv_prog_cc_cross
17558
17559     
17560 fi
17561
17562   fi
17563   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17564
17565     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17566       for ac_func in _isnanl
17567 do
17568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17569 echo "configure:17570: checking for $ac_func" >&5
17570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17571   echo $ac_n "(cached) $ac_c" 1>&6
17572 else
17573   cat > conftest.$ac_ext <<EOF
17574 #line 17575 "configure"
17575 #include "confdefs.h"
17576 /* System header to define __stub macros and hopefully few prototypes,
17577     which can conflict with char $ac_func(); below.  */
17578 #include <assert.h>
17579 /* Override any gcc2 internal prototype to avoid an error.  */
17580 /* We use char because int might match the return type of a gcc2
17581     builtin and then its argument prototype would still apply.  */
17582 char $ac_func();
17583
17584 int main() {
17585
17586 /* The GNU C library defines this for functions which it implements
17587     to always fail with ENOSYS.  Some functions are actually named
17588     something starting with __ and the normal name is an alias.  */
17589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17590 choke me
17591 #else
17592 $ac_func();
17593 #endif
17594
17595 ; return 0; }
17596 EOF
17597 if { (eval echo configure:17598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17598   rm -rf conftest*
17599   eval "ac_cv_func_$ac_func=yes"
17600 else
17601   echo "configure: failed program was:" >&5
17602   cat conftest.$ac_ext >&5
17603   rm -rf conftest*
17604   eval "ac_cv_func_$ac_func=no"
17605 fi
17606 rm -f conftest*
17607 fi
17608
17609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17610   echo "$ac_t""yes" 1>&6
17611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17612   cat >> confdefs.h <<EOF
17613 #define $ac_tr_func 1
17614 EOF
17615  
17616 else
17617   echo "$ac_t""no" 1>&6
17618 fi
17619 done
17620     
17621     fi
17622   fi
17623
17624   
17625   
17626   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17627 echo "configure:17628: checking for isinfl declaration" >&5
17628   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17629     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17630   echo $ac_n "(cached) $ac_c" 1>&6
17631 else
17632   
17633       
17634       ac_ext=C
17635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17636 ac_cpp='$CXXCPP $CPPFLAGS'
17637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17639 cross_compiling=$ac_cv_prog_cxx_cross
17640
17641       cat > conftest.$ac_ext <<EOF
17642 #line 17643 "configure"
17643 #include "confdefs.h"
17644 #include <math.h>
17645                       #ifdef HAVE_IEEEFP_H
17646                       #include <ieeefp.h>
17647                       #endif
17648                      
17649 int main() {
17650  isinfl(0);
17651 ; return 0; }
17652 EOF
17653 if { (eval echo configure:17654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17654   rm -rf conftest*
17655   glibcpp_cv_func_isinfl_use=yes
17656 else
17657   echo "configure: failed program was:" >&5
17658   cat conftest.$ac_ext >&5
17659   rm -rf conftest*
17660   glibcpp_cv_func_isinfl_use=no
17661 fi
17662 rm -f conftest*
17663       ac_ext=c
17664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17668 cross_compiling=$ac_cv_prog_cc_cross
17669
17670     
17671 fi
17672
17673   fi
17674   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17675
17676   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17677     for ac_func in isinfl
17678 do
17679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17680 echo "configure:17681: checking for $ac_func" >&5
17681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17682   echo $ac_n "(cached) $ac_c" 1>&6
17683 else
17684   cat > conftest.$ac_ext <<EOF
17685 #line 17686 "configure"
17686 #include "confdefs.h"
17687 /* System header to define __stub macros and hopefully few prototypes,
17688     which can conflict with char $ac_func(); below.  */
17689 #include <assert.h>
17690 /* Override any gcc2 internal prototype to avoid an error.  */
17691 /* We use char because int might match the return type of a gcc2
17692     builtin and then its argument prototype would still apply.  */
17693 char $ac_func();
17694
17695 int main() {
17696
17697 /* The GNU C library defines this for functions which it implements
17698     to always fail with ENOSYS.  Some functions are actually named
17699     something starting with __ and the normal name is an alias.  */
17700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17701 choke me
17702 #else
17703 $ac_func();
17704 #endif
17705
17706 ; return 0; }
17707 EOF
17708 if { (eval echo configure:17709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17709   rm -rf conftest*
17710   eval "ac_cv_func_$ac_func=yes"
17711 else
17712   echo "configure: failed program was:" >&5
17713   cat conftest.$ac_ext >&5
17714   rm -rf conftest*
17715   eval "ac_cv_func_$ac_func=no"
17716 fi
17717 rm -f conftest*
17718 fi
17719
17720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17721   echo "$ac_t""yes" 1>&6
17722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17723   cat >> confdefs.h <<EOF
17724 #define $ac_tr_func 1
17725 EOF
17726  
17727 else
17728   echo "$ac_t""no" 1>&6
17729 fi
17730 done
17731     
17732   else
17733     
17734   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17735 echo "configure:17736: checking for _isinfl declaration" >&5
17736   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17737     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17738   echo $ac_n "(cached) $ac_c" 1>&6
17739 else
17740   
17741       
17742       ac_ext=C
17743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17744 ac_cpp='$CXXCPP $CPPFLAGS'
17745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17747 cross_compiling=$ac_cv_prog_cxx_cross
17748
17749       cat > conftest.$ac_ext <<EOF
17750 #line 17751 "configure"
17751 #include "confdefs.h"
17752 #include <math.h>
17753                       #ifdef HAVE_IEEEFP_H
17754                       #include <ieeefp.h>
17755                       #endif
17756                      
17757 int main() {
17758  _isinfl(0);
17759 ; return 0; }
17760 EOF
17761 if { (eval echo configure:17762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17762   rm -rf conftest*
17763   glibcpp_cv_func__isinfl_use=yes
17764 else
17765   echo "configure: failed program was:" >&5
17766   cat conftest.$ac_ext >&5
17767   rm -rf conftest*
17768   glibcpp_cv_func__isinfl_use=no
17769 fi
17770 rm -f conftest*
17771       ac_ext=c
17772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17773 ac_cpp='$CPP $CPPFLAGS'
17774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17776 cross_compiling=$ac_cv_prog_cc_cross
17777
17778     
17779 fi
17780
17781   fi
17782   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17783
17784     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17785       for ac_func in _isinfl
17786 do
17787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17788 echo "configure:17789: checking for $ac_func" >&5
17789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17790   echo $ac_n "(cached) $ac_c" 1>&6
17791 else
17792   cat > conftest.$ac_ext <<EOF
17793 #line 17794 "configure"
17794 #include "confdefs.h"
17795 /* System header to define __stub macros and hopefully few prototypes,
17796     which can conflict with char $ac_func(); below.  */
17797 #include <assert.h>
17798 /* Override any gcc2 internal prototype to avoid an error.  */
17799 /* We use char because int might match the return type of a gcc2
17800     builtin and then its argument prototype would still apply.  */
17801 char $ac_func();
17802
17803 int main() {
17804
17805 /* The GNU C library defines this for functions which it implements
17806     to always fail with ENOSYS.  Some functions are actually named
17807     something starting with __ and the normal name is an alias.  */
17808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17809 choke me
17810 #else
17811 $ac_func();
17812 #endif
17813
17814 ; return 0; }
17815 EOF
17816 if { (eval echo configure:17817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17817   rm -rf conftest*
17818   eval "ac_cv_func_$ac_func=yes"
17819 else
17820   echo "configure: failed program was:" >&5
17821   cat conftest.$ac_ext >&5
17822   rm -rf conftest*
17823   eval "ac_cv_func_$ac_func=no"
17824 fi
17825 rm -f conftest*
17826 fi
17827
17828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17829   echo "$ac_t""yes" 1>&6
17830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17831   cat >> confdefs.h <<EOF
17832 #define $ac_tr_func 1
17833 EOF
17834  
17835 else
17836   echo "$ac_t""no" 1>&6
17837 fi
17838 done
17839     
17840     fi
17841   fi
17842
17843   
17844   
17845   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
17846 echo "configure:17847: checking for copysignl declaration" >&5
17847   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
17848     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
17849   echo $ac_n "(cached) $ac_c" 1>&6
17850 else
17851   
17852       
17853       ac_ext=C
17854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17855 ac_cpp='$CXXCPP $CPPFLAGS'
17856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17858 cross_compiling=$ac_cv_prog_cxx_cross
17859
17860       cat > conftest.$ac_ext <<EOF
17861 #line 17862 "configure"
17862 #include "confdefs.h"
17863 #include <math.h>
17864 int main() {
17865  copysignl(0, 0);
17866 ; return 0; }
17867 EOF
17868 if { (eval echo configure:17869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17869   rm -rf conftest*
17870   glibcpp_cv_func_copysignl_use=yes
17871 else
17872   echo "configure: failed program was:" >&5
17873   cat conftest.$ac_ext >&5
17874   rm -rf conftest*
17875   glibcpp_cv_func_copysignl_use=no
17876 fi
17877 rm -f conftest*
17878       ac_ext=c
17879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17880 ac_cpp='$CPP $CPPFLAGS'
17881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17883 cross_compiling=$ac_cv_prog_cc_cross
17884
17885     
17886 fi
17887
17888   fi
17889   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
17890
17891   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
17892     for ac_func in copysignl
17893 do
17894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17895 echo "configure:17896: checking for $ac_func" >&5
17896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17897   echo $ac_n "(cached) $ac_c" 1>&6
17898 else
17899   cat > conftest.$ac_ext <<EOF
17900 #line 17901 "configure"
17901 #include "confdefs.h"
17902 /* System header to define __stub macros and hopefully few prototypes,
17903     which can conflict with char $ac_func(); below.  */
17904 #include <assert.h>
17905 /* Override any gcc2 internal prototype to avoid an error.  */
17906 /* We use char because int might match the return type of a gcc2
17907     builtin and then its argument prototype would still apply.  */
17908 char $ac_func();
17909
17910 int main() {
17911
17912 /* The GNU C library defines this for functions which it implements
17913     to always fail with ENOSYS.  Some functions are actually named
17914     something starting with __ and the normal name is an alias.  */
17915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17916 choke me
17917 #else
17918 $ac_func();
17919 #endif
17920
17921 ; return 0; }
17922 EOF
17923 if { (eval echo configure:17924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17924   rm -rf conftest*
17925   eval "ac_cv_func_$ac_func=yes"
17926 else
17927   echo "configure: failed program was:" >&5
17928   cat conftest.$ac_ext >&5
17929   rm -rf conftest*
17930   eval "ac_cv_func_$ac_func=no"
17931 fi
17932 rm -f conftest*
17933 fi
17934
17935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17936   echo "$ac_t""yes" 1>&6
17937     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17938   cat >> confdefs.h <<EOF
17939 #define $ac_tr_func 1
17940 EOF
17941  
17942 else
17943   echo "$ac_t""no" 1>&6
17944 fi
17945 done
17946     
17947   else
17948     
17949   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17950 echo "configure:17951: checking for _copysignl declaration" >&5
17951   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17952     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17953   echo $ac_n "(cached) $ac_c" 1>&6
17954 else
17955   
17956       
17957       ac_ext=C
17958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17959 ac_cpp='$CXXCPP $CPPFLAGS'
17960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17962 cross_compiling=$ac_cv_prog_cxx_cross
17963
17964       cat > conftest.$ac_ext <<EOF
17965 #line 17966 "configure"
17966 #include "confdefs.h"
17967 #include <math.h>
17968 int main() {
17969  _copysignl(0, 0);
17970 ; return 0; }
17971 EOF
17972 if { (eval echo configure:17973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17973   rm -rf conftest*
17974   glibcpp_cv_func__copysignl_use=yes
17975 else
17976   echo "configure: failed program was:" >&5
17977   cat conftest.$ac_ext >&5
17978   rm -rf conftest*
17979   glibcpp_cv_func__copysignl_use=no
17980 fi
17981 rm -f conftest*
17982       ac_ext=c
17983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17984 ac_cpp='$CPP $CPPFLAGS'
17985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17987 cross_compiling=$ac_cv_prog_cc_cross
17988
17989     
17990 fi
17991
17992   fi
17993   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17994
17995     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17996       for ac_func in _copysignl
17997 do
17998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17999 echo "configure:18000: checking for $ac_func" >&5
18000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18001   echo $ac_n "(cached) $ac_c" 1>&6
18002 else
18003   cat > conftest.$ac_ext <<EOF
18004 #line 18005 "configure"
18005 #include "confdefs.h"
18006 /* System header to define __stub macros and hopefully few prototypes,
18007     which can conflict with char $ac_func(); below.  */
18008 #include <assert.h>
18009 /* Override any gcc2 internal prototype to avoid an error.  */
18010 /* We use char because int might match the return type of a gcc2
18011     builtin and then its argument prototype would still apply.  */
18012 char $ac_func();
18013
18014 int main() {
18015
18016 /* The GNU C library defines this for functions which it implements
18017     to always fail with ENOSYS.  Some functions are actually named
18018     something starting with __ and the normal name is an alias.  */
18019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18020 choke me
18021 #else
18022 $ac_func();
18023 #endif
18024
18025 ; return 0; }
18026 EOF
18027 if { (eval echo configure:18028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18028   rm -rf conftest*
18029   eval "ac_cv_func_$ac_func=yes"
18030 else
18031   echo "configure: failed program was:" >&5
18032   cat conftest.$ac_ext >&5
18033   rm -rf conftest*
18034   eval "ac_cv_func_$ac_func=no"
18035 fi
18036 rm -f conftest*
18037 fi
18038
18039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18040   echo "$ac_t""yes" 1>&6
18041     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18042   cat >> confdefs.h <<EOF
18043 #define $ac_tr_func 1
18044 EOF
18045  
18046 else
18047   echo "$ac_t""no" 1>&6
18048 fi
18049 done
18050     
18051     fi
18052   fi
18053
18054   
18055   
18056   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18057 echo "configure:18058: checking for atan2l declaration" >&5
18058   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18059     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18060   echo $ac_n "(cached) $ac_c" 1>&6
18061 else
18062   
18063       
18064       ac_ext=C
18065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18066 ac_cpp='$CXXCPP $CPPFLAGS'
18067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18069 cross_compiling=$ac_cv_prog_cxx_cross
18070
18071       cat > conftest.$ac_ext <<EOF
18072 #line 18073 "configure"
18073 #include "confdefs.h"
18074 #include <math.h>
18075 int main() {
18076  atan2l(0, 0);
18077 ; return 0; }
18078 EOF
18079 if { (eval echo configure:18080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18080   rm -rf conftest*
18081   glibcpp_cv_func_atan2l_use=yes
18082 else
18083   echo "configure: failed program was:" >&5
18084   cat conftest.$ac_ext >&5
18085   rm -rf conftest*
18086   glibcpp_cv_func_atan2l_use=no
18087 fi
18088 rm -f conftest*
18089       ac_ext=c
18090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18091 ac_cpp='$CPP $CPPFLAGS'
18092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18094 cross_compiling=$ac_cv_prog_cc_cross
18095
18096     
18097 fi
18098
18099   fi
18100   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18101
18102   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18103     for ac_func in atan2l
18104 do
18105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18106 echo "configure:18107: checking for $ac_func" >&5
18107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18108   echo $ac_n "(cached) $ac_c" 1>&6
18109 else
18110   cat > conftest.$ac_ext <<EOF
18111 #line 18112 "configure"
18112 #include "confdefs.h"
18113 /* System header to define __stub macros and hopefully few prototypes,
18114     which can conflict with char $ac_func(); below.  */
18115 #include <assert.h>
18116 /* Override any gcc2 internal prototype to avoid an error.  */
18117 /* We use char because int might match the return type of a gcc2
18118     builtin and then its argument prototype would still apply.  */
18119 char $ac_func();
18120
18121 int main() {
18122
18123 /* The GNU C library defines this for functions which it implements
18124     to always fail with ENOSYS.  Some functions are actually named
18125     something starting with __ and the normal name is an alias.  */
18126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18127 choke me
18128 #else
18129 $ac_func();
18130 #endif
18131
18132 ; return 0; }
18133 EOF
18134 if { (eval echo configure:18135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18135   rm -rf conftest*
18136   eval "ac_cv_func_$ac_func=yes"
18137 else
18138   echo "configure: failed program was:" >&5
18139   cat conftest.$ac_ext >&5
18140   rm -rf conftest*
18141   eval "ac_cv_func_$ac_func=no"
18142 fi
18143 rm -f conftest*
18144 fi
18145
18146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18147   echo "$ac_t""yes" 1>&6
18148     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18149   cat >> confdefs.h <<EOF
18150 #define $ac_tr_func 1
18151 EOF
18152  
18153 else
18154   echo "$ac_t""no" 1>&6
18155 fi
18156 done
18157     
18158   else
18159     
18160   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18161 echo "configure:18162: checking for _atan2l declaration" >&5
18162   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18163     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18164   echo $ac_n "(cached) $ac_c" 1>&6
18165 else
18166   
18167       
18168       ac_ext=C
18169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18170 ac_cpp='$CXXCPP $CPPFLAGS'
18171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18173 cross_compiling=$ac_cv_prog_cxx_cross
18174
18175       cat > conftest.$ac_ext <<EOF
18176 #line 18177 "configure"
18177 #include "confdefs.h"
18178 #include <math.h>
18179 int main() {
18180  _atan2l(0, 0);
18181 ; return 0; }
18182 EOF
18183 if { (eval echo configure:18184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18184   rm -rf conftest*
18185   glibcpp_cv_func__atan2l_use=yes
18186 else
18187   echo "configure: failed program was:" >&5
18188   cat conftest.$ac_ext >&5
18189   rm -rf conftest*
18190   glibcpp_cv_func__atan2l_use=no
18191 fi
18192 rm -f conftest*
18193       ac_ext=c
18194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18195 ac_cpp='$CPP $CPPFLAGS'
18196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18198 cross_compiling=$ac_cv_prog_cc_cross
18199
18200     
18201 fi
18202
18203   fi
18204   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18205
18206     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18207       for ac_func in _atan2l
18208 do
18209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18210 echo "configure:18211: checking for $ac_func" >&5
18211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18212   echo $ac_n "(cached) $ac_c" 1>&6
18213 else
18214   cat > conftest.$ac_ext <<EOF
18215 #line 18216 "configure"
18216 #include "confdefs.h"
18217 /* System header to define __stub macros and hopefully few prototypes,
18218     which can conflict with char $ac_func(); below.  */
18219 #include <assert.h>
18220 /* Override any gcc2 internal prototype to avoid an error.  */
18221 /* We use char because int might match the return type of a gcc2
18222     builtin and then its argument prototype would still apply.  */
18223 char $ac_func();
18224
18225 int main() {
18226
18227 /* The GNU C library defines this for functions which it implements
18228     to always fail with ENOSYS.  Some functions are actually named
18229     something starting with __ and the normal name is an alias.  */
18230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18231 choke me
18232 #else
18233 $ac_func();
18234 #endif
18235
18236 ; return 0; }
18237 EOF
18238 if { (eval echo configure:18239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18239   rm -rf conftest*
18240   eval "ac_cv_func_$ac_func=yes"
18241 else
18242   echo "configure: failed program was:" >&5
18243   cat conftest.$ac_ext >&5
18244   rm -rf conftest*
18245   eval "ac_cv_func_$ac_func=no"
18246 fi
18247 rm -f conftest*
18248 fi
18249
18250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18251   echo "$ac_t""yes" 1>&6
18252     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18253   cat >> confdefs.h <<EOF
18254 #define $ac_tr_func 1
18255 EOF
18256  
18257 else
18258   echo "$ac_t""no" 1>&6
18259 fi
18260 done
18261     
18262     fi
18263   fi
18264
18265   
18266   
18267   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18268 echo "configure:18269: checking for expl declaration" >&5
18269   if test x${glibcpp_cv_func_expl_use+set} != xset; then
18270     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18271   echo $ac_n "(cached) $ac_c" 1>&6
18272 else
18273   
18274       
18275       ac_ext=C
18276 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18277 ac_cpp='$CXXCPP $CPPFLAGS'
18278 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18279 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18280 cross_compiling=$ac_cv_prog_cxx_cross
18281
18282       cat > conftest.$ac_ext <<EOF
18283 #line 18284 "configure"
18284 #include "confdefs.h"
18285 #include <math.h>
18286                       #ifdef HAVE_IEEEFP_H
18287                       #include <ieeefp.h>
18288                       #endif
18289                      
18290 int main() {
18291  expl(0);
18292 ; return 0; }
18293 EOF
18294 if { (eval echo configure:18295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18295   rm -rf conftest*
18296   glibcpp_cv_func_expl_use=yes
18297 else
18298   echo "configure: failed program was:" >&5
18299   cat conftest.$ac_ext >&5
18300   rm -rf conftest*
18301   glibcpp_cv_func_expl_use=no
18302 fi
18303 rm -f conftest*
18304       ac_ext=c
18305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18306 ac_cpp='$CPP $CPPFLAGS'
18307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18309 cross_compiling=$ac_cv_prog_cc_cross
18310
18311     
18312 fi
18313
18314   fi
18315   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18316
18317   if test x$glibcpp_cv_func_expl_use = x"yes"; then
18318     for ac_func in expl
18319 do
18320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18321 echo "configure:18322: checking for $ac_func" >&5
18322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18323   echo $ac_n "(cached) $ac_c" 1>&6
18324 else
18325   cat > conftest.$ac_ext <<EOF
18326 #line 18327 "configure"
18327 #include "confdefs.h"
18328 /* System header to define __stub macros and hopefully few prototypes,
18329     which can conflict with char $ac_func(); below.  */
18330 #include <assert.h>
18331 /* Override any gcc2 internal prototype to avoid an error.  */
18332 /* We use char because int might match the return type of a gcc2
18333     builtin and then its argument prototype would still apply.  */
18334 char $ac_func();
18335
18336 int main() {
18337
18338 /* The GNU C library defines this for functions which it implements
18339     to always fail with ENOSYS.  Some functions are actually named
18340     something starting with __ and the normal name is an alias.  */
18341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18342 choke me
18343 #else
18344 $ac_func();
18345 #endif
18346
18347 ; return 0; }
18348 EOF
18349 if { (eval echo configure:18350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18350   rm -rf conftest*
18351   eval "ac_cv_func_$ac_func=yes"
18352 else
18353   echo "configure: failed program was:" >&5
18354   cat conftest.$ac_ext >&5
18355   rm -rf conftest*
18356   eval "ac_cv_func_$ac_func=no"
18357 fi
18358 rm -f conftest*
18359 fi
18360
18361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18362   echo "$ac_t""yes" 1>&6
18363     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18364   cat >> confdefs.h <<EOF
18365 #define $ac_tr_func 1
18366 EOF
18367  
18368 else
18369   echo "$ac_t""no" 1>&6
18370 fi
18371 done
18372     
18373   else
18374     
18375   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18376 echo "configure:18377: checking for _expl declaration" >&5
18377   if test x${glibcpp_cv_func__expl_use+set} != xset; then
18378     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18379   echo $ac_n "(cached) $ac_c" 1>&6
18380 else
18381   
18382       
18383       ac_ext=C
18384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18385 ac_cpp='$CXXCPP $CPPFLAGS'
18386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18388 cross_compiling=$ac_cv_prog_cxx_cross
18389
18390       cat > conftest.$ac_ext <<EOF
18391 #line 18392 "configure"
18392 #include "confdefs.h"
18393 #include <math.h>
18394                       #ifdef HAVE_IEEEFP_H
18395                       #include <ieeefp.h>
18396                       #endif
18397                      
18398 int main() {
18399  _expl(0);
18400 ; return 0; }
18401 EOF
18402 if { (eval echo configure:18403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18403   rm -rf conftest*
18404   glibcpp_cv_func__expl_use=yes
18405 else
18406   echo "configure: failed program was:" >&5
18407   cat conftest.$ac_ext >&5
18408   rm -rf conftest*
18409   glibcpp_cv_func__expl_use=no
18410 fi
18411 rm -f conftest*
18412       ac_ext=c
18413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18414 ac_cpp='$CPP $CPPFLAGS'
18415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18417 cross_compiling=$ac_cv_prog_cc_cross
18418
18419     
18420 fi
18421
18422   fi
18423   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18424
18425     if test x$glibcpp_cv_func__expl_use = x"yes"; then
18426       for ac_func in _expl
18427 do
18428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18429 echo "configure:18430: checking for $ac_func" >&5
18430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18431   echo $ac_n "(cached) $ac_c" 1>&6
18432 else
18433   cat > conftest.$ac_ext <<EOF
18434 #line 18435 "configure"
18435 #include "confdefs.h"
18436 /* System header to define __stub macros and hopefully few prototypes,
18437     which can conflict with char $ac_func(); below.  */
18438 #include <assert.h>
18439 /* Override any gcc2 internal prototype to avoid an error.  */
18440 /* We use char because int might match the return type of a gcc2
18441     builtin and then its argument prototype would still apply.  */
18442 char $ac_func();
18443
18444 int main() {
18445
18446 /* The GNU C library defines this for functions which it implements
18447     to always fail with ENOSYS.  Some functions are actually named
18448     something starting with __ and the normal name is an alias.  */
18449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18450 choke me
18451 #else
18452 $ac_func();
18453 #endif
18454
18455 ; return 0; }
18456 EOF
18457 if { (eval echo configure:18458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18458   rm -rf conftest*
18459   eval "ac_cv_func_$ac_func=yes"
18460 else
18461   echo "configure: failed program was:" >&5
18462   cat conftest.$ac_ext >&5
18463   rm -rf conftest*
18464   eval "ac_cv_func_$ac_func=no"
18465 fi
18466 rm -f conftest*
18467 fi
18468
18469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18470   echo "$ac_t""yes" 1>&6
18471     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18472   cat >> confdefs.h <<EOF
18473 #define $ac_tr_func 1
18474 EOF
18475  
18476 else
18477   echo "$ac_t""no" 1>&6
18478 fi
18479 done
18480     
18481     fi
18482   fi
18483
18484   
18485   
18486   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18487 echo "configure:18488: checking for fabsl declaration" >&5
18488   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18489     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18490   echo $ac_n "(cached) $ac_c" 1>&6
18491 else
18492   
18493       
18494       ac_ext=C
18495 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18496 ac_cpp='$CXXCPP $CPPFLAGS'
18497 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18498 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18499 cross_compiling=$ac_cv_prog_cxx_cross
18500
18501       cat > conftest.$ac_ext <<EOF
18502 #line 18503 "configure"
18503 #include "confdefs.h"
18504 #include <math.h>
18505                       #ifdef HAVE_IEEEFP_H
18506                       #include <ieeefp.h>
18507                       #endif
18508                      
18509 int main() {
18510  fabsl(0);
18511 ; return 0; }
18512 EOF
18513 if { (eval echo configure:18514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18514   rm -rf conftest*
18515   glibcpp_cv_func_fabsl_use=yes
18516 else
18517   echo "configure: failed program was:" >&5
18518   cat conftest.$ac_ext >&5
18519   rm -rf conftest*
18520   glibcpp_cv_func_fabsl_use=no
18521 fi
18522 rm -f conftest*
18523       ac_ext=c
18524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18528 cross_compiling=$ac_cv_prog_cc_cross
18529
18530     
18531 fi
18532
18533   fi
18534   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18535
18536   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18537     for ac_func in fabsl
18538 do
18539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18540 echo "configure:18541: checking for $ac_func" >&5
18541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18542   echo $ac_n "(cached) $ac_c" 1>&6
18543 else
18544   cat > conftest.$ac_ext <<EOF
18545 #line 18546 "configure"
18546 #include "confdefs.h"
18547 /* System header to define __stub macros and hopefully few prototypes,
18548     which can conflict with char $ac_func(); below.  */
18549 #include <assert.h>
18550 /* Override any gcc2 internal prototype to avoid an error.  */
18551 /* We use char because int might match the return type of a gcc2
18552     builtin and then its argument prototype would still apply.  */
18553 char $ac_func();
18554
18555 int main() {
18556
18557 /* The GNU C library defines this for functions which it implements
18558     to always fail with ENOSYS.  Some functions are actually named
18559     something starting with __ and the normal name is an alias.  */
18560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18561 choke me
18562 #else
18563 $ac_func();
18564 #endif
18565
18566 ; return 0; }
18567 EOF
18568 if { (eval echo configure:18569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18569   rm -rf conftest*
18570   eval "ac_cv_func_$ac_func=yes"
18571 else
18572   echo "configure: failed program was:" >&5
18573   cat conftest.$ac_ext >&5
18574   rm -rf conftest*
18575   eval "ac_cv_func_$ac_func=no"
18576 fi
18577 rm -f conftest*
18578 fi
18579
18580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18581   echo "$ac_t""yes" 1>&6
18582     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18583   cat >> confdefs.h <<EOF
18584 #define $ac_tr_func 1
18585 EOF
18586  
18587 else
18588   echo "$ac_t""no" 1>&6
18589 fi
18590 done
18591     
18592   else
18593     
18594   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18595 echo "configure:18596: checking for _fabsl declaration" >&5
18596   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18597     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18598   echo $ac_n "(cached) $ac_c" 1>&6
18599 else
18600   
18601       
18602       ac_ext=C
18603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18604 ac_cpp='$CXXCPP $CPPFLAGS'
18605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18607 cross_compiling=$ac_cv_prog_cxx_cross
18608
18609       cat > conftest.$ac_ext <<EOF
18610 #line 18611 "configure"
18611 #include "confdefs.h"
18612 #include <math.h>
18613                       #ifdef HAVE_IEEEFP_H
18614                       #include <ieeefp.h>
18615                       #endif
18616                      
18617 int main() {
18618  _fabsl(0);
18619 ; return 0; }
18620 EOF
18621 if { (eval echo configure:18622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18622   rm -rf conftest*
18623   glibcpp_cv_func__fabsl_use=yes
18624 else
18625   echo "configure: failed program was:" >&5
18626   cat conftest.$ac_ext >&5
18627   rm -rf conftest*
18628   glibcpp_cv_func__fabsl_use=no
18629 fi
18630 rm -f conftest*
18631       ac_ext=c
18632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18633 ac_cpp='$CPP $CPPFLAGS'
18634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18636 cross_compiling=$ac_cv_prog_cc_cross
18637
18638     
18639 fi
18640
18641   fi
18642   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18643
18644     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18645       for ac_func in _fabsl
18646 do
18647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18648 echo "configure:18649: checking for $ac_func" >&5
18649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18650   echo $ac_n "(cached) $ac_c" 1>&6
18651 else
18652   cat > conftest.$ac_ext <<EOF
18653 #line 18654 "configure"
18654 #include "confdefs.h"
18655 /* System header to define __stub macros and hopefully few prototypes,
18656     which can conflict with char $ac_func(); below.  */
18657 #include <assert.h>
18658 /* Override any gcc2 internal prototype to avoid an error.  */
18659 /* We use char because int might match the return type of a gcc2
18660     builtin and then its argument prototype would still apply.  */
18661 char $ac_func();
18662
18663 int main() {
18664
18665 /* The GNU C library defines this for functions which it implements
18666     to always fail with ENOSYS.  Some functions are actually named
18667     something starting with __ and the normal name is an alias.  */
18668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18669 choke me
18670 #else
18671 $ac_func();
18672 #endif
18673
18674 ; return 0; }
18675 EOF
18676 if { (eval echo configure:18677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18677   rm -rf conftest*
18678   eval "ac_cv_func_$ac_func=yes"
18679 else
18680   echo "configure: failed program was:" >&5
18681   cat conftest.$ac_ext >&5
18682   rm -rf conftest*
18683   eval "ac_cv_func_$ac_func=no"
18684 fi
18685 rm -f conftest*
18686 fi
18687
18688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18689   echo "$ac_t""yes" 1>&6
18690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18691   cat >> confdefs.h <<EOF
18692 #define $ac_tr_func 1
18693 EOF
18694  
18695 else
18696   echo "$ac_t""no" 1>&6
18697 fi
18698 done
18699     
18700     fi
18701   fi
18702
18703   
18704   
18705   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18706 echo "configure:18707: checking for fmodl declaration" >&5
18707   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18708     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18709   echo $ac_n "(cached) $ac_c" 1>&6
18710 else
18711   
18712       
18713       ac_ext=C
18714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18715 ac_cpp='$CXXCPP $CPPFLAGS'
18716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18718 cross_compiling=$ac_cv_prog_cxx_cross
18719
18720       cat > conftest.$ac_ext <<EOF
18721 #line 18722 "configure"
18722 #include "confdefs.h"
18723 #include <math.h>
18724 int main() {
18725  fmodl(0, 0);
18726 ; return 0; }
18727 EOF
18728 if { (eval echo configure:18729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18729   rm -rf conftest*
18730   glibcpp_cv_func_fmodl_use=yes
18731 else
18732   echo "configure: failed program was:" >&5
18733   cat conftest.$ac_ext >&5
18734   rm -rf conftest*
18735   glibcpp_cv_func_fmodl_use=no
18736 fi
18737 rm -f conftest*
18738       ac_ext=c
18739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18740 ac_cpp='$CPP $CPPFLAGS'
18741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18743 cross_compiling=$ac_cv_prog_cc_cross
18744
18745     
18746 fi
18747
18748   fi
18749   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18750
18751   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18752     for ac_func in fmodl
18753 do
18754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18755 echo "configure:18756: checking for $ac_func" >&5
18756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18757   echo $ac_n "(cached) $ac_c" 1>&6
18758 else
18759   cat > conftest.$ac_ext <<EOF
18760 #line 18761 "configure"
18761 #include "confdefs.h"
18762 /* System header to define __stub macros and hopefully few prototypes,
18763     which can conflict with char $ac_func(); below.  */
18764 #include <assert.h>
18765 /* Override any gcc2 internal prototype to avoid an error.  */
18766 /* We use char because int might match the return type of a gcc2
18767     builtin and then its argument prototype would still apply.  */
18768 char $ac_func();
18769
18770 int main() {
18771
18772 /* The GNU C library defines this for functions which it implements
18773     to always fail with ENOSYS.  Some functions are actually named
18774     something starting with __ and the normal name is an alias.  */
18775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18776 choke me
18777 #else
18778 $ac_func();
18779 #endif
18780
18781 ; return 0; }
18782 EOF
18783 if { (eval echo configure:18784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18784   rm -rf conftest*
18785   eval "ac_cv_func_$ac_func=yes"
18786 else
18787   echo "configure: failed program was:" >&5
18788   cat conftest.$ac_ext >&5
18789   rm -rf conftest*
18790   eval "ac_cv_func_$ac_func=no"
18791 fi
18792 rm -f conftest*
18793 fi
18794
18795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18796   echo "$ac_t""yes" 1>&6
18797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18798   cat >> confdefs.h <<EOF
18799 #define $ac_tr_func 1
18800 EOF
18801  
18802 else
18803   echo "$ac_t""no" 1>&6
18804 fi
18805 done
18806     
18807   else
18808     
18809   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
18810 echo "configure:18811: checking for _fmodl declaration" >&5
18811   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
18812     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
18813   echo $ac_n "(cached) $ac_c" 1>&6
18814 else
18815   
18816       
18817       ac_ext=C
18818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18819 ac_cpp='$CXXCPP $CPPFLAGS'
18820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18822 cross_compiling=$ac_cv_prog_cxx_cross
18823
18824       cat > conftest.$ac_ext <<EOF
18825 #line 18826 "configure"
18826 #include "confdefs.h"
18827 #include <math.h>
18828 int main() {
18829  _fmodl(0, 0);
18830 ; return 0; }
18831 EOF
18832 if { (eval echo configure:18833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18833   rm -rf conftest*
18834   glibcpp_cv_func__fmodl_use=yes
18835 else
18836   echo "configure: failed program was:" >&5
18837   cat conftest.$ac_ext >&5
18838   rm -rf conftest*
18839   glibcpp_cv_func__fmodl_use=no
18840 fi
18841 rm -f conftest*
18842       ac_ext=c
18843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18844 ac_cpp='$CPP $CPPFLAGS'
18845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18847 cross_compiling=$ac_cv_prog_cc_cross
18848
18849     
18850 fi
18851
18852   fi
18853   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
18854
18855     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
18856       for ac_func in _fmodl
18857 do
18858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18859 echo "configure:18860: checking for $ac_func" >&5
18860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18861   echo $ac_n "(cached) $ac_c" 1>&6
18862 else
18863   cat > conftest.$ac_ext <<EOF
18864 #line 18865 "configure"
18865 #include "confdefs.h"
18866 /* System header to define __stub macros and hopefully few prototypes,
18867     which can conflict with char $ac_func(); below.  */
18868 #include <assert.h>
18869 /* Override any gcc2 internal prototype to avoid an error.  */
18870 /* We use char because int might match the return type of a gcc2
18871     builtin and then its argument prototype would still apply.  */
18872 char $ac_func();
18873
18874 int main() {
18875
18876 /* The GNU C library defines this for functions which it implements
18877     to always fail with ENOSYS.  Some functions are actually named
18878     something starting with __ and the normal name is an alias.  */
18879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18880 choke me
18881 #else
18882 $ac_func();
18883 #endif
18884
18885 ; return 0; }
18886 EOF
18887 if { (eval echo configure:18888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18888   rm -rf conftest*
18889   eval "ac_cv_func_$ac_func=yes"
18890 else
18891   echo "configure: failed program was:" >&5
18892   cat conftest.$ac_ext >&5
18893   rm -rf conftest*
18894   eval "ac_cv_func_$ac_func=no"
18895 fi
18896 rm -f conftest*
18897 fi
18898
18899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18900   echo "$ac_t""yes" 1>&6
18901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18902   cat >> confdefs.h <<EOF
18903 #define $ac_tr_func 1
18904 EOF
18905  
18906 else
18907   echo "$ac_t""no" 1>&6
18908 fi
18909 done
18910     
18911     fi
18912   fi
18913
18914   
18915   
18916   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
18917 echo "configure:18918: checking for frexpl declaration" >&5
18918   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
18919     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
18920   echo $ac_n "(cached) $ac_c" 1>&6
18921 else
18922   
18923       
18924       ac_ext=C
18925 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18926 ac_cpp='$CXXCPP $CPPFLAGS'
18927 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18928 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18929 cross_compiling=$ac_cv_prog_cxx_cross
18930
18931       cat > conftest.$ac_ext <<EOF
18932 #line 18933 "configure"
18933 #include "confdefs.h"
18934 #include <math.h>
18935 int main() {
18936  frexpl(0, 0);
18937 ; return 0; }
18938 EOF
18939 if { (eval echo configure:18940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18940   rm -rf conftest*
18941   glibcpp_cv_func_frexpl_use=yes
18942 else
18943   echo "configure: failed program was:" >&5
18944   cat conftest.$ac_ext >&5
18945   rm -rf conftest*
18946   glibcpp_cv_func_frexpl_use=no
18947 fi
18948 rm -f conftest*
18949       ac_ext=c
18950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18951 ac_cpp='$CPP $CPPFLAGS'
18952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18954 cross_compiling=$ac_cv_prog_cc_cross
18955
18956     
18957 fi
18958
18959   fi
18960   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18961
18962   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18963     for ac_func in frexpl
18964 do
18965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18966 echo "configure:18967: checking for $ac_func" >&5
18967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18968   echo $ac_n "(cached) $ac_c" 1>&6
18969 else
18970   cat > conftest.$ac_ext <<EOF
18971 #line 18972 "configure"
18972 #include "confdefs.h"
18973 /* System header to define __stub macros and hopefully few prototypes,
18974     which can conflict with char $ac_func(); below.  */
18975 #include <assert.h>
18976 /* Override any gcc2 internal prototype to avoid an error.  */
18977 /* We use char because int might match the return type of a gcc2
18978     builtin and then its argument prototype would still apply.  */
18979 char $ac_func();
18980
18981 int main() {
18982
18983 /* The GNU C library defines this for functions which it implements
18984     to always fail with ENOSYS.  Some functions are actually named
18985     something starting with __ and the normal name is an alias.  */
18986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18987 choke me
18988 #else
18989 $ac_func();
18990 #endif
18991
18992 ; return 0; }
18993 EOF
18994 if { (eval echo configure:18995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18995   rm -rf conftest*
18996   eval "ac_cv_func_$ac_func=yes"
18997 else
18998   echo "configure: failed program was:" >&5
18999   cat conftest.$ac_ext >&5
19000   rm -rf conftest*
19001   eval "ac_cv_func_$ac_func=no"
19002 fi
19003 rm -f conftest*
19004 fi
19005
19006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19007   echo "$ac_t""yes" 1>&6
19008     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19009   cat >> confdefs.h <<EOF
19010 #define $ac_tr_func 1
19011 EOF
19012  
19013 else
19014   echo "$ac_t""no" 1>&6
19015 fi
19016 done
19017     
19018   else
19019     
19020   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19021 echo "configure:19022: checking for _frexpl declaration" >&5
19022   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19023     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19024   echo $ac_n "(cached) $ac_c" 1>&6
19025 else
19026   
19027       
19028       ac_ext=C
19029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19030 ac_cpp='$CXXCPP $CPPFLAGS'
19031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19033 cross_compiling=$ac_cv_prog_cxx_cross
19034
19035       cat > conftest.$ac_ext <<EOF
19036 #line 19037 "configure"
19037 #include "confdefs.h"
19038 #include <math.h>
19039 int main() {
19040  _frexpl(0, 0);
19041 ; return 0; }
19042 EOF
19043 if { (eval echo configure:19044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19044   rm -rf conftest*
19045   glibcpp_cv_func__frexpl_use=yes
19046 else
19047   echo "configure: failed program was:" >&5
19048   cat conftest.$ac_ext >&5
19049   rm -rf conftest*
19050   glibcpp_cv_func__frexpl_use=no
19051 fi
19052 rm -f conftest*
19053       ac_ext=c
19054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19055 ac_cpp='$CPP $CPPFLAGS'
19056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19058 cross_compiling=$ac_cv_prog_cc_cross
19059
19060     
19061 fi
19062
19063   fi
19064   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19065
19066     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19067       for ac_func in _frexpl
19068 do
19069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19070 echo "configure:19071: checking for $ac_func" >&5
19071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19072   echo $ac_n "(cached) $ac_c" 1>&6
19073 else
19074   cat > conftest.$ac_ext <<EOF
19075 #line 19076 "configure"
19076 #include "confdefs.h"
19077 /* System header to define __stub macros and hopefully few prototypes,
19078     which can conflict with char $ac_func(); below.  */
19079 #include <assert.h>
19080 /* Override any gcc2 internal prototype to avoid an error.  */
19081 /* We use char because int might match the return type of a gcc2
19082     builtin and then its argument prototype would still apply.  */
19083 char $ac_func();
19084
19085 int main() {
19086
19087 /* The GNU C library defines this for functions which it implements
19088     to always fail with ENOSYS.  Some functions are actually named
19089     something starting with __ and the normal name is an alias.  */
19090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19091 choke me
19092 #else
19093 $ac_func();
19094 #endif
19095
19096 ; return 0; }
19097 EOF
19098 if { (eval echo configure:19099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19099   rm -rf conftest*
19100   eval "ac_cv_func_$ac_func=yes"
19101 else
19102   echo "configure: failed program was:" >&5
19103   cat conftest.$ac_ext >&5
19104   rm -rf conftest*
19105   eval "ac_cv_func_$ac_func=no"
19106 fi
19107 rm -f conftest*
19108 fi
19109
19110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19111   echo "$ac_t""yes" 1>&6
19112     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19113   cat >> confdefs.h <<EOF
19114 #define $ac_tr_func 1
19115 EOF
19116  
19117 else
19118   echo "$ac_t""no" 1>&6
19119 fi
19120 done
19121     
19122     fi
19123   fi
19124
19125   
19126   
19127   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19128 echo "configure:19129: checking for hypotl declaration" >&5
19129   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19130     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19131   echo $ac_n "(cached) $ac_c" 1>&6
19132 else
19133   
19134       
19135       ac_ext=C
19136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19137 ac_cpp='$CXXCPP $CPPFLAGS'
19138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19139 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19140 cross_compiling=$ac_cv_prog_cxx_cross
19141
19142       cat > conftest.$ac_ext <<EOF
19143 #line 19144 "configure"
19144 #include "confdefs.h"
19145 #include <math.h>
19146 int main() {
19147  hypotl(0, 0);
19148 ; return 0; }
19149 EOF
19150 if { (eval echo configure:19151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19151   rm -rf conftest*
19152   glibcpp_cv_func_hypotl_use=yes
19153 else
19154   echo "configure: failed program was:" >&5
19155   cat conftest.$ac_ext >&5
19156   rm -rf conftest*
19157   glibcpp_cv_func_hypotl_use=no
19158 fi
19159 rm -f conftest*
19160       ac_ext=c
19161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19162 ac_cpp='$CPP $CPPFLAGS'
19163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19165 cross_compiling=$ac_cv_prog_cc_cross
19166
19167     
19168 fi
19169
19170   fi
19171   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19172
19173   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19174     for ac_func in hypotl
19175 do
19176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19177 echo "configure:19178: checking for $ac_func" >&5
19178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19179   echo $ac_n "(cached) $ac_c" 1>&6
19180 else
19181   cat > conftest.$ac_ext <<EOF
19182 #line 19183 "configure"
19183 #include "confdefs.h"
19184 /* System header to define __stub macros and hopefully few prototypes,
19185     which can conflict with char $ac_func(); below.  */
19186 #include <assert.h>
19187 /* Override any gcc2 internal prototype to avoid an error.  */
19188 /* We use char because int might match the return type of a gcc2
19189     builtin and then its argument prototype would still apply.  */
19190 char $ac_func();
19191
19192 int main() {
19193
19194 /* The GNU C library defines this for functions which it implements
19195     to always fail with ENOSYS.  Some functions are actually named
19196     something starting with __ and the normal name is an alias.  */
19197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19198 choke me
19199 #else
19200 $ac_func();
19201 #endif
19202
19203 ; return 0; }
19204 EOF
19205 if { (eval echo configure:19206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19206   rm -rf conftest*
19207   eval "ac_cv_func_$ac_func=yes"
19208 else
19209   echo "configure: failed program was:" >&5
19210   cat conftest.$ac_ext >&5
19211   rm -rf conftest*
19212   eval "ac_cv_func_$ac_func=no"
19213 fi
19214 rm -f conftest*
19215 fi
19216
19217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19218   echo "$ac_t""yes" 1>&6
19219     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19220   cat >> confdefs.h <<EOF
19221 #define $ac_tr_func 1
19222 EOF
19223  
19224 else
19225   echo "$ac_t""no" 1>&6
19226 fi
19227 done
19228     
19229   else
19230     
19231   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19232 echo "configure:19233: checking for _hypotl declaration" >&5
19233   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19234     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19235   echo $ac_n "(cached) $ac_c" 1>&6
19236 else
19237   
19238       
19239       ac_ext=C
19240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19241 ac_cpp='$CXXCPP $CPPFLAGS'
19242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19244 cross_compiling=$ac_cv_prog_cxx_cross
19245
19246       cat > conftest.$ac_ext <<EOF
19247 #line 19248 "configure"
19248 #include "confdefs.h"
19249 #include <math.h>
19250 int main() {
19251  _hypotl(0, 0);
19252 ; return 0; }
19253 EOF
19254 if { (eval echo configure:19255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19255   rm -rf conftest*
19256   glibcpp_cv_func__hypotl_use=yes
19257 else
19258   echo "configure: failed program was:" >&5
19259   cat conftest.$ac_ext >&5
19260   rm -rf conftest*
19261   glibcpp_cv_func__hypotl_use=no
19262 fi
19263 rm -f conftest*
19264       ac_ext=c
19265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19266 ac_cpp='$CPP $CPPFLAGS'
19267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19269 cross_compiling=$ac_cv_prog_cc_cross
19270
19271     
19272 fi
19273
19274   fi
19275   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19276
19277     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19278       for ac_func in _hypotl
19279 do
19280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19281 echo "configure:19282: checking for $ac_func" >&5
19282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19283   echo $ac_n "(cached) $ac_c" 1>&6
19284 else
19285   cat > conftest.$ac_ext <<EOF
19286 #line 19287 "configure"
19287 #include "confdefs.h"
19288 /* System header to define __stub macros and hopefully few prototypes,
19289     which can conflict with char $ac_func(); below.  */
19290 #include <assert.h>
19291 /* Override any gcc2 internal prototype to avoid an error.  */
19292 /* We use char because int might match the return type of a gcc2
19293     builtin and then its argument prototype would still apply.  */
19294 char $ac_func();
19295
19296 int main() {
19297
19298 /* The GNU C library defines this for functions which it implements
19299     to always fail with ENOSYS.  Some functions are actually named
19300     something starting with __ and the normal name is an alias.  */
19301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19302 choke me
19303 #else
19304 $ac_func();
19305 #endif
19306
19307 ; return 0; }
19308 EOF
19309 if { (eval echo configure:19310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19310   rm -rf conftest*
19311   eval "ac_cv_func_$ac_func=yes"
19312 else
19313   echo "configure: failed program was:" >&5
19314   cat conftest.$ac_ext >&5
19315   rm -rf conftest*
19316   eval "ac_cv_func_$ac_func=no"
19317 fi
19318 rm -f conftest*
19319 fi
19320
19321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19322   echo "$ac_t""yes" 1>&6
19323     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19324   cat >> confdefs.h <<EOF
19325 #define $ac_tr_func 1
19326 EOF
19327  
19328 else
19329   echo "$ac_t""no" 1>&6
19330 fi
19331 done
19332     
19333     fi
19334   fi
19335
19336   
19337   
19338   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19339 echo "configure:19340: checking for ldexpl declaration" >&5
19340   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19341     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19342   echo $ac_n "(cached) $ac_c" 1>&6
19343 else
19344   
19345       
19346       ac_ext=C
19347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19348 ac_cpp='$CXXCPP $CPPFLAGS'
19349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19351 cross_compiling=$ac_cv_prog_cxx_cross
19352
19353       cat > conftest.$ac_ext <<EOF
19354 #line 19355 "configure"
19355 #include "confdefs.h"
19356 #include <math.h>
19357 int main() {
19358  ldexpl(0, 0);
19359 ; return 0; }
19360 EOF
19361 if { (eval echo configure:19362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19362   rm -rf conftest*
19363   glibcpp_cv_func_ldexpl_use=yes
19364 else
19365   echo "configure: failed program was:" >&5
19366   cat conftest.$ac_ext >&5
19367   rm -rf conftest*
19368   glibcpp_cv_func_ldexpl_use=no
19369 fi
19370 rm -f conftest*
19371       ac_ext=c
19372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19373 ac_cpp='$CPP $CPPFLAGS'
19374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19376 cross_compiling=$ac_cv_prog_cc_cross
19377
19378     
19379 fi
19380
19381   fi
19382   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19383
19384   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19385     for ac_func in ldexpl
19386 do
19387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19388 echo "configure:19389: checking for $ac_func" >&5
19389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19390   echo $ac_n "(cached) $ac_c" 1>&6
19391 else
19392   cat > conftest.$ac_ext <<EOF
19393 #line 19394 "configure"
19394 #include "confdefs.h"
19395 /* System header to define __stub macros and hopefully few prototypes,
19396     which can conflict with char $ac_func(); below.  */
19397 #include <assert.h>
19398 /* Override any gcc2 internal prototype to avoid an error.  */
19399 /* We use char because int might match the return type of a gcc2
19400     builtin and then its argument prototype would still apply.  */
19401 char $ac_func();
19402
19403 int main() {
19404
19405 /* The GNU C library defines this for functions which it implements
19406     to always fail with ENOSYS.  Some functions are actually named
19407     something starting with __ and the normal name is an alias.  */
19408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19409 choke me
19410 #else
19411 $ac_func();
19412 #endif
19413
19414 ; return 0; }
19415 EOF
19416 if { (eval echo configure:19417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19417   rm -rf conftest*
19418   eval "ac_cv_func_$ac_func=yes"
19419 else
19420   echo "configure: failed program was:" >&5
19421   cat conftest.$ac_ext >&5
19422   rm -rf conftest*
19423   eval "ac_cv_func_$ac_func=no"
19424 fi
19425 rm -f conftest*
19426 fi
19427
19428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19429   echo "$ac_t""yes" 1>&6
19430     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19431   cat >> confdefs.h <<EOF
19432 #define $ac_tr_func 1
19433 EOF
19434  
19435 else
19436   echo "$ac_t""no" 1>&6
19437 fi
19438 done
19439     
19440   else
19441     
19442   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19443 echo "configure:19444: checking for _ldexpl declaration" >&5
19444   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19445     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19446   echo $ac_n "(cached) $ac_c" 1>&6
19447 else
19448   
19449       
19450       ac_ext=C
19451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19452 ac_cpp='$CXXCPP $CPPFLAGS'
19453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19455 cross_compiling=$ac_cv_prog_cxx_cross
19456
19457       cat > conftest.$ac_ext <<EOF
19458 #line 19459 "configure"
19459 #include "confdefs.h"
19460 #include <math.h>
19461 int main() {
19462  _ldexpl(0, 0);
19463 ; return 0; }
19464 EOF
19465 if { (eval echo configure:19466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19466   rm -rf conftest*
19467   glibcpp_cv_func__ldexpl_use=yes
19468 else
19469   echo "configure: failed program was:" >&5
19470   cat conftest.$ac_ext >&5
19471   rm -rf conftest*
19472   glibcpp_cv_func__ldexpl_use=no
19473 fi
19474 rm -f conftest*
19475       ac_ext=c
19476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19480 cross_compiling=$ac_cv_prog_cc_cross
19481
19482     
19483 fi
19484
19485   fi
19486   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19487
19488     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19489       for ac_func in _ldexpl
19490 do
19491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19492 echo "configure:19493: checking for $ac_func" >&5
19493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19494   echo $ac_n "(cached) $ac_c" 1>&6
19495 else
19496   cat > conftest.$ac_ext <<EOF
19497 #line 19498 "configure"
19498 #include "confdefs.h"
19499 /* System header to define __stub macros and hopefully few prototypes,
19500     which can conflict with char $ac_func(); below.  */
19501 #include <assert.h>
19502 /* Override any gcc2 internal prototype to avoid an error.  */
19503 /* We use char because int might match the return type of a gcc2
19504     builtin and then its argument prototype would still apply.  */
19505 char $ac_func();
19506
19507 int main() {
19508
19509 /* The GNU C library defines this for functions which it implements
19510     to always fail with ENOSYS.  Some functions are actually named
19511     something starting with __ and the normal name is an alias.  */
19512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19513 choke me
19514 #else
19515 $ac_func();
19516 #endif
19517
19518 ; return 0; }
19519 EOF
19520 if { (eval echo configure:19521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19521   rm -rf conftest*
19522   eval "ac_cv_func_$ac_func=yes"
19523 else
19524   echo "configure: failed program was:" >&5
19525   cat conftest.$ac_ext >&5
19526   rm -rf conftest*
19527   eval "ac_cv_func_$ac_func=no"
19528 fi
19529 rm -f conftest*
19530 fi
19531
19532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19533   echo "$ac_t""yes" 1>&6
19534     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19535   cat >> confdefs.h <<EOF
19536 #define $ac_tr_func 1
19537 EOF
19538  
19539 else
19540   echo "$ac_t""no" 1>&6
19541 fi
19542 done
19543     
19544     fi
19545   fi
19546
19547   
19548   
19549   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19550 echo "configure:19551: checking for logl declaration" >&5
19551   if test x${glibcpp_cv_func_logl_use+set} != xset; then
19552     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19553   echo $ac_n "(cached) $ac_c" 1>&6
19554 else
19555   
19556       
19557       ac_ext=C
19558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19559 ac_cpp='$CXXCPP $CPPFLAGS'
19560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19562 cross_compiling=$ac_cv_prog_cxx_cross
19563
19564       cat > conftest.$ac_ext <<EOF
19565 #line 19566 "configure"
19566 #include "confdefs.h"
19567 #include <math.h>
19568                       #ifdef HAVE_IEEEFP_H
19569                       #include <ieeefp.h>
19570                       #endif
19571                      
19572 int main() {
19573  logl(0);
19574 ; return 0; }
19575 EOF
19576 if { (eval echo configure:19577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19577   rm -rf conftest*
19578   glibcpp_cv_func_logl_use=yes
19579 else
19580   echo "configure: failed program was:" >&5
19581   cat conftest.$ac_ext >&5
19582   rm -rf conftest*
19583   glibcpp_cv_func_logl_use=no
19584 fi
19585 rm -f conftest*
19586       ac_ext=c
19587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19588 ac_cpp='$CPP $CPPFLAGS'
19589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19591 cross_compiling=$ac_cv_prog_cc_cross
19592
19593     
19594 fi
19595
19596   fi
19597   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19598
19599   if test x$glibcpp_cv_func_logl_use = x"yes"; then
19600     for ac_func in logl
19601 do
19602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19603 echo "configure:19604: checking for $ac_func" >&5
19604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19605   echo $ac_n "(cached) $ac_c" 1>&6
19606 else
19607   cat > conftest.$ac_ext <<EOF
19608 #line 19609 "configure"
19609 #include "confdefs.h"
19610 /* System header to define __stub macros and hopefully few prototypes,
19611     which can conflict with char $ac_func(); below.  */
19612 #include <assert.h>
19613 /* Override any gcc2 internal prototype to avoid an error.  */
19614 /* We use char because int might match the return type of a gcc2
19615     builtin and then its argument prototype would still apply.  */
19616 char $ac_func();
19617
19618 int main() {
19619
19620 /* The GNU C library defines this for functions which it implements
19621     to always fail with ENOSYS.  Some functions are actually named
19622     something starting with __ and the normal name is an alias.  */
19623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19624 choke me
19625 #else
19626 $ac_func();
19627 #endif
19628
19629 ; return 0; }
19630 EOF
19631 if { (eval echo configure:19632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19632   rm -rf conftest*
19633   eval "ac_cv_func_$ac_func=yes"
19634 else
19635   echo "configure: failed program was:" >&5
19636   cat conftest.$ac_ext >&5
19637   rm -rf conftest*
19638   eval "ac_cv_func_$ac_func=no"
19639 fi
19640 rm -f conftest*
19641 fi
19642
19643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19644   echo "$ac_t""yes" 1>&6
19645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19646   cat >> confdefs.h <<EOF
19647 #define $ac_tr_func 1
19648 EOF
19649  
19650 else
19651   echo "$ac_t""no" 1>&6
19652 fi
19653 done
19654     
19655   else
19656     
19657   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19658 echo "configure:19659: checking for _logl declaration" >&5
19659   if test x${glibcpp_cv_func__logl_use+set} != xset; then
19660     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19661   echo $ac_n "(cached) $ac_c" 1>&6
19662 else
19663   
19664       
19665       ac_ext=C
19666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19667 ac_cpp='$CXXCPP $CPPFLAGS'
19668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19670 cross_compiling=$ac_cv_prog_cxx_cross
19671
19672       cat > conftest.$ac_ext <<EOF
19673 #line 19674 "configure"
19674 #include "confdefs.h"
19675 #include <math.h>
19676                       #ifdef HAVE_IEEEFP_H
19677                       #include <ieeefp.h>
19678                       #endif
19679                      
19680 int main() {
19681  _logl(0);
19682 ; return 0; }
19683 EOF
19684 if { (eval echo configure:19685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19685   rm -rf conftest*
19686   glibcpp_cv_func__logl_use=yes
19687 else
19688   echo "configure: failed program was:" >&5
19689   cat conftest.$ac_ext >&5
19690   rm -rf conftest*
19691   glibcpp_cv_func__logl_use=no
19692 fi
19693 rm -f conftest*
19694       ac_ext=c
19695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19696 ac_cpp='$CPP $CPPFLAGS'
19697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19699 cross_compiling=$ac_cv_prog_cc_cross
19700
19701     
19702 fi
19703
19704   fi
19705   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19706
19707     if test x$glibcpp_cv_func__logl_use = x"yes"; then
19708       for ac_func in _logl
19709 do
19710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19711 echo "configure:19712: checking for $ac_func" >&5
19712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19713   echo $ac_n "(cached) $ac_c" 1>&6
19714 else
19715   cat > conftest.$ac_ext <<EOF
19716 #line 19717 "configure"
19717 #include "confdefs.h"
19718 /* System header to define __stub macros and hopefully few prototypes,
19719     which can conflict with char $ac_func(); below.  */
19720 #include <assert.h>
19721 /* Override any gcc2 internal prototype to avoid an error.  */
19722 /* We use char because int might match the return type of a gcc2
19723     builtin and then its argument prototype would still apply.  */
19724 char $ac_func();
19725
19726 int main() {
19727
19728 /* The GNU C library defines this for functions which it implements
19729     to always fail with ENOSYS.  Some functions are actually named
19730     something starting with __ and the normal name is an alias.  */
19731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19732 choke me
19733 #else
19734 $ac_func();
19735 #endif
19736
19737 ; return 0; }
19738 EOF
19739 if { (eval echo configure:19740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19740   rm -rf conftest*
19741   eval "ac_cv_func_$ac_func=yes"
19742 else
19743   echo "configure: failed program was:" >&5
19744   cat conftest.$ac_ext >&5
19745   rm -rf conftest*
19746   eval "ac_cv_func_$ac_func=no"
19747 fi
19748 rm -f conftest*
19749 fi
19750
19751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19752   echo "$ac_t""yes" 1>&6
19753     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19754   cat >> confdefs.h <<EOF
19755 #define $ac_tr_func 1
19756 EOF
19757  
19758 else
19759   echo "$ac_t""no" 1>&6
19760 fi
19761 done
19762     
19763     fi
19764   fi
19765
19766   
19767   
19768   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19769 echo "configure:19770: checking for log10l declaration" >&5
19770   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19771     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19772   echo $ac_n "(cached) $ac_c" 1>&6
19773 else
19774   
19775       
19776       ac_ext=C
19777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19778 ac_cpp='$CXXCPP $CPPFLAGS'
19779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19781 cross_compiling=$ac_cv_prog_cxx_cross
19782
19783       cat > conftest.$ac_ext <<EOF
19784 #line 19785 "configure"
19785 #include "confdefs.h"
19786 #include <math.h>
19787                       #ifdef HAVE_IEEEFP_H
19788                       #include <ieeefp.h>
19789                       #endif
19790                      
19791 int main() {
19792  log10l(0);
19793 ; return 0; }
19794 EOF
19795 if { (eval echo configure:19796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19796   rm -rf conftest*
19797   glibcpp_cv_func_log10l_use=yes
19798 else
19799   echo "configure: failed program was:" >&5
19800   cat conftest.$ac_ext >&5
19801   rm -rf conftest*
19802   glibcpp_cv_func_log10l_use=no
19803 fi
19804 rm -f conftest*
19805       ac_ext=c
19806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19807 ac_cpp='$CPP $CPPFLAGS'
19808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19810 cross_compiling=$ac_cv_prog_cc_cross
19811
19812     
19813 fi
19814
19815   fi
19816   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
19817
19818   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
19819     for ac_func in log10l
19820 do
19821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19822 echo "configure:19823: checking for $ac_func" >&5
19823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19824   echo $ac_n "(cached) $ac_c" 1>&6
19825 else
19826   cat > conftest.$ac_ext <<EOF
19827 #line 19828 "configure"
19828 #include "confdefs.h"
19829 /* System header to define __stub macros and hopefully few prototypes,
19830     which can conflict with char $ac_func(); below.  */
19831 #include <assert.h>
19832 /* Override any gcc2 internal prototype to avoid an error.  */
19833 /* We use char because int might match the return type of a gcc2
19834     builtin and then its argument prototype would still apply.  */
19835 char $ac_func();
19836
19837 int main() {
19838
19839 /* The GNU C library defines this for functions which it implements
19840     to always fail with ENOSYS.  Some functions are actually named
19841     something starting with __ and the normal name is an alias.  */
19842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19843 choke me
19844 #else
19845 $ac_func();
19846 #endif
19847
19848 ; return 0; }
19849 EOF
19850 if { (eval echo configure:19851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19851   rm -rf conftest*
19852   eval "ac_cv_func_$ac_func=yes"
19853 else
19854   echo "configure: failed program was:" >&5
19855   cat conftest.$ac_ext >&5
19856   rm -rf conftest*
19857   eval "ac_cv_func_$ac_func=no"
19858 fi
19859 rm -f conftest*
19860 fi
19861
19862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19863   echo "$ac_t""yes" 1>&6
19864     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19865   cat >> confdefs.h <<EOF
19866 #define $ac_tr_func 1
19867 EOF
19868  
19869 else
19870   echo "$ac_t""no" 1>&6
19871 fi
19872 done
19873     
19874   else
19875     
19876   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
19877 echo "configure:19878: checking for _log10l declaration" >&5
19878   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
19879     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
19880   echo $ac_n "(cached) $ac_c" 1>&6
19881 else
19882   
19883       
19884       ac_ext=C
19885 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19886 ac_cpp='$CXXCPP $CPPFLAGS'
19887 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19888 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19889 cross_compiling=$ac_cv_prog_cxx_cross
19890
19891       cat > conftest.$ac_ext <<EOF
19892 #line 19893 "configure"
19893 #include "confdefs.h"
19894 #include <math.h>
19895                       #ifdef HAVE_IEEEFP_H
19896                       #include <ieeefp.h>
19897                       #endif
19898                      
19899 int main() {
19900  _log10l(0);
19901 ; return 0; }
19902 EOF
19903 if { (eval echo configure:19904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19904   rm -rf conftest*
19905   glibcpp_cv_func__log10l_use=yes
19906 else
19907   echo "configure: failed program was:" >&5
19908   cat conftest.$ac_ext >&5
19909   rm -rf conftest*
19910   glibcpp_cv_func__log10l_use=no
19911 fi
19912 rm -f conftest*
19913       ac_ext=c
19914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19915 ac_cpp='$CPP $CPPFLAGS'
19916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19918 cross_compiling=$ac_cv_prog_cc_cross
19919
19920     
19921 fi
19922
19923   fi
19924   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
19925
19926     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19927       for ac_func in _log10l
19928 do
19929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19930 echo "configure:19931: checking for $ac_func" >&5
19931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19932   echo $ac_n "(cached) $ac_c" 1>&6
19933 else
19934   cat > conftest.$ac_ext <<EOF
19935 #line 19936 "configure"
19936 #include "confdefs.h"
19937 /* System header to define __stub macros and hopefully few prototypes,
19938     which can conflict with char $ac_func(); below.  */
19939 #include <assert.h>
19940 /* Override any gcc2 internal prototype to avoid an error.  */
19941 /* We use char because int might match the return type of a gcc2
19942     builtin and then its argument prototype would still apply.  */
19943 char $ac_func();
19944
19945 int main() {
19946
19947 /* The GNU C library defines this for functions which it implements
19948     to always fail with ENOSYS.  Some functions are actually named
19949     something starting with __ and the normal name is an alias.  */
19950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19951 choke me
19952 #else
19953 $ac_func();
19954 #endif
19955
19956 ; return 0; }
19957 EOF
19958 if { (eval echo configure:19959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19959   rm -rf conftest*
19960   eval "ac_cv_func_$ac_func=yes"
19961 else
19962   echo "configure: failed program was:" >&5
19963   cat conftest.$ac_ext >&5
19964   rm -rf conftest*
19965   eval "ac_cv_func_$ac_func=no"
19966 fi
19967 rm -f conftest*
19968 fi
19969
19970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19971   echo "$ac_t""yes" 1>&6
19972     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19973   cat >> confdefs.h <<EOF
19974 #define $ac_tr_func 1
19975 EOF
19976  
19977 else
19978   echo "$ac_t""no" 1>&6
19979 fi
19980 done
19981     
19982     fi
19983   fi
19984
19985   
19986   
19987   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19988 echo "configure:19989: checking for modfl declaration" >&5
19989   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19990     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19991   echo $ac_n "(cached) $ac_c" 1>&6
19992 else
19993   
19994       
19995       ac_ext=C
19996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19997 ac_cpp='$CXXCPP $CPPFLAGS'
19998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20000 cross_compiling=$ac_cv_prog_cxx_cross
20001
20002       cat > conftest.$ac_ext <<EOF
20003 #line 20004 "configure"
20004 #include "confdefs.h"
20005 #include <math.h>
20006 int main() {
20007  modfl(0, 0);
20008 ; return 0; }
20009 EOF
20010 if { (eval echo configure:20011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20011   rm -rf conftest*
20012   glibcpp_cv_func_modfl_use=yes
20013 else
20014   echo "configure: failed program was:" >&5
20015   cat conftest.$ac_ext >&5
20016   rm -rf conftest*
20017   glibcpp_cv_func_modfl_use=no
20018 fi
20019 rm -f conftest*
20020       ac_ext=c
20021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20022 ac_cpp='$CPP $CPPFLAGS'
20023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20025 cross_compiling=$ac_cv_prog_cc_cross
20026
20027     
20028 fi
20029
20030   fi
20031   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20032
20033   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20034     for ac_func in modfl
20035 do
20036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20037 echo "configure:20038: checking for $ac_func" >&5
20038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20039   echo $ac_n "(cached) $ac_c" 1>&6
20040 else
20041   cat > conftest.$ac_ext <<EOF
20042 #line 20043 "configure"
20043 #include "confdefs.h"
20044 /* System header to define __stub macros and hopefully few prototypes,
20045     which can conflict with char $ac_func(); below.  */
20046 #include <assert.h>
20047 /* Override any gcc2 internal prototype to avoid an error.  */
20048 /* We use char because int might match the return type of a gcc2
20049     builtin and then its argument prototype would still apply.  */
20050 char $ac_func();
20051
20052 int main() {
20053
20054 /* The GNU C library defines this for functions which it implements
20055     to always fail with ENOSYS.  Some functions are actually named
20056     something starting with __ and the normal name is an alias.  */
20057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20058 choke me
20059 #else
20060 $ac_func();
20061 #endif
20062
20063 ; return 0; }
20064 EOF
20065 if { (eval echo configure:20066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20066   rm -rf conftest*
20067   eval "ac_cv_func_$ac_func=yes"
20068 else
20069   echo "configure: failed program was:" >&5
20070   cat conftest.$ac_ext >&5
20071   rm -rf conftest*
20072   eval "ac_cv_func_$ac_func=no"
20073 fi
20074 rm -f conftest*
20075 fi
20076
20077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20078   echo "$ac_t""yes" 1>&6
20079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20080   cat >> confdefs.h <<EOF
20081 #define $ac_tr_func 1
20082 EOF
20083  
20084 else
20085   echo "$ac_t""no" 1>&6
20086 fi
20087 done
20088     
20089   else
20090     
20091   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20092 echo "configure:20093: checking for _modfl declaration" >&5
20093   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20094     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20095   echo $ac_n "(cached) $ac_c" 1>&6
20096 else
20097   
20098       
20099       ac_ext=C
20100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20101 ac_cpp='$CXXCPP $CPPFLAGS'
20102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20104 cross_compiling=$ac_cv_prog_cxx_cross
20105
20106       cat > conftest.$ac_ext <<EOF
20107 #line 20108 "configure"
20108 #include "confdefs.h"
20109 #include <math.h>
20110 int main() {
20111  _modfl(0, 0);
20112 ; return 0; }
20113 EOF
20114 if { (eval echo configure:20115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20115   rm -rf conftest*
20116   glibcpp_cv_func__modfl_use=yes
20117 else
20118   echo "configure: failed program was:" >&5
20119   cat conftest.$ac_ext >&5
20120   rm -rf conftest*
20121   glibcpp_cv_func__modfl_use=no
20122 fi
20123 rm -f conftest*
20124       ac_ext=c
20125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20126 ac_cpp='$CPP $CPPFLAGS'
20127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20129 cross_compiling=$ac_cv_prog_cc_cross
20130
20131     
20132 fi
20133
20134   fi
20135   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20136
20137     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20138       for ac_func in _modfl
20139 do
20140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20141 echo "configure:20142: checking for $ac_func" >&5
20142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20143   echo $ac_n "(cached) $ac_c" 1>&6
20144 else
20145   cat > conftest.$ac_ext <<EOF
20146 #line 20147 "configure"
20147 #include "confdefs.h"
20148 /* System header to define __stub macros and hopefully few prototypes,
20149     which can conflict with char $ac_func(); below.  */
20150 #include <assert.h>
20151 /* Override any gcc2 internal prototype to avoid an error.  */
20152 /* We use char because int might match the return type of a gcc2
20153     builtin and then its argument prototype would still apply.  */
20154 char $ac_func();
20155
20156 int main() {
20157
20158 /* The GNU C library defines this for functions which it implements
20159     to always fail with ENOSYS.  Some functions are actually named
20160     something starting with __ and the normal name is an alias.  */
20161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20162 choke me
20163 #else
20164 $ac_func();
20165 #endif
20166
20167 ; return 0; }
20168 EOF
20169 if { (eval echo configure:20170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20170   rm -rf conftest*
20171   eval "ac_cv_func_$ac_func=yes"
20172 else
20173   echo "configure: failed program was:" >&5
20174   cat conftest.$ac_ext >&5
20175   rm -rf conftest*
20176   eval "ac_cv_func_$ac_func=no"
20177 fi
20178 rm -f conftest*
20179 fi
20180
20181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20182   echo "$ac_t""yes" 1>&6
20183     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20184   cat >> confdefs.h <<EOF
20185 #define $ac_tr_func 1
20186 EOF
20187  
20188 else
20189   echo "$ac_t""no" 1>&6
20190 fi
20191 done
20192     
20193     fi
20194   fi
20195
20196   
20197   
20198   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20199 echo "configure:20200: checking for powl declaration" >&5
20200   if test x${glibcpp_cv_func_powl_use+set} != xset; then
20201     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20202   echo $ac_n "(cached) $ac_c" 1>&6
20203 else
20204   
20205       
20206       ac_ext=C
20207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20208 ac_cpp='$CXXCPP $CPPFLAGS'
20209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20211 cross_compiling=$ac_cv_prog_cxx_cross
20212
20213       cat > conftest.$ac_ext <<EOF
20214 #line 20215 "configure"
20215 #include "confdefs.h"
20216 #include <math.h>
20217 int main() {
20218  powl(0, 0);
20219 ; return 0; }
20220 EOF
20221 if { (eval echo configure:20222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20222   rm -rf conftest*
20223   glibcpp_cv_func_powl_use=yes
20224 else
20225   echo "configure: failed program was:" >&5
20226   cat conftest.$ac_ext >&5
20227   rm -rf conftest*
20228   glibcpp_cv_func_powl_use=no
20229 fi
20230 rm -f conftest*
20231       ac_ext=c
20232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20233 ac_cpp='$CPP $CPPFLAGS'
20234 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20235 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20236 cross_compiling=$ac_cv_prog_cc_cross
20237
20238     
20239 fi
20240
20241   fi
20242   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20243
20244   if test x$glibcpp_cv_func_powl_use = x"yes"; then
20245     for ac_func in powl
20246 do
20247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20248 echo "configure:20249: checking for $ac_func" >&5
20249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20250   echo $ac_n "(cached) $ac_c" 1>&6
20251 else
20252   cat > conftest.$ac_ext <<EOF
20253 #line 20254 "configure"
20254 #include "confdefs.h"
20255 /* System header to define __stub macros and hopefully few prototypes,
20256     which can conflict with char $ac_func(); below.  */
20257 #include <assert.h>
20258 /* Override any gcc2 internal prototype to avoid an error.  */
20259 /* We use char because int might match the return type of a gcc2
20260     builtin and then its argument prototype would still apply.  */
20261 char $ac_func();
20262
20263 int main() {
20264
20265 /* The GNU C library defines this for functions which it implements
20266     to always fail with ENOSYS.  Some functions are actually named
20267     something starting with __ and the normal name is an alias.  */
20268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20269 choke me
20270 #else
20271 $ac_func();
20272 #endif
20273
20274 ; return 0; }
20275 EOF
20276 if { (eval echo configure:20277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20277   rm -rf conftest*
20278   eval "ac_cv_func_$ac_func=yes"
20279 else
20280   echo "configure: failed program was:" >&5
20281   cat conftest.$ac_ext >&5
20282   rm -rf conftest*
20283   eval "ac_cv_func_$ac_func=no"
20284 fi
20285 rm -f conftest*
20286 fi
20287
20288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20289   echo "$ac_t""yes" 1>&6
20290     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20291   cat >> confdefs.h <<EOF
20292 #define $ac_tr_func 1
20293 EOF
20294  
20295 else
20296   echo "$ac_t""no" 1>&6
20297 fi
20298 done
20299     
20300   else
20301     
20302   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20303 echo "configure:20304: checking for _powl declaration" >&5
20304   if test x${glibcpp_cv_func__powl_use+set} != xset; then
20305     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20306   echo $ac_n "(cached) $ac_c" 1>&6
20307 else
20308   
20309       
20310       ac_ext=C
20311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20312 ac_cpp='$CXXCPP $CPPFLAGS'
20313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20315 cross_compiling=$ac_cv_prog_cxx_cross
20316
20317       cat > conftest.$ac_ext <<EOF
20318 #line 20319 "configure"
20319 #include "confdefs.h"
20320 #include <math.h>
20321 int main() {
20322  _powl(0, 0);
20323 ; return 0; }
20324 EOF
20325 if { (eval echo configure:20326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20326   rm -rf conftest*
20327   glibcpp_cv_func__powl_use=yes
20328 else
20329   echo "configure: failed program was:" >&5
20330   cat conftest.$ac_ext >&5
20331   rm -rf conftest*
20332   glibcpp_cv_func__powl_use=no
20333 fi
20334 rm -f conftest*
20335       ac_ext=c
20336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20337 ac_cpp='$CPP $CPPFLAGS'
20338 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20339 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20340 cross_compiling=$ac_cv_prog_cc_cross
20341
20342     
20343 fi
20344
20345   fi
20346   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20347
20348     if test x$glibcpp_cv_func__powl_use = x"yes"; then
20349       for ac_func in _powl
20350 do
20351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20352 echo "configure:20353: checking for $ac_func" >&5
20353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20354   echo $ac_n "(cached) $ac_c" 1>&6
20355 else
20356   cat > conftest.$ac_ext <<EOF
20357 #line 20358 "configure"
20358 #include "confdefs.h"
20359 /* System header to define __stub macros and hopefully few prototypes,
20360     which can conflict with char $ac_func(); below.  */
20361 #include <assert.h>
20362 /* Override any gcc2 internal prototype to avoid an error.  */
20363 /* We use char because int might match the return type of a gcc2
20364     builtin and then its argument prototype would still apply.  */
20365 char $ac_func();
20366
20367 int main() {
20368
20369 /* The GNU C library defines this for functions which it implements
20370     to always fail with ENOSYS.  Some functions are actually named
20371     something starting with __ and the normal name is an alias.  */
20372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20373 choke me
20374 #else
20375 $ac_func();
20376 #endif
20377
20378 ; return 0; }
20379 EOF
20380 if { (eval echo configure:20381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20381   rm -rf conftest*
20382   eval "ac_cv_func_$ac_func=yes"
20383 else
20384   echo "configure: failed program was:" >&5
20385   cat conftest.$ac_ext >&5
20386   rm -rf conftest*
20387   eval "ac_cv_func_$ac_func=no"
20388 fi
20389 rm -f conftest*
20390 fi
20391
20392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20393   echo "$ac_t""yes" 1>&6
20394     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20395   cat >> confdefs.h <<EOF
20396 #define $ac_tr_func 1
20397 EOF
20398  
20399 else
20400   echo "$ac_t""no" 1>&6
20401 fi
20402 done
20403     
20404     fi
20405   fi
20406
20407   
20408   
20409   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20410 echo "configure:20411: checking for sqrtl declaration" >&5
20411   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20412     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20413   echo $ac_n "(cached) $ac_c" 1>&6
20414 else
20415   
20416       
20417       ac_ext=C
20418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20419 ac_cpp='$CXXCPP $CPPFLAGS'
20420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20422 cross_compiling=$ac_cv_prog_cxx_cross
20423
20424       cat > conftest.$ac_ext <<EOF
20425 #line 20426 "configure"
20426 #include "confdefs.h"
20427 #include <math.h>
20428                       #ifdef HAVE_IEEEFP_H
20429                       #include <ieeefp.h>
20430                       #endif
20431                      
20432 int main() {
20433  sqrtl(0);
20434 ; return 0; }
20435 EOF
20436 if { (eval echo configure:20437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20437   rm -rf conftest*
20438   glibcpp_cv_func_sqrtl_use=yes
20439 else
20440   echo "configure: failed program was:" >&5
20441   cat conftest.$ac_ext >&5
20442   rm -rf conftest*
20443   glibcpp_cv_func_sqrtl_use=no
20444 fi
20445 rm -f conftest*
20446       ac_ext=c
20447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20448 ac_cpp='$CPP $CPPFLAGS'
20449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20451 cross_compiling=$ac_cv_prog_cc_cross
20452
20453     
20454 fi
20455
20456   fi
20457   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20458
20459   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20460     for ac_func in sqrtl
20461 do
20462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20463 echo "configure:20464: checking for $ac_func" >&5
20464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20465   echo $ac_n "(cached) $ac_c" 1>&6
20466 else
20467   cat > conftest.$ac_ext <<EOF
20468 #line 20469 "configure"
20469 #include "confdefs.h"
20470 /* System header to define __stub macros and hopefully few prototypes,
20471     which can conflict with char $ac_func(); below.  */
20472 #include <assert.h>
20473 /* Override any gcc2 internal prototype to avoid an error.  */
20474 /* We use char because int might match the return type of a gcc2
20475     builtin and then its argument prototype would still apply.  */
20476 char $ac_func();
20477
20478 int main() {
20479
20480 /* The GNU C library defines this for functions which it implements
20481     to always fail with ENOSYS.  Some functions are actually named
20482     something starting with __ and the normal name is an alias.  */
20483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20484 choke me
20485 #else
20486 $ac_func();
20487 #endif
20488
20489 ; return 0; }
20490 EOF
20491 if { (eval echo configure:20492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20492   rm -rf conftest*
20493   eval "ac_cv_func_$ac_func=yes"
20494 else
20495   echo "configure: failed program was:" >&5
20496   cat conftest.$ac_ext >&5
20497   rm -rf conftest*
20498   eval "ac_cv_func_$ac_func=no"
20499 fi
20500 rm -f conftest*
20501 fi
20502
20503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20504   echo "$ac_t""yes" 1>&6
20505     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20506   cat >> confdefs.h <<EOF
20507 #define $ac_tr_func 1
20508 EOF
20509  
20510 else
20511   echo "$ac_t""no" 1>&6
20512 fi
20513 done
20514     
20515   else
20516     
20517   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20518 echo "configure:20519: checking for _sqrtl declaration" >&5
20519   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20520     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20521   echo $ac_n "(cached) $ac_c" 1>&6
20522 else
20523   
20524       
20525       ac_ext=C
20526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20527 ac_cpp='$CXXCPP $CPPFLAGS'
20528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20530 cross_compiling=$ac_cv_prog_cxx_cross
20531
20532       cat > conftest.$ac_ext <<EOF
20533 #line 20534 "configure"
20534 #include "confdefs.h"
20535 #include <math.h>
20536                       #ifdef HAVE_IEEEFP_H
20537                       #include <ieeefp.h>
20538                       #endif
20539                      
20540 int main() {
20541  _sqrtl(0);
20542 ; return 0; }
20543 EOF
20544 if { (eval echo configure:20545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20545   rm -rf conftest*
20546   glibcpp_cv_func__sqrtl_use=yes
20547 else
20548   echo "configure: failed program was:" >&5
20549   cat conftest.$ac_ext >&5
20550   rm -rf conftest*
20551   glibcpp_cv_func__sqrtl_use=no
20552 fi
20553 rm -f conftest*
20554       ac_ext=c
20555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20556 ac_cpp='$CPP $CPPFLAGS'
20557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20559 cross_compiling=$ac_cv_prog_cc_cross
20560
20561     
20562 fi
20563
20564   fi
20565   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20566
20567     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20568       for ac_func in _sqrtl
20569 do
20570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20571 echo "configure:20572: checking for $ac_func" >&5
20572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20573   echo $ac_n "(cached) $ac_c" 1>&6
20574 else
20575   cat > conftest.$ac_ext <<EOF
20576 #line 20577 "configure"
20577 #include "confdefs.h"
20578 /* System header to define __stub macros and hopefully few prototypes,
20579     which can conflict with char $ac_func(); below.  */
20580 #include <assert.h>
20581 /* Override any gcc2 internal prototype to avoid an error.  */
20582 /* We use char because int might match the return type of a gcc2
20583     builtin and then its argument prototype would still apply.  */
20584 char $ac_func();
20585
20586 int main() {
20587
20588 /* The GNU C library defines this for functions which it implements
20589     to always fail with ENOSYS.  Some functions are actually named
20590     something starting with __ and the normal name is an alias.  */
20591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20592 choke me
20593 #else
20594 $ac_func();
20595 #endif
20596
20597 ; return 0; }
20598 EOF
20599 if { (eval echo configure:20600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20600   rm -rf conftest*
20601   eval "ac_cv_func_$ac_func=yes"
20602 else
20603   echo "configure: failed program was:" >&5
20604   cat conftest.$ac_ext >&5
20605   rm -rf conftest*
20606   eval "ac_cv_func_$ac_func=no"
20607 fi
20608 rm -f conftest*
20609 fi
20610
20611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20612   echo "$ac_t""yes" 1>&6
20613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20614   cat >> confdefs.h <<EOF
20615 #define $ac_tr_func 1
20616 EOF
20617  
20618 else
20619   echo "$ac_t""no" 1>&6
20620 fi
20621 done
20622     
20623     fi
20624   fi
20625
20626   
20627   
20628   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20629 echo "configure:20630: checking for sincosl declaration" >&5
20630   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20631     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20632   echo $ac_n "(cached) $ac_c" 1>&6
20633 else
20634   
20635       
20636       ac_ext=C
20637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20638 ac_cpp='$CXXCPP $CPPFLAGS'
20639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20641 cross_compiling=$ac_cv_prog_cxx_cross
20642
20643       cat > conftest.$ac_ext <<EOF
20644 #line 20645 "configure"
20645 #include "confdefs.h"
20646 #include <math.h>
20647 int main() {
20648  sincosl(0, 0, 0);
20649 ; return 0; }
20650 EOF
20651 if { (eval echo configure:20652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20652   rm -rf conftest*
20653   glibcpp_cv_func_sincosl_use=yes
20654 else
20655   echo "configure: failed program was:" >&5
20656   cat conftest.$ac_ext >&5
20657   rm -rf conftest*
20658   glibcpp_cv_func_sincosl_use=no
20659 fi
20660 rm -f conftest*
20661       ac_ext=c
20662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20666 cross_compiling=$ac_cv_prog_cc_cross
20667
20668     
20669 fi
20670
20671   fi
20672   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20673
20674   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20675     for ac_func in sincosl
20676 do
20677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20678 echo "configure:20679: checking for $ac_func" >&5
20679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20680   echo $ac_n "(cached) $ac_c" 1>&6
20681 else
20682   cat > conftest.$ac_ext <<EOF
20683 #line 20684 "configure"
20684 #include "confdefs.h"
20685 /* System header to define __stub macros and hopefully few prototypes,
20686     which can conflict with char $ac_func(); below.  */
20687 #include <assert.h>
20688 /* Override any gcc2 internal prototype to avoid an error.  */
20689 /* We use char because int might match the return type of a gcc2
20690     builtin and then its argument prototype would still apply.  */
20691 char $ac_func();
20692
20693 int main() {
20694
20695 /* The GNU C library defines this for functions which it implements
20696     to always fail with ENOSYS.  Some functions are actually named
20697     something starting with __ and the normal name is an alias.  */
20698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20699 choke me
20700 #else
20701 $ac_func();
20702 #endif
20703
20704 ; return 0; }
20705 EOF
20706 if { (eval echo configure:20707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20707   rm -rf conftest*
20708   eval "ac_cv_func_$ac_func=yes"
20709 else
20710   echo "configure: failed program was:" >&5
20711   cat conftest.$ac_ext >&5
20712   rm -rf conftest*
20713   eval "ac_cv_func_$ac_func=no"
20714 fi
20715 rm -f conftest*
20716 fi
20717
20718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20719   echo "$ac_t""yes" 1>&6
20720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20721   cat >> confdefs.h <<EOF
20722 #define $ac_tr_func 1
20723 EOF
20724  
20725 else
20726   echo "$ac_t""no" 1>&6
20727 fi
20728 done
20729     
20730   else
20731     
20732   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20733 echo "configure:20734: checking for _sincosl declaration" >&5
20734   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20735     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20736   echo $ac_n "(cached) $ac_c" 1>&6
20737 else
20738   
20739       
20740       ac_ext=C
20741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20742 ac_cpp='$CXXCPP $CPPFLAGS'
20743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20745 cross_compiling=$ac_cv_prog_cxx_cross
20746
20747       cat > conftest.$ac_ext <<EOF
20748 #line 20749 "configure"
20749 #include "confdefs.h"
20750 #include <math.h>
20751 int main() {
20752  _sincosl(0, 0, 0);
20753 ; return 0; }
20754 EOF
20755 if { (eval echo configure:20756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20756   rm -rf conftest*
20757   glibcpp_cv_func__sincosl_use=yes
20758 else
20759   echo "configure: failed program was:" >&5
20760   cat conftest.$ac_ext >&5
20761   rm -rf conftest*
20762   glibcpp_cv_func__sincosl_use=no
20763 fi
20764 rm -f conftest*
20765       ac_ext=c
20766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20767 ac_cpp='$CPP $CPPFLAGS'
20768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20770 cross_compiling=$ac_cv_prog_cc_cross
20771
20772     
20773 fi
20774
20775   fi
20776   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20777
20778     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20779       for ac_func in _sincosl
20780 do
20781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20782 echo "configure:20783: checking for $ac_func" >&5
20783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20784   echo $ac_n "(cached) $ac_c" 1>&6
20785 else
20786   cat > conftest.$ac_ext <<EOF
20787 #line 20788 "configure"
20788 #include "confdefs.h"
20789 /* System header to define __stub macros and hopefully few prototypes,
20790     which can conflict with char $ac_func(); below.  */
20791 #include <assert.h>
20792 /* Override any gcc2 internal prototype to avoid an error.  */
20793 /* We use char because int might match the return type of a gcc2
20794     builtin and then its argument prototype would still apply.  */
20795 char $ac_func();
20796
20797 int main() {
20798
20799 /* The GNU C library defines this for functions which it implements
20800     to always fail with ENOSYS.  Some functions are actually named
20801     something starting with __ and the normal name is an alias.  */
20802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20803 choke me
20804 #else
20805 $ac_func();
20806 #endif
20807
20808 ; return 0; }
20809 EOF
20810 if { (eval echo configure:20811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20811   rm -rf conftest*
20812   eval "ac_cv_func_$ac_func=yes"
20813 else
20814   echo "configure: failed program was:" >&5
20815   cat conftest.$ac_ext >&5
20816   rm -rf conftest*
20817   eval "ac_cv_func_$ac_func=no"
20818 fi
20819 rm -f conftest*
20820 fi
20821
20822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20823   echo "$ac_t""yes" 1>&6
20824     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20825   cat >> confdefs.h <<EOF
20826 #define $ac_tr_func 1
20827 EOF
20828  
20829 else
20830   echo "$ac_t""no" 1>&6
20831 fi
20832 done
20833     
20834     fi
20835   fi
20836
20837   
20838   
20839   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
20840 echo "configure:20841: checking for finitel declaration" >&5
20841   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
20842     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
20843   echo $ac_n "(cached) $ac_c" 1>&6
20844 else
20845   
20846       
20847       ac_ext=C
20848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20849 ac_cpp='$CXXCPP $CPPFLAGS'
20850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20852 cross_compiling=$ac_cv_prog_cxx_cross
20853
20854       cat > conftest.$ac_ext <<EOF
20855 #line 20856 "configure"
20856 #include "confdefs.h"
20857 #include <math.h>
20858                       #ifdef HAVE_IEEEFP_H
20859                       #include <ieeefp.h>
20860                       #endif
20861                      
20862 int main() {
20863  finitel(0);
20864 ; return 0; }
20865 EOF
20866 if { (eval echo configure:20867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20867   rm -rf conftest*
20868   glibcpp_cv_func_finitel_use=yes
20869 else
20870   echo "configure: failed program was:" >&5
20871   cat conftest.$ac_ext >&5
20872   rm -rf conftest*
20873   glibcpp_cv_func_finitel_use=no
20874 fi
20875 rm -f conftest*
20876       ac_ext=c
20877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20878 ac_cpp='$CPP $CPPFLAGS'
20879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20881 cross_compiling=$ac_cv_prog_cc_cross
20882
20883     
20884 fi
20885
20886   fi
20887   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
20888
20889   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
20890     for ac_func in finitel
20891 do
20892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20893 echo "configure:20894: checking for $ac_func" >&5
20894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20895   echo $ac_n "(cached) $ac_c" 1>&6
20896 else
20897   cat > conftest.$ac_ext <<EOF
20898 #line 20899 "configure"
20899 #include "confdefs.h"
20900 /* System header to define __stub macros and hopefully few prototypes,
20901     which can conflict with char $ac_func(); below.  */
20902 #include <assert.h>
20903 /* Override any gcc2 internal prototype to avoid an error.  */
20904 /* We use char because int might match the return type of a gcc2
20905     builtin and then its argument prototype would still apply.  */
20906 char $ac_func();
20907
20908 int main() {
20909
20910 /* The GNU C library defines this for functions which it implements
20911     to always fail with ENOSYS.  Some functions are actually named
20912     something starting with __ and the normal name is an alias.  */
20913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20914 choke me
20915 #else
20916 $ac_func();
20917 #endif
20918
20919 ; return 0; }
20920 EOF
20921 if { (eval echo configure:20922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20922   rm -rf conftest*
20923   eval "ac_cv_func_$ac_func=yes"
20924 else
20925   echo "configure: failed program was:" >&5
20926   cat conftest.$ac_ext >&5
20927   rm -rf conftest*
20928   eval "ac_cv_func_$ac_func=no"
20929 fi
20930 rm -f conftest*
20931 fi
20932
20933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20934   echo "$ac_t""yes" 1>&6
20935     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20936   cat >> confdefs.h <<EOF
20937 #define $ac_tr_func 1
20938 EOF
20939  
20940 else
20941   echo "$ac_t""no" 1>&6
20942 fi
20943 done
20944     
20945   else
20946     
20947   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20948 echo "configure:20949: checking for _finitel declaration" >&5
20949   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20950     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20951   echo $ac_n "(cached) $ac_c" 1>&6
20952 else
20953   
20954       
20955       ac_ext=C
20956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20957 ac_cpp='$CXXCPP $CPPFLAGS'
20958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20960 cross_compiling=$ac_cv_prog_cxx_cross
20961
20962       cat > conftest.$ac_ext <<EOF
20963 #line 20964 "configure"
20964 #include "confdefs.h"
20965 #include <math.h>
20966                       #ifdef HAVE_IEEEFP_H
20967                       #include <ieeefp.h>
20968                       #endif
20969                      
20970 int main() {
20971  _finitel(0);
20972 ; return 0; }
20973 EOF
20974 if { (eval echo configure:20975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20975   rm -rf conftest*
20976   glibcpp_cv_func__finitel_use=yes
20977 else
20978   echo "configure: failed program was:" >&5
20979   cat conftest.$ac_ext >&5
20980   rm -rf conftest*
20981   glibcpp_cv_func__finitel_use=no
20982 fi
20983 rm -f conftest*
20984       ac_ext=c
20985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20986 ac_cpp='$CPP $CPPFLAGS'
20987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20989 cross_compiling=$ac_cv_prog_cc_cross
20990
20991     
20992 fi
20993
20994   fi
20995   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20996
20997     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20998       for ac_func in _finitel
20999 do
21000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21001 echo "configure:21002: checking for $ac_func" >&5
21002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21003   echo $ac_n "(cached) $ac_c" 1>&6
21004 else
21005   cat > conftest.$ac_ext <<EOF
21006 #line 21007 "configure"
21007 #include "confdefs.h"
21008 /* System header to define __stub macros and hopefully few prototypes,
21009     which can conflict with char $ac_func(); below.  */
21010 #include <assert.h>
21011 /* Override any gcc2 internal prototype to avoid an error.  */
21012 /* We use char because int might match the return type of a gcc2
21013     builtin and then its argument prototype would still apply.  */
21014 char $ac_func();
21015
21016 int main() {
21017
21018 /* The GNU C library defines this for functions which it implements
21019     to always fail with ENOSYS.  Some functions are actually named
21020     something starting with __ and the normal name is an alias.  */
21021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21022 choke me
21023 #else
21024 $ac_func();
21025 #endif
21026
21027 ; return 0; }
21028 EOF
21029 if { (eval echo configure:21030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21030   rm -rf conftest*
21031   eval "ac_cv_func_$ac_func=yes"
21032 else
21033   echo "configure: failed program was:" >&5
21034   cat conftest.$ac_ext >&5
21035   rm -rf conftest*
21036   eval "ac_cv_func_$ac_func=no"
21037 fi
21038 rm -f conftest*
21039 fi
21040
21041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21042   echo "$ac_t""yes" 1>&6
21043     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21044   cat >> confdefs.h <<EOF
21045 #define $ac_tr_func 1
21046 EOF
21047  
21048 else
21049   echo "$ac_t""no" 1>&6
21050 fi
21051 done
21052     
21053     fi
21054   fi
21055
21056
21057         
21058     
21059   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21060 echo "configure:21061: checking for _float trig functions" >&5
21061   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21062   echo $ac_n "(cached) $ac_c" 1>&6
21063 else
21064   
21065     
21066     ac_ext=C
21067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21068 ac_cpp='$CXXCPP $CPPFLAGS'
21069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21071 cross_compiling=$ac_cv_prog_cxx_cross
21072
21073     cat > conftest.$ac_ext <<EOF
21074 #line 21075 "configure"
21075 #include "confdefs.h"
21076 #include <math.h>
21077 int main() {
21078  `for x in _acosf _asinf _atanf \
21079                                           _cosf _sinf _tanf \
21080                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
21081 ; return 0; }
21082 EOF
21083 if { (eval echo configure:21084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21084   rm -rf conftest*
21085   glibcpp_cv_func__float_trig_use=yes
21086 else
21087   echo "configure: failed program was:" >&5
21088   cat conftest.$ac_ext >&5
21089   rm -rf conftest*
21090   glibcpp_cv_func__float_trig_use=no
21091 fi
21092 rm -f conftest*
21093     ac_ext=c
21094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21098 cross_compiling=$ac_cv_prog_cc_cross
21099
21100 fi
21101
21102   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21103   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21104     for ac_func in _acosf _asinf _atanf \
21105                                           _cosf _sinf _tanf \
21106                                           _coshf _sinhf _tanhf
21107 do
21108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21109 echo "configure:21110: checking for $ac_func" >&5
21110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21111   echo $ac_n "(cached) $ac_c" 1>&6
21112 else
21113   cat > conftest.$ac_ext <<EOF
21114 #line 21115 "configure"
21115 #include "confdefs.h"
21116 /* System header to define __stub macros and hopefully few prototypes,
21117     which can conflict with char $ac_func(); below.  */
21118 #include <assert.h>
21119 /* Override any gcc2 internal prototype to avoid an error.  */
21120 /* We use char because int might match the return type of a gcc2
21121     builtin and then its argument prototype would still apply.  */
21122 char $ac_func();
21123
21124 int main() {
21125
21126 /* The GNU C library defines this for functions which it implements
21127     to always fail with ENOSYS.  Some functions are actually named
21128     something starting with __ and the normal name is an alias.  */
21129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21130 choke me
21131 #else
21132 $ac_func();
21133 #endif
21134
21135 ; return 0; }
21136 EOF
21137 if { (eval echo configure:21138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21138   rm -rf conftest*
21139   eval "ac_cv_func_$ac_func=yes"
21140 else
21141   echo "configure: failed program was:" >&5
21142   cat conftest.$ac_ext >&5
21143   rm -rf conftest*
21144   eval "ac_cv_func_$ac_func=no"
21145 fi
21146 rm -f conftest*
21147 fi
21148
21149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21150   echo "$ac_t""yes" 1>&6
21151     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21152   cat >> confdefs.h <<EOF
21153 #define $ac_tr_func 1
21154 EOF
21155  
21156 else
21157   echo "$ac_t""no" 1>&6
21158 fi
21159 done
21160
21161   fi
21162
21163   
21164   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21165 echo "configure:21166: checking for _float round functions" >&5
21166   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21167   echo $ac_n "(cached) $ac_c" 1>&6
21168 else
21169   
21170     
21171     ac_ext=C
21172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21173 ac_cpp='$CXXCPP $CPPFLAGS'
21174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21176 cross_compiling=$ac_cv_prog_cxx_cross
21177
21178     cat > conftest.$ac_ext <<EOF
21179 #line 21180 "configure"
21180 #include "confdefs.h"
21181 #include <math.h>
21182 int main() {
21183  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
21184 ; return 0; }
21185 EOF
21186 if { (eval echo configure:21187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21187   rm -rf conftest*
21188   glibcpp_cv_func__float_round_use=yes
21189 else
21190   echo "configure: failed program was:" >&5
21191   cat conftest.$ac_ext >&5
21192   rm -rf conftest*
21193   glibcpp_cv_func__float_round_use=no
21194 fi
21195 rm -f conftest*
21196     ac_ext=c
21197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21198 ac_cpp='$CPP $CPPFLAGS'
21199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21201 cross_compiling=$ac_cv_prog_cc_cross
21202
21203 fi
21204
21205   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21206   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21207     for ac_func in _ceilf _floorf
21208 do
21209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21210 echo "configure:21211: checking for $ac_func" >&5
21211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21212   echo $ac_n "(cached) $ac_c" 1>&6
21213 else
21214   cat > conftest.$ac_ext <<EOF
21215 #line 21216 "configure"
21216 #include "confdefs.h"
21217 /* System header to define __stub macros and hopefully few prototypes,
21218     which can conflict with char $ac_func(); below.  */
21219 #include <assert.h>
21220 /* Override any gcc2 internal prototype to avoid an error.  */
21221 /* We use char because int might match the return type of a gcc2
21222     builtin and then its argument prototype would still apply.  */
21223 char $ac_func();
21224
21225 int main() {
21226
21227 /* The GNU C library defines this for functions which it implements
21228     to always fail with ENOSYS.  Some functions are actually named
21229     something starting with __ and the normal name is an alias.  */
21230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21231 choke me
21232 #else
21233 $ac_func();
21234 #endif
21235
21236 ; return 0; }
21237 EOF
21238 if { (eval echo configure:21239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21239   rm -rf conftest*
21240   eval "ac_cv_func_$ac_func=yes"
21241 else
21242   echo "configure: failed program was:" >&5
21243   cat conftest.$ac_ext >&5
21244   rm -rf conftest*
21245   eval "ac_cv_func_$ac_func=no"
21246 fi
21247 rm -f conftest*
21248 fi
21249
21250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21251   echo "$ac_t""yes" 1>&6
21252     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21253   cat >> confdefs.h <<EOF
21254 #define $ac_tr_func 1
21255 EOF
21256  
21257 else
21258   echo "$ac_t""no" 1>&6
21259 fi
21260 done
21261
21262   fi
21263
21264
21265     
21266   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21267 echo "configure:21268: checking for _long double trig functions" >&5
21268   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21269   echo $ac_n "(cached) $ac_c" 1>&6
21270 else
21271   
21272     
21273     ac_ext=C
21274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21275 ac_cpp='$CXXCPP $CPPFLAGS'
21276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21278 cross_compiling=$ac_cv_prog_cxx_cross
21279
21280     cat > conftest.$ac_ext <<EOF
21281 #line 21282 "configure"
21282 #include "confdefs.h"
21283 #include <math.h>
21284 int main() {
21285  `for x in _acosl _asinl _atanl \
21286                                           _cosl _sinl _tanl \
21287                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
21288 ; return 0; }
21289 EOF
21290 if { (eval echo configure:21291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21291   rm -rf conftest*
21292   glibcpp_cv_func__long_double_trig_use=yes
21293 else
21294   echo "configure: failed program was:" >&5
21295   cat conftest.$ac_ext >&5
21296   rm -rf conftest*
21297   glibcpp_cv_func__long_double_trig_use=no
21298 fi
21299 rm -f conftest*
21300     ac_ext=c
21301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21302 ac_cpp='$CPP $CPPFLAGS'
21303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21305 cross_compiling=$ac_cv_prog_cc_cross
21306
21307 fi
21308
21309   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21310   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21311     for ac_func in _acosl _asinl _atanl \
21312                                           _cosl _sinl _tanl \
21313                                           _coshl _sinhl _tanhl
21314 do
21315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21316 echo "configure:21317: checking for $ac_func" >&5
21317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21318   echo $ac_n "(cached) $ac_c" 1>&6
21319 else
21320   cat > conftest.$ac_ext <<EOF
21321 #line 21322 "configure"
21322 #include "confdefs.h"
21323 /* System header to define __stub macros and hopefully few prototypes,
21324     which can conflict with char $ac_func(); below.  */
21325 #include <assert.h>
21326 /* Override any gcc2 internal prototype to avoid an error.  */
21327 /* We use char because int might match the return type of a gcc2
21328     builtin and then its argument prototype would still apply.  */
21329 char $ac_func();
21330
21331 int main() {
21332
21333 /* The GNU C library defines this for functions which it implements
21334     to always fail with ENOSYS.  Some functions are actually named
21335     something starting with __ and the normal name is an alias.  */
21336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21337 choke me
21338 #else
21339 $ac_func();
21340 #endif
21341
21342 ; return 0; }
21343 EOF
21344 if { (eval echo configure:21345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21345   rm -rf conftest*
21346   eval "ac_cv_func_$ac_func=yes"
21347 else
21348   echo "configure: failed program was:" >&5
21349   cat conftest.$ac_ext >&5
21350   rm -rf conftest*
21351   eval "ac_cv_func_$ac_func=no"
21352 fi
21353 rm -f conftest*
21354 fi
21355
21356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21357   echo "$ac_t""yes" 1>&6
21358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21359   cat >> confdefs.h <<EOF
21360 #define $ac_tr_func 1
21361 EOF
21362  
21363 else
21364   echo "$ac_t""no" 1>&6
21365 fi
21366 done
21367
21368   fi
21369
21370   
21371   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21372 echo "configure:21373: checking for _long double round functions" >&5
21373   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21374   echo $ac_n "(cached) $ac_c" 1>&6
21375 else
21376   
21377     
21378     ac_ext=C
21379 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21380 ac_cpp='$CXXCPP $CPPFLAGS'
21381 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21382 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21383 cross_compiling=$ac_cv_prog_cxx_cross
21384
21385     cat > conftest.$ac_ext <<EOF
21386 #line 21387 "configure"
21387 #include "confdefs.h"
21388 #include <math.h>
21389 int main() {
21390  `for x in _ceill _floorl; do echo "$x (0);"; done` 
21391 ; return 0; }
21392 EOF
21393 if { (eval echo configure:21394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21394   rm -rf conftest*
21395   glibcpp_cv_func__long_double_round_use=yes
21396 else
21397   echo "configure: failed program was:" >&5
21398   cat conftest.$ac_ext >&5
21399   rm -rf conftest*
21400   glibcpp_cv_func__long_double_round_use=no
21401 fi
21402 rm -f conftest*
21403     ac_ext=c
21404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21405 ac_cpp='$CPP $CPPFLAGS'
21406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21408 cross_compiling=$ac_cv_prog_cc_cross
21409
21410 fi
21411
21412   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21413   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21414     for ac_func in _ceill _floorl
21415 do
21416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21417 echo "configure:21418: checking for $ac_func" >&5
21418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21419   echo $ac_n "(cached) $ac_c" 1>&6
21420 else
21421   cat > conftest.$ac_ext <<EOF
21422 #line 21423 "configure"
21423 #include "confdefs.h"
21424 /* System header to define __stub macros and hopefully few prototypes,
21425     which can conflict with char $ac_func(); below.  */
21426 #include <assert.h>
21427 /* Override any gcc2 internal prototype to avoid an error.  */
21428 /* We use char because int might match the return type of a gcc2
21429     builtin and then its argument prototype would still apply.  */
21430 char $ac_func();
21431
21432 int main() {
21433
21434 /* The GNU C library defines this for functions which it implements
21435     to always fail with ENOSYS.  Some functions are actually named
21436     something starting with __ and the normal name is an alias.  */
21437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21438 choke me
21439 #else
21440 $ac_func();
21441 #endif
21442
21443 ; return 0; }
21444 EOF
21445 if { (eval echo configure:21446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21446   rm -rf conftest*
21447   eval "ac_cv_func_$ac_func=yes"
21448 else
21449   echo "configure: failed program was:" >&5
21450   cat conftest.$ac_ext >&5
21451   rm -rf conftest*
21452   eval "ac_cv_func_$ac_func=no"
21453 fi
21454 rm -f conftest*
21455 fi
21456
21457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21458   echo "$ac_t""yes" 1>&6
21459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21460   cat >> confdefs.h <<EOF
21461 #define $ac_tr_func 1
21462 EOF
21463  
21464 else
21465   echo "$ac_t""no" 1>&6
21466 fi
21467 done
21468
21469   fi
21470
21471
21472   LIBS="$ac_save_LIBS"
21473   CXXFLAGS="$ac_save_CXXFLAGS"
21474
21475   
21476     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21477 echo "configure:21478: checking for main in -lm" >&5
21478 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21480   echo $ac_n "(cached) $ac_c" 1>&6
21481 else
21482   ac_save_LIBS="$LIBS"
21483 LIBS="-lm  $LIBS"
21484 cat > conftest.$ac_ext <<EOF
21485 #line 21486 "configure"
21486 #include "confdefs.h"
21487
21488 int main() {
21489 main()
21490 ; return 0; }
21491 EOF
21492 if { (eval echo configure:21493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21493   rm -rf conftest*
21494   eval "ac_cv_lib_$ac_lib_var=yes"
21495 else
21496   echo "configure: failed program was:" >&5
21497   cat conftest.$ac_ext >&5
21498   rm -rf conftest*
21499   eval "ac_cv_lib_$ac_lib_var=no"
21500 fi
21501 rm -f conftest*
21502 LIBS="$ac_save_LIBS"
21503
21504 fi
21505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21506   echo "$ac_t""yes" 1>&6
21507     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21508     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21509   cat >> confdefs.h <<EOF
21510 #define $ac_tr_lib 1
21511 EOF
21512
21513   LIBS="-lm $LIBS"
21514
21515 else
21516   echo "$ac_t""no" 1>&6
21517 fi
21518
21519   for ac_func in nan copysignf
21520 do
21521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21522 echo "configure:21523: checking for $ac_func" >&5
21523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21524   echo $ac_n "(cached) $ac_c" 1>&6
21525 else
21526   cat > conftest.$ac_ext <<EOF
21527 #line 21528 "configure"
21528 #include "confdefs.h"
21529 /* System header to define __stub macros and hopefully few prototypes,
21530     which can conflict with char $ac_func(); below.  */
21531 #include <assert.h>
21532 /* Override any gcc2 internal prototype to avoid an error.  */
21533 /* We use char because int might match the return type of a gcc2
21534     builtin and then its argument prototype would still apply.  */
21535 char $ac_func();
21536
21537 int main() {
21538
21539 /* The GNU C library defines this for functions which it implements
21540     to always fail with ENOSYS.  Some functions are actually named
21541     something starting with __ and the normal name is an alias.  */
21542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21543 choke me
21544 #else
21545 $ac_func();
21546 #endif
21547
21548 ; return 0; }
21549 EOF
21550 if { (eval echo configure:21551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21551   rm -rf conftest*
21552   eval "ac_cv_func_$ac_func=yes"
21553 else
21554   echo "configure: failed program was:" >&5
21555   cat conftest.$ac_ext >&5
21556   rm -rf conftest*
21557   eval "ac_cv_func_$ac_func=no"
21558 fi
21559 rm -f conftest*
21560 fi
21561
21562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21563   echo "$ac_t""yes" 1>&6
21564     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21565   cat >> confdefs.h <<EOF
21566 #define $ac_tr_func 1
21567 EOF
21568  
21569 else
21570   echo "$ac_t""no" 1>&6
21571 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21572 fi
21573 done
21574
21575
21576     for ac_func in __signbit
21577 do
21578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21579 echo "configure:21580: checking for $ac_func" >&5
21580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21581   echo $ac_n "(cached) $ac_c" 1>&6
21582 else
21583   cat > conftest.$ac_ext <<EOF
21584 #line 21585 "configure"
21585 #include "confdefs.h"
21586 /* System header to define __stub macros and hopefully few prototypes,
21587     which can conflict with char $ac_func(); below.  */
21588 #include <assert.h>
21589 /* Override any gcc2 internal prototype to avoid an error.  */
21590 /* We use char because int might match the return type of a gcc2
21591     builtin and then its argument prototype would still apply.  */
21592 char $ac_func();
21593
21594 int main() {
21595
21596 /* The GNU C library defines this for functions which it implements
21597     to always fail with ENOSYS.  Some functions are actually named
21598     something starting with __ and the normal name is an alias.  */
21599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21600 choke me
21601 #else
21602 $ac_func();
21603 #endif
21604
21605 ; return 0; }
21606 EOF
21607 if { (eval echo configure:21608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21608   rm -rf conftest*
21609   eval "ac_cv_func_$ac_func=yes"
21610 else
21611   echo "configure: failed program was:" >&5
21612   cat conftest.$ac_ext >&5
21613   rm -rf conftest*
21614   eval "ac_cv_func_$ac_func=no"
21615 fi
21616 rm -f conftest*
21617 fi
21618
21619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21620   echo "$ac_t""yes" 1>&6
21621     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21622   cat >> confdefs.h <<EOF
21623 #define $ac_tr_func 1
21624 EOF
21625  
21626 else
21627   echo "$ac_t""no" 1>&6
21628 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21629 fi
21630 done
21631
21632   for ac_func in __signbitf
21633 do
21634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21635 echo "configure:21636: checking for $ac_func" >&5
21636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21637   echo $ac_n "(cached) $ac_c" 1>&6
21638 else
21639   cat > conftest.$ac_ext <<EOF
21640 #line 21641 "configure"
21641 #include "confdefs.h"
21642 /* System header to define __stub macros and hopefully few prototypes,
21643     which can conflict with char $ac_func(); below.  */
21644 #include <assert.h>
21645 /* Override any gcc2 internal prototype to avoid an error.  */
21646 /* We use char because int might match the return type of a gcc2
21647     builtin and then its argument prototype would still apply.  */
21648 char $ac_func();
21649
21650 int main() {
21651
21652 /* The GNU C library defines this for functions which it implements
21653     to always fail with ENOSYS.  Some functions are actually named
21654     something starting with __ and the normal name is an alias.  */
21655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21656 choke me
21657 #else
21658 $ac_func();
21659 #endif
21660
21661 ; return 0; }
21662 EOF
21663 if { (eval echo configure:21664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21664   rm -rf conftest*
21665   eval "ac_cv_func_$ac_func=yes"
21666 else
21667   echo "configure: failed program was:" >&5
21668   cat conftest.$ac_ext >&5
21669   rm -rf conftest*
21670   eval "ac_cv_func_$ac_func=no"
21671 fi
21672 rm -f conftest*
21673 fi
21674
21675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21676   echo "$ac_t""yes" 1>&6
21677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21678   cat >> confdefs.h <<EOF
21679 #define $ac_tr_func 1
21680 EOF
21681  
21682 else
21683   echo "$ac_t""no" 1>&6
21684 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21685 fi
21686 done
21687
21688
21689           if test x$ac_cv_func_copysignl = x"yes"; then
21690     for ac_func in __signbitl
21691 do
21692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21693 echo "configure:21694: checking for $ac_func" >&5
21694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21695   echo $ac_n "(cached) $ac_c" 1>&6
21696 else
21697   cat > conftest.$ac_ext <<EOF
21698 #line 21699 "configure"
21699 #include "confdefs.h"
21700 /* System header to define __stub macros and hopefully few prototypes,
21701     which can conflict with char $ac_func(); below.  */
21702 #include <assert.h>
21703 /* Override any gcc2 internal prototype to avoid an error.  */
21704 /* We use char because int might match the return type of a gcc2
21705     builtin and then its argument prototype would still apply.  */
21706 char $ac_func();
21707
21708 int main() {
21709
21710 /* The GNU C library defines this for functions which it implements
21711     to always fail with ENOSYS.  Some functions are actually named
21712     something starting with __ and the normal name is an alias.  */
21713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21714 choke me
21715 #else
21716 $ac_func();
21717 #endif
21718
21719 ; return 0; }
21720 EOF
21721 if { (eval echo configure:21722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21722   rm -rf conftest*
21723   eval "ac_cv_func_$ac_func=yes"
21724 else
21725   echo "configure: failed program was:" >&5
21726   cat conftest.$ac_ext >&5
21727   rm -rf conftest*
21728   eval "ac_cv_func_$ac_func=no"
21729 fi
21730 rm -f conftest*
21731 fi
21732
21733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21734   echo "$ac_t""yes" 1>&6
21735     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21736   cat >> confdefs.h <<EOF
21737 #define $ac_tr_func 1
21738 EOF
21739  
21740 else
21741   echo "$ac_t""no" 1>&6
21742 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21743 fi
21744 done
21745
21746   fi
21747
21748   
21749
21750   
21751
21752       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21753 echo "configure:21754: checking for mbstate_t" >&5
21754   cat > conftest.$ac_ext <<EOF
21755 #line 21756 "configure"
21756 #include "confdefs.h"
21757 #include <wchar.h>
21758 int main() {
21759 mbstate_t teststate;
21760 ; return 0; }
21761 EOF
21762 if { (eval echo configure:21763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21763   rm -rf conftest*
21764   have_mbstate_t=yes
21765 else
21766   echo "configure: failed program was:" >&5
21767   cat conftest.$ac_ext >&5
21768   rm -rf conftest*
21769   have_mbstate_t=no
21770 fi
21771 rm -f conftest*
21772   echo "$ac_t""$have_mbstate_t" 1>&6
21773   if test x"$have_mbstate_t" = xyes; then
21774     cat >> confdefs.h <<\EOF
21775 #define HAVE_MBSTATE_T 1
21776 EOF
21777
21778   fi
21779
21780     for ac_hdr in wchar.h
21781 do
21782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21784 echo "configure:21785: checking for $ac_hdr" >&5
21785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21786   echo $ac_n "(cached) $ac_c" 1>&6
21787 else
21788   cat > conftest.$ac_ext <<EOF
21789 #line 21790 "configure"
21790 #include "confdefs.h"
21791 #include <$ac_hdr>
21792 EOF
21793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21794 { (eval echo configure:21795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21796 if test -z "$ac_err"; then
21797   rm -rf conftest*
21798   eval "ac_cv_header_$ac_safe=yes"
21799 else
21800   echo "$ac_err" >&5
21801   echo "configure: failed program was:" >&5
21802   cat conftest.$ac_ext >&5
21803   rm -rf conftest*
21804   eval "ac_cv_header_$ac_safe=no"
21805 fi
21806 rm -f conftest*
21807 fi
21808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21809   echo "$ac_t""yes" 1>&6
21810     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21811   cat >> confdefs.h <<EOF
21812 #define $ac_tr_hdr 1
21813 EOF
21814  ac_has_wchar_h=yes
21815 else
21816   echo "$ac_t""no" 1>&6
21817 ac_has_wchar_h=no
21818 fi
21819 done
21820
21821   for ac_hdr in wctype.h
21822 do
21823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21825 echo "configure:21826: checking for $ac_hdr" >&5
21826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21827   echo $ac_n "(cached) $ac_c" 1>&6
21828 else
21829   cat > conftest.$ac_ext <<EOF
21830 #line 21831 "configure"
21831 #include "confdefs.h"
21832 #include <$ac_hdr>
21833 EOF
21834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21835 { (eval echo configure:21836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21837 if test -z "$ac_err"; then
21838   rm -rf conftest*
21839   eval "ac_cv_header_$ac_safe=yes"
21840 else
21841   echo "$ac_err" >&5
21842   echo "configure: failed program was:" >&5
21843   cat conftest.$ac_ext >&5
21844   rm -rf conftest*
21845   eval "ac_cv_header_$ac_safe=no"
21846 fi
21847 rm -f conftest*
21848 fi
21849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21850   echo "$ac_t""yes" 1>&6
21851     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21852   cat >> confdefs.h <<EOF
21853 #define $ac_tr_hdr 1
21854 EOF
21855  ac_has_wctype_h=yes
21856 else
21857   echo "$ac_t""no" 1>&6
21858 ac_has_wctype_h=no
21859 fi
21860 done
21861
21862   
21863     if test x"$ac_has_wchar_h" = xyes &&
21864      test x"$ac_has_wctype_h" = xyes &&
21865      test x"$enable_c_mbchar" != xno; then
21866       
21867             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
21868 echo "configure:21869: checking for WCHAR_MIN and WCHAR_MAX" >&5
21869     cat > conftest.$ac_ext <<EOF
21870 #line 21871 "configure"
21871 #include "confdefs.h"
21872 #include <wchar.h>
21873 int main() {
21874 int i = WCHAR_MIN; int j = WCHAR_MAX;
21875 ; return 0; }
21876 EOF
21877 if { (eval echo configure:21878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21878   rm -rf conftest*
21879   has_wchar_minmax=yes
21880 else
21881   echo "configure: failed program was:" >&5
21882   cat conftest.$ac_ext >&5
21883   rm -rf conftest*
21884   has_wchar_minmax=no
21885 fi
21886 rm -f conftest*
21887     echo "$ac_t""$has_wchar_minmax" 1>&6
21888     
21889             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
21890 echo "configure:21891: checking for WEOF" >&5
21891     cat > conftest.$ac_ext <<EOF
21892 #line 21893 "configure"
21893 #include "confdefs.h"
21894
21895       #include <wchar.h>
21896       #include <stddef.h>
21897 int main() {
21898 wint_t i = WEOF;
21899 ; return 0; }
21900 EOF
21901 if { (eval echo configure:21902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21902   rm -rf conftest*
21903   has_weof=yes
21904 else
21905   echo "configure: failed program was:" >&5
21906   cat conftest.$ac_ext >&5
21907   rm -rf conftest*
21908   has_weof=no
21909 fi
21910 rm -f conftest*
21911     echo "$ac_t""$has_weof" 1>&6
21912   
21913         ac_wfuncs=yes
21914     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
21915 do
21916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21917 echo "configure:21918: checking for $ac_func" >&5
21918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21919   echo $ac_n "(cached) $ac_c" 1>&6
21920 else
21921   cat > conftest.$ac_ext <<EOF
21922 #line 21923 "configure"
21923 #include "confdefs.h"
21924 /* System header to define __stub macros and hopefully few prototypes,
21925     which can conflict with char $ac_func(); below.  */
21926 #include <assert.h>
21927 /* Override any gcc2 internal prototype to avoid an error.  */
21928 /* We use char because int might match the return type of a gcc2
21929     builtin and then its argument prototype would still apply.  */
21930 char $ac_func();
21931
21932 int main() {
21933
21934 /* The GNU C library defines this for functions which it implements
21935     to always fail with ENOSYS.  Some functions are actually named
21936     something starting with __ and the normal name is an alias.  */
21937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21938 choke me
21939 #else
21940 $ac_func();
21941 #endif
21942
21943 ; return 0; }
21944 EOF
21945 if { (eval echo configure:21946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21946   rm -rf conftest*
21947   eval "ac_cv_func_$ac_func=yes"
21948 else
21949   echo "configure: failed program was:" >&5
21950   cat conftest.$ac_ext >&5
21951   rm -rf conftest*
21952   eval "ac_cv_func_$ac_func=no"
21953 fi
21954 rm -f conftest*
21955 fi
21956
21957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21958   echo "$ac_t""yes" 1>&6
21959     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21960   cat >> confdefs.h <<EOF
21961 #define $ac_tr_func 1
21962 EOF
21963  
21964 else
21965   echo "$ac_t""no" 1>&6
21966 \
21967     ac_wfuncs=no
21968 fi
21969 done
21970
21971   
21972         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
21973     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
21974     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
21975     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
21976     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
21977     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
21978 do
21979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21980 echo "configure:21981: checking for $ac_func" >&5
21981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21982   echo $ac_n "(cached) $ac_c" 1>&6
21983 else
21984   cat > conftest.$ac_ext <<EOF
21985 #line 21986 "configure"
21986 #include "confdefs.h"
21987 /* System header to define __stub macros and hopefully few prototypes,
21988     which can conflict with char $ac_func(); below.  */
21989 #include <assert.h>
21990 /* Override any gcc2 internal prototype to avoid an error.  */
21991 /* We use char because int might match the return type of a gcc2
21992     builtin and then its argument prototype would still apply.  */
21993 char $ac_func();
21994
21995 int main() {
21996
21997 /* The GNU C library defines this for functions which it implements
21998     to always fail with ENOSYS.  Some functions are actually named
21999     something starting with __ and the normal name is an alias.  */
22000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22001 choke me
22002 #else
22003 $ac_func();
22004 #endif
22005
22006 ; return 0; }
22007 EOF
22008 if { (eval echo configure:22009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22009   rm -rf conftest*
22010   eval "ac_cv_func_$ac_func=yes"
22011 else
22012   echo "configure: failed program was:" >&5
22013   cat conftest.$ac_ext >&5
22014   rm -rf conftest*
22015   eval "ac_cv_func_$ac_func=no"
22016 fi
22017 rm -f conftest*
22018 fi
22019
22020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22021   echo "$ac_t""yes" 1>&6
22022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22023   cat >> confdefs.h <<EOF
22024 #define $ac_tr_func 1
22025 EOF
22026  
22027 else
22028   echo "$ac_t""no" 1>&6
22029 \
22030     ac_wfuncs=no
22031 fi
22032 done
22033
22034
22035     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22036 echo "configure:22037: checking for ISO C99 wchar_t support" >&5
22037     if test x"$has_weof" = xyes &&
22038        test x"$has_wchar_minmax" = xyes &&
22039        test x"$ac_wfuncs" = xyes; then
22040       ac_isoC99_wchar_t=yes
22041     else
22042       ac_isoC99_wchar_t=no
22043     fi
22044     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22045   
22046             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22047 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22048 echo "configure:22049: checking for iconv.h" >&5
22049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22050   echo $ac_n "(cached) $ac_c" 1>&6
22051 else
22052   cat > conftest.$ac_ext <<EOF
22053 #line 22054 "configure"
22054 #include "confdefs.h"
22055 #include <iconv.h>
22056 EOF
22057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22058 { (eval echo configure:22059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22060 if test -z "$ac_err"; then
22061   rm -rf conftest*
22062   eval "ac_cv_header_$ac_safe=yes"
22063 else
22064   echo "$ac_err" >&5
22065   echo "configure: failed program was:" >&5
22066   cat conftest.$ac_ext >&5
22067   rm -rf conftest*
22068   eval "ac_cv_header_$ac_safe=no"
22069 fi
22070 rm -f conftest*
22071 fi
22072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22073   echo "$ac_t""yes" 1>&6
22074   ac_has_iconv_h=yes
22075 else
22076   echo "$ac_t""no" 1>&6
22077 ac_has_iconv_h=no
22078 fi
22079
22080     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22081 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22082 echo "configure:22083: checking for langinfo.h" >&5
22083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22084   echo $ac_n "(cached) $ac_c" 1>&6
22085 else
22086   cat > conftest.$ac_ext <<EOF
22087 #line 22088 "configure"
22088 #include "confdefs.h"
22089 #include <langinfo.h>
22090 EOF
22091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22092 { (eval echo configure:22093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22094 if test -z "$ac_err"; then
22095   rm -rf conftest*
22096   eval "ac_cv_header_$ac_safe=yes"
22097 else
22098   echo "$ac_err" >&5
22099   echo "configure: failed program was:" >&5
22100   cat conftest.$ac_ext >&5
22101   rm -rf conftest*
22102   eval "ac_cv_header_$ac_safe=no"
22103 fi
22104 rm -f conftest*
22105 fi
22106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22107   echo "$ac_t""yes" 1>&6
22108   ac_has_langinfo_h=yes
22109 else
22110   echo "$ac_t""no" 1>&6
22111 ac_has_langinfo_h=no
22112 fi
22113
22114
22115         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22116 echo "configure:22117: checking for iconv in -liconv" >&5
22117 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22119   echo $ac_n "(cached) $ac_c" 1>&6
22120 else
22121   ac_save_LIBS="$LIBS"
22122 LIBS="-liconv  $LIBS"
22123 cat > conftest.$ac_ext <<EOF
22124 #line 22125 "configure"
22125 #include "confdefs.h"
22126 /* Override any gcc2 internal prototype to avoid an error.  */
22127 /* We use char because int might match the return type of a gcc2
22128     builtin and then its argument prototype would still apply.  */
22129 char iconv();
22130
22131 int main() {
22132 iconv()
22133 ; return 0; }
22134 EOF
22135 if { (eval echo configure:22136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22136   rm -rf conftest*
22137   eval "ac_cv_lib_$ac_lib_var=yes"
22138 else
22139   echo "configure: failed program was:" >&5
22140   cat conftest.$ac_ext >&5
22141   rm -rf conftest*
22142   eval "ac_cv_lib_$ac_lib_var=no"
22143 fi
22144 rm -f conftest*
22145 LIBS="$ac_save_LIBS"
22146
22147 fi
22148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22149   echo "$ac_t""yes" 1>&6
22150   libiconv="-liconv"
22151 else
22152   echo "$ac_t""no" 1>&6
22153 fi
22154
22155     ac_save_LIBS="$LIBS"
22156     LIBS="$LIBS $libiconv"
22157
22158     for ac_func in iconv_open iconv_close iconv nl_langinfo
22159 do
22160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22161 echo "configure:22162: checking for $ac_func" >&5
22162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22163   echo $ac_n "(cached) $ac_c" 1>&6
22164 else
22165   cat > conftest.$ac_ext <<EOF
22166 #line 22167 "configure"
22167 #include "confdefs.h"
22168 /* System header to define __stub macros and hopefully few prototypes,
22169     which can conflict with char $ac_func(); below.  */
22170 #include <assert.h>
22171 /* Override any gcc2 internal prototype to avoid an error.  */
22172 /* We use char because int might match the return type of a gcc2
22173     builtin and then its argument prototype would still apply.  */
22174 char $ac_func();
22175
22176 int main() {
22177
22178 /* The GNU C library defines this for functions which it implements
22179     to always fail with ENOSYS.  Some functions are actually named
22180     something starting with __ and the normal name is an alias.  */
22181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22182 choke me
22183 #else
22184 $ac_func();
22185 #endif
22186
22187 ; return 0; }
22188 EOF
22189 if { (eval echo configure:22190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22190   rm -rf conftest*
22191   eval "ac_cv_func_$ac_func=yes"
22192 else
22193   echo "configure: failed program was:" >&5
22194   cat conftest.$ac_ext >&5
22195   rm -rf conftest*
22196   eval "ac_cv_func_$ac_func=no"
22197 fi
22198 rm -f conftest*
22199 fi
22200
22201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22202   echo "$ac_t""yes" 1>&6
22203     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22204   cat >> confdefs.h <<EOF
22205 #define $ac_tr_func 1
22206 EOF
22207  \
22208     ac_XPG2funcs=yes
22209 else
22210   echo "$ac_t""no" 1>&6
22211 ac_XPG2funcs=no
22212 fi
22213 done
22214
22215   
22216     LIBS="$ac_save_LIBS"
22217
22218     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22219 echo "configure:22220: checking for XPG2 wchar_t support" >&5
22220     if test x"$ac_has_iconv_h" = xyes &&
22221        test x"$ac_has_langinfo_h" = xyes &&
22222        test x"$ac_XPG2funcs" = xyes; then
22223       ac_XPG2_wchar_t=yes
22224     else
22225       ac_XPG2_wchar_t=no
22226     fi
22227     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22228   
22229             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22230 echo "configure:22231: checking for enabled wchar_t specializations" >&5
22231     if test x"$ac_isoC99_wchar_t" = xyes &&
22232        test x"$ac_XPG2_wchar_t" = xyes; then
22233       cat >> confdefs.h <<\EOF
22234 #define _GLIBCPP_USE_WCHAR_T 1
22235 EOF
22236
22237       echo "$ac_t"""yes"" 1>&6
22238     else
22239       echo "$ac_t"""no"" 1>&6
22240     fi
22241   else
22242         echo "configure: warning: wchar_t support disabled." 1>&2
22243   fi
22244
22245   
22246   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22247   ac_save_CXXFLAGS="$CXXFLAGS"
22248   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22249
22250   
22251   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22252 echo "configure:22253: checking for strtold declaration" >&5
22253   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22254     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22255   echo $ac_n "(cached) $ac_c" 1>&6
22256 else
22257   
22258       
22259       ac_ext=C
22260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22261 ac_cpp='$CXXCPP $CPPFLAGS'
22262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22264 cross_compiling=$ac_cv_prog_cxx_cross
22265
22266       cat > conftest.$ac_ext <<EOF
22267 #line 22268 "configure"
22268 #include "confdefs.h"
22269 #include <stdlib.h>
22270 int main() {
22271  strtold(0, 0);
22272 ; return 0; }
22273 EOF
22274 if { (eval echo configure:22275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22275   rm -rf conftest*
22276   glibcpp_cv_func_strtold_use=yes
22277 else
22278   echo "configure: failed program was:" >&5
22279   cat conftest.$ac_ext >&5
22280   rm -rf conftest*
22281   glibcpp_cv_func_strtold_use=no
22282 fi
22283 rm -f conftest*
22284       ac_ext=c
22285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22286 ac_cpp='$CPP $CPPFLAGS'
22287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22289 cross_compiling=$ac_cv_prog_cc_cross
22290
22291     
22292 fi
22293
22294   fi
22295   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22296   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22297     for ac_func in strtold
22298 do
22299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22300 echo "configure:22301: checking for $ac_func" >&5
22301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22302   echo $ac_n "(cached) $ac_c" 1>&6
22303 else
22304   cat > conftest.$ac_ext <<EOF
22305 #line 22306 "configure"
22306 #include "confdefs.h"
22307 /* System header to define __stub macros and hopefully few prototypes,
22308     which can conflict with char $ac_func(); below.  */
22309 #include <assert.h>
22310 /* Override any gcc2 internal prototype to avoid an error.  */
22311 /* We use char because int might match the return type of a gcc2
22312     builtin and then its argument prototype would still apply.  */
22313 char $ac_func();
22314
22315 int main() {
22316
22317 /* The GNU C library defines this for functions which it implements
22318     to always fail with ENOSYS.  Some functions are actually named
22319     something starting with __ and the normal name is an alias.  */
22320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22321 choke me
22322 #else
22323 $ac_func();
22324 #endif
22325
22326 ; return 0; }
22327 EOF
22328 if { (eval echo configure:22329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22329   rm -rf conftest*
22330   eval "ac_cv_func_$ac_func=yes"
22331 else
22332   echo "configure: failed program was:" >&5
22333   cat conftest.$ac_ext >&5
22334   rm -rf conftest*
22335   eval "ac_cv_func_$ac_func=no"
22336 fi
22337 rm -f conftest*
22338 fi
22339
22340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22341   echo "$ac_t""yes" 1>&6
22342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22343   cat >> confdefs.h <<EOF
22344 #define $ac_tr_func 1
22345 EOF
22346  
22347 else
22348   echo "$ac_t""no" 1>&6
22349 fi
22350 done
22351     
22352   fi
22353
22354   
22355   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22356 echo "configure:22357: checking for strtof declaration" >&5
22357   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22358     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22359   echo $ac_n "(cached) $ac_c" 1>&6
22360 else
22361   
22362       
22363       ac_ext=C
22364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22365 ac_cpp='$CXXCPP $CPPFLAGS'
22366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22368 cross_compiling=$ac_cv_prog_cxx_cross
22369
22370       cat > conftest.$ac_ext <<EOF
22371 #line 22372 "configure"
22372 #include "confdefs.h"
22373 #include <stdlib.h>
22374 int main() {
22375  strtof(0, 0);
22376 ; return 0; }
22377 EOF
22378 if { (eval echo configure:22379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22379   rm -rf conftest*
22380   glibcpp_cv_func_strtof_use=yes
22381 else
22382   echo "configure: failed program was:" >&5
22383   cat conftest.$ac_ext >&5
22384   rm -rf conftest*
22385   glibcpp_cv_func_strtof_use=no
22386 fi
22387 rm -f conftest*
22388       ac_ext=c
22389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22390 ac_cpp='$CPP $CPPFLAGS'
22391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22393 cross_compiling=$ac_cv_prog_cc_cross
22394
22395     
22396 fi
22397
22398   fi
22399   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22400   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22401     for ac_func in strtof
22402 do
22403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22404 echo "configure:22405: checking for $ac_func" >&5
22405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22406   echo $ac_n "(cached) $ac_c" 1>&6
22407 else
22408   cat > conftest.$ac_ext <<EOF
22409 #line 22410 "configure"
22410 #include "confdefs.h"
22411 /* System header to define __stub macros and hopefully few prototypes,
22412     which can conflict with char $ac_func(); below.  */
22413 #include <assert.h>
22414 /* Override any gcc2 internal prototype to avoid an error.  */
22415 /* We use char because int might match the return type of a gcc2
22416     builtin and then its argument prototype would still apply.  */
22417 char $ac_func();
22418
22419 int main() {
22420
22421 /* The GNU C library defines this for functions which it implements
22422     to always fail with ENOSYS.  Some functions are actually named
22423     something starting with __ and the normal name is an alias.  */
22424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22425 choke me
22426 #else
22427 $ac_func();
22428 #endif
22429
22430 ; return 0; }
22431 EOF
22432 if { (eval echo configure:22433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22433   rm -rf conftest*
22434   eval "ac_cv_func_$ac_func=yes"
22435 else
22436   echo "configure: failed program was:" >&5
22437   cat conftest.$ac_ext >&5
22438   rm -rf conftest*
22439   eval "ac_cv_func_$ac_func=no"
22440 fi
22441 rm -f conftest*
22442 fi
22443
22444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22445   echo "$ac_t""yes" 1>&6
22446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22447   cat >> confdefs.h <<EOF
22448 #define $ac_tr_func 1
22449 EOF
22450  
22451 else
22452   echo "$ac_t""no" 1>&6
22453 fi
22454 done
22455     
22456   fi
22457
22458   for ac_func in drand48
22459 do
22460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22461 echo "configure:22462: checking for $ac_func" >&5
22462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22463   echo $ac_n "(cached) $ac_c" 1>&6
22464 else
22465   cat > conftest.$ac_ext <<EOF
22466 #line 22467 "configure"
22467 #include "confdefs.h"
22468 /* System header to define __stub macros and hopefully few prototypes,
22469     which can conflict with char $ac_func(); below.  */
22470 #include <assert.h>
22471 /* Override any gcc2 internal prototype to avoid an error.  */
22472 /* We use char because int might match the return type of a gcc2
22473     builtin and then its argument prototype would still apply.  */
22474 char $ac_func();
22475
22476 int main() {
22477
22478 /* The GNU C library defines this for functions which it implements
22479     to always fail with ENOSYS.  Some functions are actually named
22480     something starting with __ and the normal name is an alias.  */
22481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22482 choke me
22483 #else
22484 $ac_func();
22485 #endif
22486
22487 ; return 0; }
22488 EOF
22489 if { (eval echo configure:22490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22490   rm -rf conftest*
22491   eval "ac_cv_func_$ac_func=yes"
22492 else
22493   echo "configure: failed program was:" >&5
22494   cat conftest.$ac_ext >&5
22495   rm -rf conftest*
22496   eval "ac_cv_func_$ac_func=no"
22497 fi
22498 rm -f conftest*
22499 fi
22500
22501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22502   echo "$ac_t""yes" 1>&6
22503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22504   cat >> confdefs.h <<EOF
22505 #define $ac_tr_func 1
22506 EOF
22507  
22508 else
22509   echo "$ac_t""no" 1>&6
22510 fi
22511 done
22512
22513
22514   CXXFLAGS="$ac_save_CXXFLAGS"
22515
22516   
22517   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22518 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22519 echo "configure:22520: checking for locale.h" >&5
22520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22521   echo $ac_n "(cached) $ac_c" 1>&6
22522 else
22523   cat > conftest.$ac_ext <<EOF
22524 #line 22525 "configure"
22525 #include "confdefs.h"
22526 #include <locale.h>
22527 EOF
22528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22529 { (eval echo configure:22530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22531 if test -z "$ac_err"; then
22532   rm -rf conftest*
22533   eval "ac_cv_header_$ac_safe=yes"
22534 else
22535   echo "$ac_err" >&5
22536   echo "configure: failed program was:" >&5
22537   cat conftest.$ac_ext >&5
22538   rm -rf conftest*
22539   eval "ac_cv_header_$ac_safe=no"
22540 fi
22541 rm -f conftest*
22542 fi
22543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22544   echo "$ac_t""yes" 1>&6
22545   
22546     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22547 echo "configure:22548: checking for LC_MESSAGES" >&5
22548 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22549   echo $ac_n "(cached) $ac_c" 1>&6
22550 else
22551   cat > conftest.$ac_ext <<EOF
22552 #line 22553 "configure"
22553 #include "confdefs.h"
22554 #include <locale.h>
22555 int main() {
22556 return LC_MESSAGES
22557 ; return 0; }
22558 EOF
22559 if { (eval echo configure:22560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22560   rm -rf conftest*
22561   ac_cv_val_LC_MESSAGES=yes
22562 else
22563   echo "configure: failed program was:" >&5
22564   cat conftest.$ac_ext >&5
22565   rm -rf conftest*
22566   ac_cv_val_LC_MESSAGES=no
22567 fi
22568 rm -f conftest*
22569 fi
22570
22571 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22572     if test $ac_cv_val_LC_MESSAGES = yes; then
22573       cat >> confdefs.h <<\EOF
22574 #define HAVE_LC_MESSAGES 1
22575 EOF
22576
22577     fi
22578   
22579 else
22580   echo "$ac_t""no" 1>&6
22581 fi
22582
22583
22584
22585   cat > conftest.$ac_ext <<EOF
22586 #line 22587 "configure"
22587 #include "confdefs.h"
22588
22589   #include <setjmp.h>
22590   
22591 int main() {
22592 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22593 ; return 0; }
22594 EOF
22595 if { (eval echo configure:22596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22596   rm -rf conftest*
22597   cat >> confdefs.h <<\EOF
22598 #define HAVE_SIGSETJMP 1
22599 EOF
22600
22601   
22602 else
22603   echo "configure: failed program was:" >&5
22604   cat conftest.$ac_ext >&5
22605 fi
22606 rm -f conftest*
22607
22608   for ac_hdr in unistd.h
22609 do
22610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22612 echo "configure:22613: checking for $ac_hdr" >&5
22613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22614   echo $ac_n "(cached) $ac_c" 1>&6
22615 else
22616   cat > conftest.$ac_ext <<EOF
22617 #line 22618 "configure"
22618 #include "confdefs.h"
22619 #include <$ac_hdr>
22620 EOF
22621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22622 { (eval echo configure:22623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22624 if test -z "$ac_err"; then
22625   rm -rf conftest*
22626   eval "ac_cv_header_$ac_safe=yes"
22627 else
22628   echo "$ac_err" >&5
22629   echo "configure: failed program was:" >&5
22630   cat conftest.$ac_ext >&5
22631   rm -rf conftest*
22632   eval "ac_cv_header_$ac_safe=no"
22633 fi
22634 rm -f conftest*
22635 fi
22636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22637   echo "$ac_t""yes" 1>&6
22638     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22639   cat >> confdefs.h <<EOF
22640 #define $ac_tr_hdr 1
22641 EOF
22642  
22643 else
22644   echo "$ac_t""no" 1>&6
22645 fi
22646 done
22647
22648 for ac_func in getpagesize
22649 do
22650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22651 echo "configure:22652: checking for $ac_func" >&5
22652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22653   echo $ac_n "(cached) $ac_c" 1>&6
22654 else
22655   cat > conftest.$ac_ext <<EOF
22656 #line 22657 "configure"
22657 #include "confdefs.h"
22658 /* System header to define __stub macros and hopefully few prototypes,
22659     which can conflict with char $ac_func(); below.  */
22660 #include <assert.h>
22661 /* Override any gcc2 internal prototype to avoid an error.  */
22662 /* We use char because int might match the return type of a gcc2
22663     builtin and then its argument prototype would still apply.  */
22664 char $ac_func();
22665
22666 int main() {
22667
22668 /* The GNU C library defines this for functions which it implements
22669     to always fail with ENOSYS.  Some functions are actually named
22670     something starting with __ and the normal name is an alias.  */
22671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22672 choke me
22673 #else
22674 $ac_func();
22675 #endif
22676
22677 ; return 0; }
22678 EOF
22679 if { (eval echo configure:22680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22680   rm -rf conftest*
22681   eval "ac_cv_func_$ac_func=yes"
22682 else
22683   echo "configure: failed program was:" >&5
22684   cat conftest.$ac_ext >&5
22685   rm -rf conftest*
22686   eval "ac_cv_func_$ac_func=no"
22687 fi
22688 rm -f conftest*
22689 fi
22690
22691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22692   echo "$ac_t""yes" 1>&6
22693     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22694   cat >> confdefs.h <<EOF
22695 #define $ac_tr_func 1
22696 EOF
22697  
22698 else
22699   echo "$ac_t""no" 1>&6
22700 fi
22701 done
22702
22703 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
22704 echo "configure:22705: checking for working mmap" >&5
22705 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
22706   echo $ac_n "(cached) $ac_c" 1>&6
22707 else
22708   if test "$cross_compiling" = yes; then
22709   ac_cv_func_mmap_fixed_mapped=no
22710 else
22711   cat > conftest.$ac_ext <<EOF
22712 #line 22713 "configure"
22713 #include "confdefs.h"
22714
22715 /* Thanks to Mike Haertel and Jim Avera for this test.
22716    Here is a matrix of mmap possibilities:
22717         mmap private not fixed
22718         mmap private fixed at somewhere currently unmapped
22719         mmap private fixed at somewhere already mapped
22720         mmap shared not fixed
22721         mmap shared fixed at somewhere currently unmapped
22722         mmap shared fixed at somewhere already mapped
22723    For private mappings, we should verify that changes cannot be read()
22724    back from the file, nor mmap's back from the file at a different
22725    address.  (There have been systems where private was not correctly
22726    implemented like the infamous i386 svr4.0, and systems where the
22727    VM page cache was not coherent with the filesystem buffer cache
22728    like early versions of FreeBSD and possibly contemporary NetBSD.)
22729    For shared mappings, we should conversely verify that changes get
22730    propogated back to all the places they're supposed to be.
22731
22732    Grep wants private fixed already mapped.
22733    The main things grep needs to know about mmap are:
22734    * does it exist and is it safe to write into the mmap'd area
22735    * how to use it (BSD variants)  */
22736 #include <sys/types.h>
22737 #include <fcntl.h>
22738 #include <sys/mman.h>
22739
22740 /* This mess was copied from the GNU getpagesize.h.  */
22741 #ifndef HAVE_GETPAGESIZE
22742 # ifdef HAVE_UNISTD_H
22743 #  include <unistd.h>
22744 # endif
22745
22746 /* Assume that all systems that can run configure have sys/param.h.  */
22747 # ifndef HAVE_SYS_PARAM_H
22748 #  define HAVE_SYS_PARAM_H 1
22749 # endif
22750
22751 # ifdef _SC_PAGESIZE
22752 #  define getpagesize() sysconf(_SC_PAGESIZE)
22753 # else /* no _SC_PAGESIZE */
22754 #  ifdef HAVE_SYS_PARAM_H
22755 #   include <sys/param.h>
22756 #   ifdef EXEC_PAGESIZE
22757 #    define getpagesize() EXEC_PAGESIZE
22758 #   else /* no EXEC_PAGESIZE */
22759 #    ifdef NBPG
22760 #     define getpagesize() NBPG * CLSIZE
22761 #     ifndef CLSIZE
22762 #      define CLSIZE 1
22763 #     endif /* no CLSIZE */
22764 #    else /* no NBPG */
22765 #     ifdef NBPC
22766 #      define getpagesize() NBPC
22767 #     else /* no NBPC */
22768 #      ifdef PAGESIZE
22769 #       define getpagesize() PAGESIZE
22770 #      endif /* PAGESIZE */
22771 #     endif /* no NBPC */
22772 #    endif /* no NBPG */
22773 #   endif /* no EXEC_PAGESIZE */
22774 #  else /* no HAVE_SYS_PARAM_H */
22775 #   define getpagesize() 8192   /* punt totally */
22776 #  endif /* no HAVE_SYS_PARAM_H */
22777 # endif /* no _SC_PAGESIZE */
22778
22779 #endif /* no HAVE_GETPAGESIZE */
22780
22781 #ifdef __cplusplus
22782 extern "C" { void *malloc(unsigned); }
22783 #else
22784 char *malloc();
22785 #endif
22786
22787 int
22788 main()
22789 {
22790         char *data, *data2, *data3;
22791         int i, pagesize;
22792         int fd;
22793
22794         pagesize = getpagesize();
22795
22796         /*
22797          * First, make a file with some known garbage in it.
22798          */
22799         data = malloc(pagesize);
22800         if (!data)
22801                 exit(1);
22802         for (i = 0; i < pagesize; ++i)
22803                 *(data + i) = rand();
22804         umask(0);
22805         fd = creat("conftestmmap", 0600);
22806         if (fd < 0)
22807                 exit(1);
22808         if (write(fd, data, pagesize) != pagesize)
22809                 exit(1);
22810         close(fd);
22811
22812         /*
22813          * Next, try to mmap the file at a fixed address which
22814          * already has something else allocated at it.  If we can,
22815          * also make sure that we see the same garbage.
22816          */
22817         fd = open("conftestmmap", O_RDWR);
22818         if (fd < 0)
22819                 exit(1);
22820         data2 = malloc(2 * pagesize);
22821         if (!data2)
22822                 exit(1);
22823         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22824         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
22825             MAP_PRIVATE | MAP_FIXED, fd, 0L))
22826                 exit(1);
22827         for (i = 0; i < pagesize; ++i)
22828                 if (*(data + i) != *(data2 + i))
22829                         exit(1);
22830
22831         /*
22832          * Finally, make sure that changes to the mapped area
22833          * do not percolate back to the file as seen by read().
22834          * (This is a bug on some variants of i386 svr4.0.)
22835          */
22836         for (i = 0; i < pagesize; ++i)
22837                 *(data2 + i) = *(data2 + i) + 1;
22838         data3 = malloc(pagesize);
22839         if (!data3)
22840                 exit(1);
22841         if (read(fd, data3, pagesize) != pagesize)
22842                 exit(1);
22843         for (i = 0; i < pagesize; ++i)
22844                 if (*(data + i) != *(data3 + i))
22845                         exit(1);
22846         close(fd);
22847         unlink("conftestmmap");
22848         exit(0);
22849 }
22850
22851 EOF
22852 if { (eval echo configure:22853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22853 then
22854   ac_cv_func_mmap_fixed_mapped=yes
22855 else
22856   echo "configure: failed program was:" >&5
22857   cat conftest.$ac_ext >&5
22858   rm -fr conftest*
22859   ac_cv_func_mmap_fixed_mapped=no
22860 fi
22861 rm -fr conftest*
22862 fi
22863
22864 fi
22865
22866 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
22867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22868   cat >> confdefs.h <<\EOF
22869 #define HAVE_MMAP 1
22870 EOF
22871
22872 fi
22873
22874
22875   # Establish limits on memory usage during 'make check'
22876   
22877   
22878   setrlimit_have_headers=yes
22879   for ac_hdr in unistd.h sys/time.h sys/resource.h
22880 do
22881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22883 echo "configure:22884: checking for $ac_hdr" >&5
22884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22885   echo $ac_n "(cached) $ac_c" 1>&6
22886 else
22887   cat > conftest.$ac_ext <<EOF
22888 #line 22889 "configure"
22889 #include "confdefs.h"
22890 #include <$ac_hdr>
22891 EOF
22892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22893 { (eval echo configure:22894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22895 if test -z "$ac_err"; then
22896   rm -rf conftest*
22897   eval "ac_cv_header_$ac_safe=yes"
22898 else
22899   echo "$ac_err" >&5
22900   echo "configure: failed program was:" >&5
22901   cat conftest.$ac_ext >&5
22902   rm -rf conftest*
22903   eval "ac_cv_header_$ac_safe=no"
22904 fi
22905 rm -f conftest*
22906 fi
22907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22908   echo "$ac_t""yes" 1>&6
22909     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22910   cat >> confdefs.h <<EOF
22911 #define $ac_tr_hdr 1
22912 EOF
22913  
22914 else
22915   echo "$ac_t""no" 1>&6
22916 setrlimit_have_headers=no
22917 fi
22918 done
22919
22920   # If don't have the headers, then we can't run the tests now, and we
22921   # won't be seeing any of these during testsuite compilation.
22922   if test $setrlimit_have_headers = yes; then
22923     # Can't do these in a loop, else the resulting syntax is wrong.
22924     
22925   cat > conftest.$ac_ext <<EOF
22926 #line 22927 "configure"
22927 #include "confdefs.h"
22928 #include <unistd.h>
22929                   #include <sys/time.h>
22930                   #include <sys/resource.h>
22931                  
22932 int main() {
22933  int f = RLIMIT_DATA ; 
22934 ; return 0; }
22935 EOF
22936 if { (eval echo configure:22937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22937   rm -rf conftest*
22938   glibcpp_mresult=1
22939 else
22940   echo "configure: failed program was:" >&5
22941   cat conftest.$ac_ext >&5
22942   rm -rf conftest*
22943   glibcpp_mresult=0
22944 fi
22945 rm -f conftest*
22946   cat >> confdefs.h <<EOF
22947 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
22948 EOF
22949
22950
22951     
22952   cat > conftest.$ac_ext <<EOF
22953 #line 22954 "configure"
22954 #include "confdefs.h"
22955 #include <unistd.h>
22956                   #include <sys/time.h>
22957                   #include <sys/resource.h>
22958                  
22959 int main() {
22960  int f = RLIMIT_RSS ; 
22961 ; return 0; }
22962 EOF
22963 if { (eval echo configure:22964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22964   rm -rf conftest*
22965   glibcpp_mresult=1
22966 else
22967   echo "configure: failed program was:" >&5
22968   cat conftest.$ac_ext >&5
22969   rm -rf conftest*
22970   glibcpp_mresult=0
22971 fi
22972 rm -f conftest*
22973   cat >> confdefs.h <<EOF
22974 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
22975 EOF
22976
22977
22978     
22979   cat > conftest.$ac_ext <<EOF
22980 #line 22981 "configure"
22981 #include "confdefs.h"
22982 #include <unistd.h>
22983                   #include <sys/time.h>
22984                   #include <sys/resource.h>
22985                  
22986 int main() {
22987  int f = RLIMIT_VMEM ; 
22988 ; return 0; }
22989 EOF
22990 if { (eval echo configure:22991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22991   rm -rf conftest*
22992   glibcpp_mresult=1
22993 else
22994   echo "configure: failed program was:" >&5
22995   cat conftest.$ac_ext >&5
22996   rm -rf conftest*
22997   glibcpp_mresult=0
22998 fi
22999 rm -f conftest*
23000   cat >> confdefs.h <<EOF
23001 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23002 EOF
23003
23004
23005     
23006   cat > conftest.$ac_ext <<EOF
23007 #line 23008 "configure"
23008 #include "confdefs.h"
23009 #include <unistd.h>
23010                   #include <sys/time.h>
23011                   #include <sys/resource.h>
23012                  
23013 int main() {
23014  int f = RLIMIT_AS ; 
23015 ; return 0; }
23016 EOF
23017 if { (eval echo configure:23018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23018   rm -rf conftest*
23019   glibcpp_mresult=1
23020 else
23021   echo "configure: failed program was:" >&5
23022   cat conftest.$ac_ext >&5
23023   rm -rf conftest*
23024   glibcpp_mresult=0
23025 fi
23026 rm -f conftest*
23027   cat >> confdefs.h <<EOF
23028 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23029 EOF
23030
23031
23032
23033     # Check for rlimit, setrlimit.
23034     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23035   echo $ac_n "(cached) $ac_c" 1>&6
23036 else
23037   
23038       cat > conftest.$ac_ext <<EOF
23039 #line 23040 "configure"
23040 #include "confdefs.h"
23041 #include <unistd.h>
23042                   #include <sys/time.h>
23043                   #include <sys/resource.h>
23044                      
23045 int main() {
23046  struct rlimit r; setrlimit(0, &r);
23047 ; return 0; }
23048 EOF
23049 if { (eval echo configure:23050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23050   rm -rf conftest*
23051   ac_setrlimit=yes
23052 else
23053   echo "configure: failed program was:" >&5
23054   cat conftest.$ac_ext >&5
23055   rm -rf conftest*
23056   ac_setrlimit=no
23057 fi
23058 rm -f conftest*
23059     
23060 fi
23061
23062   fi
23063
23064   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23065 echo "configure:23066: checking for testsuite memory limit support" >&5
23066   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23067     ac_mem_limits=yes
23068     cat >> confdefs.h <<\EOF
23069 #define _GLIBCPP_MEM_LIMITS 1
23070 EOF
23071
23072   else
23073     ac_mem_limits=no
23074   fi
23075   echo "$ac_t""$ac_mem_limits" 1>&6
23076
23077
23078   # Look for setenv, so that extended locale tests can be performed.
23079   
23080   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23081 echo "configure:23082: checking for setenv declaration" >&5
23082   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23083     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23084   echo $ac_n "(cached) $ac_c" 1>&6
23085 else
23086   
23087       
23088       ac_ext=C
23089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23090 ac_cpp='$CXXCPP $CPPFLAGS'
23091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23093 cross_compiling=$ac_cv_prog_cxx_cross
23094
23095       cat > conftest.$ac_ext <<EOF
23096 #line 23097 "configure"
23097 #include "confdefs.h"
23098 #include <stdlib.h>
23099 int main() {
23100  setenv(0, 0, 0);
23101 ; return 0; }
23102 EOF
23103 if { (eval echo configure:23104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23104   rm -rf conftest*
23105   glibcpp_cv_func_setenv_use=yes
23106 else
23107   echo "configure: failed program was:" >&5
23108   cat conftest.$ac_ext >&5
23109   rm -rf conftest*
23110   glibcpp_cv_func_setenv_use=no
23111 fi
23112 rm -f conftest*
23113       ac_ext=c
23114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23115 ac_cpp='$CPP $CPPFLAGS'
23116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23118 cross_compiling=$ac_cv_prog_cc_cross
23119
23120     
23121 fi
23122
23123   fi
23124   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23125   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23126     for ac_func in setenv
23127 do
23128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23129 echo "configure:23130: checking for $ac_func" >&5
23130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23131   echo $ac_n "(cached) $ac_c" 1>&6
23132 else
23133   cat > conftest.$ac_ext <<EOF
23134 #line 23135 "configure"
23135 #include "confdefs.h"
23136 /* System header to define __stub macros and hopefully few prototypes,
23137     which can conflict with char $ac_func(); below.  */
23138 #include <assert.h>
23139 /* Override any gcc2 internal prototype to avoid an error.  */
23140 /* We use char because int might match the return type of a gcc2
23141     builtin and then its argument prototype would still apply.  */
23142 char $ac_func();
23143
23144 int main() {
23145
23146 /* The GNU C library defines this for functions which it implements
23147     to always fail with ENOSYS.  Some functions are actually named
23148     something starting with __ and the normal name is an alias.  */
23149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23150 choke me
23151 #else
23152 $ac_func();
23153 #endif
23154
23155 ; return 0; }
23156 EOF
23157 if { (eval echo configure:23158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23158   rm -rf conftest*
23159   eval "ac_cv_func_$ac_func=yes"
23160 else
23161   echo "configure: failed program was:" >&5
23162   cat conftest.$ac_ext >&5
23163   rm -rf conftest*
23164   eval "ac_cv_func_$ac_func=no"
23165 fi
23166 rm -f conftest*
23167 fi
23168
23169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23170   echo "$ac_t""yes" 1>&6
23171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23172   cat >> confdefs.h <<EOF
23173 #define $ac_tr_func 1
23174 EOF
23175  
23176 else
23177   echo "$ac_t""no" 1>&6
23178 fi
23179 done
23180     
23181   fi
23182
23183
23184   # Export file names for ABI checking.
23185   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23186   
23187
23188   # Don't do ABI checking unless native.
23189   
23190
23191 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
23192   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23193   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23194 else
23195   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23196   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23197 fi
23198
23199 fi
23200
23201 # This depends on the possibly-skipped linker test above.
23202 # Check whether --enable-symvers or --disable-symvers was given.
23203 if test "${enable_symvers+set}" = set; then
23204   enableval="$enable_symvers"
23205   case "$enableval" in
23206  yes) enable_symvers=yes ;;
23207  no)  enable_symvers=no ;;
23208  # other names here, just as sanity checks
23209  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23210  gnu) enable_symvers=$enableval ;;
23211  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23212  esac
23213 else
23214   enable_symvers=yes
23215 fi
23216
23217 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23218 # don't know enough about $LD to do tricks... 
23219 if test x$enable_shared = xno || 
23220         test "x$LD" = x || 
23221         test x$glibcpp_gnu_ld_version = x; then
23222   enable_symvers=no
23223 fi
23224
23225 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23226 if test $enable_symvers != no; then
23227   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23228 echo "configure:23229: checking for shared libgcc" >&5
23229   ac_save_CFLAGS="$CFLAGS"
23230   CFLAGS=' -lgcc_s'
23231   cat > conftest.$ac_ext <<EOF
23232 #line 23233 "configure"
23233 #include "confdefs.h"
23234
23235 int main() {
23236 return 0
23237 ; return 0; }
23238 EOF
23239 if { (eval echo configure:23240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23240   rm -rf conftest*
23241   glibcpp_shared_libgcc=yes
23242 else
23243   echo "configure: failed program was:" >&5
23244   cat conftest.$ac_ext >&5
23245   rm -rf conftest*
23246   glibcpp_shared_libgcc=no
23247 fi
23248 rm -f conftest*
23249   CFLAGS="$ac_save_CFLAGS"
23250   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23251 fi
23252
23253 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23254 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23255 glibcpp_min_gnu_ld_version=21200
23256
23257 # Check to see if unspecified "yes" value can win, given results
23258 # above.  
23259 if test $enable_symvers = yes ; then
23260   if test $with_gnu_ld = yes &&
23261     test $glibcpp_shared_libgcc = yes ;
23262   then
23263     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23264         enable_symvers=gnu
23265     else
23266       ac_test_CFLAGS="${CFLAGS+set}"
23267       ac_save_CFLAGS="$CFLAGS"
23268       CFLAGS='-shared -Wl,--version-script,conftest.map'
23269       enable_symvers=no
23270       
23271       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23272       
23273       cat > conftest.$ac_ext <<EOF
23274 #line 23275 "configure"
23275 #include "confdefs.h"
23276 int foo;
23277 int main() {
23278
23279 ; return 0; }
23280 EOF
23281 if { (eval echo configure:23282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23282   rm -rf conftest*
23283   enable_symvers=gnu
23284 else
23285   echo "configure: failed program was:" >&5
23286   cat conftest.$ac_ext >&5
23287 fi
23288 rm -f conftest*
23289       if test "$ac_test_CFLAGS" = set; then
23290         CFLAGS="$ac_save_CFLAGS"
23291       else
23292         # this is the suspicious part
23293         CFLAGS=''
23294       fi
23295       rm -f conftest.map
23296     fi
23297   else
23298     # just fail for now
23299     enable_symvers=no
23300   fi
23301 fi
23302
23303 case $enable_symvers in
23304   no)
23305       LINKER_MAP=config/linker-map.dummy
23306       ;;
23307   gnu)
23308       LINKER_MAP=config/linker-map.gnu
23309       cat >> confdefs.h <<\EOF
23310 #define _GLIBCPP_SYMVER 1
23311 EOF
23312         
23313       ;;
23314 esac
23315
23316
23317
23318
23319 if test $enable_symvers != no; then
23320   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23321   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23322 else
23323   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23324   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23325 fi
23326 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23327 echo "configure:23328: checking versioning on shared library symbols" >&5
23328 echo "$ac_t""$enable_symvers" 1>&6
23329
23330
23331 # Propagate the target-specific source directories through the build chain.
23332 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23333 # uses it, and they only get used here.)
23334 OS_INC_SRCDIR=config/${os_include_dir}
23335 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23336
23337
23338
23339 # Set up cross-compile flags
23340   
23341
23342 if test "$CANADIAN" = yes; then
23343   CANADIAN_TRUE=
23344   CANADIAN_FALSE='#'
23345 else
23346   CANADIAN_TRUE='#'
23347   CANADIAN_FALSE=
23348 fi
23349  
23350 cat > confcache <<\EOF
23351 # This file is a shell script that caches the results of configure
23352 # tests run on this system so they can be shared between configure
23353 # scripts and configure runs.  It is not useful on other systems.
23354 # If it contains results you don't want to keep, you may remove or edit it.
23355 #
23356 # By default, configure uses ./config.cache as the cache file,
23357 # creating it if it does not exist already.  You can give configure
23358 # the --cache-file=FILE option to use a different cache file; that is
23359 # what configure does when it calls configure scripts in
23360 # subdirectories, so they share the cache.
23361 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23362 # config.status only pays attention to the cache file if you give it the
23363 # --recheck option to rerun configure.
23364 #
23365 EOF
23366 # The following way of writing the cache mishandles newlines in values,
23367 # but we know of no workaround that is simple, portable, and efficient.
23368 # So, don't put newlines in cache variables' values.
23369 # Ultrix sh set writes to stderr and can't be redirected directly,
23370 # and sets the high bit in the cache file unless we assign to the vars.
23371 (set) 2>&1 |
23372   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23373   *ac_space=\ *)
23374     # `set' does not quote correctly, so add quotes (double-quote substitution
23375     # turns \\\\ into \\, and sed turns \\ into \).
23376     sed -n \
23377       -e "s/'/'\\\\''/g" \
23378       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23379     ;;
23380   *)
23381     # `set' quotes correctly as required by POSIX, so do not add quotes.
23382     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23383     ;;
23384   esac >> confcache
23385 if cmp -s $cache_file confcache; then
23386   :
23387 else
23388   if test -w $cache_file; then
23389     echo "updating cache $cache_file"
23390     cat confcache > $cache_file
23391   else
23392     echo "not updating unwritable cache $cache_file"
23393   fi
23394 fi
23395 rm -f confcache
23396
23397
23398 if test "${multilib}" = "yes"; then
23399   multilib_arg="--enable-multilib"
23400 else
23401   multilib_arg=
23402 fi
23403
23404 # Export all the install information
23405
23406 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23407 # exported correctly in GLIBCPP_CONFIGURE.
23408 glibcpp_toolexecdir=no
23409 glibcpp_toolexeclibdir=no
23410 glibcpp_prefixdir=${prefix}
23411
23412 # Process the option --with-gxx-include-dir=<path to include-files directory>
23413 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23414 echo "configure:23415: checking for --with-gxx-include-dir" >&5
23415 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23416 if test "${with_gxx_include_dir+set}" = set; then
23417   withval="$with_gxx_include_dir"
23418   case "${withval}" in
23419   yes)
23420     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23421     gxx_include_dir=no
23422     ;;
23423   no)
23424     gxx_include_dir=no
23425     ;;
23426   *)
23427     gxx_include_dir=${withval}
23428     ;;
23429 esac
23430 else
23431   gxx_include_dir=no
23432 fi
23433
23434 echo "$ac_t""$gxx_include_dir" 1>&6
23435
23436 # Process the option "--enable-version-specific-runtime-libs"
23437 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23438 echo "configure:23439: checking for --enable-version-specific-runtime-libs" >&5
23439 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23440 if test "${enable_version_specific_runtime_libs+set}" = set; then
23441   enableval="$enable_version_specific_runtime_libs"
23442   case "$enableval" in
23443  yes) version_specific_libs=yes ;;
23444  no)  version_specific_libs=no ;;
23445  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23446  esac
23447 else
23448   version_specific_libs=no
23449 fi
23450 # Option set, now we can test it.
23451 echo "$ac_t""$version_specific_libs" 1>&6
23452
23453 # Default case for install directory for include files.
23454 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23455   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23456 fi
23457
23458 # Version-specific runtime libs processing.
23459 if test $version_specific_libs = yes; then
23460   # Need the gcc compiler version to know where to install libraries
23461   # and header files if --enable-version-specific-runtime-libs option
23462   # is selected.
23463   if test x"$gxx_include_dir" = x"no"; then
23464     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23465   fi
23466   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23467   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23468 fi
23469
23470 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23471 # Install a library built with a cross compiler in tooldir, not libdir.
23472 if test x"$glibcpp_toolexecdir" = x"no"; then 
23473   if test -n "$with_cross_host" &&
23474      test x"$with_cross_host" != x"no"; then
23475     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23476     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
23477   else
23478     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23479     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
23480   fi
23481 fi
23482
23483 echo $ac_n "checking for install location""... $ac_c" 1>&6
23484 echo "configure:23485: checking for install location" >&5
23485 echo "$ac_t""$gxx_include_dir" 1>&6
23486
23487
23488
23489
23490
23491
23492
23493 # Export all the include and flag information to makefiles.
23494
23495   # Root level of the build directory include sources.
23496   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23497
23498   # Passed down for canadian crosses.
23499   if test x"$CANADIAN" = xyes; then
23500     TOPLEVEL_INCLUDES='-I$(includedir)'
23501   fi
23502
23503   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23504
23505   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23506
23507   if test x"$need_libio" = xyes; then
23508     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23509     
23510   fi
23511
23512   # Now, export this to all the little Makefiles....
23513   
23514   
23515   
23516   
23517
23518
23519   # Optimization flags that are probably a good idea for thrill-seekers. Just
23520   # uncomment the lines below and make, everything else is ready to go... 
23521   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
23522   OPTIMIZE_CXXFLAGS=
23523   
23524
23525   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23526   
23527
23528
23529 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23530    grep "enable shared" > /dev/null; then
23531   LIBSUPCXX_PICFLAGS=-prefer-pic
23532 else
23533   LIBSUPCXX_PICFLAGS=
23534 fi
23535
23536
23537 # Generate the various Makefiles, include files, and scripts.
23538 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23539 # and libsupc++/Makefile.am so that multilib installs will end up
23540 # installed in the correct place. To work around this not being passed
23541 # down from config-ml.in -> top_srcdir/Makefile.am ->
23542 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23543 trap '' 1 2 15
23544 cat > confcache <<\EOF
23545 # This file is a shell script that caches the results of configure
23546 # tests run on this system so they can be shared between configure
23547 # scripts and configure runs.  It is not useful on other systems.
23548 # If it contains results you don't want to keep, you may remove or edit it.
23549 #
23550 # By default, configure uses ./config.cache as the cache file,
23551 # creating it if it does not exist already.  You can give configure
23552 # the --cache-file=FILE option to use a different cache file; that is
23553 # what configure does when it calls configure scripts in
23554 # subdirectories, so they share the cache.
23555 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23556 # config.status only pays attention to the cache file if you give it the
23557 # --recheck option to rerun configure.
23558 #
23559 EOF
23560 # The following way of writing the cache mishandles newlines in values,
23561 # but we know of no workaround that is simple, portable, and efficient.
23562 # So, don't put newlines in cache variables' values.
23563 # Ultrix sh set writes to stderr and can't be redirected directly,
23564 # and sets the high bit in the cache file unless we assign to the vars.
23565 (set) 2>&1 |
23566   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23567   *ac_space=\ *)
23568     # `set' does not quote correctly, so add quotes (double-quote substitution
23569     # turns \\\\ into \\, and sed turns \\ into \).
23570     sed -n \
23571       -e "s/'/'\\\\''/g" \
23572       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23573     ;;
23574   *)
23575     # `set' quotes correctly as required by POSIX, so do not add quotes.
23576     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23577     ;;
23578   esac >> confcache
23579 if cmp -s $cache_file confcache; then
23580   :
23581 else
23582   if test -w $cache_file; then
23583     echo "updating cache $cache_file"
23584     cat confcache > $cache_file
23585   else
23586     echo "not updating unwritable cache $cache_file"
23587   fi
23588 fi
23589 rm -f confcache
23590
23591 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23592
23593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23594 # Let make expand exec_prefix.
23595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23596
23597 # Any assignment to VPATH causes Sun make to only execute
23598 # the first set of double-colon rules, so remove it if not needed.
23599 # If there is a colon in the path, we need to keep it.
23600 if test "x$srcdir" = x.; then
23601   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
23602 fi
23603
23604 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23605
23606 DEFS=-DHAVE_CONFIG_H
23607
23608 # Without the "./", some shells look in PATH for config.status.
23609 : ${CONFIG_STATUS=./config.status}
23610
23611 echo creating $CONFIG_STATUS
23612 rm -f $CONFIG_STATUS
23613 cat > $CONFIG_STATUS <<EOF
23614 #! /bin/sh
23615 # Generated automatically by configure.
23616 # Run this file to recreate the current configuration.
23617 # This directory was configured as follows,
23618 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23619 #
23620 # $0 $ac_configure_args
23621 #
23622 # Compiler output produced by configure, useful for debugging
23623 # configure, is in ./config.log if it exists.
23624
23625 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23626 for ac_option
23627 do
23628   case "\$ac_option" in
23629   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23630     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23631     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23632   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23633     echo "$CONFIG_STATUS generated by autoconf version 2.13"
23634     exit 0 ;;
23635   -help | --help | --hel | --he | --h)
23636     echo "\$ac_cs_usage"; exit 0 ;;
23637   *) echo "\$ac_cs_usage"; exit 1 ;;
23638   esac
23639 done
23640
23641 ac_given_srcdir=$srcdir
23642 ac_given_INSTALL="$INSTALL"
23643
23644 trap 'rm -fr `echo "Makefile \
23645     include/Makefile src/Makefile \
23646     libmath/Makefile libio/Makefile libsupc++/Makefile \
23647     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23648 EOF
23649 cat >> $CONFIG_STATUS <<EOF
23650
23651 # Protect against being on the right side of a sed subst in config.status.
23652 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23653  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23654 $ac_vpsub
23655 $extrasub
23656 s%@SHELL@%$SHELL%g
23657 s%@CFLAGS@%$CFLAGS%g
23658 s%@CPPFLAGS@%$CPPFLAGS%g
23659 s%@CXXFLAGS@%$CXXFLAGS%g
23660 s%@FFLAGS@%$FFLAGS%g
23661 s%@DEFS@%$DEFS%g
23662 s%@LDFLAGS@%$LDFLAGS%g
23663 s%@LIBS@%$LIBS%g
23664 s%@exec_prefix@%$exec_prefix%g
23665 s%@prefix@%$prefix%g
23666 s%@program_transform_name@%$program_transform_name%g
23667 s%@bindir@%$bindir%g
23668 s%@sbindir@%$sbindir%g
23669 s%@libexecdir@%$libexecdir%g
23670 s%@datadir@%$datadir%g
23671 s%@sysconfdir@%$sysconfdir%g
23672 s%@sharedstatedir@%$sharedstatedir%g
23673 s%@localstatedir@%$localstatedir%g
23674 s%@libdir@%$libdir%g
23675 s%@includedir@%$includedir%g
23676 s%@oldincludedir@%$oldincludedir%g
23677 s%@infodir@%$infodir%g
23678 s%@mandir@%$mandir%g
23679 s%@PACKAGE@%$PACKAGE%g
23680 s%@libtool_VERSION@%$libtool_VERSION%g
23681 s%@toplevel_srcdir@%$toplevel_srcdir%g
23682 s%@host@%$host%g
23683 s%@host_alias@%$host_alias%g
23684 s%@host_cpu@%$host_cpu%g
23685 s%@host_vendor@%$host_vendor%g
23686 s%@host_os@%$host_os%g
23687 s%@target@%$target%g
23688 s%@target_alias@%$target_alias%g
23689 s%@target_cpu@%$target_cpu%g
23690 s%@target_vendor@%$target_vendor%g
23691 s%@target_os@%$target_os%g
23692 s%@build@%$build%g
23693 s%@build_alias@%$build_alias%g
23694 s%@build_cpu@%$build_cpu%g
23695 s%@build_vendor@%$build_vendor%g
23696 s%@build_os@%$build_os%g
23697 s%@glibcpp_builddir@%$glibcpp_builddir%g
23698 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
23699 s%@AWK@%$AWK%g
23700 s%@LN_S@%$LN_S%g
23701 s%@glibcpp_basedir@%$glibcpp_basedir%g
23702 s%@CC@%$CC%g
23703 s%@glibcpp_CXX@%$glibcpp_CXX%g
23704 s%@AS@%$AS%g
23705 s%@AR@%$AR%g
23706 s%@RANLIB@%$RANLIB%g
23707 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23708 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23709 s%@INSTALL_DATA@%$INSTALL_DATA%g
23710 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
23711 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
23712 s%@MAINT@%$MAINT%g
23713 s%@EXEEXT@%$EXEEXT%g
23714 s%@VERSION@%$VERSION%g
23715 s%@ACLOCAL@%$ACLOCAL%g
23716 s%@AUTOCONF@%$AUTOCONF%g
23717 s%@AUTOMAKE@%$AUTOMAKE%g
23718 s%@AUTOHEADER@%$AUTOHEADER%g
23719 s%@MAKEINFO@%$MAKEINFO%g
23720 s%@SET_MAKE@%$SET_MAKE%g
23721 s%@OBJEXT@%$OBJEXT%g
23722 s%@STRIP@%$STRIP%g
23723 s%@LIBTOOL@%$LIBTOOL%g
23724 s%@CXXCPP@%$CXXCPP%g
23725 s%@enable_shared@%$enable_shared%g
23726 s%@enable_static@%$enable_static%g
23727 s%@ifGNUmake@%$ifGNUmake%g
23728 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
23729 s%@CPP@%$CPP%g
23730 s%@CSTDIO_H@%$CSTDIO_H%g
23731 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
23732 s%@CCODECVT_C@%$CCODECVT_C%g
23733 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
23734 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
23735 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
23736 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
23737 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
23738 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
23739 s%@libio_la@%$libio_la%g
23740 s%@check_msgfmt@%$check_msgfmt%g
23741 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
23742 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
23743 s%@glibcpp_localedir@%$glibcpp_localedir%g
23744 s%@USE_NLS@%$USE_NLS%g
23745 s%@CLOCALE_H@%$CLOCALE_H%g
23746 s%@CCODECVT_H@%$CCODECVT_H%g
23747 s%@CMESSAGES_H@%$CMESSAGES_H%g
23748 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
23749 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
23750 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
23751 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
23752 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
23753 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
23754 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
23755 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
23756 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
23757 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
23758 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
23759 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
23760 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
23761 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
23762 s%@WERROR@%$WERROR%g
23763 s%@baseline_file@%$baseline_file%g
23764 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
23765 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
23766 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
23767 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
23768 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
23769 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
23770 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
23771 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
23772 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
23773 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
23774 s%@gxx_include_dir@%$gxx_include_dir%g
23775 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
23776 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
23777 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
23778 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
23779 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
23780 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
23781 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
23782 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
23783 s%@WARN_FLAGS@%$WARN_FLAGS%g
23784 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
23785
23786 CEOF
23787 EOF
23788
23789 cat >> $CONFIG_STATUS <<\EOF
23790
23791 # Split the substitutions into bite-sized pieces for seds with
23792 # small command number limits, like on Digital OSF/1 and HP-UX.
23793 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23794 ac_file=1 # Number of current file.
23795 ac_beg=1 # First line for current file.
23796 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23797 ac_more_lines=:
23798 ac_sed_cmds=""
23799 while $ac_more_lines; do
23800   if test $ac_beg -gt 1; then
23801     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23802   else
23803     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23804   fi
23805   if test ! -s conftest.s$ac_file; then
23806     ac_more_lines=false
23807     rm -f conftest.s$ac_file
23808   else
23809     if test -z "$ac_sed_cmds"; then
23810       ac_sed_cmds="sed -f conftest.s$ac_file"
23811     else
23812       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23813     fi
23814     ac_file=`expr $ac_file + 1`
23815     ac_beg=$ac_end
23816     ac_end=`expr $ac_end + $ac_max_sed_cmds`
23817   fi
23818 done
23819 if test -z "$ac_sed_cmds"; then
23820   ac_sed_cmds=cat
23821 fi
23822 EOF
23823
23824 cat >> $CONFIG_STATUS <<EOF
23825
23826 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
23827     include/Makefile src/Makefile \
23828     libmath/Makefile libio/Makefile libsupc++/Makefile \
23829     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
23830 EOF
23831 cat >> $CONFIG_STATUS <<\EOF
23832 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23833   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23834   case "$ac_file" in
23835   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23836        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23837   *) ac_file_in="${ac_file}.in" ;;
23838   esac
23839
23840   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23841
23842   # Remove last slash and all that follows it.  Not all systems have dirname.
23843   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23844   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23845     # The file is in a subdirectory.
23846     test ! -d "$ac_dir" && mkdir "$ac_dir"
23847     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23848     # A "../" for each directory in $ac_dir_suffix.
23849     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23850   else
23851     ac_dir_suffix= ac_dots=
23852   fi
23853
23854   case "$ac_given_srcdir" in
23855   .)  srcdir=.
23856       if test -z "$ac_dots"; then top_srcdir=.
23857       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23858   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23859   *) # Relative path.
23860     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23861     top_srcdir="$ac_dots$ac_given_srcdir" ;;
23862   esac
23863
23864   case "$ac_given_INSTALL" in
23865   [/$]*) INSTALL="$ac_given_INSTALL" ;;
23866   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23867   esac
23868
23869   echo creating "$ac_file"
23870   rm -f "$ac_file"
23871   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23872   case "$ac_file" in
23873   *Makefile*) ac_comsub="1i\\
23874 # $configure_input" ;;
23875   *) ac_comsub= ;;
23876   esac
23877
23878   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23879   sed -e "$ac_comsub
23880 s%@configure_input@%$configure_input%g
23881 s%@srcdir@%$srcdir%g
23882 s%@top_srcdir@%$top_srcdir%g
23883 s%@INSTALL@%$INSTALL%g
23884 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23885 fi; done
23886 rm -f conftest.s*
23887
23888 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23889 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23890 #
23891 # ac_d sets the value in "#define NAME VALUE" lines.
23892 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23893 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
23894 ac_dC='\3'
23895 ac_dD='%g'
23896 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23897 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23898 ac_uB='\([      ]\)%\1#\2define\3'
23899 ac_uC=' '
23900 ac_uD='\4%g'
23901 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23902 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23903 ac_eB='$%\1#\2define\3'
23904 ac_eC=' '
23905 ac_eD='%g'
23906
23907 if test "${CONFIG_HEADERS+set}" != set; then
23908 EOF
23909 cat >> $CONFIG_STATUS <<EOF
23910   CONFIG_HEADERS="config.h"
23911 EOF
23912 cat >> $CONFIG_STATUS <<\EOF
23913 fi
23914 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23915   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23916   case "$ac_file" in
23917   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23918        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23919   *) ac_file_in="${ac_file}.in" ;;
23920   esac
23921
23922   echo creating $ac_file
23923
23924   rm -f conftest.frag conftest.in conftest.out
23925   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23926   cat $ac_file_inputs > conftest.in
23927
23928 EOF
23929
23930 # Transform confdefs.h into a sed script conftest.vals that substitutes
23931 # the proper values into config.h.in to produce config.h.  And first:
23932 # Protect against being on the right side of a sed subst in config.status.
23933 # Protect against being in an unquoted here document in config.status.
23934 rm -f conftest.vals
23935 cat > conftest.hdr <<\EOF
23936 s/[\\&%]/\\&/g
23937 s%[\\$`]%\\&%g
23938 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23939 s%ac_d%ac_u%gp
23940 s%ac_u%ac_e%gp
23941 EOF
23942 sed -n -f conftest.hdr confdefs.h > conftest.vals
23943 rm -f conftest.hdr
23944
23945 # This sed command replaces #undef with comments.  This is necessary, for
23946 # example, in the case of _POSIX_SOURCE, which is predefined and required
23947 # on some systems where configure will not decide to define it.
23948 cat >> conftest.vals <<\EOF
23949 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23950 EOF
23951
23952 # Break up conftest.vals because some shells have a limit on
23953 # the size of here documents, and old seds have small limits too.
23954
23955 rm -f conftest.tail
23956 while :
23957 do
23958   ac_lines=`grep -c . conftest.vals`
23959   # grep -c gives empty output for an empty file on some AIX systems.
23960   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23961   # Write a limited-size here document to conftest.frag.
23962   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23963   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23964   echo 'CEOF
23965   sed -f conftest.frag conftest.in > conftest.out
23966   rm -f conftest.in
23967   mv conftest.out conftest.in
23968 ' >> $CONFIG_STATUS
23969   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23970   rm -f conftest.vals
23971   mv conftest.tail conftest.vals
23972 done
23973 rm -f conftest.vals
23974
23975 cat >> $CONFIG_STATUS <<\EOF
23976   rm -f conftest.frag conftest.h
23977   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
23978   cat conftest.in >> conftest.h
23979   rm -f conftest.in
23980   if cmp -s $ac_file conftest.h 2>/dev/null; then
23981     echo "$ac_file is unchanged"
23982     rm -f conftest.h
23983   else
23984     # Remove last slash and all that follows it.  Not all systems have dirname.
23985       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23986       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23987       # The file is in a subdirectory.
23988       test ! -d "$ac_dir" && mkdir "$ac_dir"
23989     fi
23990     rm -f $ac_file
23991     mv conftest.h $ac_file
23992   fi
23993 fi; done
23994
23995 EOF
23996
23997 cat >> $CONFIG_STATUS <<EOF
23998 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCODECVT_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
23999 ac_dests="src/basic_file.cc src/c++locale.cc src/codecvt_members.cc src/collate_members.cc src/ctype_members.cc src/messages_members.cc src/monetary_members.cc src/numeric_members.cc src/time_members.cc src/c++locale_internal.h src/linker.map"
24000 EOF
24001
24002 cat >> $CONFIG_STATUS <<\EOF
24003 srcdir=$ac_given_srcdir
24004 while test -n "$ac_sources"; do
24005   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24006   set $ac_sources; ac_source=$1; shift; ac_sources=$*
24007
24008   echo "linking $srcdir/$ac_source to $ac_dest"
24009
24010   if test ! -r $srcdir/$ac_source; then
24011     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
24012   fi
24013   rm -f $ac_dest
24014
24015   # Make relative symlinks.
24016   # Remove last slash and all that follows it.  Not all systems have dirname.
24017   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
24018   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
24019     # The dest file is in a subdirectory.
24020     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
24021     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
24022     # A "../" for each directory in $ac_dest_dir_suffix.
24023     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
24024   else
24025     ac_dest_dir_suffix= ac_dots=
24026   fi
24027
24028   case "$srcdir" in
24029   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
24030   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
24031   esac
24032
24033   # Make a symlink if possible; otherwise try a hard link.
24034   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24035     ln $srcdir/$ac_source $ac_dest; then :
24036   else
24037     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
24038   fi
24039 done
24040 EOF
24041 cat >> $CONFIG_STATUS <<EOF
24042
24043 srcdir=${srcdir}
24044 host=${host}
24045 target=${target}
24046 with_multisubdir=${with_multisubdir}
24047 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24048 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24049 glibcpp_basedir=${glibcpp_basedir}
24050 CC="${CC}"
24051 CXX="${CXX}"
24052
24053 EOF
24054 cat >> $CONFIG_STATUS <<\EOF
24055 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24056 if test -n "$CONFIG_FILES"; then
24057   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24058   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24059   grep '^MULTISUBDIR =' Makefile >> src/Makefile
24060   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24061 fi
24062 chmod +x mkcheck
24063 chmod +x testsuite_flags
24064
24065 exit 0
24066 EOF
24067 chmod +x $CONFIG_STATUS
24068 rm -fr confdefs* $ac_clean_files
24069 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24070
24071
24072
24073 # Sanity checking & User-visible messages.
24074 # Checks down here, otherwise they get scrolled off before
24075 # the user will notice.
24076
24077 # Trying to get more people to read documentation.  Possibly remove
24078 # check and warn all the time. There is no "informational" AC_MSG_
24079 # macro, so these are going to be printed even when --quiet/--silent
24080 # is given.
24081 if test ! -f stamp-sanity-warned; then
24082   touch stamp-sanity-warned
24083   echo ""
24084   echo "Please make certain that you read the installation information here:"
24085   echo "  faster => ${srcdir}/docs/html/install.html"
24086   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24087   echo ""
24088   echo "and the configuration information here:"
24089   echo "  faster => ${srcdir}/docs/html/configopts.html"
24090   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24091   echo ""
24092   echo "before proceeding with ${_cv_gnu_make_command}."
24093   echo ""
24094 fi