OSDN Git Service

c62ae771fc109f8602152589903df7294e83e2da
[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 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
105
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
112
113 ac_prev=
114 for ac_option
115 do
116
117   # If the previous option needs an argument, assign it.
118   if test -n "$ac_prev"; then
119     eval "$ac_prev=\$ac_option"
120     ac_prev=
121     continue
122   fi
123
124   case "$ac_option" in
125   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126   *) ac_optarg= ;;
127   esac
128
129   # Accept the important Cygnus configure options, so we can diagnose typos.
130
131   case "$ac_option" in
132
133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
134     ac_prev=bindir ;;
135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136     bindir="$ac_optarg" ;;
137
138   -build | --build | --buil | --bui | --bu)
139     ac_prev=build ;;
140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141     build="$ac_optarg" ;;
142
143   -cache-file | --cache-file | --cache-fil | --cache-fi \
144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145     ac_prev=cache_file ;;
146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148     cache_file="$ac_optarg" ;;
149
150   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151     ac_prev=datadir ;;
152   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153   | --da=*)
154     datadir="$ac_optarg" ;;
155
156   -disable-* | --disable-*)
157     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158     # Reject names that are not valid shell variable names.
159     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161     fi
162     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163     eval "enable_${ac_feature}=no" ;;
164
165   -enable-* | --enable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     case "$ac_option" in
173       *=*) ;;
174       *) ac_optarg=yes ;;
175     esac
176     eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180   | --exec | --exe | --ex)
181     ac_prev=exec_prefix ;;
182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184   | --exec=* | --exe=* | --ex=*)
185     exec_prefix="$ac_optarg" ;;
186
187   -gas | --gas | --ga | --g)
188     # Obsolete; use --with-gas.
189     with_gas=yes ;;
190
191   -help | --help | --hel | --he)
192     # Omit some internal or obsolete options to make the list less imposing.
193     # This message is too long to be a string in the A/UX 3.1 sh.
194     cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198   --cache-file=FILE       cache test results in FILE
199   --help                  print this message
200   --no-create             do not create output files
201   --quiet, --silent       do not print \`checking...' messages
202   --version               print the version of autoconf that created configure
203 Directory and file names:
204   --prefix=PREFIX         install architecture-independent files in PREFIX
205                           [$ac_default_prefix]
206   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                           [same as prefix]
208   --bindir=DIR            user executables in DIR [EPREFIX/bin]
209   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211   --datadir=DIR           read-only architecture-independent data in DIR
212                           [PREFIX/share]
213   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                           [PREFIX/com]
216   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218   --includedir=DIR        C header files in DIR [PREFIX/include]
219   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220   --infodir=DIR           info documentation in DIR [PREFIX/info]
221   --mandir=DIR            man documentation in DIR [PREFIX/man]
222   --srcdir=DIR            find the sources in DIR [configure dir or ..]
223   --program-prefix=PREFIX prepend PREFIX to installed program names
224   --program-suffix=SUFFIX append SUFFIX to installed program names
225   --program-transform-name=PROGRAM
226                           run sed PROGRAM on installed program names
227 EOF
228     cat << EOF
229 Host type:
230   --build=BUILD           configure for building on BUILD [BUILD=HOST]
231   --host=HOST             configure for HOST [guessed]
232   --target=TARGET         configure for TARGET [TARGET=HOST]
233 Features and packages:
234   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238   --x-includes=DIR        X include files are in DIR
239   --x-libraries=DIR       X library files are in DIR
240 EOF
241     if test -n "$ac_help"; then
242       echo "--enable and --with options recognized:$ac_help"
243     fi
244     exit 0 ;;
245
246   -host | --host | --hos | --ho)
247     ac_prev=host ;;
248   -host=* | --host=* | --hos=* | --ho=*)
249     host="$ac_optarg" ;;
250
251   -includedir | --includedir | --includedi | --included | --include \
252   | --includ | --inclu | --incl | --inc)
253     ac_prev=includedir ;;
254   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255   | --includ=* | --inclu=* | --incl=* | --inc=*)
256     includedir="$ac_optarg" ;;
257
258   -infodir | --infodir | --infodi | --infod | --info | --inf)
259     ac_prev=infodir ;;
260   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261     infodir="$ac_optarg" ;;
262
263   -libdir | --libdir | --libdi | --libd)
264     ac_prev=libdir ;;
265   -libdir=* | --libdir=* | --libdi=* | --libd=*)
266     libdir="$ac_optarg" ;;
267
268   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269   | --libexe | --libex | --libe)
270     ac_prev=libexecdir ;;
271   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272   | --libexe=* | --libex=* | --libe=*)
273     libexecdir="$ac_optarg" ;;
274
275   -localstatedir | --localstatedir | --localstatedi | --localstated \
276   | --localstate | --localstat | --localsta | --localst \
277   | --locals | --local | --loca | --loc | --lo)
278     ac_prev=localstatedir ;;
279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282     localstatedir="$ac_optarg" ;;
283
284   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285     ac_prev=mandir ;;
286   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287     mandir="$ac_optarg" ;;
288
289   -nfp | --nfp | --nf)
290     # Obsolete; use --without-fp.
291     with_fp=no ;;
292
293   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294   | --no-cr | --no-c)
295     no_create=yes ;;
296
297   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299     no_recursion=yes ;;
300
301   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303   | --oldin | --oldi | --old | --ol | --o)
304     ac_prev=oldincludedir ;;
305   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308     oldincludedir="$ac_optarg" ;;
309
310   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311     ac_prev=prefix ;;
312   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313     prefix="$ac_optarg" ;;
314
315   -program-prefix | --program-prefix | --program-prefi | --program-pref \
316   | --program-pre | --program-pr | --program-p)
317     ac_prev=program_prefix ;;
318   -program-prefix=* | --program-prefix=* | --program-prefi=* \
319   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320     program_prefix="$ac_optarg" ;;
321
322   -program-suffix | --program-suffix | --program-suffi | --program-suff \
323   | --program-suf | --program-su | --program-s)
324     ac_prev=program_suffix ;;
325   -program-suffix=* | --program-suffix=* | --program-suffi=* \
326   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327     program_suffix="$ac_optarg" ;;
328
329   -program-transform-name | --program-transform-name \
330   | --program-transform-nam | --program-transform-na \
331   | --program-transform-n | --program-transform- \
332   | --program-transform | --program-transfor \
333   | --program-transfo | --program-transf \
334   | --program-trans | --program-tran \
335   | --progr-tra | --program-tr | --program-t)
336     ac_prev=program_transform_name ;;
337   -program-transform-name=* | --program-transform-name=* \
338   | --program-transform-nam=* | --program-transform-na=* \
339   | --program-transform-n=* | --program-transform-=* \
340   | --program-transform=* | --program-transfor=* \
341   | --program-transfo=* | --program-transf=* \
342   | --program-trans=* | --program-tran=* \
343   | --progr-tra=* | --program-tr=* | --program-t=*)
344     program_transform_name="$ac_optarg" ;;
345
346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347   | -silent | --silent | --silen | --sile | --sil)
348     silent=yes ;;
349
350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351     ac_prev=sbindir ;;
352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353   | --sbi=* | --sb=*)
354     sbindir="$ac_optarg" ;;
355
356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358   | --sharedst | --shareds | --shared | --share | --shar \
359   | --sha | --sh)
360     ac_prev=sharedstatedir ;;
361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364   | --sha=* | --sh=*)
365     sharedstatedir="$ac_optarg" ;;
366
367   -site | --site | --sit)
368     ac_prev=site ;;
369   -site=* | --site=* | --sit=*)
370     site="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538   if test "x$prefix" != xNONE; then
539     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540   else
541     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542   fi
543 fi
544 for ac_site_file in $CONFIG_SITE; do
545   if test -r "$ac_site_file"; then
546     echo "loading site script $ac_site_file"
547     . "$ac_site_file"
548   fi
549 done
550
551 if test -r "$cache_file"; then
552   echo "loading cache $cache_file"
553   . $cache_file
554 else
555   echo "creating cache $cache_file"
556   > $cache_file
557 fi
558
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
565
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582 PACKAGE=libstdc++
583
584 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
585 release_VERSION=3.1.0
586
587 # For libtool versioning info, format is CURRENT:REVISION:AGE
588 libtool_VERSION=4:0:0
589
590
591 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
592 # AC 2.5x sets target_alias iff the user specified --target, but we use it
593 # everywhere, so we set it here just to be sure.  In AC 2.13
594 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
595 ac_aux_dir=
596 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
597   if test -f $ac_dir/install-sh; then
598     ac_aux_dir=$ac_dir
599     ac_install_sh="$ac_aux_dir/install-sh -c"
600     break
601   elif test -f $ac_dir/install.sh; then
602     ac_aux_dir=$ac_dir
603     ac_install_sh="$ac_aux_dir/install.sh -c"
604     break
605   fi
606 done
607 if test -z "$ac_aux_dir"; then
608   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
609 fi
610 ac_config_guess=$ac_aux_dir/config.guess
611 ac_config_sub=$ac_aux_dir/config.sub
612 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
613
614
615 # Do some error checking and defaulting for the host and target type.
616 # The inputs are:
617 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
618 #
619 # The rules are:
620 # 1. You are not allowed to specify --host, --target, and nonopt at the
621 #    same time.
622 # 2. Host defaults to nonopt.
623 # 3. If nonopt is not specified, then host defaults to the current host,
624 #    as determined by config.guess.
625 # 4. Target and build default to nonopt.
626 # 5. If nonopt is not specified, then target and build default to host.
627
628 # The aliases save the names the user supplied, while $host etc.
629 # will get canonicalized.
630 case $host---$target---$nonopt in
631 NONE---*---* | *---NONE---* | *---*---NONE) ;;
632 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
633 esac
634
635
636 # Make sure we can run config.sub.
637 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
638 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
639 fi
640
641 echo $ac_n "checking host system type""... $ac_c" 1>&6
642 echo "configure:643: checking host system type" >&5
643
644 host_alias=$host
645 case "$host_alias" in
646 NONE)
647   case $nonopt in
648   NONE)
649     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
650     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
651     fi ;;
652   *) host_alias=$nonopt ;;
653   esac ;;
654 esac
655
656 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
657 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
658 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
659 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
660 echo "$ac_t""$host" 1>&6
661
662 echo $ac_n "checking target system type""... $ac_c" 1>&6
663 echo "configure:664: checking target system type" >&5
664
665 target_alias=$target
666 case "$target_alias" in
667 NONE)
668   case $nonopt in
669   NONE) target_alias=$host_alias ;;
670   *) target_alias=$nonopt ;;
671   esac ;;
672 esac
673
674 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
675 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$target" 1>&6
679
680 echo $ac_n "checking build system type""... $ac_c" 1>&6
681 echo "configure:682: checking build system type" >&5
682
683 build_alias=$build
684 case "$build_alias" in
685 NONE)
686   case $nonopt in
687   NONE) build_alias=$host_alias ;;
688   *) build_alias=$nonopt ;;
689   esac ;;
690 esac
691
692 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
693 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
694 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
695 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
696 echo "$ac_t""$build" 1>&6
697
698 test "$host_alias" != "$target_alias" &&
699   test "$program_prefix$program_suffix$program_transform_name" = \
700     NONENONEs,x,x, &&
701   program_prefix=${target_alias}-
702
703 target_alias=${target_alias-$target}
704
705
706 # Find a good install program.  We prefer a C program (faster),
707 # so one script is as good as another.  But avoid the broken or
708 # incompatible versions:
709 # SysV /etc/install, /usr/sbin/install
710 # SunOS /usr/etc/install
711 # IRIX /sbin/install
712 # AIX /bin/install
713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
716 # ./install, which can be erroneously created by make from ./install.sh.
717 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
718 echo "configure:719: checking for a BSD compatible install" >&5
719 if test -z "$INSTALL"; then
720 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
721   echo $ac_n "(cached) $ac_c" 1>&6
722 else
723     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
724   for ac_dir in $PATH; do
725     # Account for people who put trailing slashes in PATH elements.
726     case "$ac_dir/" in
727     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
728     *)
729       # OSF1 and SCO ODT 3.0 have their own names for install.
730       # Don't use installbsd from OSF since it installs stuff as root
731       # by default.
732       for ac_prog in ginstall scoinst install; do
733         if test -f $ac_dir/$ac_prog; then
734           if test $ac_prog = install &&
735             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
736             # AIX install.  It has an incompatible calling convention.
737             :
738           else
739             ac_cv_path_install="$ac_dir/$ac_prog -c"
740             break 2
741           fi
742         fi
743       done
744       ;;
745     esac
746   done
747   IFS="$ac_save_IFS"
748
749 fi
750   if test "${ac_cv_path_install+set}" = set; then
751     INSTALL="$ac_cv_path_install"
752   else
753     # As a last resort, use the slow shell script.  We don't cache a
754     # path for INSTALL within a source directory, because that will
755     # break other packages using the cache if that directory is
756     # removed, or if the path is relative.
757     INSTALL="$ac_install_sh"
758   fi
759 fi
760 echo "$ac_t""$INSTALL" 1>&6
761
762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
763 # It thinks the first close brace ends the variable substitution.
764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
765
766 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
767
768 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
769
770 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
771 echo "configure:772: checking whether build environment is sane" >&5
772 # Just in case
773 sleep 1
774 echo timestamp > conftestfile
775 # Do `set' in a subshell so we don't clobber the current shell's
776 # arguments.  Must try -L first in case configure is actually a
777 # symlink; some systems play weird games with the mod time of symlinks
778 # (eg FreeBSD returns the mod time of the symlink's containing
779 # directory).
780 if (
781    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
782    if test "$*" = "X"; then
783       # -L didn't work.
784       set X `ls -t $srcdir/configure conftestfile`
785    fi
786    if test "$*" != "X $srcdir/configure conftestfile" \
787       && test "$*" != "X conftestfile $srcdir/configure"; then
788
789       # If neither matched, then we have a broken ls.  This can happen
790       # if, for instance, CONFIG_SHELL is bash and it inherits a
791       # broken ls alias from the environment.  This has actually
792       # happened.  Such a system could not be considered "sane".
793       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
794 alias in your environment" 1>&2; exit 1; }
795    fi
796
797    test "$2" = conftestfile
798    )
799 then
800    # Ok.
801    :
802 else
803    { echo "configure: error: newly created file is older than distributed files!
804 Check your system clock" 1>&2; exit 1; }
805 fi
806 rm -f conftest*
807 echo "$ac_t""yes" 1>&6
808 if test "$program_transform_name" = s,x,x,; then
809   program_transform_name=
810 else
811   # Double any \ or $.  echo might interpret backslashes.
812   cat <<\EOF_SED > conftestsed
813 s,\\,\\\\,g; s,\$,$$,g
814 EOF_SED
815   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
816   rm -f conftestsed
817 fi
818 test "$program_prefix" != NONE &&
819   program_transform_name="s,^,${program_prefix},; $program_transform_name"
820 # Use a double $ so make ignores it.
821 test "$program_suffix" != NONE &&
822   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
823
824 # sed with no file args requires a program.
825 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
826
827 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
828 echo "configure:829: checking whether ${MAKE-make} sets \${MAKE}" >&5
829 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
830 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
831   echo $ac_n "(cached) $ac_c" 1>&6
832 else
833   cat > conftestmake <<\EOF
834 all:
835         @echo 'ac_maketemp="${MAKE}"'
836 EOF
837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
838 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
839 if test -n "$ac_maketemp"; then
840   eval ac_cv_prog_make_${ac_make}_set=yes
841 else
842   eval ac_cv_prog_make_${ac_make}_set=no
843 fi
844 rm -f conftestmake
845 fi
846 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
847   echo "$ac_t""yes" 1>&6
848   SET_MAKE=
849 else
850   echo "$ac_t""no" 1>&6
851   SET_MAKE="MAKE=${MAKE-make}"
852 fi
853
854
855 PACKAGE=$PACKAGE
856
857 VERSION=$release_VERSION
858
859 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
860   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
861 fi
862 cat >> confdefs.h <<EOF
863 #define PACKAGE "$PACKAGE"
864 EOF
865
866 cat >> confdefs.h <<EOF
867 #define VERSION "$VERSION"
868 EOF
869
870
871
872 missing_dir=`cd $ac_aux_dir && pwd`
873 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
874 echo "configure:875: checking for working aclocal" >&5
875 # Run test in a subshell; some versions of sh will print an error if
876 # an executable is not found, even if stderr is redirected.
877 # Redirect stdin to placate older versions of autoconf.  Sigh.
878 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
879    ACLOCAL=aclocal
880    echo "$ac_t""found" 1>&6
881 else
882    ACLOCAL="$missing_dir/missing aclocal"
883    echo "$ac_t""missing" 1>&6
884 fi
885
886 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
887 echo "configure:888: checking for working autoconf" >&5
888 # Run test in a subshell; some versions of sh will print an error if
889 # an executable is not found, even if stderr is redirected.
890 # Redirect stdin to placate older versions of autoconf.  Sigh.
891 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
892    AUTOCONF=autoconf
893    echo "$ac_t""found" 1>&6
894 else
895    AUTOCONF="$missing_dir/missing autoconf"
896    echo "$ac_t""missing" 1>&6
897 fi
898
899 echo $ac_n "checking for working automake""... $ac_c" 1>&6
900 echo "configure:901: checking for working automake" >&5
901 # Run test in a subshell; some versions of sh will print an error if
902 # an executable is not found, even if stderr is redirected.
903 # Redirect stdin to placate older versions of autoconf.  Sigh.
904 if (automake --version) < /dev/null > /dev/null 2>&1; then
905    AUTOMAKE=automake
906    echo "$ac_t""found" 1>&6
907 else
908    AUTOMAKE="$missing_dir/missing automake"
909    echo "$ac_t""missing" 1>&6
910 fi
911
912 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
913 echo "configure:914: checking for working autoheader" >&5
914 # Run test in a subshell; some versions of sh will print an error if
915 # an executable is not found, even if stderr is redirected.
916 # Redirect stdin to placate older versions of autoconf.  Sigh.
917 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
918    AUTOHEADER=autoheader
919    echo "$ac_t""found" 1>&6
920 else
921    AUTOHEADER="$missing_dir/missing autoheader"
922    echo "$ac_t""missing" 1>&6
923 fi
924
925 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
926 echo "configure:927: checking for working makeinfo" >&5
927 # Run test in a subshell; some versions of sh will print an error if
928 # an executable is not found, even if stderr is redirected.
929 # Redirect stdin to placate older versions of autoconf.  Sigh.
930 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
931    MAKEINFO=makeinfo
932    echo "$ac_t""found" 1>&6
933 else
934    MAKEINFO="$missing_dir/missing makeinfo"
935    echo "$ac_t""missing" 1>&6
936 fi
937
938
939
940
941
942
943 # Runs configure.host and configure.target, as well as finds CC, CXX
944 # and assorted other critical bits.  Have to run this before the
945 # GLIBCPP_ENABLE_* macros below.
946 if test $host != $build; then
947   ac_tool_prefix=${host_alias}-
948 else
949   ac_tool_prefix=
950 fi
951
952 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
953 echo "configure:954: checking for Cygwin environment" >&5
954 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
955   echo $ac_n "(cached) $ac_c" 1>&6
956 else
957   cat > conftest.$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
960
961 int main() {
962
963 #ifndef __CYGWIN__
964 #define __CYGWIN__ __CYGWIN32__
965 #endif
966 return __CYGWIN__;
967 ; return 0; }
968 EOF
969 if { (eval echo configure:970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
970   rm -rf conftest*
971   ac_cv_cygwin=yes
972 else
973   echo "configure: failed program was:" >&5
974   cat conftest.$ac_ext >&5
975   rm -rf conftest*
976   ac_cv_cygwin=no
977 fi
978 rm -f conftest*
979 rm -f conftest*
980 fi
981
982 echo "$ac_t""$ac_cv_cygwin" 1>&6
983 CYGWIN=
984 test "$ac_cv_cygwin" = yes && CYGWIN=yes
985 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
986 echo "configure:987: checking for mingw32 environment" >&5
987 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
988   echo $ac_n "(cached) $ac_c" 1>&6
989 else
990   cat > conftest.$ac_ext <<EOF
991 #line 992 "configure"
992 #include "confdefs.h"
993
994 int main() {
995 return __MINGW32__;
996 ; return 0; }
997 EOF
998 if { (eval echo configure:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
999   rm -rf conftest*
1000   ac_cv_mingw32=yes
1001 else
1002   echo "configure: failed program was:" >&5
1003   cat conftest.$ac_ext >&5
1004   rm -rf conftest*
1005   ac_cv_mingw32=no
1006 fi
1007 rm -f conftest*
1008 rm -f conftest*
1009 fi
1010
1011 echo "$ac_t""$ac_cv_mingw32" 1>&6
1012 MINGW32=
1013 test "$ac_cv_mingw32" = yes && MINGW32=yes
1014
1015     # Check whether --enable-multilib or --disable-multilib was given.
1016 if test "${enable_multilib+set}" = set; then
1017   enableval="$enable_multilib"
1018   case "${enableval}" in
1019     yes) multilib=yes ;;
1020     no)  multilib=no ;;
1021     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1022    esac
1023 else
1024   multilib=yes
1025 fi
1026
1027   # When building with srcdir == objdir, links to the source files will
1028   # be created in directories within the target_subdir.  We have to
1029   # adjust toplevel_srcdir accordingly, so that configure finds
1030   # install-sh and other auxiliary files that live in the top-level
1031   # source directory.
1032   if test "${srcdir}" = "."; then
1033     if test -z "${with_target_subdir}"; then
1034       toprel=".."
1035     else
1036       if test "${with_target_subdir}" != "."; then
1037         toprel="${with_multisrctop}../.."
1038       else
1039         toprel="${with_multisrctop}.."
1040       fi
1041     fi
1042   else
1043     toprel=".."
1044   fi
1045   ac_aux_dir=
1046 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1047   if test -f $ac_dir/install-sh; then
1048     ac_aux_dir=$ac_dir
1049     ac_install_sh="$ac_aux_dir/install-sh -c"
1050     break
1051   elif test -f $ac_dir/install.sh; then
1052     ac_aux_dir=$ac_dir
1053     ac_install_sh="$ac_aux_dir/install.sh -c"
1054     break
1055   fi
1056 done
1057 if test -z "$ac_aux_dir"; then
1058   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1059 fi
1060 ac_config_guess=$ac_aux_dir/config.guess
1061 ac_config_sub=$ac_aux_dir/config.sub
1062 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1063
1064   toplevel_srcdir=\${top_srcdir}/$toprel
1065   
1066
1067   # Export build and source directories.
1068   # These need to be absolute paths, yet at the same time need to
1069   # canonicalize only relative paths, because then amd will not unmount
1070   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1071   glibcpp_builddir=`pwd`
1072   case $srcdir in
1073   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1074   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1075   esac
1076   
1077   
1078
1079     
1080
1081   for ac_prog in gawk mawk nawk awk
1082 do
1083 # Extract the first word of "$ac_prog", so it can be a program name with args.
1084 set dummy $ac_prog; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1088   echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090   if test -n "$AWK"; then
1091   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1092 else
1093   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1094   ac_dummy="$PATH"
1095   for ac_dir in $ac_dummy; do
1096     test -z "$ac_dir" && ac_dir=.
1097     if test -f $ac_dir/$ac_word; then
1098       ac_cv_prog_AWK="$ac_prog"
1099       break
1100     fi
1101   done
1102   IFS="$ac_save_ifs"
1103 fi
1104 fi
1105 AWK="$ac_cv_prog_AWK"
1106 if test -n "$AWK"; then
1107   echo "$ac_t""$AWK" 1>&6
1108 else
1109   echo "$ac_t""no" 1>&6
1110 fi
1111
1112 test -n "$AWK" && break
1113 done
1114
1115   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1116   # be 'cp -p' if linking isn't available.
1117   #ac_cv_prog_LN_S='cp -p'
1118   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether ln -s works" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1121   echo $ac_n "(cached) $ac_c" 1>&6
1122 else
1123   rm -f conftestdata
1124 if ln -s X conftestdata 2>/dev/null
1125 then
1126   rm -f conftestdata
1127   ac_cv_prog_LN_S="ln -s"
1128 else
1129   ac_cv_prog_LN_S=ln
1130 fi
1131 fi
1132 LN_S="$ac_cv_prog_LN_S"
1133 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1134   echo "$ac_t""yes" 1>&6
1135 else
1136   echo "$ac_t""no" 1>&6
1137 fi
1138
1139
1140   # We use these options to decide which functions to include.
1141   # Check whether --with-target-subdir or --without-target-subdir was given.
1142 if test "${with_target_subdir+set}" = set; then
1143   withval="$with_target_subdir"
1144   :
1145 fi
1146
1147   # Check whether --with-cross-host or --without-cross-host was given.
1148 if test "${with_cross_host+set}" = set; then
1149   withval="$with_cross_host"
1150   :
1151 fi
1152
1153
1154   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1155   
1156
1157   # Never versions of autoconf add an underscore to these functions.
1158   # Prevent future problems ...
1159   
1160   
1161   
1162   
1163
1164   # AC_PROG_CC
1165   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1166   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1167   # are probably using a cross compiler, which will not be able to fully
1168   # link an executable.  This is addressed in later versions of autoconf.
1169
1170   
1171
1172       
1173   # Extract the first word of "gcc", so it can be a program name with args.
1174 set dummy gcc; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1178   echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180   if test -n "$CC"; then
1181   ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1184   ac_dummy="$PATH"
1185   for ac_dir in $ac_dummy; do
1186     test -z "$ac_dir" && ac_dir=.
1187     if test -f $ac_dir/$ac_word; then
1188       ac_cv_prog_CC="gcc"
1189       break
1190     fi
1191   done
1192   IFS="$ac_save_ifs"
1193 fi
1194 fi
1195 CC="$ac_cv_prog_CC"
1196 if test -n "$CC"; then
1197   echo "$ac_t""$CC" 1>&6
1198 else
1199   echo "$ac_t""no" 1>&6
1200 fi
1201
1202   if test -z "$CC"; then
1203     # Extract the first word of "cc", so it can be a program name with args.
1204 set dummy cc; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   if test -n "$CC"; then
1211   ac_cv_prog_CC="$CC" # Let the user override the test.
1212 else
1213   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1214   ac_prog_rejected=no
1215   ac_dummy="$PATH"
1216   for ac_dir in $ac_dummy; do
1217     test -z "$ac_dir" && ac_dir=.
1218     if test -f $ac_dir/$ac_word; then
1219       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1220         ac_prog_rejected=yes
1221         continue
1222       fi
1223       ac_cv_prog_CC="cc"
1224       break
1225     fi
1226   done
1227   IFS="$ac_save_ifs"
1228 if test $ac_prog_rejected = yes; then
1229   # We found a bogon in the path, so make sure we never use it.
1230   set dummy $ac_cv_prog_CC
1231   shift
1232   if test $# -gt 0; then
1233     # We chose a different compiler from the bogus one.
1234     # However, it has the same basename, so the bogon will be chosen
1235     # first if we set CC to just the basename; use the full file name.
1236     shift
1237     set dummy "$ac_dir/$ac_word" "$@"
1238     shift
1239     ac_cv_prog_CC="$@"
1240   fi
1241 fi
1242 fi
1243 fi
1244 CC="$ac_cv_prog_CC"
1245 if test -n "$CC"; then
1246   echo "$ac_t""$CC" 1>&6
1247 else
1248   echo "$ac_t""no" 1>&6
1249 fi
1250
1251     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1252   fi
1253
1254   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether we are using GNU C" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1257   echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259   cat > conftest.c <<EOF
1260 #ifdef __GNUC__
1261   yes;
1262 #endif
1263 EOF
1264 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1265   ac_cv_prog_gcc=yes
1266 else
1267   ac_cv_prog_gcc=no
1268 fi
1269 fi
1270
1271 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1272
1273   if test $ac_cv_prog_gcc = yes; then
1274     GCC=yes
1275           ac_test_CFLAGS="${CFLAGS+set}"
1276     ac_save_CFLAGS="$CFLAGS"
1277     CFLAGS=
1278     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1279 echo "configure:1280: checking whether ${CC-cc} accepts -g" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1281   echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283   echo 'void f(){}' > conftest.c
1284 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1285   ac_cv_prog_cc_g=yes
1286 else
1287   ac_cv_prog_cc_g=no
1288 fi
1289 rm -f conftest*
1290
1291 fi
1292
1293 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1294     if test "$ac_test_CFLAGS" = set; then
1295       CFLAGS="$ac_save_CFLAGS"
1296     elif test $ac_cv_prog_cc_g = yes; then
1297       CFLAGS="-g -O2"
1298     else
1299       CFLAGS="-O2"
1300     fi
1301   else
1302     GCC=
1303     test "${CFLAGS+set}" = set || CFLAGS="-g"
1304   fi
1305   
1306
1307   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1308   # will try to link in libstdc++.
1309   
1310
1311       
1312   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1313   # flags that come in CXX while configuring libstdc++.  They're different
1314   # from those used for all other target libraries.  If CXX is set in
1315   # the environment, respect that here.
1316   glibcpp_CXX=$CXX
1317   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1318 do
1319 # Extract the first word of "$ac_prog", so it can be a program name with args.
1320 set dummy $ac_prog; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   if test -n "$glibcpp_CXX"; then
1327   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1328 else
1329   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330   ac_dummy="$PATH"
1331   for ac_dir in $ac_dummy; do
1332     test -z "$ac_dir" && ac_dir=.
1333     if test -f $ac_dir/$ac_word; then
1334       ac_cv_prog_glibcpp_CXX="$ac_prog"
1335       break
1336     fi
1337   done
1338   IFS="$ac_save_ifs"
1339 fi
1340 fi
1341 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1342 if test -n "$glibcpp_CXX"; then
1343   echo "$ac_t""$glibcpp_CXX" 1>&6
1344 else
1345   echo "$ac_t""no" 1>&6
1346 fi
1347
1348 test -n "$glibcpp_CXX" && break
1349 done
1350 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1351
1352   
1353   CXX=$glibcpp_CXX
1354   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1355
1356   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether we are using GNU C++" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1359   echo $ac_n "(cached) $ac_c" 1>&6
1360 else
1361   cat > conftest.C <<EOF
1362 #ifdef __GNUC__
1363   yes;
1364 #endif
1365 EOF
1366 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1367   ac_cv_prog_gxx=yes
1368 else
1369   ac_cv_prog_gxx=no
1370 fi
1371 fi
1372
1373 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1374
1375   if test $ac_cv_prog_gxx = yes; then
1376     GXX=yes
1377                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1378     ac_save_CXXFLAGS="$CXXFLAGS"
1379     CXXFLAGS=
1380     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${CXX-g++} accepts -g" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1383   echo $ac_n "(cached) $ac_c" 1>&6
1384 else
1385   echo 'void f(){}' > conftest.cc
1386 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1387   ac_cv_prog_cxx_g=yes
1388 else
1389   ac_cv_prog_cxx_g=no
1390 fi
1391 rm -f conftest*
1392
1393 fi
1394
1395 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1396     if test "$ac_test_CXXFLAGS" = set; then
1397       CXXFLAGS="$ac_save_CXXFLAGS"
1398     elif test $ac_cv_prog_cxx_g = yes; then
1399       CXXFLAGS="-g -O2"
1400     else
1401       CXXFLAGS="-O2"
1402     fi
1403   else
1404     GXX=
1405     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1406   fi
1407   
1408
1409   # For some reason, gettext needs this.
1410   
1411         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1412 echo "configure:1413: checking for strerror in -lcposix" >&5
1413 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1415   echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417   ac_save_LIBS="$LIBS"
1418 LIBS="-lcposix  $LIBS"
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* Override any gcc2 internal prototype to avoid an error.  */
1423 /* We use char because int might match the return type of a gcc2
1424     builtin and then its argument prototype would still apply.  */
1425 char strerror();
1426
1427 int main() {
1428 strerror()
1429 ; return 0; }
1430 EOF
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432   rm -rf conftest*
1433   eval "ac_cv_lib_$ac_lib_var=yes"
1434 else
1435   echo "configure: failed program was:" >&5
1436   cat conftest.$ac_ext >&5
1437   rm -rf conftest*
1438   eval "ac_cv_lib_$ac_lib_var=no"
1439 fi
1440 rm -f conftest*
1441 LIBS="$ac_save_LIBS"
1442
1443 fi
1444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1445   echo "$ac_t""yes" 1>&6
1446   LIBS="$LIBS -lcposix"
1447 else
1448   echo "$ac_t""no" 1>&6
1449 fi
1450
1451   
1452
1453
1454   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}as; ac_word=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1459   echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461   if test -n "$AS"; then
1462   ac_cv_prog_AS="$AS" # Let the user override the test.
1463 else
1464   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1465   ac_dummy="$PATH"
1466   for ac_dir in $ac_dummy; do
1467     test -z "$ac_dir" && ac_dir=.
1468     if test -f $ac_dir/$ac_word; then
1469       ac_cv_prog_AS="${ac_tool_prefix}as"
1470       break
1471     fi
1472   done
1473   IFS="$ac_save_ifs"
1474   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1475 fi
1476 fi
1477 AS="$ac_cv_prog_AS"
1478 if test -n "$AS"; then
1479   echo "$ac_t""$AS" 1>&6
1480 else
1481   echo "$ac_t""no" 1>&6
1482 fi
1483
1484
1485
1486   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1487 set dummy ${ac_tool_prefix}ar; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1491   echo $ac_n "(cached) $ac_c" 1>&6
1492 else
1493   if test -n "$AR"; then
1494   ac_cv_prog_AR="$AR" # Let the user override the test.
1495 else
1496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1497   ac_dummy="$PATH"
1498   for ac_dir in $ac_dummy; do
1499     test -z "$ac_dir" && ac_dir=.
1500     if test -f $ac_dir/$ac_word; then
1501       ac_cv_prog_AR="${ac_tool_prefix}ar"
1502       break
1503     fi
1504   done
1505   IFS="$ac_save_ifs"
1506   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1507 fi
1508 fi
1509 AR="$ac_cv_prog_AR"
1510 if test -n "$AR"; then
1511   echo "$ac_t""$AR" 1>&6
1512 else
1513   echo "$ac_t""no" 1>&6
1514 fi
1515
1516
1517
1518   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1521 echo "configure:1522: checking for $ac_word" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1523   echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525   if test -n "$RANLIB"; then
1526   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1527 else
1528   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1529   ac_dummy="$PATH"
1530   for ac_dir in $ac_dummy; do
1531     test -z "$ac_dir" && ac_dir=.
1532     if test -f $ac_dir/$ac_word; then
1533       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1534       break
1535     fi
1536   done
1537   IFS="$ac_save_ifs"
1538 fi
1539 fi
1540 RANLIB="$ac_cv_prog_RANLIB"
1541 if test -n "$RANLIB"; then
1542   echo "$ac_t""$RANLIB" 1>&6
1543 else
1544   echo "$ac_t""no" 1>&6
1545 fi
1546
1547
1548 if test -z "$ac_cv_prog_RANLIB"; then
1549 if test -n "$ac_tool_prefix"; then
1550   # Extract the first word of "ranlib", so it can be a program name with args.
1551 set dummy ranlib; ac_word=$2
1552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_word" >&5
1554 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1555   echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557   if test -n "$RANLIB"; then
1558   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1559 else
1560   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1561   ac_dummy="$PATH"
1562   for ac_dir in $ac_dummy; do
1563     test -z "$ac_dir" && ac_dir=.
1564     if test -f $ac_dir/$ac_word; then
1565       ac_cv_prog_RANLIB="ranlib"
1566       break
1567     fi
1568   done
1569   IFS="$ac_save_ifs"
1570   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1571 fi
1572 fi
1573 RANLIB="$ac_cv_prog_RANLIB"
1574 if test -n "$RANLIB"; then
1575   echo "$ac_t""$RANLIB" 1>&6
1576 else
1577   echo "$ac_t""no" 1>&6
1578 fi
1579
1580 else
1581   RANLIB="ranlib-not-found-in-path-error"
1582 fi
1583 fi
1584
1585   # Find a good install program.  We prefer a C program (faster),
1586 # so one script is as good as another.  But avoid the broken or
1587 # incompatible versions:
1588 # SysV /etc/install, /usr/sbin/install
1589 # SunOS /usr/etc/install
1590 # IRIX /sbin/install
1591 # AIX /bin/install
1592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1595 # ./install, which can be erroneously created by make from ./install.sh.
1596 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1597 echo "configure:1598: checking for a BSD compatible install" >&5
1598 if test -z "$INSTALL"; then
1599 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1600   echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1603   for ac_dir in $PATH; do
1604     # Account for people who put trailing slashes in PATH elements.
1605     case "$ac_dir/" in
1606     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1607     *)
1608       # OSF1 and SCO ODT 3.0 have their own names for install.
1609       # Don't use installbsd from OSF since it installs stuff as root
1610       # by default.
1611       for ac_prog in ginstall scoinst install; do
1612         if test -f $ac_dir/$ac_prog; then
1613           if test $ac_prog = install &&
1614             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1615             # AIX install.  It has an incompatible calling convention.
1616             :
1617           else
1618             ac_cv_path_install="$ac_dir/$ac_prog -c"
1619             break 2
1620           fi
1621         fi
1622       done
1623       ;;
1624     esac
1625   done
1626   IFS="$ac_save_IFS"
1627
1628 fi
1629   if test "${ac_cv_path_install+set}" = set; then
1630     INSTALL="$ac_cv_path_install"
1631   else
1632     # As a last resort, use the slow shell script.  We don't cache a
1633     # path for INSTALL within a source directory, because that will
1634     # break other packages using the cache if that directory is
1635     # removed, or if the path is relative.
1636     INSTALL="$ac_install_sh"
1637   fi
1638 fi
1639 echo "$ac_t""$INSTALL" 1>&6
1640
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1644
1645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1646
1647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648
1649
1650   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1651 echo "configure:1652: checking whether to enable maintainer-specific portions of Makefiles" >&5
1652     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1653 if test "${enable_maintainer_mode+set}" = set; then
1654   enableval="$enable_maintainer_mode"
1655   USE_MAINTAINER_MODE=$enableval
1656 else
1657   USE_MAINTAINER_MODE=no
1658 fi
1659
1660   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1661   
1662
1663 if test $USE_MAINTAINER_MODE = yes; then
1664   MAINTAINER_MODE_TRUE=
1665   MAINTAINER_MODE_FALSE='#'
1666 else
1667   MAINTAINER_MODE_TRUE='#'
1668   MAINTAINER_MODE_FALSE=
1669 fi
1670   MAINT=$MAINTAINER_MODE_TRUE
1671   
1672
1673
1674   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1675   # at least currently, we never actually build a program, so we never
1676   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1677   # fails, because we are probably configuring with a cross compiler
1678   # which can't create executables.  So we include AC_EXEEXT to keep
1679   # automake happy, but we don't execute it, since we don't care about
1680   # the result.
1681   if false; then
1682     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1683     # to nothing, so nothing would remain between `then' and `fi' if it
1684     # were not for the `:' below.
1685     :
1686     
1687
1688 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1689 echo "configure:1690: checking for executable suffix" >&5
1690 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1691   echo $ac_n "(cached) $ac_c" 1>&6
1692 else
1693   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1694   ac_cv_exeext=.exe
1695 else
1696   rm -f conftest*
1697   echo 'int main () { return 0; }' > conftest.$ac_ext
1698   ac_cv_exeext=
1699   if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1700     for file in conftest.*; do
1701       case $file in
1702       *.c | *.o | *.obj) ;;
1703       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1704       esac
1705     done
1706   else
1707     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1708   fi
1709   rm -f conftest*
1710   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1711 fi
1712 fi
1713
1714 EXEEXT=""
1715 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1716 echo "$ac_t""${ac_cv_exeext}" 1>&6
1717 ac_exeext=$EXEEXT
1718
1719   fi
1720
1721   . ${glibcpp_basedir}/configure.host
1722
1723   case ${glibcpp_basedir} in
1724     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1725     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1726   esac
1727
1728   # This does for the target what configure.host does for the host.  In
1729   # addition to possibly modifying the same flags, it also sets up symlinks.
1730   
1731     . ${glibcpp_basedir}/configure.target
1732     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1733     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1734
1735
1736
1737
1738
1739 # Check whether --enable-shared or --disable-shared was given.
1740 if test "${enable_shared+set}" = set; then
1741   enableval="$enable_shared"
1742   p=${PACKAGE-default}
1743 case $enableval in
1744 yes) enable_shared=yes ;;
1745 no) enable_shared=no ;;
1746 *)
1747   enable_shared=no
1748   # Look at the argument we got.  We use all the common list separators.
1749   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1750   for pkg in $enableval; do
1751     if test "X$pkg" = "X$p"; then
1752       enable_shared=yes
1753     fi
1754   done
1755   IFS="$ac_save_ifs"
1756   ;;
1757 esac
1758 else
1759   enable_shared=yes
1760 fi
1761
1762 # Check whether --enable-static or --disable-static was given.
1763 if test "${enable_static+set}" = set; then
1764   enableval="$enable_static"
1765   p=${PACKAGE-default}
1766 case $enableval in
1767 yes) enable_static=yes ;;
1768 no) enable_static=no ;;
1769 *)
1770   enable_static=no
1771   # Look at the argument we got.  We use all the common list separators.
1772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1773   for pkg in $enableval; do
1774     if test "X$pkg" = "X$p"; then
1775       enable_static=yes
1776     fi
1777   done
1778   IFS="$ac_save_ifs"
1779   ;;
1780 esac
1781 else
1782   enable_static=yes
1783 fi
1784
1785 # Check whether --enable-fast-install or --disable-fast-install was given.
1786 if test "${enable_fast_install+set}" = set; then
1787   enableval="$enable_fast_install"
1788   p=${PACKAGE-default}
1789 case $enableval in
1790 yes) enable_fast_install=yes ;;
1791 no) enable_fast_install=no ;;
1792 *)
1793   enable_fast_install=no
1794   # Look at the argument we got.  We use all the common list separators.
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1796   for pkg in $enableval; do
1797     if test "X$pkg" = "X$p"; then
1798       enable_fast_install=yes
1799     fi
1800   done
1801   IFS="$ac_save_ifs"
1802   ;;
1803 esac
1804 else
1805   enable_fast_install=yes
1806 fi
1807
1808 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1809 if test "${with_gnu_ld+set}" = set; then
1810   withval="$with_gnu_ld"
1811   test "$withval" = no || with_gnu_ld=yes
1812 else
1813   with_gnu_ld=no
1814 fi
1815
1816 ac_prog=ld
1817 if test "$GCC" = yes; then
1818   # Check if gcc -print-prog-name=ld gives a path.
1819   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1820 echo "configure:1821: checking for ld used by GCC" >&5
1821   case $host in
1822   *-*-mingw*)
1823     # gcc leaves a trailing carriage return which upsets mingw
1824     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1825   *)
1826     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1827   esac
1828   case $ac_prog in
1829     # Accept absolute paths.
1830     [\\/]* | [A-Za-z]:[\\/]*)
1831       re_direlt='/[^/][^/]*/\.\./'
1832       # Canonicalize the path of ld
1833       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1834       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1835         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1836       done
1837       test -z "$LD" && LD="$ac_prog"
1838       ;;
1839   "")
1840     # If it fails, then pretend we aren't using GCC.
1841     ac_prog=ld
1842     ;;
1843   *)
1844     # If it is relative, then search for the first ld in PATH.
1845     with_gnu_ld=unknown
1846     ;;
1847   esac
1848 elif test "$with_gnu_ld" = yes; then
1849   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1850 echo "configure:1851: checking for GNU ld" >&5
1851 else
1852   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1853 echo "configure:1854: checking for non-GNU ld" >&5
1854 fi
1855 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1856   echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858   if test -z "$LD"; then
1859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1860   for ac_dir in $PATH; do
1861     test -z "$ac_dir" && ac_dir=.
1862     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1863       lt_cv_path_LD="$ac_dir/$ac_prog"
1864       # Check to see if the program is GNU ld.  I'd rather use --version,
1865       # but apparently some GNU ld's only accept -v.
1866       # Break only if it was the GNU/non-GNU ld that we prefer.
1867       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1868         test "$with_gnu_ld" != no && break
1869       else
1870         test "$with_gnu_ld" != yes && break
1871       fi
1872     fi
1873   done
1874   IFS="$ac_save_ifs"
1875 else
1876   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1877 fi
1878 fi
1879
1880 LD="$lt_cv_path_LD"
1881 if test -n "$LD"; then
1882   echo "$ac_t""$LD" 1>&6
1883 else
1884   echo "$ac_t""no" 1>&6
1885 fi
1886 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1887 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1888 echo "configure:1889: checking if the linker ($LD) is GNU ld" >&5
1889 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1890   echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1893 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1894   lt_cv_prog_gnu_ld=yes
1895 else
1896   lt_cv_prog_gnu_ld=no
1897 fi
1898 fi
1899
1900 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1901 with_gnu_ld=$lt_cv_prog_gnu_ld
1902
1903
1904 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $LD option to reload object files" >&5
1906 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   lt_cv_ld_reload_flag='-r'
1910 fi
1911
1912 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1913 reload_flag=$lt_cv_ld_reload_flag
1914 test -n "$reload_flag" && reload_flag=" $reload_flag"
1915
1916 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1917 echo "configure:1918: checking for BSD-compatible nm" >&5
1918 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1919   echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921   if test -n "$NM"; then
1922   # Let the user override the test.
1923   lt_cv_path_NM="$NM"
1924 else
1925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1926   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1927     test -z "$ac_dir" && ac_dir=.
1928     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1929     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1930       # Check to see if the nm accepts a BSD-compat flag.
1931       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1932       #   nm: unknown option "B" ignored
1933       # Tru64's nm complains that /dev/null is an invalid object file
1934       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1935         lt_cv_path_NM="$tmp_nm -B"
1936         break
1937       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1938         lt_cv_path_NM="$tmp_nm -p"
1939         break
1940       else
1941         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1942         continue # so that we can try to find one that supports BSD flags
1943       fi
1944     fi
1945   done
1946   IFS="$ac_save_ifs"
1947   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1948 fi
1949 fi
1950
1951 NM="$lt_cv_path_NM"
1952 echo "$ac_t""$NM" 1>&6
1953
1954 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1955 echo "configure:1956: checking how to recognise dependant libraries" >&5
1956 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1957   echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959   lt_cv_file_magic_cmd='$MAGIC_CMD'
1960 lt_cv_file_magic_test_file=
1961 lt_cv_deplibs_check_method='unknown'
1962 # Need to set the preceding variable on all platforms that support
1963 # interlibrary dependencies.
1964 # 'none' -- dependencies not supported.
1965 # `unknown' -- same as none, but documents that we really don't know.
1966 # 'pass_all' -- all dependencies passed with no checks.
1967 # 'test_compile' -- check by making test program.
1968 # 'file_magic [regex]' -- check by looking for files in library path
1969 # which responds to the $file_magic_cmd with a given egrep regex.
1970 # If you have `file' or equivalent on your system and you're not sure
1971 # whether `pass_all' will *always* work, you probably want this one.
1972
1973 case $host_os in
1974 aix*)
1975   lt_cv_deplibs_check_method=pass_all
1976   ;;
1977
1978 beos*)
1979   lt_cv_deplibs_check_method=pass_all
1980   ;;
1981
1982 bsdi4*)
1983   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1984   lt_cv_file_magic_cmd='/usr/bin/file -L'
1985   lt_cv_file_magic_test_file=/shlib/libc.so
1986   ;;
1987
1988 cygwin* | mingw* |pw32*)
1989   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1990   lt_cv_file_magic_cmd='$OBJDUMP -f'
1991   ;;
1992
1993 darwin* | rhapsody*)
1994   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1995   lt_cv_file_magic_cmd='/usr/bin/file -L'
1996   case "$host_os" in
1997   rhapsody* | darwin1.012)
1998     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1999     ;;
2000   *) # Darwin 1.3 on
2001     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2002     ;;
2003   esac
2004   ;;
2005
2006 freebsd* )
2007   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2008     case $host_cpu in
2009     i*86 )
2010       # Not sure whether the presence of OpenBSD here was a mistake.
2011       # Let's accept both of them until this is cleared up.
2012       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2013       lt_cv_file_magic_cmd=/usr/bin/file
2014       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2015       ;;
2016     esac
2017   else
2018     lt_cv_deplibs_check_method=pass_all
2019   fi
2020   ;;
2021
2022 gnu*)
2023   lt_cv_deplibs_check_method=pass_all
2024   ;;
2025
2026 hpux10.20*|hpux11*)
2027   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2028   lt_cv_file_magic_cmd=/usr/bin/file
2029   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2030   ;;
2031
2032 irix5* | irix6*)
2033   case $host_os in
2034   irix5*)
2035     # this will be overridden with pass_all, but let us keep it just in case
2036     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2037     ;;
2038   *)
2039     case $LD in
2040     *-32|*"-32 ") libmagic=32-bit;;
2041     *-n32|*"-n32 ") libmagic=N32;;
2042     *-64|*"-64 ") libmagic=64-bit;;
2043     *) libmagic=never-match;;
2044     esac
2045     # this will be overridden with pass_all, but let us keep it just in case
2046     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2047     ;;
2048   esac
2049   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2050   lt_cv_deplibs_check_method=pass_all
2051   ;;
2052
2053 # This must be Linux ELF.
2054 linux-gnu*)
2055   case $host_cpu in
2056   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2057     lt_cv_deplibs_check_method=pass_all ;;
2058   *)
2059     # glibc up to 2.1.1 does not perform some relocations on ARM
2060     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2061   esac
2062   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2063   ;;
2064
2065 netbsd*)
2066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2067     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2068   else
2069     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2070   fi
2071   ;;
2072
2073 newsos6)
2074   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2075   lt_cv_file_magic_cmd=/usr/bin/file
2076   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2077   ;;
2078
2079 osf3* | osf4* | osf5*)
2080   # this will be overridden with pass_all, but let us keep it just in case
2081   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2082   lt_cv_file_magic_test_file=/shlib/libc.so
2083   lt_cv_deplibs_check_method=pass_all
2084   ;;
2085
2086 sco3.2v5*)
2087   lt_cv_deplibs_check_method=pass_all
2088   ;;
2089
2090 solaris*)
2091   lt_cv_deplibs_check_method=pass_all
2092   lt_cv_file_magic_test_file=/lib/libc.so
2093   ;;
2094
2095 sysv5uw[78]* | sysv4*uw2*)
2096   lt_cv_deplibs_check_method=pass_all
2097   ;;
2098
2099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2100   case $host_vendor in
2101   ncr)
2102     lt_cv_deplibs_check_method=pass_all
2103     ;;
2104   motorola)
2105     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]'
2106     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2107     ;;
2108   esac
2109   ;;
2110 esac
2111
2112 fi
2113
2114 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2115 file_magic_cmd=$lt_cv_file_magic_cmd
2116 deplibs_check_method=$lt_cv_deplibs_check_method
2117
2118 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2119 echo "configure:2120: checking for object suffix" >&5
2120 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2121   echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123   rm -f conftest*
2124 echo 'int i = 1;' > conftest.$ac_ext
2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2126   for ac_file in conftest.*; do
2127     case $ac_file in
2128     *.c) ;;
2129     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2130     esac
2131   done
2132 else
2133   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2134 fi
2135 rm -f conftest*
2136 fi
2137
2138 echo "$ac_t""$ac_cv_objext" 1>&6
2139 OBJEXT=$ac_cv_objext
2140 ac_objext=$ac_cv_objext
2141
2142 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2143
2144 # Only perform the check for file, if the check method requires it
2145 case $deplibs_check_method in
2146 file_magic*)
2147   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2148     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2149 echo "configure:2150: checking for ${ac_tool_prefix}file" >&5
2150 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2151   echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153   case $MAGIC_CMD in
2154   /*)
2155   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2156   ;;
2157   ?:/*)
2158   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2159   ;;
2160   *)
2161   ac_save_MAGIC_CMD="$MAGIC_CMD"
2162   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2163   ac_dummy="/usr/bin:$PATH"
2164   for ac_dir in $ac_dummy; do
2165     test -z "$ac_dir" && ac_dir=.
2166     if test -f $ac_dir/${ac_tool_prefix}file; then
2167       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2168       if test -n "$file_magic_test_file"; then
2169         case $deplibs_check_method in
2170         "file_magic "*)
2171           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2172           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2173           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2174             egrep "$file_magic_regex" > /dev/null; then
2175             :
2176           else
2177             cat <<EOF 1>&2
2178
2179 *** Warning: the command libtool uses to detect shared libraries,
2180 *** $file_magic_cmd, produces output that libtool cannot recognize.
2181 *** The result is that libtool may fail to recognize shared libraries
2182 *** as such.  This will affect the creation of libtool libraries that
2183 *** depend on shared libraries, but programs linked with such libtool
2184 *** libraries will work regardless of this problem.  Nevertheless, you
2185 *** may want to report the problem to your system manager and/or to
2186 *** bug-libtool@gnu.org
2187
2188 EOF
2189           fi ;;
2190         esac
2191       fi
2192       break
2193     fi
2194   done
2195   IFS="$ac_save_ifs"
2196   MAGIC_CMD="$ac_save_MAGIC_CMD"
2197   ;;
2198 esac
2199 fi
2200
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if test -n "$MAGIC_CMD"; then
2203   echo "$ac_t""$MAGIC_CMD" 1>&6
2204 else
2205   echo "$ac_t""no" 1>&6
2206 fi
2207
2208 if test -z "$lt_cv_path_MAGIC_CMD"; then
2209   if test -n "$ac_tool_prefix"; then
2210     echo $ac_n "checking for file""... $ac_c" 1>&6
2211 echo "configure:2212: checking for file" >&5
2212 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2213   echo $ac_n "(cached) $ac_c" 1>&6
2214 else
2215   case $MAGIC_CMD in
2216   /*)
2217   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2218   ;;
2219   ?:/*)
2220   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2221   ;;
2222   *)
2223   ac_save_MAGIC_CMD="$MAGIC_CMD"
2224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2225   ac_dummy="/usr/bin:$PATH"
2226   for ac_dir in $ac_dummy; do
2227     test -z "$ac_dir" && ac_dir=.
2228     if test -f $ac_dir/file; then
2229       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2230       if test -n "$file_magic_test_file"; then
2231         case $deplibs_check_method in
2232         "file_magic "*)
2233           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2236             egrep "$file_magic_regex" > /dev/null; then
2237             :
2238           else
2239             cat <<EOF 1>&2
2240
2241 *** Warning: the command libtool uses to detect shared libraries,
2242 *** $file_magic_cmd, produces output that libtool cannot recognize.
2243 *** The result is that libtool may fail to recognize shared libraries
2244 *** as such.  This will affect the creation of libtool libraries that
2245 *** depend on shared libraries, but programs linked with such libtool
2246 *** libraries will work regardless of this problem.  Nevertheless, you
2247 *** may want to report the problem to your system manager and/or to
2248 *** bug-libtool@gnu.org
2249
2250 EOF
2251           fi ;;
2252         esac
2253       fi
2254       break
2255     fi
2256   done
2257   IFS="$ac_save_ifs"
2258   MAGIC_CMD="$ac_save_MAGIC_CMD"
2259   ;;
2260 esac
2261 fi
2262
2263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2264 if test -n "$MAGIC_CMD"; then
2265   echo "$ac_t""$MAGIC_CMD" 1>&6
2266 else
2267   echo "$ac_t""no" 1>&6
2268 fi
2269
2270   else
2271     MAGIC_CMD=:
2272   fi
2273 fi
2274
2275   fi
2276   ;;
2277 esac
2278
2279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2284   echo $ac_n "(cached) $ac_c" 1>&6
2285 else
2286   if test -n "$RANLIB"; then
2287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2288 else
2289   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2290   ac_dummy="$PATH"
2291   for ac_dir in $ac_dummy; do
2292     test -z "$ac_dir" && ac_dir=.
2293     if test -f $ac_dir/$ac_word; then
2294       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2295       break
2296     fi
2297   done
2298   IFS="$ac_save_ifs"
2299 fi
2300 fi
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303   echo "$ac_t""$RANLIB" 1>&6
2304 else
2305   echo "$ac_t""no" 1>&6
2306 fi
2307
2308
2309 if test -z "$ac_cv_prog_RANLIB"; then
2310 if test -n "$ac_tool_prefix"; then
2311   # Extract the first word of "ranlib", so it can be a program name with args.
2312 set dummy ranlib; ac_word=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2316   echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318   if test -n "$RANLIB"; then
2319   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2320 else
2321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2322   ac_dummy="$PATH"
2323   for ac_dir in $ac_dummy; do
2324     test -z "$ac_dir" && ac_dir=.
2325     if test -f $ac_dir/$ac_word; then
2326       ac_cv_prog_RANLIB="ranlib"
2327       break
2328     fi
2329   done
2330   IFS="$ac_save_ifs"
2331   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2332 fi
2333 fi
2334 RANLIB="$ac_cv_prog_RANLIB"
2335 if test -n "$RANLIB"; then
2336   echo "$ac_t""$RANLIB" 1>&6
2337 else
2338   echo "$ac_t""no" 1>&6
2339 fi
2340
2341 else
2342   RANLIB=":"
2343 fi
2344 fi
2345
2346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}strip; ac_word=$2
2348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2349 echo "configure:2350: checking for $ac_word" >&5
2350 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   if test -n "$STRIP"; then
2354   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 else
2356   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2357   ac_dummy="$PATH"
2358   for ac_dir in $ac_dummy; do
2359     test -z "$ac_dir" && ac_dir=.
2360     if test -f $ac_dir/$ac_word; then
2361       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362       break
2363     fi
2364   done
2365   IFS="$ac_save_ifs"
2366 fi
2367 fi
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370   echo "$ac_t""$STRIP" 1>&6
2371 else
2372   echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 if test -z "$ac_cv_prog_STRIP"; then
2377 if test -n "$ac_tool_prefix"; then
2378   # Extract the first word of "strip", so it can be a program name with args.
2379 set dummy strip; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2383   echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385   if test -n "$STRIP"; then
2386   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387 else
2388   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2389   ac_dummy="$PATH"
2390   for ac_dir in $ac_dummy; do
2391     test -z "$ac_dir" && ac_dir=.
2392     if test -f $ac_dir/$ac_word; then
2393       ac_cv_prog_STRIP="strip"
2394       break
2395     fi
2396   done
2397   IFS="$ac_save_ifs"
2398   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2399 fi
2400 fi
2401 STRIP="$ac_cv_prog_STRIP"
2402 if test -n "$STRIP"; then
2403   echo "$ac_t""$STRIP" 1>&6
2404 else
2405   echo "$ac_t""no" 1>&6
2406 fi
2407
2408 else
2409   STRIP=":"
2410 fi
2411 fi
2412
2413
2414 # Check for any special flags to pass to ltconfig.
2415 libtool_flags="--cache-file=$cache_file"
2416 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2417 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2418 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2419 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2420 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2421 libtool_flags="$libtool_flags --enable-dlopen"
2422
2423 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2424 if test "${enable_libtool_lock+set}" = set; then
2425   enableval="$enable_libtool_lock"
2426   :
2427 fi
2428
2429 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2430 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2431
2432 # Check whether --with-pic or --without-pic was given.
2433 if test "${with_pic+set}" = set; then
2434   withval="$with_pic"
2435   pic_mode="$withval"
2436 else
2437   pic_mode=default
2438 fi
2439
2440 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2441 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2442
2443 # Some flags need to be propagated to the compiler or linker for good
2444 # libtool support.
2445 case $host in
2446 *-*-irix6*)
2447   # Find out which ABI we are using.
2448   echo '#line 2449 "configure"' > conftest.$ac_ext
2449   if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450     case `/usr/bin/file conftest.$ac_objext` in
2451     *32-bit*)
2452       LD="${LD-ld} -32"
2453       ;;
2454     *N32*)
2455       LD="${LD-ld} -n32"
2456       ;;
2457     *64-bit*)
2458       LD="${LD-ld} -64"
2459       ;;
2460     esac
2461   fi
2462   rm -rf conftest*
2463   ;;
2464
2465 *-*-sco3.2v5*)
2466   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2467   SAVE_CFLAGS="$CFLAGS"
2468   CFLAGS="$CFLAGS -belf"
2469   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether the C compiler needs -belf" >&5
2471 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2472   echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474   
2475      ac_ext=c
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cc_cross
2481
2482      cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485
2486 int main() {
2487
2488 ; return 0; }
2489 EOF
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491   rm -rf conftest*
2492   lt_cv_cc_needs_belf=yes
2493 else
2494   echo "configure: failed program was:" >&5
2495   cat conftest.$ac_ext >&5
2496   rm -rf conftest*
2497   lt_cv_cc_needs_belf=no
2498 fi
2499 rm -f conftest*
2500      ac_ext=c
2501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2505 cross_compiling=$ac_cv_prog_cc_cross
2506
2507 fi
2508
2509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2510   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2511     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2512     CFLAGS="$SAVE_CFLAGS"
2513   fi
2514   ;;
2515
2516
2517 esac
2518
2519 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2520 echo "configure:2521: checking how to run the C++ preprocessor" >&5
2521 if test -z "$CXXCPP"; then
2522 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2523   echo $ac_n "(cached) $ac_c" 1>&6
2524 else
2525   ac_ext=C
2526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp='$CXXCPP $CPPFLAGS'
2528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling=$ac_cv_prog_cxx_cross
2531   CXXCPP="${CXX-g++} -E"
2532   cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 #include <stdlib.h>
2536 EOF
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2541   :
2542 else
2543   echo "$ac_err" >&5
2544   echo "configure: failed program was:" >&5
2545   cat conftest.$ac_ext >&5
2546   rm -rf conftest*
2547   CXXCPP=/lib/cpp
2548 fi
2549 rm -f conftest*
2550   ac_cv_prog_CXXCPP="$CXXCPP"
2551 ac_ext=c
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cc_cross
2557 fi
2558 fi
2559 CXXCPP="$ac_cv_prog_CXXCPP"
2560 echo "$ac_t""$CXXCPP" 1>&6
2561
2562
2563 # Save cache, so that ltconfig can load it
2564 cat > confcache <<\EOF
2565 # This file is a shell script that caches the results of configure
2566 # tests run on this system so they can be shared between configure
2567 # scripts and configure runs.  It is not useful on other systems.
2568 # If it contains results you don't want to keep, you may remove or edit it.
2569 #
2570 # By default, configure uses ./config.cache as the cache file,
2571 # creating it if it does not exist already.  You can give configure
2572 # the --cache-file=FILE option to use a different cache file; that is
2573 # what configure does when it calls configure scripts in
2574 # subdirectories, so they share the cache.
2575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2576 # config.status only pays attention to the cache file if you give it the
2577 # --recheck option to rerun configure.
2578 #
2579 EOF
2580 # The following way of writing the cache mishandles newlines in values,
2581 # but we know of no workaround that is simple, portable, and efficient.
2582 # So, don't put newlines in cache variables' values.
2583 # Ultrix sh set writes to stderr and can't be redirected directly,
2584 # and sets the high bit in the cache file unless we assign to the vars.
2585 (set) 2>&1 |
2586   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2587   *ac_space=\ *)
2588     # `set' does not quote correctly, so add quotes (double-quote substitution
2589     # turns \\\\ into \\, and sed turns \\ into \).
2590     sed -n \
2591       -e "s/'/'\\\\''/g" \
2592       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2593     ;;
2594   *)
2595     # `set' quotes correctly as required by POSIX, so do not add quotes.
2596     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2597     ;;
2598   esac >> confcache
2599 if cmp -s $cache_file confcache; then
2600   :
2601 else
2602   if test -w $cache_file; then
2603     echo "updating cache $cache_file"
2604     cat confcache > $cache_file
2605   else
2606     echo "not updating unwritable cache $cache_file"
2607   fi
2608 fi
2609 rm -f confcache
2610
2611
2612 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2613 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2614 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2615 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2616 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2617 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2618 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2620 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2621 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2622
2623 # Reload cache, that may have been modified by ltconfig
2624 if test -r "$cache_file"; then
2625   echo "loading cache $cache_file"
2626   . $cache_file
2627 else
2628   echo "creating cache $cache_file"
2629   > $cache_file
2630 fi
2631
2632
2633 # This can be used to rebuild libtool when needed
2634 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2635
2636 # Always use our own libtool.
2637 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2638
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2642
2643
2644
2645 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2646 lt_save_CC="$CC"
2647 lt_save_CFLAGS="$CFLAGS"
2648 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2649 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2650 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2651 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2652 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2653 deplibs_check_method="$deplibs_check_method" \
2654 file_magic_cmd="$file_magic_cmd" \
2655 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2656 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2657 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2658 CC="$lt_save_CC"
2659 CFLAGS="$lt_save_CFLAGS"
2660
2661 # Redirect the config.log output again, so that the ltconfig log is not
2662 # clobbered by the next message.
2663 exec 5>>./config.log
2664
2665   
2666
2667   
2668          
2669          
2670
2671
2672
2673 # Check for c++ or library specific bits that don't require linking.
2674 #GLIBCPP_CHECK_COMPILER_VERSION
2675 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2676 echo "configure:2677: checking for GNU make" >&5
2677 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2678   echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680   _cv_gnu_make_command='' ;
2681           for a in "${MAKE-make}" make gmake gnumake ; do
2682                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2683                   then
2684                           _cv_gnu_make_command=$a ;
2685                           break;
2686                   fi
2687           done ;
2688   
2689 fi
2690
2691 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2692   if test  "x$_cv_gnu_make_command" != "x"  ; then
2693           ifGNUmake='' ;
2694   else
2695           ifGNUmake='#' ;
2696   fi
2697   
2698
2699
2700 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2701 # Check whether --enable-debug or --disable-debug was given.
2702 if test "${enable_debug+set}" = set; then
2703   enableval="$enable_debug"
2704   case "${enableval}" in
2705  yes) enable_debug=yes ;;
2706  no)  enable_debug=no ;;
2707  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2708  esac
2709 else
2710   enable_debug=no
2711 fi
2712
2713 case "${enable_debug}" in
2714     yes) 
2715         DEBUG_FLAGS='-O0 -ggdb3'                        
2716         ;; 
2717     no)   
2718         DEBUG_FLAGS='-g'
2719         ;;
2720 esac
2721
2722
2723 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2724 echo "configure:2725: checking how to run the C preprocessor" >&5
2725 # On Suns, sometimes $CPP names a directory.
2726 if test -n "$CPP" && test -d "$CPP"; then
2727   CPP=
2728 fi
2729 if test -z "$CPP"; then
2730 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2731   echo $ac_n "(cached) $ac_c" 1>&6
2732 else
2733     # This must be in double quotes, not single quotes, because CPP may get
2734   # substituted into the Makefile and "${CC-cc}" will confuse make.
2735   CPP="${CC-cc} -E"
2736   # On the NeXT, cc -E runs the code through the compiler's parser,
2737   # not just through cpp.
2738   cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <assert.h>
2742 Syntax Error
2743 EOF
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2748   :
2749 else
2750   echo "$ac_err" >&5
2751   echo "configure: failed program was:" >&5
2752   cat conftest.$ac_ext >&5
2753   rm -rf conftest*
2754   CPP="${CC-cc} -E -traditional-cpp"
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <assert.h>
2759 Syntax Error
2760 EOF
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765   :
2766 else
2767   echo "$ac_err" >&5
2768   echo "configure: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   rm -rf conftest*
2771   CPP="${CC-cc} -nologo -E"
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <assert.h>
2776 Syntax Error
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   :
2783 else
2784   echo "$ac_err" >&5
2785   echo "configure: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   rm -rf conftest*
2788   CPP=/lib/cpp
2789 fi
2790 rm -f conftest*
2791 fi
2792 rm -f conftest*
2793 fi
2794 rm -f conftest*
2795   ac_cv_prog_CPP="$CPP"
2796 fi
2797   CPP="$ac_cv_prog_CPP"
2798 else
2799   ac_cv_prog_CPP="$CPP"
2800 fi
2801 echo "$ac_t""$CPP" 1>&6
2802
2803
2804   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2805 echo "configure:2806: checking for cstdio to use" >&5
2806   # Check whether --enable-cstdio or --disable-cstdio was given.
2807 if test "${enable_cstdio+set}" = set; then
2808   enableval="$enable_cstdio"
2809   if test x$enable_cstdio = xno; then
2810      enable_cstdio=stdio
2811   fi
2812 else
2813   enable_cstdio=stdio
2814 fi
2815
2816
2817   enable_cstdio_flag=$enable_cstdio
2818
2819     case x${enable_cstdio_flag} in
2820     xlibio)
2821       CSTDIO_H=config/io/c_io_libio.h
2822       BASIC_FILE_H=config/io/basic_file_libio.h
2823       BASIC_FILE_CC=config/io/basic_file_libio.cc
2824       echo "$ac_t""libio" 1>&6
2825
2826       # see if we are on a system with libio native (ie, linux)
2827       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for libio.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831   echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833   cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <libio.h>
2837 EOF
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2842   rm -rf conftest*
2843   eval "ac_cv_header_$ac_safe=yes"
2844 else
2845   echo "$ac_err" >&5
2846   echo "configure: failed program was:" >&5
2847   cat conftest.$ac_ext >&5
2848   rm -rf conftest*
2849   eval "ac_cv_header_$ac_safe=no"
2850 fi
2851 rm -f conftest*
2852 fi
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854   echo "$ac_t""yes" 1>&6
2855   has_libio=yes
2856 else
2857   echo "$ac_t""no" 1>&6
2858 has_libio=no
2859 fi
2860
2861
2862       # Need to check and see what version of glibc is being used. If
2863       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2864       # compile most of libio for linux systems.
2865       if test x$has_libio = x"yes"; then
2866         case "$target" in
2867           *-*-linux*)
2868               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2869 echo "configure:2870: checking for glibc version >= 2.2" >&5
2870               cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873
2874             #include <features.h>
2875               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2876                     ok
2877               #endif
2878               
2879 EOF
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881   egrep "ok" >/dev/null 2>&1; then
2882   rm -rf conftest*
2883   glibc_satisfactory=yes
2884 else
2885   rm -rf conftest*
2886   glibc_satisfactory=no
2887 fi
2888 rm -f conftest*
2889
2890               echo "$ac_t""$glibc_satisfactory" 1>&6
2891             ;;
2892         esac
2893
2894         # XXX at the moment, admit defeat and force the recompilation
2895         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2896         glibc_satisfactory=no        
2897
2898         if test x$glibc_satisfactory = x"yes"; then
2899            need_libio=no
2900            need_wlibio=no        
2901         else
2902            need_libio=yes
2903            # bkoz XXX need to add checks to enable this
2904            # pme XXX here's a first pass at such a check
2905            if test x$enable_c_mbchar != xno; then
2906               need_wlibio=yes
2907            else
2908               need_wlibio=no
2909            fi
2910         fi
2911
2912       else
2913          # Using libio, but <libio.h> doesn't exist on the target system. . .
2914          need_libio=yes
2915          # bkoz XXX need to add checks to enable this
2916          # pme XXX here's a first pass at such a check
2917          if test x$enable_c_mbchar != xno; then
2918              need_wlibio=yes
2919          else
2920              need_wlibio=no
2921          fi
2922       fi
2923       ;;
2924     xstdio | x | xno | xnone | xyes)
2925       # default
2926       CSTDIO_H=config/io/c_io_stdio.h
2927       BASIC_FILE_H=config/io/basic_file_stdio.h
2928       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2929       echo "$ac_t""stdio" 1>&6
2930
2931       # We're not using stdio.
2932       need_libio=no
2933       need_wlibio=no
2934       ;;
2935     *)
2936       echo "$enable_cstdio is an unknown io package" 1>&2
2937       exit 1
2938       ;;
2939   esac
2940   
2941   
2942   
2943
2944   # 2000-08-04 bkoz hack
2945   CCODECVT_C=config/io/c_io_libio_codecvt.c
2946   
2947   # 2000-08-04 bkoz hack
2948
2949   
2950
2951 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2952   GLIBCPP_BUILD_LIBIO_TRUE=
2953   GLIBCPP_BUILD_LIBIO_FALSE='#'
2954 else
2955   GLIBCPP_BUILD_LIBIO_TRUE='#'
2956   GLIBCPP_BUILD_LIBIO_FALSE=
2957 fi
2958   
2959
2960 if test "$need_libio" = yes; then
2961   GLIBCPP_NEED_LIBIO_TRUE=
2962   GLIBCPP_NEED_LIBIO_FALSE='#'
2963 else
2964   GLIBCPP_NEED_LIBIO_TRUE='#'
2965   GLIBCPP_NEED_LIBIO_FALSE=
2966 fi
2967   
2968
2969 if test "$need_wlibio" = yes; then
2970   GLIBCPP_NEED_WLIBIO_TRUE=
2971   GLIBCPP_NEED_WLIBIO_FALSE='#'
2972 else
2973   GLIBCPP_NEED_WLIBIO_TRUE='#'
2974   GLIBCPP_NEED_WLIBIO_FALSE=
2975 fi
2976   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2977     libio_la=../libio/libio.la
2978   else
2979     libio_la=
2980   fi
2981   
2982
2983
2984   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2985 echo "configure:2986: checking for clocale to use" >&5
2986   # Check whether --enable-clocale or --disable-clocale was given.
2987 if test "${enable_clocale+set}" = set; then
2988   enableval="$enable_clocale"
2989   if test x$enable_clocale = xno; then
2990      enable_clocale=no
2991   fi
2992 else
2993   enable_clocale=no
2994 fi
2995
2996
2997   enable_clocale_flag=$enable_clocale
2998
2999       if test x$enable_clocale_flag = xno; then
3000     case x${target_os} in
3001       xlinux* | xgnu*)
3002         cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005
3006         #include <features.h>
3007         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3008           _GLIBCPP_ok
3009         #endif
3010         
3011 EOF
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3014   rm -rf conftest*
3015   enable_clocale_flag=gnu
3016 else
3017   rm -rf conftest*
3018   enable_clocale_flag=generic
3019 fi
3020 rm -f conftest*
3021
3022
3023         # Test for bugs early in glibc-2.2.x series
3024         if test x$enable_clocale_flag = xgnu; then
3025           if test "$cross_compiling" = yes; then
3026   enable_clocale_flag=generic
3027 else
3028   cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031
3032           #define _GNU_SOURCE 1
3033           #include <locale.h>
3034           int main()
3035           {
3036             const char __one[] = "Äuglein Augmen";
3037             const char __two[] = "Äuglein";
3038             int i;
3039             int j;
3040             __locale_t  loc;
3041             __locale_t  loc_dup;
3042             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3043             loc_dup = __duplocale(loc);
3044             i = __strcoll_l(__one, __two, loc);
3045             j = __strcoll_l(__one, __two, loc_dup);
3046             return 0;
3047           }
3048           
3049 EOF
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3051 then
3052   enable_clocale_flag=gnu
3053 else
3054   echo "configure: failed program was:" >&5
3055   cat conftest.$ac_ext >&5
3056   rm -fr conftest*
3057   enable_clocale_flag=generic
3058 fi
3059 rm -fr conftest*
3060 fi
3061
3062         fi
3063
3064         # ... at some point put __strxfrm_l tests in as well.
3065         ;;
3066       *)
3067         enable_clocale_flag=generic
3068         ;;
3069     esac
3070   fi
3071
3072     # Check whether --enable-nls or --disable-nls was given.
3073 if test "${enable_nls+set}" = set; then
3074   enableval="$enable_nls"
3075   :
3076 else
3077   enable_nls=yes
3078 fi
3079
3080   USE_NLS=no
3081
3082     case x${enable_clocale_flag} in
3083     xgeneric)
3084       echo "$ac_t""generic" 1>&6
3085
3086       CLOCALE_H=config/locale/generic/c_locale.h
3087       CLOCALE_CC=config/locale/generic/c_locale.cc
3088       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3089       CCOLLATE_CC=config/locale/generic/collate_members.cc
3090       CCTYPE_CC=config/locale/generic/ctype_members.cc
3091       CMESSAGES_H=config/locale/generic/messages_members.h
3092       CMESSAGES_CC=config/locale/generic/messages_members.cc
3093       CMONEY_CC=config/locale/generic/monetary_members.cc
3094       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3095       CTIME_CC=config/locale/generic/time_members.cc
3096       ;;
3097     xgnu)
3098       echo "$ac_t""gnu" 1>&6
3099
3100       # Declare intention to use gettext, and add support for specific
3101       # languages.
3102       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3103       ALL_LINGUAS="de fr"
3104
3105       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3106       # Extract the first word of "msgfmt", so it can be a program name with args.
3107 set dummy msgfmt; ac_word=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5
3110 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3111   echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113   if test -n "$check_msgfmt"; then
3114   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3115 else
3116   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3117   ac_dummy="$PATH"
3118   for ac_dir in $ac_dummy; do
3119     test -z "$ac_dir" && ac_dir=.
3120     if test -f $ac_dir/$ac_word; then
3121       ac_cv_prog_check_msgfmt="yes"
3122       break
3123     fi
3124   done
3125   IFS="$ac_save_ifs"
3126   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3127 fi
3128 fi
3129 check_msgfmt="$ac_cv_prog_check_msgfmt"
3130 if test -n "$check_msgfmt"; then
3131   echo "$ac_t""$check_msgfmt" 1>&6
3132 else
3133   echo "$ac_t""no" 1>&6
3134 fi
3135
3136       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3137         USE_NLS=yes
3138       fi
3139
3140       # Export the build objects.
3141       for ling in $ALL_LINGUAS; do \
3142         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3143         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3144       done
3145       
3146       
3147
3148       CLOCALE_H=config/locale/gnu/c_locale.h
3149       CLOCALE_CC=config/locale/gnu/c_locale.cc
3150       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3151       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3152       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3153       CMESSAGES_H=config/locale/gnu/messages_members.h
3154       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3155       CMONEY_CC=config/locale/gnu/monetary_members.cc
3156       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3157       CTIME_CC=config/locale/gnu/time_members.cc
3158       ;;
3159     xieee_1003.1-2001)
3160       echo "$ac_t""generic" 1>&6
3161
3162       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3163       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3164       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3165       CCOLLATE_CC=config/locale/generic/collate_members.cc
3166       CCTYPE_CC=config/locale/generic/ctype_members.cc
3167       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3168       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3169       CMONEY_CC=config/locale/generic/monetary_members.cc
3170       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3171       CTIME_CC=config/locale/generic/time_members.cc
3172       ;;
3173     *)
3174       echo "$enable_clocale is an unknown locale package" 1>&2
3175       exit 1
3176       ;;
3177   esac
3178
3179   # This is where the testsuite looks for locale catalogs, using the
3180   # -DLOCALEDIR define during testsuite compilation.
3181   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3182   
3183
3184   
3185   
3186   
3187   
3188   
3189   
3190   
3191   
3192   
3193   
3194   
3195
3196 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3197 if test "${enable_c_mbchar+set}" = set; then
3198   enableval="$enable_c_mbchar"
3199   case "$enableval" in
3200  yes) enable_c_mbchar=yes ;;
3201  no)  enable_c_mbchar=no ;;
3202  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3203  esac
3204 else
3205   enable_c_mbchar=yes
3206 fi
3207
3208   
3209   # Check whether --enable-c99 or --disable-c99 was given.
3210 if test "${enable_c99+set}" = set; then
3211   enableval="$enable_c99"
3212     case "$enableval" in
3213    yes) enable_c99=yes ;;
3214    no)  enable_c99=no ;;
3215    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3216    esac
3217 else
3218   enable_c99=yes
3219 fi
3220  
3221   
3222   ac_ext=C
3223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3224 ac_cpp='$CXXCPP $CPPFLAGS'
3225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3227 cross_compiling=$ac_cv_prog_cxx_cross
3228
3229
3230   # Check for the existence of <math.h> functions used if C99 is enabled.
3231   ac_c99_math=yes;
3232   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3233 echo "configure:3234: checking for ISO C99 support in <math.h>" >&5
3234   cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <math.h>
3238 int main() {
3239 fpclassify(0.0);
3240 ; return 0; }
3241 EOF
3242 if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243   :
3244 else
3245   echo "configure: failed program was:" >&5
3246   cat conftest.$ac_ext >&5
3247   rm -rf conftest*
3248   ac_c99_math=no
3249 fi
3250 rm -f conftest*
3251   cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <math.h>
3255 int main() {
3256 isfinite(0.0);
3257 ; return 0; }
3258 EOF
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3260   :
3261 else
3262   echo "configure: failed program was:" >&5
3263   cat conftest.$ac_ext >&5
3264   rm -rf conftest*
3265   ac_c99_math=no
3266 fi
3267 rm -f conftest*
3268   cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 #include <math.h>
3272 int main() {
3273 isinf(0.0);
3274 ; return 0; }
3275 EOF
3276 if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3277   :
3278 else
3279   echo "configure: failed program was:" >&5
3280   cat conftest.$ac_ext >&5
3281   rm -rf conftest*
3282   ac_c99_math=no
3283 fi
3284 rm -f conftest*
3285   cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <math.h>
3289 int main() {
3290 isnan(0.0);
3291 ; return 0; }
3292 EOF
3293 if { (eval echo configure:3294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294   :
3295 else
3296   echo "configure: failed program was:" >&5
3297   cat conftest.$ac_ext >&5
3298   rm -rf conftest*
3299   ac_c99_math=no
3300 fi
3301 rm -f conftest*
3302   cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <math.h>
3306 int main() {
3307 isnormal(0.0);
3308 ; return 0; }
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311   :
3312 else
3313   echo "configure: failed program was:" >&5
3314   cat conftest.$ac_ext >&5
3315   rm -rf conftest*
3316   ac_c99_math=no
3317 fi
3318 rm -f conftest*
3319   cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <math.h>
3323 int main() {
3324 signbit(0.0);
3325 ; return 0; }
3326 EOF
3327 if { (eval echo configure:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3328   :
3329 else
3330   echo "configure: failed program was:" >&5
3331   cat conftest.$ac_ext >&5
3332   rm -rf conftest*
3333   ac_c99_math=no
3334 fi
3335 rm -f conftest*
3336   cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 #include <math.h>
3340 int main() {
3341 isgreater(0.0,0.0);
3342 ; return 0; }
3343 EOF
3344 if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345   :
3346 else
3347   echo "configure: failed program was:" >&5
3348   cat conftest.$ac_ext >&5
3349   rm -rf conftest*
3350   ac_c99_math=no
3351 fi
3352 rm -f conftest*
3353   cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <math.h>
3357 int main() {
3358 isgreaterequal(0.0,0.0);
3359 ; return 0; }
3360 EOF
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3362   :
3363 else
3364   echo "configure: failed program was:" >&5
3365   cat conftest.$ac_ext >&5
3366   rm -rf conftest*
3367   ac_c99_math=no
3368 fi
3369 rm -f conftest*
3370   cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <math.h>
3374 int main() {
3375 isless(0.0,0.0);
3376 ; return 0; }
3377 EOF
3378 if { (eval echo configure:3379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379   :
3380 else
3381   echo "configure: failed program was:" >&5
3382   cat conftest.$ac_ext >&5
3383   rm -rf conftest*
3384   ac_c99_math=no
3385 fi
3386 rm -f conftest*
3387   cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <math.h>
3391 int main() {
3392 islessequal(0.0,0.0);
3393 ; return 0; }
3394 EOF
3395 if { (eval echo configure:3396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3396   :
3397 else
3398   echo "configure: failed program was:" >&5
3399   cat conftest.$ac_ext >&5
3400   rm -rf conftest*
3401   ac_c99_math=no
3402 fi
3403 rm -f conftest*
3404   cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <math.h>
3408 int main() {
3409 islessgreater(0.0,0.0);
3410 ; return 0; }
3411 EOF
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413   :
3414 else
3415   echo "configure: failed program was:" >&5
3416   cat conftest.$ac_ext >&5
3417   rm -rf conftest*
3418   ac_c99_math=no
3419 fi
3420 rm -f conftest*
3421   cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <math.h>
3425 int main() {
3426 isunordered(0.0,0.0);
3427 ; return 0; }
3428 EOF
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430   :
3431 else
3432   echo "configure: failed program was:" >&5
3433   cat conftest.$ac_ext >&5
3434   rm -rf conftest*
3435   ac_c99_math=no
3436 fi
3437 rm -f conftest*
3438   echo "$ac_t""$ac_c99_math" 1>&6
3439
3440   # Check for the existence in <stdio.h> of vscanf, et. al.
3441   ac_c99_stdio=yes;
3442   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3443 echo "configure:3444: checking for ISO C99 support in <stdio.h>" >&5
3444   cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <stdio.h>
3448 int main() {
3449 snprintf("12", 0, "%i");
3450 ; return 0; }
3451 EOF
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453   :
3454 else
3455   echo "configure: failed program was:" >&5
3456   cat conftest.$ac_ext >&5
3457   rm -rf conftest*
3458   ac_c99_stdio=no
3459 fi
3460 rm -f conftest*
3461   cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <stdio.h>
3465                   #include <stdarg.h>
3466                   void foo(char* fmt, ...)
3467                   {va_list args; va_start(args, fmt);
3468                   vfscanf(stderr, "%i", args);}
3469 int main() {
3470
3471 ; return 0; }
3472 EOF
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474   :
3475 else
3476   echo "configure: failed program was:" >&5
3477   cat conftest.$ac_ext >&5
3478   rm -rf conftest*
3479   ac_c99_stdio=no
3480 fi
3481 rm -f conftest*
3482   cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <stdio.h>
3486                   #include <stdarg.h>
3487                   void foo(char* fmt, ...)
3488                   {va_list args; va_start(args, fmt);
3489                   vscanf("%i", args);}
3490 int main() {
3491
3492 ; return 0; }
3493 EOF
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495   :
3496 else
3497   echo "configure: failed program was:" >&5
3498   cat conftest.$ac_ext >&5
3499   rm -rf conftest*
3500   ac_c99_stdio=no
3501 fi
3502 rm -f conftest*
3503   cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <stdio.h>
3507                   #include <stdarg.h>
3508                   void foo(char* fmt, ...)
3509                   {va_list args; va_start(args, fmt);
3510                   vsnprintf(fmt, 0, "%i", args);}
3511 int main() {
3512
3513 ; return 0; }
3514 EOF
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516   :
3517 else
3518   echo "configure: failed program was:" >&5
3519   cat conftest.$ac_ext >&5
3520   rm -rf conftest*
3521   ac_c99_stdio=no
3522 fi
3523 rm -f conftest*
3524   cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <stdio.h>
3528                   #include <stdarg.h>
3529                   void foo(char* fmt, ...)
3530                   {va_list args; va_start(args, fmt);
3531                   vsscanf(fmt, "%i", args);}
3532 int main() {
3533
3534 ; return 0; }
3535 EOF
3536 if { (eval echo configure:3537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3537   :
3538 else
3539   echo "configure: failed program was:" >&5
3540   cat conftest.$ac_ext >&5
3541   rm -rf conftest*
3542   ac_c99_stdio=no
3543 fi
3544 rm -f conftest*
3545   echo "$ac_t""$ac_c99_stdio" 1>&6
3546
3547   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3548   ac_c99_stdlib=yes;
3549   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3550 echo "configure:3551: checking for lldiv_t declaration" >&5
3551   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3552   echo $ac_n "(cached) $ac_c" 1>&6
3553 else
3554   
3555   cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <stdlib.h>
3559 int main() {
3560  lldiv_t mydivt;
3561 ; return 0; }
3562 EOF
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564   rm -rf conftest*
3565   ac_c99_lldiv_t=yes
3566 else
3567   echo "configure: failed program was:" >&5
3568   cat conftest.$ac_ext >&5
3569   rm -rf conftest*
3570   ac_c99_lldiv_t=no
3571 fi
3572 rm -f conftest*
3573   
3574 fi
3575
3576   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3577
3578   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3579 echo "configure:3580: checking for ISO C99 support in <stdlib.h>" >&5
3580   cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include <stdlib.h>
3584 int main() {
3585 char* tmp; strtof("gnu", &tmp);
3586 ; return 0; }
3587 EOF
3588 if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3589   :
3590 else
3591   echo "configure: failed program was:" >&5
3592   cat conftest.$ac_ext >&5
3593   rm -rf conftest*
3594   ac_c99_stdlib=no
3595 fi
3596 rm -f conftest*
3597   cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <stdlib.h>
3601 int main() {
3602 char* tmp; strtold("gnu", &tmp);
3603 ; return 0; }
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606   :
3607 else
3608   echo "configure: failed program was:" >&5
3609   cat conftest.$ac_ext >&5
3610   rm -rf conftest*
3611   ac_c99_stdlib=no
3612 fi
3613 rm -f conftest*
3614   cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <stdlib.h>
3618 int main() {
3619 llabs(10);
3620 ; return 0; }
3621 EOF
3622 if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3623   :
3624 else
3625   echo "configure: failed program was:" >&5
3626   cat conftest.$ac_ext >&5
3627   rm -rf conftest*
3628   ac_c99_stdlib=no
3629 fi
3630 rm -f conftest*
3631   cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <stdlib.h>
3635 int main() {
3636 lldiv(10,1);
3637 ; return 0; }
3638 EOF
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640   :
3641 else
3642   echo "configure: failed program was:" >&5
3643   cat conftest.$ac_ext >&5
3644   rm -rf conftest*
3645   ac_c99_stdlib=no
3646 fi
3647 rm -f conftest*
3648   cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <stdlib.h>
3652 int main() {
3653 atoll("10");
3654 ; return 0; }
3655 EOF
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657   :
3658 else
3659   echo "configure: failed program was:" >&5
3660   cat conftest.$ac_ext >&5
3661   rm -rf conftest*
3662   ac_c99_stdlib=no
3663 fi
3664 rm -f conftest*
3665   cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <stdlib.h>
3669 int main() {
3670 _Exit(0);
3671 ; return 0; }
3672 EOF
3673 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674   :
3675 else
3676   echo "configure: failed program was:" >&5
3677   cat conftest.$ac_ext >&5
3678   rm -rf conftest*
3679   ac_c99_stdlib=no
3680 fi
3681 rm -f conftest*
3682   if test x"$ac_c99_lldiv_t" = x"no"; then
3683     ac_c99_stdlib=no; 
3684   fi; 
3685   echo "$ac_t""$ac_c99_stdlib" 1>&6
3686
3687   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3688   # XXX the wchar.h checks should be rolled into the general C99 bits.
3689   ac_c99_wchar=yes;
3690   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3691 echo "configure:3692: checking for additional ISO C99 support in <wchar.h>" >&5
3692   cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <wchar.h>
3696 int main() {
3697 wcstold(L"10.0", NULL);
3698 ; return 0; }
3699 EOF
3700 if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701   :
3702 else
3703   echo "configure: failed program was:" >&5
3704   cat conftest.$ac_ext >&5
3705   rm -rf conftest*
3706   ac_c99_wchar=no
3707 fi
3708 rm -f conftest*
3709   cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <wchar.h>
3713 int main() {
3714 wcstoll(L"10", NULL, 10);
3715 ; return 0; }
3716 EOF
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718   :
3719 else
3720   echo "configure: failed program was:" >&5
3721   cat conftest.$ac_ext >&5
3722   rm -rf conftest*
3723   ac_c99_wchar=no
3724 fi
3725 rm -f conftest*
3726   cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <wchar.h>
3730 int main() {
3731 wcstoull(L"10", NULL, 10);
3732 ; return 0; }
3733 EOF
3734 if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735   :
3736 else
3737   echo "configure: failed program was:" >&5
3738   cat conftest.$ac_ext >&5
3739   rm -rf conftest*
3740   ac_c99_wchar=no
3741 fi
3742 rm -f conftest*
3743   echo "$ac_t""$ac_c99_wchar" 1>&6
3744
3745   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3746 echo "configure:3747: checking for enabled ISO C99 support" >&5
3747   if test x"$ac_c99_math" = x"no" ||
3748      test x"$ac_c99_stdio" = x"no" ||
3749      test x"$ac_c99_stdlib" = x"no" ||
3750      test x"$ac_c99_wchar" = x"no"; then
3751     enable_c99=no; 
3752   fi; 
3753   echo "$ac_t""$enable_c99" 1>&6
3754
3755   # Option parsed, now set things appropriately
3756   if test x"$enable_c99" = x"yes"; then
3757     cat >> confdefs.h <<\EOF
3758 #define _GLIBCPP_USE_C99 1
3759 EOF
3760
3761   fi
3762
3763   ac_ext=c
3764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3768 cross_compiling=$ac_cv_prog_cc_cross
3769
3770
3771   
3772   # Check whether --enable-long-long or --disable-long-long was given.
3773 if test "${enable_long_long+set}" = set; then
3774   enableval="$enable_long_long"
3775     case "$enableval" in
3776    yes) enable_long_long=yes ;;
3777    no)  enable_long_long=no ;;
3778    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3779    esac
3780 else
3781   enable_long_long=yes
3782 fi
3783
3784   
3785   ac_ext=C
3786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3787 ac_cpp='$CXXCPP $CPPFLAGS'
3788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3790 cross_compiling=$ac_cv_prog_cxx_cross
3791
3792
3793   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3794 echo "configure:3795: checking for enabled long long I/O support" >&5
3795   # iostreams require strtoll, strtoull to compile
3796   cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <stdlib.h>
3800 int main() {
3801 char* tmp; strtoll("gnu", &tmp, 10);
3802 ; return 0; }
3803 EOF
3804 if { (eval echo configure:3805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3805   :
3806 else
3807   echo "configure: failed program was:" >&5
3808   cat conftest.$ac_ext >&5
3809   rm -rf conftest*
3810   enable_long_long=no
3811 fi
3812 rm -f conftest*
3813   cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <stdlib.h>
3817 int main() {
3818 char* tmp; strtoull("gnu", &tmp, 10);
3819 ; return 0; }
3820 EOF
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822   :
3823 else
3824   echo "configure: failed program was:" >&5
3825   cat conftest.$ac_ext >&5
3826   rm -rf conftest*
3827   enable_long_long=no
3828 fi
3829 rm -f conftest*
3830
3831   # Option parsed, now set things appropriately
3832   if test x"$enable_long_long" = xyes; then
3833     cat >> confdefs.h <<\EOF
3834 #define _GLIBCPP_USE_LONG_LONG 1
3835 EOF
3836
3837   fi
3838   echo "$ac_t""$enable_long_long" 1>&6
3839
3840   ac_ext=c
3841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3845 cross_compiling=$ac_cv_prog_cc_cross
3846
3847
3848 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3849 echo "configure:3850: checking for c header strategy to use" >&5
3850 # Check whether --enable-cheaders or --disable-cheaders was given.
3851 if test "${enable_cheaders+set}" = set; then
3852   enableval="$enable_cheaders"
3853   
3854   case "$enableval" in
3855    c) 
3856         enable_cheaders=c 
3857         ;;
3858    c_std)  
3859         enable_cheaders=c_std 
3860         ;;
3861    c_shadow)  
3862         enable_cheaders=c_shadow 
3863         ;;
3864    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3865         ;;
3866   esac
3867 else
3868   enable_cheaders=c_std
3869 fi
3870
3871   echo "$ac_t""$enable_cheaders" 1>&6
3872
3873     case "$enable_cheaders" in
3874     c_shadow) 
3875         CSHADOW_FLAGS="-fno-builtin"
3876         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3877         ;;
3878     c_std)   
3879         CSHADOW_FLAGS=""
3880         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3881         ;;
3882     c)   
3883         CSHADOW_FLAGS=""
3884         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3885         ;;
3886   esac
3887
3888   
3889   
3890   
3891
3892 if test "$enable_cheaders" = c; then
3893   GLIBCPP_C_HEADERS_C_TRUE=
3894   GLIBCPP_C_HEADERS_C_FALSE='#'
3895 else
3896   GLIBCPP_C_HEADERS_C_TRUE='#'
3897   GLIBCPP_C_HEADERS_C_FALSE=
3898 fi
3899   
3900
3901 if test "$enable_cheaders" = c_std; then
3902   GLIBCPP_C_HEADERS_C_STD_TRUE=
3903   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3904 else
3905   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3906   GLIBCPP_C_HEADERS_C_STD_FALSE=
3907 fi
3908
3909
3910   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3911 echo "configure:3912: checking for thread model used by GCC" >&5
3912   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3913   echo "$ac_t""$target_thread_file" 1>&6
3914
3915   if test $target_thread_file != single; then
3916     cat >> confdefs.h <<\EOF
3917 #define HAVE_GTHR_DEFAULT 1
3918 EOF
3919
3920     cat >> confdefs.h <<\EOF
3921 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3922 EOF
3923
3924   fi
3925
3926   glibcpp_thread_h=gthr-$target_thread_file.h
3927   
3928
3929 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3930 if test "${enable_cxx_flags+set}" = set; then
3931   enableval="$enable_cxx_flags"
3932   case "x$enableval" in
3933  xyes)   
3934         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3935  xno|x)  
3936         enable_cxx_flags='' ;;
3937  *)      
3938         enable_cxx_flags="$enableval" ;;
3939  esac
3940 else
3941   enable_cxx_flags='none'
3942 fi
3943
3944
3945 if test "$enable_cxx_flags" = "none"; then 
3946   enable_cxx_flags=''; 
3947 fi
3948
3949 if test -n "$enable_cxx_flags"; then
3950     for f in $enable_cxx_flags; do
3951         case "$f" in
3952             -fhonor-std)  ;;
3953             -*)  ;;
3954             *)   # and we're trying to pass /what/ exactly?
3955                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3956         esac
3957     done
3958 fi
3959 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3960
3961
3962
3963   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3964 echo "configure:3965: checking for exception model to use" >&5
3965   
3966   ac_ext=C
3967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3968 ac_cpp='$CXXCPP $CPPFLAGS'
3969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3971 cross_compiling=$ac_cv_prog_cxx_cross
3972
3973   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3974 if test "${enable_sjlj_exceptions+set}" = set; then
3975   enableval="$enable_sjlj_exceptions"
3976   :
3977 else
3978                        cat > conftest.$ac_ext << EOF
3979 #line 3980 "configure"
3980 struct S { ~S(); };
3981 void bar();
3982 void foo()
3983 {
3984   S s;
3985   bar();
3986 }
3987 EOF
3988    old_CXXFLAGS="$CXXFLAGS"  
3989    CXXFLAGS=-S
3990    if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3992        enable_sjlj_exceptions=yes
3993      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3994        enable_sjlj_exceptions=no
3995      fi
3996    fi
3997    CXXFLAGS="$old_CXXFLAGS"
3998    rm -f conftest*
3999 fi
4000
4001    if test x$enable_sjlj_exceptions = xyes; then
4002      cat >> confdefs.h <<\EOF
4003 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4004 EOF
4005
4006      ac_exception_model_name=sjlj
4007    elif test x$enable_sjlj_exceptions = xno; then
4008      ac_exception_model_name="call frame"
4009    else
4010      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4011    fi
4012    ac_ext=c
4013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4017 cross_compiling=$ac_cv_prog_cc_cross
4018
4019    echo "$ac_t""$ac_exception_model_name" 1>&6
4020
4021
4022   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4023 echo "configure:4024: checking for use of libunwind" >&5
4024   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4025 if test "${enable_libunwind_exceptions+set}" = set; then
4026   enableval="$enable_libunwind_exceptions"
4027   use_libunwind_exceptions=$enableval
4028 else
4029   use_libunwind_exceptions=no
4030 fi
4031
4032   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4033     if test x"$use_libunwind_exceptions" = xyes; then
4034     LIBUNWIND_FLAG="-lunwind"
4035   else
4036     LIBUNWIND_FLAG=""
4037   fi
4038   
4039
4040 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4041 if test "${enable_concept_checks+set}" = set; then
4042   enableval="$enable_concept_checks"
4043   case "$enableval" in
4044  yes) enable_concept_checks=yes ;;
4045  no)  enable_concept_checks=no ;;
4046  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4047  esac
4048 else
4049   enable_concept_checks=no
4050 fi
4051 if test x"$enable_concept_checks" = xyes; then
4052   cat >> confdefs.h <<\EOF
4053 #define _GLIBCPP_CONCEPT_CHECKS 1
4054 EOF
4055
4056 fi
4057
4058
4059 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4060 for ac_hdr in string.h stdlib.h
4061 do
4062 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_hdr" >&5
4065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4066   echo $ac_n "(cached) $ac_c" 1>&6
4067 else
4068   cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 #include <$ac_hdr>
4072 EOF
4073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4074 { (eval echo configure:4075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4076 if test -z "$ac_err"; then
4077   rm -rf conftest*
4078   eval "ac_cv_header_$ac_safe=yes"
4079 else
4080   echo "$ac_err" >&5
4081   echo "configure: failed program was:" >&5
4082   cat conftest.$ac_ext >&5
4083   rm -rf conftest*
4084   eval "ac_cv_header_$ac_safe=no"
4085 fi
4086 rm -f conftest*
4087 fi
4088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4089   echo "$ac_t""yes" 1>&6
4090     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4091   cat >> confdefs.h <<EOF
4092 #define $ac_tr_hdr 1
4093 EOF
4094  
4095 else
4096   echo "$ac_t""no" 1>&6
4097 fi
4098 done
4099
4100
4101 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4102
4103   # This lets us hard-code the functionality we know
4104   # we'll have in the cross target environment. "Let" is a
4105   # sugar-coated word placed on an especially dull and tedious hack, actually.
4106   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4107   # that involve linking can't be used:
4108   # "cannot open sim-crt0.o"
4109   # "cannot open crt0.o"
4110   # etc. All this is because there currently exists no unified,
4111   # consistent way for top level CC information to be passed down
4112   # to target directories: newlib includes, newlib linking info,
4113   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4114   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4115
4116   # We are being configured with some form of cross compiler.
4117   GLIBCPP_IS_CROSS_COMPILING=1
4118
4119   # If Canadian cross, then don't pick up tools from the build
4120   # directory.
4121   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4122     CANADIAN=yes
4123   else
4124     CANADIAN=no
4125   fi
4126
4127   # Construct crosses by hand, eliminating bits that need ld...
4128   # GLIBCPP_CHECK_COMPILER_FEATURES
4129   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4130   # GLIBCPP_CHECK_MATH_SUPPORT
4131
4132   case "$target_alias" in
4133     *-linux*)
4134       # Check for available headers.
4135       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4136         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4137         fp.h locale.h float.h inttypes.h
4138 do
4139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4141 echo "configure:4142: checking for $ac_hdr" >&5
4142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4143   echo $ac_n "(cached) $ac_c" 1>&6
4144 else
4145   cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 #include <$ac_hdr>
4149 EOF
4150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4151 { (eval echo configure:4152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4153 if test -z "$ac_err"; then
4154   rm -rf conftest*
4155   eval "ac_cv_header_$ac_safe=yes"
4156 else
4157   echo "$ac_err" >&5
4158   echo "configure: failed program was:" >&5
4159   cat conftest.$ac_ext >&5
4160   rm -rf conftest*
4161   eval "ac_cv_header_$ac_safe=no"
4162 fi
4163 rm -f conftest*
4164 fi
4165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4166   echo "$ac_t""yes" 1>&6
4167     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4168   cat >> confdefs.h <<EOF
4169 #define $ac_tr_hdr 1
4170 EOF
4171  
4172 else
4173   echo "$ac_t""no" 1>&6
4174 fi
4175 done
4176
4177       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4178       
4179       
4180   # If we're not using GNU ld, then there's no point in even trying these
4181   # tests.  Check for that first.  We should have already tested for gld
4182   # by now (in libtool), but require it now just to be safe...
4183   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4184   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4185   
4186
4187   # The name set by libtool depends on the version of libtool.  Shame on us
4188   # for depending on an impl detail, but c'est la vie.  Older versions used
4189   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4190   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4191   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4192   # set (hence we're using an older libtool), then set it.
4193   if test x${with_gnu_ld+set} != xset; then
4194     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4195       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4196       with_gnu_ld=no
4197     else
4198       with_gnu_ld=$ac_cv_prog_gnu_ld
4199     fi
4200   fi
4201
4202   # Start by getting the version number.  I think the libtool test already
4203   # does some of this, but throws away the result.
4204   
4205   ldver=`$LD --version 2>/dev/null | head -1 | \
4206          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4207   
4208   glibcpp_gnu_ld_version=`echo $ldver | \
4209          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4210
4211   # Set --gc-sections.
4212   if test "$with_gnu_ld" = "notbroken"; then
4213     # GNU ld it is!  Joy and bunny rabbits!
4214
4215     # All these tests are for C++; save the language and the compiler flags.
4216     # Need to do this so that g++ won't try to link in libstdc++
4217     ac_test_CFLAGS="${CFLAGS+set}"
4218     ac_save_CFLAGS="$CFLAGS"
4219     CFLAGS='-x c++  -Wl,--gc-sections'
4220
4221     # Check for -Wl,--gc-sections
4222     # XXX This test is broken at the moment, as symbols required for
4223     # linking are now in libsupc++ (not built yet.....). In addition, 
4224     # this test has cored on solaris in the past. In addition,
4225     # --gc-sections doesn't really work at the moment (keeps on discarding
4226     # used sections, first .eh_frame and now some of the glibc sections for
4227     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4228     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4229 echo "configure:4230: checking for ld that supports -Wl,--gc-sections" >&5
4230     if test "$cross_compiling" = yes; then
4231   ac_sectionLDflags=yes
4232 else
4233   cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236
4237      int main(void) 
4238      {
4239        try { throw 1; }
4240        catch (...) { };
4241        return 0;
4242      }
4243     
4244 EOF
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4246 then
4247   ac_sectionLDflags=yes
4248 else
4249   echo "configure: failed program was:" >&5
4250   cat conftest.$ac_ext >&5
4251   rm -fr conftest*
4252   ac_sectionLDflags=no
4253 fi
4254 rm -fr conftest*
4255 fi
4256
4257     if test "$ac_test_CFLAGS" = set; then
4258       CFLAGS="$ac_save_CFLAGS"
4259     else
4260       # this is the suspicious part
4261       CFLAGS=''
4262     fi
4263     if test "$ac_sectionLDflags" = "yes"; then
4264       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4265     fi
4266     echo "$ac_t""$ac_sectionLDflags" 1>&6
4267   fi
4268
4269   # Set linker optimization flags.
4270   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4271     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4272   fi
4273
4274   
4275   
4276
4277       
4278     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4279 echo "configure:4280: checking for main in -lm" >&5
4280 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4282   echo $ac_n "(cached) $ac_c" 1>&6
4283 else
4284   ac_save_LIBS="$LIBS"
4285 LIBS="-lm  $LIBS"
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289
4290 int main() {
4291 main()
4292 ; return 0; }
4293 EOF
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295   rm -rf conftest*
4296   eval "ac_cv_lib_$ac_lib_var=yes"
4297 else
4298   echo "configure: failed program was:" >&5
4299   cat conftest.$ac_ext >&5
4300   rm -rf conftest*
4301   eval "ac_cv_lib_$ac_lib_var=no"
4302 fi
4303 rm -f conftest*
4304 LIBS="$ac_save_LIBS"
4305
4306 fi
4307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308   echo "$ac_t""yes" 1>&6
4309     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4310     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4311   cat >> confdefs.h <<EOF
4312 #define $ac_tr_lib 1
4313 EOF
4314
4315   LIBS="-lm $LIBS"
4316
4317 else
4318   echo "$ac_t""no" 1>&6
4319 fi
4320
4321   for ac_func in nan copysignf
4322 do
4323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_func" >&5
4325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4326   echo $ac_n "(cached) $ac_c" 1>&6
4327 else
4328   cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 /* System header to define __stub macros and hopefully few prototypes,
4332     which can conflict with char $ac_func(); below.  */
4333 #include <assert.h>
4334 /* Override any gcc2 internal prototype to avoid an error.  */
4335 /* We use char because int might match the return type of a gcc2
4336     builtin and then its argument prototype would still apply.  */
4337 char $ac_func();
4338
4339 int main() {
4340
4341 /* The GNU C library defines this for functions which it implements
4342     to always fail with ENOSYS.  Some functions are actually named
4343     something starting with __ and the normal name is an alias.  */
4344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4345 choke me
4346 #else
4347 $ac_func();
4348 #endif
4349
4350 ; return 0; }
4351 EOF
4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4353   rm -rf conftest*
4354   eval "ac_cv_func_$ac_func=yes"
4355 else
4356   echo "configure: failed program was:" >&5
4357   cat conftest.$ac_ext >&5
4358   rm -rf conftest*
4359   eval "ac_cv_func_$ac_func=no"
4360 fi
4361 rm -f conftest*
4362 fi
4363
4364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4365   echo "$ac_t""yes" 1>&6
4366     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4367   cat >> confdefs.h <<EOF
4368 #define $ac_tr_func 1
4369 EOF
4370  
4371 else
4372   echo "$ac_t""no" 1>&6
4373 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4374 fi
4375 done
4376
4377
4378     for ac_func in __signbit
4379 do
4380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4381 echo "configure:4382: checking for $ac_func" >&5
4382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4383   echo $ac_n "(cached) $ac_c" 1>&6
4384 else
4385   cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* System header to define __stub macros and hopefully few prototypes,
4389     which can conflict with char $ac_func(); below.  */
4390 #include <assert.h>
4391 /* Override any gcc2 internal prototype to avoid an error.  */
4392 /* We use char because int might match the return type of a gcc2
4393     builtin and then its argument prototype would still apply.  */
4394 char $ac_func();
4395
4396 int main() {
4397
4398 /* The GNU C library defines this for functions which it implements
4399     to always fail with ENOSYS.  Some functions are actually named
4400     something starting with __ and the normal name is an alias.  */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4402 choke me
4403 #else
4404 $ac_func();
4405 #endif
4406
4407 ; return 0; }
4408 EOF
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410   rm -rf conftest*
4411   eval "ac_cv_func_$ac_func=yes"
4412 else
4413   echo "configure: failed program was:" >&5
4414   cat conftest.$ac_ext >&5
4415   rm -rf conftest*
4416   eval "ac_cv_func_$ac_func=no"
4417 fi
4418 rm -f conftest*
4419 fi
4420
4421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4422   echo "$ac_t""yes" 1>&6
4423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4424   cat >> confdefs.h <<EOF
4425 #define $ac_tr_func 1
4426 EOF
4427  
4428 else
4429   echo "$ac_t""no" 1>&6
4430 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4431 fi
4432 done
4433
4434   for ac_func in __signbitf
4435 do
4436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4437 echo "configure:4438: checking for $ac_func" >&5
4438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4439   echo $ac_n "(cached) $ac_c" 1>&6
4440 else
4441   cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 /* System header to define __stub macros and hopefully few prototypes,
4445     which can conflict with char $ac_func(); below.  */
4446 #include <assert.h>
4447 /* Override any gcc2 internal prototype to avoid an error.  */
4448 /* We use char because int might match the return type of a gcc2
4449     builtin and then its argument prototype would still apply.  */
4450 char $ac_func();
4451
4452 int main() {
4453
4454 /* The GNU C library defines this for functions which it implements
4455     to always fail with ENOSYS.  Some functions are actually named
4456     something starting with __ and the normal name is an alias.  */
4457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4458 choke me
4459 #else
4460 $ac_func();
4461 #endif
4462
4463 ; return 0; }
4464 EOF
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466   rm -rf conftest*
4467   eval "ac_cv_func_$ac_func=yes"
4468 else
4469   echo "configure: failed program was:" >&5
4470   cat conftest.$ac_ext >&5
4471   rm -rf conftest*
4472   eval "ac_cv_func_$ac_func=no"
4473 fi
4474 rm -f conftest*
4475 fi
4476
4477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4478   echo "$ac_t""yes" 1>&6
4479     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4480   cat >> confdefs.h <<EOF
4481 #define $ac_tr_func 1
4482 EOF
4483  
4484 else
4485   echo "$ac_t""no" 1>&6
4486 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4487 fi
4488 done
4489
4490
4491           if test x$ac_cv_func_copysignl = x"yes"; then
4492     for ac_func in __signbitl
4493 do
4494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4495 echo "configure:4496: checking for $ac_func" >&5
4496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4497   echo $ac_n "(cached) $ac_c" 1>&6
4498 else
4499   cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* System header to define __stub macros and hopefully few prototypes,
4503     which can conflict with char $ac_func(); below.  */
4504 #include <assert.h>
4505 /* Override any gcc2 internal prototype to avoid an error.  */
4506 /* We use char because int might match the return type of a gcc2
4507     builtin and then its argument prototype would still apply.  */
4508 char $ac_func();
4509
4510 int main() {
4511
4512 /* The GNU C library defines this for functions which it implements
4513     to always fail with ENOSYS.  Some functions are actually named
4514     something starting with __ and the normal name is an alias.  */
4515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4516 choke me
4517 #else
4518 $ac_func();
4519 #endif
4520
4521 ; return 0; }
4522 EOF
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4524   rm -rf conftest*
4525   eval "ac_cv_func_$ac_func=yes"
4526 else
4527   echo "configure: failed program was:" >&5
4528   cat conftest.$ac_ext >&5
4529   rm -rf conftest*
4530   eval "ac_cv_func_$ac_func=no"
4531 fi
4532 rm -f conftest*
4533 fi
4534
4535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4536   echo "$ac_t""yes" 1>&6
4537     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4538   cat >> confdefs.h <<EOF
4539 #define $ac_tr_func 1
4540 EOF
4541  
4542 else
4543   echo "$ac_t""no" 1>&6
4544 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4545 fi
4546 done
4547
4548   fi
4549
4550   
4551
4552       
4553
4554       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4555 echo "configure:4556: checking for mbstate_t" >&5
4556   cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 #include <wchar.h>
4560 int main() {
4561 mbstate_t teststate;
4562 ; return 0; }
4563 EOF
4564 if { (eval echo configure:4565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4565   rm -rf conftest*
4566   have_mbstate_t=yes
4567 else
4568   echo "configure: failed program was:" >&5
4569   cat conftest.$ac_ext >&5
4570   rm -rf conftest*
4571   have_mbstate_t=no
4572 fi
4573 rm -f conftest*
4574   echo "$ac_t""$have_mbstate_t" 1>&6
4575   if test x"$have_mbstate_t" = xyes; then
4576     cat >> confdefs.h <<\EOF
4577 #define HAVE_MBSTATE_T 1
4578 EOF
4579
4580   fi
4581
4582     for ac_hdr in wchar.h
4583 do
4584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4586 echo "configure:4587: checking for $ac_hdr" >&5
4587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4588   echo $ac_n "(cached) $ac_c" 1>&6
4589 else
4590   cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <$ac_hdr>
4594 EOF
4595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4596 { (eval echo configure:4597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4598 if test -z "$ac_err"; then
4599   rm -rf conftest*
4600   eval "ac_cv_header_$ac_safe=yes"
4601 else
4602   echo "$ac_err" >&5
4603   echo "configure: failed program was:" >&5
4604   cat conftest.$ac_ext >&5
4605   rm -rf conftest*
4606   eval "ac_cv_header_$ac_safe=no"
4607 fi
4608 rm -f conftest*
4609 fi
4610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4611   echo "$ac_t""yes" 1>&6
4612     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4613   cat >> confdefs.h <<EOF
4614 #define $ac_tr_hdr 1
4615 EOF
4616  ac_has_wchar_h=yes
4617 else
4618   echo "$ac_t""no" 1>&6
4619 ac_has_wchar_h=no
4620 fi
4621 done
4622
4623   for ac_hdr in wctype.h
4624 do
4625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_hdr" >&5
4628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4629   echo $ac_n "(cached) $ac_c" 1>&6
4630 else
4631   cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 #include <$ac_hdr>
4635 EOF
4636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4637 { (eval echo configure:4638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4639 if test -z "$ac_err"; then
4640   rm -rf conftest*
4641   eval "ac_cv_header_$ac_safe=yes"
4642 else
4643   echo "$ac_err" >&5
4644   echo "configure: failed program was:" >&5
4645   cat conftest.$ac_ext >&5
4646   rm -rf conftest*
4647   eval "ac_cv_header_$ac_safe=no"
4648 fi
4649 rm -f conftest*
4650 fi
4651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4652   echo "$ac_t""yes" 1>&6
4653     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4654   cat >> confdefs.h <<EOF
4655 #define $ac_tr_hdr 1
4656 EOF
4657  ac_has_wctype_h=yes
4658 else
4659   echo "$ac_t""no" 1>&6
4660 ac_has_wctype_h=no
4661 fi
4662 done
4663
4664   
4665     if test x"$ac_has_wchar_h" = xyes &&
4666      test x"$ac_has_wctype_h" = xyes &&
4667      test x"$enable_c_mbchar" != xno; then
4668       
4669             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4670 echo "configure:4671: checking for WCHAR_MIN and WCHAR_MAX" >&5
4671     cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 #include <wchar.h>
4675 int main() {
4676 int i = WCHAR_MIN; int j = WCHAR_MAX;
4677 ; return 0; }
4678 EOF
4679 if { (eval echo configure:4680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4680   rm -rf conftest*
4681   has_wchar_minmax=yes
4682 else
4683   echo "configure: failed program was:" >&5
4684   cat conftest.$ac_ext >&5
4685   rm -rf conftest*
4686   has_wchar_minmax=no
4687 fi
4688 rm -f conftest*
4689     echo "$ac_t""$has_wchar_minmax" 1>&6
4690     
4691             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4692 echo "configure:4693: checking for WEOF" >&5
4693     cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696
4697       #include <wchar.h>
4698       #include <stddef.h>
4699 int main() {
4700 wint_t i = WEOF;
4701 ; return 0; }
4702 EOF
4703 if { (eval echo configure:4704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4704   rm -rf conftest*
4705   has_weof=yes
4706 else
4707   echo "configure: failed program was:" >&5
4708   cat conftest.$ac_ext >&5
4709   rm -rf conftest*
4710   has_weof=no
4711 fi
4712 rm -f conftest*
4713     echo "$ac_t""$has_weof" 1>&6
4714   
4715         ac_wfuncs=yes
4716     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4717 do
4718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721   echo $ac_n "(cached) $ac_c" 1>&6
4722 else
4723   cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727     which can conflict with char $ac_func(); below.  */
4728 #include <assert.h>
4729 /* Override any gcc2 internal prototype to avoid an error.  */
4730 /* We use char because int might match the return type of a gcc2
4731     builtin and then its argument prototype would still apply.  */
4732 char $ac_func();
4733
4734 int main() {
4735
4736 /* The GNU C library defines this for functions which it implements
4737     to always fail with ENOSYS.  Some functions are actually named
4738     something starting with __ and the normal name is an alias.  */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4740 choke me
4741 #else
4742 $ac_func();
4743 #endif
4744
4745 ; return 0; }
4746 EOF
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748   rm -rf conftest*
4749   eval "ac_cv_func_$ac_func=yes"
4750 else
4751   echo "configure: failed program was:" >&5
4752   cat conftest.$ac_ext >&5
4753   rm -rf conftest*
4754   eval "ac_cv_func_$ac_func=no"
4755 fi
4756 rm -f conftest*
4757 fi
4758
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760   echo "$ac_t""yes" 1>&6
4761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762   cat >> confdefs.h <<EOF
4763 #define $ac_tr_func 1
4764 EOF
4765  
4766 else
4767   echo "$ac_t""no" 1>&6
4768 \
4769     ac_wfuncs=no
4770 fi
4771 done
4772
4773   
4774         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4775     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4776     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4777     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4778     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4779     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4780 do
4781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4782 echo "configure:4783: checking for $ac_func" >&5
4783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4784   echo $ac_n "(cached) $ac_c" 1>&6
4785 else
4786   cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* System header to define __stub macros and hopefully few prototypes,
4790     which can conflict with char $ac_func(); below.  */
4791 #include <assert.h>
4792 /* Override any gcc2 internal prototype to avoid an error.  */
4793 /* We use char because int might match the return type of a gcc2
4794     builtin and then its argument prototype would still apply.  */
4795 char $ac_func();
4796
4797 int main() {
4798
4799 /* The GNU C library defines this for functions which it implements
4800     to always fail with ENOSYS.  Some functions are actually named
4801     something starting with __ and the normal name is an alias.  */
4802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4803 choke me
4804 #else
4805 $ac_func();
4806 #endif
4807
4808 ; return 0; }
4809 EOF
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4811   rm -rf conftest*
4812   eval "ac_cv_func_$ac_func=yes"
4813 else
4814   echo "configure: failed program was:" >&5
4815   cat conftest.$ac_ext >&5
4816   rm -rf conftest*
4817   eval "ac_cv_func_$ac_func=no"
4818 fi
4819 rm -f conftest*
4820 fi
4821
4822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4823   echo "$ac_t""yes" 1>&6
4824     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4825   cat >> confdefs.h <<EOF
4826 #define $ac_tr_func 1
4827 EOF
4828  
4829 else
4830   echo "$ac_t""no" 1>&6
4831 \
4832     ac_wfuncs=no
4833 fi
4834 done
4835
4836
4837     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4838 echo "configure:4839: checking for ISO C99 wchar_t support" >&5
4839     if test x"$has_weof" = xyes &&
4840        test x"$has_wchar_minmax" = xyes &&
4841        test x"$ac_wfuncs" = xyes; then
4842       ac_isoC99_wchar_t=yes
4843     else
4844       ac_isoC99_wchar_t=no
4845     fi
4846     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4847   
4848             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4849 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4850 echo "configure:4851: checking for iconv.h" >&5
4851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4852   echo $ac_n "(cached) $ac_c" 1>&6
4853 else
4854   cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <iconv.h>
4858 EOF
4859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4860 { (eval echo configure:4861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4862 if test -z "$ac_err"; then
4863   rm -rf conftest*
4864   eval "ac_cv_header_$ac_safe=yes"
4865 else
4866   echo "$ac_err" >&5
4867   echo "configure: failed program was:" >&5
4868   cat conftest.$ac_ext >&5
4869   rm -rf conftest*
4870   eval "ac_cv_header_$ac_safe=no"
4871 fi
4872 rm -f conftest*
4873 fi
4874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4875   echo "$ac_t""yes" 1>&6
4876   ac_has_iconv_h=yes
4877 else
4878   echo "$ac_t""no" 1>&6
4879 ac_has_iconv_h=no
4880 fi
4881
4882     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4883 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4884 echo "configure:4885: checking for langinfo.h" >&5
4885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4886   echo $ac_n "(cached) $ac_c" 1>&6
4887 else
4888   cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 #include <langinfo.h>
4892 EOF
4893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4894 { (eval echo configure:4895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4896 if test -z "$ac_err"; then
4897   rm -rf conftest*
4898   eval "ac_cv_header_$ac_safe=yes"
4899 else
4900   echo "$ac_err" >&5
4901   echo "configure: failed program was:" >&5
4902   cat conftest.$ac_ext >&5
4903   rm -rf conftest*
4904   eval "ac_cv_header_$ac_safe=no"
4905 fi
4906 rm -f conftest*
4907 fi
4908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4909   echo "$ac_t""yes" 1>&6
4910   ac_has_langinfo_h=yes
4911 else
4912   echo "$ac_t""no" 1>&6
4913 ac_has_langinfo_h=no
4914 fi
4915
4916
4917         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4918 echo "configure:4919: checking for iconv in -liconv" >&5
4919 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4921   echo $ac_n "(cached) $ac_c" 1>&6
4922 else
4923   ac_save_LIBS="$LIBS"
4924 LIBS="-liconv  $LIBS"
4925 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* Override any gcc2 internal prototype to avoid an error.  */
4929 /* We use char because int might match the return type of a gcc2
4930     builtin and then its argument prototype would still apply.  */
4931 char iconv();
4932
4933 int main() {
4934 iconv()
4935 ; return 0; }
4936 EOF
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938   rm -rf conftest*
4939   eval "ac_cv_lib_$ac_lib_var=yes"
4940 else
4941   echo "configure: failed program was:" >&5
4942   cat conftest.$ac_ext >&5
4943   rm -rf conftest*
4944   eval "ac_cv_lib_$ac_lib_var=no"
4945 fi
4946 rm -f conftest*
4947 LIBS="$ac_save_LIBS"
4948
4949 fi
4950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4951   echo "$ac_t""yes" 1>&6
4952   libiconv="-liconv"
4953 else
4954   echo "$ac_t""no" 1>&6
4955 fi
4956
4957     ac_save_LIBS="$LIBS"
4958     LIBS="$LIBS $libiconv"
4959
4960     for ac_func in iconv_open iconv_close iconv nl_langinfo
4961 do
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965   echo $ac_n "(cached) $ac_c" 1>&6
4966 else
4967   cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971     which can conflict with char $ac_func(); below.  */
4972 #include <assert.h>
4973 /* Override any gcc2 internal prototype to avoid an error.  */
4974 /* We use char because int might match the return type of a gcc2
4975     builtin and then its argument prototype would still apply.  */
4976 char $ac_func();
4977
4978 int main() {
4979
4980 /* The GNU C library defines this for functions which it implements
4981     to always fail with ENOSYS.  Some functions are actually named
4982     something starting with __ and the normal name is an alias.  */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4984 choke me
4985 #else
4986 $ac_func();
4987 #endif
4988
4989 ; return 0; }
4990 EOF
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4992   rm -rf conftest*
4993   eval "ac_cv_func_$ac_func=yes"
4994 else
4995   echo "configure: failed program was:" >&5
4996   cat conftest.$ac_ext >&5
4997   rm -rf conftest*
4998   eval "ac_cv_func_$ac_func=no"
4999 fi
5000 rm -f conftest*
5001 fi
5002
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004   echo "$ac_t""yes" 1>&6
5005     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5006   cat >> confdefs.h <<EOF
5007 #define $ac_tr_func 1
5008 EOF
5009  \
5010     ac_XPG2funcs=yes
5011 else
5012   echo "$ac_t""no" 1>&6
5013 ac_XPG2funcs=no
5014 fi
5015 done
5016
5017   
5018     LIBS="$ac_save_LIBS"
5019
5020     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5021 echo "configure:5022: checking for XPG2 wchar_t support" >&5
5022     if test x"$ac_has_iconv_h" = xyes &&
5023        test x"$ac_has_langinfo_h" = xyes &&
5024        test x"$ac_XPG2funcs" = xyes; then
5025       ac_XPG2_wchar_t=yes
5026     else
5027       ac_XPG2_wchar_t=no
5028     fi
5029     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5030   
5031             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5032 echo "configure:5033: checking for enabled wchar_t specializations" >&5
5033     if test x"$ac_isoC99_wchar_t" = xyes &&
5034        test x"$ac_XPG2_wchar_t" = xyes; then
5035       cat >> confdefs.h <<\EOF
5036 #define _GLIBCPP_USE_WCHAR_T 1
5037 EOF
5038
5039       echo "$ac_t"""yes"" 1>&6
5040     else
5041       echo "$ac_t"""no"" 1>&6
5042     fi
5043   else
5044         echo "configure: warning: wchar_t support disabled." 1>&2
5045   fi
5046
5047       os_include_dir="config/os/gnu-linux"
5048       cat >> confdefs.h <<\EOF
5049 #define HAVE_COPYSIGN 1
5050 EOF
5051
5052       cat >> confdefs.h <<\EOF
5053 #define HAVE_COPYSIGNF 1
5054 EOF
5055
5056       cat >> confdefs.h <<\EOF
5057 #define HAVE_FINITEF 1
5058 EOF
5059
5060       cat >> confdefs.h <<\EOF
5061 #define HAVE_FREXPF 1
5062 EOF
5063
5064       cat >> confdefs.h <<\EOF
5065 #define HAVE_HYPOTF 1
5066 EOF
5067
5068       cat >> confdefs.h <<\EOF
5069 #define HAVE_SINCOS 1
5070 EOF
5071
5072       cat >> confdefs.h <<\EOF
5073 #define HAVE_SINCOSF 1
5074 EOF
5075
5076       if test x"long_double_math_on_this_cpu" = x"yes"; then
5077         cat >> confdefs.h <<\EOF
5078 #define HAVE_HYPOTL 1
5079 EOF
5080
5081       fi
5082       ;;
5083     *-hpux*)
5084       # Check for available headers.
5085       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5086         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5087         fp.h locale.h float.h inttypes.h
5088 do
5089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5091 echo "configure:5092: checking for $ac_hdr" >&5
5092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5093   echo $ac_n "(cached) $ac_c" 1>&6
5094 else
5095   cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 #include <$ac_hdr>
5099 EOF
5100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5101 { (eval echo configure:5102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5103 if test -z "$ac_err"; then
5104   rm -rf conftest*
5105   eval "ac_cv_header_$ac_safe=yes"
5106 else
5107   echo "$ac_err" >&5
5108   echo "configure: failed program was:" >&5
5109   cat conftest.$ac_ext >&5
5110   rm -rf conftest*
5111   eval "ac_cv_header_$ac_safe=no"
5112 fi
5113 rm -f conftest*
5114 fi
5115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5116   echo "$ac_t""yes" 1>&6
5117     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5118   cat >> confdefs.h <<EOF
5119 #define $ac_tr_hdr 1
5120 EOF
5121  
5122 else
5123   echo "$ac_t""no" 1>&6
5124 fi
5125 done
5126
5127       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5128       
5129       
5130   # If we're not using GNU ld, then there's no point in even trying these
5131   # tests.  Check for that first.  We should have already tested for gld
5132   # by now (in libtool), but require it now just to be safe...
5133   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5134   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5135   
5136
5137   # The name set by libtool depends on the version of libtool.  Shame on us
5138   # for depending on an impl detail, but c'est la vie.  Older versions used
5139   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5140   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5141   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5142   # set (hence we're using an older libtool), then set it.
5143   if test x${with_gnu_ld+set} != xset; then
5144     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5145       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5146       with_gnu_ld=no
5147     else
5148       with_gnu_ld=$ac_cv_prog_gnu_ld
5149     fi
5150   fi
5151
5152   # Start by getting the version number.  I think the libtool test already
5153   # does some of this, but throws away the result.
5154   
5155   ldver=`$LD --version 2>/dev/null | head -1 | \
5156          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5157   
5158   glibcpp_gnu_ld_version=`echo $ldver | \
5159          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5160
5161   # Set --gc-sections.
5162   if test "$with_gnu_ld" = "notbroken"; then
5163     # GNU ld it is!  Joy and bunny rabbits!
5164
5165     # All these tests are for C++; save the language and the compiler flags.
5166     # Need to do this so that g++ won't try to link in libstdc++
5167     ac_test_CFLAGS="${CFLAGS+set}"
5168     ac_save_CFLAGS="$CFLAGS"
5169     CFLAGS='-x c++  -Wl,--gc-sections'
5170
5171     # Check for -Wl,--gc-sections
5172     # XXX This test is broken at the moment, as symbols required for
5173     # linking are now in libsupc++ (not built yet.....). In addition, 
5174     # this test has cored on solaris in the past. In addition,
5175     # --gc-sections doesn't really work at the moment (keeps on discarding
5176     # used sections, first .eh_frame and now some of the glibc sections for
5177     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5178     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5179 echo "configure:5180: checking for ld that supports -Wl,--gc-sections" >&5
5180     if test "$cross_compiling" = yes; then
5181   ac_sectionLDflags=yes
5182 else
5183   cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186
5187      int main(void) 
5188      {
5189        try { throw 1; }
5190        catch (...) { };
5191        return 0;
5192      }
5193     
5194 EOF
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5196 then
5197   ac_sectionLDflags=yes
5198 else
5199   echo "configure: failed program was:" >&5
5200   cat conftest.$ac_ext >&5
5201   rm -fr conftest*
5202   ac_sectionLDflags=no
5203 fi
5204 rm -fr conftest*
5205 fi
5206
5207     if test "$ac_test_CFLAGS" = set; then
5208       CFLAGS="$ac_save_CFLAGS"
5209     else
5210       # this is the suspicious part
5211       CFLAGS=''
5212     fi
5213     if test "$ac_sectionLDflags" = "yes"; then
5214       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5215     fi
5216     echo "$ac_t""$ac_sectionLDflags" 1>&6
5217   fi
5218
5219   # Set linker optimization flags.
5220   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5221     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5222   fi
5223
5224   
5225   
5226
5227       
5228     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5229 echo "configure:5230: checking for main in -lm" >&5
5230 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5232   echo $ac_n "(cached) $ac_c" 1>&6
5233 else
5234   ac_save_LIBS="$LIBS"
5235 LIBS="-lm  $LIBS"
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5239
5240 int main() {
5241 main()
5242 ; return 0; }
5243 EOF
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245   rm -rf conftest*
5246   eval "ac_cv_lib_$ac_lib_var=yes"
5247 else
5248   echo "configure: failed program was:" >&5
5249   cat conftest.$ac_ext >&5
5250   rm -rf conftest*
5251   eval "ac_cv_lib_$ac_lib_var=no"
5252 fi
5253 rm -f conftest*
5254 LIBS="$ac_save_LIBS"
5255
5256 fi
5257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5258   echo "$ac_t""yes" 1>&6
5259     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5260     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5261   cat >> confdefs.h <<EOF
5262 #define $ac_tr_lib 1
5263 EOF
5264
5265   LIBS="-lm $LIBS"
5266
5267 else
5268   echo "$ac_t""no" 1>&6
5269 fi
5270
5271   for ac_func in nan copysignf
5272 do
5273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_func" >&5
5275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5276   echo $ac_n "(cached) $ac_c" 1>&6
5277 else
5278   cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* System header to define __stub macros and hopefully few prototypes,
5282     which can conflict with char $ac_func(); below.  */
5283 #include <assert.h>
5284 /* Override any gcc2 internal prototype to avoid an error.  */
5285 /* We use char because int might match the return type of a gcc2
5286     builtin and then its argument prototype would still apply.  */
5287 char $ac_func();
5288
5289 int main() {
5290
5291 /* The GNU C library defines this for functions which it implements
5292     to always fail with ENOSYS.  Some functions are actually named
5293     something starting with __ and the normal name is an alias.  */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 choke me
5296 #else
5297 $ac_func();
5298 #endif
5299
5300 ; return 0; }
5301 EOF
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303   rm -rf conftest*
5304   eval "ac_cv_func_$ac_func=yes"
5305 else
5306   echo "configure: failed program was:" >&5
5307   cat conftest.$ac_ext >&5
5308   rm -rf conftest*
5309   eval "ac_cv_func_$ac_func=no"
5310 fi
5311 rm -f conftest*
5312 fi
5313
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315   echo "$ac_t""yes" 1>&6
5316     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317   cat >> confdefs.h <<EOF
5318 #define $ac_tr_func 1
5319 EOF
5320  
5321 else
5322   echo "$ac_t""no" 1>&6
5323 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5324 fi
5325 done
5326
5327
5328     for ac_func in __signbit
5329 do
5330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_func" >&5
5332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5333   echo $ac_n "(cached) $ac_c" 1>&6
5334 else
5335   cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339     which can conflict with char $ac_func(); below.  */
5340 #include <assert.h>
5341 /* Override any gcc2 internal prototype to avoid an error.  */
5342 /* We use char because int might match the return type of a gcc2
5343     builtin and then its argument prototype would still apply.  */
5344 char $ac_func();
5345
5346 int main() {
5347
5348 /* The GNU C library defines this for functions which it implements
5349     to always fail with ENOSYS.  Some functions are actually named
5350     something starting with __ and the normal name is an alias.  */
5351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5352 choke me
5353 #else
5354 $ac_func();
5355 #endif
5356
5357 ; return 0; }
5358 EOF
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5360   rm -rf conftest*
5361   eval "ac_cv_func_$ac_func=yes"
5362 else
5363   echo "configure: failed program was:" >&5
5364   cat conftest.$ac_ext >&5
5365   rm -rf conftest*
5366   eval "ac_cv_func_$ac_func=no"
5367 fi
5368 rm -f conftest*
5369 fi
5370
5371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5372   echo "$ac_t""yes" 1>&6
5373     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5374   cat >> confdefs.h <<EOF
5375 #define $ac_tr_func 1
5376 EOF
5377  
5378 else
5379   echo "$ac_t""no" 1>&6
5380 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5381 fi
5382 done
5383
5384   for ac_func in __signbitf
5385 do
5386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5387 echo "configure:5388: checking for $ac_func" >&5
5388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5389   echo $ac_n "(cached) $ac_c" 1>&6
5390 else
5391   cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5394 /* System header to define __stub macros and hopefully few prototypes,
5395     which can conflict with char $ac_func(); below.  */
5396 #include <assert.h>
5397 /* Override any gcc2 internal prototype to avoid an error.  */
5398 /* We use char because int might match the return type of a gcc2
5399     builtin and then its argument prototype would still apply.  */
5400 char $ac_func();
5401
5402 int main() {
5403
5404 /* The GNU C library defines this for functions which it implements
5405     to always fail with ENOSYS.  Some functions are actually named
5406     something starting with __ and the normal name is an alias.  */
5407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5408 choke me
5409 #else
5410 $ac_func();
5411 #endif
5412
5413 ; return 0; }
5414 EOF
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5416   rm -rf conftest*
5417   eval "ac_cv_func_$ac_func=yes"
5418 else
5419   echo "configure: failed program was:" >&5
5420   cat conftest.$ac_ext >&5
5421   rm -rf conftest*
5422   eval "ac_cv_func_$ac_func=no"
5423 fi
5424 rm -f conftest*
5425 fi
5426
5427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5428   echo "$ac_t""yes" 1>&6
5429     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5430   cat >> confdefs.h <<EOF
5431 #define $ac_tr_func 1
5432 EOF
5433  
5434 else
5435   echo "$ac_t""no" 1>&6
5436 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5437 fi
5438 done
5439
5440
5441           if test x$ac_cv_func_copysignl = x"yes"; then
5442     for ac_func in __signbitl
5443 do
5444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5445 echo "configure:5446: checking for $ac_func" >&5
5446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5447   echo $ac_n "(cached) $ac_c" 1>&6
5448 else
5449   cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453     which can conflict with char $ac_func(); below.  */
5454 #include <assert.h>
5455 /* Override any gcc2 internal prototype to avoid an error.  */
5456 /* We use char because int might match the return type of a gcc2
5457     builtin and then its argument prototype would still apply.  */
5458 char $ac_func();
5459
5460 int main() {
5461
5462 /* The GNU C library defines this for functions which it implements
5463     to always fail with ENOSYS.  Some functions are actually named
5464     something starting with __ and the normal name is an alias.  */
5465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5466 choke me
5467 #else
5468 $ac_func();
5469 #endif
5470
5471 ; return 0; }
5472 EOF
5473 if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5474   rm -rf conftest*
5475   eval "ac_cv_func_$ac_func=yes"
5476 else
5477   echo "configure: failed program was:" >&5
5478   cat conftest.$ac_ext >&5
5479   rm -rf conftest*
5480   eval "ac_cv_func_$ac_func=no"
5481 fi
5482 rm -f conftest*
5483 fi
5484
5485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5486   echo "$ac_t""yes" 1>&6
5487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5488   cat >> confdefs.h <<EOF
5489 #define $ac_tr_func 1
5490 EOF
5491  
5492 else
5493   echo "$ac_t""no" 1>&6
5494 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5495 fi
5496 done
5497
5498   fi
5499
5500   
5501
5502       
5503
5504       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5505 echo "configure:5506: checking for mbstate_t" >&5
5506   cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 #include <wchar.h>
5510 int main() {
5511 mbstate_t teststate;
5512 ; return 0; }
5513 EOF
5514 if { (eval echo configure:5515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5515   rm -rf conftest*
5516   have_mbstate_t=yes
5517 else
5518   echo "configure: failed program was:" >&5
5519   cat conftest.$ac_ext >&5
5520   rm -rf conftest*
5521   have_mbstate_t=no
5522 fi
5523 rm -f conftest*
5524   echo "$ac_t""$have_mbstate_t" 1>&6
5525   if test x"$have_mbstate_t" = xyes; then
5526     cat >> confdefs.h <<\EOF
5527 #define HAVE_MBSTATE_T 1
5528 EOF
5529
5530   fi
5531
5532     for ac_hdr in wchar.h
5533 do
5534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5536 echo "configure:5537: checking for $ac_hdr" >&5
5537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5538   echo $ac_n "(cached) $ac_c" 1>&6
5539 else
5540   cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 #include <$ac_hdr>
5544 EOF
5545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5546 { (eval echo configure:5547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5548 if test -z "$ac_err"; then
5549   rm -rf conftest*
5550   eval "ac_cv_header_$ac_safe=yes"
5551 else
5552   echo "$ac_err" >&5
5553   echo "configure: failed program was:" >&5
5554   cat conftest.$ac_ext >&5
5555   rm -rf conftest*
5556   eval "ac_cv_header_$ac_safe=no"
5557 fi
5558 rm -f conftest*
5559 fi
5560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5561   echo "$ac_t""yes" 1>&6
5562     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5563   cat >> confdefs.h <<EOF
5564 #define $ac_tr_hdr 1
5565 EOF
5566  ac_has_wchar_h=yes
5567 else
5568   echo "$ac_t""no" 1>&6
5569 ac_has_wchar_h=no
5570 fi
5571 done
5572
5573   for ac_hdr in wctype.h
5574 do
5575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_hdr" >&5
5578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5579   echo $ac_n "(cached) $ac_c" 1>&6
5580 else
5581   cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 #include <$ac_hdr>
5585 EOF
5586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5587 { (eval echo configure:5588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5589 if test -z "$ac_err"; then
5590   rm -rf conftest*
5591   eval "ac_cv_header_$ac_safe=yes"
5592 else
5593   echo "$ac_err" >&5
5594   echo "configure: failed program was:" >&5
5595   cat conftest.$ac_ext >&5
5596   rm -rf conftest*
5597   eval "ac_cv_header_$ac_safe=no"
5598 fi
5599 rm -f conftest*
5600 fi
5601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5602   echo "$ac_t""yes" 1>&6
5603     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5604   cat >> confdefs.h <<EOF
5605 #define $ac_tr_hdr 1
5606 EOF
5607  ac_has_wctype_h=yes
5608 else
5609   echo "$ac_t""no" 1>&6
5610 ac_has_wctype_h=no
5611 fi
5612 done
5613
5614   
5615     if test x"$ac_has_wchar_h" = xyes &&
5616      test x"$ac_has_wctype_h" = xyes &&
5617      test x"$enable_c_mbchar" != xno; then
5618       
5619             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5620 echo "configure:5621: checking for WCHAR_MIN and WCHAR_MAX" >&5
5621     cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 #include <wchar.h>
5625 int main() {
5626 int i = WCHAR_MIN; int j = WCHAR_MAX;
5627 ; return 0; }
5628 EOF
5629 if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5630   rm -rf conftest*
5631   has_wchar_minmax=yes
5632 else
5633   echo "configure: failed program was:" >&5
5634   cat conftest.$ac_ext >&5
5635   rm -rf conftest*
5636   has_wchar_minmax=no
5637 fi
5638 rm -f conftest*
5639     echo "$ac_t""$has_wchar_minmax" 1>&6
5640     
5641             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5642 echo "configure:5643: checking for WEOF" >&5
5643     cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646
5647       #include <wchar.h>
5648       #include <stddef.h>
5649 int main() {
5650 wint_t i = WEOF;
5651 ; return 0; }
5652 EOF
5653 if { (eval echo configure:5654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5654   rm -rf conftest*
5655   has_weof=yes
5656 else
5657   echo "configure: failed program was:" >&5
5658   cat conftest.$ac_ext >&5
5659   rm -rf conftest*
5660   has_weof=no
5661 fi
5662 rm -f conftest*
5663     echo "$ac_t""$has_weof" 1>&6
5664   
5665         ac_wfuncs=yes
5666     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5667 do
5668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_func" >&5
5670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5671   echo $ac_n "(cached) $ac_c" 1>&6
5672 else
5673   cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* System header to define __stub macros and hopefully few prototypes,
5677     which can conflict with char $ac_func(); below.  */
5678 #include <assert.h>
5679 /* Override any gcc2 internal prototype to avoid an error.  */
5680 /* We use char because int might match the return type of a gcc2
5681     builtin and then its argument prototype would still apply.  */
5682 char $ac_func();
5683
5684 int main() {
5685
5686 /* The GNU C library defines this for functions which it implements
5687     to always fail with ENOSYS.  Some functions are actually named
5688     something starting with __ and the normal name is an alias.  */
5689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5690 choke me
5691 #else
5692 $ac_func();
5693 #endif
5694
5695 ; return 0; }
5696 EOF
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698   rm -rf conftest*
5699   eval "ac_cv_func_$ac_func=yes"
5700 else
5701   echo "configure: failed program was:" >&5
5702   cat conftest.$ac_ext >&5
5703   rm -rf conftest*
5704   eval "ac_cv_func_$ac_func=no"
5705 fi
5706 rm -f conftest*
5707 fi
5708
5709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5710   echo "$ac_t""yes" 1>&6
5711     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5712   cat >> confdefs.h <<EOF
5713 #define $ac_tr_func 1
5714 EOF
5715  
5716 else
5717   echo "$ac_t""no" 1>&6
5718 \
5719     ac_wfuncs=no
5720 fi
5721 done
5722
5723   
5724         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5725     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5726     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5727     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5728     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5729     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5730 do
5731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_func" >&5
5733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5734   echo $ac_n "(cached) $ac_c" 1>&6
5735 else
5736   cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* System header to define __stub macros and hopefully few prototypes,
5740     which can conflict with char $ac_func(); below.  */
5741 #include <assert.h>
5742 /* Override any gcc2 internal prototype to avoid an error.  */
5743 /* We use char because int might match the return type of a gcc2
5744     builtin and then its argument prototype would still apply.  */
5745 char $ac_func();
5746
5747 int main() {
5748
5749 /* The GNU C library defines this for functions which it implements
5750     to always fail with ENOSYS.  Some functions are actually named
5751     something starting with __ and the normal name is an alias.  */
5752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5753 choke me
5754 #else
5755 $ac_func();
5756 #endif
5757
5758 ; return 0; }
5759 EOF
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5761   rm -rf conftest*
5762   eval "ac_cv_func_$ac_func=yes"
5763 else
5764   echo "configure: failed program was:" >&5
5765   cat conftest.$ac_ext >&5
5766   rm -rf conftest*
5767   eval "ac_cv_func_$ac_func=no"
5768 fi
5769 rm -f conftest*
5770 fi
5771
5772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5773   echo "$ac_t""yes" 1>&6
5774     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5775   cat >> confdefs.h <<EOF
5776 #define $ac_tr_func 1
5777 EOF
5778  
5779 else
5780   echo "$ac_t""no" 1>&6
5781 \
5782     ac_wfuncs=no
5783 fi
5784 done
5785
5786
5787     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5788 echo "configure:5789: checking for ISO C99 wchar_t support" >&5
5789     if test x"$has_weof" = xyes &&
5790        test x"$has_wchar_minmax" = xyes &&
5791        test x"$ac_wfuncs" = xyes; then
5792       ac_isoC99_wchar_t=yes
5793     else
5794       ac_isoC99_wchar_t=no
5795     fi
5796     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5797   
5798             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5799 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5800 echo "configure:5801: checking for iconv.h" >&5
5801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5802   echo $ac_n "(cached) $ac_c" 1>&6
5803 else
5804   cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 #include <iconv.h>
5808 EOF
5809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5810 { (eval echo configure:5811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5812 if test -z "$ac_err"; then
5813   rm -rf conftest*
5814   eval "ac_cv_header_$ac_safe=yes"
5815 else
5816   echo "$ac_err" >&5
5817   echo "configure: failed program was:" >&5
5818   cat conftest.$ac_ext >&5
5819   rm -rf conftest*
5820   eval "ac_cv_header_$ac_safe=no"
5821 fi
5822 rm -f conftest*
5823 fi
5824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5825   echo "$ac_t""yes" 1>&6
5826   ac_has_iconv_h=yes
5827 else
5828   echo "$ac_t""no" 1>&6
5829 ac_has_iconv_h=no
5830 fi
5831
5832     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5833 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5834 echo "configure:5835: checking for langinfo.h" >&5
5835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5836   echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838   cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 #include <langinfo.h>
5842 EOF
5843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5844 { (eval echo configure:5845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5846 if test -z "$ac_err"; then
5847   rm -rf conftest*
5848   eval "ac_cv_header_$ac_safe=yes"
5849 else
5850   echo "$ac_err" >&5
5851   echo "configure: failed program was:" >&5
5852   cat conftest.$ac_ext >&5
5853   rm -rf conftest*
5854   eval "ac_cv_header_$ac_safe=no"
5855 fi
5856 rm -f conftest*
5857 fi
5858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5859   echo "$ac_t""yes" 1>&6
5860   ac_has_langinfo_h=yes
5861 else
5862   echo "$ac_t""no" 1>&6
5863 ac_has_langinfo_h=no
5864 fi
5865
5866
5867         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5868 echo "configure:5869: checking for iconv in -liconv" >&5
5869 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5871   echo $ac_n "(cached) $ac_c" 1>&6
5872 else
5873   ac_save_LIBS="$LIBS"
5874 LIBS="-liconv  $LIBS"
5875 cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5878 /* Override any gcc2 internal prototype to avoid an error.  */
5879 /* We use char because int might match the return type of a gcc2
5880     builtin and then its argument prototype would still apply.  */
5881 char iconv();
5882
5883 int main() {
5884 iconv()
5885 ; return 0; }
5886 EOF
5887 if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888   rm -rf conftest*
5889   eval "ac_cv_lib_$ac_lib_var=yes"
5890 else
5891   echo "configure: failed program was:" >&5
5892   cat conftest.$ac_ext >&5
5893   rm -rf conftest*
5894   eval "ac_cv_lib_$ac_lib_var=no"
5895 fi
5896 rm -f conftest*
5897 LIBS="$ac_save_LIBS"
5898
5899 fi
5900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5901   echo "$ac_t""yes" 1>&6
5902   libiconv="-liconv"
5903 else
5904   echo "$ac_t""no" 1>&6
5905 fi
5906
5907     ac_save_LIBS="$LIBS"
5908     LIBS="$LIBS $libiconv"
5909
5910     for ac_func in iconv_open iconv_close iconv nl_langinfo
5911 do
5912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5913 echo "configure:5914: checking for $ac_func" >&5
5914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5915   echo $ac_n "(cached) $ac_c" 1>&6
5916 else
5917   cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5920 /* System header to define __stub macros and hopefully few prototypes,
5921     which can conflict with char $ac_func(); below.  */
5922 #include <assert.h>
5923 /* Override any gcc2 internal prototype to avoid an error.  */
5924 /* We use char because int might match the return type of a gcc2
5925     builtin and then its argument prototype would still apply.  */
5926 char $ac_func();
5927
5928 int main() {
5929
5930 /* The GNU C library defines this for functions which it implements
5931     to always fail with ENOSYS.  Some functions are actually named
5932     something starting with __ and the normal name is an alias.  */
5933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5934 choke me
5935 #else
5936 $ac_func();
5937 #endif
5938
5939 ; return 0; }
5940 EOF
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942   rm -rf conftest*
5943   eval "ac_cv_func_$ac_func=yes"
5944 else
5945   echo "configure: failed program was:" >&5
5946   cat conftest.$ac_ext >&5
5947   rm -rf conftest*
5948   eval "ac_cv_func_$ac_func=no"
5949 fi
5950 rm -f conftest*
5951 fi
5952
5953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5954   echo "$ac_t""yes" 1>&6
5955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5956   cat >> confdefs.h <<EOF
5957 #define $ac_tr_func 1
5958 EOF
5959  \
5960     ac_XPG2funcs=yes
5961 else
5962   echo "$ac_t""no" 1>&6
5963 ac_XPG2funcs=no
5964 fi
5965 done
5966
5967   
5968     LIBS="$ac_save_LIBS"
5969
5970     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5971 echo "configure:5972: checking for XPG2 wchar_t support" >&5
5972     if test x"$ac_has_iconv_h" = xyes &&
5973        test x"$ac_has_langinfo_h" = xyes &&
5974        test x"$ac_XPG2funcs" = xyes; then
5975       ac_XPG2_wchar_t=yes
5976     else
5977       ac_XPG2_wchar_t=no
5978     fi
5979     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5980   
5981             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5982 echo "configure:5983: checking for enabled wchar_t specializations" >&5
5983     if test x"$ac_isoC99_wchar_t" = xyes &&
5984        test x"$ac_XPG2_wchar_t" = xyes; then
5985       cat >> confdefs.h <<\EOF
5986 #define _GLIBCPP_USE_WCHAR_T 1
5987 EOF
5988
5989       echo "$ac_t"""yes"" 1>&6
5990     else
5991       echo "$ac_t"""no"" 1>&6
5992     fi
5993   else
5994         echo "configure: warning: wchar_t support disabled." 1>&2
5995   fi
5996
5997       os_include_dir="config/os/hpux"
5998       cat >> confdefs.h <<\EOF
5999 #define HAVE_COPYSIGN 1
6000 EOF
6001
6002       cat >> confdefs.h <<\EOF
6003 #define HAVE_COPYSIGNF 1
6004 EOF
6005
6006       cat >> confdefs.h <<\EOF
6007 #define HAVE_FINITEF 1
6008 EOF
6009
6010       cat >> confdefs.h <<\EOF
6011 #define HAVE_FREXPF 1
6012 EOF
6013
6014       cat >> confdefs.h <<\EOF
6015 #define HAVE_HYPOT 1
6016 EOF
6017
6018       cat >> confdefs.h <<\EOF
6019 #define HAVE_SINCOS 1
6020 EOF
6021
6022       cat >> confdefs.h <<\EOF
6023 #define HAVE_SINCOSF 1
6024 EOF
6025
6026       ;;
6027     *-netbsd*)
6028       # Check for available headers.
6029       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6030         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6031         fp.h locale.h float.h inttypes.h
6032 do
6033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6035 echo "configure:6036: checking for $ac_hdr" >&5
6036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6037   echo $ac_n "(cached) $ac_c" 1>&6
6038 else
6039   cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042 #include <$ac_hdr>
6043 EOF
6044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6045 { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6047 if test -z "$ac_err"; then
6048   rm -rf conftest*
6049   eval "ac_cv_header_$ac_safe=yes"
6050 else
6051   echo "$ac_err" >&5
6052   echo "configure: failed program was:" >&5
6053   cat conftest.$ac_ext >&5
6054   rm -rf conftest*
6055   eval "ac_cv_header_$ac_safe=no"
6056 fi
6057 rm -f conftest*
6058 fi
6059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6060   echo "$ac_t""yes" 1>&6
6061     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6062   cat >> confdefs.h <<EOF
6063 #define $ac_tr_hdr 1
6064 EOF
6065  
6066 else
6067   echo "$ac_t""no" 1>&6
6068 fi
6069 done
6070
6071       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6072        
6073       
6074   # If we're not using GNU ld, then there's no point in even trying these
6075   # tests.  Check for that first.  We should have already tested for gld
6076   # by now (in libtool), but require it now just to be safe...
6077   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6078   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6079   
6080
6081   # The name set by libtool depends on the version of libtool.  Shame on us
6082   # for depending on an impl detail, but c'est la vie.  Older versions used
6083   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6084   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6085   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6086   # set (hence we're using an older libtool), then set it.
6087   if test x${with_gnu_ld+set} != xset; then
6088     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6089       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6090       with_gnu_ld=no
6091     else
6092       with_gnu_ld=$ac_cv_prog_gnu_ld
6093     fi
6094   fi
6095
6096   # Start by getting the version number.  I think the libtool test already
6097   # does some of this, but throws away the result.
6098   
6099   ldver=`$LD --version 2>/dev/null | head -1 | \
6100          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6101   
6102   glibcpp_gnu_ld_version=`echo $ldver | \
6103          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6104
6105   # Set --gc-sections.
6106   if test "$with_gnu_ld" = "notbroken"; then
6107     # GNU ld it is!  Joy and bunny rabbits!
6108
6109     # All these tests are for C++; save the language and the compiler flags.
6110     # Need to do this so that g++ won't try to link in libstdc++
6111     ac_test_CFLAGS="${CFLAGS+set}"
6112     ac_save_CFLAGS="$CFLAGS"
6113     CFLAGS='-x c++  -Wl,--gc-sections'
6114
6115     # Check for -Wl,--gc-sections
6116     # XXX This test is broken at the moment, as symbols required for
6117     # linking are now in libsupc++ (not built yet.....). In addition, 
6118     # this test has cored on solaris in the past. In addition,
6119     # --gc-sections doesn't really work at the moment (keeps on discarding
6120     # used sections, first .eh_frame and now some of the glibc sections for
6121     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6122     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6123 echo "configure:6124: checking for ld that supports -Wl,--gc-sections" >&5
6124     if test "$cross_compiling" = yes; then
6125   ac_sectionLDflags=yes
6126 else
6127   cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130
6131      int main(void) 
6132      {
6133        try { throw 1; }
6134        catch (...) { };
6135        return 0;
6136      }
6137     
6138 EOF
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6140 then
6141   ac_sectionLDflags=yes
6142 else
6143   echo "configure: failed program was:" >&5
6144   cat conftest.$ac_ext >&5
6145   rm -fr conftest*
6146   ac_sectionLDflags=no
6147 fi
6148 rm -fr conftest*
6149 fi
6150
6151     if test "$ac_test_CFLAGS" = set; then
6152       CFLAGS="$ac_save_CFLAGS"
6153     else
6154       # this is the suspicious part
6155       CFLAGS=''
6156     fi
6157     if test "$ac_sectionLDflags" = "yes"; then
6158       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6159     fi
6160     echo "$ac_t""$ac_sectionLDflags" 1>&6
6161   fi
6162
6163   # Set linker optimization flags.
6164   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6165     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6166   fi
6167
6168   
6169   
6170
6171       
6172     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6173 echo "configure:6174: checking for main in -lm" >&5
6174 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6176   echo $ac_n "(cached) $ac_c" 1>&6
6177 else
6178   ac_save_LIBS="$LIBS"
6179 LIBS="-lm  $LIBS"
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6183
6184 int main() {
6185 main()
6186 ; return 0; }
6187 EOF
6188 if { (eval echo configure:6189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6189   rm -rf conftest*
6190   eval "ac_cv_lib_$ac_lib_var=yes"
6191 else
6192   echo "configure: failed program was:" >&5
6193   cat conftest.$ac_ext >&5
6194   rm -rf conftest*
6195   eval "ac_cv_lib_$ac_lib_var=no"
6196 fi
6197 rm -f conftest*
6198 LIBS="$ac_save_LIBS"
6199
6200 fi
6201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6202   echo "$ac_t""yes" 1>&6
6203     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6204     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6205   cat >> confdefs.h <<EOF
6206 #define $ac_tr_lib 1
6207 EOF
6208
6209   LIBS="-lm $LIBS"
6210
6211 else
6212   echo "$ac_t""no" 1>&6
6213 fi
6214
6215   for ac_func in nan copysignf
6216 do
6217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6218 echo "configure:6219: checking for $ac_func" >&5
6219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6220   echo $ac_n "(cached) $ac_c" 1>&6
6221 else
6222   cat > conftest.$ac_ext <<EOF
6223 #line 6224 "configure"
6224 #include "confdefs.h"
6225 /* System header to define __stub macros and hopefully few prototypes,
6226     which can conflict with char $ac_func(); below.  */
6227 #include <assert.h>
6228 /* Override any gcc2 internal prototype to avoid an error.  */
6229 /* We use char because int might match the return type of a gcc2
6230     builtin and then its argument prototype would still apply.  */
6231 char $ac_func();
6232
6233 int main() {
6234
6235 /* The GNU C library defines this for functions which it implements
6236     to always fail with ENOSYS.  Some functions are actually named
6237     something starting with __ and the normal name is an alias.  */
6238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6239 choke me
6240 #else
6241 $ac_func();
6242 #endif
6243
6244 ; return 0; }
6245 EOF
6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6247   rm -rf conftest*
6248   eval "ac_cv_func_$ac_func=yes"
6249 else
6250   echo "configure: failed program was:" >&5
6251   cat conftest.$ac_ext >&5
6252   rm -rf conftest*
6253   eval "ac_cv_func_$ac_func=no"
6254 fi
6255 rm -f conftest*
6256 fi
6257
6258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6259   echo "$ac_t""yes" 1>&6
6260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6261   cat >> confdefs.h <<EOF
6262 #define $ac_tr_func 1
6263 EOF
6264  
6265 else
6266   echo "$ac_t""no" 1>&6
6267 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6268 fi
6269 done
6270
6271
6272     for ac_func in __signbit
6273 do
6274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6275 echo "configure:6276: checking for $ac_func" >&5
6276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6277   echo $ac_n "(cached) $ac_c" 1>&6
6278 else
6279   cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* System header to define __stub macros and hopefully few prototypes,
6283     which can conflict with char $ac_func(); below.  */
6284 #include <assert.h>
6285 /* Override any gcc2 internal prototype to avoid an error.  */
6286 /* We use char because int might match the return type of a gcc2
6287     builtin and then its argument prototype would still apply.  */
6288 char $ac_func();
6289
6290 int main() {
6291
6292 /* The GNU C library defines this for functions which it implements
6293     to always fail with ENOSYS.  Some functions are actually named
6294     something starting with __ and the normal name is an alias.  */
6295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6296 choke me
6297 #else
6298 $ac_func();
6299 #endif
6300
6301 ; return 0; }
6302 EOF
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6304   rm -rf conftest*
6305   eval "ac_cv_func_$ac_func=yes"
6306 else
6307   echo "configure: failed program was:" >&5
6308   cat conftest.$ac_ext >&5
6309   rm -rf conftest*
6310   eval "ac_cv_func_$ac_func=no"
6311 fi
6312 rm -f conftest*
6313 fi
6314
6315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6316   echo "$ac_t""yes" 1>&6
6317     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6318   cat >> confdefs.h <<EOF
6319 #define $ac_tr_func 1
6320 EOF
6321  
6322 else
6323   echo "$ac_t""no" 1>&6
6324 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6325 fi
6326 done
6327
6328   for ac_func in __signbitf
6329 do
6330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6331 echo "configure:6332: checking for $ac_func" >&5
6332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6333   echo $ac_n "(cached) $ac_c" 1>&6
6334 else
6335   cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6338 /* System header to define __stub macros and hopefully few prototypes,
6339     which can conflict with char $ac_func(); below.  */
6340 #include <assert.h>
6341 /* Override any gcc2 internal prototype to avoid an error.  */
6342 /* We use char because int might match the return type of a gcc2
6343     builtin and then its argument prototype would still apply.  */
6344 char $ac_func();
6345
6346 int main() {
6347
6348 /* The GNU C library defines this for functions which it implements
6349     to always fail with ENOSYS.  Some functions are actually named
6350     something starting with __ and the normal name is an alias.  */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 choke me
6353 #else
6354 $ac_func();
6355 #endif
6356
6357 ; return 0; }
6358 EOF
6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360   rm -rf conftest*
6361   eval "ac_cv_func_$ac_func=yes"
6362 else
6363   echo "configure: failed program was:" >&5
6364   cat conftest.$ac_ext >&5
6365   rm -rf conftest*
6366   eval "ac_cv_func_$ac_func=no"
6367 fi
6368 rm -f conftest*
6369 fi
6370
6371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6372   echo "$ac_t""yes" 1>&6
6373     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6374   cat >> confdefs.h <<EOF
6375 #define $ac_tr_func 1
6376 EOF
6377  
6378 else
6379   echo "$ac_t""no" 1>&6
6380 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6381 fi
6382 done
6383
6384
6385           if test x$ac_cv_func_copysignl = x"yes"; then
6386     for ac_func in __signbitl
6387 do
6388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6389 echo "configure:6390: checking for $ac_func" >&5
6390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6391   echo $ac_n "(cached) $ac_c" 1>&6
6392 else
6393   cat > conftest.$ac_ext <<EOF
6394 #line 6395 "configure"
6395 #include "confdefs.h"
6396 /* System header to define __stub macros and hopefully few prototypes,
6397     which can conflict with char $ac_func(); below.  */
6398 #include <assert.h>
6399 /* Override any gcc2 internal prototype to avoid an error.  */
6400 /* We use char because int might match the return type of a gcc2
6401     builtin and then its argument prototype would still apply.  */
6402 char $ac_func();
6403
6404 int main() {
6405
6406 /* The GNU C library defines this for functions which it implements
6407     to always fail with ENOSYS.  Some functions are actually named
6408     something starting with __ and the normal name is an alias.  */
6409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6410 choke me
6411 #else
6412 $ac_func();
6413 #endif
6414
6415 ; return 0; }
6416 EOF
6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6418   rm -rf conftest*
6419   eval "ac_cv_func_$ac_func=yes"
6420 else
6421   echo "configure: failed program was:" >&5
6422   cat conftest.$ac_ext >&5
6423   rm -rf conftest*
6424   eval "ac_cv_func_$ac_func=no"
6425 fi
6426 rm -f conftest*
6427 fi
6428
6429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6430   echo "$ac_t""yes" 1>&6
6431     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6432   cat >> confdefs.h <<EOF
6433 #define $ac_tr_func 1
6434 EOF
6435  
6436 else
6437   echo "$ac_t""no" 1>&6
6438 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6439 fi
6440 done
6441
6442   fi
6443
6444   
6445
6446       
6447
6448       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6449 echo "configure:6450: checking for mbstate_t" >&5
6450   cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6453 #include <wchar.h>
6454 int main() {
6455 mbstate_t teststate;
6456 ; return 0; }
6457 EOF
6458 if { (eval echo configure:6459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6459   rm -rf conftest*
6460   have_mbstate_t=yes
6461 else
6462   echo "configure: failed program was:" >&5
6463   cat conftest.$ac_ext >&5
6464   rm -rf conftest*
6465   have_mbstate_t=no
6466 fi
6467 rm -f conftest*
6468   echo "$ac_t""$have_mbstate_t" 1>&6
6469   if test x"$have_mbstate_t" = xyes; then
6470     cat >> confdefs.h <<\EOF
6471 #define HAVE_MBSTATE_T 1
6472 EOF
6473
6474   fi
6475
6476     for ac_hdr in wchar.h
6477 do
6478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_hdr" >&5
6481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6482   echo $ac_n "(cached) $ac_c" 1>&6
6483 else
6484   cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 #include <$ac_hdr>
6488 EOF
6489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6490 { (eval echo configure:6491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6492 if test -z "$ac_err"; then
6493   rm -rf conftest*
6494   eval "ac_cv_header_$ac_safe=yes"
6495 else
6496   echo "$ac_err" >&5
6497   echo "configure: failed program was:" >&5
6498   cat conftest.$ac_ext >&5
6499   rm -rf conftest*
6500   eval "ac_cv_header_$ac_safe=no"
6501 fi
6502 rm -f conftest*
6503 fi
6504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6505   echo "$ac_t""yes" 1>&6
6506     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6507   cat >> confdefs.h <<EOF
6508 #define $ac_tr_hdr 1
6509 EOF
6510  ac_has_wchar_h=yes
6511 else
6512   echo "$ac_t""no" 1>&6
6513 ac_has_wchar_h=no
6514 fi
6515 done
6516
6517   for ac_hdr in wctype.h
6518 do
6519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_hdr" >&5
6522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6523   echo $ac_n "(cached) $ac_c" 1>&6
6524 else
6525   cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 #include <$ac_hdr>
6529 EOF
6530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6531 { (eval echo configure:6532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6533 if test -z "$ac_err"; then
6534   rm -rf conftest*
6535   eval "ac_cv_header_$ac_safe=yes"
6536 else
6537   echo "$ac_err" >&5
6538   echo "configure: failed program was:" >&5
6539   cat conftest.$ac_ext >&5
6540   rm -rf conftest*
6541   eval "ac_cv_header_$ac_safe=no"
6542 fi
6543 rm -f conftest*
6544 fi
6545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6546   echo "$ac_t""yes" 1>&6
6547     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6548   cat >> confdefs.h <<EOF
6549 #define $ac_tr_hdr 1
6550 EOF
6551  ac_has_wctype_h=yes
6552 else
6553   echo "$ac_t""no" 1>&6
6554 ac_has_wctype_h=no
6555 fi
6556 done
6557
6558   
6559     if test x"$ac_has_wchar_h" = xyes &&
6560      test x"$ac_has_wctype_h" = xyes &&
6561      test x"$enable_c_mbchar" != xno; then
6562       
6563             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6564 echo "configure:6565: checking for WCHAR_MIN and WCHAR_MAX" >&5
6565     cat > conftest.$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6568 #include <wchar.h>
6569 int main() {
6570 int i = WCHAR_MIN; int j = WCHAR_MAX;
6571 ; return 0; }
6572 EOF
6573 if { (eval echo configure:6574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6574   rm -rf conftest*
6575   has_wchar_minmax=yes
6576 else
6577   echo "configure: failed program was:" >&5
6578   cat conftest.$ac_ext >&5
6579   rm -rf conftest*
6580   has_wchar_minmax=no
6581 fi
6582 rm -f conftest*
6583     echo "$ac_t""$has_wchar_minmax" 1>&6
6584     
6585             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6586 echo "configure:6587: checking for WEOF" >&5
6587     cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590
6591       #include <wchar.h>
6592       #include <stddef.h>
6593 int main() {
6594 wint_t i = WEOF;
6595 ; return 0; }
6596 EOF
6597 if { (eval echo configure:6598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6598   rm -rf conftest*
6599   has_weof=yes
6600 else
6601   echo "configure: failed program was:" >&5
6602   cat conftest.$ac_ext >&5
6603   rm -rf conftest*
6604   has_weof=no
6605 fi
6606 rm -f conftest*
6607     echo "$ac_t""$has_weof" 1>&6
6608   
6609         ac_wfuncs=yes
6610     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6611 do
6612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6613 echo "configure:6614: checking for $ac_func" >&5
6614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6615   echo $ac_n "(cached) $ac_c" 1>&6
6616 else
6617   cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 /* System header to define __stub macros and hopefully few prototypes,
6621     which can conflict with char $ac_func(); below.  */
6622 #include <assert.h>
6623 /* Override any gcc2 internal prototype to avoid an error.  */
6624 /* We use char because int might match the return type of a gcc2
6625     builtin and then its argument prototype would still apply.  */
6626 char $ac_func();
6627
6628 int main() {
6629
6630 /* The GNU C library defines this for functions which it implements
6631     to always fail with ENOSYS.  Some functions are actually named
6632     something starting with __ and the normal name is an alias.  */
6633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6634 choke me
6635 #else
6636 $ac_func();
6637 #endif
6638
6639 ; return 0; }
6640 EOF
6641 if { (eval echo configure:6642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6642   rm -rf conftest*
6643   eval "ac_cv_func_$ac_func=yes"
6644 else
6645   echo "configure: failed program was:" >&5
6646   cat conftest.$ac_ext >&5
6647   rm -rf conftest*
6648   eval "ac_cv_func_$ac_func=no"
6649 fi
6650 rm -f conftest*
6651 fi
6652
6653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6654   echo "$ac_t""yes" 1>&6
6655     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6656   cat >> confdefs.h <<EOF
6657 #define $ac_tr_func 1
6658 EOF
6659  
6660 else
6661   echo "$ac_t""no" 1>&6
6662 \
6663     ac_wfuncs=no
6664 fi
6665 done
6666
6667   
6668         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6669     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6670     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6671     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6672     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6673     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6674 do
6675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6676 echo "configure:6677: checking for $ac_func" >&5
6677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6678   echo $ac_n "(cached) $ac_c" 1>&6
6679 else
6680   cat > conftest.$ac_ext <<EOF
6681 #line 6682 "configure"
6682 #include "confdefs.h"
6683 /* System header to define __stub macros and hopefully few prototypes,
6684     which can conflict with char $ac_func(); below.  */
6685 #include <assert.h>
6686 /* Override any gcc2 internal prototype to avoid an error.  */
6687 /* We use char because int might match the return type of a gcc2
6688     builtin and then its argument prototype would still apply.  */
6689 char $ac_func();
6690
6691 int main() {
6692
6693 /* The GNU C library defines this for functions which it implements
6694     to always fail with ENOSYS.  Some functions are actually named
6695     something starting with __ and the normal name is an alias.  */
6696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6697 choke me
6698 #else
6699 $ac_func();
6700 #endif
6701
6702 ; return 0; }
6703 EOF
6704 if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6705   rm -rf conftest*
6706   eval "ac_cv_func_$ac_func=yes"
6707 else
6708   echo "configure: failed program was:" >&5
6709   cat conftest.$ac_ext >&5
6710   rm -rf conftest*
6711   eval "ac_cv_func_$ac_func=no"
6712 fi
6713 rm -f conftest*
6714 fi
6715
6716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6717   echo "$ac_t""yes" 1>&6
6718     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6719   cat >> confdefs.h <<EOF
6720 #define $ac_tr_func 1
6721 EOF
6722  
6723 else
6724   echo "$ac_t""no" 1>&6
6725 \
6726     ac_wfuncs=no
6727 fi
6728 done
6729
6730
6731     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6732 echo "configure:6733: checking for ISO C99 wchar_t support" >&5
6733     if test x"$has_weof" = xyes &&
6734        test x"$has_wchar_minmax" = xyes &&
6735        test x"$ac_wfuncs" = xyes; then
6736       ac_isoC99_wchar_t=yes
6737     else
6738       ac_isoC99_wchar_t=no
6739     fi
6740     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6741   
6742             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6743 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6744 echo "configure:6745: checking for iconv.h" >&5
6745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6746   echo $ac_n "(cached) $ac_c" 1>&6
6747 else
6748   cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 #include <iconv.h>
6752 EOF
6753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6754 { (eval echo configure:6755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6756 if test -z "$ac_err"; then
6757   rm -rf conftest*
6758   eval "ac_cv_header_$ac_safe=yes"
6759 else
6760   echo "$ac_err" >&5
6761   echo "configure: failed program was:" >&5
6762   cat conftest.$ac_ext >&5
6763   rm -rf conftest*
6764   eval "ac_cv_header_$ac_safe=no"
6765 fi
6766 rm -f conftest*
6767 fi
6768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6769   echo "$ac_t""yes" 1>&6
6770   ac_has_iconv_h=yes
6771 else
6772   echo "$ac_t""no" 1>&6
6773 ac_has_iconv_h=no
6774 fi
6775
6776     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6777 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6778 echo "configure:6779: checking for langinfo.h" >&5
6779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6780   echo $ac_n "(cached) $ac_c" 1>&6
6781 else
6782   cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 #include <langinfo.h>
6786 EOF
6787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6788 { (eval echo configure:6789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6790 if test -z "$ac_err"; then
6791   rm -rf conftest*
6792   eval "ac_cv_header_$ac_safe=yes"
6793 else
6794   echo "$ac_err" >&5
6795   echo "configure: failed program was:" >&5
6796   cat conftest.$ac_ext >&5
6797   rm -rf conftest*
6798   eval "ac_cv_header_$ac_safe=no"
6799 fi
6800 rm -f conftest*
6801 fi
6802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6803   echo "$ac_t""yes" 1>&6
6804   ac_has_langinfo_h=yes
6805 else
6806   echo "$ac_t""no" 1>&6
6807 ac_has_langinfo_h=no
6808 fi
6809
6810
6811         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6812 echo "configure:6813: checking for iconv in -liconv" >&5
6813 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6815   echo $ac_n "(cached) $ac_c" 1>&6
6816 else
6817   ac_save_LIBS="$LIBS"
6818 LIBS="-liconv  $LIBS"
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 /* Override any gcc2 internal prototype to avoid an error.  */
6823 /* We use char because int might match the return type of a gcc2
6824     builtin and then its argument prototype would still apply.  */
6825 char iconv();
6826
6827 int main() {
6828 iconv()
6829 ; return 0; }
6830 EOF
6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6832   rm -rf conftest*
6833   eval "ac_cv_lib_$ac_lib_var=yes"
6834 else
6835   echo "configure: failed program was:" >&5
6836   cat conftest.$ac_ext >&5
6837   rm -rf conftest*
6838   eval "ac_cv_lib_$ac_lib_var=no"
6839 fi
6840 rm -f conftest*
6841 LIBS="$ac_save_LIBS"
6842
6843 fi
6844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6845   echo "$ac_t""yes" 1>&6
6846   libiconv="-liconv"
6847 else
6848   echo "$ac_t""no" 1>&6
6849 fi
6850
6851     ac_save_LIBS="$LIBS"
6852     LIBS="$LIBS $libiconv"
6853
6854     for ac_func in iconv_open iconv_close iconv nl_langinfo
6855 do
6856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_func" >&5
6858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6859   echo $ac_n "(cached) $ac_c" 1>&6
6860 else
6861   cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 /* System header to define __stub macros and hopefully few prototypes,
6865     which can conflict with char $ac_func(); below.  */
6866 #include <assert.h>
6867 /* Override any gcc2 internal prototype to avoid an error.  */
6868 /* We use char because int might match the return type of a gcc2
6869     builtin and then its argument prototype would still apply.  */
6870 char $ac_func();
6871
6872 int main() {
6873
6874 /* The GNU C library defines this for functions which it implements
6875     to always fail with ENOSYS.  Some functions are actually named
6876     something starting with __ and the normal name is an alias.  */
6877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6878 choke me
6879 #else
6880 $ac_func();
6881 #endif
6882
6883 ; return 0; }
6884 EOF
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886   rm -rf conftest*
6887   eval "ac_cv_func_$ac_func=yes"
6888 else
6889   echo "configure: failed program was:" >&5
6890   cat conftest.$ac_ext >&5
6891   rm -rf conftest*
6892   eval "ac_cv_func_$ac_func=no"
6893 fi
6894 rm -f conftest*
6895 fi
6896
6897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6898   echo "$ac_t""yes" 1>&6
6899     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6900   cat >> confdefs.h <<EOF
6901 #define $ac_tr_func 1
6902 EOF
6903  \
6904     ac_XPG2funcs=yes
6905 else
6906   echo "$ac_t""no" 1>&6
6907 ac_XPG2funcs=no
6908 fi
6909 done
6910
6911   
6912     LIBS="$ac_save_LIBS"
6913
6914     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6915 echo "configure:6916: checking for XPG2 wchar_t support" >&5
6916     if test x"$ac_has_iconv_h" = xyes &&
6917        test x"$ac_has_langinfo_h" = xyes &&
6918        test x"$ac_XPG2funcs" = xyes; then
6919       ac_XPG2_wchar_t=yes
6920     else
6921       ac_XPG2_wchar_t=no
6922     fi
6923     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6924   
6925             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6926 echo "configure:6927: checking for enabled wchar_t specializations" >&5
6927     if test x"$ac_isoC99_wchar_t" = xyes &&
6928        test x"$ac_XPG2_wchar_t" = xyes; then
6929       cat >> confdefs.h <<\EOF
6930 #define _GLIBCPP_USE_WCHAR_T 1
6931 EOF
6932
6933       echo "$ac_t"""yes"" 1>&6
6934     else
6935       echo "$ac_t"""no"" 1>&6
6936     fi
6937   else
6938         echo "configure: warning: wchar_t support disabled." 1>&2
6939   fi
6940
6941       os_include_dir="config/os/bsd/netbsd"
6942       cat >> confdefs.h <<\EOF
6943 #define HAVE_COPYSIGN 1
6944 EOF
6945
6946       cat >> confdefs.h <<\EOF
6947 #define HAVE_COPYSIGNF 1
6948 EOF
6949
6950       cat >> confdefs.h <<\EOF
6951 #define HAVE_FINITEF 1
6952 EOF
6953
6954       cat >> confdefs.h <<\EOF
6955 #define HAVE_FREXPF 1
6956 EOF
6957
6958       cat >> confdefs.h <<\EOF
6959 #define HAVE_HYPOTF 1
6960 EOF
6961
6962       ;;
6963     *-mingw32*)
6964       for ac_hdr in sys/types.h locale.h float.h
6965 do
6966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6968 echo "configure:6969: checking for $ac_hdr" >&5
6969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6970   echo $ac_n "(cached) $ac_c" 1>&6
6971 else
6972   cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6975 #include <$ac_hdr>
6976 EOF
6977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6978 { (eval echo configure:6979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6980 if test -z "$ac_err"; then
6981   rm -rf conftest*
6982   eval "ac_cv_header_$ac_safe=yes"
6983 else
6984   echo "$ac_err" >&5
6985   echo "configure: failed program was:" >&5
6986   cat conftest.$ac_ext >&5
6987   rm -rf conftest*
6988   eval "ac_cv_header_$ac_safe=no"
6989 fi
6990 rm -f conftest*
6991 fi
6992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6993   echo "$ac_t""yes" 1>&6
6994     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6995   cat >> confdefs.h <<EOF
6996 #define $ac_tr_hdr 1
6997 EOF
6998  
6999 else
7000   echo "$ac_t""no" 1>&6
7001 fi
7002 done
7003
7004       
7005   # If we're not using GNU ld, then there's no point in even trying these
7006   # tests.  Check for that first.  We should have already tested for gld
7007   # by now (in libtool), but require it now just to be safe...
7008   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7009   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7010   
7011
7012   # The name set by libtool depends on the version of libtool.  Shame on us
7013   # for depending on an impl detail, but c'est la vie.  Older versions used
7014   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7015   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7016   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7017   # set (hence we're using an older libtool), then set it.
7018   if test x${with_gnu_ld+set} != xset; then
7019     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7020       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7021       with_gnu_ld=no
7022     else
7023       with_gnu_ld=$ac_cv_prog_gnu_ld
7024     fi
7025   fi
7026
7027   # Start by getting the version number.  I think the libtool test already
7028   # does some of this, but throws away the result.
7029   
7030   ldver=`$LD --version 2>/dev/null | head -1 | \
7031          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7032   
7033   glibcpp_gnu_ld_version=`echo $ldver | \
7034          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7035
7036   # Set --gc-sections.
7037   if test "$with_gnu_ld" = "notbroken"; then
7038     # GNU ld it is!  Joy and bunny rabbits!
7039
7040     # All these tests are for C++; save the language and the compiler flags.
7041     # Need to do this so that g++ won't try to link in libstdc++
7042     ac_test_CFLAGS="${CFLAGS+set}"
7043     ac_save_CFLAGS="$CFLAGS"
7044     CFLAGS='-x c++  -Wl,--gc-sections'
7045
7046     # Check for -Wl,--gc-sections
7047     # XXX This test is broken at the moment, as symbols required for
7048     # linking are now in libsupc++ (not built yet.....). In addition, 
7049     # this test has cored on solaris in the past. In addition,
7050     # --gc-sections doesn't really work at the moment (keeps on discarding
7051     # used sections, first .eh_frame and now some of the glibc sections for
7052     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7053     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7054 echo "configure:7055: checking for ld that supports -Wl,--gc-sections" >&5
7055     if test "$cross_compiling" = yes; then
7056   ac_sectionLDflags=yes
7057 else
7058   cat > conftest.$ac_ext <<EOF
7059 #line 7060 "configure"
7060 #include "confdefs.h"
7061
7062      int main(void) 
7063      {
7064        try { throw 1; }
7065        catch (...) { };
7066        return 0;
7067      }
7068     
7069 EOF
7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7071 then
7072   ac_sectionLDflags=yes
7073 else
7074   echo "configure: failed program was:" >&5
7075   cat conftest.$ac_ext >&5
7076   rm -fr conftest*
7077   ac_sectionLDflags=no
7078 fi
7079 rm -fr conftest*
7080 fi
7081
7082     if test "$ac_test_CFLAGS" = set; then
7083       CFLAGS="$ac_save_CFLAGS"
7084     else
7085       # this is the suspicious part
7086       CFLAGS=''
7087     fi
7088     if test "$ac_sectionLDflags" = "yes"; then
7089       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7090     fi
7091     echo "$ac_t""$ac_sectionLDflags" 1>&6
7092   fi
7093
7094   # Set linker optimization flags.
7095   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7096     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7097   fi
7098
7099   
7100   
7101
7102       
7103     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7104 echo "configure:7105: checking for main in -lm" >&5
7105 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7107   echo $ac_n "(cached) $ac_c" 1>&6
7108 else
7109   ac_save_LIBS="$LIBS"
7110 LIBS="-lm  $LIBS"
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114
7115 int main() {
7116 main()
7117 ; return 0; }
7118 EOF
7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7120   rm -rf conftest*
7121   eval "ac_cv_lib_$ac_lib_var=yes"
7122 else
7123   echo "configure: failed program was:" >&5
7124   cat conftest.$ac_ext >&5
7125   rm -rf conftest*
7126   eval "ac_cv_lib_$ac_lib_var=no"
7127 fi
7128 rm -f conftest*
7129 LIBS="$ac_save_LIBS"
7130
7131 fi
7132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7133   echo "$ac_t""yes" 1>&6
7134     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7135     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7136   cat >> confdefs.h <<EOF
7137 #define $ac_tr_lib 1
7138 EOF
7139
7140   LIBS="-lm $LIBS"
7141
7142 else
7143   echo "$ac_t""no" 1>&6
7144 fi
7145
7146   for ac_func in nan copysignf
7147 do
7148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7149 echo "configure:7150: checking for $ac_func" >&5
7150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7151   echo $ac_n "(cached) $ac_c" 1>&6
7152 else
7153   cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 /* System header to define __stub macros and hopefully few prototypes,
7157     which can conflict with char $ac_func(); below.  */
7158 #include <assert.h>
7159 /* Override any gcc2 internal prototype to avoid an error.  */
7160 /* We use char because int might match the return type of a gcc2
7161     builtin and then its argument prototype would still apply.  */
7162 char $ac_func();
7163
7164 int main() {
7165
7166 /* The GNU C library defines this for functions which it implements
7167     to always fail with ENOSYS.  Some functions are actually named
7168     something starting with __ and the normal name is an alias.  */
7169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7170 choke me
7171 #else
7172 $ac_func();
7173 #endif
7174
7175 ; return 0; }
7176 EOF
7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7178   rm -rf conftest*
7179   eval "ac_cv_func_$ac_func=yes"
7180 else
7181   echo "configure: failed program was:" >&5
7182   cat conftest.$ac_ext >&5
7183   rm -rf conftest*
7184   eval "ac_cv_func_$ac_func=no"
7185 fi
7186 rm -f conftest*
7187 fi
7188
7189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7190   echo "$ac_t""yes" 1>&6
7191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7192   cat >> confdefs.h <<EOF
7193 #define $ac_tr_func 1
7194 EOF
7195  
7196 else
7197   echo "$ac_t""no" 1>&6
7198 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7199 fi
7200 done
7201
7202
7203     for ac_func in __signbit
7204 do
7205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7206 echo "configure:7207: checking for $ac_func" >&5
7207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7208   echo $ac_n "(cached) $ac_c" 1>&6
7209 else
7210   cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7213 /* System header to define __stub macros and hopefully few prototypes,
7214     which can conflict with char $ac_func(); below.  */
7215 #include <assert.h>
7216 /* Override any gcc2 internal prototype to avoid an error.  */
7217 /* We use char because int might match the return type of a gcc2
7218     builtin and then its argument prototype would still apply.  */
7219 char $ac_func();
7220
7221 int main() {
7222
7223 /* The GNU C library defines this for functions which it implements
7224     to always fail with ENOSYS.  Some functions are actually named
7225     something starting with __ and the normal name is an alias.  */
7226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7227 choke me
7228 #else
7229 $ac_func();
7230 #endif
7231
7232 ; return 0; }
7233 EOF
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7235   rm -rf conftest*
7236   eval "ac_cv_func_$ac_func=yes"
7237 else
7238   echo "configure: failed program was:" >&5
7239   cat conftest.$ac_ext >&5
7240   rm -rf conftest*
7241   eval "ac_cv_func_$ac_func=no"
7242 fi
7243 rm -f conftest*
7244 fi
7245
7246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7247   echo "$ac_t""yes" 1>&6
7248     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7249   cat >> confdefs.h <<EOF
7250 #define $ac_tr_func 1
7251 EOF
7252  
7253 else
7254   echo "$ac_t""no" 1>&6
7255 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7256 fi
7257 done
7258
7259   for ac_func in __signbitf
7260 do
7261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7262 echo "configure:7263: checking for $ac_func" >&5
7263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7264   echo $ac_n "(cached) $ac_c" 1>&6
7265 else
7266   cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7269 /* System header to define __stub macros and hopefully few prototypes,
7270     which can conflict with char $ac_func(); below.  */
7271 #include <assert.h>
7272 /* Override any gcc2 internal prototype to avoid an error.  */
7273 /* We use char because int might match the return type of a gcc2
7274     builtin and then its argument prototype would still apply.  */
7275 char $ac_func();
7276
7277 int main() {
7278
7279 /* The GNU C library defines this for functions which it implements
7280     to always fail with ENOSYS.  Some functions are actually named
7281     something starting with __ and the normal name is an alias.  */
7282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7283 choke me
7284 #else
7285 $ac_func();
7286 #endif
7287
7288 ; return 0; }
7289 EOF
7290 if { (eval echo configure:7291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7291   rm -rf conftest*
7292   eval "ac_cv_func_$ac_func=yes"
7293 else
7294   echo "configure: failed program was:" >&5
7295   cat conftest.$ac_ext >&5
7296   rm -rf conftest*
7297   eval "ac_cv_func_$ac_func=no"
7298 fi
7299 rm -f conftest*
7300 fi
7301
7302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7303   echo "$ac_t""yes" 1>&6
7304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7305   cat >> confdefs.h <<EOF
7306 #define $ac_tr_func 1
7307 EOF
7308  
7309 else
7310   echo "$ac_t""no" 1>&6
7311 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7312 fi
7313 done
7314
7315
7316           if test x$ac_cv_func_copysignl = x"yes"; then
7317     for ac_func in __signbitl
7318 do
7319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7320 echo "configure:7321: checking for $ac_func" >&5
7321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7322   echo $ac_n "(cached) $ac_c" 1>&6
7323 else
7324   cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 /* System header to define __stub macros and hopefully few prototypes,
7328     which can conflict with char $ac_func(); below.  */
7329 #include <assert.h>
7330 /* Override any gcc2 internal prototype to avoid an error.  */
7331 /* We use char because int might match the return type of a gcc2
7332     builtin and then its argument prototype would still apply.  */
7333 char $ac_func();
7334
7335 int main() {
7336
7337 /* The GNU C library defines this for functions which it implements
7338     to always fail with ENOSYS.  Some functions are actually named
7339     something starting with __ and the normal name is an alias.  */
7340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7341 choke me
7342 #else
7343 $ac_func();
7344 #endif
7345
7346 ; return 0; }
7347 EOF
7348 if { (eval echo configure:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7349   rm -rf conftest*
7350   eval "ac_cv_func_$ac_func=yes"
7351 else
7352   echo "configure: failed program was:" >&5
7353   cat conftest.$ac_ext >&5
7354   rm -rf conftest*
7355   eval "ac_cv_func_$ac_func=no"
7356 fi
7357 rm -f conftest*
7358 fi
7359
7360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7361   echo "$ac_t""yes" 1>&6
7362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7363   cat >> confdefs.h <<EOF
7364 #define $ac_tr_func 1
7365 EOF
7366  
7367 else
7368   echo "$ac_t""no" 1>&6
7369 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7370 fi
7371 done
7372
7373   fi
7374
7375   
7376
7377       
7378
7379       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7380 echo "configure:7381: checking for mbstate_t" >&5
7381   cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7384 #include <wchar.h>
7385 int main() {
7386 mbstate_t teststate;
7387 ; return 0; }
7388 EOF
7389 if { (eval echo configure:7390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7390   rm -rf conftest*
7391   have_mbstate_t=yes
7392 else
7393   echo "configure: failed program was:" >&5
7394   cat conftest.$ac_ext >&5
7395   rm -rf conftest*
7396   have_mbstate_t=no
7397 fi
7398 rm -f conftest*
7399   echo "$ac_t""$have_mbstate_t" 1>&6
7400   if test x"$have_mbstate_t" = xyes; then
7401     cat >> confdefs.h <<\EOF
7402 #define HAVE_MBSTATE_T 1
7403 EOF
7404
7405   fi
7406
7407     for ac_hdr in wchar.h
7408 do
7409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7411 echo "configure:7412: checking for $ac_hdr" >&5
7412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7413   echo $ac_n "(cached) $ac_c" 1>&6
7414 else
7415   cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 #include <$ac_hdr>
7419 EOF
7420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7421 { (eval echo configure:7422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7423 if test -z "$ac_err"; then
7424   rm -rf conftest*
7425   eval "ac_cv_header_$ac_safe=yes"
7426 else
7427   echo "$ac_err" >&5
7428   echo "configure: failed program was:" >&5
7429   cat conftest.$ac_ext >&5
7430   rm -rf conftest*
7431   eval "ac_cv_header_$ac_safe=no"
7432 fi
7433 rm -f conftest*
7434 fi
7435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7436   echo "$ac_t""yes" 1>&6
7437     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7438   cat >> confdefs.h <<EOF
7439 #define $ac_tr_hdr 1
7440 EOF
7441  ac_has_wchar_h=yes
7442 else
7443   echo "$ac_t""no" 1>&6
7444 ac_has_wchar_h=no
7445 fi
7446 done
7447
7448   for ac_hdr in wctype.h
7449 do
7450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7452 echo "configure:7453: checking for $ac_hdr" >&5
7453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7454   echo $ac_n "(cached) $ac_c" 1>&6
7455 else
7456   cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 #include <$ac_hdr>
7460 EOF
7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7464 if test -z "$ac_err"; then
7465   rm -rf conftest*
7466   eval "ac_cv_header_$ac_safe=yes"
7467 else
7468   echo "$ac_err" >&5
7469   echo "configure: failed program was:" >&5
7470   cat conftest.$ac_ext >&5
7471   rm -rf conftest*
7472   eval "ac_cv_header_$ac_safe=no"
7473 fi
7474 rm -f conftest*
7475 fi
7476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7477   echo "$ac_t""yes" 1>&6
7478     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7479   cat >> confdefs.h <<EOF
7480 #define $ac_tr_hdr 1
7481 EOF
7482  ac_has_wctype_h=yes
7483 else
7484   echo "$ac_t""no" 1>&6
7485 ac_has_wctype_h=no
7486 fi
7487 done
7488
7489   
7490     if test x"$ac_has_wchar_h" = xyes &&
7491      test x"$ac_has_wctype_h" = xyes &&
7492      test x"$enable_c_mbchar" != xno; then
7493       
7494             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7495 echo "configure:7496: checking for WCHAR_MIN and WCHAR_MAX" >&5
7496     cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 #include <wchar.h>
7500 int main() {
7501 int i = WCHAR_MIN; int j = WCHAR_MAX;
7502 ; return 0; }
7503 EOF
7504 if { (eval echo configure:7505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7505   rm -rf conftest*
7506   has_wchar_minmax=yes
7507 else
7508   echo "configure: failed program was:" >&5
7509   cat conftest.$ac_ext >&5
7510   rm -rf conftest*
7511   has_wchar_minmax=no
7512 fi
7513 rm -f conftest*
7514     echo "$ac_t""$has_wchar_minmax" 1>&6
7515     
7516             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7517 echo "configure:7518: checking for WEOF" >&5
7518     cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7521
7522       #include <wchar.h>
7523       #include <stddef.h>
7524 int main() {
7525 wint_t i = WEOF;
7526 ; return 0; }
7527 EOF
7528 if { (eval echo configure:7529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7529   rm -rf conftest*
7530   has_weof=yes
7531 else
7532   echo "configure: failed program was:" >&5
7533   cat conftest.$ac_ext >&5
7534   rm -rf conftest*
7535   has_weof=no
7536 fi
7537 rm -f conftest*
7538     echo "$ac_t""$has_weof" 1>&6
7539   
7540         ac_wfuncs=yes
7541     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7542 do
7543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7544 echo "configure:7545: checking for $ac_func" >&5
7545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7546   echo $ac_n "(cached) $ac_c" 1>&6
7547 else
7548   cat > conftest.$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7551 /* System header to define __stub macros and hopefully few prototypes,
7552     which can conflict with char $ac_func(); below.  */
7553 #include <assert.h>
7554 /* Override any gcc2 internal prototype to avoid an error.  */
7555 /* We use char because int might match the return type of a gcc2
7556     builtin and then its argument prototype would still apply.  */
7557 char $ac_func();
7558
7559 int main() {
7560
7561 /* The GNU C library defines this for functions which it implements
7562     to always fail with ENOSYS.  Some functions are actually named
7563     something starting with __ and the normal name is an alias.  */
7564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7565 choke me
7566 #else
7567 $ac_func();
7568 #endif
7569
7570 ; return 0; }
7571 EOF
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7573   rm -rf conftest*
7574   eval "ac_cv_func_$ac_func=yes"
7575 else
7576   echo "configure: failed program was:" >&5
7577   cat conftest.$ac_ext >&5
7578   rm -rf conftest*
7579   eval "ac_cv_func_$ac_func=no"
7580 fi
7581 rm -f conftest*
7582 fi
7583
7584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7585   echo "$ac_t""yes" 1>&6
7586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7587   cat >> confdefs.h <<EOF
7588 #define $ac_tr_func 1
7589 EOF
7590  
7591 else
7592   echo "$ac_t""no" 1>&6
7593 \
7594     ac_wfuncs=no
7595 fi
7596 done
7597
7598   
7599         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7600     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7601     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7602     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7603     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7604     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7605 do
7606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7607 echo "configure:7608: checking for $ac_func" >&5
7608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7609   echo $ac_n "(cached) $ac_c" 1>&6
7610 else
7611   cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 /* System header to define __stub macros and hopefully few prototypes,
7615     which can conflict with char $ac_func(); below.  */
7616 #include <assert.h>
7617 /* Override any gcc2 internal prototype to avoid an error.  */
7618 /* We use char because int might match the return type of a gcc2
7619     builtin and then its argument prototype would still apply.  */
7620 char $ac_func();
7621
7622 int main() {
7623
7624 /* The GNU C library defines this for functions which it implements
7625     to always fail with ENOSYS.  Some functions are actually named
7626     something starting with __ and the normal name is an alias.  */
7627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7628 choke me
7629 #else
7630 $ac_func();
7631 #endif
7632
7633 ; return 0; }
7634 EOF
7635 if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7636   rm -rf conftest*
7637   eval "ac_cv_func_$ac_func=yes"
7638 else
7639   echo "configure: failed program was:" >&5
7640   cat conftest.$ac_ext >&5
7641   rm -rf conftest*
7642   eval "ac_cv_func_$ac_func=no"
7643 fi
7644 rm -f conftest*
7645 fi
7646
7647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7648   echo "$ac_t""yes" 1>&6
7649     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7650   cat >> confdefs.h <<EOF
7651 #define $ac_tr_func 1
7652 EOF
7653  
7654 else
7655   echo "$ac_t""no" 1>&6
7656 \
7657     ac_wfuncs=no
7658 fi
7659 done
7660
7661
7662     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7663 echo "configure:7664: checking for ISO C99 wchar_t support" >&5
7664     if test x"$has_weof" = xyes &&
7665        test x"$has_wchar_minmax" = xyes &&
7666        test x"$ac_wfuncs" = xyes; then
7667       ac_isoC99_wchar_t=yes
7668     else
7669       ac_isoC99_wchar_t=no
7670     fi
7671     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7672   
7673             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7674 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7675 echo "configure:7676: checking for iconv.h" >&5
7676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7677   echo $ac_n "(cached) $ac_c" 1>&6
7678 else
7679   cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 #include <iconv.h>
7683 EOF
7684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7685 { (eval echo configure:7686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7687 if test -z "$ac_err"; then
7688   rm -rf conftest*
7689   eval "ac_cv_header_$ac_safe=yes"
7690 else
7691   echo "$ac_err" >&5
7692   echo "configure: failed program was:" >&5
7693   cat conftest.$ac_ext >&5
7694   rm -rf conftest*
7695   eval "ac_cv_header_$ac_safe=no"
7696 fi
7697 rm -f conftest*
7698 fi
7699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7700   echo "$ac_t""yes" 1>&6
7701   ac_has_iconv_h=yes
7702 else
7703   echo "$ac_t""no" 1>&6
7704 ac_has_iconv_h=no
7705 fi
7706
7707     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7708 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7709 echo "configure:7710: checking for langinfo.h" >&5
7710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7711   echo $ac_n "(cached) $ac_c" 1>&6
7712 else
7713   cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 #include <langinfo.h>
7717 EOF
7718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7719 { (eval echo configure:7720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7721 if test -z "$ac_err"; then
7722   rm -rf conftest*
7723   eval "ac_cv_header_$ac_safe=yes"
7724 else
7725   echo "$ac_err" >&5
7726   echo "configure: failed program was:" >&5
7727   cat conftest.$ac_ext >&5
7728   rm -rf conftest*
7729   eval "ac_cv_header_$ac_safe=no"
7730 fi
7731 rm -f conftest*
7732 fi
7733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7734   echo "$ac_t""yes" 1>&6
7735   ac_has_langinfo_h=yes
7736 else
7737   echo "$ac_t""no" 1>&6
7738 ac_has_langinfo_h=no
7739 fi
7740
7741
7742         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7743 echo "configure:7744: checking for iconv in -liconv" >&5
7744 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7746   echo $ac_n "(cached) $ac_c" 1>&6
7747 else
7748   ac_save_LIBS="$LIBS"
7749 LIBS="-liconv  $LIBS"
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7753 /* Override any gcc2 internal prototype to avoid an error.  */
7754 /* We use char because int might match the return type of a gcc2
7755     builtin and then its argument prototype would still apply.  */
7756 char iconv();
7757
7758 int main() {
7759 iconv()
7760 ; return 0; }
7761 EOF
7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763   rm -rf conftest*
7764   eval "ac_cv_lib_$ac_lib_var=yes"
7765 else
7766   echo "configure: failed program was:" >&5
7767   cat conftest.$ac_ext >&5
7768   rm -rf conftest*
7769   eval "ac_cv_lib_$ac_lib_var=no"
7770 fi
7771 rm -f conftest*
7772 LIBS="$ac_save_LIBS"
7773
7774 fi
7775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7776   echo "$ac_t""yes" 1>&6
7777   libiconv="-liconv"
7778 else
7779   echo "$ac_t""no" 1>&6
7780 fi
7781
7782     ac_save_LIBS="$LIBS"
7783     LIBS="$LIBS $libiconv"
7784
7785     for ac_func in iconv_open iconv_close iconv nl_langinfo
7786 do
7787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7788 echo "configure:7789: checking for $ac_func" >&5
7789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7790   echo $ac_n "(cached) $ac_c" 1>&6
7791 else
7792   cat > conftest.$ac_ext <<EOF
7793 #line 7794 "configure"
7794 #include "confdefs.h"
7795 /* System header to define __stub macros and hopefully few prototypes,
7796     which can conflict with char $ac_func(); below.  */
7797 #include <assert.h>
7798 /* Override any gcc2 internal prototype to avoid an error.  */
7799 /* We use char because int might match the return type of a gcc2
7800     builtin and then its argument prototype would still apply.  */
7801 char $ac_func();
7802
7803 int main() {
7804
7805 /* The GNU C library defines this for functions which it implements
7806     to always fail with ENOSYS.  Some functions are actually named
7807     something starting with __ and the normal name is an alias.  */
7808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7809 choke me
7810 #else
7811 $ac_func();
7812 #endif
7813
7814 ; return 0; }
7815 EOF
7816 if { (eval echo configure:7817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7817   rm -rf conftest*
7818   eval "ac_cv_func_$ac_func=yes"
7819 else
7820   echo "configure: failed program was:" >&5
7821   cat conftest.$ac_ext >&5
7822   rm -rf conftest*
7823   eval "ac_cv_func_$ac_func=no"
7824 fi
7825 rm -f conftest*
7826 fi
7827
7828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7829   echo "$ac_t""yes" 1>&6
7830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7831   cat >> confdefs.h <<EOF
7832 #define $ac_tr_func 1
7833 EOF
7834  \
7835     ac_XPG2funcs=yes
7836 else
7837   echo "$ac_t""no" 1>&6
7838 ac_XPG2funcs=no
7839 fi
7840 done
7841
7842   
7843     LIBS="$ac_save_LIBS"
7844
7845     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7846 echo "configure:7847: checking for XPG2 wchar_t support" >&5
7847     if test x"$ac_has_iconv_h" = xyes &&
7848        test x"$ac_has_langinfo_h" = xyes &&
7849        test x"$ac_XPG2funcs" = xyes; then
7850       ac_XPG2_wchar_t=yes
7851     else
7852       ac_XPG2_wchar_t=no
7853     fi
7854     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7855   
7856             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7857 echo "configure:7858: checking for enabled wchar_t specializations" >&5
7858     if test x"$ac_isoC99_wchar_t" = xyes &&
7859        test x"$ac_XPG2_wchar_t" = xyes; then
7860       cat >> confdefs.h <<\EOF
7861 #define _GLIBCPP_USE_WCHAR_T 1
7862 EOF
7863
7864       echo "$ac_t"""yes"" 1>&6
7865     else
7866       echo "$ac_t"""no"" 1>&6
7867     fi
7868   else
7869         echo "configure: warning: wchar_t support disabled." 1>&2
7870   fi
7871
7872       os_include_dir="config/os/mingw32"
7873       ;;
7874     *-windiss*)
7875       os_include_dir="config/os/windiss"
7876       ;;
7877     *)
7878       os_include_dir="config/os/newlib"
7879       cat >> confdefs.h <<\EOF
7880 #define HAVE_HYPOT 1
7881 EOF
7882
7883       ;;
7884   esac
7885
7886   case "$target_alias" in
7887     *-mingw32*)
7888       ;;
7889     *-windiss*)
7890       cat >> confdefs.h <<\EOF
7891 #define HAVE_ACOSF 1
7892 EOF
7893
7894       cat >> confdefs.h <<\EOF
7895 #define HAVE_ASINF 1
7896 EOF
7897
7898       cat >> confdefs.h <<\EOF
7899 #define HAVE_ATAN2F 1
7900 EOF
7901
7902       cat >> confdefs.h <<\EOF
7903 #define HAVE_ATANF 1
7904 EOF
7905
7906       cat >> confdefs.h <<\EOF
7907 #define HAVE_CEILF 1
7908 EOF
7909
7910       cat >> confdefs.h <<\EOF
7911 #define HAVE_COPYSIGN 1
7912 EOF
7913
7914       cat >> confdefs.h <<\EOF
7915 #define HAVE_COPYSIGNF 1
7916 EOF
7917
7918       cat >> confdefs.h <<\EOF
7919 #define HAVE_COSF 1
7920 EOF
7921
7922       cat >> confdefs.h <<\EOF
7923 #define HAVE_COSHF 1
7924 EOF
7925
7926       cat >> confdefs.h <<\EOF
7927 #define HAVE_EXPF 1
7928 EOF
7929
7930       cat >> confdefs.h <<\EOF
7931 #define HAVE_FABSF 1
7932 EOF
7933
7934       cat >> confdefs.h <<\EOF
7935 #define HAVE_FLOORF 1
7936 EOF
7937
7938       cat >> confdefs.h <<\EOF
7939 #define HAVE_FMODF 1
7940 EOF
7941
7942       cat >> confdefs.h <<\EOF
7943 #define HAVE_FREXPF 1
7944 EOF
7945
7946       cat >> confdefs.h <<\EOF
7947 #define HAVE_LDEXPF 1
7948 EOF
7949
7950       cat >> confdefs.h <<\EOF
7951 #define HAVE_LOG10F 1
7952 EOF
7953
7954       cat >> confdefs.h <<\EOF
7955 #define HAVE_LOGF 1
7956 EOF
7957
7958       cat >> confdefs.h <<\EOF
7959 #define HAVE_MODFF 1
7960 EOF
7961
7962       cat >> confdefs.h <<\EOF
7963 #define HAVE_POWF 1
7964 EOF
7965
7966       cat >> confdefs.h <<\EOF
7967 #define HAVE_SINF 1
7968 EOF
7969
7970       cat >> confdefs.h <<\EOF
7971 #define HAVE_SINHF 1
7972 EOF
7973
7974       cat >> confdefs.h <<\EOF
7975 #define HAVE_SQRTF 1
7976 EOF
7977
7978       cat >> confdefs.h <<\EOF
7979 #define HAVE_TANF 1
7980 EOF
7981
7982       cat >> confdefs.h <<\EOF
7983 #define HAVE_TANHF 1
7984 EOF
7985
7986       ;;
7987     *)
7988       # GLIBCPP_CHECK_STDLIB_SUPPORT
7989       cat >> confdefs.h <<\EOF
7990 #define HAVE_STRTOF 1
7991 EOF
7992         
7993       cat >> confdefs.h <<\EOF
7994 #define HAVE_STRTOLD 1
7995 EOF
7996         
7997       # AC_FUNC_MMAP
7998       cat >> confdefs.h <<\EOF
7999 #define HAVE_MMAP 1
8000 EOF
8001
8002
8003       cat >> confdefs.h <<\EOF
8004 #define HAVE_ACOSF 1
8005 EOF
8006
8007       cat >> confdefs.h <<\EOF
8008 #define HAVE_ASINF 1
8009 EOF
8010
8011       cat >> confdefs.h <<\EOF
8012 #define HAVE_ATAN2F 1
8013 EOF
8014
8015       cat >> confdefs.h <<\EOF
8016 #define HAVE_ATANF 1
8017 EOF
8018
8019       cat >> confdefs.h <<\EOF
8020 #define HAVE_CEILF 1
8021 EOF
8022
8023       cat >> confdefs.h <<\EOF
8024 #define HAVE_COPYSIGN 1
8025 EOF
8026
8027       cat >> confdefs.h <<\EOF
8028 #define HAVE_COPYSIGNF 1
8029 EOF
8030
8031       cat >> confdefs.h <<\EOF
8032 #define HAVE_COSF 1
8033 EOF
8034
8035       cat >> confdefs.h <<\EOF
8036 #define HAVE_COSHF 1
8037 EOF
8038
8039       cat >> confdefs.h <<\EOF
8040 #define HAVE_EXPF 1
8041 EOF
8042
8043       cat >> confdefs.h <<\EOF
8044 #define HAVE_FABSF 1
8045 EOF
8046
8047       cat >> confdefs.h <<\EOF
8048 #define HAVE_FINITE 1
8049 EOF
8050
8051       cat >> confdefs.h <<\EOF
8052 #define HAVE_FINITEF 1
8053 EOF
8054
8055       cat >> confdefs.h <<\EOF
8056 #define HAVE_FLOORF 1
8057 EOF
8058
8059       cat >> confdefs.h <<\EOF
8060 #define HAVE_FMODF 1
8061 EOF
8062
8063       cat >> confdefs.h <<\EOF
8064 #define HAVE_FREXPF 1
8065 EOF
8066
8067       cat >> confdefs.h <<\EOF
8068 #define HAVE_ISINF 1
8069 EOF
8070
8071       cat >> confdefs.h <<\EOF
8072 #define HAVE_ISINFF 1
8073 EOF
8074
8075       cat >> confdefs.h <<\EOF
8076 #define HAVE_ISNAN 1
8077 EOF
8078
8079       cat >> confdefs.h <<\EOF
8080 #define HAVE_ISNANF 1
8081 EOF
8082
8083       cat >> confdefs.h <<\EOF
8084 #define HAVE_LDEXPF 1
8085 EOF
8086
8087       cat >> confdefs.h <<\EOF
8088 #define HAVE_LOG10F 1
8089 EOF
8090
8091       cat >> confdefs.h <<\EOF
8092 #define HAVE_LOGF 1
8093 EOF
8094
8095       cat >> confdefs.h <<\EOF
8096 #define HAVE_MODFF 1
8097 EOF
8098
8099       cat >> confdefs.h <<\EOF
8100 #define HAVE_POWF 1
8101 EOF
8102
8103       cat >> confdefs.h <<\EOF
8104 #define HAVE_SINF 1
8105 EOF
8106
8107       cat >> confdefs.h <<\EOF
8108 #define HAVE_SINHF 1
8109 EOF
8110
8111       cat >> confdefs.h <<\EOF
8112 #define HAVE_SQRTF 1
8113 EOF
8114
8115       cat >> confdefs.h <<\EOF
8116 #define HAVE_TANF 1
8117 EOF
8118
8119       cat >> confdefs.h <<\EOF
8120 #define HAVE_TANHF 1
8121 EOF
8122
8123       ;;
8124   esac
8125
8126   # At some point, we should differentiate between architectures
8127   # like x86, which have long double versions, and alpha/powerpc/etc.,
8128   # which don't. For the time being, punt.
8129   if test x"long_double_math_on_this_cpu" = x"yes"; then
8130     cat >> confdefs.h <<\EOF
8131 #define HAVE_ACOSL 1
8132 EOF
8133
8134     cat >> confdefs.h <<\EOF
8135 #define HAVE_ASINL 1
8136 EOF
8137
8138     cat >> confdefs.h <<\EOF
8139 #define HAVE_ATAN2L 1
8140 EOF
8141
8142     cat >> confdefs.h <<\EOF
8143 #define HAVE_ATANL 1
8144 EOF
8145
8146     cat >> confdefs.h <<\EOF
8147 #define HAVE_CEILL 1
8148 EOF
8149
8150     cat >> confdefs.h <<\EOF
8151 #define HAVE_COPYSIGNL 1
8152 EOF
8153
8154     cat >> confdefs.h <<\EOF
8155 #define HAVE_COSL 1
8156 EOF
8157
8158     cat >> confdefs.h <<\EOF
8159 #define HAVE_COSHL 1
8160 EOF
8161
8162     cat >> confdefs.h <<\EOF
8163 #define HAVE_EXPL 1
8164 EOF
8165
8166     cat >> confdefs.h <<\EOF
8167 #define HAVE_FABSL 1
8168 EOF
8169
8170     cat >> confdefs.h <<\EOF
8171 #define HAVE_FINITEL 1
8172 EOF
8173
8174     cat >> confdefs.h <<\EOF
8175 #define HAVE_FLOORL 1
8176 EOF
8177
8178     cat >> confdefs.h <<\EOF
8179 #define HAVE_FMODL 1
8180 EOF
8181
8182     cat >> confdefs.h <<\EOF
8183 #define HAVE_FREXPL 1
8184 EOF
8185
8186     cat >> confdefs.h <<\EOF
8187 #define HAVE_ISINFL 1
8188 EOF
8189
8190     cat >> confdefs.h <<\EOF
8191 #define HAVE_ISNANL 1
8192 EOF
8193
8194     cat >> confdefs.h <<\EOF
8195 #define HAVE_LDEXPL 1
8196 EOF
8197
8198     cat >> confdefs.h <<\EOF
8199 #define HAVE_LOG10L 1
8200 EOF
8201
8202     cat >> confdefs.h <<\EOF
8203 #define HAVE_LOGL 1
8204 EOF
8205
8206     cat >> confdefs.h <<\EOF
8207 #define HAVE_MODFL 1
8208 EOF
8209
8210     cat >> confdefs.h <<\EOF
8211 #define HAVE_POWL 1
8212 EOF
8213
8214     cat >> confdefs.h <<\EOF
8215 #define HAVE_SINCOSL 1
8216 EOF
8217
8218     cat >> confdefs.h <<\EOF
8219 #define HAVE_SINL 1
8220 EOF
8221
8222     cat >> confdefs.h <<\EOF
8223 #define HAVE_SINHL 1
8224 EOF
8225
8226     cat >> confdefs.h <<\EOF
8227 #define HAVE_SQRTL 1
8228 EOF
8229
8230     cat >> confdefs.h <<\EOF
8231 #define HAVE_TANL 1
8232 EOF
8233
8234     cat >> confdefs.h <<\EOF
8235 #define HAVE_TANHL 1
8236 EOF
8237
8238   fi
8239 else
8240
8241   # We are being configured natively. We can do more elaborate tests
8242   # that include AC_TRY_COMPILE now, as the linker is assumed to be
8243   # working.
8244   GLIBCPP_IS_CROSS_COMPILING=0
8245   CANADIAN=no
8246
8247   # Check for available headers.
8248   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8249   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
8250 do
8251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8253 echo "configure:8254: checking for $ac_hdr" >&5
8254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8255   echo $ac_n "(cached) $ac_c" 1>&6
8256 else
8257   cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 #include <$ac_hdr>
8261 EOF
8262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8263 { (eval echo configure:8264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8265 if test -z "$ac_err"; then
8266   rm -rf conftest*
8267   eval "ac_cv_header_$ac_safe=yes"
8268 else
8269   echo "$ac_err" >&5
8270   echo "configure: failed program was:" >&5
8271   cat conftest.$ac_ext >&5
8272   rm -rf conftest*
8273   eval "ac_cv_header_$ac_safe=no"
8274 fi
8275 rm -f conftest*
8276 fi
8277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8278   echo "$ac_t""yes" 1>&6
8279     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8280   cat >> confdefs.h <<EOF
8281 #define $ac_tr_hdr 1
8282 EOF
8283  
8284 else
8285   echo "$ac_t""no" 1>&6
8286 fi
8287 done
8288
8289
8290   
8291   # All these tests are for C++; save the language and the compiler flags.
8292   # The CXXFLAGS thing is suspicious, but based on similar bits previously
8293   # found in GLIBCPP_CONFIGURE.
8294   
8295   ac_ext=C
8296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8297 ac_cpp='$CXXCPP $CPPFLAGS'
8298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8300 cross_compiling=$ac_cv_prog_cxx_cross
8301
8302   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8303   ac_save_CXXFLAGS="$CXXFLAGS"
8304
8305   # Check for maintainer-mode bits.
8306   if test x"$USE_MAINTAINER_MODE" = xno; then
8307     WERROR=''
8308   else
8309     WERROR='-Werror'
8310   fi
8311
8312   # Check for -ffunction-sections -fdata-sections
8313   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
8314 echo "configure:8315: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8315   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8316   cat > conftest.$ac_ext <<EOF
8317 #line 8318 "configure"
8318 #include "confdefs.h"
8319
8320 int main() {
8321 int foo;
8322   
8323 ; return 0; }
8324 EOF
8325 if { (eval echo configure:8326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8326   rm -rf conftest*
8327   ac_fdsections=yes
8328 else
8329   echo "configure: failed program was:" >&5
8330   cat conftest.$ac_ext >&5
8331   rm -rf conftest*
8332   ac_fdsections=no
8333 fi
8334 rm -f conftest*
8335   if test "$ac_test_CXXFLAGS" = set; then
8336     CXXFLAGS="$ac_save_CXXFLAGS"
8337   else
8338     # this is the suspicious part
8339     CXXFLAGS=''
8340   fi
8341   if test x"$ac_fdsections" = x"yes" &&
8342      test x"$enable_debug" = x"no"; then
8343     SECTION_FLAGS='-ffunction-sections -fdata-sections'
8344   fi
8345   echo "$ac_t""$ac_fdsections" 1>&6
8346
8347   ac_ext=c
8348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8349 ac_cpp='$CPP $CPPFLAGS'
8350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8352 cross_compiling=$ac_cv_prog_cc_cross
8353
8354   
8355   
8356
8357   
8358   # If we're not using GNU ld, then there's no point in even trying these
8359   # tests.  Check for that first.  We should have already tested for gld
8360   # by now (in libtool), but require it now just to be safe...
8361   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8362   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8363   
8364
8365   # The name set by libtool depends on the version of libtool.  Shame on us
8366   # for depending on an impl detail, but c'est la vie.  Older versions used
8367   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8368   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8369   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8370   # set (hence we're using an older libtool), then set it.
8371   if test x${with_gnu_ld+set} != xset; then
8372     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8373       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8374       with_gnu_ld=no
8375     else
8376       with_gnu_ld=$ac_cv_prog_gnu_ld
8377     fi
8378   fi
8379
8380   # Start by getting the version number.  I think the libtool test already
8381   # does some of this, but throws away the result.
8382   
8383   ldver=`$LD --version 2>/dev/null | head -1 | \
8384          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8385   
8386   glibcpp_gnu_ld_version=`echo $ldver | \
8387          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8388
8389   # Set --gc-sections.
8390   if test "$with_gnu_ld" = "notbroken"; then
8391     # GNU ld it is!  Joy and bunny rabbits!
8392
8393     # All these tests are for C++; save the language and the compiler flags.
8394     # Need to do this so that g++ won't try to link in libstdc++
8395     ac_test_CFLAGS="${CFLAGS+set}"
8396     ac_save_CFLAGS="$CFLAGS"
8397     CFLAGS='-x c++  -Wl,--gc-sections'
8398
8399     # Check for -Wl,--gc-sections
8400     # XXX This test is broken at the moment, as symbols required for
8401     # linking are now in libsupc++ (not built yet.....). In addition, 
8402     # this test has cored on solaris in the past. In addition,
8403     # --gc-sections doesn't really work at the moment (keeps on discarding
8404     # used sections, first .eh_frame and now some of the glibc sections for
8405     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8406     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8407 echo "configure:8408: checking for ld that supports -Wl,--gc-sections" >&5
8408     if test "$cross_compiling" = yes; then
8409   ac_sectionLDflags=yes
8410 else
8411   cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8414
8415      int main(void) 
8416      {
8417        try { throw 1; }
8418        catch (...) { };
8419        return 0;
8420      }
8421     
8422 EOF
8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8424 then
8425   ac_sectionLDflags=yes
8426 else
8427   echo "configure: failed program was:" >&5
8428   cat conftest.$ac_ext >&5
8429   rm -fr conftest*
8430   ac_sectionLDflags=no
8431 fi
8432 rm -fr conftest*
8433 fi
8434
8435     if test "$ac_test_CFLAGS" = set; then
8436       CFLAGS="$ac_save_CFLAGS"
8437     else
8438       # this is the suspicious part
8439       CFLAGS=''
8440     fi
8441     if test "$ac_sectionLDflags" = "yes"; then
8442       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8443     fi
8444     echo "$ac_t""$ac_sectionLDflags" 1>&6
8445   fi
8446
8447   # Set linker optimization flags.
8448   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8449     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8450   fi
8451
8452   
8453   
8454
8455   
8456       
8457   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
8458 echo "configure:8459: checking for __builtin_abs declaration" >&5
8459   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
8460     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
8461   echo $ac_n "(cached) $ac_c" 1>&6
8462 else
8463   
8464       
8465       ac_ext=C
8466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8467 ac_cpp='$CXXCPP $CPPFLAGS'
8468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8470 cross_compiling=$ac_cv_prog_cxx_cross
8471
8472       cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 #include <math.h>
8476 int main() {
8477  __builtin_abs(0);
8478 ; return 0; }
8479 EOF
8480 if { (eval echo configure:8481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8481   rm -rf conftest*
8482   glibcpp_cv_func___builtin_abs_use=yes
8483 else
8484   echo "configure: failed program was:" >&5
8485   cat conftest.$ac_ext >&5
8486   rm -rf conftest*
8487   glibcpp_cv_func___builtin_abs_use=no
8488 fi
8489 rm -f conftest*
8490       ac_ext=c
8491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8492 ac_cpp='$CPP $CPPFLAGS'
8493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8495 cross_compiling=$ac_cv_prog_cc_cross
8496
8497     
8498 fi
8499
8500   fi
8501   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
8502   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
8503     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
8504 echo "configure:8505: checking for __builtin_abs linkage" >&5
8505     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
8506       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
8507   echo $ac_n "(cached) $ac_c" 1>&6
8508 else
8509   
8510         cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8513 #include <math.h>
8514 int main() {
8515  __builtin_abs(0);
8516 ; return 0; }
8517 EOF
8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8519   rm -rf conftest*
8520   glibcpp_cv_func___builtin_abs_link=yes
8521 else
8522   echo "configure: failed program was:" >&5
8523   cat conftest.$ac_ext >&5
8524   rm -rf conftest*
8525   glibcpp_cv_func___builtin_abs_link=no
8526 fi
8527 rm -f conftest*
8528       
8529 fi
8530
8531     fi
8532     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
8533     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
8534       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8535       cat >> confdefs.h <<EOF
8536 #define ${ac_tr_func} 1
8537 EOF
8538
8539     fi
8540   fi
8541
8542   
8543   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
8544 echo "configure:8545: checking for __builtin_fabsf declaration" >&5
8545   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
8546     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
8547   echo $ac_n "(cached) $ac_c" 1>&6
8548 else
8549   
8550       
8551       ac_ext=C
8552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8553 ac_cpp='$CXXCPP $CPPFLAGS'
8554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8556 cross_compiling=$ac_cv_prog_cxx_cross
8557
8558       cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 #include <math.h>
8562 int main() {
8563  __builtin_fabsf(0);
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   glibcpp_cv_func___builtin_fabsf_use=yes
8569 else
8570   echo "configure: failed program was:" >&5
8571   cat conftest.$ac_ext >&5
8572   rm -rf conftest*
8573   glibcpp_cv_func___builtin_fabsf_use=no
8574 fi
8575 rm -f conftest*
8576       ac_ext=c
8577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8578 ac_cpp='$CPP $CPPFLAGS'
8579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8581 cross_compiling=$ac_cv_prog_cc_cross
8582
8583     
8584 fi
8585
8586   fi
8587   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
8588   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
8589     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
8590 echo "configure:8591: checking for __builtin_fabsf linkage" >&5
8591     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
8592       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
8593   echo $ac_n "(cached) $ac_c" 1>&6
8594 else
8595   
8596         cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8599 #include <math.h>
8600 int main() {
8601  __builtin_fabsf(0);
8602 ; return 0; }
8603 EOF
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8605   rm -rf conftest*
8606   glibcpp_cv_func___builtin_fabsf_link=yes
8607 else
8608   echo "configure: failed program was:" >&5
8609   cat conftest.$ac_ext >&5
8610   rm -rf conftest*
8611   glibcpp_cv_func___builtin_fabsf_link=no
8612 fi
8613 rm -f conftest*
8614       
8615 fi
8616
8617     fi
8618     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
8619     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
8620       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8621       cat >> confdefs.h <<EOF
8622 #define ${ac_tr_func} 1
8623 EOF
8624
8625     fi
8626   fi
8627
8628   
8629   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
8630 echo "configure:8631: checking for __builtin_fabs declaration" >&5
8631   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
8632     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
8633   echo $ac_n "(cached) $ac_c" 1>&6
8634 else
8635   
8636       
8637       ac_ext=C
8638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8639 ac_cpp='$CXXCPP $CPPFLAGS'
8640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8642 cross_compiling=$ac_cv_prog_cxx_cross
8643
8644       cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 #include <math.h>
8648 int main() {
8649  __builtin_fabs(0);
8650 ; return 0; }
8651 EOF
8652 if { (eval echo configure:8653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8653   rm -rf conftest*
8654   glibcpp_cv_func___builtin_fabs_use=yes
8655 else
8656   echo "configure: failed program was:" >&5
8657   cat conftest.$ac_ext >&5
8658   rm -rf conftest*
8659   glibcpp_cv_func___builtin_fabs_use=no
8660 fi
8661 rm -f conftest*
8662       ac_ext=c
8663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8667 cross_compiling=$ac_cv_prog_cc_cross
8668
8669     
8670 fi
8671
8672   fi
8673   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8674   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8675     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8676 echo "configure:8677: checking for __builtin_fabs linkage" >&5
8677     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8678       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8679   echo $ac_n "(cached) $ac_c" 1>&6
8680 else
8681   
8682         cat > conftest.$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8685 #include <math.h>
8686 int main() {
8687  __builtin_fabs(0);
8688 ; return 0; }
8689 EOF
8690 if { (eval echo configure:8691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8691   rm -rf conftest*
8692   glibcpp_cv_func___builtin_fabs_link=yes
8693 else
8694   echo "configure: failed program was:" >&5
8695   cat conftest.$ac_ext >&5
8696   rm -rf conftest*
8697   glibcpp_cv_func___builtin_fabs_link=no
8698 fi
8699 rm -f conftest*
8700       
8701 fi
8702
8703     fi
8704     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8705     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8706       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8707       cat >> confdefs.h <<EOF
8708 #define ${ac_tr_func} 1
8709 EOF
8710
8711     fi
8712   fi
8713
8714   
8715   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8716 echo "configure:8717: checking for __builtin_fabsl declaration" >&5
8717   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8718     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8719   echo $ac_n "(cached) $ac_c" 1>&6
8720 else
8721   
8722       
8723       ac_ext=C
8724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8725 ac_cpp='$CXXCPP $CPPFLAGS'
8726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8728 cross_compiling=$ac_cv_prog_cxx_cross
8729
8730       cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 #include <math.h>
8734 int main() {
8735  __builtin_fabsl(0);
8736 ; return 0; }
8737 EOF
8738 if { (eval echo configure:8739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8739   rm -rf conftest*
8740   glibcpp_cv_func___builtin_fabsl_use=yes
8741 else
8742   echo "configure: failed program was:" >&5
8743   cat conftest.$ac_ext >&5
8744   rm -rf conftest*
8745   glibcpp_cv_func___builtin_fabsl_use=no
8746 fi
8747 rm -f conftest*
8748       ac_ext=c
8749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8750 ac_cpp='$CPP $CPPFLAGS'
8751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8753 cross_compiling=$ac_cv_prog_cc_cross
8754
8755     
8756 fi
8757
8758   fi
8759   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8760   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8761     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8762 echo "configure:8763: checking for __builtin_fabsl linkage" >&5
8763     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8764       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8765   echo $ac_n "(cached) $ac_c" 1>&6
8766 else
8767   
8768         cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8771 #include <math.h>
8772 int main() {
8773  __builtin_fabsl(0);
8774 ; return 0; }
8775 EOF
8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8777   rm -rf conftest*
8778   glibcpp_cv_func___builtin_fabsl_link=yes
8779 else
8780   echo "configure: failed program was:" >&5
8781   cat conftest.$ac_ext >&5
8782   rm -rf conftest*
8783   glibcpp_cv_func___builtin_fabsl_link=no
8784 fi
8785 rm -f conftest*
8786       
8787 fi
8788
8789     fi
8790     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8791     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8792       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8793       cat >> confdefs.h <<EOF
8794 #define ${ac_tr_func} 1
8795 EOF
8796
8797     fi
8798   fi
8799
8800   
8801   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8802 echo "configure:8803: checking for __builtin_labs declaration" >&5
8803   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8804     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8805   echo $ac_n "(cached) $ac_c" 1>&6
8806 else
8807   
8808       
8809       ac_ext=C
8810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8811 ac_cpp='$CXXCPP $CPPFLAGS'
8812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8814 cross_compiling=$ac_cv_prog_cxx_cross
8815
8816       cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8819 #include <math.h>
8820 int main() {
8821  __builtin_labs(0);
8822 ; return 0; }
8823 EOF
8824 if { (eval echo configure:8825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8825   rm -rf conftest*
8826   glibcpp_cv_func___builtin_labs_use=yes
8827 else
8828   echo "configure: failed program was:" >&5
8829   cat conftest.$ac_ext >&5
8830   rm -rf conftest*
8831   glibcpp_cv_func___builtin_labs_use=no
8832 fi
8833 rm -f conftest*
8834       ac_ext=c
8835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8836 ac_cpp='$CPP $CPPFLAGS'
8837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8839 cross_compiling=$ac_cv_prog_cc_cross
8840
8841     
8842 fi
8843
8844   fi
8845   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8846   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8847     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8848 echo "configure:8849: checking for __builtin_labs linkage" >&5
8849     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8850       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8851   echo $ac_n "(cached) $ac_c" 1>&6
8852 else
8853   
8854         cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8857 #include <math.h>
8858 int main() {
8859  __builtin_labs(0);
8860 ; return 0; }
8861 EOF
8862 if { (eval echo configure:8863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8863   rm -rf conftest*
8864   glibcpp_cv_func___builtin_labs_link=yes
8865 else
8866   echo "configure: failed program was:" >&5
8867   cat conftest.$ac_ext >&5
8868   rm -rf conftest*
8869   glibcpp_cv_func___builtin_labs_link=no
8870 fi
8871 rm -f conftest*
8872       
8873 fi
8874
8875     fi
8876     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8877     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8878       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8879       cat >> confdefs.h <<EOF
8880 #define ${ac_tr_func} 1
8881 EOF
8882
8883     fi
8884   fi
8885
8886
8887   
8888   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8889 echo "configure:8890: checking for __builtin_sqrtf declaration" >&5
8890   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8891     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8892   echo $ac_n "(cached) $ac_c" 1>&6
8893 else
8894   
8895       
8896       ac_ext=C
8897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8898 ac_cpp='$CXXCPP $CPPFLAGS'
8899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8901 cross_compiling=$ac_cv_prog_cxx_cross
8902
8903       cat > conftest.$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8906 #include <math.h>
8907 int main() {
8908  __builtin_sqrtf(0);
8909 ; return 0; }
8910 EOF
8911 if { (eval echo configure:8912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8912   rm -rf conftest*
8913   glibcpp_cv_func___builtin_sqrtf_use=yes
8914 else
8915   echo "configure: failed program was:" >&5
8916   cat conftest.$ac_ext >&5
8917   rm -rf conftest*
8918   glibcpp_cv_func___builtin_sqrtf_use=no
8919 fi
8920 rm -f conftest*
8921       ac_ext=c
8922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8926 cross_compiling=$ac_cv_prog_cc_cross
8927
8928     
8929 fi
8930
8931   fi
8932   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8933   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8934     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8935 echo "configure:8936: checking for __builtin_sqrtf linkage" >&5
8936     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8937       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8938   echo $ac_n "(cached) $ac_c" 1>&6
8939 else
8940   
8941         cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 #include <math.h>
8945 int main() {
8946  __builtin_sqrtf(0);
8947 ; return 0; }
8948 EOF
8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8950   rm -rf conftest*
8951   glibcpp_cv_func___builtin_sqrtf_link=yes
8952 else
8953   echo "configure: failed program was:" >&5
8954   cat conftest.$ac_ext >&5
8955   rm -rf conftest*
8956   glibcpp_cv_func___builtin_sqrtf_link=no
8957 fi
8958 rm -f conftest*
8959       
8960 fi
8961
8962     fi
8963     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8964     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8965       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8966       cat >> confdefs.h <<EOF
8967 #define ${ac_tr_func} 1
8968 EOF
8969
8970     fi
8971   fi
8972
8973   
8974   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8975 echo "configure:8976: checking for __builtin_sqrt declaration" >&5
8976   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8977     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8978   echo $ac_n "(cached) $ac_c" 1>&6
8979 else
8980   
8981       
8982       ac_ext=C
8983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8984 ac_cpp='$CXXCPP $CPPFLAGS'
8985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8987 cross_compiling=$ac_cv_prog_cxx_cross
8988
8989       cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include <math.h>
8993 int main() {
8994  __builtin_sqrt(0);
8995 ; return 0; }
8996 EOF
8997 if { (eval echo configure:8998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8998   rm -rf conftest*
8999   glibcpp_cv_func___builtin_sqrt_use=yes
9000 else
9001   echo "configure: failed program was:" >&5
9002   cat conftest.$ac_ext >&5
9003   rm -rf conftest*
9004   glibcpp_cv_func___builtin_sqrt_use=no
9005 fi
9006 rm -f conftest*
9007       ac_ext=c
9008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9009 ac_cpp='$CPP $CPPFLAGS'
9010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9012 cross_compiling=$ac_cv_prog_cc_cross
9013
9014     
9015 fi
9016
9017   fi
9018   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9019   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9020     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9021 echo "configure:9022: checking for __builtin_sqrt linkage" >&5
9022     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9023       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9024   echo $ac_n "(cached) $ac_c" 1>&6
9025 else
9026   
9027         cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure"
9029 #include "confdefs.h"
9030 #include <math.h>
9031 int main() {
9032  __builtin_sqrt(0);
9033 ; return 0; }
9034 EOF
9035 if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036   rm -rf conftest*
9037   glibcpp_cv_func___builtin_sqrt_link=yes
9038 else
9039   echo "configure: failed program was:" >&5
9040   cat conftest.$ac_ext >&5
9041   rm -rf conftest*
9042   glibcpp_cv_func___builtin_sqrt_link=no
9043 fi
9044 rm -f conftest*
9045       
9046 fi
9047
9048     fi
9049     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9050     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9051       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9052       cat >> confdefs.h <<EOF
9053 #define ${ac_tr_func} 1
9054 EOF
9055
9056     fi
9057   fi
9058
9059   
9060   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9061 echo "configure:9062: checking for __builtin_sqrtl declaration" >&5
9062   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9063     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9064   echo $ac_n "(cached) $ac_c" 1>&6
9065 else
9066   
9067       
9068       ac_ext=C
9069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9070 ac_cpp='$CXXCPP $CPPFLAGS'
9071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9073 cross_compiling=$ac_cv_prog_cxx_cross
9074
9075       cat > conftest.$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078 #include <math.h>
9079 int main() {
9080  __builtin_sqrtl(0);
9081 ; return 0; }
9082 EOF
9083 if { (eval echo configure:9084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9084   rm -rf conftest*
9085   glibcpp_cv_func___builtin_sqrtl_use=yes
9086 else
9087   echo "configure: failed program was:" >&5
9088   cat conftest.$ac_ext >&5
9089   rm -rf conftest*
9090   glibcpp_cv_func___builtin_sqrtl_use=no
9091 fi
9092 rm -f conftest*
9093       ac_ext=c
9094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9095 ac_cpp='$CPP $CPPFLAGS'
9096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9098 cross_compiling=$ac_cv_prog_cc_cross
9099
9100     
9101 fi
9102
9103   fi
9104   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
9105   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
9106     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
9107 echo "configure:9108: checking for __builtin_sqrtl linkage" >&5
9108     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
9109       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
9110   echo $ac_n "(cached) $ac_c" 1>&6
9111 else
9112   
9113         cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9116 #include <math.h>
9117 int main() {
9118  __builtin_sqrtl(0);
9119 ; return 0; }
9120 EOF
9121 if { (eval echo configure:9122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9122   rm -rf conftest*
9123   glibcpp_cv_func___builtin_sqrtl_link=yes
9124 else
9125   echo "configure: failed program was:" >&5
9126   cat conftest.$ac_ext >&5
9127   rm -rf conftest*
9128   glibcpp_cv_func___builtin_sqrtl_link=no
9129 fi
9130 rm -f conftest*
9131       
9132 fi
9133
9134     fi
9135     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
9136     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
9137       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9138       cat >> confdefs.h <<EOF
9139 #define ${ac_tr_func} 1
9140 EOF
9141
9142     fi
9143   fi
9144
9145
9146   
9147   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
9148 echo "configure:9149: checking for __builtin_sinf declaration" >&5
9149   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
9150     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
9151   echo $ac_n "(cached) $ac_c" 1>&6
9152 else
9153   
9154       
9155       ac_ext=C
9156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9157 ac_cpp='$CXXCPP $CPPFLAGS'
9158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9160 cross_compiling=$ac_cv_prog_cxx_cross
9161
9162       cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 #include <math.h>
9166 int main() {
9167  __builtin_sinf(0);
9168 ; return 0; }
9169 EOF
9170 if { (eval echo configure:9171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9171   rm -rf conftest*
9172   glibcpp_cv_func___builtin_sinf_use=yes
9173 else
9174   echo "configure: failed program was:" >&5
9175   cat conftest.$ac_ext >&5
9176   rm -rf conftest*
9177   glibcpp_cv_func___builtin_sinf_use=no
9178 fi
9179 rm -f conftest*
9180       ac_ext=c
9181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9182 ac_cpp='$CPP $CPPFLAGS'
9183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9185 cross_compiling=$ac_cv_prog_cc_cross
9186
9187     
9188 fi
9189
9190   fi
9191   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
9192   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
9193     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
9194 echo "configure:9195: checking for __builtin_sinf linkage" >&5
9195     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
9196       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
9197   echo $ac_n "(cached) $ac_c" 1>&6
9198 else
9199   
9200         cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9203 #include <math.h>
9204 int main() {
9205  __builtin_sinf(0);
9206 ; return 0; }
9207 EOF
9208 if { (eval echo configure:9209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9209   rm -rf conftest*
9210   glibcpp_cv_func___builtin_sinf_link=yes
9211 else
9212   echo "configure: failed program was:" >&5
9213   cat conftest.$ac_ext >&5
9214   rm -rf conftest*
9215   glibcpp_cv_func___builtin_sinf_link=no
9216 fi
9217 rm -f conftest*
9218       
9219 fi
9220
9221     fi
9222     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
9223     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
9224       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9225       cat >> confdefs.h <<EOF
9226 #define ${ac_tr_func} 1
9227 EOF
9228
9229     fi
9230   fi
9231
9232   
9233   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
9234 echo "configure:9235: checking for __builtin_sin declaration" >&5
9235   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
9236     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
9237   echo $ac_n "(cached) $ac_c" 1>&6
9238 else
9239   
9240       
9241       ac_ext=C
9242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9243 ac_cpp='$CXXCPP $CPPFLAGS'
9244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9246 cross_compiling=$ac_cv_prog_cxx_cross
9247
9248       cat > conftest.$ac_ext <<EOF
9249 #line 9250 "configure"
9250 #include "confdefs.h"
9251 #include <math.h>
9252 int main() {
9253  __builtin_sin(0);
9254 ; return 0; }
9255 EOF
9256 if { (eval echo configure:9257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9257   rm -rf conftest*
9258   glibcpp_cv_func___builtin_sin_use=yes
9259 else
9260   echo "configure: failed program was:" >&5
9261   cat conftest.$ac_ext >&5
9262   rm -rf conftest*
9263   glibcpp_cv_func___builtin_sin_use=no
9264 fi
9265 rm -f conftest*
9266       ac_ext=c
9267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9268 ac_cpp='$CPP $CPPFLAGS'
9269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9271 cross_compiling=$ac_cv_prog_cc_cross
9272
9273     
9274 fi
9275
9276   fi
9277   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
9278   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
9279     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
9280 echo "configure:9281: checking for __builtin_sin linkage" >&5
9281     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
9282       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
9283   echo $ac_n "(cached) $ac_c" 1>&6
9284 else
9285   
9286         cat > conftest.$ac_ext <<EOF
9287 #line 9288 "configure"
9288 #include "confdefs.h"
9289 #include <math.h>
9290 int main() {
9291  __builtin_sin(0);
9292 ; return 0; }
9293 EOF
9294 if { (eval echo configure:9295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9295   rm -rf conftest*
9296   glibcpp_cv_func___builtin_sin_link=yes
9297 else
9298   echo "configure: failed program was:" >&5
9299   cat conftest.$ac_ext >&5
9300   rm -rf conftest*
9301   glibcpp_cv_func___builtin_sin_link=no
9302 fi
9303 rm -f conftest*
9304       
9305 fi
9306
9307     fi
9308     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
9309     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
9310       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9311       cat >> confdefs.h <<EOF
9312 #define ${ac_tr_func} 1
9313 EOF
9314
9315     fi
9316   fi
9317
9318   
9319   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
9320 echo "configure:9321: checking for __builtin_sinl declaration" >&5
9321   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
9322     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
9323   echo $ac_n "(cached) $ac_c" 1>&6
9324 else
9325   
9326       
9327       ac_ext=C
9328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9329 ac_cpp='$CXXCPP $CPPFLAGS'
9330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9332 cross_compiling=$ac_cv_prog_cxx_cross
9333
9334       cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9337 #include <math.h>
9338 int main() {
9339  __builtin_sinl(0);
9340 ; return 0; }
9341 EOF
9342 if { (eval echo configure:9343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9343   rm -rf conftest*
9344   glibcpp_cv_func___builtin_sinl_use=yes
9345 else
9346   echo "configure: failed program was:" >&5
9347   cat conftest.$ac_ext >&5
9348   rm -rf conftest*
9349   glibcpp_cv_func___builtin_sinl_use=no
9350 fi
9351 rm -f conftest*
9352       ac_ext=c
9353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9354 ac_cpp='$CPP $CPPFLAGS'
9355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9357 cross_compiling=$ac_cv_prog_cc_cross
9358
9359     
9360 fi
9361
9362   fi
9363   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
9364   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
9365     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
9366 echo "configure:9367: checking for __builtin_sinl linkage" >&5
9367     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
9368       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
9369   echo $ac_n "(cached) $ac_c" 1>&6
9370 else
9371   
9372         cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9375 #include <math.h>
9376 int main() {
9377  __builtin_sinl(0);
9378 ; return 0; }
9379 EOF
9380 if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9381   rm -rf conftest*
9382   glibcpp_cv_func___builtin_sinl_link=yes
9383 else
9384   echo "configure: failed program was:" >&5
9385   cat conftest.$ac_ext >&5
9386   rm -rf conftest*
9387   glibcpp_cv_func___builtin_sinl_link=no
9388 fi
9389 rm -f conftest*
9390       
9391 fi
9392
9393     fi
9394     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
9395     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
9396       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9397       cat >> confdefs.h <<EOF
9398 #define ${ac_tr_func} 1
9399 EOF
9400
9401     fi
9402   fi
9403
9404
9405   
9406   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
9407 echo "configure:9408: checking for __builtin_cosf declaration" >&5
9408   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
9409     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
9410   echo $ac_n "(cached) $ac_c" 1>&6
9411 else
9412   
9413       
9414       ac_ext=C
9415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9416 ac_cpp='$CXXCPP $CPPFLAGS'
9417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9419 cross_compiling=$ac_cv_prog_cxx_cross
9420
9421       cat > conftest.$ac_ext <<EOF
9422 #line 9423 "configure"
9423 #include "confdefs.h"
9424 #include <math.h>
9425 int main() {
9426  __builtin_cosf(0);
9427 ; return 0; }
9428 EOF
9429 if { (eval echo configure:9430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9430   rm -rf conftest*
9431   glibcpp_cv_func___builtin_cosf_use=yes
9432 else
9433   echo "configure: failed program was:" >&5
9434   cat conftest.$ac_ext >&5
9435   rm -rf conftest*
9436   glibcpp_cv_func___builtin_cosf_use=no
9437 fi
9438 rm -f conftest*
9439       ac_ext=c
9440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9441 ac_cpp='$CPP $CPPFLAGS'
9442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9444 cross_compiling=$ac_cv_prog_cc_cross
9445
9446     
9447 fi
9448
9449   fi
9450   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
9451   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
9452     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
9453 echo "configure:9454: checking for __builtin_cosf linkage" >&5
9454     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
9455       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
9456   echo $ac_n "(cached) $ac_c" 1>&6
9457 else
9458   
9459         cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 #include <math.h>
9463 int main() {
9464  __builtin_cosf(0);
9465 ; return 0; }
9466 EOF
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9468   rm -rf conftest*
9469   glibcpp_cv_func___builtin_cosf_link=yes
9470 else
9471   echo "configure: failed program was:" >&5
9472   cat conftest.$ac_ext >&5
9473   rm -rf conftest*
9474   glibcpp_cv_func___builtin_cosf_link=no
9475 fi
9476 rm -f conftest*
9477       
9478 fi
9479
9480     fi
9481     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
9482     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
9483       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9484       cat >> confdefs.h <<EOF
9485 #define ${ac_tr_func} 1
9486 EOF
9487
9488     fi
9489   fi
9490
9491   
9492   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
9493 echo "configure:9494: checking for __builtin_cos declaration" >&5
9494   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
9495     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
9496   echo $ac_n "(cached) $ac_c" 1>&6
9497 else
9498   
9499       
9500       ac_ext=C
9501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9502 ac_cpp='$CXXCPP $CPPFLAGS'
9503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9505 cross_compiling=$ac_cv_prog_cxx_cross
9506
9507       cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9510 #include <math.h>
9511 int main() {
9512  __builtin_cos(0);
9513 ; return 0; }
9514 EOF
9515 if { (eval echo configure:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9516   rm -rf conftest*
9517   glibcpp_cv_func___builtin_cos_use=yes
9518 else
9519   echo "configure: failed program was:" >&5
9520   cat conftest.$ac_ext >&5
9521   rm -rf conftest*
9522   glibcpp_cv_func___builtin_cos_use=no
9523 fi
9524 rm -f conftest*
9525       ac_ext=c
9526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9527 ac_cpp='$CPP $CPPFLAGS'
9528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9530 cross_compiling=$ac_cv_prog_cc_cross
9531
9532     
9533 fi
9534
9535   fi
9536   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
9537   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
9538     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
9539 echo "configure:9540: checking for __builtin_cos linkage" >&5
9540     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
9541       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
9542   echo $ac_n "(cached) $ac_c" 1>&6
9543 else
9544   
9545         cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 #include <math.h>
9549 int main() {
9550  __builtin_cos(0);
9551 ; return 0; }
9552 EOF
9553 if { (eval echo configure:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9554   rm -rf conftest*
9555   glibcpp_cv_func___builtin_cos_link=yes
9556 else
9557   echo "configure: failed program was:" >&5
9558   cat conftest.$ac_ext >&5
9559   rm -rf conftest*
9560   glibcpp_cv_func___builtin_cos_link=no
9561 fi
9562 rm -f conftest*
9563       
9564 fi
9565
9566     fi
9567     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
9568     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
9569       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9570       cat >> confdefs.h <<EOF
9571 #define ${ac_tr_func} 1
9572 EOF
9573
9574     fi
9575   fi
9576
9577   
9578   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
9579 echo "configure:9580: checking for __builtin_cosl declaration" >&5
9580   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
9581     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
9582   echo $ac_n "(cached) $ac_c" 1>&6
9583 else
9584   
9585       
9586       ac_ext=C
9587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9588 ac_cpp='$CXXCPP $CPPFLAGS'
9589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9591 cross_compiling=$ac_cv_prog_cxx_cross
9592
9593       cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 #include <math.h>
9597 int main() {
9598  __builtin_cosl(0);
9599 ; return 0; }
9600 EOF
9601 if { (eval echo configure:9602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9602   rm -rf conftest*
9603   glibcpp_cv_func___builtin_cosl_use=yes
9604 else
9605   echo "configure: failed program was:" >&5
9606   cat conftest.$ac_ext >&5
9607   rm -rf conftest*
9608   glibcpp_cv_func___builtin_cosl_use=no
9609 fi
9610 rm -f conftest*
9611       ac_ext=c
9612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9613 ac_cpp='$CPP $CPPFLAGS'
9614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9616 cross_compiling=$ac_cv_prog_cc_cross
9617
9618     
9619 fi
9620
9621   fi
9622   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
9623   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
9624     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
9625 echo "configure:9626: checking for __builtin_cosl linkage" >&5
9626     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
9627       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
9628   echo $ac_n "(cached) $ac_c" 1>&6
9629 else
9630   
9631         cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 #include <math.h>
9635 int main() {
9636  __builtin_cosl(0);
9637 ; return 0; }
9638 EOF
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9640   rm -rf conftest*
9641   glibcpp_cv_func___builtin_cosl_link=yes
9642 else
9643   echo "configure: failed program was:" >&5
9644   cat conftest.$ac_ext >&5
9645   rm -rf conftest*
9646   glibcpp_cv_func___builtin_cosl_link=no
9647 fi
9648 rm -f conftest*
9649       
9650 fi
9651
9652     fi
9653     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
9654     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
9655       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9656       cat >> confdefs.h <<EOF
9657 #define ${ac_tr_func} 1
9658 EOF
9659
9660     fi
9661   fi
9662
9663
9664               dummyvar=no
9665   if test x$dummyvar = x"yes"; then
9666     cat >> confdefs.h <<\EOF
9667 #define HAVE___BUILTIN_ABS 1
9668 EOF
9669
9670     cat >> confdefs.h <<\EOF
9671 #define HAVE___BUILTIN_LABS 1
9672 EOF
9673
9674     cat >> confdefs.h <<\EOF
9675 #define HAVE___BUILTIN_COS 1
9676 EOF
9677
9678     cat >> confdefs.h <<\EOF
9679 #define HAVE___BUILTIN_COSF 1
9680 EOF
9681
9682     cat >> confdefs.h <<\EOF
9683 #define HAVE___BUILTIN_COSL 1
9684 EOF
9685
9686     cat >> confdefs.h <<\EOF
9687 #define HAVE___BUILTIN_FABS 1
9688 EOF
9689
9690     cat >> confdefs.h <<\EOF
9691 #define HAVE___BUILTIN_FABSF 1
9692 EOF
9693
9694     cat >> confdefs.h <<\EOF
9695 #define HAVE___BUILTIN_FABSL 1
9696 EOF
9697
9698     cat >> confdefs.h <<\EOF
9699 #define HAVE___BUILTIN_SIN 1
9700 EOF
9701
9702     cat >> confdefs.h <<\EOF
9703 #define HAVE___BUILTIN_SINF 1
9704 EOF
9705
9706     cat >> confdefs.h <<\EOF
9707 #define HAVE___BUILTIN_SINL 1
9708 EOF
9709
9710     cat >> confdefs.h <<\EOF
9711 #define HAVE___BUILTIN_SQRT 1
9712 EOF
9713
9714     cat >> confdefs.h <<\EOF
9715 #define HAVE___BUILTIN_SQRTF 1
9716 EOF
9717
9718     cat >> confdefs.h <<\EOF
9719 #define HAVE___BUILTIN_SQRTL 1
9720 EOF
9721
9722   fi
9723
9724   
9725   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9726   ac_save_CXXFLAGS="$CXXFLAGS"
9727   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9728
9729     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9730 echo "configure:9731: checking for sin in -lm" >&5
9731 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9733   echo $ac_n "(cached) $ac_c" 1>&6
9734 else
9735   ac_save_LIBS="$LIBS"
9736 LIBS="-lm  $LIBS"
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 /* Override any gcc2 internal prototype to avoid an error.  */
9741 /* We use char because int might match the return type of a gcc2
9742     builtin and then its argument prototype would still apply.  */
9743 char sin();
9744
9745 int main() {
9746 sin()
9747 ; return 0; }
9748 EOF
9749 if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9750   rm -rf conftest*
9751   eval "ac_cv_lib_$ac_lib_var=yes"
9752 else
9753   echo "configure: failed program was:" >&5
9754   cat conftest.$ac_ext >&5
9755   rm -rf conftest*
9756   eval "ac_cv_lib_$ac_lib_var=no"
9757 fi
9758 rm -f conftest*
9759 LIBS="$ac_save_LIBS"
9760
9761 fi
9762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9763   echo "$ac_t""yes" 1>&6
9764   libm="-lm"
9765 else
9766   echo "$ac_t""no" 1>&6
9767 fi
9768
9769   ac_save_LIBS="$LIBS"
9770   LIBS="$LIBS $libm"
9771
9772     
9773   
9774   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9775 echo "configure:9776: checking for isinf declaration" >&5
9776   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9777     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9778   echo $ac_n "(cached) $ac_c" 1>&6
9779 else
9780   
9781       
9782       ac_ext=C
9783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9784 ac_cpp='$CXXCPP $CPPFLAGS'
9785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9787 cross_compiling=$ac_cv_prog_cxx_cross
9788
9789       cat > conftest.$ac_ext <<EOF
9790 #line 9791 "configure"
9791 #include "confdefs.h"
9792 #include <math.h>
9793                       #ifdef HAVE_IEEEFP_H
9794                       #include <ieeefp.h>
9795                       #endif
9796                      
9797 int main() {
9798  isinf(0);
9799 ; return 0; }
9800 EOF
9801 if { (eval echo configure:9802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9802   rm -rf conftest*
9803   glibcpp_cv_func_isinf_use=yes
9804 else
9805   echo "configure: failed program was:" >&5
9806   cat conftest.$ac_ext >&5
9807   rm -rf conftest*
9808   glibcpp_cv_func_isinf_use=no
9809 fi
9810 rm -f conftest*
9811       ac_ext=c
9812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9813 ac_cpp='$CPP $CPPFLAGS'
9814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9816 cross_compiling=$ac_cv_prog_cc_cross
9817
9818     
9819 fi
9820
9821   fi
9822   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9823
9824   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9825     for ac_func in isinf
9826 do
9827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9828 echo "configure:9829: checking for $ac_func" >&5
9829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9830   echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9832   cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 /* System header to define __stub macros and hopefully few prototypes,
9836     which can conflict with char $ac_func(); below.  */
9837 #include <assert.h>
9838 /* Override any gcc2 internal prototype to avoid an error.  */
9839 /* We use char because int might match the return type of a gcc2
9840     builtin and then its argument prototype would still apply.  */
9841 char $ac_func();
9842
9843 int main() {
9844
9845 /* The GNU C library defines this for functions which it implements
9846     to always fail with ENOSYS.  Some functions are actually named
9847     something starting with __ and the normal name is an alias.  */
9848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9849 choke me
9850 #else
9851 $ac_func();
9852 #endif
9853
9854 ; return 0; }
9855 EOF
9856 if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9857   rm -rf conftest*
9858   eval "ac_cv_func_$ac_func=yes"
9859 else
9860   echo "configure: failed program was:" >&5
9861   cat conftest.$ac_ext >&5
9862   rm -rf conftest*
9863   eval "ac_cv_func_$ac_func=no"
9864 fi
9865 rm -f conftest*
9866 fi
9867
9868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9869   echo "$ac_t""yes" 1>&6
9870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9871   cat >> confdefs.h <<EOF
9872 #define $ac_tr_func 1
9873 EOF
9874  
9875 else
9876   echo "$ac_t""no" 1>&6
9877 fi
9878 done
9879     
9880   else
9881     
9882   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9883 echo "configure:9884: checking for _isinf declaration" >&5
9884   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9885     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9886   echo $ac_n "(cached) $ac_c" 1>&6
9887 else
9888   
9889       
9890       ac_ext=C
9891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9892 ac_cpp='$CXXCPP $CPPFLAGS'
9893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9895 cross_compiling=$ac_cv_prog_cxx_cross
9896
9897       cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 #include <math.h>
9901                       #ifdef HAVE_IEEEFP_H
9902                       #include <ieeefp.h>
9903                       #endif
9904                      
9905 int main() {
9906  _isinf(0);
9907 ; return 0; }
9908 EOF
9909 if { (eval echo configure:9910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9910   rm -rf conftest*
9911   glibcpp_cv_func__isinf_use=yes
9912 else
9913   echo "configure: failed program was:" >&5
9914   cat conftest.$ac_ext >&5
9915   rm -rf conftest*
9916   glibcpp_cv_func__isinf_use=no
9917 fi
9918 rm -f conftest*
9919       ac_ext=c
9920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921 ac_cpp='$CPP $CPPFLAGS'
9922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924 cross_compiling=$ac_cv_prog_cc_cross
9925
9926     
9927 fi
9928
9929   fi
9930   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9931
9932     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9933       for ac_func in _isinf
9934 do
9935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9936 echo "configure:9937: checking for $ac_func" >&5
9937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9938   echo $ac_n "(cached) $ac_c" 1>&6
9939 else
9940   cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9943 /* System header to define __stub macros and hopefully few prototypes,
9944     which can conflict with char $ac_func(); below.  */
9945 #include <assert.h>
9946 /* Override any gcc2 internal prototype to avoid an error.  */
9947 /* We use char because int might match the return type of a gcc2
9948     builtin and then its argument prototype would still apply.  */
9949 char $ac_func();
9950
9951 int main() {
9952
9953 /* The GNU C library defines this for functions which it implements
9954     to always fail with ENOSYS.  Some functions are actually named
9955     something starting with __ and the normal name is an alias.  */
9956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9957 choke me
9958 #else
9959 $ac_func();
9960 #endif
9961
9962 ; return 0; }
9963 EOF
9964 if { (eval echo configure:9965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9965   rm -rf conftest*
9966   eval "ac_cv_func_$ac_func=yes"
9967 else
9968   echo "configure: failed program was:" >&5
9969   cat conftest.$ac_ext >&5
9970   rm -rf conftest*
9971   eval "ac_cv_func_$ac_func=no"
9972 fi
9973 rm -f conftest*
9974 fi
9975
9976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9977   echo "$ac_t""yes" 1>&6
9978     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9979   cat >> confdefs.h <<EOF
9980 #define $ac_tr_func 1
9981 EOF
9982  
9983 else
9984   echo "$ac_t""no" 1>&6
9985 fi
9986 done
9987     
9988     fi
9989   fi
9990
9991   
9992   
9993   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
9994 echo "configure:9995: checking for isnan declaration" >&5
9995   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
9996     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
9997   echo $ac_n "(cached) $ac_c" 1>&6
9998 else
9999   
10000       
10001       ac_ext=C
10002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10003 ac_cpp='$CXXCPP $CPPFLAGS'
10004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10006 cross_compiling=$ac_cv_prog_cxx_cross
10007
10008       cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 #include <math.h>
10012                       #ifdef HAVE_IEEEFP_H
10013                       #include <ieeefp.h>
10014                       #endif
10015                      
10016 int main() {
10017  isnan(0);
10018 ; return 0; }
10019 EOF
10020 if { (eval echo configure:10021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10021   rm -rf conftest*
10022   glibcpp_cv_func_isnan_use=yes
10023 else
10024   echo "configure: failed program was:" >&5
10025   cat conftest.$ac_ext >&5
10026   rm -rf conftest*
10027   glibcpp_cv_func_isnan_use=no
10028 fi
10029 rm -f conftest*
10030       ac_ext=c
10031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10032 ac_cpp='$CPP $CPPFLAGS'
10033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10035 cross_compiling=$ac_cv_prog_cc_cross
10036
10037     
10038 fi
10039
10040   fi
10041   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10042
10043   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10044     for ac_func in isnan
10045 do
10046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10047 echo "configure:10048: checking for $ac_func" >&5
10048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10049   echo $ac_n "(cached) $ac_c" 1>&6
10050 else
10051   cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10054 /* System header to define __stub macros and hopefully few prototypes,
10055     which can conflict with char $ac_func(); below.  */
10056 #include <assert.h>
10057 /* Override any gcc2 internal prototype to avoid an error.  */
10058 /* We use char because int might match the return type of a gcc2
10059     builtin and then its argument prototype would still apply.  */
10060 char $ac_func();
10061
10062 int main() {
10063
10064 /* The GNU C library defines this for functions which it implements
10065     to always fail with ENOSYS.  Some functions are actually named
10066     something starting with __ and the normal name is an alias.  */
10067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10068 choke me
10069 #else
10070 $ac_func();
10071 #endif
10072
10073 ; return 0; }
10074 EOF
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076   rm -rf conftest*
10077   eval "ac_cv_func_$ac_func=yes"
10078 else
10079   echo "configure: failed program was:" >&5
10080   cat conftest.$ac_ext >&5
10081   rm -rf conftest*
10082   eval "ac_cv_func_$ac_func=no"
10083 fi
10084 rm -f conftest*
10085 fi
10086
10087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10088   echo "$ac_t""yes" 1>&6
10089     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10090   cat >> confdefs.h <<EOF
10091 #define $ac_tr_func 1
10092 EOF
10093  
10094 else
10095   echo "$ac_t""no" 1>&6
10096 fi
10097 done
10098     
10099   else
10100     
10101   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
10102 echo "configure:10103: checking for _isnan declaration" >&5
10103   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
10104     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
10105   echo $ac_n "(cached) $ac_c" 1>&6
10106 else
10107   
10108       
10109       ac_ext=C
10110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10111 ac_cpp='$CXXCPP $CPPFLAGS'
10112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10114 cross_compiling=$ac_cv_prog_cxx_cross
10115
10116       cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 #include <math.h>
10120                       #ifdef HAVE_IEEEFP_H
10121                       #include <ieeefp.h>
10122                       #endif
10123                      
10124 int main() {
10125  _isnan(0);
10126 ; return 0; }
10127 EOF
10128 if { (eval echo configure:10129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10129   rm -rf conftest*
10130   glibcpp_cv_func__isnan_use=yes
10131 else
10132   echo "configure: failed program was:" >&5
10133   cat conftest.$ac_ext >&5
10134   rm -rf conftest*
10135   glibcpp_cv_func__isnan_use=no
10136 fi
10137 rm -f conftest*
10138       ac_ext=c
10139 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10140 ac_cpp='$CPP $CPPFLAGS'
10141 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10142 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10143 cross_compiling=$ac_cv_prog_cc_cross
10144
10145     
10146 fi
10147
10148   fi
10149   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
10150
10151     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
10152       for ac_func in _isnan
10153 do
10154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10155 echo "configure:10156: checking for $ac_func" >&5
10156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10157   echo $ac_n "(cached) $ac_c" 1>&6
10158 else
10159   cat > conftest.$ac_ext <<EOF
10160 #line 10161 "configure"
10161 #include "confdefs.h"
10162 /* System header to define __stub macros and hopefully few prototypes,
10163     which can conflict with char $ac_func(); below.  */
10164 #include <assert.h>
10165 /* Override any gcc2 internal prototype to avoid an error.  */
10166 /* We use char because int might match the return type of a gcc2
10167     builtin and then its argument prototype would still apply.  */
10168 char $ac_func();
10169
10170 int main() {
10171
10172 /* The GNU C library defines this for functions which it implements
10173     to always fail with ENOSYS.  Some functions are actually named
10174     something starting with __ and the normal name is an alias.  */
10175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10176 choke me
10177 #else
10178 $ac_func();
10179 #endif
10180
10181 ; return 0; }
10182 EOF
10183 if { (eval echo configure:10184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10184   rm -rf conftest*
10185   eval "ac_cv_func_$ac_func=yes"
10186 else
10187   echo "configure: failed program was:" >&5
10188   cat conftest.$ac_ext >&5
10189   rm -rf conftest*
10190   eval "ac_cv_func_$ac_func=no"
10191 fi
10192 rm -f conftest*
10193 fi
10194
10195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10196   echo "$ac_t""yes" 1>&6
10197     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10198   cat >> confdefs.h <<EOF
10199 #define $ac_tr_func 1
10200 EOF
10201  
10202 else
10203   echo "$ac_t""no" 1>&6
10204 fi
10205 done
10206     
10207     fi
10208   fi
10209
10210   
10211   
10212   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
10213 echo "configure:10214: checking for finite declaration" >&5
10214   if test x${glibcpp_cv_func_finite_use+set} != xset; then
10215     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
10216   echo $ac_n "(cached) $ac_c" 1>&6
10217 else
10218   
10219       
10220       ac_ext=C
10221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10222 ac_cpp='$CXXCPP $CPPFLAGS'
10223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10225 cross_compiling=$ac_cv_prog_cxx_cross
10226
10227       cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230 #include <math.h>
10231                       #ifdef HAVE_IEEEFP_H
10232                       #include <ieeefp.h>
10233                       #endif
10234                      
10235 int main() {
10236  finite(0);
10237 ; return 0; }
10238 EOF
10239 if { (eval echo configure:10240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10240   rm -rf conftest*
10241   glibcpp_cv_func_finite_use=yes
10242 else
10243   echo "configure: failed program was:" >&5
10244   cat conftest.$ac_ext >&5
10245   rm -rf conftest*
10246   glibcpp_cv_func_finite_use=no
10247 fi
10248 rm -f conftest*
10249       ac_ext=c
10250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10251 ac_cpp='$CPP $CPPFLAGS'
10252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10254 cross_compiling=$ac_cv_prog_cc_cross
10255
10256     
10257 fi
10258
10259   fi
10260   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
10261
10262   if test x$glibcpp_cv_func_finite_use = x"yes"; then
10263     for ac_func in finite
10264 do
10265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10266 echo "configure:10267: checking for $ac_func" >&5
10267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10268   echo $ac_n "(cached) $ac_c" 1>&6
10269 else
10270   cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 /* System header to define __stub macros and hopefully few prototypes,
10274     which can conflict with char $ac_func(); below.  */
10275 #include <assert.h>
10276 /* Override any gcc2 internal prototype to avoid an error.  */
10277 /* We use char because int might match the return type of a gcc2
10278     builtin and then its argument prototype would still apply.  */
10279 char $ac_func();
10280
10281 int main() {
10282
10283 /* The GNU C library defines this for functions which it implements
10284     to always fail with ENOSYS.  Some functions are actually named
10285     something starting with __ and the normal name is an alias.  */
10286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10287 choke me
10288 #else
10289 $ac_func();
10290 #endif
10291
10292 ; return 0; }
10293 EOF
10294 if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10295   rm -rf conftest*
10296   eval "ac_cv_func_$ac_func=yes"
10297 else
10298   echo "configure: failed program was:" >&5
10299   cat conftest.$ac_ext >&5
10300   rm -rf conftest*
10301   eval "ac_cv_func_$ac_func=no"
10302 fi
10303 rm -f conftest*
10304 fi
10305
10306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10307   echo "$ac_t""yes" 1>&6
10308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10309   cat >> confdefs.h <<EOF
10310 #define $ac_tr_func 1
10311 EOF
10312  
10313 else
10314   echo "$ac_t""no" 1>&6
10315 fi
10316 done
10317     
10318   else
10319     
10320   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
10321 echo "configure:10322: checking for _finite declaration" >&5
10322   if test x${glibcpp_cv_func__finite_use+set} != xset; then
10323     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
10324   echo $ac_n "(cached) $ac_c" 1>&6
10325 else
10326   
10327       
10328       ac_ext=C
10329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10330 ac_cpp='$CXXCPP $CPPFLAGS'
10331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10333 cross_compiling=$ac_cv_prog_cxx_cross
10334
10335       cat > conftest.$ac_ext <<EOF
10336 #line 10337 "configure"
10337 #include "confdefs.h"
10338 #include <math.h>
10339                       #ifdef HAVE_IEEEFP_H
10340                       #include <ieeefp.h>
10341                       #endif
10342                      
10343 int main() {
10344  _finite(0);
10345 ; return 0; }
10346 EOF
10347 if { (eval echo configure:10348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10348   rm -rf conftest*
10349   glibcpp_cv_func__finite_use=yes
10350 else
10351   echo "configure: failed program was:" >&5
10352   cat conftest.$ac_ext >&5
10353   rm -rf conftest*
10354   glibcpp_cv_func__finite_use=no
10355 fi
10356 rm -f conftest*
10357       ac_ext=c
10358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10359 ac_cpp='$CPP $CPPFLAGS'
10360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10362 cross_compiling=$ac_cv_prog_cc_cross
10363
10364     
10365 fi
10366
10367   fi
10368   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
10369
10370     if test x$glibcpp_cv_func__finite_use = x"yes"; then
10371       for ac_func in _finite
10372 do
10373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10374 echo "configure:10375: checking for $ac_func" >&5
10375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10376   echo $ac_n "(cached) $ac_c" 1>&6
10377 else
10378   cat > conftest.$ac_ext <<EOF
10379 #line 10380 "configure"
10380 #include "confdefs.h"
10381 /* System header to define __stub macros and hopefully few prototypes,
10382     which can conflict with char $ac_func(); below.  */
10383 #include <assert.h>
10384 /* Override any gcc2 internal prototype to avoid an error.  */
10385 /* We use char because int might match the return type of a gcc2
10386     builtin and then its argument prototype would still apply.  */
10387 char $ac_func();
10388
10389 int main() {
10390
10391 /* The GNU C library defines this for functions which it implements
10392     to always fail with ENOSYS.  Some functions are actually named
10393     something starting with __ and the normal name is an alias.  */
10394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10395 choke me
10396 #else
10397 $ac_func();
10398 #endif
10399
10400 ; return 0; }
10401 EOF
10402 if { (eval echo configure:10403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10403   rm -rf conftest*
10404   eval "ac_cv_func_$ac_func=yes"
10405 else
10406   echo "configure: failed program was:" >&5
10407   cat conftest.$ac_ext >&5
10408   rm -rf conftest*
10409   eval "ac_cv_func_$ac_func=no"
10410 fi
10411 rm -f conftest*
10412 fi
10413
10414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10415   echo "$ac_t""yes" 1>&6
10416     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10417   cat >> confdefs.h <<EOF
10418 #define $ac_tr_func 1
10419 EOF
10420  
10421 else
10422   echo "$ac_t""no" 1>&6
10423 fi
10424 done
10425     
10426     fi
10427   fi
10428
10429   
10430   
10431   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
10432 echo "configure:10433: checking for copysign declaration" >&5
10433   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
10434     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
10435   echo $ac_n "(cached) $ac_c" 1>&6
10436 else
10437   
10438       
10439       ac_ext=C
10440 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10441 ac_cpp='$CXXCPP $CPPFLAGS'
10442 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10443 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10444 cross_compiling=$ac_cv_prog_cxx_cross
10445
10446       cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10449 #include <math.h>
10450 int main() {
10451  copysign(0, 0);
10452 ; return 0; }
10453 EOF
10454 if { (eval echo configure:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10455   rm -rf conftest*
10456   glibcpp_cv_func_copysign_use=yes
10457 else
10458   echo "configure: failed program was:" >&5
10459   cat conftest.$ac_ext >&5
10460   rm -rf conftest*
10461   glibcpp_cv_func_copysign_use=no
10462 fi
10463 rm -f conftest*
10464       ac_ext=c
10465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10466 ac_cpp='$CPP $CPPFLAGS'
10467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10469 cross_compiling=$ac_cv_prog_cc_cross
10470
10471     
10472 fi
10473
10474   fi
10475   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
10476
10477   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
10478     for ac_func in copysign
10479 do
10480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10481 echo "configure:10482: checking for $ac_func" >&5
10482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10483   echo $ac_n "(cached) $ac_c" 1>&6
10484 else
10485   cat > conftest.$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10488 /* System header to define __stub macros and hopefully few prototypes,
10489     which can conflict with char $ac_func(); below.  */
10490 #include <assert.h>
10491 /* Override any gcc2 internal prototype to avoid an error.  */
10492 /* We use char because int might match the return type of a gcc2
10493     builtin and then its argument prototype would still apply.  */
10494 char $ac_func();
10495
10496 int main() {
10497
10498 /* The GNU C library defines this for functions which it implements
10499     to always fail with ENOSYS.  Some functions are actually named
10500     something starting with __ and the normal name is an alias.  */
10501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10502 choke me
10503 #else
10504 $ac_func();
10505 #endif
10506
10507 ; return 0; }
10508 EOF
10509 if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10510   rm -rf conftest*
10511   eval "ac_cv_func_$ac_func=yes"
10512 else
10513   echo "configure: failed program was:" >&5
10514   cat conftest.$ac_ext >&5
10515   rm -rf conftest*
10516   eval "ac_cv_func_$ac_func=no"
10517 fi
10518 rm -f conftest*
10519 fi
10520
10521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10522   echo "$ac_t""yes" 1>&6
10523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10524   cat >> confdefs.h <<EOF
10525 #define $ac_tr_func 1
10526 EOF
10527  
10528 else
10529   echo "$ac_t""no" 1>&6
10530 fi
10531 done
10532     
10533   else
10534     
10535   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
10536 echo "configure:10537: checking for _copysign declaration" >&5
10537   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
10538     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
10539   echo $ac_n "(cached) $ac_c" 1>&6
10540 else
10541   
10542       
10543       ac_ext=C
10544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10545 ac_cpp='$CXXCPP $CPPFLAGS'
10546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10548 cross_compiling=$ac_cv_prog_cxx_cross
10549
10550       cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <math.h>
10554 int main() {
10555  _copysign(0, 0);
10556 ; return 0; }
10557 EOF
10558 if { (eval echo configure:10559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10559   rm -rf conftest*
10560   glibcpp_cv_func__copysign_use=yes
10561 else
10562   echo "configure: failed program was:" >&5
10563   cat conftest.$ac_ext >&5
10564   rm -rf conftest*
10565   glibcpp_cv_func__copysign_use=no
10566 fi
10567 rm -f conftest*
10568       ac_ext=c
10569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10570 ac_cpp='$CPP $CPPFLAGS'
10571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10573 cross_compiling=$ac_cv_prog_cc_cross
10574
10575     
10576 fi
10577
10578   fi
10579   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
10580
10581     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
10582       for ac_func in _copysign
10583 do
10584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10585 echo "configure:10586: checking for $ac_func" >&5
10586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10587   echo $ac_n "(cached) $ac_c" 1>&6
10588 else
10589   cat > conftest.$ac_ext <<EOF
10590 #line 10591 "configure"
10591 #include "confdefs.h"
10592 /* System header to define __stub macros and hopefully few prototypes,
10593     which can conflict with char $ac_func(); below.  */
10594 #include <assert.h>
10595 /* Override any gcc2 internal prototype to avoid an error.  */
10596 /* We use char because int might match the return type of a gcc2
10597     builtin and then its argument prototype would still apply.  */
10598 char $ac_func();
10599
10600 int main() {
10601
10602 /* The GNU C library defines this for functions which it implements
10603     to always fail with ENOSYS.  Some functions are actually named
10604     something starting with __ and the normal name is an alias.  */
10605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10606 choke me
10607 #else
10608 $ac_func();
10609 #endif
10610
10611 ; return 0; }
10612 EOF
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614   rm -rf conftest*
10615   eval "ac_cv_func_$ac_func=yes"
10616 else
10617   echo "configure: failed program was:" >&5
10618   cat conftest.$ac_ext >&5
10619   rm -rf conftest*
10620   eval "ac_cv_func_$ac_func=no"
10621 fi
10622 rm -f conftest*
10623 fi
10624
10625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10626   echo "$ac_t""yes" 1>&6
10627     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10628   cat >> confdefs.h <<EOF
10629 #define $ac_tr_func 1
10630 EOF
10631  
10632 else
10633   echo "$ac_t""no" 1>&6
10634 fi
10635 done
10636     
10637     fi
10638   fi
10639
10640   
10641   
10642   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
10643 echo "configure:10644: checking for sincos declaration" >&5
10644   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
10645     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
10646   echo $ac_n "(cached) $ac_c" 1>&6
10647 else
10648   
10649       
10650       ac_ext=C
10651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10652 ac_cpp='$CXXCPP $CPPFLAGS'
10653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10655 cross_compiling=$ac_cv_prog_cxx_cross
10656
10657       cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include <math.h>
10661 int main() {
10662  sincos(0, 0, 0);
10663 ; return 0; }
10664 EOF
10665 if { (eval echo configure:10666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10666   rm -rf conftest*
10667   glibcpp_cv_func_sincos_use=yes
10668 else
10669   echo "configure: failed program was:" >&5
10670   cat conftest.$ac_ext >&5
10671   rm -rf conftest*
10672   glibcpp_cv_func_sincos_use=no
10673 fi
10674 rm -f conftest*
10675       ac_ext=c
10676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10677 ac_cpp='$CPP $CPPFLAGS'
10678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10680 cross_compiling=$ac_cv_prog_cc_cross
10681
10682     
10683 fi
10684
10685   fi
10686   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10687
10688   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10689     for ac_func in sincos
10690 do
10691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10692 echo "configure:10693: checking for $ac_func" >&5
10693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10694   echo $ac_n "(cached) $ac_c" 1>&6
10695 else
10696   cat > conftest.$ac_ext <<EOF
10697 #line 10698 "configure"
10698 #include "confdefs.h"
10699 /* System header to define __stub macros and hopefully few prototypes,
10700     which can conflict with char $ac_func(); below.  */
10701 #include <assert.h>
10702 /* Override any gcc2 internal prototype to avoid an error.  */
10703 /* We use char because int might match the return type of a gcc2
10704     builtin and then its argument prototype would still apply.  */
10705 char $ac_func();
10706
10707 int main() {
10708
10709 /* The GNU C library defines this for functions which it implements
10710     to always fail with ENOSYS.  Some functions are actually named
10711     something starting with __ and the normal name is an alias.  */
10712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10713 choke me
10714 #else
10715 $ac_func();
10716 #endif
10717
10718 ; return 0; }
10719 EOF
10720 if { (eval echo configure:10721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10721   rm -rf conftest*
10722   eval "ac_cv_func_$ac_func=yes"
10723 else
10724   echo "configure: failed program was:" >&5
10725   cat conftest.$ac_ext >&5
10726   rm -rf conftest*
10727   eval "ac_cv_func_$ac_func=no"
10728 fi
10729 rm -f conftest*
10730 fi
10731
10732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10733   echo "$ac_t""yes" 1>&6
10734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10735   cat >> confdefs.h <<EOF
10736 #define $ac_tr_func 1
10737 EOF
10738  
10739 else
10740   echo "$ac_t""no" 1>&6
10741 fi
10742 done
10743     
10744   else
10745     
10746   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10747 echo "configure:10748: checking for _sincos declaration" >&5
10748   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10749     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10750   echo $ac_n "(cached) $ac_c" 1>&6
10751 else
10752   
10753       
10754       ac_ext=C
10755 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10756 ac_cpp='$CXXCPP $CPPFLAGS'
10757 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10758 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10759 cross_compiling=$ac_cv_prog_cxx_cross
10760
10761       cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 #include <math.h>
10765 int main() {
10766  _sincos(0, 0, 0);
10767 ; return 0; }
10768 EOF
10769 if { (eval echo configure:10770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10770   rm -rf conftest*
10771   glibcpp_cv_func__sincos_use=yes
10772 else
10773   echo "configure: failed program was:" >&5
10774   cat conftest.$ac_ext >&5
10775   rm -rf conftest*
10776   glibcpp_cv_func__sincos_use=no
10777 fi
10778 rm -f conftest*
10779       ac_ext=c
10780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10781 ac_cpp='$CPP $CPPFLAGS'
10782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10784 cross_compiling=$ac_cv_prog_cc_cross
10785
10786     
10787 fi
10788
10789   fi
10790   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10791
10792     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10793       for ac_func in _sincos
10794 do
10795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10796 echo "configure:10797: checking for $ac_func" >&5
10797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10798   echo $ac_n "(cached) $ac_c" 1>&6
10799 else
10800   cat > conftest.$ac_ext <<EOF
10801 #line 10802 "configure"
10802 #include "confdefs.h"
10803 /* System header to define __stub macros and hopefully few prototypes,
10804     which can conflict with char $ac_func(); below.  */
10805 #include <assert.h>
10806 /* Override any gcc2 internal prototype to avoid an error.  */
10807 /* We use char because int might match the return type of a gcc2
10808     builtin and then its argument prototype would still apply.  */
10809 char $ac_func();
10810
10811 int main() {
10812
10813 /* The GNU C library defines this for functions which it implements
10814     to always fail with ENOSYS.  Some functions are actually named
10815     something starting with __ and the normal name is an alias.  */
10816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10817 choke me
10818 #else
10819 $ac_func();
10820 #endif
10821
10822 ; return 0; }
10823 EOF
10824 if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10825   rm -rf conftest*
10826   eval "ac_cv_func_$ac_func=yes"
10827 else
10828   echo "configure: failed program was:" >&5
10829   cat conftest.$ac_ext >&5
10830   rm -rf conftest*
10831   eval "ac_cv_func_$ac_func=no"
10832 fi
10833 rm -f conftest*
10834 fi
10835
10836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10837   echo "$ac_t""yes" 1>&6
10838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10839   cat >> confdefs.h <<EOF
10840 #define $ac_tr_func 1
10841 EOF
10842  
10843 else
10844   echo "$ac_t""no" 1>&6
10845 fi
10846 done
10847     
10848     fi
10849   fi
10850
10851   
10852   
10853   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10854 echo "configure:10855: checking for fpclass declaration" >&5
10855   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10856     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10857   echo $ac_n "(cached) $ac_c" 1>&6
10858 else
10859   
10860       
10861       ac_ext=C
10862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10863 ac_cpp='$CXXCPP $CPPFLAGS'
10864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10866 cross_compiling=$ac_cv_prog_cxx_cross
10867
10868       cat > conftest.$ac_ext <<EOF
10869 #line 10870 "configure"
10870 #include "confdefs.h"
10871 #include <math.h>
10872                       #ifdef HAVE_IEEEFP_H
10873                       #include <ieeefp.h>
10874                       #endif
10875                      
10876 int main() {
10877  fpclass(0);
10878 ; return 0; }
10879 EOF
10880 if { (eval echo configure:10881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10881   rm -rf conftest*
10882   glibcpp_cv_func_fpclass_use=yes
10883 else
10884   echo "configure: failed program was:" >&5
10885   cat conftest.$ac_ext >&5
10886   rm -rf conftest*
10887   glibcpp_cv_func_fpclass_use=no
10888 fi
10889 rm -f conftest*
10890       ac_ext=c
10891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10892 ac_cpp='$CPP $CPPFLAGS'
10893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10895 cross_compiling=$ac_cv_prog_cc_cross
10896
10897     
10898 fi
10899
10900   fi
10901   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10902
10903   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10904     for ac_func in fpclass
10905 do
10906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10907 echo "configure:10908: checking for $ac_func" >&5
10908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10909   echo $ac_n "(cached) $ac_c" 1>&6
10910 else
10911   cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 /* System header to define __stub macros and hopefully few prototypes,
10915     which can conflict with char $ac_func(); below.  */
10916 #include <assert.h>
10917 /* Override any gcc2 internal prototype to avoid an error.  */
10918 /* We use char because int might match the return type of a gcc2
10919     builtin and then its argument prototype would still apply.  */
10920 char $ac_func();
10921
10922 int main() {
10923
10924 /* The GNU C library defines this for functions which it implements
10925     to always fail with ENOSYS.  Some functions are actually named
10926     something starting with __ and the normal name is an alias.  */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10928 choke me
10929 #else
10930 $ac_func();
10931 #endif
10932
10933 ; return 0; }
10934 EOF
10935 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936   rm -rf conftest*
10937   eval "ac_cv_func_$ac_func=yes"
10938 else
10939   echo "configure: failed program was:" >&5
10940   cat conftest.$ac_ext >&5
10941   rm -rf conftest*
10942   eval "ac_cv_func_$ac_func=no"
10943 fi
10944 rm -f conftest*
10945 fi
10946
10947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10948   echo "$ac_t""yes" 1>&6
10949     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10950   cat >> confdefs.h <<EOF
10951 #define $ac_tr_func 1
10952 EOF
10953  
10954 else
10955   echo "$ac_t""no" 1>&6
10956 fi
10957 done
10958     
10959   else
10960     
10961   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10962 echo "configure:10963: checking for _fpclass declaration" >&5
10963   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10964     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10965   echo $ac_n "(cached) $ac_c" 1>&6
10966 else
10967   
10968       
10969       ac_ext=C
10970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10971 ac_cpp='$CXXCPP $CPPFLAGS'
10972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10974 cross_compiling=$ac_cv_prog_cxx_cross
10975
10976       cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 #include <math.h>
10980                       #ifdef HAVE_IEEEFP_H
10981                       #include <ieeefp.h>
10982                       #endif
10983                      
10984 int main() {
10985  _fpclass(0);
10986 ; return 0; }
10987 EOF
10988 if { (eval echo configure:10989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10989   rm -rf conftest*
10990   glibcpp_cv_func__fpclass_use=yes
10991 else
10992   echo "configure: failed program was:" >&5
10993   cat conftest.$ac_ext >&5
10994   rm -rf conftest*
10995   glibcpp_cv_func__fpclass_use=no
10996 fi
10997 rm -f conftest*
10998       ac_ext=c
10999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11000 ac_cpp='$CPP $CPPFLAGS'
11001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11003 cross_compiling=$ac_cv_prog_cc_cross
11004
11005     
11006 fi
11007
11008   fi
11009   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11010
11011     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11012       for ac_func in _fpclass
11013 do
11014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11015 echo "configure:11016: checking for $ac_func" >&5
11016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11017   echo $ac_n "(cached) $ac_c" 1>&6
11018 else
11019   cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 /* System header to define __stub macros and hopefully few prototypes,
11023     which can conflict with char $ac_func(); below.  */
11024 #include <assert.h>
11025 /* Override any gcc2 internal prototype to avoid an error.  */
11026 /* We use char because int might match the return type of a gcc2
11027     builtin and then its argument prototype would still apply.  */
11028 char $ac_func();
11029
11030 int main() {
11031
11032 /* The GNU C library defines this for functions which it implements
11033     to always fail with ENOSYS.  Some functions are actually named
11034     something starting with __ and the normal name is an alias.  */
11035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11036 choke me
11037 #else
11038 $ac_func();
11039 #endif
11040
11041 ; return 0; }
11042 EOF
11043 if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11044   rm -rf conftest*
11045   eval "ac_cv_func_$ac_func=yes"
11046 else
11047   echo "configure: failed program was:" >&5
11048   cat conftest.$ac_ext >&5
11049   rm -rf conftest*
11050   eval "ac_cv_func_$ac_func=no"
11051 fi
11052 rm -f conftest*
11053 fi
11054
11055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11056   echo "$ac_t""yes" 1>&6
11057     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11058   cat >> confdefs.h <<EOF
11059 #define $ac_tr_func 1
11060 EOF
11061  
11062 else
11063   echo "$ac_t""no" 1>&6
11064 fi
11065 done
11066     
11067     fi
11068   fi
11069
11070   
11071   
11072   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11073 echo "configure:11074: checking for qfpclass declaration" >&5
11074   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11075     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11076   echo $ac_n "(cached) $ac_c" 1>&6
11077 else
11078   
11079       
11080       ac_ext=C
11081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11082 ac_cpp='$CXXCPP $CPPFLAGS'
11083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11085 cross_compiling=$ac_cv_prog_cxx_cross
11086
11087       cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 #include <math.h>
11091                       #ifdef HAVE_IEEEFP_H
11092                       #include <ieeefp.h>
11093                       #endif
11094                      
11095 int main() {
11096  qfpclass(0);
11097 ; return 0; }
11098 EOF
11099 if { (eval echo configure:11100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11100   rm -rf conftest*
11101   glibcpp_cv_func_qfpclass_use=yes
11102 else
11103   echo "configure: failed program was:" >&5
11104   cat conftest.$ac_ext >&5
11105   rm -rf conftest*
11106   glibcpp_cv_func_qfpclass_use=no
11107 fi
11108 rm -f conftest*
11109       ac_ext=c
11110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11111 ac_cpp='$CPP $CPPFLAGS'
11112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11114 cross_compiling=$ac_cv_prog_cc_cross
11115
11116     
11117 fi
11118
11119   fi
11120   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
11121
11122   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
11123     for ac_func in qfpclass
11124 do
11125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11126 echo "configure:11127: checking for $ac_func" >&5
11127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11128   echo $ac_n "(cached) $ac_c" 1>&6
11129 else
11130   cat > conftest.$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11133 /* System header to define __stub macros and hopefully few prototypes,
11134     which can conflict with char $ac_func(); below.  */
11135 #include <assert.h>
11136 /* Override any gcc2 internal prototype to avoid an error.  */
11137 /* We use char because int might match the return type of a gcc2
11138     builtin and then its argument prototype would still apply.  */
11139 char $ac_func();
11140
11141 int main() {
11142
11143 /* The GNU C library defines this for functions which it implements
11144     to always fail with ENOSYS.  Some functions are actually named
11145     something starting with __ and the normal name is an alias.  */
11146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11147 choke me
11148 #else
11149 $ac_func();
11150 #endif
11151
11152 ; return 0; }
11153 EOF
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11155   rm -rf conftest*
11156   eval "ac_cv_func_$ac_func=yes"
11157 else
11158   echo "configure: failed program was:" >&5
11159   cat conftest.$ac_ext >&5
11160   rm -rf conftest*
11161   eval "ac_cv_func_$ac_func=no"
11162 fi
11163 rm -f conftest*
11164 fi
11165
11166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11167   echo "$ac_t""yes" 1>&6
11168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11169   cat >> confdefs.h <<EOF
11170 #define $ac_tr_func 1
11171 EOF
11172  
11173 else
11174   echo "$ac_t""no" 1>&6
11175 fi
11176 done
11177     
11178   else
11179     
11180   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
11181 echo "configure:11182: checking for _qfpclass declaration" >&5
11182   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
11183     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
11184   echo $ac_n "(cached) $ac_c" 1>&6
11185 else
11186   
11187       
11188       ac_ext=C
11189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11190 ac_cpp='$CXXCPP $CPPFLAGS'
11191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11193 cross_compiling=$ac_cv_prog_cxx_cross
11194
11195       cat > conftest.$ac_ext <<EOF
11196 #line 11197 "configure"
11197 #include "confdefs.h"
11198 #include <math.h>
11199                       #ifdef HAVE_IEEEFP_H
11200                       #include <ieeefp.h>
11201                       #endif
11202                      
11203 int main() {
11204  _qfpclass(0);
11205 ; return 0; }
11206 EOF
11207 if { (eval echo configure:11208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11208   rm -rf conftest*
11209   glibcpp_cv_func__qfpclass_use=yes
11210 else
11211   echo "configure: failed program was:" >&5
11212   cat conftest.$ac_ext >&5
11213   rm -rf conftest*
11214   glibcpp_cv_func__qfpclass_use=no
11215 fi
11216 rm -f conftest*
11217       ac_ext=c
11218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11219 ac_cpp='$CPP $CPPFLAGS'
11220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11222 cross_compiling=$ac_cv_prog_cc_cross
11223
11224     
11225 fi
11226
11227   fi
11228   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
11229
11230     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
11231       for ac_func in _qfpclass
11232 do
11233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11234 echo "configure:11235: checking for $ac_func" >&5
11235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11236   echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11238   cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 /* System header to define __stub macros and hopefully few prototypes,
11242     which can conflict with char $ac_func(); below.  */
11243 #include <assert.h>
11244 /* Override any gcc2 internal prototype to avoid an error.  */
11245 /* We use char because int might match the return type of a gcc2
11246     builtin and then its argument prototype would still apply.  */
11247 char $ac_func();
11248
11249 int main() {
11250
11251 /* The GNU C library defines this for functions which it implements
11252     to always fail with ENOSYS.  Some functions are actually named
11253     something starting with __ and the normal name is an alias.  */
11254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11255 choke me
11256 #else
11257 $ac_func();
11258 #endif
11259
11260 ; return 0; }
11261 EOF
11262 if { (eval echo configure:11263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11263   rm -rf conftest*
11264   eval "ac_cv_func_$ac_func=yes"
11265 else
11266   echo "configure: failed program was:" >&5
11267   cat conftest.$ac_ext >&5
11268   rm -rf conftest*
11269   eval "ac_cv_func_$ac_func=no"
11270 fi
11271 rm -f conftest*
11272 fi
11273
11274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11275   echo "$ac_t""yes" 1>&6
11276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11277   cat >> confdefs.h <<EOF
11278 #define $ac_tr_func 1
11279 EOF
11280  
11281 else
11282   echo "$ac_t""no" 1>&6
11283 fi
11284 done
11285     
11286     fi
11287   fi
11288
11289   
11290   
11291   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
11292 echo "configure:11293: checking for hypot declaration" >&5
11293   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
11294     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
11295   echo $ac_n "(cached) $ac_c" 1>&6
11296 else
11297   
11298       
11299       ac_ext=C
11300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11301 ac_cpp='$CXXCPP $CPPFLAGS'
11302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11304 cross_compiling=$ac_cv_prog_cxx_cross
11305
11306       cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 #include <math.h>
11310 int main() {
11311  hypot(0, 0);
11312 ; return 0; }
11313 EOF
11314 if { (eval echo configure:11315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11315   rm -rf conftest*
11316   glibcpp_cv_func_hypot_use=yes
11317 else
11318   echo "configure: failed program was:" >&5
11319   cat conftest.$ac_ext >&5
11320   rm -rf conftest*
11321   glibcpp_cv_func_hypot_use=no
11322 fi
11323 rm -f conftest*
11324       ac_ext=c
11325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11326 ac_cpp='$CPP $CPPFLAGS'
11327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11329 cross_compiling=$ac_cv_prog_cc_cross
11330
11331     
11332 fi
11333
11334   fi
11335   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
11336
11337   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
11338     for ac_func in hypot
11339 do
11340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11341 echo "configure:11342: checking for $ac_func" >&5
11342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11343   echo $ac_n "(cached) $ac_c" 1>&6
11344 else
11345   cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 /* System header to define __stub macros and hopefully few prototypes,
11349     which can conflict with char $ac_func(); below.  */
11350 #include <assert.h>
11351 /* Override any gcc2 internal prototype to avoid an error.  */
11352 /* We use char because int might match the return type of a gcc2
11353     builtin and then its argument prototype would still apply.  */
11354 char $ac_func();
11355
11356 int main() {
11357
11358 /* The GNU C library defines this for functions which it implements
11359     to always fail with ENOSYS.  Some functions are actually named
11360     something starting with __ and the normal name is an alias.  */
11361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11362 choke me
11363 #else
11364 $ac_func();
11365 #endif
11366
11367 ; return 0; }
11368 EOF
11369 if { (eval echo configure:11370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11370   rm -rf conftest*
11371   eval "ac_cv_func_$ac_func=yes"
11372 else
11373   echo "configure: failed program was:" >&5
11374   cat conftest.$ac_ext >&5
11375   rm -rf conftest*
11376   eval "ac_cv_func_$ac_func=no"
11377 fi
11378 rm -f conftest*
11379 fi
11380
11381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11382   echo "$ac_t""yes" 1>&6
11383     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11384   cat >> confdefs.h <<EOF
11385 #define $ac_tr_func 1
11386 EOF
11387  
11388 else
11389   echo "$ac_t""no" 1>&6
11390 fi
11391 done
11392     
11393   else
11394     
11395   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
11396 echo "configure:11397: checking for _hypot declaration" >&5
11397   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
11398     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
11399   echo $ac_n "(cached) $ac_c" 1>&6
11400 else
11401   
11402       
11403       ac_ext=C
11404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11405 ac_cpp='$CXXCPP $CPPFLAGS'
11406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11408 cross_compiling=$ac_cv_prog_cxx_cross
11409
11410       cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure"
11412 #include "confdefs.h"
11413 #include <math.h>
11414 int main() {
11415  _hypot(0, 0);
11416 ; return 0; }
11417 EOF
11418 if { (eval echo configure:11419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11419   rm -rf conftest*
11420   glibcpp_cv_func__hypot_use=yes
11421 else
11422   echo "configure: failed program was:" >&5
11423   cat conftest.$ac_ext >&5
11424   rm -rf conftest*
11425   glibcpp_cv_func__hypot_use=no
11426 fi
11427 rm -f conftest*
11428       ac_ext=c
11429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11433 cross_compiling=$ac_cv_prog_cc_cross
11434
11435     
11436 fi
11437
11438   fi
11439   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
11440
11441     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
11442       for ac_func in _hypot
11443 do
11444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11445 echo "configure:11446: checking for $ac_func" >&5
11446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11447   echo $ac_n "(cached) $ac_c" 1>&6
11448 else
11449   cat > conftest.$ac_ext <<EOF
11450 #line 11451 "configure"
11451 #include "confdefs.h"
11452 /* System header to define __stub macros and hopefully few prototypes,
11453     which can conflict with char $ac_func(); below.  */
11454 #include <assert.h>
11455 /* Override any gcc2 internal prototype to avoid an error.  */
11456 /* We use char because int might match the return type of a gcc2
11457     builtin and then its argument prototype would still apply.  */
11458 char $ac_func();
11459
11460 int main() {
11461
11462 /* The GNU C library defines this for functions which it implements
11463     to always fail with ENOSYS.  Some functions are actually named
11464     something starting with __ and the normal name is an alias.  */
11465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11466 choke me
11467 #else
11468 $ac_func();
11469 #endif
11470
11471 ; return 0; }
11472 EOF
11473 if { (eval echo configure:11474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11474   rm -rf conftest*
11475   eval "ac_cv_func_$ac_func=yes"
11476 else
11477   echo "configure: failed program was:" >&5
11478   cat conftest.$ac_ext >&5
11479   rm -rf conftest*
11480   eval "ac_cv_func_$ac_func=no"
11481 fi
11482 rm -f conftest*
11483 fi
11484
11485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11486   echo "$ac_t""yes" 1>&6
11487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11488   cat >> confdefs.h <<EOF
11489 #define $ac_tr_func 1
11490 EOF
11491  
11492 else
11493   echo "$ac_t""no" 1>&6
11494 fi
11495 done
11496     
11497     fi
11498   fi
11499
11500
11501     
11502   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
11503 echo "configure:11504: checking for float trig functions" >&5
11504   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
11505   echo $ac_n "(cached) $ac_c" 1>&6
11506 else
11507   
11508     
11509     ac_ext=C
11510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11511 ac_cpp='$CXXCPP $CPPFLAGS'
11512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11514 cross_compiling=$ac_cv_prog_cxx_cross
11515
11516     cat > conftest.$ac_ext <<EOF
11517 #line 11518 "configure"
11518 #include "confdefs.h"
11519 #include <math.h>
11520 int main() {
11521  `for x in acosf asinf atanf \
11522                                           cosf sinf tanf \
11523                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
11524 ; return 0; }
11525 EOF
11526 if { (eval echo configure:11527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11527   rm -rf conftest*
11528   glibcpp_cv_func_float_trig_use=yes
11529 else
11530   echo "configure: failed program was:" >&5
11531   cat conftest.$ac_ext >&5
11532   rm -rf conftest*
11533   glibcpp_cv_func_float_trig_use=no
11534 fi
11535 rm -f conftest*
11536     ac_ext=c
11537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11538 ac_cpp='$CPP $CPPFLAGS'
11539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11541 cross_compiling=$ac_cv_prog_cc_cross
11542
11543 fi
11544
11545   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
11546   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
11547     for ac_func in acosf asinf atanf \
11548                                           cosf sinf tanf \
11549                                           coshf sinhf tanhf
11550 do
11551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11552 echo "configure:11553: checking for $ac_func" >&5
11553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11554   echo $ac_n "(cached) $ac_c" 1>&6
11555 else
11556   cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11559 /* System header to define __stub macros and hopefully few prototypes,
11560     which can conflict with char $ac_func(); below.  */
11561 #include <assert.h>
11562 /* Override any gcc2 internal prototype to avoid an error.  */
11563 /* We use char because int might match the return type of a gcc2
11564     builtin and then its argument prototype would still apply.  */
11565 char $ac_func();
11566
11567 int main() {
11568
11569 /* The GNU C library defines this for functions which it implements
11570     to always fail with ENOSYS.  Some functions are actually named
11571     something starting with __ and the normal name is an alias.  */
11572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11573 choke me
11574 #else
11575 $ac_func();
11576 #endif
11577
11578 ; return 0; }
11579 EOF
11580 if { (eval echo configure:11581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11581   rm -rf conftest*
11582   eval "ac_cv_func_$ac_func=yes"
11583 else
11584   echo "configure: failed program was:" >&5
11585   cat conftest.$ac_ext >&5
11586   rm -rf conftest*
11587   eval "ac_cv_func_$ac_func=no"
11588 fi
11589 rm -f conftest*
11590 fi
11591
11592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11593   echo "$ac_t""yes" 1>&6
11594     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11595   cat >> confdefs.h <<EOF
11596 #define $ac_tr_func 1
11597 EOF
11598  
11599 else
11600   echo "$ac_t""no" 1>&6
11601 fi
11602 done
11603
11604   fi
11605
11606   
11607   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
11608 echo "configure:11609: checking for float round functions" >&5
11609   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
11610   echo $ac_n "(cached) $ac_c" 1>&6
11611 else
11612   
11613     
11614     ac_ext=C
11615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11616 ac_cpp='$CXXCPP $CPPFLAGS'
11617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11619 cross_compiling=$ac_cv_prog_cxx_cross
11620
11621     cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11624 #include <math.h>
11625 int main() {
11626  `for x in ceilf floorf; do echo "$x (0);"; done` 
11627 ; return 0; }
11628 EOF
11629 if { (eval echo configure:11630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11630   rm -rf conftest*
11631   glibcpp_cv_func_float_round_use=yes
11632 else
11633   echo "configure: failed program was:" >&5
11634   cat conftest.$ac_ext >&5
11635   rm -rf conftest*
11636   glibcpp_cv_func_float_round_use=no
11637 fi
11638 rm -f conftest*
11639     ac_ext=c
11640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11641 ac_cpp='$CPP $CPPFLAGS'
11642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11644 cross_compiling=$ac_cv_prog_cc_cross
11645
11646 fi
11647
11648   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
11649   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
11650     for ac_func in ceilf floorf
11651 do
11652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11653 echo "configure:11654: checking for $ac_func" >&5
11654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11655   echo $ac_n "(cached) $ac_c" 1>&6
11656 else
11657   cat > conftest.$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11660 /* System header to define __stub macros and hopefully few prototypes,
11661     which can conflict with char $ac_func(); below.  */
11662 #include <assert.h>
11663 /* Override any gcc2 internal prototype to avoid an error.  */
11664 /* We use char because int might match the return type of a gcc2
11665     builtin and then its argument prototype would still apply.  */
11666 char $ac_func();
11667
11668 int main() {
11669
11670 /* The GNU C library defines this for functions which it implements
11671     to always fail with ENOSYS.  Some functions are actually named
11672     something starting with __ and the normal name is an alias.  */
11673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11674 choke me
11675 #else
11676 $ac_func();
11677 #endif
11678
11679 ; return 0; }
11680 EOF
11681 if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11682   rm -rf conftest*
11683   eval "ac_cv_func_$ac_func=yes"
11684 else
11685   echo "configure: failed program was:" >&5
11686   cat conftest.$ac_ext >&5
11687   rm -rf conftest*
11688   eval "ac_cv_func_$ac_func=no"
11689 fi
11690 rm -f conftest*
11691 fi
11692
11693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11694   echo "$ac_t""yes" 1>&6
11695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11696   cat >> confdefs.h <<EOF
11697 #define $ac_tr_func 1
11698 EOF
11699  
11700 else
11701   echo "$ac_t""no" 1>&6
11702 fi
11703 done
11704
11705   fi
11706
11707   
11708   
11709   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
11710 echo "configure:11711: checking for expf declaration" >&5
11711   if test x${glibcpp_cv_func_expf_use+set} != xset; then
11712     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
11713   echo $ac_n "(cached) $ac_c" 1>&6
11714 else
11715   
11716       
11717       ac_ext=C
11718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11719 ac_cpp='$CXXCPP $CPPFLAGS'
11720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11722 cross_compiling=$ac_cv_prog_cxx_cross
11723
11724       cat > conftest.$ac_ext <<EOF
11725 #line 11726 "configure"
11726 #include "confdefs.h"
11727 #include <math.h>
11728                       #ifdef HAVE_IEEEFP_H
11729                       #include <ieeefp.h>
11730                       #endif
11731                      
11732 int main() {
11733  expf(0);
11734 ; return 0; }
11735 EOF
11736 if { (eval echo configure:11737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11737   rm -rf conftest*
11738   glibcpp_cv_func_expf_use=yes
11739 else
11740   echo "configure: failed program was:" >&5
11741   cat conftest.$ac_ext >&5
11742   rm -rf conftest*
11743   glibcpp_cv_func_expf_use=no
11744 fi
11745 rm -f conftest*
11746       ac_ext=c
11747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11748 ac_cpp='$CPP $CPPFLAGS'
11749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11751 cross_compiling=$ac_cv_prog_cc_cross
11752
11753     
11754 fi
11755
11756   fi
11757   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
11758
11759   if test x$glibcpp_cv_func_expf_use = x"yes"; then
11760     for ac_func in expf
11761 do
11762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11763 echo "configure:11764: checking for $ac_func" >&5
11764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11765   echo $ac_n "(cached) $ac_c" 1>&6
11766 else
11767   cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure"
11769 #include "confdefs.h"
11770 /* System header to define __stub macros and hopefully few prototypes,
11771     which can conflict with char $ac_func(); below.  */
11772 #include <assert.h>
11773 /* Override any gcc2 internal prototype to avoid an error.  */
11774 /* We use char because int might match the return type of a gcc2
11775     builtin and then its argument prototype would still apply.  */
11776 char $ac_func();
11777
11778 int main() {
11779
11780 /* The GNU C library defines this for functions which it implements
11781     to always fail with ENOSYS.  Some functions are actually named
11782     something starting with __ and the normal name is an alias.  */
11783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11784 choke me
11785 #else
11786 $ac_func();
11787 #endif
11788
11789 ; return 0; }
11790 EOF
11791 if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11792   rm -rf conftest*
11793   eval "ac_cv_func_$ac_func=yes"
11794 else
11795   echo "configure: failed program was:" >&5
11796   cat conftest.$ac_ext >&5
11797   rm -rf conftest*
11798   eval "ac_cv_func_$ac_func=no"
11799 fi
11800 rm -f conftest*
11801 fi
11802
11803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11804   echo "$ac_t""yes" 1>&6
11805     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11806   cat >> confdefs.h <<EOF
11807 #define $ac_tr_func 1
11808 EOF
11809  
11810 else
11811   echo "$ac_t""no" 1>&6
11812 fi
11813 done
11814     
11815   else
11816     
11817   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
11818 echo "configure:11819: checking for _expf declaration" >&5
11819   if test x${glibcpp_cv_func__expf_use+set} != xset; then
11820     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
11821   echo $ac_n "(cached) $ac_c" 1>&6
11822 else
11823   
11824       
11825       ac_ext=C
11826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11827 ac_cpp='$CXXCPP $CPPFLAGS'
11828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11830 cross_compiling=$ac_cv_prog_cxx_cross
11831
11832       cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11835 #include <math.h>
11836                       #ifdef HAVE_IEEEFP_H
11837                       #include <ieeefp.h>
11838                       #endif
11839                      
11840 int main() {
11841  _expf(0);
11842 ; return 0; }
11843 EOF
11844 if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11845   rm -rf conftest*
11846   glibcpp_cv_func__expf_use=yes
11847 else
11848   echo "configure: failed program was:" >&5
11849   cat conftest.$ac_ext >&5
11850   rm -rf conftest*
11851   glibcpp_cv_func__expf_use=no
11852 fi
11853 rm -f conftest*
11854       ac_ext=c
11855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11859 cross_compiling=$ac_cv_prog_cc_cross
11860
11861     
11862 fi
11863
11864   fi
11865   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
11866
11867     if test x$glibcpp_cv_func__expf_use = x"yes"; then
11868       for ac_func in _expf
11869 do
11870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11871 echo "configure:11872: checking for $ac_func" >&5
11872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11873   echo $ac_n "(cached) $ac_c" 1>&6
11874 else
11875   cat > conftest.$ac_ext <<EOF
11876 #line 11877 "configure"
11877 #include "confdefs.h"
11878 /* System header to define __stub macros and hopefully few prototypes,
11879     which can conflict with char $ac_func(); below.  */
11880 #include <assert.h>
11881 /* Override any gcc2 internal prototype to avoid an error.  */
11882 /* We use char because int might match the return type of a gcc2
11883     builtin and then its argument prototype would still apply.  */
11884 char $ac_func();
11885
11886 int main() {
11887
11888 /* The GNU C library defines this for functions which it implements
11889     to always fail with ENOSYS.  Some functions are actually named
11890     something starting with __ and the normal name is an alias.  */
11891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11892 choke me
11893 #else
11894 $ac_func();
11895 #endif
11896
11897 ; return 0; }
11898 EOF
11899 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11900   rm -rf conftest*
11901   eval "ac_cv_func_$ac_func=yes"
11902 else
11903   echo "configure: failed program was:" >&5
11904   cat conftest.$ac_ext >&5
11905   rm -rf conftest*
11906   eval "ac_cv_func_$ac_func=no"
11907 fi
11908 rm -f conftest*
11909 fi
11910
11911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11912   echo "$ac_t""yes" 1>&6
11913     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11914   cat >> confdefs.h <<EOF
11915 #define $ac_tr_func 1
11916 EOF
11917  
11918 else
11919   echo "$ac_t""no" 1>&6
11920 fi
11921 done
11922     
11923     fi
11924   fi
11925
11926   
11927   
11928   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11929 echo "configure:11930: checking for isnanf declaration" >&5
11930   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11931     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11932   echo $ac_n "(cached) $ac_c" 1>&6
11933 else
11934   
11935       
11936       ac_ext=C
11937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11938 ac_cpp='$CXXCPP $CPPFLAGS'
11939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11941 cross_compiling=$ac_cv_prog_cxx_cross
11942
11943       cat > conftest.$ac_ext <<EOF
11944 #line 11945 "configure"
11945 #include "confdefs.h"
11946 #include <math.h>
11947                       #ifdef HAVE_IEEEFP_H
11948                       #include <ieeefp.h>
11949                       #endif
11950                      
11951 int main() {
11952  isnanf(0);
11953 ; return 0; }
11954 EOF
11955 if { (eval echo configure:11956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11956   rm -rf conftest*
11957   glibcpp_cv_func_isnanf_use=yes
11958 else
11959   echo "configure: failed program was:" >&5
11960   cat conftest.$ac_ext >&5
11961   rm -rf conftest*
11962   glibcpp_cv_func_isnanf_use=no
11963 fi
11964 rm -f conftest*
11965       ac_ext=c
11966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11967 ac_cpp='$CPP $CPPFLAGS'
11968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11970 cross_compiling=$ac_cv_prog_cc_cross
11971
11972     
11973 fi
11974
11975   fi
11976   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11977
11978   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11979     for ac_func in isnanf
11980 do
11981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11982 echo "configure:11983: checking for $ac_func" >&5
11983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11984   echo $ac_n "(cached) $ac_c" 1>&6
11985 else
11986   cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure"
11988 #include "confdefs.h"
11989 /* System header to define __stub macros and hopefully few prototypes,
11990     which can conflict with char $ac_func(); below.  */
11991 #include <assert.h>
11992 /* Override any gcc2 internal prototype to avoid an error.  */
11993 /* We use char because int might match the return type of a gcc2
11994     builtin and then its argument prototype would still apply.  */
11995 char $ac_func();
11996
11997 int main() {
11998
11999 /* The GNU C library defines this for functions which it implements
12000     to always fail with ENOSYS.  Some functions are actually named
12001     something starting with __ and the normal name is an alias.  */
12002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12003 choke me
12004 #else
12005 $ac_func();
12006 #endif
12007
12008 ; return 0; }
12009 EOF
12010 if { (eval echo configure:12011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12011   rm -rf conftest*
12012   eval "ac_cv_func_$ac_func=yes"
12013 else
12014   echo "configure: failed program was:" >&5
12015   cat conftest.$ac_ext >&5
12016   rm -rf conftest*
12017   eval "ac_cv_func_$ac_func=no"
12018 fi
12019 rm -f conftest*
12020 fi
12021
12022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12023   echo "$ac_t""yes" 1>&6
12024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12025   cat >> confdefs.h <<EOF
12026 #define $ac_tr_func 1
12027 EOF
12028  
12029 else
12030   echo "$ac_t""no" 1>&6
12031 fi
12032 done
12033     
12034   else
12035     
12036   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12037 echo "configure:12038: checking for _isnanf declaration" >&5
12038   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12039     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12040   echo $ac_n "(cached) $ac_c" 1>&6
12041 else
12042   
12043       
12044       ac_ext=C
12045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12046 ac_cpp='$CXXCPP $CPPFLAGS'
12047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12049 cross_compiling=$ac_cv_prog_cxx_cross
12050
12051       cat > conftest.$ac_ext <<EOF
12052 #line 12053 "configure"
12053 #include "confdefs.h"
12054 #include <math.h>
12055                       #ifdef HAVE_IEEEFP_H
12056                       #include <ieeefp.h>
12057                       #endif
12058                      
12059 int main() {
12060  _isnanf(0);
12061 ; return 0; }
12062 EOF
12063 if { (eval echo configure:12064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12064   rm -rf conftest*
12065   glibcpp_cv_func__isnanf_use=yes
12066 else
12067   echo "configure: failed program was:" >&5
12068   cat conftest.$ac_ext >&5
12069   rm -rf conftest*
12070   glibcpp_cv_func__isnanf_use=no
12071 fi
12072 rm -f conftest*
12073       ac_ext=c
12074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12075 ac_cpp='$CPP $CPPFLAGS'
12076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12078 cross_compiling=$ac_cv_prog_cc_cross
12079
12080     
12081 fi
12082
12083   fi
12084   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
12085
12086     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
12087       for ac_func in _isnanf
12088 do
12089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12090 echo "configure:12091: checking for $ac_func" >&5
12091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12092   echo $ac_n "(cached) $ac_c" 1>&6
12093 else
12094   cat > conftest.$ac_ext <<EOF
12095 #line 12096 "configure"
12096 #include "confdefs.h"
12097 /* System header to define __stub macros and hopefully few prototypes,
12098     which can conflict with char $ac_func(); below.  */
12099 #include <assert.h>
12100 /* Override any gcc2 internal prototype to avoid an error.  */
12101 /* We use char because int might match the return type of a gcc2
12102     builtin and then its argument prototype would still apply.  */
12103 char $ac_func();
12104
12105 int main() {
12106
12107 /* The GNU C library defines this for functions which it implements
12108     to always fail with ENOSYS.  Some functions are actually named
12109     something starting with __ and the normal name is an alias.  */
12110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12111 choke me
12112 #else
12113 $ac_func();
12114 #endif
12115
12116 ; return 0; }
12117 EOF
12118 if { (eval echo configure:12119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12119   rm -rf conftest*
12120   eval "ac_cv_func_$ac_func=yes"
12121 else
12122   echo "configure: failed program was:" >&5
12123   cat conftest.$ac_ext >&5
12124   rm -rf conftest*
12125   eval "ac_cv_func_$ac_func=no"
12126 fi
12127 rm -f conftest*
12128 fi
12129
12130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12131   echo "$ac_t""yes" 1>&6
12132     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12133   cat >> confdefs.h <<EOF
12134 #define $ac_tr_func 1
12135 EOF
12136  
12137 else
12138   echo "$ac_t""no" 1>&6
12139 fi
12140 done
12141     
12142     fi
12143   fi
12144
12145   
12146   
12147   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
12148 echo "configure:12149: checking for isinff declaration" >&5
12149   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
12150     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
12151   echo $ac_n "(cached) $ac_c" 1>&6
12152 else
12153   
12154       
12155       ac_ext=C
12156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12157 ac_cpp='$CXXCPP $CPPFLAGS'
12158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12160 cross_compiling=$ac_cv_prog_cxx_cross
12161
12162       cat > conftest.$ac_ext <<EOF
12163 #line 12164 "configure"
12164 #include "confdefs.h"
12165 #include <math.h>
12166                       #ifdef HAVE_IEEEFP_H
12167                       #include <ieeefp.h>
12168                       #endif
12169                      
12170 int main() {
12171  isinff(0);
12172 ; return 0; }
12173 EOF
12174 if { (eval echo configure:12175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12175   rm -rf conftest*
12176   glibcpp_cv_func_isinff_use=yes
12177 else
12178   echo "configure: failed program was:" >&5
12179   cat conftest.$ac_ext >&5
12180   rm -rf conftest*
12181   glibcpp_cv_func_isinff_use=no
12182 fi
12183 rm -f conftest*
12184       ac_ext=c
12185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12186 ac_cpp='$CPP $CPPFLAGS'
12187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12189 cross_compiling=$ac_cv_prog_cc_cross
12190
12191     
12192 fi
12193
12194   fi
12195   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
12196
12197   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
12198     for ac_func in isinff
12199 do
12200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12201 echo "configure:12202: checking for $ac_func" >&5
12202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12203   echo $ac_n "(cached) $ac_c" 1>&6
12204 else
12205   cat > conftest.$ac_ext <<EOF
12206 #line 12207 "configure"
12207 #include "confdefs.h"
12208 /* System header to define __stub macros and hopefully few prototypes,
12209     which can conflict with char $ac_func(); below.  */
12210 #include <assert.h>
12211 /* Override any gcc2 internal prototype to avoid an error.  */
12212 /* We use char because int might match the return type of a gcc2
12213     builtin and then its argument prototype would still apply.  */
12214 char $ac_func();
12215
12216 int main() {
12217
12218 /* The GNU C library defines this for functions which it implements
12219     to always fail with ENOSYS.  Some functions are actually named
12220     something starting with __ and the normal name is an alias.  */
12221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12222 choke me
12223 #else
12224 $ac_func();
12225 #endif
12226
12227 ; return 0; }
12228 EOF
12229 if { (eval echo configure:12230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12230   rm -rf conftest*
12231   eval "ac_cv_func_$ac_func=yes"
12232 else
12233   echo "configure: failed program was:" >&5
12234   cat conftest.$ac_ext >&5
12235   rm -rf conftest*
12236   eval "ac_cv_func_$ac_func=no"
12237 fi
12238 rm -f conftest*
12239 fi
12240
12241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12242   echo "$ac_t""yes" 1>&6
12243     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12244   cat >> confdefs.h <<EOF
12245 #define $ac_tr_func 1
12246 EOF
12247  
12248 else
12249   echo "$ac_t""no" 1>&6
12250 fi
12251 done
12252     
12253   else
12254     
12255   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
12256 echo "configure:12257: checking for _isinff declaration" >&5
12257   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
12258     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
12259   echo $ac_n "(cached) $ac_c" 1>&6
12260 else
12261   
12262       
12263       ac_ext=C
12264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12265 ac_cpp='$CXXCPP $CPPFLAGS'
12266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12268 cross_compiling=$ac_cv_prog_cxx_cross
12269
12270       cat > conftest.$ac_ext <<EOF
12271 #line 12272 "configure"
12272 #include "confdefs.h"
12273 #include <math.h>
12274                       #ifdef HAVE_IEEEFP_H
12275                       #include <ieeefp.h>
12276                       #endif
12277                      
12278 int main() {
12279  _isinff(0);
12280 ; return 0; }
12281 EOF
12282 if { (eval echo configure:12283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12283   rm -rf conftest*
12284   glibcpp_cv_func__isinff_use=yes
12285 else
12286   echo "configure: failed program was:" >&5
12287   cat conftest.$ac_ext >&5
12288   rm -rf conftest*
12289   glibcpp_cv_func__isinff_use=no
12290 fi
12291 rm -f conftest*
12292       ac_ext=c
12293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12294 ac_cpp='$CPP $CPPFLAGS'
12295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12297 cross_compiling=$ac_cv_prog_cc_cross
12298
12299     
12300 fi
12301
12302   fi
12303   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
12304
12305     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
12306       for ac_func in _isinff
12307 do
12308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12309 echo "configure:12310: checking for $ac_func" >&5
12310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12311   echo $ac_n "(cached) $ac_c" 1>&6
12312 else
12313   cat > conftest.$ac_ext <<EOF
12314 #line 12315 "configure"
12315 #include "confdefs.h"
12316 /* System header to define __stub macros and hopefully few prototypes,
12317     which can conflict with char $ac_func(); below.  */
12318 #include <assert.h>
12319 /* Override any gcc2 internal prototype to avoid an error.  */
12320 /* We use char because int might match the return type of a gcc2
12321     builtin and then its argument prototype would still apply.  */
12322 char $ac_func();
12323
12324 int main() {
12325
12326 /* The GNU C library defines this for functions which it implements
12327     to always fail with ENOSYS.  Some functions are actually named
12328     something starting with __ and the normal name is an alias.  */
12329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12330 choke me
12331 #else
12332 $ac_func();
12333 #endif
12334
12335 ; return 0; }
12336 EOF
12337 if { (eval echo configure:12338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12338   rm -rf conftest*
12339   eval "ac_cv_func_$ac_func=yes"
12340 else
12341   echo "configure: failed program was:" >&5
12342   cat conftest.$ac_ext >&5
12343   rm -rf conftest*
12344   eval "ac_cv_func_$ac_func=no"
12345 fi
12346 rm -f conftest*
12347 fi
12348
12349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12350   echo "$ac_t""yes" 1>&6
12351     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12352   cat >> confdefs.h <<EOF
12353 #define $ac_tr_func 1
12354 EOF
12355  
12356 else
12357   echo "$ac_t""no" 1>&6
12358 fi
12359 done
12360     
12361     fi
12362   fi
12363
12364   
12365   
12366   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
12367 echo "configure:12368: checking for atan2f declaration" >&5
12368   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
12369     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
12370   echo $ac_n "(cached) $ac_c" 1>&6
12371 else
12372   
12373       
12374       ac_ext=C
12375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12376 ac_cpp='$CXXCPP $CPPFLAGS'
12377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12379 cross_compiling=$ac_cv_prog_cxx_cross
12380
12381       cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12384 #include <math.h>
12385 int main() {
12386  atan2f(0, 0);
12387 ; return 0; }
12388 EOF
12389 if { (eval echo configure:12390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12390   rm -rf conftest*
12391   glibcpp_cv_func_atan2f_use=yes
12392 else
12393   echo "configure: failed program was:" >&5
12394   cat conftest.$ac_ext >&5
12395   rm -rf conftest*
12396   glibcpp_cv_func_atan2f_use=no
12397 fi
12398 rm -f conftest*
12399       ac_ext=c
12400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12404 cross_compiling=$ac_cv_prog_cc_cross
12405
12406     
12407 fi
12408
12409   fi
12410   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
12411
12412   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
12413     for ac_func in atan2f
12414 do
12415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12416 echo "configure:12417: checking for $ac_func" >&5
12417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12418   echo $ac_n "(cached) $ac_c" 1>&6
12419 else
12420   cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12423 /* System header to define __stub macros and hopefully few prototypes,
12424     which can conflict with char $ac_func(); below.  */
12425 #include <assert.h>
12426 /* Override any gcc2 internal prototype to avoid an error.  */
12427 /* We use char because int might match the return type of a gcc2
12428     builtin and then its argument prototype would still apply.  */
12429 char $ac_func();
12430
12431 int main() {
12432
12433 /* The GNU C library defines this for functions which it implements
12434     to always fail with ENOSYS.  Some functions are actually named
12435     something starting with __ and the normal name is an alias.  */
12436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12437 choke me
12438 #else
12439 $ac_func();
12440 #endif
12441
12442 ; return 0; }
12443 EOF
12444 if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12445   rm -rf conftest*
12446   eval "ac_cv_func_$ac_func=yes"
12447 else
12448   echo "configure: failed program was:" >&5
12449   cat conftest.$ac_ext >&5
12450   rm -rf conftest*
12451   eval "ac_cv_func_$ac_func=no"
12452 fi
12453 rm -f conftest*
12454 fi
12455
12456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12457   echo "$ac_t""yes" 1>&6
12458     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12459   cat >> confdefs.h <<EOF
12460 #define $ac_tr_func 1
12461 EOF
12462  
12463 else
12464   echo "$ac_t""no" 1>&6
12465 fi
12466 done
12467     
12468   else
12469     
12470   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
12471 echo "configure:12472: checking for _atan2f declaration" >&5
12472   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
12473     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
12474   echo $ac_n "(cached) $ac_c" 1>&6
12475 else
12476   
12477       
12478       ac_ext=C
12479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12480 ac_cpp='$CXXCPP $CPPFLAGS'
12481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12483 cross_compiling=$ac_cv_prog_cxx_cross
12484
12485       cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 #include <math.h>
12489 int main() {
12490  _atan2f(0, 0);
12491 ; return 0; }
12492 EOF
12493 if { (eval echo configure:12494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12494   rm -rf conftest*
12495   glibcpp_cv_func__atan2f_use=yes
12496 else
12497   echo "configure: failed program was:" >&5
12498   cat conftest.$ac_ext >&5
12499   rm -rf conftest*
12500   glibcpp_cv_func__atan2f_use=no
12501 fi
12502 rm -f conftest*
12503       ac_ext=c
12504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12505 ac_cpp='$CPP $CPPFLAGS'
12506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12508 cross_compiling=$ac_cv_prog_cc_cross
12509
12510     
12511 fi
12512
12513   fi
12514   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
12515
12516     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
12517       for ac_func in _atan2f
12518 do
12519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12520 echo "configure:12521: checking for $ac_func" >&5
12521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12522   echo $ac_n "(cached) $ac_c" 1>&6
12523 else
12524   cat > conftest.$ac_ext <<EOF
12525 #line 12526 "configure"
12526 #include "confdefs.h"
12527 /* System header to define __stub macros and hopefully few prototypes,
12528     which can conflict with char $ac_func(); below.  */
12529 #include <assert.h>
12530 /* Override any gcc2 internal prototype to avoid an error.  */
12531 /* We use char because int might match the return type of a gcc2
12532     builtin and then its argument prototype would still apply.  */
12533 char $ac_func();
12534
12535 int main() {
12536
12537 /* The GNU C library defines this for functions which it implements
12538     to always fail with ENOSYS.  Some functions are actually named
12539     something starting with __ and the normal name is an alias.  */
12540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12541 choke me
12542 #else
12543 $ac_func();
12544 #endif
12545
12546 ; return 0; }
12547 EOF
12548 if { (eval echo configure:12549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12549   rm -rf conftest*
12550   eval "ac_cv_func_$ac_func=yes"
12551 else
12552   echo "configure: failed program was:" >&5
12553   cat conftest.$ac_ext >&5
12554   rm -rf conftest*
12555   eval "ac_cv_func_$ac_func=no"
12556 fi
12557 rm -f conftest*
12558 fi
12559
12560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12561   echo "$ac_t""yes" 1>&6
12562     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12563   cat >> confdefs.h <<EOF
12564 #define $ac_tr_func 1
12565 EOF
12566  
12567 else
12568   echo "$ac_t""no" 1>&6
12569 fi
12570 done
12571     
12572     fi
12573   fi
12574
12575   
12576   
12577   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
12578 echo "configure:12579: checking for fabsf declaration" >&5
12579   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
12580     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
12581   echo $ac_n "(cached) $ac_c" 1>&6
12582 else
12583   
12584       
12585       ac_ext=C
12586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12587 ac_cpp='$CXXCPP $CPPFLAGS'
12588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12590 cross_compiling=$ac_cv_prog_cxx_cross
12591
12592       cat > conftest.$ac_ext <<EOF
12593 #line 12594 "configure"
12594 #include "confdefs.h"
12595 #include <math.h>
12596                       #ifdef HAVE_IEEEFP_H
12597                       #include <ieeefp.h>
12598                       #endif
12599                      
12600 int main() {
12601  fabsf(0);
12602 ; return 0; }
12603 EOF
12604 if { (eval echo configure:12605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12605   rm -rf conftest*
12606   glibcpp_cv_func_fabsf_use=yes
12607 else
12608   echo "configure: failed program was:" >&5
12609   cat conftest.$ac_ext >&5
12610   rm -rf conftest*
12611   glibcpp_cv_func_fabsf_use=no
12612 fi
12613 rm -f conftest*
12614       ac_ext=c
12615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12616 ac_cpp='$CPP $CPPFLAGS'
12617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12619 cross_compiling=$ac_cv_prog_cc_cross
12620
12621     
12622 fi
12623
12624   fi
12625   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
12626
12627   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
12628     for ac_func in fabsf
12629 do
12630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12631 echo "configure:12632: checking for $ac_func" >&5
12632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12633   echo $ac_n "(cached) $ac_c" 1>&6
12634 else
12635   cat > conftest.$ac_ext <<EOF
12636 #line 12637 "configure"
12637 #include "confdefs.h"
12638 /* System header to define __stub macros and hopefully few prototypes,
12639     which can conflict with char $ac_func(); below.  */
12640 #include <assert.h>
12641 /* Override any gcc2 internal prototype to avoid an error.  */
12642 /* We use char because int might match the return type of a gcc2
12643     builtin and then its argument prototype would still apply.  */
12644 char $ac_func();
12645
12646 int main() {
12647
12648 /* The GNU C library defines this for functions which it implements
12649     to always fail with ENOSYS.  Some functions are actually named
12650     something starting with __ and the normal name is an alias.  */
12651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12652 choke me
12653 #else
12654 $ac_func();
12655 #endif
12656
12657 ; return 0; }
12658 EOF
12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12660   rm -rf conftest*
12661   eval "ac_cv_func_$ac_func=yes"
12662 else
12663   echo "configure: failed program was:" >&5
12664   cat conftest.$ac_ext >&5
12665   rm -rf conftest*
12666   eval "ac_cv_func_$ac_func=no"
12667 fi
12668 rm -f conftest*
12669 fi
12670
12671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12672   echo "$ac_t""yes" 1>&6
12673     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12674   cat >> confdefs.h <<EOF
12675 #define $ac_tr_func 1
12676 EOF
12677  
12678 else
12679   echo "$ac_t""no" 1>&6
12680 fi
12681 done
12682     
12683   else
12684     
12685   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
12686 echo "configure:12687: checking for _fabsf declaration" >&5
12687   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
12688     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
12689   echo $ac_n "(cached) $ac_c" 1>&6
12690 else
12691   
12692       
12693       ac_ext=C
12694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12695 ac_cpp='$CXXCPP $CPPFLAGS'
12696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12698 cross_compiling=$ac_cv_prog_cxx_cross
12699
12700       cat > conftest.$ac_ext <<EOF
12701 #line 12702 "configure"
12702 #include "confdefs.h"
12703 #include <math.h>
12704                       #ifdef HAVE_IEEEFP_H
12705                       #include <ieeefp.h>
12706                       #endif
12707                      
12708 int main() {
12709  _fabsf(0);
12710 ; return 0; }
12711 EOF
12712 if { (eval echo configure:12713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12713   rm -rf conftest*
12714   glibcpp_cv_func__fabsf_use=yes
12715 else
12716   echo "configure: failed program was:" >&5
12717   cat conftest.$ac_ext >&5
12718   rm -rf conftest*
12719   glibcpp_cv_func__fabsf_use=no
12720 fi
12721 rm -f conftest*
12722       ac_ext=c
12723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12724 ac_cpp='$CPP $CPPFLAGS'
12725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12727 cross_compiling=$ac_cv_prog_cc_cross
12728
12729     
12730 fi
12731
12732   fi
12733   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
12734
12735     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
12736       for ac_func in _fabsf
12737 do
12738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12739 echo "configure:12740: checking for $ac_func" >&5
12740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12741   echo $ac_n "(cached) $ac_c" 1>&6
12742 else
12743   cat > conftest.$ac_ext <<EOF
12744 #line 12745 "configure"
12745 #include "confdefs.h"
12746 /* System header to define __stub macros and hopefully few prototypes,
12747     which can conflict with char $ac_func(); below.  */
12748 #include <assert.h>
12749 /* Override any gcc2 internal prototype to avoid an error.  */
12750 /* We use char because int might match the return type of a gcc2
12751     builtin and then its argument prototype would still apply.  */
12752 char $ac_func();
12753
12754 int main() {
12755
12756 /* The GNU C library defines this for functions which it implements
12757     to always fail with ENOSYS.  Some functions are actually named
12758     something starting with __ and the normal name is an alias.  */
12759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12760 choke me
12761 #else
12762 $ac_func();
12763 #endif
12764
12765 ; return 0; }
12766 EOF
12767 if { (eval echo configure:12768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12768   rm -rf conftest*
12769   eval "ac_cv_func_$ac_func=yes"
12770 else
12771   echo "configure: failed program was:" >&5
12772   cat conftest.$ac_ext >&5
12773   rm -rf conftest*
12774   eval "ac_cv_func_$ac_func=no"
12775 fi
12776 rm -f conftest*
12777 fi
12778
12779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12780   echo "$ac_t""yes" 1>&6
12781     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12782   cat >> confdefs.h <<EOF
12783 #define $ac_tr_func 1
12784 EOF
12785  
12786 else
12787   echo "$ac_t""no" 1>&6
12788 fi
12789 done
12790     
12791     fi
12792   fi
12793
12794   
12795   
12796   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
12797 echo "configure:12798: checking for fmodf declaration" >&5
12798   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
12799     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
12800   echo $ac_n "(cached) $ac_c" 1>&6
12801 else
12802   
12803       
12804       ac_ext=C
12805 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12806 ac_cpp='$CXXCPP $CPPFLAGS'
12807 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12808 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12809 cross_compiling=$ac_cv_prog_cxx_cross
12810
12811       cat > conftest.$ac_ext <<EOF
12812 #line 12813 "configure"
12813 #include "confdefs.h"
12814 #include <math.h>
12815 int main() {
12816  fmodf(0, 0);
12817 ; return 0; }
12818 EOF
12819 if { (eval echo configure:12820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12820   rm -rf conftest*
12821   glibcpp_cv_func_fmodf_use=yes
12822 else
12823   echo "configure: failed program was:" >&5
12824   cat conftest.$ac_ext >&5
12825   rm -rf conftest*
12826   glibcpp_cv_func_fmodf_use=no
12827 fi
12828 rm -f conftest*
12829       ac_ext=c
12830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12831 ac_cpp='$CPP $CPPFLAGS'
12832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12834 cross_compiling=$ac_cv_prog_cc_cross
12835
12836     
12837 fi
12838
12839   fi
12840   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
12841
12842   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
12843     for ac_func in fmodf
12844 do
12845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12846 echo "configure:12847: checking for $ac_func" >&5
12847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12848   echo $ac_n "(cached) $ac_c" 1>&6
12849 else
12850   cat > conftest.$ac_ext <<EOF
12851 #line 12852 "configure"
12852 #include "confdefs.h"
12853 /* System header to define __stub macros and hopefully few prototypes,
12854     which can conflict with char $ac_func(); below.  */
12855 #include <assert.h>
12856 /* Override any gcc2 internal prototype to avoid an error.  */
12857 /* We use char because int might match the return type of a gcc2
12858     builtin and then its argument prototype would still apply.  */
12859 char $ac_func();
12860
12861 int main() {
12862
12863 /* The GNU C library defines this for functions which it implements
12864     to always fail with ENOSYS.  Some functions are actually named
12865     something starting with __ and the normal name is an alias.  */
12866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12867 choke me
12868 #else
12869 $ac_func();
12870 #endif
12871
12872 ; return 0; }
12873 EOF
12874 if { (eval echo configure:12875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12875   rm -rf conftest*
12876   eval "ac_cv_func_$ac_func=yes"
12877 else
12878   echo "configure: failed program was:" >&5
12879   cat conftest.$ac_ext >&5
12880   rm -rf conftest*
12881   eval "ac_cv_func_$ac_func=no"
12882 fi
12883 rm -f conftest*
12884 fi
12885
12886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12887   echo "$ac_t""yes" 1>&6
12888     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12889   cat >> confdefs.h <<EOF
12890 #define $ac_tr_func 1
12891 EOF
12892  
12893 else
12894   echo "$ac_t""no" 1>&6
12895 fi
12896 done
12897     
12898   else
12899     
12900   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12901 echo "configure:12902: checking for _fmodf declaration" >&5
12902   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12903     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12904   echo $ac_n "(cached) $ac_c" 1>&6
12905 else
12906   
12907       
12908       ac_ext=C
12909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12910 ac_cpp='$CXXCPP $CPPFLAGS'
12911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12913 cross_compiling=$ac_cv_prog_cxx_cross
12914
12915       cat > conftest.$ac_ext <<EOF
12916 #line 12917 "configure"
12917 #include "confdefs.h"
12918 #include <math.h>
12919 int main() {
12920  _fmodf(0, 0);
12921 ; return 0; }
12922 EOF
12923 if { (eval echo configure:12924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12924   rm -rf conftest*
12925   glibcpp_cv_func__fmodf_use=yes
12926 else
12927   echo "configure: failed program was:" >&5
12928   cat conftest.$ac_ext >&5
12929   rm -rf conftest*
12930   glibcpp_cv_func__fmodf_use=no
12931 fi
12932 rm -f conftest*
12933       ac_ext=c
12934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12935 ac_cpp='$CPP $CPPFLAGS'
12936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12938 cross_compiling=$ac_cv_prog_cc_cross
12939
12940     
12941 fi
12942
12943   fi
12944   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12945
12946     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12947       for ac_func in _fmodf
12948 do
12949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12950 echo "configure:12951: checking for $ac_func" >&5
12951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12952   echo $ac_n "(cached) $ac_c" 1>&6
12953 else
12954   cat > conftest.$ac_ext <<EOF
12955 #line 12956 "configure"
12956 #include "confdefs.h"
12957 /* System header to define __stub macros and hopefully few prototypes,
12958     which can conflict with char $ac_func(); below.  */
12959 #include <assert.h>
12960 /* Override any gcc2 internal prototype to avoid an error.  */
12961 /* We use char because int might match the return type of a gcc2
12962     builtin and then its argument prototype would still apply.  */
12963 char $ac_func();
12964
12965 int main() {
12966
12967 /* The GNU C library defines this for functions which it implements
12968     to always fail with ENOSYS.  Some functions are actually named
12969     something starting with __ and the normal name is an alias.  */
12970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12971 choke me
12972 #else
12973 $ac_func();
12974 #endif
12975
12976 ; return 0; }
12977 EOF
12978 if { (eval echo configure:12979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12979   rm -rf conftest*
12980   eval "ac_cv_func_$ac_func=yes"
12981 else
12982   echo "configure: failed program was:" >&5
12983   cat conftest.$ac_ext >&5
12984   rm -rf conftest*
12985   eval "ac_cv_func_$ac_func=no"
12986 fi
12987 rm -f conftest*
12988 fi
12989
12990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12991   echo "$ac_t""yes" 1>&6
12992     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12993   cat >> confdefs.h <<EOF
12994 #define $ac_tr_func 1
12995 EOF
12996  
12997 else
12998   echo "$ac_t""no" 1>&6
12999 fi
13000 done
13001     
13002     fi
13003   fi
13004
13005   
13006   
13007   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13008 echo "configure:13009: checking for frexpf declaration" >&5
13009   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13010     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13011   echo $ac_n "(cached) $ac_c" 1>&6
13012 else
13013   
13014       
13015       ac_ext=C
13016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13017 ac_cpp='$CXXCPP $CPPFLAGS'
13018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13019 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13020 cross_compiling=$ac_cv_prog_cxx_cross
13021
13022       cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13025 #include <math.h>
13026 int main() {
13027  frexpf(0, 0);
13028 ; return 0; }
13029 EOF
13030 if { (eval echo configure:13031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13031   rm -rf conftest*
13032   glibcpp_cv_func_frexpf_use=yes
13033 else
13034   echo "configure: failed program was:" >&5
13035   cat conftest.$ac_ext >&5
13036   rm -rf conftest*
13037   glibcpp_cv_func_frexpf_use=no
13038 fi
13039 rm -f conftest*
13040       ac_ext=c
13041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13045 cross_compiling=$ac_cv_prog_cc_cross
13046
13047     
13048 fi
13049
13050   fi
13051   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13052
13053   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13054     for ac_func in frexpf
13055 do
13056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13057 echo "configure:13058: checking for $ac_func" >&5
13058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13059   echo $ac_n "(cached) $ac_c" 1>&6
13060 else
13061   cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 /* System header to define __stub macros and hopefully few prototypes,
13065     which can conflict with char $ac_func(); below.  */
13066 #include <assert.h>
13067 /* Override any gcc2 internal prototype to avoid an error.  */
13068 /* We use char because int might match the return type of a gcc2
13069     builtin and then its argument prototype would still apply.  */
13070 char $ac_func();
13071
13072 int main() {
13073
13074 /* The GNU C library defines this for functions which it implements
13075     to always fail with ENOSYS.  Some functions are actually named
13076     something starting with __ and the normal name is an alias.  */
13077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13078 choke me
13079 #else
13080 $ac_func();
13081 #endif
13082
13083 ; return 0; }
13084 EOF
13085 if { (eval echo configure:13086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13086   rm -rf conftest*
13087   eval "ac_cv_func_$ac_func=yes"
13088 else
13089   echo "configure: failed program was:" >&5
13090   cat conftest.$ac_ext >&5
13091   rm -rf conftest*
13092   eval "ac_cv_func_$ac_func=no"
13093 fi
13094 rm -f conftest*
13095 fi
13096
13097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13098   echo "$ac_t""yes" 1>&6
13099     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13100   cat >> confdefs.h <<EOF
13101 #define $ac_tr_func 1
13102 EOF
13103  
13104 else
13105   echo "$ac_t""no" 1>&6
13106 fi
13107 done
13108     
13109   else
13110     
13111   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
13112 echo "configure:13113: checking for _frexpf declaration" >&5
13113   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
13114     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
13115   echo $ac_n "(cached) $ac_c" 1>&6
13116 else
13117   
13118       
13119       ac_ext=C
13120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13121 ac_cpp='$CXXCPP $CPPFLAGS'
13122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13124 cross_compiling=$ac_cv_prog_cxx_cross
13125
13126       cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13129 #include <math.h>
13130 int main() {
13131  _frexpf(0, 0);
13132 ; return 0; }
13133 EOF
13134 if { (eval echo configure:13135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13135   rm -rf conftest*
13136   glibcpp_cv_func__frexpf_use=yes
13137 else
13138   echo "configure: failed program was:" >&5
13139   cat conftest.$ac_ext >&5
13140   rm -rf conftest*
13141   glibcpp_cv_func__frexpf_use=no
13142 fi
13143 rm -f conftest*
13144       ac_ext=c
13145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13146 ac_cpp='$CPP $CPPFLAGS'
13147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13149 cross_compiling=$ac_cv_prog_cc_cross
13150
13151     
13152 fi
13153
13154   fi
13155   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
13156
13157     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
13158       for ac_func in _frexpf
13159 do
13160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13161 echo "configure:13162: checking for $ac_func" >&5
13162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13163   echo $ac_n "(cached) $ac_c" 1>&6
13164 else
13165   cat > conftest.$ac_ext <<EOF
13166 #line 13167 "configure"
13167 #include "confdefs.h"
13168 /* System header to define __stub macros and hopefully few prototypes,
13169     which can conflict with char $ac_func(); below.  */
13170 #include <assert.h>
13171 /* Override any gcc2 internal prototype to avoid an error.  */
13172 /* We use char because int might match the return type of a gcc2
13173     builtin and then its argument prototype would still apply.  */
13174 char $ac_func();
13175
13176 int main() {
13177
13178 /* The GNU C library defines this for functions which it implements
13179     to always fail with ENOSYS.  Some functions are actually named
13180     something starting with __ and the normal name is an alias.  */
13181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13182 choke me
13183 #else
13184 $ac_func();
13185 #endif
13186
13187 ; return 0; }
13188 EOF
13189 if { (eval echo configure:13190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13190   rm -rf conftest*
13191   eval "ac_cv_func_$ac_func=yes"
13192 else
13193   echo "configure: failed program was:" >&5
13194   cat conftest.$ac_ext >&5
13195   rm -rf conftest*
13196   eval "ac_cv_func_$ac_func=no"
13197 fi
13198 rm -f conftest*
13199 fi
13200
13201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13202   echo "$ac_t""yes" 1>&6
13203     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13204   cat >> confdefs.h <<EOF
13205 #define $ac_tr_func 1
13206 EOF
13207  
13208 else
13209   echo "$ac_t""no" 1>&6
13210 fi
13211 done
13212     
13213     fi
13214   fi
13215
13216   
13217   
13218   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
13219 echo "configure:13220: checking for hypotf declaration" >&5
13220   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
13221     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
13222   echo $ac_n "(cached) $ac_c" 1>&6
13223 else
13224   
13225       
13226       ac_ext=C
13227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13228 ac_cpp='$CXXCPP $CPPFLAGS'
13229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13231 cross_compiling=$ac_cv_prog_cxx_cross
13232
13233       cat > conftest.$ac_ext <<EOF
13234 #line 13235 "configure"
13235 #include "confdefs.h"
13236 #include <math.h>
13237 int main() {
13238  hypotf(0, 0);
13239 ; return 0; }
13240 EOF
13241 if { (eval echo configure:13242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13242   rm -rf conftest*
13243   glibcpp_cv_func_hypotf_use=yes
13244 else
13245   echo "configure: failed program was:" >&5
13246   cat conftest.$ac_ext >&5
13247   rm -rf conftest*
13248   glibcpp_cv_func_hypotf_use=no
13249 fi
13250 rm -f conftest*
13251       ac_ext=c
13252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13253 ac_cpp='$CPP $CPPFLAGS'
13254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13256 cross_compiling=$ac_cv_prog_cc_cross
13257
13258     
13259 fi
13260
13261   fi
13262   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
13263
13264   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
13265     for ac_func in hypotf
13266 do
13267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13268 echo "configure:13269: checking for $ac_func" >&5
13269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13270   echo $ac_n "(cached) $ac_c" 1>&6
13271 else
13272   cat > conftest.$ac_ext <<EOF
13273 #line 13274 "configure"
13274 #include "confdefs.h"
13275 /* System header to define __stub macros and hopefully few prototypes,
13276     which can conflict with char $ac_func(); below.  */
13277 #include <assert.h>
13278 /* Override any gcc2 internal prototype to avoid an error.  */
13279 /* We use char because int might match the return type of a gcc2
13280     builtin and then its argument prototype would still apply.  */
13281 char $ac_func();
13282
13283 int main() {
13284
13285 /* The GNU C library defines this for functions which it implements
13286     to always fail with ENOSYS.  Some functions are actually named
13287     something starting with __ and the normal name is an alias.  */
13288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13289 choke me
13290 #else
13291 $ac_func();
13292 #endif
13293
13294 ; return 0; }
13295 EOF
13296 if { (eval echo configure:13297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13297   rm -rf conftest*
13298   eval "ac_cv_func_$ac_func=yes"
13299 else
13300   echo "configure: failed program was:" >&5
13301   cat conftest.$ac_ext >&5
13302   rm -rf conftest*
13303   eval "ac_cv_func_$ac_func=no"
13304 fi
13305 rm -f conftest*
13306 fi
13307
13308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13309   echo "$ac_t""yes" 1>&6
13310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13311   cat >> confdefs.h <<EOF
13312 #define $ac_tr_func 1
13313 EOF
13314  
13315 else
13316   echo "$ac_t""no" 1>&6
13317 fi
13318 done
13319     
13320   else
13321     
13322   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
13323 echo "configure:13324: checking for _hypotf declaration" >&5
13324   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
13325     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
13326   echo $ac_n "(cached) $ac_c" 1>&6
13327 else
13328   
13329       
13330       ac_ext=C
13331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13332 ac_cpp='$CXXCPP $CPPFLAGS'
13333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13335 cross_compiling=$ac_cv_prog_cxx_cross
13336
13337       cat > conftest.$ac_ext <<EOF
13338 #line 13339 "configure"
13339 #include "confdefs.h"
13340 #include <math.h>
13341 int main() {
13342  _hypotf(0, 0);
13343 ; return 0; }
13344 EOF
13345 if { (eval echo configure:13346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13346   rm -rf conftest*
13347   glibcpp_cv_func__hypotf_use=yes
13348 else
13349   echo "configure: failed program was:" >&5
13350   cat conftest.$ac_ext >&5
13351   rm -rf conftest*
13352   glibcpp_cv_func__hypotf_use=no
13353 fi
13354 rm -f conftest*
13355       ac_ext=c
13356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13357 ac_cpp='$CPP $CPPFLAGS'
13358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13360 cross_compiling=$ac_cv_prog_cc_cross
13361
13362     
13363 fi
13364
13365   fi
13366   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
13367
13368     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
13369       for ac_func in _hypotf
13370 do
13371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13372 echo "configure:13373: checking for $ac_func" >&5
13373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13374   echo $ac_n "(cached) $ac_c" 1>&6
13375 else
13376   cat > conftest.$ac_ext <<EOF
13377 #line 13378 "configure"
13378 #include "confdefs.h"
13379 /* System header to define __stub macros and hopefully few prototypes,
13380     which can conflict with char $ac_func(); below.  */
13381 #include <assert.h>
13382 /* Override any gcc2 internal prototype to avoid an error.  */
13383 /* We use char because int might match the return type of a gcc2
13384     builtin and then its argument prototype would still apply.  */
13385 char $ac_func();
13386
13387 int main() {
13388
13389 /* The GNU C library defines this for functions which it implements
13390     to always fail with ENOSYS.  Some functions are actually named
13391     something starting with __ and the normal name is an alias.  */
13392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13393 choke me
13394 #else
13395 $ac_func();
13396 #endif
13397
13398 ; return 0; }
13399 EOF
13400 if { (eval echo configure:13401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13401   rm -rf conftest*
13402   eval "ac_cv_func_$ac_func=yes"
13403 else
13404   echo "configure: failed program was:" >&5
13405   cat conftest.$ac_ext >&5
13406   rm -rf conftest*
13407   eval "ac_cv_func_$ac_func=no"
13408 fi
13409 rm -f conftest*
13410 fi
13411
13412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13413   echo "$ac_t""yes" 1>&6
13414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13415   cat >> confdefs.h <<EOF
13416 #define $ac_tr_func 1
13417 EOF
13418  
13419 else
13420   echo "$ac_t""no" 1>&6
13421 fi
13422 done
13423     
13424     fi
13425   fi
13426
13427   
13428   
13429   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
13430 echo "configure:13431: checking for ldexpf declaration" >&5
13431   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
13432     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
13433   echo $ac_n "(cached) $ac_c" 1>&6
13434 else
13435   
13436       
13437       ac_ext=C
13438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13439 ac_cpp='$CXXCPP $CPPFLAGS'
13440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13442 cross_compiling=$ac_cv_prog_cxx_cross
13443
13444       cat > conftest.$ac_ext <<EOF
13445 #line 13446 "configure"
13446 #include "confdefs.h"
13447 #include <math.h>
13448 int main() {
13449  ldexpf(0, 0);
13450 ; return 0; }
13451 EOF
13452 if { (eval echo configure:13453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13453   rm -rf conftest*
13454   glibcpp_cv_func_ldexpf_use=yes
13455 else
13456   echo "configure: failed program was:" >&5
13457   cat conftest.$ac_ext >&5
13458   rm -rf conftest*
13459   glibcpp_cv_func_ldexpf_use=no
13460 fi
13461 rm -f conftest*
13462       ac_ext=c
13463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13464 ac_cpp='$CPP $CPPFLAGS'
13465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13467 cross_compiling=$ac_cv_prog_cc_cross
13468
13469     
13470 fi
13471
13472   fi
13473   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
13474
13475   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
13476     for ac_func in ldexpf
13477 do
13478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13479 echo "configure:13480: checking for $ac_func" >&5
13480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13481   echo $ac_n "(cached) $ac_c" 1>&6
13482 else
13483   cat > conftest.$ac_ext <<EOF
13484 #line 13485 "configure"
13485 #include "confdefs.h"
13486 /* System header to define __stub macros and hopefully few prototypes,
13487     which can conflict with char $ac_func(); below.  */
13488 #include <assert.h>
13489 /* Override any gcc2 internal prototype to avoid an error.  */
13490 /* We use char because int might match the return type of a gcc2
13491     builtin and then its argument prototype would still apply.  */
13492 char $ac_func();
13493
13494 int main() {
13495
13496 /* The GNU C library defines this for functions which it implements
13497     to always fail with ENOSYS.  Some functions are actually named
13498     something starting with __ and the normal name is an alias.  */
13499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13500 choke me
13501 #else
13502 $ac_func();
13503 #endif
13504
13505 ; return 0; }
13506 EOF
13507 if { (eval echo configure:13508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13508   rm -rf conftest*
13509   eval "ac_cv_func_$ac_func=yes"
13510 else
13511   echo "configure: failed program was:" >&5
13512   cat conftest.$ac_ext >&5
13513   rm -rf conftest*
13514   eval "ac_cv_func_$ac_func=no"
13515 fi
13516 rm -f conftest*
13517 fi
13518
13519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13520   echo "$ac_t""yes" 1>&6
13521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13522   cat >> confdefs.h <<EOF
13523 #define $ac_tr_func 1
13524 EOF
13525  
13526 else
13527   echo "$ac_t""no" 1>&6
13528 fi
13529 done
13530     
13531   else
13532     
13533   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
13534 echo "configure:13535: checking for _ldexpf declaration" >&5
13535   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
13536     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
13537   echo $ac_n "(cached) $ac_c" 1>&6
13538 else
13539   
13540       
13541       ac_ext=C
13542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13543 ac_cpp='$CXXCPP $CPPFLAGS'
13544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13546 cross_compiling=$ac_cv_prog_cxx_cross
13547
13548       cat > conftest.$ac_ext <<EOF
13549 #line 13550 "configure"
13550 #include "confdefs.h"
13551 #include <math.h>
13552 int main() {
13553  _ldexpf(0, 0);
13554 ; return 0; }
13555 EOF
13556 if { (eval echo configure:13557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13557   rm -rf conftest*
13558   glibcpp_cv_func__ldexpf_use=yes
13559 else
13560   echo "configure: failed program was:" >&5
13561   cat conftest.$ac_ext >&5
13562   rm -rf conftest*
13563   glibcpp_cv_func__ldexpf_use=no
13564 fi
13565 rm -f conftest*
13566       ac_ext=c
13567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13568 ac_cpp='$CPP $CPPFLAGS'
13569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13571 cross_compiling=$ac_cv_prog_cc_cross
13572
13573     
13574 fi
13575
13576   fi
13577   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
13578
13579     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
13580       for ac_func in _ldexpf
13581 do
13582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13583 echo "configure:13584: checking for $ac_func" >&5
13584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13585   echo $ac_n "(cached) $ac_c" 1>&6
13586 else
13587   cat > conftest.$ac_ext <<EOF
13588 #line 13589 "configure"
13589 #include "confdefs.h"
13590 /* System header to define __stub macros and hopefully few prototypes,
13591     which can conflict with char $ac_func(); below.  */
13592 #include <assert.h>
13593 /* Override any gcc2 internal prototype to avoid an error.  */
13594 /* We use char because int might match the return type of a gcc2
13595     builtin and then its argument prototype would still apply.  */
13596 char $ac_func();
13597
13598 int main() {
13599
13600 /* The GNU C library defines this for functions which it implements
13601     to always fail with ENOSYS.  Some functions are actually named
13602     something starting with __ and the normal name is an alias.  */
13603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13604 choke me
13605 #else
13606 $ac_func();
13607 #endif
13608
13609 ; return 0; }
13610 EOF
13611 if { (eval echo configure:13612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13612   rm -rf conftest*
13613   eval "ac_cv_func_$ac_func=yes"
13614 else
13615   echo "configure: failed program was:" >&5
13616   cat conftest.$ac_ext >&5
13617   rm -rf conftest*
13618   eval "ac_cv_func_$ac_func=no"
13619 fi
13620 rm -f conftest*
13621 fi
13622
13623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13624   echo "$ac_t""yes" 1>&6
13625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13626   cat >> confdefs.h <<EOF
13627 #define $ac_tr_func 1
13628 EOF
13629  
13630 else
13631   echo "$ac_t""no" 1>&6
13632 fi
13633 done
13634     
13635     fi
13636   fi
13637
13638   
13639   
13640   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
13641 echo "configure:13642: checking for logf declaration" >&5
13642   if test x${glibcpp_cv_func_logf_use+set} != xset; then
13643     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
13644   echo $ac_n "(cached) $ac_c" 1>&6
13645 else
13646   
13647       
13648       ac_ext=C
13649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13650 ac_cpp='$CXXCPP $CPPFLAGS'
13651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13653 cross_compiling=$ac_cv_prog_cxx_cross
13654
13655       cat > conftest.$ac_ext <<EOF
13656 #line 13657 "configure"
13657 #include "confdefs.h"
13658 #include <math.h>
13659                       #ifdef HAVE_IEEEFP_H
13660                       #include <ieeefp.h>
13661                       #endif
13662                      
13663 int main() {
13664  logf(0);
13665 ; return 0; }
13666 EOF
13667 if { (eval echo configure:13668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13668   rm -rf conftest*
13669   glibcpp_cv_func_logf_use=yes
13670 else
13671   echo "configure: failed program was:" >&5
13672   cat conftest.$ac_ext >&5
13673   rm -rf conftest*
13674   glibcpp_cv_func_logf_use=no
13675 fi
13676 rm -f conftest*
13677       ac_ext=c
13678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13679 ac_cpp='$CPP $CPPFLAGS'
13680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13682 cross_compiling=$ac_cv_prog_cc_cross
13683
13684     
13685 fi
13686
13687   fi
13688   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
13689
13690   if test x$glibcpp_cv_func_logf_use = x"yes"; then
13691     for ac_func in logf
13692 do
13693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13694 echo "configure:13695: checking for $ac_func" >&5
13695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13696   echo $ac_n "(cached) $ac_c" 1>&6
13697 else
13698   cat > conftest.$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13701 /* System header to define __stub macros and hopefully few prototypes,
13702     which can conflict with char $ac_func(); below.  */
13703 #include <assert.h>
13704 /* Override any gcc2 internal prototype to avoid an error.  */
13705 /* We use char because int might match the return type of a gcc2
13706     builtin and then its argument prototype would still apply.  */
13707 char $ac_func();
13708
13709 int main() {
13710
13711 /* The GNU C library defines this for functions which it implements
13712     to always fail with ENOSYS.  Some functions are actually named
13713     something starting with __ and the normal name is an alias.  */
13714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13715 choke me
13716 #else
13717 $ac_func();
13718 #endif
13719
13720 ; return 0; }
13721 EOF
13722 if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13723   rm -rf conftest*
13724   eval "ac_cv_func_$ac_func=yes"
13725 else
13726   echo "configure: failed program was:" >&5
13727   cat conftest.$ac_ext >&5
13728   rm -rf conftest*
13729   eval "ac_cv_func_$ac_func=no"
13730 fi
13731 rm -f conftest*
13732 fi
13733
13734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13735   echo "$ac_t""yes" 1>&6
13736     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13737   cat >> confdefs.h <<EOF
13738 #define $ac_tr_func 1
13739 EOF
13740  
13741 else
13742   echo "$ac_t""no" 1>&6
13743 fi
13744 done
13745     
13746   else
13747     
13748   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
13749 echo "configure:13750: checking for _logf declaration" >&5
13750   if test x${glibcpp_cv_func__logf_use+set} != xset; then
13751     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
13752   echo $ac_n "(cached) $ac_c" 1>&6
13753 else
13754   
13755       
13756       ac_ext=C
13757 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13758 ac_cpp='$CXXCPP $CPPFLAGS'
13759 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13760 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13761 cross_compiling=$ac_cv_prog_cxx_cross
13762
13763       cat > conftest.$ac_ext <<EOF
13764 #line 13765 "configure"
13765 #include "confdefs.h"
13766 #include <math.h>
13767                       #ifdef HAVE_IEEEFP_H
13768                       #include <ieeefp.h>
13769                       #endif
13770                      
13771 int main() {
13772  _logf(0);
13773 ; return 0; }
13774 EOF
13775 if { (eval echo configure:13776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13776   rm -rf conftest*
13777   glibcpp_cv_func__logf_use=yes
13778 else
13779   echo "configure: failed program was:" >&5
13780   cat conftest.$ac_ext >&5
13781   rm -rf conftest*
13782   glibcpp_cv_func__logf_use=no
13783 fi
13784 rm -f conftest*
13785       ac_ext=c
13786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13787 ac_cpp='$CPP $CPPFLAGS'
13788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13790 cross_compiling=$ac_cv_prog_cc_cross
13791
13792     
13793 fi
13794
13795   fi
13796   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
13797
13798     if test x$glibcpp_cv_func__logf_use = x"yes"; then
13799       for ac_func in _logf
13800 do
13801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13802 echo "configure:13803: checking for $ac_func" >&5
13803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13804   echo $ac_n "(cached) $ac_c" 1>&6
13805 else
13806   cat > conftest.$ac_ext <<EOF
13807 #line 13808 "configure"
13808 #include "confdefs.h"
13809 /* System header to define __stub macros and hopefully few prototypes,
13810     which can conflict with char $ac_func(); below.  */
13811 #include <assert.h>
13812 /* Override any gcc2 internal prototype to avoid an error.  */
13813 /* We use char because int might match the return type of a gcc2
13814     builtin and then its argument prototype would still apply.  */
13815 char $ac_func();
13816
13817 int main() {
13818
13819 /* The GNU C library defines this for functions which it implements
13820     to always fail with ENOSYS.  Some functions are actually named
13821     something starting with __ and the normal name is an alias.  */
13822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13823 choke me
13824 #else
13825 $ac_func();
13826 #endif
13827
13828 ; return 0; }
13829 EOF
13830 if { (eval echo configure:13831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13831   rm -rf conftest*
13832   eval "ac_cv_func_$ac_func=yes"
13833 else
13834   echo "configure: failed program was:" >&5
13835   cat conftest.$ac_ext >&5
13836   rm -rf conftest*
13837   eval "ac_cv_func_$ac_func=no"
13838 fi
13839 rm -f conftest*
13840 fi
13841
13842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13843   echo "$ac_t""yes" 1>&6
13844     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13845   cat >> confdefs.h <<EOF
13846 #define $ac_tr_func 1
13847 EOF
13848  
13849 else
13850   echo "$ac_t""no" 1>&6
13851 fi
13852 done
13853     
13854     fi
13855   fi
13856
13857   
13858   
13859   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
13860 echo "configure:13861: checking for log10f declaration" >&5
13861   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
13862     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
13863   echo $ac_n "(cached) $ac_c" 1>&6
13864 else
13865   
13866       
13867       ac_ext=C
13868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13869 ac_cpp='$CXXCPP $CPPFLAGS'
13870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13872 cross_compiling=$ac_cv_prog_cxx_cross
13873
13874       cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13877 #include <math.h>
13878                       #ifdef HAVE_IEEEFP_H
13879                       #include <ieeefp.h>
13880                       #endif
13881                      
13882 int main() {
13883  log10f(0);
13884 ; return 0; }
13885 EOF
13886 if { (eval echo configure:13887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13887   rm -rf conftest*
13888   glibcpp_cv_func_log10f_use=yes
13889 else
13890   echo "configure: failed program was:" >&5
13891   cat conftest.$ac_ext >&5
13892   rm -rf conftest*
13893   glibcpp_cv_func_log10f_use=no
13894 fi
13895 rm -f conftest*
13896       ac_ext=c
13897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13898 ac_cpp='$CPP $CPPFLAGS'
13899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13901 cross_compiling=$ac_cv_prog_cc_cross
13902
13903     
13904 fi
13905
13906   fi
13907   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13908
13909   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13910     for ac_func in log10f
13911 do
13912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13913 echo "configure:13914: checking for $ac_func" >&5
13914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13915   echo $ac_n "(cached) $ac_c" 1>&6
13916 else
13917   cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13920 /* System header to define __stub macros and hopefully few prototypes,
13921     which can conflict with char $ac_func(); below.  */
13922 #include <assert.h>
13923 /* Override any gcc2 internal prototype to avoid an error.  */
13924 /* We use char because int might match the return type of a gcc2
13925     builtin and then its argument prototype would still apply.  */
13926 char $ac_func();
13927
13928 int main() {
13929
13930 /* The GNU C library defines this for functions which it implements
13931     to always fail with ENOSYS.  Some functions are actually named
13932     something starting with __ and the normal name is an alias.  */
13933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13934 choke me
13935 #else
13936 $ac_func();
13937 #endif
13938
13939 ; return 0; }
13940 EOF
13941 if { (eval echo configure:13942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13942   rm -rf conftest*
13943   eval "ac_cv_func_$ac_func=yes"
13944 else
13945   echo "configure: failed program was:" >&5
13946   cat conftest.$ac_ext >&5
13947   rm -rf conftest*
13948   eval "ac_cv_func_$ac_func=no"
13949 fi
13950 rm -f conftest*
13951 fi
13952
13953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13954   echo "$ac_t""yes" 1>&6
13955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13956   cat >> confdefs.h <<EOF
13957 #define $ac_tr_func 1
13958 EOF
13959  
13960 else
13961   echo "$ac_t""no" 1>&6
13962 fi
13963 done
13964     
13965   else
13966     
13967   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13968 echo "configure:13969: checking for _log10f declaration" >&5
13969   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13970     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13971   echo $ac_n "(cached) $ac_c" 1>&6
13972 else
13973   
13974       
13975       ac_ext=C
13976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13977 ac_cpp='$CXXCPP $CPPFLAGS'
13978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13980 cross_compiling=$ac_cv_prog_cxx_cross
13981
13982       cat > conftest.$ac_ext <<EOF
13983 #line 13984 "configure"
13984 #include "confdefs.h"
13985 #include <math.h>
13986                       #ifdef HAVE_IEEEFP_H
13987                       #include <ieeefp.h>
13988                       #endif
13989                      
13990 int main() {
13991  _log10f(0);
13992 ; return 0; }
13993 EOF
13994 if { (eval echo configure:13995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13995   rm -rf conftest*
13996   glibcpp_cv_func__log10f_use=yes
13997 else
13998   echo "configure: failed program was:" >&5
13999   cat conftest.$ac_ext >&5
14000   rm -rf conftest*
14001   glibcpp_cv_func__log10f_use=no
14002 fi
14003 rm -f conftest*
14004       ac_ext=c
14005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14006 ac_cpp='$CPP $CPPFLAGS'
14007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14009 cross_compiling=$ac_cv_prog_cc_cross
14010
14011     
14012 fi
14013
14014   fi
14015   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14016
14017     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14018       for ac_func in _log10f
14019 do
14020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14021 echo "configure:14022: checking for $ac_func" >&5
14022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14023   echo $ac_n "(cached) $ac_c" 1>&6
14024 else
14025   cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14028 /* System header to define __stub macros and hopefully few prototypes,
14029     which can conflict with char $ac_func(); below.  */
14030 #include <assert.h>
14031 /* Override any gcc2 internal prototype to avoid an error.  */
14032 /* We use char because int might match the return type of a gcc2
14033     builtin and then its argument prototype would still apply.  */
14034 char $ac_func();
14035
14036 int main() {
14037
14038 /* The GNU C library defines this for functions which it implements
14039     to always fail with ENOSYS.  Some functions are actually named
14040     something starting with __ and the normal name is an alias.  */
14041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14042 choke me
14043 #else
14044 $ac_func();
14045 #endif
14046
14047 ; return 0; }
14048 EOF
14049 if { (eval echo configure:14050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14050   rm -rf conftest*
14051   eval "ac_cv_func_$ac_func=yes"
14052 else
14053   echo "configure: failed program was:" >&5
14054   cat conftest.$ac_ext >&5
14055   rm -rf conftest*
14056   eval "ac_cv_func_$ac_func=no"
14057 fi
14058 rm -f conftest*
14059 fi
14060
14061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14062   echo "$ac_t""yes" 1>&6
14063     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14064   cat >> confdefs.h <<EOF
14065 #define $ac_tr_func 1
14066 EOF
14067  
14068 else
14069   echo "$ac_t""no" 1>&6
14070 fi
14071 done
14072     
14073     fi
14074   fi
14075
14076   
14077   
14078   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14079 echo "configure:14080: checking for modff declaration" >&5
14080   if test x${glibcpp_cv_func_modff_use+set} != xset; then
14081     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
14082   echo $ac_n "(cached) $ac_c" 1>&6
14083 else
14084   
14085       
14086       ac_ext=C
14087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14088 ac_cpp='$CXXCPP $CPPFLAGS'
14089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14091 cross_compiling=$ac_cv_prog_cxx_cross
14092
14093       cat > conftest.$ac_ext <<EOF
14094 #line 14095 "configure"
14095 #include "confdefs.h"
14096 #include <math.h>
14097 int main() {
14098  modff(0, 0);
14099 ; return 0; }
14100 EOF
14101 if { (eval echo configure:14102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14102   rm -rf conftest*
14103   glibcpp_cv_func_modff_use=yes
14104 else
14105   echo "configure: failed program was:" >&5
14106   cat conftest.$ac_ext >&5
14107   rm -rf conftest*
14108   glibcpp_cv_func_modff_use=no
14109 fi
14110 rm -f conftest*
14111       ac_ext=c
14112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14116 cross_compiling=$ac_cv_prog_cc_cross
14117
14118     
14119 fi
14120
14121   fi
14122   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
14123
14124   if test x$glibcpp_cv_func_modff_use = x"yes"; then
14125     for ac_func in modff
14126 do
14127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14128 echo "configure:14129: checking for $ac_func" >&5
14129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14130   echo $ac_n "(cached) $ac_c" 1>&6
14131 else
14132   cat > conftest.$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14135 /* System header to define __stub macros and hopefully few prototypes,
14136     which can conflict with char $ac_func(); below.  */
14137 #include <assert.h>
14138 /* Override any gcc2 internal prototype to avoid an error.  */
14139 /* We use char because int might match the return type of a gcc2
14140     builtin and then its argument prototype would still apply.  */
14141 char $ac_func();
14142
14143 int main() {
14144
14145 /* The GNU C library defines this for functions which it implements
14146     to always fail with ENOSYS.  Some functions are actually named
14147     something starting with __ and the normal name is an alias.  */
14148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14149 choke me
14150 #else
14151 $ac_func();
14152 #endif
14153
14154 ; return 0; }
14155 EOF
14156 if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14157   rm -rf conftest*
14158   eval "ac_cv_func_$ac_func=yes"
14159 else
14160   echo "configure: failed program was:" >&5
14161   cat conftest.$ac_ext >&5
14162   rm -rf conftest*
14163   eval "ac_cv_func_$ac_func=no"
14164 fi
14165 rm -f conftest*
14166 fi
14167
14168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14169   echo "$ac_t""yes" 1>&6
14170     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14171   cat >> confdefs.h <<EOF
14172 #define $ac_tr_func 1
14173 EOF
14174  
14175 else
14176   echo "$ac_t""no" 1>&6
14177 fi
14178 done
14179     
14180   else
14181     
14182   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
14183 echo "configure:14184: checking for _modff declaration" >&5
14184   if test x${glibcpp_cv_func__modff_use+set} != xset; then
14185     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
14186   echo $ac_n "(cached) $ac_c" 1>&6
14187 else
14188   
14189       
14190       ac_ext=C
14191 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14192 ac_cpp='$CXXCPP $CPPFLAGS'
14193 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14194 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14195 cross_compiling=$ac_cv_prog_cxx_cross
14196
14197       cat > conftest.$ac_ext <<EOF
14198 #line 14199 "configure"
14199 #include "confdefs.h"
14200 #include <math.h>
14201 int main() {
14202  _modff(0, 0);
14203 ; return 0; }
14204 EOF
14205 if { (eval echo configure:14206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14206   rm -rf conftest*
14207   glibcpp_cv_func__modff_use=yes
14208 else
14209   echo "configure: failed program was:" >&5
14210   cat conftest.$ac_ext >&5
14211   rm -rf conftest*
14212   glibcpp_cv_func__modff_use=no
14213 fi
14214 rm -f conftest*
14215       ac_ext=c
14216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14217 ac_cpp='$CPP $CPPFLAGS'
14218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14220 cross_compiling=$ac_cv_prog_cc_cross
14221
14222     
14223 fi
14224
14225   fi
14226   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
14227
14228     if test x$glibcpp_cv_func__modff_use = x"yes"; then
14229       for ac_func in _modff
14230 do
14231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14232 echo "configure:14233: checking for $ac_func" >&5
14233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14234   echo $ac_n "(cached) $ac_c" 1>&6
14235 else
14236   cat > conftest.$ac_ext <<EOF
14237 #line 14238 "configure"
14238 #include "confdefs.h"
14239 /* System header to define __stub macros and hopefully few prototypes,
14240     which can conflict with char $ac_func(); below.  */
14241 #include <assert.h>
14242 /* Override any gcc2 internal prototype to avoid an error.  */
14243 /* We use char because int might match the return type of a gcc2
14244     builtin and then its argument prototype would still apply.  */
14245 char $ac_func();
14246
14247 int main() {
14248
14249 /* The GNU C library defines this for functions which it implements
14250     to always fail with ENOSYS.  Some functions are actually named
14251     something starting with __ and the normal name is an alias.  */
14252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14253 choke me
14254 #else
14255 $ac_func();
14256 #endif
14257
14258 ; return 0; }
14259 EOF
14260 if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14261   rm -rf conftest*
14262   eval "ac_cv_func_$ac_func=yes"
14263 else
14264   echo "configure: failed program was:" >&5
14265   cat conftest.$ac_ext >&5
14266   rm -rf conftest*
14267   eval "ac_cv_func_$ac_func=no"
14268 fi
14269 rm -f conftest*
14270 fi
14271
14272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14273   echo "$ac_t""yes" 1>&6
14274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14275   cat >> confdefs.h <<EOF
14276 #define $ac_tr_func 1
14277 EOF
14278  
14279 else
14280   echo "$ac_t""no" 1>&6
14281 fi
14282 done
14283     
14284     fi
14285   fi
14286
14287   
14288   
14289   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
14290 echo "configure:14291: checking for powf declaration" >&5
14291   if test x${glibcpp_cv_func_powf_use+set} != xset; then
14292     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
14293   echo $ac_n "(cached) $ac_c" 1>&6
14294 else
14295   
14296       
14297       ac_ext=C
14298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14299 ac_cpp='$CXXCPP $CPPFLAGS'
14300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14302 cross_compiling=$ac_cv_prog_cxx_cross
14303
14304       cat > conftest.$ac_ext <<EOF
14305 #line 14306 "configure"
14306 #include "confdefs.h"
14307 #include <math.h>
14308 int main() {
14309  powf(0, 0);
14310 ; return 0; }
14311 EOF
14312 if { (eval echo configure:14313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14313   rm -rf conftest*
14314   glibcpp_cv_func_powf_use=yes
14315 else
14316   echo "configure: failed program was:" >&5
14317   cat conftest.$ac_ext >&5
14318   rm -rf conftest*
14319   glibcpp_cv_func_powf_use=no
14320 fi
14321 rm -f conftest*
14322       ac_ext=c
14323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14324 ac_cpp='$CPP $CPPFLAGS'
14325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14327 cross_compiling=$ac_cv_prog_cc_cross
14328
14329     
14330 fi
14331
14332   fi
14333   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
14334
14335   if test x$glibcpp_cv_func_powf_use = x"yes"; then
14336     for ac_func in powf
14337 do
14338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14339 echo "configure:14340: checking for $ac_func" >&5
14340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14341   echo $ac_n "(cached) $ac_c" 1>&6
14342 else
14343   cat > conftest.$ac_ext <<EOF
14344 #line 14345 "configure"
14345 #include "confdefs.h"
14346 /* System header to define __stub macros and hopefully few prototypes,
14347     which can conflict with char $ac_func(); below.  */
14348 #include <assert.h>
14349 /* Override any gcc2 internal prototype to avoid an error.  */
14350 /* We use char because int might match the return type of a gcc2
14351     builtin and then its argument prototype would still apply.  */
14352 char $ac_func();
14353
14354 int main() {
14355
14356 /* The GNU C library defines this for functions which it implements
14357     to always fail with ENOSYS.  Some functions are actually named
14358     something starting with __ and the normal name is an alias.  */
14359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14360 choke me
14361 #else
14362 $ac_func();
14363 #endif
14364
14365 ; return 0; }
14366 EOF
14367 if { (eval echo configure:14368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14368   rm -rf conftest*
14369   eval "ac_cv_func_$ac_func=yes"
14370 else
14371   echo "configure: failed program was:" >&5
14372   cat conftest.$ac_ext >&5
14373   rm -rf conftest*
14374   eval "ac_cv_func_$ac_func=no"
14375 fi
14376 rm -f conftest*
14377 fi
14378
14379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14380   echo "$ac_t""yes" 1>&6
14381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14382   cat >> confdefs.h <<EOF
14383 #define $ac_tr_func 1
14384 EOF
14385  
14386 else
14387   echo "$ac_t""no" 1>&6
14388 fi
14389 done
14390     
14391   else
14392     
14393   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
14394 echo "configure:14395: checking for _powf declaration" >&5
14395   if test x${glibcpp_cv_func__powf_use+set} != xset; then
14396     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
14397   echo $ac_n "(cached) $ac_c" 1>&6
14398 else
14399   
14400       
14401       ac_ext=C
14402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14403 ac_cpp='$CXXCPP $CPPFLAGS'
14404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14406 cross_compiling=$ac_cv_prog_cxx_cross
14407
14408       cat > conftest.$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 #include <math.h>
14412 int main() {
14413  _powf(0, 0);
14414 ; return 0; }
14415 EOF
14416 if { (eval echo configure:14417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14417   rm -rf conftest*
14418   glibcpp_cv_func__powf_use=yes
14419 else
14420   echo "configure: failed program was:" >&5
14421   cat conftest.$ac_ext >&5
14422   rm -rf conftest*
14423   glibcpp_cv_func__powf_use=no
14424 fi
14425 rm -f conftest*
14426       ac_ext=c
14427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14428 ac_cpp='$CPP $CPPFLAGS'
14429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14431 cross_compiling=$ac_cv_prog_cc_cross
14432
14433     
14434 fi
14435
14436   fi
14437   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
14438
14439     if test x$glibcpp_cv_func__powf_use = x"yes"; then
14440       for ac_func in _powf
14441 do
14442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14443 echo "configure:14444: checking for $ac_func" >&5
14444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14445   echo $ac_n "(cached) $ac_c" 1>&6
14446 else
14447   cat > conftest.$ac_ext <<EOF
14448 #line 14449 "configure"
14449 #include "confdefs.h"
14450 /* System header to define __stub macros and hopefully few prototypes,
14451     which can conflict with char $ac_func(); below.  */
14452 #include <assert.h>
14453 /* Override any gcc2 internal prototype to avoid an error.  */
14454 /* We use char because int might match the return type of a gcc2
14455     builtin and then its argument prototype would still apply.  */
14456 char $ac_func();
14457
14458 int main() {
14459
14460 /* The GNU C library defines this for functions which it implements
14461     to always fail with ENOSYS.  Some functions are actually named
14462     something starting with __ and the normal name is an alias.  */
14463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14464 choke me
14465 #else
14466 $ac_func();
14467 #endif
14468
14469 ; return 0; }
14470 EOF
14471 if { (eval echo configure:14472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14472   rm -rf conftest*
14473   eval "ac_cv_func_$ac_func=yes"
14474 else
14475   echo "configure: failed program was:" >&5
14476   cat conftest.$ac_ext >&5
14477   rm -rf conftest*
14478   eval "ac_cv_func_$ac_func=no"
14479 fi
14480 rm -f conftest*
14481 fi
14482
14483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14484   echo "$ac_t""yes" 1>&6
14485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14486   cat >> confdefs.h <<EOF
14487 #define $ac_tr_func 1
14488 EOF
14489  
14490 else
14491   echo "$ac_t""no" 1>&6
14492 fi
14493 done
14494     
14495     fi
14496   fi
14497
14498   
14499   
14500   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
14501 echo "configure:14502: checking for sqrtf declaration" >&5
14502   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
14503     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
14504   echo $ac_n "(cached) $ac_c" 1>&6
14505 else
14506   
14507       
14508       ac_ext=C
14509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14510 ac_cpp='$CXXCPP $CPPFLAGS'
14511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14513 cross_compiling=$ac_cv_prog_cxx_cross
14514
14515       cat > conftest.$ac_ext <<EOF
14516 #line 14517 "configure"
14517 #include "confdefs.h"
14518 #include <math.h>
14519                       #ifdef HAVE_IEEEFP_H
14520                       #include <ieeefp.h>
14521                       #endif
14522                      
14523 int main() {
14524  sqrtf(0);
14525 ; return 0; }
14526 EOF
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14528   rm -rf conftest*
14529   glibcpp_cv_func_sqrtf_use=yes
14530 else
14531   echo "configure: failed program was:" >&5
14532   cat conftest.$ac_ext >&5
14533   rm -rf conftest*
14534   glibcpp_cv_func_sqrtf_use=no
14535 fi
14536 rm -f conftest*
14537       ac_ext=c
14538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14539 ac_cpp='$CPP $CPPFLAGS'
14540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14542 cross_compiling=$ac_cv_prog_cc_cross
14543
14544     
14545 fi
14546
14547   fi
14548   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
14549
14550   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
14551     for ac_func in sqrtf
14552 do
14553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14554 echo "configure:14555: checking for $ac_func" >&5
14555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14556   echo $ac_n "(cached) $ac_c" 1>&6
14557 else
14558   cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 /* System header to define __stub macros and hopefully few prototypes,
14562     which can conflict with char $ac_func(); below.  */
14563 #include <assert.h>
14564 /* Override any gcc2 internal prototype to avoid an error.  */
14565 /* We use char because int might match the return type of a gcc2
14566     builtin and then its argument prototype would still apply.  */
14567 char $ac_func();
14568
14569 int main() {
14570
14571 /* The GNU C library defines this for functions which it implements
14572     to always fail with ENOSYS.  Some functions are actually named
14573     something starting with __ and the normal name is an alias.  */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 choke me
14576 #else
14577 $ac_func();
14578 #endif
14579
14580 ; return 0; }
14581 EOF
14582 if { (eval echo configure:14583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14583   rm -rf conftest*
14584   eval "ac_cv_func_$ac_func=yes"
14585 else
14586   echo "configure: failed program was:" >&5
14587   cat conftest.$ac_ext >&5
14588   rm -rf conftest*
14589   eval "ac_cv_func_$ac_func=no"
14590 fi
14591 rm -f conftest*
14592 fi
14593
14594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14595   echo "$ac_t""yes" 1>&6
14596     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14597   cat >> confdefs.h <<EOF
14598 #define $ac_tr_func 1
14599 EOF
14600  
14601 else
14602   echo "$ac_t""no" 1>&6
14603 fi
14604 done
14605     
14606   else
14607     
14608   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
14609 echo "configure:14610: checking for _sqrtf declaration" >&5
14610   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
14611     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
14612   echo $ac_n "(cached) $ac_c" 1>&6
14613 else
14614   
14615       
14616       ac_ext=C
14617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14618 ac_cpp='$CXXCPP $CPPFLAGS'
14619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14621 cross_compiling=$ac_cv_prog_cxx_cross
14622
14623       cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14626 #include <math.h>
14627                       #ifdef HAVE_IEEEFP_H
14628                       #include <ieeefp.h>
14629                       #endif
14630                      
14631 int main() {
14632  _sqrtf(0);
14633 ; return 0; }
14634 EOF
14635 if { (eval echo configure:14636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14636   rm -rf conftest*
14637   glibcpp_cv_func__sqrtf_use=yes
14638 else
14639   echo "configure: failed program was:" >&5
14640   cat conftest.$ac_ext >&5
14641   rm -rf conftest*
14642   glibcpp_cv_func__sqrtf_use=no
14643 fi
14644 rm -f conftest*
14645       ac_ext=c
14646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14647 ac_cpp='$CPP $CPPFLAGS'
14648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14650 cross_compiling=$ac_cv_prog_cc_cross
14651
14652     
14653 fi
14654
14655   fi
14656   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
14657
14658     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
14659       for ac_func in _sqrtf
14660 do
14661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14662 echo "configure:14663: checking for $ac_func" >&5
14663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14664   echo $ac_n "(cached) $ac_c" 1>&6
14665 else
14666   cat > conftest.$ac_ext <<EOF
14667 #line 14668 "configure"
14668 #include "confdefs.h"
14669 /* System header to define __stub macros and hopefully few prototypes,
14670     which can conflict with char $ac_func(); below.  */
14671 #include <assert.h>
14672 /* Override any gcc2 internal prototype to avoid an error.  */
14673 /* We use char because int might match the return type of a gcc2
14674     builtin and then its argument prototype would still apply.  */
14675 char $ac_func();
14676
14677 int main() {
14678
14679 /* The GNU C library defines this for functions which it implements
14680     to always fail with ENOSYS.  Some functions are actually named
14681     something starting with __ and the normal name is an alias.  */
14682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14683 choke me
14684 #else
14685 $ac_func();
14686 #endif
14687
14688 ; return 0; }
14689 EOF
14690 if { (eval echo configure:14691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14691   rm -rf conftest*
14692   eval "ac_cv_func_$ac_func=yes"
14693 else
14694   echo "configure: failed program was:" >&5
14695   cat conftest.$ac_ext >&5
14696   rm -rf conftest*
14697   eval "ac_cv_func_$ac_func=no"
14698 fi
14699 rm -f conftest*
14700 fi
14701
14702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14703   echo "$ac_t""yes" 1>&6
14704     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14705   cat >> confdefs.h <<EOF
14706 #define $ac_tr_func 1
14707 EOF
14708  
14709 else
14710   echo "$ac_t""no" 1>&6
14711 fi
14712 done
14713     
14714     fi
14715   fi
14716
14717   
14718   
14719   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
14720 echo "configure:14721: checking for sincosf declaration" >&5
14721   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
14722     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
14723   echo $ac_n "(cached) $ac_c" 1>&6
14724 else
14725   
14726       
14727       ac_ext=C
14728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14729 ac_cpp='$CXXCPP $CPPFLAGS'
14730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14732 cross_compiling=$ac_cv_prog_cxx_cross
14733
14734       cat > conftest.$ac_ext <<EOF
14735 #line 14736 "configure"
14736 #include "confdefs.h"
14737 #include <math.h>
14738 int main() {
14739  sincosf(0, 0, 0);
14740 ; return 0; }
14741 EOF
14742 if { (eval echo configure:14743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14743   rm -rf conftest*
14744   glibcpp_cv_func_sincosf_use=yes
14745 else
14746   echo "configure: failed program was:" >&5
14747   cat conftest.$ac_ext >&5
14748   rm -rf conftest*
14749   glibcpp_cv_func_sincosf_use=no
14750 fi
14751 rm -f conftest*
14752       ac_ext=c
14753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14754 ac_cpp='$CPP $CPPFLAGS'
14755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14757 cross_compiling=$ac_cv_prog_cc_cross
14758
14759     
14760 fi
14761
14762   fi
14763   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
14764
14765   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
14766     for ac_func in sincosf
14767 do
14768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14769 echo "configure:14770: checking for $ac_func" >&5
14770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14771   echo $ac_n "(cached) $ac_c" 1>&6
14772 else
14773   cat > conftest.$ac_ext <<EOF
14774 #line 14775 "configure"
14775 #include "confdefs.h"
14776 /* System header to define __stub macros and hopefully few prototypes,
14777     which can conflict with char $ac_func(); below.  */
14778 #include <assert.h>
14779 /* Override any gcc2 internal prototype to avoid an error.  */
14780 /* We use char because int might match the return type of a gcc2
14781     builtin and then its argument prototype would still apply.  */
14782 char $ac_func();
14783
14784 int main() {
14785
14786 /* The GNU C library defines this for functions which it implements
14787     to always fail with ENOSYS.  Some functions are actually named
14788     something starting with __ and the normal name is an alias.  */
14789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14790 choke me
14791 #else
14792 $ac_func();
14793 #endif
14794
14795 ; return 0; }
14796 EOF
14797 if { (eval echo configure:14798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14798   rm -rf conftest*
14799   eval "ac_cv_func_$ac_func=yes"
14800 else
14801   echo "configure: failed program was:" >&5
14802   cat conftest.$ac_ext >&5
14803   rm -rf conftest*
14804   eval "ac_cv_func_$ac_func=no"
14805 fi
14806 rm -f conftest*
14807 fi
14808
14809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14810   echo "$ac_t""yes" 1>&6
14811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14812   cat >> confdefs.h <<EOF
14813 #define $ac_tr_func 1
14814 EOF
14815  
14816 else
14817   echo "$ac_t""no" 1>&6
14818 fi
14819 done
14820     
14821   else
14822     
14823   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
14824 echo "configure:14825: checking for _sincosf declaration" >&5
14825   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
14826     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
14827   echo $ac_n "(cached) $ac_c" 1>&6
14828 else
14829   
14830       
14831       ac_ext=C
14832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14833 ac_cpp='$CXXCPP $CPPFLAGS'
14834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14836 cross_compiling=$ac_cv_prog_cxx_cross
14837
14838       cat > conftest.$ac_ext <<EOF
14839 #line 14840 "configure"
14840 #include "confdefs.h"
14841 #include <math.h>
14842 int main() {
14843  _sincosf(0, 0, 0);
14844 ; return 0; }
14845 EOF
14846 if { (eval echo configure:14847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14847   rm -rf conftest*
14848   glibcpp_cv_func__sincosf_use=yes
14849 else
14850   echo "configure: failed program was:" >&5
14851   cat conftest.$ac_ext >&5
14852   rm -rf conftest*
14853   glibcpp_cv_func__sincosf_use=no
14854 fi
14855 rm -f conftest*
14856       ac_ext=c
14857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14861 cross_compiling=$ac_cv_prog_cc_cross
14862
14863     
14864 fi
14865
14866   fi
14867   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
14868
14869     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
14870       for ac_func in _sincosf
14871 do
14872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14873 echo "configure:14874: checking for $ac_func" >&5
14874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14875   echo $ac_n "(cached) $ac_c" 1>&6
14876 else
14877   cat > conftest.$ac_ext <<EOF
14878 #line 14879 "configure"
14879 #include "confdefs.h"
14880 /* System header to define __stub macros and hopefully few prototypes,
14881     which can conflict with char $ac_func(); below.  */
14882 #include <assert.h>
14883 /* Override any gcc2 internal prototype to avoid an error.  */
14884 /* We use char because int might match the return type of a gcc2
14885     builtin and then its argument prototype would still apply.  */
14886 char $ac_func();
14887
14888 int main() {
14889
14890 /* The GNU C library defines this for functions which it implements
14891     to always fail with ENOSYS.  Some functions are actually named
14892     something starting with __ and the normal name is an alias.  */
14893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14894 choke me
14895 #else
14896 $ac_func();
14897 #endif
14898
14899 ; return 0; }
14900 EOF
14901 if { (eval echo configure:14902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14902   rm -rf conftest*
14903   eval "ac_cv_func_$ac_func=yes"
14904 else
14905   echo "configure: failed program was:" >&5
14906   cat conftest.$ac_ext >&5
14907   rm -rf conftest*
14908   eval "ac_cv_func_$ac_func=no"
14909 fi
14910 rm -f conftest*
14911 fi
14912
14913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14914   echo "$ac_t""yes" 1>&6
14915     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14916   cat >> confdefs.h <<EOF
14917 #define $ac_tr_func 1
14918 EOF
14919  
14920 else
14921   echo "$ac_t""no" 1>&6
14922 fi
14923 done
14924     
14925     fi
14926   fi
14927
14928   
14929   
14930   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14931 echo "configure:14932: checking for finitef declaration" >&5
14932   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14933     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14934   echo $ac_n "(cached) $ac_c" 1>&6
14935 else
14936   
14937       
14938       ac_ext=C
14939 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14940 ac_cpp='$CXXCPP $CPPFLAGS'
14941 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14942 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14943 cross_compiling=$ac_cv_prog_cxx_cross
14944
14945       cat > conftest.$ac_ext <<EOF
14946 #line 14947 "configure"
14947 #include "confdefs.h"
14948 #include <math.h>
14949                       #ifdef HAVE_IEEEFP_H
14950                       #include <ieeefp.h>
14951                       #endif
14952                      
14953 int main() {
14954  finitef(0);
14955 ; return 0; }
14956 EOF
14957 if { (eval echo configure:14958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14958   rm -rf conftest*
14959   glibcpp_cv_func_finitef_use=yes
14960 else
14961   echo "configure: failed program was:" >&5
14962   cat conftest.$ac_ext >&5
14963   rm -rf conftest*
14964   glibcpp_cv_func_finitef_use=no
14965 fi
14966 rm -f conftest*
14967       ac_ext=c
14968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14969 ac_cpp='$CPP $CPPFLAGS'
14970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14972 cross_compiling=$ac_cv_prog_cc_cross
14973
14974     
14975 fi
14976
14977   fi
14978   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14979
14980   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14981     for ac_func in finitef
14982 do
14983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14984 echo "configure:14985: checking for $ac_func" >&5
14985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14986   echo $ac_n "(cached) $ac_c" 1>&6
14987 else
14988   cat > conftest.$ac_ext <<EOF
14989 #line 14990 "configure"
14990 #include "confdefs.h"
14991 /* System header to define __stub macros and hopefully few prototypes,
14992     which can conflict with char $ac_func(); below.  */
14993 #include <assert.h>
14994 /* Override any gcc2 internal prototype to avoid an error.  */
14995 /* We use char because int might match the return type of a gcc2
14996     builtin and then its argument prototype would still apply.  */
14997 char $ac_func();
14998
14999 int main() {
15000
15001 /* The GNU C library defines this for functions which it implements
15002     to always fail with ENOSYS.  Some functions are actually named
15003     something starting with __ and the normal name is an alias.  */
15004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15005 choke me
15006 #else
15007 $ac_func();
15008 #endif
15009
15010 ; return 0; }
15011 EOF
15012 if { (eval echo configure:15013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15013   rm -rf conftest*
15014   eval "ac_cv_func_$ac_func=yes"
15015 else
15016   echo "configure: failed program was:" >&5
15017   cat conftest.$ac_ext >&5
15018   rm -rf conftest*
15019   eval "ac_cv_func_$ac_func=no"
15020 fi
15021 rm -f conftest*
15022 fi
15023
15024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15025   echo "$ac_t""yes" 1>&6
15026     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15027   cat >> confdefs.h <<EOF
15028 #define $ac_tr_func 1
15029 EOF
15030  
15031 else
15032   echo "$ac_t""no" 1>&6
15033 fi
15034 done
15035     
15036   else
15037     
15038   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15039 echo "configure:15040: checking for _finitef declaration" >&5
15040   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15041     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15042   echo $ac_n "(cached) $ac_c" 1>&6
15043 else
15044   
15045       
15046       ac_ext=C
15047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15048 ac_cpp='$CXXCPP $CPPFLAGS'
15049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15051 cross_compiling=$ac_cv_prog_cxx_cross
15052
15053       cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 #include <math.h>
15057                       #ifdef HAVE_IEEEFP_H
15058                       #include <ieeefp.h>
15059                       #endif
15060                      
15061 int main() {
15062  _finitef(0);
15063 ; return 0; }
15064 EOF
15065 if { (eval echo configure:15066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15066   rm -rf conftest*
15067   glibcpp_cv_func__finitef_use=yes
15068 else
15069   echo "configure: failed program was:" >&5
15070   cat conftest.$ac_ext >&5
15071   rm -rf conftest*
15072   glibcpp_cv_func__finitef_use=no
15073 fi
15074 rm -f conftest*
15075       ac_ext=c
15076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15077 ac_cpp='$CPP $CPPFLAGS'
15078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15080 cross_compiling=$ac_cv_prog_cc_cross
15081
15082     
15083 fi
15084
15085   fi
15086   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
15087
15088     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
15089       for ac_func in _finitef
15090 do
15091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15092 echo "configure:15093: checking for $ac_func" >&5
15093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15094   echo $ac_n "(cached) $ac_c" 1>&6
15095 else
15096   cat > conftest.$ac_ext <<EOF
15097 #line 15098 "configure"
15098 #include "confdefs.h"
15099 /* System header to define __stub macros and hopefully few prototypes,
15100     which can conflict with char $ac_func(); below.  */
15101 #include <assert.h>
15102 /* Override any gcc2 internal prototype to avoid an error.  */
15103 /* We use char because int might match the return type of a gcc2
15104     builtin and then its argument prototype would still apply.  */
15105 char $ac_func();
15106
15107 int main() {
15108
15109 /* The GNU C library defines this for functions which it implements
15110     to always fail with ENOSYS.  Some functions are actually named
15111     something starting with __ and the normal name is an alias.  */
15112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15113 choke me
15114 #else
15115 $ac_func();
15116 #endif
15117
15118 ; return 0; }
15119 EOF
15120 if { (eval echo configure:15121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15121   rm -rf conftest*
15122   eval "ac_cv_func_$ac_func=yes"
15123 else
15124   echo "configure: failed program was:" >&5
15125   cat conftest.$ac_ext >&5
15126   rm -rf conftest*
15127   eval "ac_cv_func_$ac_func=no"
15128 fi
15129 rm -f conftest*
15130 fi
15131
15132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15133   echo "$ac_t""yes" 1>&6
15134     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15135   cat >> confdefs.h <<EOF
15136 #define $ac_tr_func 1
15137 EOF
15138  
15139 else
15140   echo "$ac_t""no" 1>&6
15141 fi
15142 done
15143     
15144     fi
15145   fi
15146
15147
15148     
15149   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
15150 echo "configure:15151: checking for long double trig functions" >&5
15151   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
15152   echo $ac_n "(cached) $ac_c" 1>&6
15153 else
15154   
15155     
15156     ac_ext=C
15157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15158 ac_cpp='$CXXCPP $CPPFLAGS'
15159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15161 cross_compiling=$ac_cv_prog_cxx_cross
15162
15163     cat > conftest.$ac_ext <<EOF
15164 #line 15165 "configure"
15165 #include "confdefs.h"
15166 #include <math.h>
15167 int main() {
15168  `for x in acosl asinl atanl \
15169                                           cosl sinl tanl \
15170                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
15171 ; return 0; }
15172 EOF
15173 if { (eval echo configure:15174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15174   rm -rf conftest*
15175   glibcpp_cv_func_long_double_trig_use=yes
15176 else
15177   echo "configure: failed program was:" >&5
15178   cat conftest.$ac_ext >&5
15179   rm -rf conftest*
15180   glibcpp_cv_func_long_double_trig_use=no
15181 fi
15182 rm -f conftest*
15183     ac_ext=c
15184 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15185 ac_cpp='$CPP $CPPFLAGS'
15186 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15187 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15188 cross_compiling=$ac_cv_prog_cc_cross
15189
15190 fi
15191
15192   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
15193   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
15194     for ac_func in acosl asinl atanl \
15195                                           cosl sinl tanl \
15196                                           coshl sinhl tanhl
15197 do
15198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15199 echo "configure:15200: checking for $ac_func" >&5
15200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15201   echo $ac_n "(cached) $ac_c" 1>&6
15202 else
15203   cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 /* System header to define __stub macros and hopefully few prototypes,
15207     which can conflict with char $ac_func(); below.  */
15208 #include <assert.h>
15209 /* Override any gcc2 internal prototype to avoid an error.  */
15210 /* We use char because int might match the return type of a gcc2
15211     builtin and then its argument prototype would still apply.  */
15212 char $ac_func();
15213
15214 int main() {
15215
15216 /* The GNU C library defines this for functions which it implements
15217     to always fail with ENOSYS.  Some functions are actually named
15218     something starting with __ and the normal name is an alias.  */
15219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15220 choke me
15221 #else
15222 $ac_func();
15223 #endif
15224
15225 ; return 0; }
15226 EOF
15227 if { (eval echo configure:15228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15228   rm -rf conftest*
15229   eval "ac_cv_func_$ac_func=yes"
15230 else
15231   echo "configure: failed program was:" >&5
15232   cat conftest.$ac_ext >&5
15233   rm -rf conftest*
15234   eval "ac_cv_func_$ac_func=no"
15235 fi
15236 rm -f conftest*
15237 fi
15238
15239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15240   echo "$ac_t""yes" 1>&6
15241     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15242   cat >> confdefs.h <<EOF
15243 #define $ac_tr_func 1
15244 EOF
15245  
15246 else
15247   echo "$ac_t""no" 1>&6
15248 fi
15249 done
15250
15251   fi
15252
15253   
15254   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
15255 echo "configure:15256: checking for long double round functions" >&5
15256   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
15257   echo $ac_n "(cached) $ac_c" 1>&6
15258 else
15259   
15260     
15261     ac_ext=C
15262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15263 ac_cpp='$CXXCPP $CPPFLAGS'
15264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15266 cross_compiling=$ac_cv_prog_cxx_cross
15267
15268     cat > conftest.$ac_ext <<EOF
15269 #line 15270 "configure"
15270 #include "confdefs.h"
15271 #include <math.h>
15272 int main() {
15273  `for x in ceill floorl; do echo "$x (0);"; done` 
15274 ; return 0; }
15275 EOF
15276 if { (eval echo configure:15277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15277   rm -rf conftest*
15278   glibcpp_cv_func_long_double_round_use=yes
15279 else
15280   echo "configure: failed program was:" >&5
15281   cat conftest.$ac_ext >&5
15282   rm -rf conftest*
15283   glibcpp_cv_func_long_double_round_use=no
15284 fi
15285 rm -f conftest*
15286     ac_ext=c
15287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15288 ac_cpp='$CPP $CPPFLAGS'
15289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15291 cross_compiling=$ac_cv_prog_cc_cross
15292
15293 fi
15294
15295   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
15296   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
15297     for ac_func in ceill floorl
15298 do
15299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15300 echo "configure:15301: checking for $ac_func" >&5
15301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15302   echo $ac_n "(cached) $ac_c" 1>&6
15303 else
15304   cat > conftest.$ac_ext <<EOF
15305 #line 15306 "configure"
15306 #include "confdefs.h"
15307 /* System header to define __stub macros and hopefully few prototypes,
15308     which can conflict with char $ac_func(); below.  */
15309 #include <assert.h>
15310 /* Override any gcc2 internal prototype to avoid an error.  */
15311 /* We use char because int might match the return type of a gcc2
15312     builtin and then its argument prototype would still apply.  */
15313 char $ac_func();
15314
15315 int main() {
15316
15317 /* The GNU C library defines this for functions which it implements
15318     to always fail with ENOSYS.  Some functions are actually named
15319     something starting with __ and the normal name is an alias.  */
15320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15321 choke me
15322 #else
15323 $ac_func();
15324 #endif
15325
15326 ; return 0; }
15327 EOF
15328 if { (eval echo configure:15329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15329   rm -rf conftest*
15330   eval "ac_cv_func_$ac_func=yes"
15331 else
15332   echo "configure: failed program was:" >&5
15333   cat conftest.$ac_ext >&5
15334   rm -rf conftest*
15335   eval "ac_cv_func_$ac_func=no"
15336 fi
15337 rm -f conftest*
15338 fi
15339
15340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15341   echo "$ac_t""yes" 1>&6
15342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15343   cat >> confdefs.h <<EOF
15344 #define $ac_tr_func 1
15345 EOF
15346  
15347 else
15348   echo "$ac_t""no" 1>&6
15349 fi
15350 done
15351
15352   fi
15353
15354   
15355   
15356   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
15357 echo "configure:15358: checking for isnanl declaration" >&5
15358   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
15359     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
15360   echo $ac_n "(cached) $ac_c" 1>&6
15361 else
15362   
15363       
15364       ac_ext=C
15365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15366 ac_cpp='$CXXCPP $CPPFLAGS'
15367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15369 cross_compiling=$ac_cv_prog_cxx_cross
15370
15371       cat > conftest.$ac_ext <<EOF
15372 #line 15373 "configure"
15373 #include "confdefs.h"
15374 #include <math.h>
15375                       #ifdef HAVE_IEEEFP_H
15376                       #include <ieeefp.h>
15377                       #endif
15378                      
15379 int main() {
15380  isnanl(0);
15381 ; return 0; }
15382 EOF
15383 if { (eval echo configure:15384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15384   rm -rf conftest*
15385   glibcpp_cv_func_isnanl_use=yes
15386 else
15387   echo "configure: failed program was:" >&5
15388   cat conftest.$ac_ext >&5
15389   rm -rf conftest*
15390   glibcpp_cv_func_isnanl_use=no
15391 fi
15392 rm -f conftest*
15393       ac_ext=c
15394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15395 ac_cpp='$CPP $CPPFLAGS'
15396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15398 cross_compiling=$ac_cv_prog_cc_cross
15399
15400     
15401 fi
15402
15403   fi
15404   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
15405
15406   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
15407     for ac_func in isnanl
15408 do
15409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15410 echo "configure:15411: checking for $ac_func" >&5
15411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15412   echo $ac_n "(cached) $ac_c" 1>&6
15413 else
15414   cat > conftest.$ac_ext <<EOF
15415 #line 15416 "configure"
15416 #include "confdefs.h"
15417 /* System header to define __stub macros and hopefully few prototypes,
15418     which can conflict with char $ac_func(); below.  */
15419 #include <assert.h>
15420 /* Override any gcc2 internal prototype to avoid an error.  */
15421 /* We use char because int might match the return type of a gcc2
15422     builtin and then its argument prototype would still apply.  */
15423 char $ac_func();
15424
15425 int main() {
15426
15427 /* The GNU C library defines this for functions which it implements
15428     to always fail with ENOSYS.  Some functions are actually named
15429     something starting with __ and the normal name is an alias.  */
15430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15431 choke me
15432 #else
15433 $ac_func();
15434 #endif
15435
15436 ; return 0; }
15437 EOF
15438 if { (eval echo configure:15439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15439   rm -rf conftest*
15440   eval "ac_cv_func_$ac_func=yes"
15441 else
15442   echo "configure: failed program was:" >&5
15443   cat conftest.$ac_ext >&5
15444   rm -rf conftest*
15445   eval "ac_cv_func_$ac_func=no"
15446 fi
15447 rm -f conftest*
15448 fi
15449
15450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15451   echo "$ac_t""yes" 1>&6
15452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15453   cat >> confdefs.h <<EOF
15454 #define $ac_tr_func 1
15455 EOF
15456  
15457 else
15458   echo "$ac_t""no" 1>&6
15459 fi
15460 done
15461     
15462   else
15463     
15464   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
15465 echo "configure:15466: checking for _isnanl declaration" >&5
15466   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
15467     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
15468   echo $ac_n "(cached) $ac_c" 1>&6
15469 else
15470   
15471       
15472       ac_ext=C
15473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15474 ac_cpp='$CXXCPP $CPPFLAGS'
15475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15477 cross_compiling=$ac_cv_prog_cxx_cross
15478
15479       cat > conftest.$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15482 #include <math.h>
15483                       #ifdef HAVE_IEEEFP_H
15484                       #include <ieeefp.h>
15485                       #endif
15486                      
15487 int main() {
15488  _isnanl(0);
15489 ; return 0; }
15490 EOF
15491 if { (eval echo configure:15492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15492   rm -rf conftest*
15493   glibcpp_cv_func__isnanl_use=yes
15494 else
15495   echo "configure: failed program was:" >&5
15496   cat conftest.$ac_ext >&5
15497   rm -rf conftest*
15498   glibcpp_cv_func__isnanl_use=no
15499 fi
15500 rm -f conftest*
15501       ac_ext=c
15502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15503 ac_cpp='$CPP $CPPFLAGS'
15504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15506 cross_compiling=$ac_cv_prog_cc_cross
15507
15508     
15509 fi
15510
15511   fi
15512   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
15513
15514     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
15515       for ac_func in _isnanl
15516 do
15517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15518 echo "configure:15519: checking for $ac_func" >&5
15519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15520   echo $ac_n "(cached) $ac_c" 1>&6
15521 else
15522   cat > conftest.$ac_ext <<EOF
15523 #line 15524 "configure"
15524 #include "confdefs.h"
15525 /* System header to define __stub macros and hopefully few prototypes,
15526     which can conflict with char $ac_func(); below.  */
15527 #include <assert.h>
15528 /* Override any gcc2 internal prototype to avoid an error.  */
15529 /* We use char because int might match the return type of a gcc2
15530     builtin and then its argument prototype would still apply.  */
15531 char $ac_func();
15532
15533 int main() {
15534
15535 /* The GNU C library defines this for functions which it implements
15536     to always fail with ENOSYS.  Some functions are actually named
15537     something starting with __ and the normal name is an alias.  */
15538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15539 choke me
15540 #else
15541 $ac_func();
15542 #endif
15543
15544 ; return 0; }
15545 EOF
15546 if { (eval echo configure:15547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15547   rm -rf conftest*
15548   eval "ac_cv_func_$ac_func=yes"
15549 else
15550   echo "configure: failed program was:" >&5
15551   cat conftest.$ac_ext >&5
15552   rm -rf conftest*
15553   eval "ac_cv_func_$ac_func=no"
15554 fi
15555 rm -f conftest*
15556 fi
15557
15558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15559   echo "$ac_t""yes" 1>&6
15560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15561   cat >> confdefs.h <<EOF
15562 #define $ac_tr_func 1
15563 EOF
15564  
15565 else
15566   echo "$ac_t""no" 1>&6
15567 fi
15568 done
15569     
15570     fi
15571   fi
15572
15573   
15574   
15575   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
15576 echo "configure:15577: checking for isinfl declaration" >&5
15577   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
15578     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
15579   echo $ac_n "(cached) $ac_c" 1>&6
15580 else
15581   
15582       
15583       ac_ext=C
15584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15585 ac_cpp='$CXXCPP $CPPFLAGS'
15586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15588 cross_compiling=$ac_cv_prog_cxx_cross
15589
15590       cat > conftest.$ac_ext <<EOF
15591 #line 15592 "configure"
15592 #include "confdefs.h"
15593 #include <math.h>
15594                       #ifdef HAVE_IEEEFP_H
15595                       #include <ieeefp.h>
15596                       #endif
15597                      
15598 int main() {
15599  isinfl(0);
15600 ; return 0; }
15601 EOF
15602 if { (eval echo configure:15603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15603   rm -rf conftest*
15604   glibcpp_cv_func_isinfl_use=yes
15605 else
15606   echo "configure: failed program was:" >&5
15607   cat conftest.$ac_ext >&5
15608   rm -rf conftest*
15609   glibcpp_cv_func_isinfl_use=no
15610 fi
15611 rm -f conftest*
15612       ac_ext=c
15613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15614 ac_cpp='$CPP $CPPFLAGS'
15615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15617 cross_compiling=$ac_cv_prog_cc_cross
15618
15619     
15620 fi
15621
15622   fi
15623   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
15624
15625   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
15626     for ac_func in isinfl
15627 do
15628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15629 echo "configure:15630: checking for $ac_func" >&5
15630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15631   echo $ac_n "(cached) $ac_c" 1>&6
15632 else
15633   cat > conftest.$ac_ext <<EOF
15634 #line 15635 "configure"
15635 #include "confdefs.h"
15636 /* System header to define __stub macros and hopefully few prototypes,
15637     which can conflict with char $ac_func(); below.  */
15638 #include <assert.h>
15639 /* Override any gcc2 internal prototype to avoid an error.  */
15640 /* We use char because int might match the return type of a gcc2
15641     builtin and then its argument prototype would still apply.  */
15642 char $ac_func();
15643
15644 int main() {
15645
15646 /* The GNU C library defines this for functions which it implements
15647     to always fail with ENOSYS.  Some functions are actually named
15648     something starting with __ and the normal name is an alias.  */
15649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15650 choke me
15651 #else
15652 $ac_func();
15653 #endif
15654
15655 ; return 0; }
15656 EOF
15657 if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15658   rm -rf conftest*
15659   eval "ac_cv_func_$ac_func=yes"
15660 else
15661   echo "configure: failed program was:" >&5
15662   cat conftest.$ac_ext >&5
15663   rm -rf conftest*
15664   eval "ac_cv_func_$ac_func=no"
15665 fi
15666 rm -f conftest*
15667 fi
15668
15669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15670   echo "$ac_t""yes" 1>&6
15671     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15672   cat >> confdefs.h <<EOF
15673 #define $ac_tr_func 1
15674 EOF
15675  
15676 else
15677   echo "$ac_t""no" 1>&6
15678 fi
15679 done
15680     
15681   else
15682     
15683   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
15684 echo "configure:15685: checking for _isinfl declaration" >&5
15685   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
15686     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
15687   echo $ac_n "(cached) $ac_c" 1>&6
15688 else
15689   
15690       
15691       ac_ext=C
15692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15693 ac_cpp='$CXXCPP $CPPFLAGS'
15694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15696 cross_compiling=$ac_cv_prog_cxx_cross
15697
15698       cat > conftest.$ac_ext <<EOF
15699 #line 15700 "configure"
15700 #include "confdefs.h"
15701 #include <math.h>
15702                       #ifdef HAVE_IEEEFP_H
15703                       #include <ieeefp.h>
15704                       #endif
15705                      
15706 int main() {
15707  _isinfl(0);
15708 ; return 0; }
15709 EOF
15710 if { (eval echo configure:15711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15711   rm -rf conftest*
15712   glibcpp_cv_func__isinfl_use=yes
15713 else
15714   echo "configure: failed program was:" >&5
15715   cat conftest.$ac_ext >&5
15716   rm -rf conftest*
15717   glibcpp_cv_func__isinfl_use=no
15718 fi
15719 rm -f conftest*
15720       ac_ext=c
15721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15722 ac_cpp='$CPP $CPPFLAGS'
15723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15725 cross_compiling=$ac_cv_prog_cc_cross
15726
15727     
15728 fi
15729
15730   fi
15731   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
15732
15733     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
15734       for ac_func in _isinfl
15735 do
15736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15737 echo "configure:15738: checking for $ac_func" >&5
15738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15739   echo $ac_n "(cached) $ac_c" 1>&6
15740 else
15741   cat > conftest.$ac_ext <<EOF
15742 #line 15743 "configure"
15743 #include "confdefs.h"
15744 /* System header to define __stub macros and hopefully few prototypes,
15745     which can conflict with char $ac_func(); below.  */
15746 #include <assert.h>
15747 /* Override any gcc2 internal prototype to avoid an error.  */
15748 /* We use char because int might match the return type of a gcc2
15749     builtin and then its argument prototype would still apply.  */
15750 char $ac_func();
15751
15752 int main() {
15753
15754 /* The GNU C library defines this for functions which it implements
15755     to always fail with ENOSYS.  Some functions are actually named
15756     something starting with __ and the normal name is an alias.  */
15757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15758 choke me
15759 #else
15760 $ac_func();
15761 #endif
15762
15763 ; return 0; }
15764 EOF
15765 if { (eval echo configure:15766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15766   rm -rf conftest*
15767   eval "ac_cv_func_$ac_func=yes"
15768 else
15769   echo "configure: failed program was:" >&5
15770   cat conftest.$ac_ext >&5
15771   rm -rf conftest*
15772   eval "ac_cv_func_$ac_func=no"
15773 fi
15774 rm -f conftest*
15775 fi
15776
15777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15778   echo "$ac_t""yes" 1>&6
15779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15780   cat >> confdefs.h <<EOF
15781 #define $ac_tr_func 1
15782 EOF
15783  
15784 else
15785   echo "$ac_t""no" 1>&6
15786 fi
15787 done
15788     
15789     fi
15790   fi
15791
15792   
15793   
15794   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
15795 echo "configure:15796: checking for copysignl declaration" >&5
15796   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
15797     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
15798   echo $ac_n "(cached) $ac_c" 1>&6
15799 else
15800   
15801       
15802       ac_ext=C
15803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15804 ac_cpp='$CXXCPP $CPPFLAGS'
15805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15807 cross_compiling=$ac_cv_prog_cxx_cross
15808
15809       cat > conftest.$ac_ext <<EOF
15810 #line 15811 "configure"
15811 #include "confdefs.h"
15812 #include <math.h>
15813 int main() {
15814  copysignl(0, 0);
15815 ; return 0; }
15816 EOF
15817 if { (eval echo configure:15818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15818   rm -rf conftest*
15819   glibcpp_cv_func_copysignl_use=yes
15820 else
15821   echo "configure: failed program was:" >&5
15822   cat conftest.$ac_ext >&5
15823   rm -rf conftest*
15824   glibcpp_cv_func_copysignl_use=no
15825 fi
15826 rm -f conftest*
15827       ac_ext=c
15828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15829 ac_cpp='$CPP $CPPFLAGS'
15830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15832 cross_compiling=$ac_cv_prog_cc_cross
15833
15834     
15835 fi
15836
15837   fi
15838   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
15839
15840   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
15841     for ac_func in copysignl
15842 do
15843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15844 echo "configure:15845: checking for $ac_func" >&5
15845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15846   echo $ac_n "(cached) $ac_c" 1>&6
15847 else
15848   cat > conftest.$ac_ext <<EOF
15849 #line 15850 "configure"
15850 #include "confdefs.h"
15851 /* System header to define __stub macros and hopefully few prototypes,
15852     which can conflict with char $ac_func(); below.  */
15853 #include <assert.h>
15854 /* Override any gcc2 internal prototype to avoid an error.  */
15855 /* We use char because int might match the return type of a gcc2
15856     builtin and then its argument prototype would still apply.  */
15857 char $ac_func();
15858
15859 int main() {
15860
15861 /* The GNU C library defines this for functions which it implements
15862     to always fail with ENOSYS.  Some functions are actually named
15863     something starting with __ and the normal name is an alias.  */
15864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15865 choke me
15866 #else
15867 $ac_func();
15868 #endif
15869
15870 ; return 0; }
15871 EOF
15872 if { (eval echo configure:15873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15873   rm -rf conftest*
15874   eval "ac_cv_func_$ac_func=yes"
15875 else
15876   echo "configure: failed program was:" >&5
15877   cat conftest.$ac_ext >&5
15878   rm -rf conftest*
15879   eval "ac_cv_func_$ac_func=no"
15880 fi
15881 rm -f conftest*
15882 fi
15883
15884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15885   echo "$ac_t""yes" 1>&6
15886     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15887   cat >> confdefs.h <<EOF
15888 #define $ac_tr_func 1
15889 EOF
15890  
15891 else
15892   echo "$ac_t""no" 1>&6
15893 fi
15894 done
15895     
15896   else
15897     
15898   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15899 echo "configure:15900: checking for _copysignl declaration" >&5
15900   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15901     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15902   echo $ac_n "(cached) $ac_c" 1>&6
15903 else
15904   
15905       
15906       ac_ext=C
15907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15908 ac_cpp='$CXXCPP $CPPFLAGS'
15909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15911 cross_compiling=$ac_cv_prog_cxx_cross
15912
15913       cat > conftest.$ac_ext <<EOF
15914 #line 15915 "configure"
15915 #include "confdefs.h"
15916 #include <math.h>
15917 int main() {
15918  _copysignl(0, 0);
15919 ; return 0; }
15920 EOF
15921 if { (eval echo configure:15922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15922   rm -rf conftest*
15923   glibcpp_cv_func__copysignl_use=yes
15924 else
15925   echo "configure: failed program was:" >&5
15926   cat conftest.$ac_ext >&5
15927   rm -rf conftest*
15928   glibcpp_cv_func__copysignl_use=no
15929 fi
15930 rm -f conftest*
15931       ac_ext=c
15932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15936 cross_compiling=$ac_cv_prog_cc_cross
15937
15938     
15939 fi
15940
15941   fi
15942   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15943
15944     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15945       for ac_func in _copysignl
15946 do
15947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15948 echo "configure:15949: checking for $ac_func" >&5
15949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15950   echo $ac_n "(cached) $ac_c" 1>&6
15951 else
15952   cat > conftest.$ac_ext <<EOF
15953 #line 15954 "configure"
15954 #include "confdefs.h"
15955 /* System header to define __stub macros and hopefully few prototypes,
15956     which can conflict with char $ac_func(); below.  */
15957 #include <assert.h>
15958 /* Override any gcc2 internal prototype to avoid an error.  */
15959 /* We use char because int might match the return type of a gcc2
15960     builtin and then its argument prototype would still apply.  */
15961 char $ac_func();
15962
15963 int main() {
15964
15965 /* The GNU C library defines this for functions which it implements
15966     to always fail with ENOSYS.  Some functions are actually named
15967     something starting with __ and the normal name is an alias.  */
15968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15969 choke me
15970 #else
15971 $ac_func();
15972 #endif
15973
15974 ; return 0; }
15975 EOF
15976 if { (eval echo configure:15977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15977   rm -rf conftest*
15978   eval "ac_cv_func_$ac_func=yes"
15979 else
15980   echo "configure: failed program was:" >&5
15981   cat conftest.$ac_ext >&5
15982   rm -rf conftest*
15983   eval "ac_cv_func_$ac_func=no"
15984 fi
15985 rm -f conftest*
15986 fi
15987
15988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15989   echo "$ac_t""yes" 1>&6
15990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15991   cat >> confdefs.h <<EOF
15992 #define $ac_tr_func 1
15993 EOF
15994  
15995 else
15996   echo "$ac_t""no" 1>&6
15997 fi
15998 done
15999     
16000     fi
16001   fi
16002
16003   
16004   
16005   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16006 echo "configure:16007: checking for atan2l declaration" >&5
16007   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16008     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16009   echo $ac_n "(cached) $ac_c" 1>&6
16010 else
16011   
16012       
16013       ac_ext=C
16014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16015 ac_cpp='$CXXCPP $CPPFLAGS'
16016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16018 cross_compiling=$ac_cv_prog_cxx_cross
16019
16020       cat > conftest.$ac_ext <<EOF
16021 #line 16022 "configure"
16022 #include "confdefs.h"
16023 #include <math.h>
16024 int main() {
16025  atan2l(0, 0);
16026 ; return 0; }
16027 EOF
16028 if { (eval echo configure:16029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16029   rm -rf conftest*
16030   glibcpp_cv_func_atan2l_use=yes
16031 else
16032   echo "configure: failed program was:" >&5
16033   cat conftest.$ac_ext >&5
16034   rm -rf conftest*
16035   glibcpp_cv_func_atan2l_use=no
16036 fi
16037 rm -f conftest*
16038       ac_ext=c
16039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16043 cross_compiling=$ac_cv_prog_cc_cross
16044
16045     
16046 fi
16047
16048   fi
16049   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16050
16051   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16052     for ac_func in atan2l
16053 do
16054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16055 echo "configure:16056: checking for $ac_func" >&5
16056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16057   echo $ac_n "(cached) $ac_c" 1>&6
16058 else
16059   cat > conftest.$ac_ext <<EOF
16060 #line 16061 "configure"
16061 #include "confdefs.h"
16062 /* System header to define __stub macros and hopefully few prototypes,
16063     which can conflict with char $ac_func(); below.  */
16064 #include <assert.h>
16065 /* Override any gcc2 internal prototype to avoid an error.  */
16066 /* We use char because int might match the return type of a gcc2
16067     builtin and then its argument prototype would still apply.  */
16068 char $ac_func();
16069
16070 int main() {
16071
16072 /* The GNU C library defines this for functions which it implements
16073     to always fail with ENOSYS.  Some functions are actually named
16074     something starting with __ and the normal name is an alias.  */
16075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16076 choke me
16077 #else
16078 $ac_func();
16079 #endif
16080
16081 ; return 0; }
16082 EOF
16083 if { (eval echo configure:16084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16084   rm -rf conftest*
16085   eval "ac_cv_func_$ac_func=yes"
16086 else
16087   echo "configure: failed program was:" >&5
16088   cat conftest.$ac_ext >&5
16089   rm -rf conftest*
16090   eval "ac_cv_func_$ac_func=no"
16091 fi
16092 rm -f conftest*
16093 fi
16094
16095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16096   echo "$ac_t""yes" 1>&6
16097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16098   cat >> confdefs.h <<EOF
16099 #define $ac_tr_func 1
16100 EOF
16101  
16102 else
16103   echo "$ac_t""no" 1>&6
16104 fi
16105 done
16106     
16107   else
16108     
16109   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
16110 echo "configure:16111: checking for _atan2l declaration" >&5
16111   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
16112     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
16113   echo $ac_n "(cached) $ac_c" 1>&6
16114 else
16115   
16116       
16117       ac_ext=C
16118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16119 ac_cpp='$CXXCPP $CPPFLAGS'
16120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16122 cross_compiling=$ac_cv_prog_cxx_cross
16123
16124       cat > conftest.$ac_ext <<EOF
16125 #line 16126 "configure"
16126 #include "confdefs.h"
16127 #include <math.h>
16128 int main() {
16129  _atan2l(0, 0);
16130 ; return 0; }
16131 EOF
16132 if { (eval echo configure:16133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16133   rm -rf conftest*
16134   glibcpp_cv_func__atan2l_use=yes
16135 else
16136   echo "configure: failed program was:" >&5
16137   cat conftest.$ac_ext >&5
16138   rm -rf conftest*
16139   glibcpp_cv_func__atan2l_use=no
16140 fi
16141 rm -f conftest*
16142       ac_ext=c
16143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16144 ac_cpp='$CPP $CPPFLAGS'
16145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16147 cross_compiling=$ac_cv_prog_cc_cross
16148
16149     
16150 fi
16151
16152   fi
16153   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
16154
16155     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
16156       for ac_func in _atan2l
16157 do
16158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16159 echo "configure:16160: checking for $ac_func" >&5
16160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16161   echo $ac_n "(cached) $ac_c" 1>&6
16162 else
16163   cat > conftest.$ac_ext <<EOF
16164 #line 16165 "configure"
16165 #include "confdefs.h"
16166 /* System header to define __stub macros and hopefully few prototypes,
16167     which can conflict with char $ac_func(); below.  */
16168 #include <assert.h>
16169 /* Override any gcc2 internal prototype to avoid an error.  */
16170 /* We use char because int might match the return type of a gcc2
16171     builtin and then its argument prototype would still apply.  */
16172 char $ac_func();
16173
16174 int main() {
16175
16176 /* The GNU C library defines this for functions which it implements
16177     to always fail with ENOSYS.  Some functions are actually named
16178     something starting with __ and the normal name is an alias.  */
16179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16180 choke me
16181 #else
16182 $ac_func();
16183 #endif
16184
16185 ; return 0; }
16186 EOF
16187 if { (eval echo configure:16188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16188   rm -rf conftest*
16189   eval "ac_cv_func_$ac_func=yes"
16190 else
16191   echo "configure: failed program was:" >&5
16192   cat conftest.$ac_ext >&5
16193   rm -rf conftest*
16194   eval "ac_cv_func_$ac_func=no"
16195 fi
16196 rm -f conftest*
16197 fi
16198
16199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16200   echo "$ac_t""yes" 1>&6
16201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16202   cat >> confdefs.h <<EOF
16203 #define $ac_tr_func 1
16204 EOF
16205  
16206 else
16207   echo "$ac_t""no" 1>&6
16208 fi
16209 done
16210     
16211     fi
16212   fi
16213
16214   
16215   
16216   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
16217 echo "configure:16218: checking for expl declaration" >&5
16218   if test x${glibcpp_cv_func_expl_use+set} != xset; then
16219     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
16220   echo $ac_n "(cached) $ac_c" 1>&6
16221 else
16222   
16223       
16224       ac_ext=C
16225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16226 ac_cpp='$CXXCPP $CPPFLAGS'
16227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16229 cross_compiling=$ac_cv_prog_cxx_cross
16230
16231       cat > conftest.$ac_ext <<EOF
16232 #line 16233 "configure"
16233 #include "confdefs.h"
16234 #include <math.h>
16235                       #ifdef HAVE_IEEEFP_H
16236                       #include <ieeefp.h>
16237                       #endif
16238                      
16239 int main() {
16240  expl(0);
16241 ; return 0; }
16242 EOF
16243 if { (eval echo configure:16244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16244   rm -rf conftest*
16245   glibcpp_cv_func_expl_use=yes
16246 else
16247   echo "configure: failed program was:" >&5
16248   cat conftest.$ac_ext >&5
16249   rm -rf conftest*
16250   glibcpp_cv_func_expl_use=no
16251 fi
16252 rm -f conftest*
16253       ac_ext=c
16254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16255 ac_cpp='$CPP $CPPFLAGS'
16256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16258 cross_compiling=$ac_cv_prog_cc_cross
16259
16260     
16261 fi
16262
16263   fi
16264   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
16265
16266   if test x$glibcpp_cv_func_expl_use = x"yes"; then
16267     for ac_func in expl
16268 do
16269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16270 echo "configure:16271: checking for $ac_func" >&5
16271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16272   echo $ac_n "(cached) $ac_c" 1>&6
16273 else
16274   cat > conftest.$ac_ext <<EOF
16275 #line 16276 "configure"
16276 #include "confdefs.h"
16277 /* System header to define __stub macros and hopefully few prototypes,
16278     which can conflict with char $ac_func(); below.  */
16279 #include <assert.h>
16280 /* Override any gcc2 internal prototype to avoid an error.  */
16281 /* We use char because int might match the return type of a gcc2
16282     builtin and then its argument prototype would still apply.  */
16283 char $ac_func();
16284
16285 int main() {
16286
16287 /* The GNU C library defines this for functions which it implements
16288     to always fail with ENOSYS.  Some functions are actually named
16289     something starting with __ and the normal name is an alias.  */
16290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16291 choke me
16292 #else
16293 $ac_func();
16294 #endif
16295
16296 ; return 0; }
16297 EOF
16298 if { (eval echo configure:16299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16299   rm -rf conftest*
16300   eval "ac_cv_func_$ac_func=yes"
16301 else
16302   echo "configure: failed program was:" >&5
16303   cat conftest.$ac_ext >&5
16304   rm -rf conftest*
16305   eval "ac_cv_func_$ac_func=no"
16306 fi
16307 rm -f conftest*
16308 fi
16309
16310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16311   echo "$ac_t""yes" 1>&6
16312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16313   cat >> confdefs.h <<EOF
16314 #define $ac_tr_func 1
16315 EOF
16316  
16317 else
16318   echo "$ac_t""no" 1>&6
16319 fi
16320 done
16321     
16322   else
16323     
16324   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
16325 echo "configure:16326: checking for _expl declaration" >&5
16326   if test x${glibcpp_cv_func__expl_use+set} != xset; then
16327     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
16328   echo $ac_n "(cached) $ac_c" 1>&6
16329 else
16330   
16331       
16332       ac_ext=C
16333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16334 ac_cpp='$CXXCPP $CPPFLAGS'
16335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16337 cross_compiling=$ac_cv_prog_cxx_cross
16338
16339       cat > conftest.$ac_ext <<EOF
16340 #line 16341 "configure"
16341 #include "confdefs.h"
16342 #include <math.h>
16343                       #ifdef HAVE_IEEEFP_H
16344                       #include <ieeefp.h>
16345                       #endif
16346                      
16347 int main() {
16348  _expl(0);
16349 ; return 0; }
16350 EOF
16351 if { (eval echo configure:16352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16352   rm -rf conftest*
16353   glibcpp_cv_func__expl_use=yes
16354 else
16355   echo "configure: failed program was:" >&5
16356   cat conftest.$ac_ext >&5
16357   rm -rf conftest*
16358   glibcpp_cv_func__expl_use=no
16359 fi
16360 rm -f conftest*
16361       ac_ext=c
16362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16366 cross_compiling=$ac_cv_prog_cc_cross
16367
16368     
16369 fi
16370
16371   fi
16372   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
16373
16374     if test x$glibcpp_cv_func__expl_use = x"yes"; then
16375       for ac_func in _expl
16376 do
16377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16378 echo "configure:16379: checking for $ac_func" >&5
16379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16380   echo $ac_n "(cached) $ac_c" 1>&6
16381 else
16382   cat > conftest.$ac_ext <<EOF
16383 #line 16384 "configure"
16384 #include "confdefs.h"
16385 /* System header to define __stub macros and hopefully few prototypes,
16386     which can conflict with char $ac_func(); below.  */
16387 #include <assert.h>
16388 /* Override any gcc2 internal prototype to avoid an error.  */
16389 /* We use char because int might match the return type of a gcc2
16390     builtin and then its argument prototype would still apply.  */
16391 char $ac_func();
16392
16393 int main() {
16394
16395 /* The GNU C library defines this for functions which it implements
16396     to always fail with ENOSYS.  Some functions are actually named
16397     something starting with __ and the normal name is an alias.  */
16398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16399 choke me
16400 #else
16401 $ac_func();
16402 #endif
16403
16404 ; return 0; }
16405 EOF
16406 if { (eval echo configure:16407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16407   rm -rf conftest*
16408   eval "ac_cv_func_$ac_func=yes"
16409 else
16410   echo "configure: failed program was:" >&5
16411   cat conftest.$ac_ext >&5
16412   rm -rf conftest*
16413   eval "ac_cv_func_$ac_func=no"
16414 fi
16415 rm -f conftest*
16416 fi
16417
16418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16419   echo "$ac_t""yes" 1>&6
16420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16421   cat >> confdefs.h <<EOF
16422 #define $ac_tr_func 1
16423 EOF
16424  
16425 else
16426   echo "$ac_t""no" 1>&6
16427 fi
16428 done
16429     
16430     fi
16431   fi
16432
16433   
16434   
16435   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
16436 echo "configure:16437: checking for fabsl declaration" >&5
16437   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
16438     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
16439   echo $ac_n "(cached) $ac_c" 1>&6
16440 else
16441   
16442       
16443       ac_ext=C
16444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16445 ac_cpp='$CXXCPP $CPPFLAGS'
16446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16448 cross_compiling=$ac_cv_prog_cxx_cross
16449
16450       cat > conftest.$ac_ext <<EOF
16451 #line 16452 "configure"
16452 #include "confdefs.h"
16453 #include <math.h>
16454                       #ifdef HAVE_IEEEFP_H
16455                       #include <ieeefp.h>
16456                       #endif
16457                      
16458 int main() {
16459  fabsl(0);
16460 ; return 0; }
16461 EOF
16462 if { (eval echo configure:16463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16463   rm -rf conftest*
16464   glibcpp_cv_func_fabsl_use=yes
16465 else
16466   echo "configure: failed program was:" >&5
16467   cat conftest.$ac_ext >&5
16468   rm -rf conftest*
16469   glibcpp_cv_func_fabsl_use=no
16470 fi
16471 rm -f conftest*
16472       ac_ext=c
16473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16474 ac_cpp='$CPP $CPPFLAGS'
16475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16477 cross_compiling=$ac_cv_prog_cc_cross
16478
16479     
16480 fi
16481
16482   fi
16483   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
16484
16485   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
16486     for ac_func in fabsl
16487 do
16488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16489 echo "configure:16490: checking for $ac_func" >&5
16490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16491   echo $ac_n "(cached) $ac_c" 1>&6
16492 else
16493   cat > conftest.$ac_ext <<EOF
16494 #line 16495 "configure"
16495 #include "confdefs.h"
16496 /* System header to define __stub macros and hopefully few prototypes,
16497     which can conflict with char $ac_func(); below.  */
16498 #include <assert.h>
16499 /* Override any gcc2 internal prototype to avoid an error.  */
16500 /* We use char because int might match the return type of a gcc2
16501     builtin and then its argument prototype would still apply.  */
16502 char $ac_func();
16503
16504 int main() {
16505
16506 /* The GNU C library defines this for functions which it implements
16507     to always fail with ENOSYS.  Some functions are actually named
16508     something starting with __ and the normal name is an alias.  */
16509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16510 choke me
16511 #else
16512 $ac_func();
16513 #endif
16514
16515 ; return 0; }
16516 EOF
16517 if { (eval echo configure:16518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16518   rm -rf conftest*
16519   eval "ac_cv_func_$ac_func=yes"
16520 else
16521   echo "configure: failed program was:" >&5
16522   cat conftest.$ac_ext >&5
16523   rm -rf conftest*
16524   eval "ac_cv_func_$ac_func=no"
16525 fi
16526 rm -f conftest*
16527 fi
16528
16529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16530   echo "$ac_t""yes" 1>&6
16531     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16532   cat >> confdefs.h <<EOF
16533 #define $ac_tr_func 1
16534 EOF
16535  
16536 else
16537   echo "$ac_t""no" 1>&6
16538 fi
16539 done
16540     
16541   else
16542     
16543   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
16544 echo "configure:16545: checking for _fabsl declaration" >&5
16545   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
16546     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
16547   echo $ac_n "(cached) $ac_c" 1>&6
16548 else
16549   
16550       
16551       ac_ext=C
16552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16553 ac_cpp='$CXXCPP $CPPFLAGS'
16554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16556 cross_compiling=$ac_cv_prog_cxx_cross
16557
16558       cat > conftest.$ac_ext <<EOF
16559 #line 16560 "configure"
16560 #include "confdefs.h"
16561 #include <math.h>
16562                       #ifdef HAVE_IEEEFP_H
16563                       #include <ieeefp.h>
16564                       #endif
16565                      
16566 int main() {
16567  _fabsl(0);
16568 ; return 0; }
16569 EOF
16570 if { (eval echo configure:16571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16571   rm -rf conftest*
16572   glibcpp_cv_func__fabsl_use=yes
16573 else
16574   echo "configure: failed program was:" >&5
16575   cat conftest.$ac_ext >&5
16576   rm -rf conftest*
16577   glibcpp_cv_func__fabsl_use=no
16578 fi
16579 rm -f conftest*
16580       ac_ext=c
16581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16582 ac_cpp='$CPP $CPPFLAGS'
16583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16585 cross_compiling=$ac_cv_prog_cc_cross
16586
16587     
16588 fi
16589
16590   fi
16591   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
16592
16593     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
16594       for ac_func in _fabsl
16595 do
16596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16597 echo "configure:16598: checking for $ac_func" >&5
16598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16599   echo $ac_n "(cached) $ac_c" 1>&6
16600 else
16601   cat > conftest.$ac_ext <<EOF
16602 #line 16603 "configure"
16603 #include "confdefs.h"
16604 /* System header to define __stub macros and hopefully few prototypes,
16605     which can conflict with char $ac_func(); below.  */
16606 #include <assert.h>
16607 /* Override any gcc2 internal prototype to avoid an error.  */
16608 /* We use char because int might match the return type of a gcc2
16609     builtin and then its argument prototype would still apply.  */
16610 char $ac_func();
16611
16612 int main() {
16613
16614 /* The GNU C library defines this for functions which it implements
16615     to always fail with ENOSYS.  Some functions are actually named
16616     something starting with __ and the normal name is an alias.  */
16617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16618 choke me
16619 #else
16620 $ac_func();
16621 #endif
16622
16623 ; return 0; }
16624 EOF
16625 if { (eval echo configure:16626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16626   rm -rf conftest*
16627   eval "ac_cv_func_$ac_func=yes"
16628 else
16629   echo "configure: failed program was:" >&5
16630   cat conftest.$ac_ext >&5
16631   rm -rf conftest*
16632   eval "ac_cv_func_$ac_func=no"
16633 fi
16634 rm -f conftest*
16635 fi
16636
16637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16638   echo "$ac_t""yes" 1>&6
16639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16640   cat >> confdefs.h <<EOF
16641 #define $ac_tr_func 1
16642 EOF
16643  
16644 else
16645   echo "$ac_t""no" 1>&6
16646 fi
16647 done
16648     
16649     fi
16650   fi
16651
16652   
16653   
16654   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
16655 echo "configure:16656: checking for fmodl declaration" >&5
16656   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
16657     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
16658   echo $ac_n "(cached) $ac_c" 1>&6
16659 else
16660   
16661       
16662       ac_ext=C
16663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16664 ac_cpp='$CXXCPP $CPPFLAGS'
16665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16667 cross_compiling=$ac_cv_prog_cxx_cross
16668
16669       cat > conftest.$ac_ext <<EOF
16670 #line 16671 "configure"
16671 #include "confdefs.h"
16672 #include <math.h>
16673 int main() {
16674  fmodl(0, 0);
16675 ; return 0; }
16676 EOF
16677 if { (eval echo configure:16678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16678   rm -rf conftest*
16679   glibcpp_cv_func_fmodl_use=yes
16680 else
16681   echo "configure: failed program was:" >&5
16682   cat conftest.$ac_ext >&5
16683   rm -rf conftest*
16684   glibcpp_cv_func_fmodl_use=no
16685 fi
16686 rm -f conftest*
16687       ac_ext=c
16688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16689 ac_cpp='$CPP $CPPFLAGS'
16690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16692 cross_compiling=$ac_cv_prog_cc_cross
16693
16694     
16695 fi
16696
16697   fi
16698   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
16699
16700   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
16701     for ac_func in fmodl
16702 do
16703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16704 echo "configure:16705: checking for $ac_func" >&5
16705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16706   echo $ac_n "(cached) $ac_c" 1>&6
16707 else
16708   cat > conftest.$ac_ext <<EOF
16709 #line 16710 "configure"
16710 #include "confdefs.h"
16711 /* System header to define __stub macros and hopefully few prototypes,
16712     which can conflict with char $ac_func(); below.  */
16713 #include <assert.h>
16714 /* Override any gcc2 internal prototype to avoid an error.  */
16715 /* We use char because int might match the return type of a gcc2
16716     builtin and then its argument prototype would still apply.  */
16717 char $ac_func();
16718
16719 int main() {
16720
16721 /* The GNU C library defines this for functions which it implements
16722     to always fail with ENOSYS.  Some functions are actually named
16723     something starting with __ and the normal name is an alias.  */
16724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16725 choke me
16726 #else
16727 $ac_func();
16728 #endif
16729
16730 ; return 0; }
16731 EOF
16732 if { (eval echo configure:16733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16733   rm -rf conftest*
16734   eval "ac_cv_func_$ac_func=yes"
16735 else
16736   echo "configure: failed program was:" >&5
16737   cat conftest.$ac_ext >&5
16738   rm -rf conftest*
16739   eval "ac_cv_func_$ac_func=no"
16740 fi
16741 rm -f conftest*
16742 fi
16743
16744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16745   echo "$ac_t""yes" 1>&6
16746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16747   cat >> confdefs.h <<EOF
16748 #define $ac_tr_func 1
16749 EOF
16750  
16751 else
16752   echo "$ac_t""no" 1>&6
16753 fi
16754 done
16755     
16756   else
16757     
16758   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
16759 echo "configure:16760: checking for _fmodl declaration" >&5
16760   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
16761     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
16762   echo $ac_n "(cached) $ac_c" 1>&6
16763 else
16764   
16765       
16766       ac_ext=C
16767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16768 ac_cpp='$CXXCPP $CPPFLAGS'
16769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16771 cross_compiling=$ac_cv_prog_cxx_cross
16772
16773       cat > conftest.$ac_ext <<EOF
16774 #line 16775 "configure"
16775 #include "confdefs.h"
16776 #include <math.h>
16777 int main() {
16778  _fmodl(0, 0);
16779 ; return 0; }
16780 EOF
16781 if { (eval echo configure:16782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16782   rm -rf conftest*
16783   glibcpp_cv_func__fmodl_use=yes
16784 else
16785   echo "configure: failed program was:" >&5
16786   cat conftest.$ac_ext >&5
16787   rm -rf conftest*
16788   glibcpp_cv_func__fmodl_use=no
16789 fi
16790 rm -f conftest*
16791       ac_ext=c
16792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16793 ac_cpp='$CPP $CPPFLAGS'
16794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16796 cross_compiling=$ac_cv_prog_cc_cross
16797
16798     
16799 fi
16800
16801   fi
16802   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
16803
16804     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
16805       for ac_func in _fmodl
16806 do
16807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16808 echo "configure:16809: checking for $ac_func" >&5
16809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16810   echo $ac_n "(cached) $ac_c" 1>&6
16811 else
16812   cat > conftest.$ac_ext <<EOF
16813 #line 16814 "configure"
16814 #include "confdefs.h"
16815 /* System header to define __stub macros and hopefully few prototypes,
16816     which can conflict with char $ac_func(); below.  */
16817 #include <assert.h>
16818 /* Override any gcc2 internal prototype to avoid an error.  */
16819 /* We use char because int might match the return type of a gcc2
16820     builtin and then its argument prototype would still apply.  */
16821 char $ac_func();
16822
16823 int main() {
16824
16825 /* The GNU C library defines this for functions which it implements
16826     to always fail with ENOSYS.  Some functions are actually named
16827     something starting with __ and the normal name is an alias.  */
16828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16829 choke me
16830 #else
16831 $ac_func();
16832 #endif
16833
16834 ; return 0; }
16835 EOF
16836 if { (eval echo configure:16837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16837   rm -rf conftest*
16838   eval "ac_cv_func_$ac_func=yes"
16839 else
16840   echo "configure: failed program was:" >&5
16841   cat conftest.$ac_ext >&5
16842   rm -rf conftest*
16843   eval "ac_cv_func_$ac_func=no"
16844 fi
16845 rm -f conftest*
16846 fi
16847
16848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16849   echo "$ac_t""yes" 1>&6
16850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16851   cat >> confdefs.h <<EOF
16852 #define $ac_tr_func 1
16853 EOF
16854  
16855 else
16856   echo "$ac_t""no" 1>&6
16857 fi
16858 done
16859     
16860     fi
16861   fi
16862
16863   
16864   
16865   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
16866 echo "configure:16867: checking for frexpl declaration" >&5
16867   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
16868     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
16869   echo $ac_n "(cached) $ac_c" 1>&6
16870 else
16871   
16872       
16873       ac_ext=C
16874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16875 ac_cpp='$CXXCPP $CPPFLAGS'
16876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16878 cross_compiling=$ac_cv_prog_cxx_cross
16879
16880       cat > conftest.$ac_ext <<EOF
16881 #line 16882 "configure"
16882 #include "confdefs.h"
16883 #include <math.h>
16884 int main() {
16885  frexpl(0, 0);
16886 ; return 0; }
16887 EOF
16888 if { (eval echo configure:16889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16889   rm -rf conftest*
16890   glibcpp_cv_func_frexpl_use=yes
16891 else
16892   echo "configure: failed program was:" >&5
16893   cat conftest.$ac_ext >&5
16894   rm -rf conftest*
16895   glibcpp_cv_func_frexpl_use=no
16896 fi
16897 rm -f conftest*
16898       ac_ext=c
16899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16900 ac_cpp='$CPP $CPPFLAGS'
16901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16903 cross_compiling=$ac_cv_prog_cc_cross
16904
16905     
16906 fi
16907
16908   fi
16909   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16910
16911   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16912     for ac_func in frexpl
16913 do
16914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16915 echo "configure:16916: checking for $ac_func" >&5
16916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16917   echo $ac_n "(cached) $ac_c" 1>&6
16918 else
16919   cat > conftest.$ac_ext <<EOF
16920 #line 16921 "configure"
16921 #include "confdefs.h"
16922 /* System header to define __stub macros and hopefully few prototypes,
16923     which can conflict with char $ac_func(); below.  */
16924 #include <assert.h>
16925 /* Override any gcc2 internal prototype to avoid an error.  */
16926 /* We use char because int might match the return type of a gcc2
16927     builtin and then its argument prototype would still apply.  */
16928 char $ac_func();
16929
16930 int main() {
16931
16932 /* The GNU C library defines this for functions which it implements
16933     to always fail with ENOSYS.  Some functions are actually named
16934     something starting with __ and the normal name is an alias.  */
16935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16936 choke me
16937 #else
16938 $ac_func();
16939 #endif
16940
16941 ; return 0; }
16942 EOF
16943 if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16944   rm -rf conftest*
16945   eval "ac_cv_func_$ac_func=yes"
16946 else
16947   echo "configure: failed program was:" >&5
16948   cat conftest.$ac_ext >&5
16949   rm -rf conftest*
16950   eval "ac_cv_func_$ac_func=no"
16951 fi
16952 rm -f conftest*
16953 fi
16954
16955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16956   echo "$ac_t""yes" 1>&6
16957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16958   cat >> confdefs.h <<EOF
16959 #define $ac_tr_func 1
16960 EOF
16961  
16962 else
16963   echo "$ac_t""no" 1>&6
16964 fi
16965 done
16966     
16967   else
16968     
16969   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16970 echo "configure:16971: checking for _frexpl declaration" >&5
16971   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16972     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16973   echo $ac_n "(cached) $ac_c" 1>&6
16974 else
16975   
16976       
16977       ac_ext=C
16978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16979 ac_cpp='$CXXCPP $CPPFLAGS'
16980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16982 cross_compiling=$ac_cv_prog_cxx_cross
16983
16984       cat > conftest.$ac_ext <<EOF
16985 #line 16986 "configure"
16986 #include "confdefs.h"
16987 #include <math.h>
16988 int main() {
16989  _frexpl(0, 0);
16990 ; return 0; }
16991 EOF
16992 if { (eval echo configure:16993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16993   rm -rf conftest*
16994   glibcpp_cv_func__frexpl_use=yes
16995 else
16996   echo "configure: failed program was:" >&5
16997   cat conftest.$ac_ext >&5
16998   rm -rf conftest*
16999   glibcpp_cv_func__frexpl_use=no
17000 fi
17001 rm -f conftest*
17002       ac_ext=c
17003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17004 ac_cpp='$CPP $CPPFLAGS'
17005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17007 cross_compiling=$ac_cv_prog_cc_cross
17008
17009     
17010 fi
17011
17012   fi
17013   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17014
17015     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17016       for ac_func in _frexpl
17017 do
17018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17019 echo "configure:17020: checking for $ac_func" >&5
17020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17021   echo $ac_n "(cached) $ac_c" 1>&6
17022 else
17023   cat > conftest.$ac_ext <<EOF
17024 #line 17025 "configure"
17025 #include "confdefs.h"
17026 /* System header to define __stub macros and hopefully few prototypes,
17027     which can conflict with char $ac_func(); below.  */
17028 #include <assert.h>
17029 /* Override any gcc2 internal prototype to avoid an error.  */
17030 /* We use char because int might match the return type of a gcc2
17031     builtin and then its argument prototype would still apply.  */
17032 char $ac_func();
17033
17034 int main() {
17035
17036 /* The GNU C library defines this for functions which it implements
17037     to always fail with ENOSYS.  Some functions are actually named
17038     something starting with __ and the normal name is an alias.  */
17039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17040 choke me
17041 #else
17042 $ac_func();
17043 #endif
17044
17045 ; return 0; }
17046 EOF
17047 if { (eval echo configure:17048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17048   rm -rf conftest*
17049   eval "ac_cv_func_$ac_func=yes"
17050 else
17051   echo "configure: failed program was:" >&5
17052   cat conftest.$ac_ext >&5
17053   rm -rf conftest*
17054   eval "ac_cv_func_$ac_func=no"
17055 fi
17056 rm -f conftest*
17057 fi
17058
17059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17060   echo "$ac_t""yes" 1>&6
17061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17062   cat >> confdefs.h <<EOF
17063 #define $ac_tr_func 1
17064 EOF
17065  
17066 else
17067   echo "$ac_t""no" 1>&6
17068 fi
17069 done
17070     
17071     fi
17072   fi
17073
17074   
17075   
17076   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17077 echo "configure:17078: checking for hypotl declaration" >&5
17078   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17079     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
17080   echo $ac_n "(cached) $ac_c" 1>&6
17081 else
17082   
17083       
17084       ac_ext=C
17085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17086 ac_cpp='$CXXCPP $CPPFLAGS'
17087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17089 cross_compiling=$ac_cv_prog_cxx_cross
17090
17091       cat > conftest.$ac_ext <<EOF
17092 #line 17093 "configure"
17093 #include "confdefs.h"
17094 #include <math.h>
17095 int main() {
17096  hypotl(0, 0);
17097 ; return 0; }
17098 EOF
17099 if { (eval echo configure:17100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17100   rm -rf conftest*
17101   glibcpp_cv_func_hypotl_use=yes
17102 else
17103   echo "configure: failed program was:" >&5
17104   cat conftest.$ac_ext >&5
17105   rm -rf conftest*
17106   glibcpp_cv_func_hypotl_use=no
17107 fi
17108 rm -f conftest*
17109       ac_ext=c
17110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17111 ac_cpp='$CPP $CPPFLAGS'
17112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17114 cross_compiling=$ac_cv_prog_cc_cross
17115
17116     
17117 fi
17118
17119   fi
17120   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
17121
17122   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
17123     for ac_func in hypotl
17124 do
17125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17126 echo "configure:17127: checking for $ac_func" >&5
17127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17128   echo $ac_n "(cached) $ac_c" 1>&6
17129 else
17130   cat > conftest.$ac_ext <<EOF
17131 #line 17132 "configure"
17132 #include "confdefs.h"
17133 /* System header to define __stub macros and hopefully few prototypes,
17134     which can conflict with char $ac_func(); below.  */
17135 #include <assert.h>
17136 /* Override any gcc2 internal prototype to avoid an error.  */
17137 /* We use char because int might match the return type of a gcc2
17138     builtin and then its argument prototype would still apply.  */
17139 char $ac_func();
17140
17141 int main() {
17142
17143 /* The GNU C library defines this for functions which it implements
17144     to always fail with ENOSYS.  Some functions are actually named
17145     something starting with __ and the normal name is an alias.  */
17146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17147 choke me
17148 #else
17149 $ac_func();
17150 #endif
17151
17152 ; return 0; }
17153 EOF
17154 if { (eval echo configure:17155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17155   rm -rf conftest*
17156   eval "ac_cv_func_$ac_func=yes"
17157 else
17158   echo "configure: failed program was:" >&5
17159   cat conftest.$ac_ext >&5
17160   rm -rf conftest*
17161   eval "ac_cv_func_$ac_func=no"
17162 fi
17163 rm -f conftest*
17164 fi
17165
17166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17167   echo "$ac_t""yes" 1>&6
17168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17169   cat >> confdefs.h <<EOF
17170 #define $ac_tr_func 1
17171 EOF
17172  
17173 else
17174   echo "$ac_t""no" 1>&6
17175 fi
17176 done
17177     
17178   else
17179     
17180   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
17181 echo "configure:17182: checking for _hypotl declaration" >&5
17182   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
17183     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
17184   echo $ac_n "(cached) $ac_c" 1>&6
17185 else
17186   
17187       
17188       ac_ext=C
17189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17190 ac_cpp='$CXXCPP $CPPFLAGS'
17191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17193 cross_compiling=$ac_cv_prog_cxx_cross
17194
17195       cat > conftest.$ac_ext <<EOF
17196 #line 17197 "configure"
17197 #include "confdefs.h"
17198 #include <math.h>
17199 int main() {
17200  _hypotl(0, 0);
17201 ; return 0; }
17202 EOF
17203 if { (eval echo configure:17204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17204   rm -rf conftest*
17205   glibcpp_cv_func__hypotl_use=yes
17206 else
17207   echo "configure: failed program was:" >&5
17208   cat conftest.$ac_ext >&5
17209   rm -rf conftest*
17210   glibcpp_cv_func__hypotl_use=no
17211 fi
17212 rm -f conftest*
17213       ac_ext=c
17214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17215 ac_cpp='$CPP $CPPFLAGS'
17216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17218 cross_compiling=$ac_cv_prog_cc_cross
17219
17220     
17221 fi
17222
17223   fi
17224   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
17225
17226     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
17227       for ac_func in _hypotl
17228 do
17229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17230 echo "configure:17231: checking for $ac_func" >&5
17231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17232   echo $ac_n "(cached) $ac_c" 1>&6
17233 else
17234   cat > conftest.$ac_ext <<EOF
17235 #line 17236 "configure"
17236 #include "confdefs.h"
17237 /* System header to define __stub macros and hopefully few prototypes,
17238     which can conflict with char $ac_func(); below.  */
17239 #include <assert.h>
17240 /* Override any gcc2 internal prototype to avoid an error.  */
17241 /* We use char because int might match the return type of a gcc2
17242     builtin and then its argument prototype would still apply.  */
17243 char $ac_func();
17244
17245 int main() {
17246
17247 /* The GNU C library defines this for functions which it implements
17248     to always fail with ENOSYS.  Some functions are actually named
17249     something starting with __ and the normal name is an alias.  */
17250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17251 choke me
17252 #else
17253 $ac_func();
17254 #endif
17255
17256 ; return 0; }
17257 EOF
17258 if { (eval echo configure:17259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17259   rm -rf conftest*
17260   eval "ac_cv_func_$ac_func=yes"
17261 else
17262   echo "configure: failed program was:" >&5
17263   cat conftest.$ac_ext >&5
17264   rm -rf conftest*
17265   eval "ac_cv_func_$ac_func=no"
17266 fi
17267 rm -f conftest*
17268 fi
17269
17270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17271   echo "$ac_t""yes" 1>&6
17272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17273   cat >> confdefs.h <<EOF
17274 #define $ac_tr_func 1
17275 EOF
17276  
17277 else
17278   echo "$ac_t""no" 1>&6
17279 fi
17280 done
17281     
17282     fi
17283   fi
17284
17285   
17286   
17287   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
17288 echo "configure:17289: checking for ldexpl declaration" >&5
17289   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
17290     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
17291   echo $ac_n "(cached) $ac_c" 1>&6
17292 else
17293   
17294       
17295       ac_ext=C
17296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17297 ac_cpp='$CXXCPP $CPPFLAGS'
17298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17300 cross_compiling=$ac_cv_prog_cxx_cross
17301
17302       cat > conftest.$ac_ext <<EOF
17303 #line 17304 "configure"
17304 #include "confdefs.h"
17305 #include <math.h>
17306 int main() {
17307  ldexpl(0, 0);
17308 ; return 0; }
17309 EOF
17310 if { (eval echo configure:17311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17311   rm -rf conftest*
17312   glibcpp_cv_func_ldexpl_use=yes
17313 else
17314   echo "configure: failed program was:" >&5
17315   cat conftest.$ac_ext >&5
17316   rm -rf conftest*
17317   glibcpp_cv_func_ldexpl_use=no
17318 fi
17319 rm -f conftest*
17320       ac_ext=c
17321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17322 ac_cpp='$CPP $CPPFLAGS'
17323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17325 cross_compiling=$ac_cv_prog_cc_cross
17326
17327     
17328 fi
17329
17330   fi
17331   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
17332
17333   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
17334     for ac_func in ldexpl
17335 do
17336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17337 echo "configure:17338: checking for $ac_func" >&5
17338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17339   echo $ac_n "(cached) $ac_c" 1>&6
17340 else
17341   cat > conftest.$ac_ext <<EOF
17342 #line 17343 "configure"
17343 #include "confdefs.h"
17344 /* System header to define __stub macros and hopefully few prototypes,
17345     which can conflict with char $ac_func(); below.  */
17346 #include <assert.h>
17347 /* Override any gcc2 internal prototype to avoid an error.  */
17348 /* We use char because int might match the return type of a gcc2
17349     builtin and then its argument prototype would still apply.  */
17350 char $ac_func();
17351
17352 int main() {
17353
17354 /* The GNU C library defines this for functions which it implements
17355     to always fail with ENOSYS.  Some functions are actually named
17356     something starting with __ and the normal name is an alias.  */
17357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17358 choke me
17359 #else
17360 $ac_func();
17361 #endif
17362
17363 ; return 0; }
17364 EOF
17365 if { (eval echo configure:17366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17366   rm -rf conftest*
17367   eval "ac_cv_func_$ac_func=yes"
17368 else
17369   echo "configure: failed program was:" >&5
17370   cat conftest.$ac_ext >&5
17371   rm -rf conftest*
17372   eval "ac_cv_func_$ac_func=no"
17373 fi
17374 rm -f conftest*
17375 fi
17376
17377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17378   echo "$ac_t""yes" 1>&6
17379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17380   cat >> confdefs.h <<EOF
17381 #define $ac_tr_func 1
17382 EOF
17383  
17384 else
17385   echo "$ac_t""no" 1>&6
17386 fi
17387 done
17388     
17389   else
17390     
17391   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
17392 echo "configure:17393: checking for _ldexpl declaration" >&5
17393   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
17394     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
17395   echo $ac_n "(cached) $ac_c" 1>&6
17396 else
17397   
17398       
17399       ac_ext=C
17400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17401 ac_cpp='$CXXCPP $CPPFLAGS'
17402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17404 cross_compiling=$ac_cv_prog_cxx_cross
17405
17406       cat > conftest.$ac_ext <<EOF
17407 #line 17408 "configure"
17408 #include "confdefs.h"
17409 #include <math.h>
17410 int main() {
17411  _ldexpl(0, 0);
17412 ; return 0; }
17413 EOF
17414 if { (eval echo configure:17415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17415   rm -rf conftest*
17416   glibcpp_cv_func__ldexpl_use=yes
17417 else
17418   echo "configure: failed program was:" >&5
17419   cat conftest.$ac_ext >&5
17420   rm -rf conftest*
17421   glibcpp_cv_func__ldexpl_use=no
17422 fi
17423 rm -f conftest*
17424       ac_ext=c
17425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17426 ac_cpp='$CPP $CPPFLAGS'
17427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17429 cross_compiling=$ac_cv_prog_cc_cross
17430
17431     
17432 fi
17433
17434   fi
17435   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
17436
17437     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
17438       for ac_func in _ldexpl
17439 do
17440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17441 echo "configure:17442: checking for $ac_func" >&5
17442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17443   echo $ac_n "(cached) $ac_c" 1>&6
17444 else
17445   cat > conftest.$ac_ext <<EOF
17446 #line 17447 "configure"
17447 #include "confdefs.h"
17448 /* System header to define __stub macros and hopefully few prototypes,
17449     which can conflict with char $ac_func(); below.  */
17450 #include <assert.h>
17451 /* Override any gcc2 internal prototype to avoid an error.  */
17452 /* We use char because int might match the return type of a gcc2
17453     builtin and then its argument prototype would still apply.  */
17454 char $ac_func();
17455
17456 int main() {
17457
17458 /* The GNU C library defines this for functions which it implements
17459     to always fail with ENOSYS.  Some functions are actually named
17460     something starting with __ and the normal name is an alias.  */
17461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17462 choke me
17463 #else
17464 $ac_func();
17465 #endif
17466
17467 ; return 0; }
17468 EOF
17469 if { (eval echo configure:17470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17470   rm -rf conftest*
17471   eval "ac_cv_func_$ac_func=yes"
17472 else
17473   echo "configure: failed program was:" >&5
17474   cat conftest.$ac_ext >&5
17475   rm -rf conftest*
17476   eval "ac_cv_func_$ac_func=no"
17477 fi
17478 rm -f conftest*
17479 fi
17480
17481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17482   echo "$ac_t""yes" 1>&6
17483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17484   cat >> confdefs.h <<EOF
17485 #define $ac_tr_func 1
17486 EOF
17487  
17488 else
17489   echo "$ac_t""no" 1>&6
17490 fi
17491 done
17492     
17493     fi
17494   fi
17495
17496   
17497   
17498   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
17499 echo "configure:17500: checking for logl declaration" >&5
17500   if test x${glibcpp_cv_func_logl_use+set} != xset; then
17501     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
17502   echo $ac_n "(cached) $ac_c" 1>&6
17503 else
17504   
17505       
17506       ac_ext=C
17507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17508 ac_cpp='$CXXCPP $CPPFLAGS'
17509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17511 cross_compiling=$ac_cv_prog_cxx_cross
17512
17513       cat > conftest.$ac_ext <<EOF
17514 #line 17515 "configure"
17515 #include "confdefs.h"
17516 #include <math.h>
17517                       #ifdef HAVE_IEEEFP_H
17518                       #include <ieeefp.h>
17519                       #endif
17520                      
17521 int main() {
17522  logl(0);
17523 ; return 0; }
17524 EOF
17525 if { (eval echo configure:17526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17526   rm -rf conftest*
17527   glibcpp_cv_func_logl_use=yes
17528 else
17529   echo "configure: failed program was:" >&5
17530   cat conftest.$ac_ext >&5
17531   rm -rf conftest*
17532   glibcpp_cv_func_logl_use=no
17533 fi
17534 rm -f conftest*
17535       ac_ext=c
17536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17537 ac_cpp='$CPP $CPPFLAGS'
17538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17540 cross_compiling=$ac_cv_prog_cc_cross
17541
17542     
17543 fi
17544
17545   fi
17546   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
17547
17548   if test x$glibcpp_cv_func_logl_use = x"yes"; then
17549     for ac_func in logl
17550 do
17551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17552 echo "configure:17553: checking for $ac_func" >&5
17553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17554   echo $ac_n "(cached) $ac_c" 1>&6
17555 else
17556   cat > conftest.$ac_ext <<EOF
17557 #line 17558 "configure"
17558 #include "confdefs.h"
17559 /* System header to define __stub macros and hopefully few prototypes,
17560     which can conflict with char $ac_func(); below.  */
17561 #include <assert.h>
17562 /* Override any gcc2 internal prototype to avoid an error.  */
17563 /* We use char because int might match the return type of a gcc2
17564     builtin and then its argument prototype would still apply.  */
17565 char $ac_func();
17566
17567 int main() {
17568
17569 /* The GNU C library defines this for functions which it implements
17570     to always fail with ENOSYS.  Some functions are actually named
17571     something starting with __ and the normal name is an alias.  */
17572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17573 choke me
17574 #else
17575 $ac_func();
17576 #endif
17577
17578 ; return 0; }
17579 EOF
17580 if { (eval echo configure:17581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17581   rm -rf conftest*
17582   eval "ac_cv_func_$ac_func=yes"
17583 else
17584   echo "configure: failed program was:" >&5
17585   cat conftest.$ac_ext >&5
17586   rm -rf conftest*
17587   eval "ac_cv_func_$ac_func=no"
17588 fi
17589 rm -f conftest*
17590 fi
17591
17592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17593   echo "$ac_t""yes" 1>&6
17594     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17595   cat >> confdefs.h <<EOF
17596 #define $ac_tr_func 1
17597 EOF
17598  
17599 else
17600   echo "$ac_t""no" 1>&6
17601 fi
17602 done
17603     
17604   else
17605     
17606   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
17607 echo "configure:17608: checking for _logl declaration" >&5
17608   if test x${glibcpp_cv_func__logl_use+set} != xset; then
17609     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
17610   echo $ac_n "(cached) $ac_c" 1>&6
17611 else
17612   
17613       
17614       ac_ext=C
17615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17616 ac_cpp='$CXXCPP $CPPFLAGS'
17617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17619 cross_compiling=$ac_cv_prog_cxx_cross
17620
17621       cat > conftest.$ac_ext <<EOF
17622 #line 17623 "configure"
17623 #include "confdefs.h"
17624 #include <math.h>
17625                       #ifdef HAVE_IEEEFP_H
17626                       #include <ieeefp.h>
17627                       #endif
17628                      
17629 int main() {
17630  _logl(0);
17631 ; return 0; }
17632 EOF
17633 if { (eval echo configure:17634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17634   rm -rf conftest*
17635   glibcpp_cv_func__logl_use=yes
17636 else
17637   echo "configure: failed program was:" >&5
17638   cat conftest.$ac_ext >&5
17639   rm -rf conftest*
17640   glibcpp_cv_func__logl_use=no
17641 fi
17642 rm -f conftest*
17643       ac_ext=c
17644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17645 ac_cpp='$CPP $CPPFLAGS'
17646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17648 cross_compiling=$ac_cv_prog_cc_cross
17649
17650     
17651 fi
17652
17653   fi
17654   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
17655
17656     if test x$glibcpp_cv_func__logl_use = x"yes"; then
17657       for ac_func in _logl
17658 do
17659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17660 echo "configure:17661: checking for $ac_func" >&5
17661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17662   echo $ac_n "(cached) $ac_c" 1>&6
17663 else
17664   cat > conftest.$ac_ext <<EOF
17665 #line 17666 "configure"
17666 #include "confdefs.h"
17667 /* System header to define __stub macros and hopefully few prototypes,
17668     which can conflict with char $ac_func(); below.  */
17669 #include <assert.h>
17670 /* Override any gcc2 internal prototype to avoid an error.  */
17671 /* We use char because int might match the return type of a gcc2
17672     builtin and then its argument prototype would still apply.  */
17673 char $ac_func();
17674
17675 int main() {
17676
17677 /* The GNU C library defines this for functions which it implements
17678     to always fail with ENOSYS.  Some functions are actually named
17679     something starting with __ and the normal name is an alias.  */
17680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17681 choke me
17682 #else
17683 $ac_func();
17684 #endif
17685
17686 ; return 0; }
17687 EOF
17688 if { (eval echo configure:17689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17689   rm -rf conftest*
17690   eval "ac_cv_func_$ac_func=yes"
17691 else
17692   echo "configure: failed program was:" >&5
17693   cat conftest.$ac_ext >&5
17694   rm -rf conftest*
17695   eval "ac_cv_func_$ac_func=no"
17696 fi
17697 rm -f conftest*
17698 fi
17699
17700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17701   echo "$ac_t""yes" 1>&6
17702     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17703   cat >> confdefs.h <<EOF
17704 #define $ac_tr_func 1
17705 EOF
17706  
17707 else
17708   echo "$ac_t""no" 1>&6
17709 fi
17710 done
17711     
17712     fi
17713   fi
17714
17715   
17716   
17717   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
17718 echo "configure:17719: checking for log10l declaration" >&5
17719   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
17720     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
17721   echo $ac_n "(cached) $ac_c" 1>&6
17722 else
17723   
17724       
17725       ac_ext=C
17726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17727 ac_cpp='$CXXCPP $CPPFLAGS'
17728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17730 cross_compiling=$ac_cv_prog_cxx_cross
17731
17732       cat > conftest.$ac_ext <<EOF
17733 #line 17734 "configure"
17734 #include "confdefs.h"
17735 #include <math.h>
17736                       #ifdef HAVE_IEEEFP_H
17737                       #include <ieeefp.h>
17738                       #endif
17739                      
17740 int main() {
17741  log10l(0);
17742 ; return 0; }
17743 EOF
17744 if { (eval echo configure:17745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17745   rm -rf conftest*
17746   glibcpp_cv_func_log10l_use=yes
17747 else
17748   echo "configure: failed program was:" >&5
17749   cat conftest.$ac_ext >&5
17750   rm -rf conftest*
17751   glibcpp_cv_func_log10l_use=no
17752 fi
17753 rm -f conftest*
17754       ac_ext=c
17755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17756 ac_cpp='$CPP $CPPFLAGS'
17757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17759 cross_compiling=$ac_cv_prog_cc_cross
17760
17761     
17762 fi
17763
17764   fi
17765   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
17766
17767   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
17768     for ac_func in log10l
17769 do
17770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17771 echo "configure:17772: checking for $ac_func" >&5
17772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17773   echo $ac_n "(cached) $ac_c" 1>&6
17774 else
17775   cat > conftest.$ac_ext <<EOF
17776 #line 17777 "configure"
17777 #include "confdefs.h"
17778 /* System header to define __stub macros and hopefully few prototypes,
17779     which can conflict with char $ac_func(); below.  */
17780 #include <assert.h>
17781 /* Override any gcc2 internal prototype to avoid an error.  */
17782 /* We use char because int might match the return type of a gcc2
17783     builtin and then its argument prototype would still apply.  */
17784 char $ac_func();
17785
17786 int main() {
17787
17788 /* The GNU C library defines this for functions which it implements
17789     to always fail with ENOSYS.  Some functions are actually named
17790     something starting with __ and the normal name is an alias.  */
17791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17792 choke me
17793 #else
17794 $ac_func();
17795 #endif
17796
17797 ; return 0; }
17798 EOF
17799 if { (eval echo configure:17800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17800   rm -rf conftest*
17801   eval "ac_cv_func_$ac_func=yes"
17802 else
17803   echo "configure: failed program was:" >&5
17804   cat conftest.$ac_ext >&5
17805   rm -rf conftest*
17806   eval "ac_cv_func_$ac_func=no"
17807 fi
17808 rm -f conftest*
17809 fi
17810
17811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17812   echo "$ac_t""yes" 1>&6
17813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17814   cat >> confdefs.h <<EOF
17815 #define $ac_tr_func 1
17816 EOF
17817  
17818 else
17819   echo "$ac_t""no" 1>&6
17820 fi
17821 done
17822     
17823   else
17824     
17825   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
17826 echo "configure:17827: checking for _log10l declaration" >&5
17827   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
17828     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
17829   echo $ac_n "(cached) $ac_c" 1>&6
17830 else
17831   
17832       
17833       ac_ext=C
17834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17835 ac_cpp='$CXXCPP $CPPFLAGS'
17836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17838 cross_compiling=$ac_cv_prog_cxx_cross
17839
17840       cat > conftest.$ac_ext <<EOF
17841 #line 17842 "configure"
17842 #include "confdefs.h"
17843 #include <math.h>
17844                       #ifdef HAVE_IEEEFP_H
17845                       #include <ieeefp.h>
17846                       #endif
17847                      
17848 int main() {
17849  _log10l(0);
17850 ; return 0; }
17851 EOF
17852 if { (eval echo configure:17853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17853   rm -rf conftest*
17854   glibcpp_cv_func__log10l_use=yes
17855 else
17856   echo "configure: failed program was:" >&5
17857   cat conftest.$ac_ext >&5
17858   rm -rf conftest*
17859   glibcpp_cv_func__log10l_use=no
17860 fi
17861 rm -f conftest*
17862       ac_ext=c
17863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17867 cross_compiling=$ac_cv_prog_cc_cross
17868
17869     
17870 fi
17871
17872   fi
17873   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
17874
17875     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
17876       for ac_func in _log10l
17877 do
17878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17879 echo "configure:17880: checking for $ac_func" >&5
17880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17881   echo $ac_n "(cached) $ac_c" 1>&6
17882 else
17883   cat > conftest.$ac_ext <<EOF
17884 #line 17885 "configure"
17885 #include "confdefs.h"
17886 /* System header to define __stub macros and hopefully few prototypes,
17887     which can conflict with char $ac_func(); below.  */
17888 #include <assert.h>
17889 /* Override any gcc2 internal prototype to avoid an error.  */
17890 /* We use char because int might match the return type of a gcc2
17891     builtin and then its argument prototype would still apply.  */
17892 char $ac_func();
17893
17894 int main() {
17895
17896 /* The GNU C library defines this for functions which it implements
17897     to always fail with ENOSYS.  Some functions are actually named
17898     something starting with __ and the normal name is an alias.  */
17899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17900 choke me
17901 #else
17902 $ac_func();
17903 #endif
17904
17905 ; return 0; }
17906 EOF
17907 if { (eval echo configure:17908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17908   rm -rf conftest*
17909   eval "ac_cv_func_$ac_func=yes"
17910 else
17911   echo "configure: failed program was:" >&5
17912   cat conftest.$ac_ext >&5
17913   rm -rf conftest*
17914   eval "ac_cv_func_$ac_func=no"
17915 fi
17916 rm -f conftest*
17917 fi
17918
17919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17920   echo "$ac_t""yes" 1>&6
17921     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17922   cat >> confdefs.h <<EOF
17923 #define $ac_tr_func 1
17924 EOF
17925  
17926 else
17927   echo "$ac_t""no" 1>&6
17928 fi
17929 done
17930     
17931     fi
17932   fi
17933
17934   
17935   
17936   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17937 echo "configure:17938: checking for modfl declaration" >&5
17938   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17939     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17940   echo $ac_n "(cached) $ac_c" 1>&6
17941 else
17942   
17943       
17944       ac_ext=C
17945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17946 ac_cpp='$CXXCPP $CPPFLAGS'
17947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17949 cross_compiling=$ac_cv_prog_cxx_cross
17950
17951       cat > conftest.$ac_ext <<EOF
17952 #line 17953 "configure"
17953 #include "confdefs.h"
17954 #include <math.h>
17955 int main() {
17956  modfl(0, 0);
17957 ; return 0; }
17958 EOF
17959 if { (eval echo configure:17960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17960   rm -rf conftest*
17961   glibcpp_cv_func_modfl_use=yes
17962 else
17963   echo "configure: failed program was:" >&5
17964   cat conftest.$ac_ext >&5
17965   rm -rf conftest*
17966   glibcpp_cv_func_modfl_use=no
17967 fi
17968 rm -f conftest*
17969       ac_ext=c
17970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17974 cross_compiling=$ac_cv_prog_cc_cross
17975
17976     
17977 fi
17978
17979   fi
17980   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17981
17982   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
17983     for ac_func in modfl
17984 do
17985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17986 echo "configure:17987: checking for $ac_func" >&5
17987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17988   echo $ac_n "(cached) $ac_c" 1>&6
17989 else
17990   cat > conftest.$ac_ext <<EOF
17991 #line 17992 "configure"
17992 #include "confdefs.h"
17993 /* System header to define __stub macros and hopefully few prototypes,
17994     which can conflict with char $ac_func(); below.  */
17995 #include <assert.h>
17996 /* Override any gcc2 internal prototype to avoid an error.  */
17997 /* We use char because int might match the return type of a gcc2
17998     builtin and then its argument prototype would still apply.  */
17999 char $ac_func();
18000
18001 int main() {
18002
18003 /* The GNU C library defines this for functions which it implements
18004     to always fail with ENOSYS.  Some functions are actually named
18005     something starting with __ and the normal name is an alias.  */
18006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18007 choke me
18008 #else
18009 $ac_func();
18010 #endif
18011
18012 ; return 0; }
18013 EOF
18014 if { (eval echo configure:18015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18015   rm -rf conftest*
18016   eval "ac_cv_func_$ac_func=yes"
18017 else
18018   echo "configure: failed program was:" >&5
18019   cat conftest.$ac_ext >&5
18020   rm -rf conftest*
18021   eval "ac_cv_func_$ac_func=no"
18022 fi
18023 rm -f conftest*
18024 fi
18025
18026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18027   echo "$ac_t""yes" 1>&6
18028     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18029   cat >> confdefs.h <<EOF
18030 #define $ac_tr_func 1
18031 EOF
18032  
18033 else
18034   echo "$ac_t""no" 1>&6
18035 fi
18036 done
18037     
18038   else
18039     
18040   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18041 echo "configure:18042: checking for _modfl declaration" >&5
18042   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18043     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18044   echo $ac_n "(cached) $ac_c" 1>&6
18045 else
18046   
18047       
18048       ac_ext=C
18049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18050 ac_cpp='$CXXCPP $CPPFLAGS'
18051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18053 cross_compiling=$ac_cv_prog_cxx_cross
18054
18055       cat > conftest.$ac_ext <<EOF
18056 #line 18057 "configure"
18057 #include "confdefs.h"
18058 #include <math.h>
18059 int main() {
18060  _modfl(0, 0);
18061 ; return 0; }
18062 EOF
18063 if { (eval echo configure:18064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18064   rm -rf conftest*
18065   glibcpp_cv_func__modfl_use=yes
18066 else
18067   echo "configure: failed program was:" >&5
18068   cat conftest.$ac_ext >&5
18069   rm -rf conftest*
18070   glibcpp_cv_func__modfl_use=no
18071 fi
18072 rm -f conftest*
18073       ac_ext=c
18074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18075 ac_cpp='$CPP $CPPFLAGS'
18076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18078 cross_compiling=$ac_cv_prog_cc_cross
18079
18080     
18081 fi
18082
18083   fi
18084   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
18085
18086     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
18087       for ac_func in _modfl
18088 do
18089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18090 echo "configure:18091: checking for $ac_func" >&5
18091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18092   echo $ac_n "(cached) $ac_c" 1>&6
18093 else
18094   cat > conftest.$ac_ext <<EOF
18095 #line 18096 "configure"
18096 #include "confdefs.h"
18097 /* System header to define __stub macros and hopefully few prototypes,
18098     which can conflict with char $ac_func(); below.  */
18099 #include <assert.h>
18100 /* Override any gcc2 internal prototype to avoid an error.  */
18101 /* We use char because int might match the return type of a gcc2
18102     builtin and then its argument prototype would still apply.  */
18103 char $ac_func();
18104
18105 int main() {
18106
18107 /* The GNU C library defines this for functions which it implements
18108     to always fail with ENOSYS.  Some functions are actually named
18109     something starting with __ and the normal name is an alias.  */
18110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18111 choke me
18112 #else
18113 $ac_func();
18114 #endif
18115
18116 ; return 0; }
18117 EOF
18118 if { (eval echo configure:18119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18119   rm -rf conftest*
18120   eval "ac_cv_func_$ac_func=yes"
18121 else
18122   echo "configure: failed program was:" >&5
18123   cat conftest.$ac_ext >&5
18124   rm -rf conftest*
18125   eval "ac_cv_func_$ac_func=no"
18126 fi
18127 rm -f conftest*
18128 fi
18129
18130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18131   echo "$ac_t""yes" 1>&6
18132     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18133   cat >> confdefs.h <<EOF
18134 #define $ac_tr_func 1
18135 EOF
18136  
18137 else
18138   echo "$ac_t""no" 1>&6
18139 fi
18140 done
18141     
18142     fi
18143   fi
18144
18145   
18146   
18147   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
18148 echo "configure:18149: checking for powl declaration" >&5
18149   if test x${glibcpp_cv_func_powl_use+set} != xset; then
18150     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
18151   echo $ac_n "(cached) $ac_c" 1>&6
18152 else
18153   
18154       
18155       ac_ext=C
18156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18157 ac_cpp='$CXXCPP $CPPFLAGS'
18158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18160 cross_compiling=$ac_cv_prog_cxx_cross
18161
18162       cat > conftest.$ac_ext <<EOF
18163 #line 18164 "configure"
18164 #include "confdefs.h"
18165 #include <math.h>
18166 int main() {
18167  powl(0, 0);
18168 ; return 0; }
18169 EOF
18170 if { (eval echo configure:18171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18171   rm -rf conftest*
18172   glibcpp_cv_func_powl_use=yes
18173 else
18174   echo "configure: failed program was:" >&5
18175   cat conftest.$ac_ext >&5
18176   rm -rf conftest*
18177   glibcpp_cv_func_powl_use=no
18178 fi
18179 rm -f conftest*
18180       ac_ext=c
18181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18182 ac_cpp='$CPP $CPPFLAGS'
18183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18185 cross_compiling=$ac_cv_prog_cc_cross
18186
18187     
18188 fi
18189
18190   fi
18191   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
18192
18193   if test x$glibcpp_cv_func_powl_use = x"yes"; then
18194     for ac_func in powl
18195 do
18196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18197 echo "configure:18198: checking for $ac_func" >&5
18198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18199   echo $ac_n "(cached) $ac_c" 1>&6
18200 else
18201   cat > conftest.$ac_ext <<EOF
18202 #line 18203 "configure"
18203 #include "confdefs.h"
18204 /* System header to define __stub macros and hopefully few prototypes,
18205     which can conflict with char $ac_func(); below.  */
18206 #include <assert.h>
18207 /* Override any gcc2 internal prototype to avoid an error.  */
18208 /* We use char because int might match the return type of a gcc2
18209     builtin and then its argument prototype would still apply.  */
18210 char $ac_func();
18211
18212 int main() {
18213
18214 /* The GNU C library defines this for functions which it implements
18215     to always fail with ENOSYS.  Some functions are actually named
18216     something starting with __ and the normal name is an alias.  */
18217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18218 choke me
18219 #else
18220 $ac_func();
18221 #endif
18222
18223 ; return 0; }
18224 EOF
18225 if { (eval echo configure:18226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18226   rm -rf conftest*
18227   eval "ac_cv_func_$ac_func=yes"
18228 else
18229   echo "configure: failed program was:" >&5
18230   cat conftest.$ac_ext >&5
18231   rm -rf conftest*
18232   eval "ac_cv_func_$ac_func=no"
18233 fi
18234 rm -f conftest*
18235 fi
18236
18237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18238   echo "$ac_t""yes" 1>&6
18239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18240   cat >> confdefs.h <<EOF
18241 #define $ac_tr_func 1
18242 EOF
18243  
18244 else
18245   echo "$ac_t""no" 1>&6
18246 fi
18247 done
18248     
18249   else
18250     
18251   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
18252 echo "configure:18253: checking for _powl declaration" >&5
18253   if test x${glibcpp_cv_func__powl_use+set} != xset; then
18254     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
18255   echo $ac_n "(cached) $ac_c" 1>&6
18256 else
18257   
18258       
18259       ac_ext=C
18260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18261 ac_cpp='$CXXCPP $CPPFLAGS'
18262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18264 cross_compiling=$ac_cv_prog_cxx_cross
18265
18266       cat > conftest.$ac_ext <<EOF
18267 #line 18268 "configure"
18268 #include "confdefs.h"
18269 #include <math.h>
18270 int main() {
18271  _powl(0, 0);
18272 ; return 0; }
18273 EOF
18274 if { (eval echo configure:18275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18275   rm -rf conftest*
18276   glibcpp_cv_func__powl_use=yes
18277 else
18278   echo "configure: failed program was:" >&5
18279   cat conftest.$ac_ext >&5
18280   rm -rf conftest*
18281   glibcpp_cv_func__powl_use=no
18282 fi
18283 rm -f conftest*
18284       ac_ext=c
18285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18286 ac_cpp='$CPP $CPPFLAGS'
18287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18289 cross_compiling=$ac_cv_prog_cc_cross
18290
18291     
18292 fi
18293
18294   fi
18295   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
18296
18297     if test x$glibcpp_cv_func__powl_use = x"yes"; then
18298       for ac_func in _powl
18299 do
18300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18301 echo "configure:18302: checking for $ac_func" >&5
18302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18303   echo $ac_n "(cached) $ac_c" 1>&6
18304 else
18305   cat > conftest.$ac_ext <<EOF
18306 #line 18307 "configure"
18307 #include "confdefs.h"
18308 /* System header to define __stub macros and hopefully few prototypes,
18309     which can conflict with char $ac_func(); below.  */
18310 #include <assert.h>
18311 /* Override any gcc2 internal prototype to avoid an error.  */
18312 /* We use char because int might match the return type of a gcc2
18313     builtin and then its argument prototype would still apply.  */
18314 char $ac_func();
18315
18316 int main() {
18317
18318 /* The GNU C library defines this for functions which it implements
18319     to always fail with ENOSYS.  Some functions are actually named
18320     something starting with __ and the normal name is an alias.  */
18321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18322 choke me
18323 #else
18324 $ac_func();
18325 #endif
18326
18327 ; return 0; }
18328 EOF
18329 if { (eval echo configure:18330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18330   rm -rf conftest*
18331   eval "ac_cv_func_$ac_func=yes"
18332 else
18333   echo "configure: failed program was:" >&5
18334   cat conftest.$ac_ext >&5
18335   rm -rf conftest*
18336   eval "ac_cv_func_$ac_func=no"
18337 fi
18338 rm -f conftest*
18339 fi
18340
18341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18342   echo "$ac_t""yes" 1>&6
18343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18344   cat >> confdefs.h <<EOF
18345 #define $ac_tr_func 1
18346 EOF
18347  
18348 else
18349   echo "$ac_t""no" 1>&6
18350 fi
18351 done
18352     
18353     fi
18354   fi
18355
18356   
18357   
18358   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
18359 echo "configure:18360: checking for sqrtl declaration" >&5
18360   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
18361     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
18362   echo $ac_n "(cached) $ac_c" 1>&6
18363 else
18364   
18365       
18366       ac_ext=C
18367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18368 ac_cpp='$CXXCPP $CPPFLAGS'
18369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18371 cross_compiling=$ac_cv_prog_cxx_cross
18372
18373       cat > conftest.$ac_ext <<EOF
18374 #line 18375 "configure"
18375 #include "confdefs.h"
18376 #include <math.h>
18377                       #ifdef HAVE_IEEEFP_H
18378                       #include <ieeefp.h>
18379                       #endif
18380                      
18381 int main() {
18382  sqrtl(0);
18383 ; return 0; }
18384 EOF
18385 if { (eval echo configure:18386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18386   rm -rf conftest*
18387   glibcpp_cv_func_sqrtl_use=yes
18388 else
18389   echo "configure: failed program was:" >&5
18390   cat conftest.$ac_ext >&5
18391   rm -rf conftest*
18392   glibcpp_cv_func_sqrtl_use=no
18393 fi
18394 rm -f conftest*
18395       ac_ext=c
18396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18397 ac_cpp='$CPP $CPPFLAGS'
18398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18400 cross_compiling=$ac_cv_prog_cc_cross
18401
18402     
18403 fi
18404
18405   fi
18406   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
18407
18408   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
18409     for ac_func in sqrtl
18410 do
18411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18412 echo "configure:18413: checking for $ac_func" >&5
18413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18414   echo $ac_n "(cached) $ac_c" 1>&6
18415 else
18416   cat > conftest.$ac_ext <<EOF
18417 #line 18418 "configure"
18418 #include "confdefs.h"
18419 /* System header to define __stub macros and hopefully few prototypes,
18420     which can conflict with char $ac_func(); below.  */
18421 #include <assert.h>
18422 /* Override any gcc2 internal prototype to avoid an error.  */
18423 /* We use char because int might match the return type of a gcc2
18424     builtin and then its argument prototype would still apply.  */
18425 char $ac_func();
18426
18427 int main() {
18428
18429 /* The GNU C library defines this for functions which it implements
18430     to always fail with ENOSYS.  Some functions are actually named
18431     something starting with __ and the normal name is an alias.  */
18432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18433 choke me
18434 #else
18435 $ac_func();
18436 #endif
18437
18438 ; return 0; }
18439 EOF
18440 if { (eval echo configure:18441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18441   rm -rf conftest*
18442   eval "ac_cv_func_$ac_func=yes"
18443 else
18444   echo "configure: failed program was:" >&5
18445   cat conftest.$ac_ext >&5
18446   rm -rf conftest*
18447   eval "ac_cv_func_$ac_func=no"
18448 fi
18449 rm -f conftest*
18450 fi
18451
18452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18453   echo "$ac_t""yes" 1>&6
18454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18455   cat >> confdefs.h <<EOF
18456 #define $ac_tr_func 1
18457 EOF
18458  
18459 else
18460   echo "$ac_t""no" 1>&6
18461 fi
18462 done
18463     
18464   else
18465     
18466   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
18467 echo "configure:18468: checking for _sqrtl declaration" >&5
18468   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
18469     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
18470   echo $ac_n "(cached) $ac_c" 1>&6
18471 else
18472   
18473       
18474       ac_ext=C
18475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18476 ac_cpp='$CXXCPP $CPPFLAGS'
18477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18479 cross_compiling=$ac_cv_prog_cxx_cross
18480
18481       cat > conftest.$ac_ext <<EOF
18482 #line 18483 "configure"
18483 #include "confdefs.h"
18484 #include <math.h>
18485                       #ifdef HAVE_IEEEFP_H
18486                       #include <ieeefp.h>
18487                       #endif
18488                      
18489 int main() {
18490  _sqrtl(0);
18491 ; return 0; }
18492 EOF
18493 if { (eval echo configure:18494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18494   rm -rf conftest*
18495   glibcpp_cv_func__sqrtl_use=yes
18496 else
18497   echo "configure: failed program was:" >&5
18498   cat conftest.$ac_ext >&5
18499   rm -rf conftest*
18500   glibcpp_cv_func__sqrtl_use=no
18501 fi
18502 rm -f conftest*
18503       ac_ext=c
18504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18505 ac_cpp='$CPP $CPPFLAGS'
18506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18508 cross_compiling=$ac_cv_prog_cc_cross
18509
18510     
18511 fi
18512
18513   fi
18514   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
18515
18516     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
18517       for ac_func in _sqrtl
18518 do
18519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18520 echo "configure:18521: checking for $ac_func" >&5
18521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18522   echo $ac_n "(cached) $ac_c" 1>&6
18523 else
18524   cat > conftest.$ac_ext <<EOF
18525 #line 18526 "configure"
18526 #include "confdefs.h"
18527 /* System header to define __stub macros and hopefully few prototypes,
18528     which can conflict with char $ac_func(); below.  */
18529 #include <assert.h>
18530 /* Override any gcc2 internal prototype to avoid an error.  */
18531 /* We use char because int might match the return type of a gcc2
18532     builtin and then its argument prototype would still apply.  */
18533 char $ac_func();
18534
18535 int main() {
18536
18537 /* The GNU C library defines this for functions which it implements
18538     to always fail with ENOSYS.  Some functions are actually named
18539     something starting with __ and the normal name is an alias.  */
18540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18541 choke me
18542 #else
18543 $ac_func();
18544 #endif
18545
18546 ; return 0; }
18547 EOF
18548 if { (eval echo configure:18549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18549   rm -rf conftest*
18550   eval "ac_cv_func_$ac_func=yes"
18551 else
18552   echo "configure: failed program was:" >&5
18553   cat conftest.$ac_ext >&5
18554   rm -rf conftest*
18555   eval "ac_cv_func_$ac_func=no"
18556 fi
18557 rm -f conftest*
18558 fi
18559
18560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18561   echo "$ac_t""yes" 1>&6
18562     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18563   cat >> confdefs.h <<EOF
18564 #define $ac_tr_func 1
18565 EOF
18566  
18567 else
18568   echo "$ac_t""no" 1>&6
18569 fi
18570 done
18571     
18572     fi
18573   fi
18574
18575   
18576   
18577   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
18578 echo "configure:18579: checking for sincosl declaration" >&5
18579   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
18580     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
18581   echo $ac_n "(cached) $ac_c" 1>&6
18582 else
18583   
18584       
18585       ac_ext=C
18586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18587 ac_cpp='$CXXCPP $CPPFLAGS'
18588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18590 cross_compiling=$ac_cv_prog_cxx_cross
18591
18592       cat > conftest.$ac_ext <<EOF
18593 #line 18594 "configure"
18594 #include "confdefs.h"
18595 #include <math.h>
18596 int main() {
18597  sincosl(0, 0, 0);
18598 ; return 0; }
18599 EOF
18600 if { (eval echo configure:18601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18601   rm -rf conftest*
18602   glibcpp_cv_func_sincosl_use=yes
18603 else
18604   echo "configure: failed program was:" >&5
18605   cat conftest.$ac_ext >&5
18606   rm -rf conftest*
18607   glibcpp_cv_func_sincosl_use=no
18608 fi
18609 rm -f conftest*
18610       ac_ext=c
18611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18612 ac_cpp='$CPP $CPPFLAGS'
18613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18615 cross_compiling=$ac_cv_prog_cc_cross
18616
18617     
18618 fi
18619
18620   fi
18621   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
18622
18623   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
18624     for ac_func in sincosl
18625 do
18626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18627 echo "configure:18628: checking for $ac_func" >&5
18628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18629   echo $ac_n "(cached) $ac_c" 1>&6
18630 else
18631   cat > conftest.$ac_ext <<EOF
18632 #line 18633 "configure"
18633 #include "confdefs.h"
18634 /* System header to define __stub macros and hopefully few prototypes,
18635     which can conflict with char $ac_func(); below.  */
18636 #include <assert.h>
18637 /* Override any gcc2 internal prototype to avoid an error.  */
18638 /* We use char because int might match the return type of a gcc2
18639     builtin and then its argument prototype would still apply.  */
18640 char $ac_func();
18641
18642 int main() {
18643
18644 /* The GNU C library defines this for functions which it implements
18645     to always fail with ENOSYS.  Some functions are actually named
18646     something starting with __ and the normal name is an alias.  */
18647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18648 choke me
18649 #else
18650 $ac_func();
18651 #endif
18652
18653 ; return 0; }
18654 EOF
18655 if { (eval echo configure:18656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18656   rm -rf conftest*
18657   eval "ac_cv_func_$ac_func=yes"
18658 else
18659   echo "configure: failed program was:" >&5
18660   cat conftest.$ac_ext >&5
18661   rm -rf conftest*
18662   eval "ac_cv_func_$ac_func=no"
18663 fi
18664 rm -f conftest*
18665 fi
18666
18667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18668   echo "$ac_t""yes" 1>&6
18669     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18670   cat >> confdefs.h <<EOF
18671 #define $ac_tr_func 1
18672 EOF
18673  
18674 else
18675   echo "$ac_t""no" 1>&6
18676 fi
18677 done
18678     
18679   else
18680     
18681   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
18682 echo "configure:18683: checking for _sincosl declaration" >&5
18683   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
18684     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
18685   echo $ac_n "(cached) $ac_c" 1>&6
18686 else
18687   
18688       
18689       ac_ext=C
18690 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18691 ac_cpp='$CXXCPP $CPPFLAGS'
18692 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18693 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18694 cross_compiling=$ac_cv_prog_cxx_cross
18695
18696       cat > conftest.$ac_ext <<EOF
18697 #line 18698 "configure"
18698 #include "confdefs.h"
18699 #include <math.h>
18700 int main() {
18701  _sincosl(0, 0, 0);
18702 ; return 0; }
18703 EOF
18704 if { (eval echo configure:18705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18705   rm -rf conftest*
18706   glibcpp_cv_func__sincosl_use=yes
18707 else
18708   echo "configure: failed program was:" >&5
18709   cat conftest.$ac_ext >&5
18710   rm -rf conftest*
18711   glibcpp_cv_func__sincosl_use=no
18712 fi
18713 rm -f conftest*
18714       ac_ext=c
18715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18716 ac_cpp='$CPP $CPPFLAGS'
18717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18719 cross_compiling=$ac_cv_prog_cc_cross
18720
18721     
18722 fi
18723
18724   fi
18725   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
18726
18727     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
18728       for ac_func in _sincosl
18729 do
18730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18731 echo "configure:18732: checking for $ac_func" >&5
18732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18733   echo $ac_n "(cached) $ac_c" 1>&6
18734 else
18735   cat > conftest.$ac_ext <<EOF
18736 #line 18737 "configure"
18737 #include "confdefs.h"
18738 /* System header to define __stub macros and hopefully few prototypes,
18739     which can conflict with char $ac_func(); below.  */
18740 #include <assert.h>
18741 /* Override any gcc2 internal prototype to avoid an error.  */
18742 /* We use char because int might match the return type of a gcc2
18743     builtin and then its argument prototype would still apply.  */
18744 char $ac_func();
18745
18746 int main() {
18747
18748 /* The GNU C library defines this for functions which it implements
18749     to always fail with ENOSYS.  Some functions are actually named
18750     something starting with __ and the normal name is an alias.  */
18751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18752 choke me
18753 #else
18754 $ac_func();
18755 #endif
18756
18757 ; return 0; }
18758 EOF
18759 if { (eval echo configure:18760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18760   rm -rf conftest*
18761   eval "ac_cv_func_$ac_func=yes"
18762 else
18763   echo "configure: failed program was:" >&5
18764   cat conftest.$ac_ext >&5
18765   rm -rf conftest*
18766   eval "ac_cv_func_$ac_func=no"
18767 fi
18768 rm -f conftest*
18769 fi
18770
18771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18772   echo "$ac_t""yes" 1>&6
18773     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18774   cat >> confdefs.h <<EOF
18775 #define $ac_tr_func 1
18776 EOF
18777  
18778 else
18779   echo "$ac_t""no" 1>&6
18780 fi
18781 done
18782     
18783     fi
18784   fi
18785
18786   
18787   
18788   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
18789 echo "configure:18790: checking for finitel declaration" >&5
18790   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
18791     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
18792   echo $ac_n "(cached) $ac_c" 1>&6
18793 else
18794   
18795       
18796       ac_ext=C
18797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18798 ac_cpp='$CXXCPP $CPPFLAGS'
18799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18801 cross_compiling=$ac_cv_prog_cxx_cross
18802
18803       cat > conftest.$ac_ext <<EOF
18804 #line 18805 "configure"
18805 #include "confdefs.h"
18806 #include <math.h>
18807                       #ifdef HAVE_IEEEFP_H
18808                       #include <ieeefp.h>
18809                       #endif
18810                      
18811 int main() {
18812  finitel(0);
18813 ; return 0; }
18814 EOF
18815 if { (eval echo configure:18816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18816   rm -rf conftest*
18817   glibcpp_cv_func_finitel_use=yes
18818 else
18819   echo "configure: failed program was:" >&5
18820   cat conftest.$ac_ext >&5
18821   rm -rf conftest*
18822   glibcpp_cv_func_finitel_use=no
18823 fi
18824 rm -f conftest*
18825       ac_ext=c
18826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18827 ac_cpp='$CPP $CPPFLAGS'
18828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18830 cross_compiling=$ac_cv_prog_cc_cross
18831
18832     
18833 fi
18834
18835   fi
18836   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
18837
18838   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
18839     for ac_func in finitel
18840 do
18841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18842 echo "configure:18843: checking for $ac_func" >&5
18843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18844   echo $ac_n "(cached) $ac_c" 1>&6
18845 else
18846   cat > conftest.$ac_ext <<EOF
18847 #line 18848 "configure"
18848 #include "confdefs.h"
18849 /* System header to define __stub macros and hopefully few prototypes,
18850     which can conflict with char $ac_func(); below.  */
18851 #include <assert.h>
18852 /* Override any gcc2 internal prototype to avoid an error.  */
18853 /* We use char because int might match the return type of a gcc2
18854     builtin and then its argument prototype would still apply.  */
18855 char $ac_func();
18856
18857 int main() {
18858
18859 /* The GNU C library defines this for functions which it implements
18860     to always fail with ENOSYS.  Some functions are actually named
18861     something starting with __ and the normal name is an alias.  */
18862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18863 choke me
18864 #else
18865 $ac_func();
18866 #endif
18867
18868 ; return 0; }
18869 EOF
18870 if { (eval echo configure:18871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18871   rm -rf conftest*
18872   eval "ac_cv_func_$ac_func=yes"
18873 else
18874   echo "configure: failed program was:" >&5
18875   cat conftest.$ac_ext >&5
18876   rm -rf conftest*
18877   eval "ac_cv_func_$ac_func=no"
18878 fi
18879 rm -f conftest*
18880 fi
18881
18882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18883   echo "$ac_t""yes" 1>&6
18884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18885   cat >> confdefs.h <<EOF
18886 #define $ac_tr_func 1
18887 EOF
18888  
18889 else
18890   echo "$ac_t""no" 1>&6
18891 fi
18892 done
18893     
18894   else
18895     
18896   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18897 echo "configure:18898: checking for _finitel declaration" >&5
18898   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18899     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18900   echo $ac_n "(cached) $ac_c" 1>&6
18901 else
18902   
18903       
18904       ac_ext=C
18905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18906 ac_cpp='$CXXCPP $CPPFLAGS'
18907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18909 cross_compiling=$ac_cv_prog_cxx_cross
18910
18911       cat > conftest.$ac_ext <<EOF
18912 #line 18913 "configure"
18913 #include "confdefs.h"
18914 #include <math.h>
18915                       #ifdef HAVE_IEEEFP_H
18916                       #include <ieeefp.h>
18917                       #endif
18918                      
18919 int main() {
18920  _finitel(0);
18921 ; return 0; }
18922 EOF
18923 if { (eval echo configure:18924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18924   rm -rf conftest*
18925   glibcpp_cv_func__finitel_use=yes
18926 else
18927   echo "configure: failed program was:" >&5
18928   cat conftest.$ac_ext >&5
18929   rm -rf conftest*
18930   glibcpp_cv_func__finitel_use=no
18931 fi
18932 rm -f conftest*
18933       ac_ext=c
18934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18935 ac_cpp='$CPP $CPPFLAGS'
18936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18938 cross_compiling=$ac_cv_prog_cc_cross
18939
18940     
18941 fi
18942
18943   fi
18944   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18945
18946     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18947       for ac_func in _finitel
18948 do
18949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18950 echo "configure:18951: checking for $ac_func" >&5
18951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18952   echo $ac_n "(cached) $ac_c" 1>&6
18953 else
18954   cat > conftest.$ac_ext <<EOF
18955 #line 18956 "configure"
18956 #include "confdefs.h"
18957 /* System header to define __stub macros and hopefully few prototypes,
18958     which can conflict with char $ac_func(); below.  */
18959 #include <assert.h>
18960 /* Override any gcc2 internal prototype to avoid an error.  */
18961 /* We use char because int might match the return type of a gcc2
18962     builtin and then its argument prototype would still apply.  */
18963 char $ac_func();
18964
18965 int main() {
18966
18967 /* The GNU C library defines this for functions which it implements
18968     to always fail with ENOSYS.  Some functions are actually named
18969     something starting with __ and the normal name is an alias.  */
18970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18971 choke me
18972 #else
18973 $ac_func();
18974 #endif
18975
18976 ; return 0; }
18977 EOF
18978 if { (eval echo configure:18979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18979   rm -rf conftest*
18980   eval "ac_cv_func_$ac_func=yes"
18981 else
18982   echo "configure: failed program was:" >&5
18983   cat conftest.$ac_ext >&5
18984   rm -rf conftest*
18985   eval "ac_cv_func_$ac_func=no"
18986 fi
18987 rm -f conftest*
18988 fi
18989
18990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18991   echo "$ac_t""yes" 1>&6
18992     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18993   cat >> confdefs.h <<EOF
18994 #define $ac_tr_func 1
18995 EOF
18996  
18997 else
18998   echo "$ac_t""no" 1>&6
18999 fi
19000 done
19001     
19002     fi
19003   fi
19004
19005
19006         
19007     
19008   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19009 echo "configure:19010: checking for _float trig functions" >&5
19010   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19011   echo $ac_n "(cached) $ac_c" 1>&6
19012 else
19013   
19014     
19015     ac_ext=C
19016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19017 ac_cpp='$CXXCPP $CPPFLAGS'
19018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19019 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19020 cross_compiling=$ac_cv_prog_cxx_cross
19021
19022     cat > conftest.$ac_ext <<EOF
19023 #line 19024 "configure"
19024 #include "confdefs.h"
19025 #include <math.h>
19026 int main() {
19027  `for x in _acosf _asinf _atanf \
19028                                           _cosf _sinf _tanf \
19029                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19030 ; return 0; }
19031 EOF
19032 if { (eval echo configure:19033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19033   rm -rf conftest*
19034   glibcpp_cv_func__float_trig_use=yes
19035 else
19036   echo "configure: failed program was:" >&5
19037   cat conftest.$ac_ext >&5
19038   rm -rf conftest*
19039   glibcpp_cv_func__float_trig_use=no
19040 fi
19041 rm -f conftest*
19042     ac_ext=c
19043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19044 ac_cpp='$CPP $CPPFLAGS'
19045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19047 cross_compiling=$ac_cv_prog_cc_cross
19048
19049 fi
19050
19051   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19052   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19053     for ac_func in _acosf _asinf _atanf \
19054                                           _cosf _sinf _tanf \
19055                                           _coshf _sinhf _tanhf
19056 do
19057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19058 echo "configure:19059: checking for $ac_func" >&5
19059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19060   echo $ac_n "(cached) $ac_c" 1>&6
19061 else
19062   cat > conftest.$ac_ext <<EOF
19063 #line 19064 "configure"
19064 #include "confdefs.h"
19065 /* System header to define __stub macros and hopefully few prototypes,
19066     which can conflict with char $ac_func(); below.  */
19067 #include <assert.h>
19068 /* Override any gcc2 internal prototype to avoid an error.  */
19069 /* We use char because int might match the return type of a gcc2
19070     builtin and then its argument prototype would still apply.  */
19071 char $ac_func();
19072
19073 int main() {
19074
19075 /* The GNU C library defines this for functions which it implements
19076     to always fail with ENOSYS.  Some functions are actually named
19077     something starting with __ and the normal name is an alias.  */
19078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19079 choke me
19080 #else
19081 $ac_func();
19082 #endif
19083
19084 ; return 0; }
19085 EOF
19086 if { (eval echo configure:19087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19087   rm -rf conftest*
19088   eval "ac_cv_func_$ac_func=yes"
19089 else
19090   echo "configure: failed program was:" >&5
19091   cat conftest.$ac_ext >&5
19092   rm -rf conftest*
19093   eval "ac_cv_func_$ac_func=no"
19094 fi
19095 rm -f conftest*
19096 fi
19097
19098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19099   echo "$ac_t""yes" 1>&6
19100     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19101   cat >> confdefs.h <<EOF
19102 #define $ac_tr_func 1
19103 EOF
19104  
19105 else
19106   echo "$ac_t""no" 1>&6
19107 fi
19108 done
19109
19110   fi
19111
19112   
19113   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
19114 echo "configure:19115: checking for _float round functions" >&5
19115   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
19116   echo $ac_n "(cached) $ac_c" 1>&6
19117 else
19118   
19119     
19120     ac_ext=C
19121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19122 ac_cpp='$CXXCPP $CPPFLAGS'
19123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19125 cross_compiling=$ac_cv_prog_cxx_cross
19126
19127     cat > conftest.$ac_ext <<EOF
19128 #line 19129 "configure"
19129 #include "confdefs.h"
19130 #include <math.h>
19131 int main() {
19132  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
19133 ; return 0; }
19134 EOF
19135 if { (eval echo configure:19136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19136   rm -rf conftest*
19137   glibcpp_cv_func__float_round_use=yes
19138 else
19139   echo "configure: failed program was:" >&5
19140   cat conftest.$ac_ext >&5
19141   rm -rf conftest*
19142   glibcpp_cv_func__float_round_use=no
19143 fi
19144 rm -f conftest*
19145     ac_ext=c
19146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19150 cross_compiling=$ac_cv_prog_cc_cross
19151
19152 fi
19153
19154   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
19155   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
19156     for ac_func in _ceilf _floorf
19157 do
19158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19159 echo "configure:19160: checking for $ac_func" >&5
19160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19161   echo $ac_n "(cached) $ac_c" 1>&6
19162 else
19163   cat > conftest.$ac_ext <<EOF
19164 #line 19165 "configure"
19165 #include "confdefs.h"
19166 /* System header to define __stub macros and hopefully few prototypes,
19167     which can conflict with char $ac_func(); below.  */
19168 #include <assert.h>
19169 /* Override any gcc2 internal prototype to avoid an error.  */
19170 /* We use char because int might match the return type of a gcc2
19171     builtin and then its argument prototype would still apply.  */
19172 char $ac_func();
19173
19174 int main() {
19175
19176 /* The GNU C library defines this for functions which it implements
19177     to always fail with ENOSYS.  Some functions are actually named
19178     something starting with __ and the normal name is an alias.  */
19179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19180 choke me
19181 #else
19182 $ac_func();
19183 #endif
19184
19185 ; return 0; }
19186 EOF
19187 if { (eval echo configure:19188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19188   rm -rf conftest*
19189   eval "ac_cv_func_$ac_func=yes"
19190 else
19191   echo "configure: failed program was:" >&5
19192   cat conftest.$ac_ext >&5
19193   rm -rf conftest*
19194   eval "ac_cv_func_$ac_func=no"
19195 fi
19196 rm -f conftest*
19197 fi
19198
19199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19200   echo "$ac_t""yes" 1>&6
19201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19202   cat >> confdefs.h <<EOF
19203 #define $ac_tr_func 1
19204 EOF
19205  
19206 else
19207   echo "$ac_t""no" 1>&6
19208 fi
19209 done
19210
19211   fi
19212
19213
19214     
19215   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
19216 echo "configure:19217: checking for _long double trig functions" >&5
19217   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
19218   echo $ac_n "(cached) $ac_c" 1>&6
19219 else
19220   
19221     
19222     ac_ext=C
19223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19224 ac_cpp='$CXXCPP $CPPFLAGS'
19225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19227 cross_compiling=$ac_cv_prog_cxx_cross
19228
19229     cat > conftest.$ac_ext <<EOF
19230 #line 19231 "configure"
19231 #include "confdefs.h"
19232 #include <math.h>
19233 int main() {
19234  `for x in _acosl _asinl _atanl \
19235                                           _cosl _sinl _tanl \
19236                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
19237 ; return 0; }
19238 EOF
19239 if { (eval echo configure:19240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19240   rm -rf conftest*
19241   glibcpp_cv_func__long_double_trig_use=yes
19242 else
19243   echo "configure: failed program was:" >&5
19244   cat conftest.$ac_ext >&5
19245   rm -rf conftest*
19246   glibcpp_cv_func__long_double_trig_use=no
19247 fi
19248 rm -f conftest*
19249     ac_ext=c
19250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19251 ac_cpp='$CPP $CPPFLAGS'
19252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19254 cross_compiling=$ac_cv_prog_cc_cross
19255
19256 fi
19257
19258   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
19259   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
19260     for ac_func in _acosl _asinl _atanl \
19261                                           _cosl _sinl _tanl \
19262                                           _coshl _sinhl _tanhl
19263 do
19264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19265 echo "configure:19266: checking for $ac_func" >&5
19266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19267   echo $ac_n "(cached) $ac_c" 1>&6
19268 else
19269   cat > conftest.$ac_ext <<EOF
19270 #line 19271 "configure"
19271 #include "confdefs.h"
19272 /* System header to define __stub macros and hopefully few prototypes,
19273     which can conflict with char $ac_func(); below.  */
19274 #include <assert.h>
19275 /* Override any gcc2 internal prototype to avoid an error.  */
19276 /* We use char because int might match the return type of a gcc2
19277     builtin and then its argument prototype would still apply.  */
19278 char $ac_func();
19279
19280 int main() {
19281
19282 /* The GNU C library defines this for functions which it implements
19283     to always fail with ENOSYS.  Some functions are actually named
19284     something starting with __ and the normal name is an alias.  */
19285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19286 choke me
19287 #else
19288 $ac_func();
19289 #endif
19290
19291 ; return 0; }
19292 EOF
19293 if { (eval echo configure:19294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19294   rm -rf conftest*
19295   eval "ac_cv_func_$ac_func=yes"
19296 else
19297   echo "configure: failed program was:" >&5
19298   cat conftest.$ac_ext >&5
19299   rm -rf conftest*
19300   eval "ac_cv_func_$ac_func=no"
19301 fi
19302 rm -f conftest*
19303 fi
19304
19305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19306   echo "$ac_t""yes" 1>&6
19307     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19308   cat >> confdefs.h <<EOF
19309 #define $ac_tr_func 1
19310 EOF
19311  
19312 else
19313   echo "$ac_t""no" 1>&6
19314 fi
19315 done
19316
19317   fi
19318
19319   
19320   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
19321 echo "configure:19322: checking for _long double round functions" >&5
19322   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
19323   echo $ac_n "(cached) $ac_c" 1>&6
19324 else
19325   
19326     
19327     ac_ext=C
19328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19329 ac_cpp='$CXXCPP $CPPFLAGS'
19330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19332 cross_compiling=$ac_cv_prog_cxx_cross
19333
19334     cat > conftest.$ac_ext <<EOF
19335 #line 19336 "configure"
19336 #include "confdefs.h"
19337 #include <math.h>
19338 int main() {
19339  `for x in _ceill _floorl; do echo "$x (0);"; done` 
19340 ; return 0; }
19341 EOF
19342 if { (eval echo configure:19343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19343   rm -rf conftest*
19344   glibcpp_cv_func__long_double_round_use=yes
19345 else
19346   echo "configure: failed program was:" >&5
19347   cat conftest.$ac_ext >&5
19348   rm -rf conftest*
19349   glibcpp_cv_func__long_double_round_use=no
19350 fi
19351 rm -f conftest*
19352     ac_ext=c
19353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19357 cross_compiling=$ac_cv_prog_cc_cross
19358
19359 fi
19360
19361   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
19362   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
19363     for ac_func in _ceill _floorl
19364 do
19365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19366 echo "configure:19367: checking for $ac_func" >&5
19367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19368   echo $ac_n "(cached) $ac_c" 1>&6
19369 else
19370   cat > conftest.$ac_ext <<EOF
19371 #line 19372 "configure"
19372 #include "confdefs.h"
19373 /* System header to define __stub macros and hopefully few prototypes,
19374     which can conflict with char $ac_func(); below.  */
19375 #include <assert.h>
19376 /* Override any gcc2 internal prototype to avoid an error.  */
19377 /* We use char because int might match the return type of a gcc2
19378     builtin and then its argument prototype would still apply.  */
19379 char $ac_func();
19380
19381 int main() {
19382
19383 /* The GNU C library defines this for functions which it implements
19384     to always fail with ENOSYS.  Some functions are actually named
19385     something starting with __ and the normal name is an alias.  */
19386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19387 choke me
19388 #else
19389 $ac_func();
19390 #endif
19391
19392 ; return 0; }
19393 EOF
19394 if { (eval echo configure:19395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19395   rm -rf conftest*
19396   eval "ac_cv_func_$ac_func=yes"
19397 else
19398   echo "configure: failed program was:" >&5
19399   cat conftest.$ac_ext >&5
19400   rm -rf conftest*
19401   eval "ac_cv_func_$ac_func=no"
19402 fi
19403 rm -f conftest*
19404 fi
19405
19406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19407   echo "$ac_t""yes" 1>&6
19408     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19409   cat >> confdefs.h <<EOF
19410 #define $ac_tr_func 1
19411 EOF
19412  
19413 else
19414   echo "$ac_t""no" 1>&6
19415 fi
19416 done
19417
19418   fi
19419
19420
19421   LIBS="$ac_save_LIBS"
19422   CXXFLAGS="$ac_save_CXXFLAGS"
19423
19424   
19425     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
19426 echo "configure:19427: checking for main in -lm" >&5
19427 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
19428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19429   echo $ac_n "(cached) $ac_c" 1>&6
19430 else
19431   ac_save_LIBS="$LIBS"
19432 LIBS="-lm  $LIBS"
19433 cat > conftest.$ac_ext <<EOF
19434 #line 19435 "configure"
19435 #include "confdefs.h"
19436
19437 int main() {
19438 main()
19439 ; return 0; }
19440 EOF
19441 if { (eval echo configure:19442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19442   rm -rf conftest*
19443   eval "ac_cv_lib_$ac_lib_var=yes"
19444 else
19445   echo "configure: failed program was:" >&5
19446   cat conftest.$ac_ext >&5
19447   rm -rf conftest*
19448   eval "ac_cv_lib_$ac_lib_var=no"
19449 fi
19450 rm -f conftest*
19451 LIBS="$ac_save_LIBS"
19452
19453 fi
19454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19455   echo "$ac_t""yes" 1>&6
19456     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19457     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19458   cat >> confdefs.h <<EOF
19459 #define $ac_tr_lib 1
19460 EOF
19461
19462   LIBS="-lm $LIBS"
19463
19464 else
19465   echo "$ac_t""no" 1>&6
19466 fi
19467
19468   for ac_func in nan copysignf
19469 do
19470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19471 echo "configure:19472: checking for $ac_func" >&5
19472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19473   echo $ac_n "(cached) $ac_c" 1>&6
19474 else
19475   cat > conftest.$ac_ext <<EOF
19476 #line 19477 "configure"
19477 #include "confdefs.h"
19478 /* System header to define __stub macros and hopefully few prototypes,
19479     which can conflict with char $ac_func(); below.  */
19480 #include <assert.h>
19481 /* Override any gcc2 internal prototype to avoid an error.  */
19482 /* We use char because int might match the return type of a gcc2
19483     builtin and then its argument prototype would still apply.  */
19484 char $ac_func();
19485
19486 int main() {
19487
19488 /* The GNU C library defines this for functions which it implements
19489     to always fail with ENOSYS.  Some functions are actually named
19490     something starting with __ and the normal name is an alias.  */
19491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19492 choke me
19493 #else
19494 $ac_func();
19495 #endif
19496
19497 ; return 0; }
19498 EOF
19499 if { (eval echo configure:19500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19500   rm -rf conftest*
19501   eval "ac_cv_func_$ac_func=yes"
19502 else
19503   echo "configure: failed program was:" >&5
19504   cat conftest.$ac_ext >&5
19505   rm -rf conftest*
19506   eval "ac_cv_func_$ac_func=no"
19507 fi
19508 rm -f conftest*
19509 fi
19510
19511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19512   echo "$ac_t""yes" 1>&6
19513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19514   cat >> confdefs.h <<EOF
19515 #define $ac_tr_func 1
19516 EOF
19517  
19518 else
19519   echo "$ac_t""no" 1>&6
19520 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
19521 fi
19522 done
19523
19524
19525     for ac_func in __signbit
19526 do
19527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19528 echo "configure:19529: checking for $ac_func" >&5
19529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19530   echo $ac_n "(cached) $ac_c" 1>&6
19531 else
19532   cat > conftest.$ac_ext <<EOF
19533 #line 19534 "configure"
19534 #include "confdefs.h"
19535 /* System header to define __stub macros and hopefully few prototypes,
19536     which can conflict with char $ac_func(); below.  */
19537 #include <assert.h>
19538 /* Override any gcc2 internal prototype to avoid an error.  */
19539 /* We use char because int might match the return type of a gcc2
19540     builtin and then its argument prototype would still apply.  */
19541 char $ac_func();
19542
19543 int main() {
19544
19545 /* The GNU C library defines this for functions which it implements
19546     to always fail with ENOSYS.  Some functions are actually named
19547     something starting with __ and the normal name is an alias.  */
19548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19549 choke me
19550 #else
19551 $ac_func();
19552 #endif
19553
19554 ; return 0; }
19555 EOF
19556 if { (eval echo configure:19557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19557   rm -rf conftest*
19558   eval "ac_cv_func_$ac_func=yes"
19559 else
19560   echo "configure: failed program was:" >&5
19561   cat conftest.$ac_ext >&5
19562   rm -rf conftest*
19563   eval "ac_cv_func_$ac_func=no"
19564 fi
19565 rm -f conftest*
19566 fi
19567
19568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19569   echo "$ac_t""yes" 1>&6
19570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19571   cat >> confdefs.h <<EOF
19572 #define $ac_tr_func 1
19573 EOF
19574  
19575 else
19576   echo "$ac_t""no" 1>&6
19577 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
19578 fi
19579 done
19580
19581   for ac_func in __signbitf
19582 do
19583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19584 echo "configure:19585: checking for $ac_func" >&5
19585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19586   echo $ac_n "(cached) $ac_c" 1>&6
19587 else
19588   cat > conftest.$ac_ext <<EOF
19589 #line 19590 "configure"
19590 #include "confdefs.h"
19591 /* System header to define __stub macros and hopefully few prototypes,
19592     which can conflict with char $ac_func(); below.  */
19593 #include <assert.h>
19594 /* Override any gcc2 internal prototype to avoid an error.  */
19595 /* We use char because int might match the return type of a gcc2
19596     builtin and then its argument prototype would still apply.  */
19597 char $ac_func();
19598
19599 int main() {
19600
19601 /* The GNU C library defines this for functions which it implements
19602     to always fail with ENOSYS.  Some functions are actually named
19603     something starting with __ and the normal name is an alias.  */
19604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19605 choke me
19606 #else
19607 $ac_func();
19608 #endif
19609
19610 ; return 0; }
19611 EOF
19612 if { (eval echo configure:19613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19613   rm -rf conftest*
19614   eval "ac_cv_func_$ac_func=yes"
19615 else
19616   echo "configure: failed program was:" >&5
19617   cat conftest.$ac_ext >&5
19618   rm -rf conftest*
19619   eval "ac_cv_func_$ac_func=no"
19620 fi
19621 rm -f conftest*
19622 fi
19623
19624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19625   echo "$ac_t""yes" 1>&6
19626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19627   cat >> confdefs.h <<EOF
19628 #define $ac_tr_func 1
19629 EOF
19630  
19631 else
19632   echo "$ac_t""no" 1>&6
19633 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
19634 fi
19635 done
19636
19637
19638           if test x$ac_cv_func_copysignl = x"yes"; then
19639     for ac_func in __signbitl
19640 do
19641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19642 echo "configure:19643: checking for $ac_func" >&5
19643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19644   echo $ac_n "(cached) $ac_c" 1>&6
19645 else
19646   cat > conftest.$ac_ext <<EOF
19647 #line 19648 "configure"
19648 #include "confdefs.h"
19649 /* System header to define __stub macros and hopefully few prototypes,
19650     which can conflict with char $ac_func(); below.  */
19651 #include <assert.h>
19652 /* Override any gcc2 internal prototype to avoid an error.  */
19653 /* We use char because int might match the return type of a gcc2
19654     builtin and then its argument prototype would still apply.  */
19655 char $ac_func();
19656
19657 int main() {
19658
19659 /* The GNU C library defines this for functions which it implements
19660     to always fail with ENOSYS.  Some functions are actually named
19661     something starting with __ and the normal name is an alias.  */
19662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19663 choke me
19664 #else
19665 $ac_func();
19666 #endif
19667
19668 ; return 0; }
19669 EOF
19670 if { (eval echo configure:19671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19671   rm -rf conftest*
19672   eval "ac_cv_func_$ac_func=yes"
19673 else
19674   echo "configure: failed program was:" >&5
19675   cat conftest.$ac_ext >&5
19676   rm -rf conftest*
19677   eval "ac_cv_func_$ac_func=no"
19678 fi
19679 rm -f conftest*
19680 fi
19681
19682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19683   echo "$ac_t""yes" 1>&6
19684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19685   cat >> confdefs.h <<EOF
19686 #define $ac_tr_func 1
19687 EOF
19688  
19689 else
19690   echo "$ac_t""no" 1>&6
19691 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
19692 fi
19693 done
19694
19695   fi
19696
19697   
19698
19699   
19700
19701       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
19702 echo "configure:19703: checking for mbstate_t" >&5
19703   cat > conftest.$ac_ext <<EOF
19704 #line 19705 "configure"
19705 #include "confdefs.h"
19706 #include <wchar.h>
19707 int main() {
19708 mbstate_t teststate;
19709 ; return 0; }
19710 EOF
19711 if { (eval echo configure:19712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19712   rm -rf conftest*
19713   have_mbstate_t=yes
19714 else
19715   echo "configure: failed program was:" >&5
19716   cat conftest.$ac_ext >&5
19717   rm -rf conftest*
19718   have_mbstate_t=no
19719 fi
19720 rm -f conftest*
19721   echo "$ac_t""$have_mbstate_t" 1>&6
19722   if test x"$have_mbstate_t" = xyes; then
19723     cat >> confdefs.h <<\EOF
19724 #define HAVE_MBSTATE_T 1
19725 EOF
19726
19727   fi
19728
19729     for ac_hdr in wchar.h
19730 do
19731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19733 echo "configure:19734: checking for $ac_hdr" >&5
19734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19735   echo $ac_n "(cached) $ac_c" 1>&6
19736 else
19737   cat > conftest.$ac_ext <<EOF
19738 #line 19739 "configure"
19739 #include "confdefs.h"
19740 #include <$ac_hdr>
19741 EOF
19742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19743 { (eval echo configure:19744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19745 if test -z "$ac_err"; then
19746   rm -rf conftest*
19747   eval "ac_cv_header_$ac_safe=yes"
19748 else
19749   echo "$ac_err" >&5
19750   echo "configure: failed program was:" >&5
19751   cat conftest.$ac_ext >&5
19752   rm -rf conftest*
19753   eval "ac_cv_header_$ac_safe=no"
19754 fi
19755 rm -f conftest*
19756 fi
19757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19758   echo "$ac_t""yes" 1>&6
19759     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19760   cat >> confdefs.h <<EOF
19761 #define $ac_tr_hdr 1
19762 EOF
19763  ac_has_wchar_h=yes
19764 else
19765   echo "$ac_t""no" 1>&6
19766 ac_has_wchar_h=no
19767 fi
19768 done
19769
19770   for ac_hdr in wctype.h
19771 do
19772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19774 echo "configure:19775: checking for $ac_hdr" >&5
19775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19776   echo $ac_n "(cached) $ac_c" 1>&6
19777 else
19778   cat > conftest.$ac_ext <<EOF
19779 #line 19780 "configure"
19780 #include "confdefs.h"
19781 #include <$ac_hdr>
19782 EOF
19783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19784 { (eval echo configure:19785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19786 if test -z "$ac_err"; then
19787   rm -rf conftest*
19788   eval "ac_cv_header_$ac_safe=yes"
19789 else
19790   echo "$ac_err" >&5
19791   echo "configure: failed program was:" >&5
19792   cat conftest.$ac_ext >&5
19793   rm -rf conftest*
19794   eval "ac_cv_header_$ac_safe=no"
19795 fi
19796 rm -f conftest*
19797 fi
19798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19799   echo "$ac_t""yes" 1>&6
19800     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19801   cat >> confdefs.h <<EOF
19802 #define $ac_tr_hdr 1
19803 EOF
19804  ac_has_wctype_h=yes
19805 else
19806   echo "$ac_t""no" 1>&6
19807 ac_has_wctype_h=no
19808 fi
19809 done
19810
19811   
19812     if test x"$ac_has_wchar_h" = xyes &&
19813      test x"$ac_has_wctype_h" = xyes &&
19814      test x"$enable_c_mbchar" != xno; then
19815       
19816             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
19817 echo "configure:19818: checking for WCHAR_MIN and WCHAR_MAX" >&5
19818     cat > conftest.$ac_ext <<EOF
19819 #line 19820 "configure"
19820 #include "confdefs.h"
19821 #include <wchar.h>
19822 int main() {
19823 int i = WCHAR_MIN; int j = WCHAR_MAX;
19824 ; return 0; }
19825 EOF
19826 if { (eval echo configure:19827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19827   rm -rf conftest*
19828   has_wchar_minmax=yes
19829 else
19830   echo "configure: failed program was:" >&5
19831   cat conftest.$ac_ext >&5
19832   rm -rf conftest*
19833   has_wchar_minmax=no
19834 fi
19835 rm -f conftest*
19836     echo "$ac_t""$has_wchar_minmax" 1>&6
19837     
19838             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
19839 echo "configure:19840: checking for WEOF" >&5
19840     cat > conftest.$ac_ext <<EOF
19841 #line 19842 "configure"
19842 #include "confdefs.h"
19843
19844       #include <wchar.h>
19845       #include <stddef.h>
19846 int main() {
19847 wint_t i = WEOF;
19848 ; return 0; }
19849 EOF
19850 if { (eval echo configure:19851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19851   rm -rf conftest*
19852   has_weof=yes
19853 else
19854   echo "configure: failed program was:" >&5
19855   cat conftest.$ac_ext >&5
19856   rm -rf conftest*
19857   has_weof=no
19858 fi
19859 rm -f conftest*
19860     echo "$ac_t""$has_weof" 1>&6
19861   
19862         ac_wfuncs=yes
19863     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
19864 do
19865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19866 echo "configure:19867: checking for $ac_func" >&5
19867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19868   echo $ac_n "(cached) $ac_c" 1>&6
19869 else
19870   cat > conftest.$ac_ext <<EOF
19871 #line 19872 "configure"
19872 #include "confdefs.h"
19873 /* System header to define __stub macros and hopefully few prototypes,
19874     which can conflict with char $ac_func(); below.  */
19875 #include <assert.h>
19876 /* Override any gcc2 internal prototype to avoid an error.  */
19877 /* We use char because int might match the return type of a gcc2
19878     builtin and then its argument prototype would still apply.  */
19879 char $ac_func();
19880
19881 int main() {
19882
19883 /* The GNU C library defines this for functions which it implements
19884     to always fail with ENOSYS.  Some functions are actually named
19885     something starting with __ and the normal name is an alias.  */
19886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19887 choke me
19888 #else
19889 $ac_func();
19890 #endif
19891
19892 ; return 0; }
19893 EOF
19894 if { (eval echo configure:19895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19895   rm -rf conftest*
19896   eval "ac_cv_func_$ac_func=yes"
19897 else
19898   echo "configure: failed program was:" >&5
19899   cat conftest.$ac_ext >&5
19900   rm -rf conftest*
19901   eval "ac_cv_func_$ac_func=no"
19902 fi
19903 rm -f conftest*
19904 fi
19905
19906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19907   echo "$ac_t""yes" 1>&6
19908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19909   cat >> confdefs.h <<EOF
19910 #define $ac_tr_func 1
19911 EOF
19912  
19913 else
19914   echo "$ac_t""no" 1>&6
19915 \
19916     ac_wfuncs=no
19917 fi
19918 done
19919
19920   
19921         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
19922     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
19923     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
19924     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
19925     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
19926     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
19927 do
19928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19929 echo "configure:19930: checking for $ac_func" >&5
19930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19931   echo $ac_n "(cached) $ac_c" 1>&6
19932 else
19933   cat > conftest.$ac_ext <<EOF
19934 #line 19935 "configure"
19935 #include "confdefs.h"
19936 /* System header to define __stub macros and hopefully few prototypes,
19937     which can conflict with char $ac_func(); below.  */
19938 #include <assert.h>
19939 /* Override any gcc2 internal prototype to avoid an error.  */
19940 /* We use char because int might match the return type of a gcc2
19941     builtin and then its argument prototype would still apply.  */
19942 char $ac_func();
19943
19944 int main() {
19945
19946 /* The GNU C library defines this for functions which it implements
19947     to always fail with ENOSYS.  Some functions are actually named
19948     something starting with __ and the normal name is an alias.  */
19949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19950 choke me
19951 #else
19952 $ac_func();
19953 #endif
19954
19955 ; return 0; }
19956 EOF
19957 if { (eval echo configure:19958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19958   rm -rf conftest*
19959   eval "ac_cv_func_$ac_func=yes"
19960 else
19961   echo "configure: failed program was:" >&5
19962   cat conftest.$ac_ext >&5
19963   rm -rf conftest*
19964   eval "ac_cv_func_$ac_func=no"
19965 fi
19966 rm -f conftest*
19967 fi
19968
19969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19970   echo "$ac_t""yes" 1>&6
19971     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19972   cat >> confdefs.h <<EOF
19973 #define $ac_tr_func 1
19974 EOF
19975  
19976 else
19977   echo "$ac_t""no" 1>&6
19978 \
19979     ac_wfuncs=no
19980 fi
19981 done
19982
19983
19984     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
19985 echo "configure:19986: checking for ISO C99 wchar_t support" >&5
19986     if test x"$has_weof" = xyes &&
19987        test x"$has_wchar_minmax" = xyes &&
19988        test x"$ac_wfuncs" = xyes; then
19989       ac_isoC99_wchar_t=yes
19990     else
19991       ac_isoC99_wchar_t=no
19992     fi
19993     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
19994   
19995             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
19996 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
19997 echo "configure:19998: checking for iconv.h" >&5
19998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19999   echo $ac_n "(cached) $ac_c" 1>&6
20000 else
20001   cat > conftest.$ac_ext <<EOF
20002 #line 20003 "configure"
20003 #include "confdefs.h"
20004 #include <iconv.h>
20005 EOF
20006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20007 { (eval echo configure:20008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20009 if test -z "$ac_err"; then
20010   rm -rf conftest*
20011   eval "ac_cv_header_$ac_safe=yes"
20012 else
20013   echo "$ac_err" >&5
20014   echo "configure: failed program was:" >&5
20015   cat conftest.$ac_ext >&5
20016   rm -rf conftest*
20017   eval "ac_cv_header_$ac_safe=no"
20018 fi
20019 rm -f conftest*
20020 fi
20021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20022   echo "$ac_t""yes" 1>&6
20023   ac_has_iconv_h=yes
20024 else
20025   echo "$ac_t""no" 1>&6
20026 ac_has_iconv_h=no
20027 fi
20028
20029     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20030 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20031 echo "configure:20032: checking for langinfo.h" >&5
20032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20033   echo $ac_n "(cached) $ac_c" 1>&6
20034 else
20035   cat > conftest.$ac_ext <<EOF
20036 #line 20037 "configure"
20037 #include "confdefs.h"
20038 #include <langinfo.h>
20039 EOF
20040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20041 { (eval echo configure:20042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20043 if test -z "$ac_err"; then
20044   rm -rf conftest*
20045   eval "ac_cv_header_$ac_safe=yes"
20046 else
20047   echo "$ac_err" >&5
20048   echo "configure: failed program was:" >&5
20049   cat conftest.$ac_ext >&5
20050   rm -rf conftest*
20051   eval "ac_cv_header_$ac_safe=no"
20052 fi
20053 rm -f conftest*
20054 fi
20055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20056   echo "$ac_t""yes" 1>&6
20057   ac_has_langinfo_h=yes
20058 else
20059   echo "$ac_t""no" 1>&6
20060 ac_has_langinfo_h=no
20061 fi
20062
20063
20064         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20065 echo "configure:20066: checking for iconv in -liconv" >&5
20066 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20068   echo $ac_n "(cached) $ac_c" 1>&6
20069 else
20070   ac_save_LIBS="$LIBS"
20071 LIBS="-liconv  $LIBS"
20072 cat > conftest.$ac_ext <<EOF
20073 #line 20074 "configure"
20074 #include "confdefs.h"
20075 /* Override any gcc2 internal prototype to avoid an error.  */
20076 /* We use char because int might match the return type of a gcc2
20077     builtin and then its argument prototype would still apply.  */
20078 char iconv();
20079
20080 int main() {
20081 iconv()
20082 ; return 0; }
20083 EOF
20084 if { (eval echo configure:20085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20085   rm -rf conftest*
20086   eval "ac_cv_lib_$ac_lib_var=yes"
20087 else
20088   echo "configure: failed program was:" >&5
20089   cat conftest.$ac_ext >&5
20090   rm -rf conftest*
20091   eval "ac_cv_lib_$ac_lib_var=no"
20092 fi
20093 rm -f conftest*
20094 LIBS="$ac_save_LIBS"
20095
20096 fi
20097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20098   echo "$ac_t""yes" 1>&6
20099   libiconv="-liconv"
20100 else
20101   echo "$ac_t""no" 1>&6
20102 fi
20103
20104     ac_save_LIBS="$LIBS"
20105     LIBS="$LIBS $libiconv"
20106
20107     for ac_func in iconv_open iconv_close iconv nl_langinfo
20108 do
20109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20110 echo "configure:20111: checking for $ac_func" >&5
20111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20112   echo $ac_n "(cached) $ac_c" 1>&6
20113 else
20114   cat > conftest.$ac_ext <<EOF
20115 #line 20116 "configure"
20116 #include "confdefs.h"
20117 /* System header to define __stub macros and hopefully few prototypes,
20118     which can conflict with char $ac_func(); below.  */
20119 #include <assert.h>
20120 /* Override any gcc2 internal prototype to avoid an error.  */
20121 /* We use char because int might match the return type of a gcc2
20122     builtin and then its argument prototype would still apply.  */
20123 char $ac_func();
20124
20125 int main() {
20126
20127 /* The GNU C library defines this for functions which it implements
20128     to always fail with ENOSYS.  Some functions are actually named
20129     something starting with __ and the normal name is an alias.  */
20130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20131 choke me
20132 #else
20133 $ac_func();
20134 #endif
20135
20136 ; return 0; }
20137 EOF
20138 if { (eval echo configure:20139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20139   rm -rf conftest*
20140   eval "ac_cv_func_$ac_func=yes"
20141 else
20142   echo "configure: failed program was:" >&5
20143   cat conftest.$ac_ext >&5
20144   rm -rf conftest*
20145   eval "ac_cv_func_$ac_func=no"
20146 fi
20147 rm -f conftest*
20148 fi
20149
20150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20151   echo "$ac_t""yes" 1>&6
20152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20153   cat >> confdefs.h <<EOF
20154 #define $ac_tr_func 1
20155 EOF
20156  \
20157     ac_XPG2funcs=yes
20158 else
20159   echo "$ac_t""no" 1>&6
20160 ac_XPG2funcs=no
20161 fi
20162 done
20163
20164   
20165     LIBS="$ac_save_LIBS"
20166
20167     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
20168 echo "configure:20169: checking for XPG2 wchar_t support" >&5
20169     if test x"$ac_has_iconv_h" = xyes &&
20170        test x"$ac_has_langinfo_h" = xyes &&
20171        test x"$ac_XPG2funcs" = xyes; then
20172       ac_XPG2_wchar_t=yes
20173     else
20174       ac_XPG2_wchar_t=no
20175     fi
20176     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
20177   
20178             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
20179 echo "configure:20180: checking for enabled wchar_t specializations" >&5
20180     if test x"$ac_isoC99_wchar_t" = xyes &&
20181        test x"$ac_XPG2_wchar_t" = xyes; then
20182       cat >> confdefs.h <<\EOF
20183 #define _GLIBCPP_USE_WCHAR_T 1
20184 EOF
20185
20186       echo "$ac_t"""yes"" 1>&6
20187     else
20188       echo "$ac_t"""no"" 1>&6
20189     fi
20190   else
20191         echo "configure: warning: wchar_t support disabled." 1>&2
20192   fi
20193
20194   
20195   ac_test_CXXFLAGS="${CXXFLAGS+set}"
20196   ac_save_CXXFLAGS="$CXXFLAGS"
20197   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
20198
20199   
20200   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
20201 echo "configure:20202: checking for strtold declaration" >&5
20202   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
20203     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
20204   echo $ac_n "(cached) $ac_c" 1>&6
20205 else
20206   
20207       
20208       ac_ext=C
20209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20210 ac_cpp='$CXXCPP $CPPFLAGS'
20211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20213 cross_compiling=$ac_cv_prog_cxx_cross
20214
20215       cat > conftest.$ac_ext <<EOF
20216 #line 20217 "configure"
20217 #include "confdefs.h"
20218 #include <stdlib.h>
20219 int main() {
20220  strtold(0, 0);
20221 ; return 0; }
20222 EOF
20223 if { (eval echo configure:20224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20224   rm -rf conftest*
20225   glibcpp_cv_func_strtold_use=yes
20226 else
20227   echo "configure: failed program was:" >&5
20228   cat conftest.$ac_ext >&5
20229   rm -rf conftest*
20230   glibcpp_cv_func_strtold_use=no
20231 fi
20232 rm -f conftest*
20233       ac_ext=c
20234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20235 ac_cpp='$CPP $CPPFLAGS'
20236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20238 cross_compiling=$ac_cv_prog_cc_cross
20239
20240     
20241 fi
20242
20243   fi
20244   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
20245   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
20246     for ac_func in strtold
20247 do
20248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20249 echo "configure:20250: checking for $ac_func" >&5
20250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20251   echo $ac_n "(cached) $ac_c" 1>&6
20252 else
20253   cat > conftest.$ac_ext <<EOF
20254 #line 20255 "configure"
20255 #include "confdefs.h"
20256 /* System header to define __stub macros and hopefully few prototypes,
20257     which can conflict with char $ac_func(); below.  */
20258 #include <assert.h>
20259 /* Override any gcc2 internal prototype to avoid an error.  */
20260 /* We use char because int might match the return type of a gcc2
20261     builtin and then its argument prototype would still apply.  */
20262 char $ac_func();
20263
20264 int main() {
20265
20266 /* The GNU C library defines this for functions which it implements
20267     to always fail with ENOSYS.  Some functions are actually named
20268     something starting with __ and the normal name is an alias.  */
20269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20270 choke me
20271 #else
20272 $ac_func();
20273 #endif
20274
20275 ; return 0; }
20276 EOF
20277 if { (eval echo configure:20278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20278   rm -rf conftest*
20279   eval "ac_cv_func_$ac_func=yes"
20280 else
20281   echo "configure: failed program was:" >&5
20282   cat conftest.$ac_ext >&5
20283   rm -rf conftest*
20284   eval "ac_cv_func_$ac_func=no"
20285 fi
20286 rm -f conftest*
20287 fi
20288
20289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20290   echo "$ac_t""yes" 1>&6
20291     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20292   cat >> confdefs.h <<EOF
20293 #define $ac_tr_func 1
20294 EOF
20295  
20296 else
20297   echo "$ac_t""no" 1>&6
20298 fi
20299 done
20300     
20301   fi
20302
20303   
20304   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
20305 echo "configure:20306: checking for strtof declaration" >&5
20306   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
20307     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
20308   echo $ac_n "(cached) $ac_c" 1>&6
20309 else
20310   
20311       
20312       ac_ext=C
20313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20314 ac_cpp='$CXXCPP $CPPFLAGS'
20315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20317 cross_compiling=$ac_cv_prog_cxx_cross
20318
20319       cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20322 #include <stdlib.h>
20323 int main() {
20324  strtof(0, 0);
20325 ; return 0; }
20326 EOF
20327 if { (eval echo configure:20328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20328   rm -rf conftest*
20329   glibcpp_cv_func_strtof_use=yes
20330 else
20331   echo "configure: failed program was:" >&5
20332   cat conftest.$ac_ext >&5
20333   rm -rf conftest*
20334   glibcpp_cv_func_strtof_use=no
20335 fi
20336 rm -f conftest*
20337       ac_ext=c
20338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20339 ac_cpp='$CPP $CPPFLAGS'
20340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20342 cross_compiling=$ac_cv_prog_cc_cross
20343
20344     
20345 fi
20346
20347   fi
20348   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
20349   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
20350     for ac_func in strtof
20351 do
20352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20353 echo "configure:20354: checking for $ac_func" >&5
20354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20355   echo $ac_n "(cached) $ac_c" 1>&6
20356 else
20357   cat > conftest.$ac_ext <<EOF
20358 #line 20359 "configure"
20359 #include "confdefs.h"
20360 /* System header to define __stub macros and hopefully few prototypes,
20361     which can conflict with char $ac_func(); below.  */
20362 #include <assert.h>
20363 /* Override any gcc2 internal prototype to avoid an error.  */
20364 /* We use char because int might match the return type of a gcc2
20365     builtin and then its argument prototype would still apply.  */
20366 char $ac_func();
20367
20368 int main() {
20369
20370 /* The GNU C library defines this for functions which it implements
20371     to always fail with ENOSYS.  Some functions are actually named
20372     something starting with __ and the normal name is an alias.  */
20373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20374 choke me
20375 #else
20376 $ac_func();
20377 #endif
20378
20379 ; return 0; }
20380 EOF
20381 if { (eval echo configure:20382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20382   rm -rf conftest*
20383   eval "ac_cv_func_$ac_func=yes"
20384 else
20385   echo "configure: failed program was:" >&5
20386   cat conftest.$ac_ext >&5
20387   rm -rf conftest*
20388   eval "ac_cv_func_$ac_func=no"
20389 fi
20390 rm -f conftest*
20391 fi
20392
20393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20394   echo "$ac_t""yes" 1>&6
20395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20396   cat >> confdefs.h <<EOF
20397 #define $ac_tr_func 1
20398 EOF
20399  
20400 else
20401   echo "$ac_t""no" 1>&6
20402 fi
20403 done
20404     
20405   fi
20406
20407   for ac_func in drand48
20408 do
20409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20410 echo "configure:20411: checking for $ac_func" >&5
20411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20412   echo $ac_n "(cached) $ac_c" 1>&6
20413 else
20414   cat > conftest.$ac_ext <<EOF
20415 #line 20416 "configure"
20416 #include "confdefs.h"
20417 /* System header to define __stub macros and hopefully few prototypes,
20418     which can conflict with char $ac_func(); below.  */
20419 #include <assert.h>
20420 /* Override any gcc2 internal prototype to avoid an error.  */
20421 /* We use char because int might match the return type of a gcc2
20422     builtin and then its argument prototype would still apply.  */
20423 char $ac_func();
20424
20425 int main() {
20426
20427 /* The GNU C library defines this for functions which it implements
20428     to always fail with ENOSYS.  Some functions are actually named
20429     something starting with __ and the normal name is an alias.  */
20430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20431 choke me
20432 #else
20433 $ac_func();
20434 #endif
20435
20436 ; return 0; }
20437 EOF
20438 if { (eval echo configure:20439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20439   rm -rf conftest*
20440   eval "ac_cv_func_$ac_func=yes"
20441 else
20442   echo "configure: failed program was:" >&5
20443   cat conftest.$ac_ext >&5
20444   rm -rf conftest*
20445   eval "ac_cv_func_$ac_func=no"
20446 fi
20447 rm -f conftest*
20448 fi
20449
20450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20451   echo "$ac_t""yes" 1>&6
20452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20453   cat >> confdefs.h <<EOF
20454 #define $ac_tr_func 1
20455 EOF
20456  
20457 else
20458   echo "$ac_t""no" 1>&6
20459 fi
20460 done
20461
20462
20463   CXXFLAGS="$ac_save_CXXFLAGS"
20464
20465   
20466   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
20467 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
20468 echo "configure:20469: checking for locale.h" >&5
20469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20470   echo $ac_n "(cached) $ac_c" 1>&6
20471 else
20472   cat > conftest.$ac_ext <<EOF
20473 #line 20474 "configure"
20474 #include "confdefs.h"
20475 #include <locale.h>
20476 EOF
20477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20478 { (eval echo configure:20479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20480 if test -z "$ac_err"; then
20481   rm -rf conftest*
20482   eval "ac_cv_header_$ac_safe=yes"
20483 else
20484   echo "$ac_err" >&5
20485   echo "configure: failed program was:" >&5
20486   cat conftest.$ac_ext >&5
20487   rm -rf conftest*
20488   eval "ac_cv_header_$ac_safe=no"
20489 fi
20490 rm -f conftest*
20491 fi
20492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20493   echo "$ac_t""yes" 1>&6
20494   
20495     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
20496 echo "configure:20497: checking for LC_MESSAGES" >&5
20497 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
20498   echo $ac_n "(cached) $ac_c" 1>&6
20499 else
20500   cat > conftest.$ac_ext <<EOF
20501 #line 20502 "configure"
20502 #include "confdefs.h"
20503 #include <locale.h>
20504 int main() {
20505 return LC_MESSAGES
20506 ; return 0; }
20507 EOF
20508 if { (eval echo configure:20509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20509   rm -rf conftest*
20510   ac_cv_val_LC_MESSAGES=yes
20511 else
20512   echo "configure: failed program was:" >&5
20513   cat conftest.$ac_ext >&5
20514   rm -rf conftest*
20515   ac_cv_val_LC_MESSAGES=no
20516 fi
20517 rm -f conftest*
20518 fi
20519
20520 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
20521     if test $ac_cv_val_LC_MESSAGES = yes; then
20522       cat >> confdefs.h <<\EOF
20523 #define HAVE_LC_MESSAGES 1
20524 EOF
20525
20526     fi
20527   
20528 else
20529   echo "$ac_t""no" 1>&6
20530 fi
20531
20532
20533
20534   cat > conftest.$ac_ext <<EOF
20535 #line 20536 "configure"
20536 #include "confdefs.h"
20537
20538   #include <setjmp.h>
20539   
20540 int main() {
20541 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
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   cat >> confdefs.h <<\EOF
20547 #define HAVE_SIGSETJMP 1
20548 EOF
20549
20550   
20551 else
20552   echo "configure: failed program was:" >&5
20553   cat conftest.$ac_ext >&5
20554 fi
20555 rm -f conftest*
20556
20557   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
20558 do
20559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20561 echo "configure:20562: checking for $ac_hdr" >&5
20562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20563   echo $ac_n "(cached) $ac_c" 1>&6
20564 else
20565   cat > conftest.$ac_ext <<EOF
20566 #line 20567 "configure"
20567 #include "confdefs.h"
20568 #include <$ac_hdr>
20569 EOF
20570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20571 { (eval echo configure:20572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20573 if test -z "$ac_err"; then
20574   rm -rf conftest*
20575   eval "ac_cv_header_$ac_safe=yes"
20576 else
20577   echo "$ac_err" >&5
20578   echo "configure: failed program was:" >&5
20579   cat conftest.$ac_ext >&5
20580   rm -rf conftest*
20581   eval "ac_cv_header_$ac_safe=no"
20582 fi
20583 rm -f conftest*
20584 fi
20585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20586   echo "$ac_t""yes" 1>&6
20587     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20588   cat >> confdefs.h <<EOF
20589 #define $ac_tr_hdr 1
20590 EOF
20591  
20592 else
20593   echo "$ac_t""no" 1>&6
20594 fi
20595 done
20596
20597 for ac_func in getpagesize
20598 do
20599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20600 echo "configure:20601: checking for $ac_func" >&5
20601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20602   echo $ac_n "(cached) $ac_c" 1>&6
20603 else
20604   cat > conftest.$ac_ext <<EOF
20605 #line 20606 "configure"
20606 #include "confdefs.h"
20607 /* System header to define __stub macros and hopefully few prototypes,
20608     which can conflict with char $ac_func(); below.  */
20609 #include <assert.h>
20610 /* Override any gcc2 internal prototype to avoid an error.  */
20611 /* We use char because int might match the return type of a gcc2
20612     builtin and then its argument prototype would still apply.  */
20613 char $ac_func();
20614
20615 int main() {
20616
20617 /* The GNU C library defines this for functions which it implements
20618     to always fail with ENOSYS.  Some functions are actually named
20619     something starting with __ and the normal name is an alias.  */
20620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20621 choke me
20622 #else
20623 $ac_func();
20624 #endif
20625
20626 ; return 0; }
20627 EOF
20628 if { (eval echo configure:20629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20629   rm -rf conftest*
20630   eval "ac_cv_func_$ac_func=yes"
20631 else
20632   echo "configure: failed program was:" >&5
20633   cat conftest.$ac_ext >&5
20634   rm -rf conftest*
20635   eval "ac_cv_func_$ac_func=no"
20636 fi
20637 rm -f conftest*
20638 fi
20639
20640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20641   echo "$ac_t""yes" 1>&6
20642     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20643   cat >> confdefs.h <<EOF
20644 #define $ac_tr_func 1
20645 EOF
20646  
20647 else
20648   echo "$ac_t""no" 1>&6
20649 fi
20650 done
20651
20652 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
20653 echo "configure:20654: checking for working mmap" >&5
20654 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
20655   echo $ac_n "(cached) $ac_c" 1>&6
20656 else
20657   if test "$cross_compiling" = yes; then
20658   ac_cv_func_mmap_fixed_mapped=no
20659 else
20660   cat > conftest.$ac_ext <<EOF
20661 #line 20662 "configure"
20662 #include "confdefs.h"
20663
20664 /* Thanks to Mike Haertel and Jim Avera for this test.
20665    Here is a matrix of mmap possibilities:
20666         mmap private not fixed
20667         mmap private fixed at somewhere currently unmapped
20668         mmap private fixed at somewhere already mapped
20669         mmap shared not fixed
20670         mmap shared fixed at somewhere currently unmapped
20671         mmap shared fixed at somewhere already mapped
20672    For private mappings, we should verify that changes cannot be read()
20673    back from the file, nor mmap's back from the file at a different
20674    address.  (There have been systems where private was not correctly
20675    implemented like the infamous i386 svr4.0, and systems where the
20676    VM page cache was not coherent with the filesystem buffer cache
20677    like early versions of FreeBSD and possibly contemporary NetBSD.)
20678    For shared mappings, we should conversely verify that changes get
20679    propogated back to all the places they're supposed to be.
20680
20681    Grep wants private fixed already mapped.
20682    The main things grep needs to know about mmap are:
20683    * does it exist and is it safe to write into the mmap'd area
20684    * how to use it (BSD variants)  */
20685 #include <sys/types.h>
20686 #include <fcntl.h>
20687 #include <sys/mman.h>
20688
20689 #if HAVE_SYS_TYPES_H
20690 # include <sys/types.h>
20691 #endif
20692
20693 #if HAVE_STDLIB_H
20694 # include <stdlib.h>
20695 #endif
20696
20697 #if HAVE_SYS_STAT_H
20698 # include <sys/stat.h>
20699 #endif
20700
20701 #if HAVE_UNISTD_H
20702 # include <unistd.h>
20703 #endif
20704
20705 /* This mess was copied from the GNU getpagesize.h.  */
20706 #ifndef HAVE_GETPAGESIZE
20707
20708 /* Assume that all systems that can run configure have sys/param.h.  */
20709 # ifndef HAVE_SYS_PARAM_H
20710 #  define HAVE_SYS_PARAM_H 1
20711 # endif
20712
20713 # ifdef _SC_PAGESIZE
20714 #  define getpagesize() sysconf(_SC_PAGESIZE)
20715 # else /* no _SC_PAGESIZE */
20716 #  ifdef HAVE_SYS_PARAM_H
20717 #   include <sys/param.h>
20718 #   ifdef EXEC_PAGESIZE
20719 #    define getpagesize() EXEC_PAGESIZE
20720 #   else /* no EXEC_PAGESIZE */
20721 #    ifdef NBPG
20722 #     define getpagesize() NBPG * CLSIZE
20723 #     ifndef CLSIZE
20724 #      define CLSIZE 1
20725 #     endif /* no CLSIZE */
20726 #    else /* no NBPG */
20727 #     ifdef NBPC
20728 #      define getpagesize() NBPC
20729 #     else /* no NBPC */
20730 #      ifdef PAGESIZE
20731 #       define getpagesize() PAGESIZE
20732 #      endif /* PAGESIZE */
20733 #     endif /* no NBPC */
20734 #    endif /* no NBPG */
20735 #   endif /* no EXEC_PAGESIZE */
20736 #  else /* no HAVE_SYS_PARAM_H */
20737 #   define getpagesize() 8192   /* punt totally */
20738 #  endif /* no HAVE_SYS_PARAM_H */
20739 # endif /* no _SC_PAGESIZE */
20740
20741 #endif /* no HAVE_GETPAGESIZE */
20742
20743 #ifdef __cplusplus
20744 extern "C" { void *malloc(unsigned); }
20745 #else
20746 char *malloc();
20747 #endif
20748
20749 int
20750 main()
20751 {
20752         char *data, *data2, *data3;
20753         int i, pagesize;
20754         int fd;
20755
20756         pagesize = getpagesize();
20757
20758         /*
20759          * First, make a file with some known garbage in it.
20760          */
20761         data = malloc(pagesize);
20762         if (!data)
20763                 exit(1);
20764         for (i = 0; i < pagesize; ++i)
20765                 *(data + i) = rand();
20766         umask(0);
20767         fd = creat("conftestmmap", 0600);
20768         if (fd < 0)
20769                 exit(1);
20770         if (write(fd, data, pagesize) != pagesize)
20771                 exit(1);
20772         close(fd);
20773
20774         /*
20775          * Next, try to mmap the file at a fixed address which
20776          * already has something else allocated at it.  If we can,
20777          * also make sure that we see the same garbage.
20778          */
20779         fd = open("conftestmmap", O_RDWR);
20780         if (fd < 0)
20781                 exit(1);
20782         data2 = malloc(2 * pagesize);
20783         if (!data2)
20784                 exit(1);
20785         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20786         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
20787             MAP_PRIVATE | MAP_FIXED, fd, 0L))
20788                 exit(1);
20789         for (i = 0; i < pagesize; ++i)
20790                 if (*(data + i) != *(data2 + i))
20791                         exit(1);
20792
20793         /*
20794          * Finally, make sure that changes to the mapped area
20795          * do not percolate back to the file as seen by read().
20796          * (This is a bug on some variants of i386 svr4.0.)
20797          */
20798         for (i = 0; i < pagesize; ++i)
20799                 *(data2 + i) = *(data2 + i) + 1;
20800         data3 = malloc(pagesize);
20801         if (!data3)
20802                 exit(1);
20803         if (read(fd, data3, pagesize) != pagesize)
20804                 exit(1);
20805         for (i = 0; i < pagesize; ++i)
20806                 if (*(data + i) != *(data3 + i))
20807                         exit(1);
20808         close(fd);
20809         unlink("conftestmmap");
20810         exit(0);
20811 }
20812
20813 EOF
20814 if { (eval echo configure:20815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20815 then
20816   ac_cv_func_mmap_fixed_mapped=yes
20817 else
20818   echo "configure: failed program was:" >&5
20819   cat conftest.$ac_ext >&5
20820   rm -fr conftest*
20821   ac_cv_func_mmap_fixed_mapped=no
20822 fi
20823 rm -fr conftest*
20824 fi
20825
20826 fi
20827
20828 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
20829 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20830   cat >> confdefs.h <<\EOF
20831 #define HAVE_MMAP 1
20832 EOF
20833
20834 fi
20835
20836
20837   # Establish limits on memory usage during 'make check'
20838   
20839   
20840   setrlimit_have_headers=yes
20841   for ac_hdr in sys/resource.h unistd.h
20842 do
20843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20845 echo "configure:20846: checking for $ac_hdr" >&5
20846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20847   echo $ac_n "(cached) $ac_c" 1>&6
20848 else
20849   cat > conftest.$ac_ext <<EOF
20850 #line 20851 "configure"
20851 #include "confdefs.h"
20852 #include <$ac_hdr>
20853 EOF
20854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20855 { (eval echo configure:20856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20857 if test -z "$ac_err"; then
20858   rm -rf conftest*
20859   eval "ac_cv_header_$ac_safe=yes"
20860 else
20861   echo "$ac_err" >&5
20862   echo "configure: failed program was:" >&5
20863   cat conftest.$ac_ext >&5
20864   rm -rf conftest*
20865   eval "ac_cv_header_$ac_safe=no"
20866 fi
20867 rm -f conftest*
20868 fi
20869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20870   echo "$ac_t""yes" 1>&6
20871     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20872   cat >> confdefs.h <<EOF
20873 #define $ac_tr_hdr 1
20874 EOF
20875  
20876 else
20877   echo "$ac_t""no" 1>&6
20878 setrlimit_have_headers=no
20879 fi
20880 done
20881
20882   # If don't have the headers, then we can't run the tests now, and we
20883   # won't be seeing any of these during testsuite compilation.
20884   if test $setrlimit_have_headers = yes; then
20885     # Can't do these in a loop, else the resulting syntax is wrong.
20886     
20887   cat > conftest.$ac_ext <<EOF
20888 #line 20889 "configure"
20889 #include "confdefs.h"
20890 #include <sys/resource.h>
20891                   #include <unistd.h>
20892                  
20893 int main() {
20894  int f = RLIMIT_DATA ; 
20895 ; return 0; }
20896 EOF
20897 if { (eval echo configure:20898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20898   rm -rf conftest*
20899   glibcpp_mresult=1
20900 else
20901   echo "configure: failed program was:" >&5
20902   cat conftest.$ac_ext >&5
20903   rm -rf conftest*
20904   glibcpp_mresult=0
20905 fi
20906 rm -f conftest*
20907   cat >> confdefs.h <<EOF
20908 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
20909 EOF
20910
20911
20912     
20913   cat > conftest.$ac_ext <<EOF
20914 #line 20915 "configure"
20915 #include "confdefs.h"
20916 #include <sys/resource.h>
20917                   #include <unistd.h>
20918                  
20919 int main() {
20920  int f = RLIMIT_RSS ; 
20921 ; return 0; }
20922 EOF
20923 if { (eval echo configure:20924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20924   rm -rf conftest*
20925   glibcpp_mresult=1
20926 else
20927   echo "configure: failed program was:" >&5
20928   cat conftest.$ac_ext >&5
20929   rm -rf conftest*
20930   glibcpp_mresult=0
20931 fi
20932 rm -f conftest*
20933   cat >> confdefs.h <<EOF
20934 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
20935 EOF
20936
20937
20938     
20939   cat > conftest.$ac_ext <<EOF
20940 #line 20941 "configure"
20941 #include "confdefs.h"
20942 #include <sys/resource.h>
20943                   #include <unistd.h>
20944                  
20945 int main() {
20946  int f = RLIMIT_VMEM ; 
20947 ; return 0; }
20948 EOF
20949 if { (eval echo configure:20950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20950   rm -rf conftest*
20951   glibcpp_mresult=1
20952 else
20953   echo "configure: failed program was:" >&5
20954   cat conftest.$ac_ext >&5
20955   rm -rf conftest*
20956   glibcpp_mresult=0
20957 fi
20958 rm -f conftest*
20959   cat >> confdefs.h <<EOF
20960 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
20961 EOF
20962
20963
20964     
20965   cat > conftest.$ac_ext <<EOF
20966 #line 20967 "configure"
20967 #include "confdefs.h"
20968 #include <sys/resource.h>
20969                   #include <unistd.h>
20970                  
20971 int main() {
20972  int f = RLIMIT_AS ; 
20973 ; return 0; }
20974 EOF
20975 if { (eval echo configure:20976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20976   rm -rf conftest*
20977   glibcpp_mresult=1
20978 else
20979   echo "configure: failed program was:" >&5
20980   cat conftest.$ac_ext >&5
20981   rm -rf conftest*
20982   glibcpp_mresult=0
20983 fi
20984 rm -f conftest*
20985   cat >> confdefs.h <<EOF
20986 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
20987 EOF
20988
20989
20990
20991     # Check for rlimit, setrlimit.
20992     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
20993   echo $ac_n "(cached) $ac_c" 1>&6
20994 else
20995   
20996       cat > conftest.$ac_ext <<EOF
20997 #line 20998 "configure"
20998 #include "confdefs.h"
20999 #include <sys/resource.h>
21000                       #include <unistd.h>
21001                      
21002 int main() {
21003  struct rlimit r; setrlimit(0, &r);
21004 ; return 0; }
21005 EOF
21006 if { (eval echo configure:21007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21007   rm -rf conftest*
21008   ac_setrlimit=yes
21009 else
21010   echo "configure: failed program was:" >&5
21011   cat conftest.$ac_ext >&5
21012   rm -rf conftest*
21013   ac_setrlimit=no
21014 fi
21015 rm -f conftest*
21016     
21017 fi
21018
21019   fi
21020
21021   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21022 echo "configure:21023: checking for testsuite memory limit support" >&5
21023   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21024     ac_mem_limits=yes
21025     cat >> confdefs.h <<\EOF
21026 #define _GLIBCPP_MEM_LIMITS 1
21027 EOF
21028
21029   else
21030     ac_mem_limits=no
21031   fi
21032   echo "$ac_t""$ac_mem_limits" 1>&6
21033
21034
21035   # Look for setenv, so that extended locale tests can be performed.
21036   
21037   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21038 echo "configure:21039: checking for setenv declaration" >&5
21039   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21040     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21041   echo $ac_n "(cached) $ac_c" 1>&6
21042 else
21043   
21044       
21045       ac_ext=C
21046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21047 ac_cpp='$CXXCPP $CPPFLAGS'
21048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21050 cross_compiling=$ac_cv_prog_cxx_cross
21051
21052       cat > conftest.$ac_ext <<EOF
21053 #line 21054 "configure"
21054 #include "confdefs.h"
21055 #include <stdlib.h>
21056 int main() {
21057  setenv(0, 0, 0);
21058 ; return 0; }
21059 EOF
21060 if { (eval echo configure:21061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21061   rm -rf conftest*
21062   glibcpp_cv_func_setenv_use=yes
21063 else
21064   echo "configure: failed program was:" >&5
21065   cat conftest.$ac_ext >&5
21066   rm -rf conftest*
21067   glibcpp_cv_func_setenv_use=no
21068 fi
21069 rm -f conftest*
21070       ac_ext=c
21071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21072 ac_cpp='$CPP $CPPFLAGS'
21073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21075 cross_compiling=$ac_cv_prog_cc_cross
21076
21077     
21078 fi
21079
21080   fi
21081   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21082   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
21083     for ac_func in setenv
21084 do
21085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21086 echo "configure:21087: checking for $ac_func" >&5
21087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21088   echo $ac_n "(cached) $ac_c" 1>&6
21089 else
21090   cat > conftest.$ac_ext <<EOF
21091 #line 21092 "configure"
21092 #include "confdefs.h"
21093 /* System header to define __stub macros and hopefully few prototypes,
21094     which can conflict with char $ac_func(); below.  */
21095 #include <assert.h>
21096 /* Override any gcc2 internal prototype to avoid an error.  */
21097 /* We use char because int might match the return type of a gcc2
21098     builtin and then its argument prototype would still apply.  */
21099 char $ac_func();
21100
21101 int main() {
21102
21103 /* The GNU C library defines this for functions which it implements
21104     to always fail with ENOSYS.  Some functions are actually named
21105     something starting with __ and the normal name is an alias.  */
21106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21107 choke me
21108 #else
21109 $ac_func();
21110 #endif
21111
21112 ; return 0; }
21113 EOF
21114 if { (eval echo configure:21115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21115   rm -rf conftest*
21116   eval "ac_cv_func_$ac_func=yes"
21117 else
21118   echo "configure: failed program was:" >&5
21119   cat conftest.$ac_ext >&5
21120   rm -rf conftest*
21121   eval "ac_cv_func_$ac_func=no"
21122 fi
21123 rm -f conftest*
21124 fi
21125
21126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21127   echo "$ac_t""yes" 1>&6
21128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21129   cat >> confdefs.h <<EOF
21130 #define $ac_tr_func 1
21131 EOF
21132  
21133 else
21134   echo "$ac_t""no" 1>&6
21135 fi
21136 done
21137     
21138   fi
21139
21140
21141 fi
21142
21143 # This depends on the possibly-skipped linker test above.
21144 # Check whether --enable-symvers or --disable-symvers was given.
21145 if test "${enable_symvers+set}" = set; then
21146   enableval="$enable_symvers"
21147   case "$enableval" in
21148  yes) enable_symvers=yes ;;
21149  no)  enable_symvers=no ;;
21150  # other names here, just as sanity checks
21151  #gnu|sun|etcetera) enable_symvers=$enableval ;;
21152  gnu) enable_symvers=$enableval ;;
21153  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
21154  esac
21155 else
21156   enable_symvers=yes
21157 fi
21158
21159 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
21160 # don't know enough about $LD to do tricks... 
21161 if test x$enable_shared = xno || 
21162         test x$LD = x || 
21163         test x$glibcpp_gnu_ld_version = x; then
21164   enable_symvers=no
21165 fi
21166
21167 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
21168 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
21169 echo "configure:21170: checking for shared libgcc" >&5
21170 ac_save_CFLAGS="$CFLAGS"
21171 CFLAGS=' -lgcc_s'
21172 cat > conftest.$ac_ext <<EOF
21173 #line 21174 "configure"
21174 #include "confdefs.h"
21175
21176 int main() {
21177 return 0
21178 ; return 0; }
21179 EOF
21180 if { (eval echo configure:21181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21181   rm -rf conftest*
21182   glibcpp_shared_libgcc=yes
21183 else
21184   echo "configure: failed program was:" >&5
21185   cat conftest.$ac_ext >&5
21186   rm -rf conftest*
21187   glibcpp_shared_libgcc=no
21188 fi
21189 rm -f conftest*
21190 CFLAGS="$ac_save_CFLAGS"
21191 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
21192
21193 # For GNU ld, we need at least this version.  It's 2.12 in the same format
21194 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
21195 glibcpp_min_gnu_ld_version=21200
21196
21197 # Check to see if unspecified "yes" value can win, given results
21198 # above.  
21199 if test $enable_symvers = yes ; then
21200   if test $with_gnu_ld = yes &&
21201     test $glibcpp_shared_libgcc = yes ;
21202   then
21203     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
21204         enable_symvers=gnu
21205     else
21206       ac_test_CFLAGS="${CFLAGS+set}"
21207       ac_save_CFLAGS="$CFLAGS"
21208       CFLAGS='-shared -Wl,--version-script,conftest.map'
21209       enable_symvers=no
21210       
21211       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
21212       
21213       cat > conftest.$ac_ext <<EOF
21214 #line 21215 "configure"
21215 #include "confdefs.h"
21216 int foo;
21217 int main() {
21218
21219 ; return 0; }
21220 EOF
21221 if { (eval echo configure:21222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21222   rm -rf conftest*
21223   enable_symvers=gnu
21224 else
21225   echo "configure: failed program was:" >&5
21226   cat conftest.$ac_ext >&5
21227 fi
21228 rm -f conftest*
21229       if test "$ac_test_CFLAGS" = set; then
21230         CFLAGS="$ac_save_CFLAGS"
21231       else
21232         # this is the suspicious part
21233         CFLAGS=''
21234       fi
21235       rm -f conftest.map
21236     fi
21237   else
21238     # just fail for now
21239     enable_symvers=no
21240   fi
21241 fi
21242
21243 case $enable_symvers in
21244   no)
21245       LINKER_MAP=config/linker-map.dummy
21246       ;;
21247   gnu)
21248       LINKER_MAP=config/linker-map.gnu
21249       ;;
21250 esac
21251
21252
21253
21254
21255 if test $enable_symvers != no; then
21256   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
21257   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
21258 else
21259   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
21260   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
21261 fi
21262 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
21263 echo "configure:21264: checking versioning on shared library symbols" >&5
21264 echo "$ac_t""$enable_symvers" 1>&6
21265
21266
21267 # Propagate the target-specific source directories through the build chain.
21268 OS_INC_SRCDIR=$os_include_dir/bits
21269 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
21270 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
21271
21272
21273
21274
21275 # Set up cross-compile flags
21276
21277
21278
21279 if test "$CANADIAN" = yes; then
21280   CANADIAN_TRUE=
21281   CANADIAN_FALSE='#'
21282 else
21283   CANADIAN_TRUE='#'
21284   CANADIAN_FALSE=
21285 fi
21286  
21287 cat > confcache <<\EOF
21288 # This file is a shell script that caches the results of configure
21289 # tests run on this system so they can be shared between configure
21290 # scripts and configure runs.  It is not useful on other systems.
21291 # If it contains results you don't want to keep, you may remove or edit it.
21292 #
21293 # By default, configure uses ./config.cache as the cache file,
21294 # creating it if it does not exist already.  You can give configure
21295 # the --cache-file=FILE option to use a different cache file; that is
21296 # what configure does when it calls configure scripts in
21297 # subdirectories, so they share the cache.
21298 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21299 # config.status only pays attention to the cache file if you give it the
21300 # --recheck option to rerun configure.
21301 #
21302 EOF
21303 # The following way of writing the cache mishandles newlines in values,
21304 # but we know of no workaround that is simple, portable, and efficient.
21305 # So, don't put newlines in cache variables' values.
21306 # Ultrix sh set writes to stderr and can't be redirected directly,
21307 # and sets the high bit in the cache file unless we assign to the vars.
21308 (set) 2>&1 |
21309   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21310   *ac_space=\ *)
21311     # `set' does not quote correctly, so add quotes (double-quote substitution
21312     # turns \\\\ into \\, and sed turns \\ into \).
21313     sed -n \
21314       -e "s/'/'\\\\''/g" \
21315       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21316     ;;
21317   *)
21318     # `set' quotes correctly as required by POSIX, so do not add quotes.
21319     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21320     ;;
21321   esac >> confcache
21322 if cmp -s $cache_file confcache; then
21323   :
21324 else
21325   if test -w $cache_file; then
21326     echo "updating cache $cache_file"
21327     cat confcache > $cache_file
21328   else
21329     echo "not updating unwritable cache $cache_file"
21330   fi
21331 fi
21332 rm -f confcache
21333
21334
21335 if test "${multilib}" = "yes"; then
21336   multilib_arg="--enable-multilib"
21337 else
21338   multilib_arg=
21339 fi
21340
21341 # Needed so that g++ can find the correct include subdir automatically.
21342 INTERFACE=v3
21343
21344 # Export all the install information
21345
21346 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
21347 # exported correctly in GLIBCPP_CONFIGURE.
21348 glibcpp_toolexecdir=no
21349 glibcpp_toolexeclibdir=no
21350 glibcpp_prefixdir=${prefix}
21351
21352 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
21353 echo "configure:21354: checking for interface version number" >&5
21354 libstdcxx_interface=$INTERFACE
21355 echo "$ac_t""$libstdcxx_interface" 1>&6
21356
21357 # Process the option --with-gxx-include-dir=<path to include-files directory>
21358 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
21359 echo "configure:21360: checking for --with-gxx-include-dir" >&5
21360 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
21361 if test "${with_gxx_include_dir+set}" = set; then
21362   withval="$with_gxx_include_dir"
21363   case "${withval}" in
21364   yes)
21365     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
21366     gxx_include_dir=no
21367     ;;
21368   no)
21369     gxx_include_dir=no
21370     ;;
21371   *)
21372     gxx_include_dir=${withval}
21373     ;;
21374 esac
21375 else
21376   gxx_include_dir=no
21377 fi
21378
21379 echo "$ac_t""$gxx_include_dir" 1>&6
21380
21381 # Process the option "--enable-version-specific-runtime-libs"
21382 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
21383 echo "configure:21384: checking for --enable-version-specific-runtime-libs" >&5
21384 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
21385 if test "${enable_version_specific_runtime_libs+set}" = set; then
21386   enableval="$enable_version_specific_runtime_libs"
21387   case "$enableval" in
21388  yes) version_specific_libs=yes ;;
21389  no)  version_specific_libs=no ;;
21390  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
21391  esac
21392 else
21393   version_specific_libs=no
21394 fi
21395 # Option set, now we can test it.
21396 echo "$ac_t""$version_specific_libs" 1>&6
21397
21398 if test $version_specific_libs = yes; then
21399   # Need the gcc compiler version to know where to install libraries
21400   # and header files if --enable-version-specific-runtime-libs option
21401   # is selected.
21402     gcc_version_trigger=${srcdir}/../gcc/version.c
21403   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
21404   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
21405   if test x"$gxx_include_dir" = x"no"; then
21406     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
21407   fi
21408   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21409   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
21410   fi
21411
21412 # Default case for install directory for include files.
21413 if test $version_specific_libs = no &&
21414    test $gxx_include_dir = no; then
21415   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
21416 fi
21417
21418 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
21419 # Install a library built with a cross compiler in tooldir, not libdir.
21420 if test x"$glibcpp_toolexecdir" = x"no"; then 
21421   if test -n "$with_cross_host" &&
21422      test x"$with_cross_host" != x"no"; then
21423     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
21424     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
21425   else
21426     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21427     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
21428   fi
21429 fi
21430
21431 echo $ac_n "checking for install location""... $ac_c" 1>&6
21432 echo "configure:21433: checking for install location" >&5
21433 echo "$ac_t""$gxx_include_dir" 1>&6
21434
21435
21436
21437
21438
21439
21440
21441 # Export all the include and flag information to makefiles.
21442
21443   # Root level of the build directory include sources.
21444   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
21445
21446   # Passed down for canadian crosses.
21447   if test x"$CANADIAN" = xyes; then
21448     TOPLEVEL_INCLUDES='-I$(includedir)'
21449   fi
21450
21451   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
21452
21453   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
21454
21455   if test x"$need_libio" = xyes; then
21456     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
21457     
21458   fi
21459
21460   # Now, export this to all the little Makefiles....
21461   
21462   
21463   
21464   
21465
21466
21467   # Optimization flags that are probably a good idea for thrill-seekers. Just
21468   # uncomment the lines below and make, everything else is ready to go... 
21469   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
21470   OPTIMIZE_CXXFLAGS=
21471   
21472
21473   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
21474   
21475
21476
21477 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
21478    grep "enable shared" > /dev/null; then
21479   LIBSUPCXX_PICFLAGS=-prefer-pic
21480 else
21481   LIBSUPCXX_PICFLAGS=
21482 fi
21483
21484
21485 # Generate the various Makefiles, include files, and scripts.
21486 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
21487 # and libsupc++/Makefile.am so that multilib installs will end up
21488 # installed in the correct place. To work around this not being passed
21489 # down from config-ml.in -> top_srcdir/Makefile.am ->
21490 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
21491 trap '' 1 2 15
21492 cat > confcache <<\EOF
21493 # This file is a shell script that caches the results of configure
21494 # tests run on this system so they can be shared between configure
21495 # scripts and configure runs.  It is not useful on other systems.
21496 # If it contains results you don't want to keep, you may remove or edit it.
21497 #
21498 # By default, configure uses ./config.cache as the cache file,
21499 # creating it if it does not exist already.  You can give configure
21500 # the --cache-file=FILE option to use a different cache file; that is
21501 # what configure does when it calls configure scripts in
21502 # subdirectories, so they share the cache.
21503 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21504 # config.status only pays attention to the cache file if you give it the
21505 # --recheck option to rerun configure.
21506 #
21507 EOF
21508 # The following way of writing the cache mishandles newlines in values,
21509 # but we know of no workaround that is simple, portable, and efficient.
21510 # So, don't put newlines in cache variables' values.
21511 # Ultrix sh set writes to stderr and can't be redirected directly,
21512 # and sets the high bit in the cache file unless we assign to the vars.
21513 (set) 2>&1 |
21514   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21515   *ac_space=\ *)
21516     # `set' does not quote correctly, so add quotes (double-quote substitution
21517     # turns \\\\ into \\, and sed turns \\ into \).
21518     sed -n \
21519       -e "s/'/'\\\\''/g" \
21520       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21521     ;;
21522   *)
21523     # `set' quotes correctly as required by POSIX, so do not add quotes.
21524     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21525     ;;
21526   esac >> confcache
21527 if cmp -s $cache_file confcache; then
21528   :
21529 else
21530   if test -w $cache_file; then
21531     echo "updating cache $cache_file"
21532     cat confcache > $cache_file
21533   else
21534     echo "not updating unwritable cache $cache_file"
21535   fi
21536 fi
21537 rm -f confcache
21538
21539 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21540
21541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21542 # Let make expand exec_prefix.
21543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21544
21545 # Any assignment to VPATH causes Sun make to only execute
21546 # the first set of double-colon rules, so remove it if not needed.
21547 # If there is a colon in the path, we need to keep it.
21548 if test "x$srcdir" = x.; then
21549   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
21550 fi
21551
21552 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21553
21554 DEFS=-DHAVE_CONFIG_H
21555
21556 # Without the "./", some shells look in PATH for config.status.
21557 : ${CONFIG_STATUS=./config.status}
21558
21559 echo creating $CONFIG_STATUS
21560 rm -f $CONFIG_STATUS
21561 cat > $CONFIG_STATUS <<EOF
21562 #! /bin/sh
21563 # Generated automatically by configure.
21564 # Run this file to recreate the current configuration.
21565 # This directory was configured as follows,
21566 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21567 #
21568 # $0 $ac_configure_args
21569 #
21570 # Compiler output produced by configure, useful for debugging
21571 # configure, is in ./config.log if it exists.
21572
21573 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21574 for ac_option
21575 do
21576   case "\$ac_option" in
21577   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21578     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21579     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21580   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21581     echo "$CONFIG_STATUS generated by autoconf version 2.13"
21582     exit 0 ;;
21583   -help | --help | --hel | --he | --h)
21584     echo "\$ac_cs_usage"; exit 0 ;;
21585   *) echo "\$ac_cs_usage"; exit 1 ;;
21586   esac
21587 done
21588
21589 ac_given_srcdir=$srcdir
21590 ac_given_INSTALL="$INSTALL"
21591
21592 trap 'rm -fr `echo "Makefile \
21593     include/Makefile src/Makefile \
21594     libmath/Makefile libio/Makefile libsupc++/Makefile \
21595     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21596 EOF
21597 cat >> $CONFIG_STATUS <<EOF
21598
21599 # Protect against being on the right side of a sed subst in config.status.
21600 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21601  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21602 $ac_vpsub
21603 $extrasub
21604 s%@SHELL@%$SHELL%g
21605 s%@CFLAGS@%$CFLAGS%g
21606 s%@CPPFLAGS@%$CPPFLAGS%g
21607 s%@CXXFLAGS@%$CXXFLAGS%g
21608 s%@FFLAGS@%$FFLAGS%g
21609 s%@DEFS@%$DEFS%g
21610 s%@LDFLAGS@%$LDFLAGS%g
21611 s%@LIBS@%$LIBS%g
21612 s%@exec_prefix@%$exec_prefix%g
21613 s%@prefix@%$prefix%g
21614 s%@program_transform_name@%$program_transform_name%g
21615 s%@bindir@%$bindir%g
21616 s%@sbindir@%$sbindir%g
21617 s%@libexecdir@%$libexecdir%g
21618 s%@datadir@%$datadir%g
21619 s%@sysconfdir@%$sysconfdir%g
21620 s%@sharedstatedir@%$sharedstatedir%g
21621 s%@localstatedir@%$localstatedir%g
21622 s%@libdir@%$libdir%g
21623 s%@includedir@%$includedir%g
21624 s%@oldincludedir@%$oldincludedir%g
21625 s%@infodir@%$infodir%g
21626 s%@mandir@%$mandir%g
21627 s%@PACKAGE@%$PACKAGE%g
21628 s%@release_VERSION@%$release_VERSION%g
21629 s%@libtool_VERSION@%$libtool_VERSION%g
21630 s%@host@%$host%g
21631 s%@host_alias@%$host_alias%g
21632 s%@host_cpu@%$host_cpu%g
21633 s%@host_vendor@%$host_vendor%g
21634 s%@host_os@%$host_os%g
21635 s%@target@%$target%g
21636 s%@target_alias@%$target_alias%g
21637 s%@target_cpu@%$target_cpu%g
21638 s%@target_vendor@%$target_vendor%g
21639 s%@target_os@%$target_os%g
21640 s%@build@%$build%g
21641 s%@build_alias@%$build_alias%g
21642 s%@build_cpu@%$build_cpu%g
21643 s%@build_vendor@%$build_vendor%g
21644 s%@build_os@%$build_os%g
21645 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21646 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21647 s%@INSTALL_DATA@%$INSTALL_DATA%g
21648 s%@VERSION@%$VERSION%g
21649 s%@ACLOCAL@%$ACLOCAL%g
21650 s%@AUTOCONF@%$AUTOCONF%g
21651 s%@AUTOMAKE@%$AUTOMAKE%g
21652 s%@AUTOHEADER@%$AUTOHEADER%g
21653 s%@MAKEINFO@%$MAKEINFO%g
21654 s%@SET_MAKE@%$SET_MAKE%g
21655 s%@toplevel_srcdir@%$toplevel_srcdir%g
21656 s%@glibcpp_builddir@%$glibcpp_builddir%g
21657 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
21658 s%@AWK@%$AWK%g
21659 s%@LN_S@%$LN_S%g
21660 s%@glibcpp_basedir@%$glibcpp_basedir%g
21661 s%@CC@%$CC%g
21662 s%@glibcpp_CXX@%$glibcpp_CXX%g
21663 s%@AS@%$AS%g
21664 s%@AR@%$AR%g
21665 s%@RANLIB@%$RANLIB%g
21666 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
21667 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
21668 s%@MAINT@%$MAINT%g
21669 s%@EXEEXT@%$EXEEXT%g
21670 s%@OBJEXT@%$OBJEXT%g
21671 s%@STRIP@%$STRIP%g
21672 s%@LIBTOOL@%$LIBTOOL%g
21673 s%@CXXCPP@%$CXXCPP%g
21674 s%@enable_shared@%$enable_shared%g
21675 s%@enable_static@%$enable_static%g
21676 s%@ifGNUmake@%$ifGNUmake%g
21677 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
21678 s%@CPP@%$CPP%g
21679 s%@CSTDIO_H@%$CSTDIO_H%g
21680 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
21681 s%@CCODECVT_C@%$CCODECVT_C%g
21682 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
21683 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
21684 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
21685 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
21686 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
21687 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
21688 s%@libio_la@%$libio_la%g
21689 s%@check_msgfmt@%$check_msgfmt%g
21690 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
21691 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
21692 s%@glibcpp_localedir@%$glibcpp_localedir%g
21693 s%@USE_NLS@%$USE_NLS%g
21694 s%@CLOCALE_H@%$CLOCALE_H%g
21695 s%@CCODECVT_H@%$CCODECVT_H%g
21696 s%@CMESSAGES_H@%$CMESSAGES_H%g
21697 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
21698 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
21699 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
21700 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
21701 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
21702 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
21703 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
21704 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
21705 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
21706 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
21707 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
21708 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
21709 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
21710 s%@WERROR@%$WERROR%g
21711 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
21712 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
21713 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
21714 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
21715 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
21716 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
21717 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
21718 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
21719 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
21720 s%@gxx_include_dir@%$gxx_include_dir%g
21721 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
21722 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
21723 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
21724 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
21725 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
21726 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
21727 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
21728 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
21729 s%@WARN_FLAGS@%$WARN_FLAGS%g
21730 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
21731
21732 CEOF
21733 EOF
21734
21735 cat >> $CONFIG_STATUS <<\EOF
21736
21737 # Split the substitutions into bite-sized pieces for seds with
21738 # small command number limits, like on Digital OSF/1 and HP-UX.
21739 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21740 ac_file=1 # Number of current file.
21741 ac_beg=1 # First line for current file.
21742 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21743 ac_more_lines=:
21744 ac_sed_cmds=""
21745 while $ac_more_lines; do
21746   if test $ac_beg -gt 1; then
21747     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21748   else
21749     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21750   fi
21751   if test ! -s conftest.s$ac_file; then
21752     ac_more_lines=false
21753     rm -f conftest.s$ac_file
21754   else
21755     if test -z "$ac_sed_cmds"; then
21756       ac_sed_cmds="sed -f conftest.s$ac_file"
21757     else
21758       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21759     fi
21760     ac_file=`expr $ac_file + 1`
21761     ac_beg=$ac_end
21762     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21763   fi
21764 done
21765 if test -z "$ac_sed_cmds"; then
21766   ac_sed_cmds=cat
21767 fi
21768 EOF
21769
21770 cat >> $CONFIG_STATUS <<EOF
21771
21772 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
21773     include/Makefile src/Makefile \
21774     libmath/Makefile libio/Makefile libsupc++/Makefile \
21775     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
21776 EOF
21777 cat >> $CONFIG_STATUS <<\EOF
21778 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21779   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21780   case "$ac_file" in
21781   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21782        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21783   *) ac_file_in="${ac_file}.in" ;;
21784   esac
21785
21786   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21787
21788   # Remove last slash and all that follows it.  Not all systems have dirname.
21789   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21790   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21791     # The file is in a subdirectory.
21792     test ! -d "$ac_dir" && mkdir "$ac_dir"
21793     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21794     # A "../" for each directory in $ac_dir_suffix.
21795     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21796   else
21797     ac_dir_suffix= ac_dots=
21798   fi
21799
21800   case "$ac_given_srcdir" in
21801   .)  srcdir=.
21802       if test -z "$ac_dots"; then top_srcdir=.
21803       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21804   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21805   *) # Relative path.
21806     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21807     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21808   esac
21809
21810   case "$ac_given_INSTALL" in
21811   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21812   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21813   esac
21814
21815   echo creating "$ac_file"
21816   rm -f "$ac_file"
21817   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21818   case "$ac_file" in
21819   *Makefile*) ac_comsub="1i\\
21820 # $configure_input" ;;
21821   *) ac_comsub= ;;
21822   esac
21823
21824   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21825   sed -e "$ac_comsub
21826 s%@configure_input@%$configure_input%g
21827 s%@srcdir@%$srcdir%g
21828 s%@top_srcdir@%$top_srcdir%g
21829 s%@INSTALL@%$INSTALL%g
21830 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21831 fi; done
21832 rm -f conftest.s*
21833
21834 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21835 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21836 #
21837 # ac_d sets the value in "#define NAME VALUE" lines.
21838 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21839 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21840 ac_dC='\3'
21841 ac_dD='%g'
21842 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21843 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21844 ac_uB='\([      ]\)%\1#\2define\3'
21845 ac_uC=' '
21846 ac_uD='\4%g'
21847 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21848 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21849 ac_eB='$%\1#\2define\3'
21850 ac_eC=' '
21851 ac_eD='%g'
21852
21853 if test "${CONFIG_HEADERS+set}" != set; then
21854 EOF
21855 cat >> $CONFIG_STATUS <<EOF
21856   CONFIG_HEADERS="config.h"
21857 EOF
21858 cat >> $CONFIG_STATUS <<\EOF
21859 fi
21860 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21861   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21862   case "$ac_file" in
21863   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21864        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21865   *) ac_file_in="${ac_file}.in" ;;
21866   esac
21867
21868   echo creating $ac_file
21869
21870   rm -f conftest.frag conftest.in conftest.out
21871   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21872   cat $ac_file_inputs > conftest.in
21873
21874 EOF
21875
21876 # Transform confdefs.h into a sed script conftest.vals that substitutes
21877 # the proper values into config.h.in to produce config.h.  And first:
21878 # Protect against being on the right side of a sed subst in config.status.
21879 # Protect against being in an unquoted here document in config.status.
21880 rm -f conftest.vals
21881 cat > conftest.hdr <<\EOF
21882 s/[\\&%]/\\&/g
21883 s%[\\$`]%\\&%g
21884 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21885 s%ac_d%ac_u%gp
21886 s%ac_u%ac_e%gp
21887 EOF
21888 sed -n -f conftest.hdr confdefs.h > conftest.vals
21889 rm -f conftest.hdr
21890
21891 # This sed command replaces #undef with comments.  This is necessary, for
21892 # example, in the case of _POSIX_SOURCE, which is predefined and required
21893 # on some systems where configure will not decide to define it.
21894 cat >> conftest.vals <<\EOF
21895 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21896 EOF
21897
21898 # Break up conftest.vals because some shells have a limit on
21899 # the size of here documents, and old seds have small limits too.
21900
21901 rm -f conftest.tail
21902 while :
21903 do
21904   ac_lines=`grep -c . conftest.vals`
21905   # grep -c gives empty output for an empty file on some AIX systems.
21906   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21907   # Write a limited-size here document to conftest.frag.
21908   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21909   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21910   echo 'CEOF
21911   sed -f conftest.frag conftest.in > conftest.out
21912   rm -f conftest.in
21913   mv conftest.out conftest.in
21914 ' >> $CONFIG_STATUS
21915   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21916   rm -f conftest.vals
21917   mv conftest.tail conftest.vals
21918 done
21919 rm -f conftest.vals
21920
21921 cat >> $CONFIG_STATUS <<\EOF
21922   rm -f conftest.frag conftest.h
21923   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21924   cat conftest.in >> conftest.h
21925   rm -f conftest.in
21926   if cmp -s $ac_file conftest.h 2>/dev/null; then
21927     echo "$ac_file is unchanged"
21928     rm -f conftest.h
21929   else
21930     # Remove last slash and all that follows it.  Not all systems have dirname.
21931       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21932       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21933       # The file is in a subdirectory.
21934       test ! -d "$ac_dir" && mkdir "$ac_dir"
21935     fi
21936     rm -f $ac_file
21937     mv conftest.h $ac_file
21938   fi
21939 fi; done
21940
21941 EOF
21942
21943 cat >> $CONFIG_STATUS <<EOF
21944 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
21945 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
21946 EOF
21947
21948 cat >> $CONFIG_STATUS <<\EOF
21949 srcdir=$ac_given_srcdir
21950 while test -n "$ac_sources"; do
21951   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21952   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21953
21954   echo "linking $srcdir/$ac_source to $ac_dest"
21955
21956   if test ! -r $srcdir/$ac_source; then
21957     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
21958   fi
21959   rm -f $ac_dest
21960
21961   # Make relative symlinks.
21962   # Remove last slash and all that follows it.  Not all systems have dirname.
21963   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
21964   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
21965     # The dest file is in a subdirectory.
21966     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
21967     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
21968     # A "../" for each directory in $ac_dest_dir_suffix.
21969     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
21970   else
21971     ac_dest_dir_suffix= ac_dots=
21972   fi
21973
21974   case "$srcdir" in
21975   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
21976   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
21977   esac
21978
21979   # Make a symlink if possible; otherwise try a hard link.
21980   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21981     ln $srcdir/$ac_source $ac_dest; then :
21982   else
21983     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
21984   fi
21985 done
21986 EOF
21987 cat >> $CONFIG_STATUS <<EOF
21988
21989 srcdir=${srcdir}
21990 host=${host}
21991 target=${target}
21992 with_multisubdir=${with_multisubdir}
21993 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21994 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21995 glibcpp_basedir=${glibcpp_basedir}
21996 CC="${CC}"
21997 CXX="${CXX}"
21998
21999 EOF
22000 cat >> $CONFIG_STATUS <<\EOF
22001 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22002 if test -n "$CONFIG_FILES"; then
22003   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22004   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22005   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22006 fi
22007 chmod +x mkcheck
22008 chmod +x testsuite_flags
22009
22010 exit 0
22011 EOF
22012 chmod +x $CONFIG_STATUS
22013 rm -fr confdefs* $ac_clean_files
22014 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22015
22016
22017
22018 # Sanity checking & User-visible messages.
22019 # Checks down here, otherwise they get scrolled off before
22020 # the user will notice.
22021
22022 # Trying to get more people to read documentation.  Possibly remove
22023 # check and warn all the time. There is no "informational" AC_MSG_
22024 # macro, so these are going to be printed even when --quiet/--silent
22025 # is given.
22026 if test ! -f stamp-sanity-warned; then
22027   touch stamp-sanity-warned
22028   echo ""
22029   echo "Please make certain that you read the installation information here:"
22030   echo "  faster => ${srcdir}/docs/html/install.html"
22031   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22032   echo ""
22033   echo "and the configuration information here:"
22034   echo "  faster => ${srcdir}/docs/html/configopts.html"
22035   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22036   echo ""
22037   echo "before proceeding with ${_cv_gnu_make_command}."
22038   echo ""
22039 fi