misc-inst.cc: Define unnecessary algorithm instantiations.
[platform/upstream/gcc.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 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
587
588 PACKAGE=libstdc++
589
590 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
591 release_VERSION=3.1.1
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=4:1:0
595
596
597 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
598 # AC 2.5x sets target_alias iff the user specified --target, but we use it
599 # everywhere, so we set it here just to be sure.  In AC 2.13
600 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
601 ac_aux_dir=
602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
603   if test -f $ac_dir/install-sh; then
604     ac_aux_dir=$ac_dir
605     ac_install_sh="$ac_aux_dir/install-sh -c"
606     break
607   elif test -f $ac_dir/install.sh; then
608     ac_aux_dir=$ac_dir
609     ac_install_sh="$ac_aux_dir/install.sh -c"
610     break
611   fi
612 done
613 if test -z "$ac_aux_dir"; then
614   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
615 fi
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619
620
621 # Do some error checking and defaulting for the host and target type.
622 # The inputs are:
623 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
624 #
625 # The rules are:
626 # 1. You are not allowed to specify --host, --target, and nonopt at the
627 #    same time.
628 # 2. Host defaults to nonopt.
629 # 3. If nonopt is not specified, then host defaults to the current host,
630 #    as determined by config.guess.
631 # 4. Target and build default to nonopt.
632 # 5. If nonopt is not specified, then target and build default to host.
633
634 # The aliases save the names the user supplied, while $host etc.
635 # will get canonicalized.
636 case $host---$target---$nonopt in
637 NONE---*---* | *---NONE---* | *---*---NONE) ;;
638 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
639 esac
640
641
642 # Make sure we can run config.sub.
643 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
644 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
645 fi
646
647 echo $ac_n "checking host system type""... $ac_c" 1>&6
648 echo "configure:649: checking host system type" >&5
649
650 host_alias=$host
651 case "$host_alias" in
652 NONE)
653   case $nonopt in
654   NONE)
655     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
656     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
657     fi ;;
658   *) host_alias=$nonopt ;;
659   esac ;;
660 esac
661
662 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
663 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$host" 1>&6
667
668 echo $ac_n "checking target system type""... $ac_c" 1>&6
669 echo "configure:670: checking target system type" >&5
670
671 target_alias=$target
672 case "$target_alias" in
673 NONE)
674   case $nonopt in
675   NONE) target_alias=$host_alias ;;
676   *) target_alias=$nonopt ;;
677   esac ;;
678 esac
679
680 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$target" 1>&6
685
686 echo $ac_n "checking build system type""... $ac_c" 1>&6
687 echo "configure:688: checking build system type" >&5
688
689 build_alias=$build
690 case "$build_alias" in
691 NONE)
692   case $nonopt in
693   NONE) build_alias=$host_alias ;;
694   *) build_alias=$nonopt ;;
695   esac ;;
696 esac
697
698 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
699 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$build" 1>&6
703
704 test "$host_alias" != "$target_alias" &&
705   test "$program_prefix$program_suffix$program_transform_name" = \
706     NONENONEs,x,x, &&
707   program_prefix=${target_alias}-
708
709 target_alias=${target_alias-$target}
710
711
712 # Find a good install program.  We prefer a C program (faster),
713 # so one script is as good as another.  But avoid the broken or
714 # incompatible versions:
715 # SysV /etc/install, /usr/sbin/install
716 # SunOS /usr/etc/install
717 # IRIX /sbin/install
718 # AIX /bin/install
719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
722 # ./install, which can be erroneously created by make from ./install.sh.
723 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
724 echo "configure:725: checking for a BSD compatible install" >&5
725 if test -z "$INSTALL"; then
726 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
727   echo $ac_n "(cached) $ac_c" 1>&6
728 else
729     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
730   for ac_dir in $PATH; do
731     # Account for people who put trailing slashes in PATH elements.
732     case "$ac_dir/" in
733     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
734     *)
735       # OSF1 and SCO ODT 3.0 have their own names for install.
736       # Don't use installbsd from OSF since it installs stuff as root
737       # by default.
738       for ac_prog in ginstall scoinst install; do
739         if test -f $ac_dir/$ac_prog; then
740           if test $ac_prog = install &&
741             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
742             # AIX install.  It has an incompatible calling convention.
743             :
744           else
745             ac_cv_path_install="$ac_dir/$ac_prog -c"
746             break 2
747           fi
748         fi
749       done
750       ;;
751     esac
752   done
753   IFS="$ac_save_IFS"
754
755 fi
756   if test "${ac_cv_path_install+set}" = set; then
757     INSTALL="$ac_cv_path_install"
758   else
759     # As a last resort, use the slow shell script.  We don't cache a
760     # path for INSTALL within a source directory, because that will
761     # break other packages using the cache if that directory is
762     # removed, or if the path is relative.
763     INSTALL="$ac_install_sh"
764   fi
765 fi
766 echo "$ac_t""$INSTALL" 1>&6
767
768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
769 # It thinks the first close brace ends the variable substitution.
770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
771
772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
773
774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
775
776 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
777 echo "configure:778: checking whether build environment is sane" >&5
778 # Just in case
779 sleep 1
780 echo timestamp > conftestfile
781 # Do `set' in a subshell so we don't clobber the current shell's
782 # arguments.  Must try -L first in case configure is actually a
783 # symlink; some systems play weird games with the mod time of symlinks
784 # (eg FreeBSD returns the mod time of the symlink's containing
785 # directory).
786 if (
787    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
788    if test "$*" = "X"; then
789       # -L didn't work.
790       set X `ls -t $srcdir/configure conftestfile`
791    fi
792    if test "$*" != "X $srcdir/configure conftestfile" \
793       && test "$*" != "X conftestfile $srcdir/configure"; then
794
795       # If neither matched, then we have a broken ls.  This can happen
796       # if, for instance, CONFIG_SHELL is bash and it inherits a
797       # broken ls alias from the environment.  This has actually
798       # happened.  Such a system could not be considered "sane".
799       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
800 alias in your environment" 1>&2; exit 1; }
801    fi
802
803    test "$2" = conftestfile
804    )
805 then
806    # Ok.
807    :
808 else
809    { echo "configure: error: newly created file is older than distributed files!
810 Check your system clock" 1>&2; exit 1; }
811 fi
812 rm -f conftest*
813 echo "$ac_t""yes" 1>&6
814 if test "$program_transform_name" = s,x,x,; then
815   program_transform_name=
816 else
817   # Double any \ or $.  echo might interpret backslashes.
818   cat <<\EOF_SED > conftestsed
819 s,\\,\\\\,g; s,\$,$$,g
820 EOF_SED
821   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
822   rm -f conftestsed
823 fi
824 test "$program_prefix" != NONE &&
825   program_transform_name="s,^,${program_prefix},; $program_transform_name"
826 # Use a double $ so make ignores it.
827 test "$program_suffix" != NONE &&
828   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
829
830 # sed with no file args requires a program.
831 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
832
833 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${MAKE-make} sets \${MAKE}" >&5
835 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
836 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
837   echo $ac_n "(cached) $ac_c" 1>&6
838 else
839   cat > conftestmake <<\EOF
840 all:
841         @echo 'ac_maketemp="${MAKE}"'
842 EOF
843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
844 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
845 if test -n "$ac_maketemp"; then
846   eval ac_cv_prog_make_${ac_make}_set=yes
847 else
848   eval ac_cv_prog_make_${ac_make}_set=no
849 fi
850 rm -f conftestmake
851 fi
852 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
853   echo "$ac_t""yes" 1>&6
854   SET_MAKE=
855 else
856   echo "$ac_t""no" 1>&6
857   SET_MAKE="MAKE=${MAKE-make}"
858 fi
859
860
861 PACKAGE=$PACKAGE
862
863 VERSION=$release_VERSION
864
865 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
866   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
867 fi
868 cat >> confdefs.h <<EOF
869 #define PACKAGE "$PACKAGE"
870 EOF
871
872 cat >> confdefs.h <<EOF
873 #define VERSION "$VERSION"
874 EOF
875
876
877
878 missing_dir=`cd $ac_aux_dir && pwd`
879 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
880 echo "configure:881: checking for working aclocal" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf.  Sigh.
884 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
885    ACLOCAL=aclocal
886    echo "$ac_t""found" 1>&6
887 else
888    ACLOCAL="$missing_dir/missing aclocal"
889    echo "$ac_t""missing" 1>&6
890 fi
891
892 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
893 echo "configure:894: checking for working autoconf" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf.  Sigh.
897 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
898    AUTOCONF=autoconf
899    echo "$ac_t""found" 1>&6
900 else
901    AUTOCONF="$missing_dir/missing autoconf"
902    echo "$ac_t""missing" 1>&6
903 fi
904
905 echo $ac_n "checking for working automake""... $ac_c" 1>&6
906 echo "configure:907: checking for working automake" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf.  Sigh.
910 if (automake --version) < /dev/null > /dev/null 2>&1; then
911    AUTOMAKE=automake
912    echo "$ac_t""found" 1>&6
913 else
914    AUTOMAKE="$missing_dir/missing automake"
915    echo "$ac_t""missing" 1>&6
916 fi
917
918 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
919 echo "configure:920: checking for working autoheader" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf.  Sigh.
923 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
924    AUTOHEADER=autoheader
925    echo "$ac_t""found" 1>&6
926 else
927    AUTOHEADER="$missing_dir/missing autoheader"
928    echo "$ac_t""missing" 1>&6
929 fi
930
931 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
932 echo "configure:933: checking for working makeinfo" >&5
933 # Run test in a subshell; some versions of sh will print an error if
934 # an executable is not found, even if stderr is redirected.
935 # Redirect stdin to placate older versions of autoconf.  Sigh.
936 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
937    MAKEINFO=makeinfo
938    echo "$ac_t""found" 1>&6
939 else
940    MAKEINFO="$missing_dir/missing makeinfo"
941    echo "$ac_t""missing" 1>&6
942 fi
943
944
945
946
947
948
949 # Runs configure.host and configure.target, as well as finds CC, CXX
950 # and assorted other critical bits.  Have to run this before the
951 # GLIBCPP_ENABLE_* macros below.
952 if test $host != $build; then
953   ac_tool_prefix=${host_alias}-
954 else
955   ac_tool_prefix=
956 fi
957
958 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
959 echo "configure:960: checking for Cygwin environment" >&5
960 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
961   echo $ac_n "(cached) $ac_c" 1>&6
962 else
963   cat > conftest.$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
966
967 int main() {
968
969 #ifndef __CYGWIN__
970 #define __CYGWIN__ __CYGWIN32__
971 #endif
972 return __CYGWIN__;
973 ; return 0; }
974 EOF
975 if { (eval echo configure:976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
976   rm -rf conftest*
977   ac_cv_cygwin=yes
978 else
979   echo "configure: failed program was:" >&5
980   cat conftest.$ac_ext >&5
981   rm -rf conftest*
982   ac_cv_cygwin=no
983 fi
984 rm -f conftest*
985 rm -f conftest*
986 fi
987
988 echo "$ac_t""$ac_cv_cygwin" 1>&6
989 CYGWIN=
990 test "$ac_cv_cygwin" = yes && CYGWIN=yes
991 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
992 echo "configure:993: checking for mingw32 environment" >&5
993 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
994   echo $ac_n "(cached) $ac_c" 1>&6
995 else
996   cat > conftest.$ac_ext <<EOF
997 #line 998 "configure"
998 #include "confdefs.h"
999
1000 int main() {
1001 return __MINGW32__;
1002 ; return 0; }
1003 EOF
1004 if { (eval echo configure:1005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1005   rm -rf conftest*
1006   ac_cv_mingw32=yes
1007 else
1008   echo "configure: failed program was:" >&5
1009   cat conftest.$ac_ext >&5
1010   rm -rf conftest*
1011   ac_cv_mingw32=no
1012 fi
1013 rm -f conftest*
1014 rm -f conftest*
1015 fi
1016
1017 echo "$ac_t""$ac_cv_mingw32" 1>&6
1018 MINGW32=
1019 test "$ac_cv_mingw32" = yes && MINGW32=yes
1020
1021     # Check whether --enable-multilib or --disable-multilib was given.
1022 if test "${enable_multilib+set}" = set; then
1023   enableval="$enable_multilib"
1024   case "${enableval}" in
1025     yes) multilib=yes ;;
1026     no)  multilib=no ;;
1027     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1028    esac
1029 else
1030   multilib=yes
1031 fi
1032
1033   # When building with srcdir == objdir, links to the source files will
1034   # be created in directories within the target_subdir.  We have to
1035   # adjust toplevel_srcdir accordingly, so that configure finds
1036   # install-sh and other auxiliary files that live in the top-level
1037   # source directory.
1038   if test "${srcdir}" = "."; then
1039     if test -z "${with_target_subdir}"; then
1040       toprel=".."
1041     else
1042       if test "${with_target_subdir}" != "."; then
1043         toprel="${with_multisrctop}../.."
1044       else
1045         toprel="${with_multisrctop}.."
1046       fi
1047     fi
1048   else
1049     toprel=".."
1050   fi
1051   ac_aux_dir=
1052 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1053   if test -f $ac_dir/install-sh; then
1054     ac_aux_dir=$ac_dir
1055     ac_install_sh="$ac_aux_dir/install-sh -c"
1056     break
1057   elif test -f $ac_dir/install.sh; then
1058     ac_aux_dir=$ac_dir
1059     ac_install_sh="$ac_aux_dir/install.sh -c"
1060     break
1061   fi
1062 done
1063 if test -z "$ac_aux_dir"; then
1064   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1065 fi
1066 ac_config_guess=$ac_aux_dir/config.guess
1067 ac_config_sub=$ac_aux_dir/config.sub
1068 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1069
1070   toplevel_srcdir=\${top_srcdir}/$toprel
1071   
1072
1073   # Export build and source directories.
1074   # These need to be absolute paths, yet at the same time need to
1075   # canonicalize only relative paths, because then amd will not unmount
1076   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1077   glibcpp_builddir=`${PWDCMD-pwd}`
1078   case $srcdir in
1079   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1080   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1081   esac
1082   
1083   
1084
1085     
1086
1087   for ac_prog in gawk mawk nawk awk
1088 do
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1094   echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096   if test -n "$AWK"; then
1097   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1098 else
1099   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1100   ac_dummy="$PATH"
1101   for ac_dir in $ac_dummy; do
1102     test -z "$ac_dir" && ac_dir=.
1103     if test -f $ac_dir/$ac_word; then
1104       ac_cv_prog_AWK="$ac_prog"
1105       break
1106     fi
1107   done
1108   IFS="$ac_save_ifs"
1109 fi
1110 fi
1111 AWK="$ac_cv_prog_AWK"
1112 if test -n "$AWK"; then
1113   echo "$ac_t""$AWK" 1>&6
1114 else
1115   echo "$ac_t""no" 1>&6
1116 fi
1117
1118 test -n "$AWK" && break
1119 done
1120
1121   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1122   # be 'cp -p' if linking isn't available.
1123   #ac_cv_prog_LN_S='cp -p'
1124   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether ln -s works" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1127   echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129   rm -f conftestdata
1130 if ln -s X conftestdata 2>/dev/null
1131 then
1132   rm -f conftestdata
1133   ac_cv_prog_LN_S="ln -s"
1134 else
1135   ac_cv_prog_LN_S=ln
1136 fi
1137 fi
1138 LN_S="$ac_cv_prog_LN_S"
1139 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1140   echo "$ac_t""yes" 1>&6
1141 else
1142   echo "$ac_t""no" 1>&6
1143 fi
1144
1145
1146   # We use these options to decide which functions to include.
1147   # Check whether --with-target-subdir or --without-target-subdir was given.
1148 if test "${with_target_subdir+set}" = set; then
1149   withval="$with_target_subdir"
1150   :
1151 fi
1152
1153   # Check whether --with-cross-host or --without-cross-host was given.
1154 if test "${with_cross_host+set}" = set; then
1155   withval="$with_cross_host"
1156   :
1157 fi
1158
1159
1160   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1161   
1162
1163   # Never versions of autoconf add an underscore to these functions.
1164   # Prevent future problems ...
1165   
1166   
1167   
1168   
1169
1170   # AC_PROG_CC
1171   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1172   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1173   # are probably using a cross compiler, which will not be able to fully
1174   # link an executable.  This is addressed in later versions of autoconf.
1175
1176   
1177
1178       
1179   # Extract the first word of "gcc", so it can be a program name with args.
1180 set dummy gcc; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186   if test -n "$CC"; then
1187   ac_cv_prog_CC="$CC" # Let the user override the test.
1188 else
1189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1190   ac_dummy="$PATH"
1191   for ac_dir in $ac_dummy; do
1192     test -z "$ac_dir" && ac_dir=.
1193     if test -f $ac_dir/$ac_word; then
1194       ac_cv_prog_CC="gcc"
1195       break
1196     fi
1197   done
1198   IFS="$ac_save_ifs"
1199 fi
1200 fi
1201 CC="$ac_cv_prog_CC"
1202 if test -n "$CC"; then
1203   echo "$ac_t""$CC" 1>&6
1204 else
1205   echo "$ac_t""no" 1>&6
1206 fi
1207
1208   if test -z "$CC"; then
1209     # Extract the first word of "cc", so it can be a program name with args.
1210 set dummy cc; ac_word=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1214   echo $ac_n "(cached) $ac_c" 1>&6
1215 else
1216   if test -n "$CC"; then
1217   ac_cv_prog_CC="$CC" # Let the user override the test.
1218 else
1219   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1220   ac_prog_rejected=no
1221   ac_dummy="$PATH"
1222   for ac_dir in $ac_dummy; do
1223     test -z "$ac_dir" && ac_dir=.
1224     if test -f $ac_dir/$ac_word; then
1225       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1226         ac_prog_rejected=yes
1227         continue
1228       fi
1229       ac_cv_prog_CC="cc"
1230       break
1231     fi
1232   done
1233   IFS="$ac_save_ifs"
1234 if test $ac_prog_rejected = yes; then
1235   # We found a bogon in the path, so make sure we never use it.
1236   set dummy $ac_cv_prog_CC
1237   shift
1238   if test $# -gt 0; then
1239     # We chose a different compiler from the bogus one.
1240     # However, it has the same basename, so the bogon will be chosen
1241     # first if we set CC to just the basename; use the full file name.
1242     shift
1243     set dummy "$ac_dir/$ac_word" "$@"
1244     shift
1245     ac_cv_prog_CC="$@"
1246   fi
1247 fi
1248 fi
1249 fi
1250 CC="$ac_cv_prog_CC"
1251 if test -n "$CC"; then
1252   echo "$ac_t""$CC" 1>&6
1253 else
1254   echo "$ac_t""no" 1>&6
1255 fi
1256
1257     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1258   fi
1259
1260   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether we are using GNU C" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1263   echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1265   cat > conftest.c <<EOF
1266 #ifdef __GNUC__
1267   yes;
1268 #endif
1269 EOF
1270 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1271   ac_cv_prog_gcc=yes
1272 else
1273   ac_cv_prog_gcc=no
1274 fi
1275 fi
1276
1277 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1278
1279   if test $ac_cv_prog_gcc = yes; then
1280     GCC=yes
1281           ac_test_CFLAGS="${CFLAGS+set}"
1282     ac_save_CFLAGS="$CFLAGS"
1283     CFLAGS=
1284     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ${CC-cc} accepts -g" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1287   echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289   echo 'void f(){}' > conftest.c
1290 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1291   ac_cv_prog_cc_g=yes
1292 else
1293   ac_cv_prog_cc_g=no
1294 fi
1295 rm -f conftest*
1296
1297 fi
1298
1299 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1300     if test "$ac_test_CFLAGS" = set; then
1301       CFLAGS="$ac_save_CFLAGS"
1302     elif test $ac_cv_prog_cc_g = yes; then
1303       CFLAGS="-g -O2"
1304     else
1305       CFLAGS="-O2"
1306     fi
1307   else
1308     GCC=
1309     test "${CFLAGS+set}" = set || CFLAGS="-g"
1310   fi
1311   
1312
1313   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1314   # will try to link in libstdc++.
1315   
1316
1317       
1318   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1319   # flags that come in CXX while configuring libstdc++.  They're different
1320   # from those used for all other target libraries.  If CXX is set in
1321   # the environment, respect that here.
1322   glibcpp_CXX=$CXX
1323   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1324 do
1325 # Extract the first word of "$ac_prog", so it can be a program name with args.
1326 set dummy $ac_prog; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1330   echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332   if test -n "$glibcpp_CXX"; then
1333   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1334 else
1335   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1336   ac_dummy="$PATH"
1337   for ac_dir in $ac_dummy; do
1338     test -z "$ac_dir" && ac_dir=.
1339     if test -f $ac_dir/$ac_word; then
1340       ac_cv_prog_glibcpp_CXX="$ac_prog"
1341       break
1342     fi
1343   done
1344   IFS="$ac_save_ifs"
1345 fi
1346 fi
1347 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1348 if test -n "$glibcpp_CXX"; then
1349   echo "$ac_t""$glibcpp_CXX" 1>&6
1350 else
1351   echo "$ac_t""no" 1>&6
1352 fi
1353
1354 test -n "$glibcpp_CXX" && break
1355 done
1356 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1357
1358   
1359   CXX=$glibcpp_CXX
1360   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1361
1362   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1363 echo "configure:1364: checking whether we are using GNU C++" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1365   echo $ac_n "(cached) $ac_c" 1>&6
1366 else
1367   cat > conftest.C <<EOF
1368 #ifdef __GNUC__
1369   yes;
1370 #endif
1371 EOF
1372 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1373   ac_cv_prog_gxx=yes
1374 else
1375   ac_cv_prog_gxx=no
1376 fi
1377 fi
1378
1379 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1380
1381   if test $ac_cv_prog_gxx = yes; then
1382     GXX=yes
1383                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1384     ac_save_CXXFLAGS="$CXXFLAGS"
1385     CXXFLAGS=
1386     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether ${CXX-g++} accepts -g" >&5
1388 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1389   echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391   echo 'void f(){}' > conftest.cc
1392 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1393   ac_cv_prog_cxx_g=yes
1394 else
1395   ac_cv_prog_cxx_g=no
1396 fi
1397 rm -f conftest*
1398
1399 fi
1400
1401 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1402     if test "$ac_test_CXXFLAGS" = set; then
1403       CXXFLAGS="$ac_save_CXXFLAGS"
1404     elif test $ac_cv_prog_cxx_g = yes; then
1405       CXXFLAGS="-g -O2"
1406     else
1407       CXXFLAGS="-O2"
1408     fi
1409   else
1410     GXX=
1411     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1412   fi
1413   
1414
1415   # For some reason, gettext needs this.
1416   
1417         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1418 echo "configure:1419: checking for strerror in -lcposix" >&5
1419 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421   echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423   ac_save_LIBS="$LIBS"
1424 LIBS="-lcposix  $LIBS"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error.  */
1429 /* We use char because int might match the return type of a gcc2
1430     builtin and then its argument prototype would still apply.  */
1431 char strerror();
1432
1433 int main() {
1434 strerror()
1435 ; return 0; }
1436 EOF
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438   rm -rf conftest*
1439   eval "ac_cv_lib_$ac_lib_var=yes"
1440 else
1441   echo "configure: failed program was:" >&5
1442   cat conftest.$ac_ext >&5
1443   rm -rf conftest*
1444   eval "ac_cv_lib_$ac_lib_var=no"
1445 fi
1446 rm -f conftest*
1447 LIBS="$ac_save_LIBS"
1448
1449 fi
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451   echo "$ac_t""yes" 1>&6
1452   LIBS="$LIBS -lcposix"
1453 else
1454   echo "$ac_t""no" 1>&6
1455 fi
1456
1457   
1458
1459
1460   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1461 set dummy ${ac_tool_prefix}as; ac_word=$2
1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1463 echo "configure:1464: checking for $ac_word" >&5
1464 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1465   echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467   if test -n "$AS"; then
1468   ac_cv_prog_AS="$AS" # Let the user override the test.
1469 else
1470   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1471   ac_dummy="$PATH"
1472   for ac_dir in $ac_dummy; do
1473     test -z "$ac_dir" && ac_dir=.
1474     if test -f $ac_dir/$ac_word; then
1475       ac_cv_prog_AS="${ac_tool_prefix}as"
1476       break
1477     fi
1478   done
1479   IFS="$ac_save_ifs"
1480   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1481 fi
1482 fi
1483 AS="$ac_cv_prog_AS"
1484 if test -n "$AS"; then
1485   echo "$ac_t""$AS" 1>&6
1486 else
1487   echo "$ac_t""no" 1>&6
1488 fi
1489
1490
1491
1492   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}ar; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1497   echo $ac_n "(cached) $ac_c" 1>&6
1498 else
1499   if test -n "$AR"; then
1500   ac_cv_prog_AR="$AR" # Let the user override the test.
1501 else
1502   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1503   ac_dummy="$PATH"
1504   for ac_dir in $ac_dummy; do
1505     test -z "$ac_dir" && ac_dir=.
1506     if test -f $ac_dir/$ac_word; then
1507       ac_cv_prog_AR="${ac_tool_prefix}ar"
1508       break
1509     fi
1510   done
1511   IFS="$ac_save_ifs"
1512   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1513 fi
1514 fi
1515 AR="$ac_cv_prog_AR"
1516 if test -n "$AR"; then
1517   echo "$ac_t""$AR" 1>&6
1518 else
1519   echo "$ac_t""no" 1>&6
1520 fi
1521
1522
1523
1524   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_word" >&5
1528 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1529   echo $ac_n "(cached) $ac_c" 1>&6
1530 else
1531   if test -n "$RANLIB"; then
1532   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1533 else
1534   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1535   ac_dummy="$PATH"
1536   for ac_dir in $ac_dummy; do
1537     test -z "$ac_dir" && ac_dir=.
1538     if test -f $ac_dir/$ac_word; then
1539       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1540       break
1541     fi
1542   done
1543   IFS="$ac_save_ifs"
1544 fi
1545 fi
1546 RANLIB="$ac_cv_prog_RANLIB"
1547 if test -n "$RANLIB"; then
1548   echo "$ac_t""$RANLIB" 1>&6
1549 else
1550   echo "$ac_t""no" 1>&6
1551 fi
1552
1553
1554 if test -z "$ac_cv_prog_RANLIB"; then
1555 if test -n "$ac_tool_prefix"; then
1556   # Extract the first word of "ranlib", so it can be a program name with args.
1557 set dummy ranlib; ac_word=$2
1558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559 echo "configure:1560: checking for $ac_word" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1561   echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563   if test -n "$RANLIB"; then
1564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1565 else
1566   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1567   ac_dummy="$PATH"
1568   for ac_dir in $ac_dummy; do
1569     test -z "$ac_dir" && ac_dir=.
1570     if test -f $ac_dir/$ac_word; then
1571       ac_cv_prog_RANLIB="ranlib"
1572       break
1573     fi
1574   done
1575   IFS="$ac_save_ifs"
1576   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1577 fi
1578 fi
1579 RANLIB="$ac_cv_prog_RANLIB"
1580 if test -n "$RANLIB"; then
1581   echo "$ac_t""$RANLIB" 1>&6
1582 else
1583   echo "$ac_t""no" 1>&6
1584 fi
1585
1586 else
1587   RANLIB="ranlib-not-found-in-path-error"
1588 fi
1589 fi
1590
1591   # Find a good install program.  We prefer a C program (faster),
1592 # so one script is as good as another.  But avoid the broken or
1593 # incompatible versions:
1594 # SysV /etc/install, /usr/sbin/install
1595 # SunOS /usr/etc/install
1596 # IRIX /sbin/install
1597 # AIX /bin/install
1598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1601 # ./install, which can be erroneously created by make from ./install.sh.
1602 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1603 echo "configure:1604: checking for a BSD compatible install" >&5
1604 if test -z "$INSTALL"; then
1605 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1606   echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1609   for ac_dir in $PATH; do
1610     # Account for people who put trailing slashes in PATH elements.
1611     case "$ac_dir/" in
1612     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1613     *)
1614       # OSF1 and SCO ODT 3.0 have their own names for install.
1615       # Don't use installbsd from OSF since it installs stuff as root
1616       # by default.
1617       for ac_prog in ginstall scoinst install; do
1618         if test -f $ac_dir/$ac_prog; then
1619           if test $ac_prog = install &&
1620             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1621             # AIX install.  It has an incompatible calling convention.
1622             :
1623           else
1624             ac_cv_path_install="$ac_dir/$ac_prog -c"
1625             break 2
1626           fi
1627         fi
1628       done
1629       ;;
1630     esac
1631   done
1632   IFS="$ac_save_IFS"
1633
1634 fi
1635   if test "${ac_cv_path_install+set}" = set; then
1636     INSTALL="$ac_cv_path_install"
1637   else
1638     # As a last resort, use the slow shell script.  We don't cache a
1639     # path for INSTALL within a source directory, because that will
1640     # break other packages using the cache if that directory is
1641     # removed, or if the path is relative.
1642     INSTALL="$ac_install_sh"
1643   fi
1644 fi
1645 echo "$ac_t""$INSTALL" 1>&6
1646
1647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1648 # It thinks the first close brace ends the variable substitution.
1649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1650
1651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1652
1653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1654
1655
1656   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1657 echo "configure:1658: checking whether to enable maintainer-specific portions of Makefiles" >&5
1658     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1659 if test "${enable_maintainer_mode+set}" = set; then
1660   enableval="$enable_maintainer_mode"
1661   USE_MAINTAINER_MODE=$enableval
1662 else
1663   USE_MAINTAINER_MODE=no
1664 fi
1665
1666   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1667   
1668
1669 if test $USE_MAINTAINER_MODE = yes; then
1670   MAINTAINER_MODE_TRUE=
1671   MAINTAINER_MODE_FALSE='#'
1672 else
1673   MAINTAINER_MODE_TRUE='#'
1674   MAINTAINER_MODE_FALSE=
1675 fi
1676   MAINT=$MAINTAINER_MODE_TRUE
1677   
1678
1679
1680   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1681   # at least currently, we never actually build a program, so we never
1682   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1683   # fails, because we are probably configuring with a cross compiler
1684   # which can't create executables.  So we include AC_EXEEXT to keep
1685   # automake happy, but we don't execute it, since we don't care about
1686   # the result.
1687   if false; then
1688     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1689     # to nothing, so nothing would remain between `then' and `fi' if it
1690     # were not for the `:' below.
1691     :
1692     
1693
1694 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1695 echo "configure:1696: checking for executable suffix" >&5
1696 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1697   echo $ac_n "(cached) $ac_c" 1>&6
1698 else
1699   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1700   ac_cv_exeext=.exe
1701 else
1702   rm -f conftest*
1703   echo 'int main () { return 0; }' > conftest.$ac_ext
1704   ac_cv_exeext=
1705   if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1706     for file in conftest.*; do
1707       case $file in
1708       *.c | *.o | *.obj) ;;
1709       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1710       esac
1711     done
1712   else
1713     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1714   fi
1715   rm -f conftest*
1716   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1717 fi
1718 fi
1719
1720 EXEEXT=""
1721 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1722 echo "$ac_t""${ac_cv_exeext}" 1>&6
1723 ac_exeext=$EXEEXT
1724
1725   fi
1726
1727   . ${glibcpp_basedir}/configure.host
1728
1729   case ${glibcpp_basedir} in
1730     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1731     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1732   esac
1733
1734   # This does for the target what configure.host does for the host.  In
1735   # addition to possibly modifying the same flags, it also sets up symlinks.
1736   
1737     . ${glibcpp_basedir}/configure.target
1738     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1739     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1740
1741
1742
1743
1744
1745 # Check whether --enable-shared or --disable-shared was given.
1746 if test "${enable_shared+set}" = set; then
1747   enableval="$enable_shared"
1748   p=${PACKAGE-default}
1749 case $enableval in
1750 yes) enable_shared=yes ;;
1751 no) enable_shared=no ;;
1752 *)
1753   enable_shared=no
1754   # Look at the argument we got.  We use all the common list separators.
1755   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1756   for pkg in $enableval; do
1757     if test "X$pkg" = "X$p"; then
1758       enable_shared=yes
1759     fi
1760   done
1761   IFS="$ac_save_ifs"
1762   ;;
1763 esac
1764 else
1765   enable_shared=yes
1766 fi
1767
1768 # Check whether --enable-static or --disable-static was given.
1769 if test "${enable_static+set}" = set; then
1770   enableval="$enable_static"
1771   p=${PACKAGE-default}
1772 case $enableval in
1773 yes) enable_static=yes ;;
1774 no) enable_static=no ;;
1775 *)
1776   enable_static=no
1777   # Look at the argument we got.  We use all the common list separators.
1778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1779   for pkg in $enableval; do
1780     if test "X$pkg" = "X$p"; then
1781       enable_static=yes
1782     fi
1783   done
1784   IFS="$ac_save_ifs"
1785   ;;
1786 esac
1787 else
1788   enable_static=yes
1789 fi
1790
1791 # Check whether --enable-fast-install or --disable-fast-install was given.
1792 if test "${enable_fast_install+set}" = set; then
1793   enableval="$enable_fast_install"
1794   p=${PACKAGE-default}
1795 case $enableval in
1796 yes) enable_fast_install=yes ;;
1797 no) enable_fast_install=no ;;
1798 *)
1799   enable_fast_install=no
1800   # Look at the argument we got.  We use all the common list separators.
1801   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1802   for pkg in $enableval; do
1803     if test "X$pkg" = "X$p"; then
1804       enable_fast_install=yes
1805     fi
1806   done
1807   IFS="$ac_save_ifs"
1808   ;;
1809 esac
1810 else
1811   enable_fast_install=yes
1812 fi
1813
1814 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1815 if test "${with_gnu_ld+set}" = set; then
1816   withval="$with_gnu_ld"
1817   test "$withval" = no || with_gnu_ld=yes
1818 else
1819   with_gnu_ld=no
1820 fi
1821
1822 ac_prog=ld
1823 if test "$GCC" = yes; then
1824   # Check if gcc -print-prog-name=ld gives a path.
1825   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1826 echo "configure:1827: checking for ld used by GCC" >&5
1827   case $host in
1828   *-*-mingw*)
1829     # gcc leaves a trailing carriage return which upsets mingw
1830     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1831   *)
1832     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1833   esac
1834   case $ac_prog in
1835     # Accept absolute paths.
1836     [\\/]* | [A-Za-z]:[\\/]*)
1837       re_direlt='/[^/][^/]*/\.\./'
1838       # Canonicalize the path of ld
1839       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1840       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1841         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1842       done
1843       test -z "$LD" && LD="$ac_prog"
1844       ;;
1845   "")
1846     # If it fails, then pretend we aren't using GCC.
1847     ac_prog=ld
1848     ;;
1849   *)
1850     # If it is relative, then search for the first ld in PATH.
1851     with_gnu_ld=unknown
1852     ;;
1853   esac
1854 elif test "$with_gnu_ld" = yes; then
1855   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1856 echo "configure:1857: checking for GNU ld" >&5
1857 else
1858   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1859 echo "configure:1860: checking for non-GNU ld" >&5
1860 fi
1861 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1862   echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864   if test -z "$LD"; then
1865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866   for ac_dir in $PATH; do
1867     test -z "$ac_dir" && ac_dir=.
1868     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1869       lt_cv_path_LD="$ac_dir/$ac_prog"
1870       # Check to see if the program is GNU ld.  I'd rather use --version,
1871       # but apparently some GNU ld's only accept -v.
1872       # Break only if it was the GNU/non-GNU ld that we prefer.
1873       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1874         test "$with_gnu_ld" != no && break
1875       else
1876         test "$with_gnu_ld" != yes && break
1877       fi
1878     fi
1879   done
1880   IFS="$ac_save_ifs"
1881 else
1882   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1883 fi
1884 fi
1885
1886 LD="$lt_cv_path_LD"
1887 if test -n "$LD"; then
1888   echo "$ac_t""$LD" 1>&6
1889 else
1890   echo "$ac_t""no" 1>&6
1891 fi
1892 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1893 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1894 echo "configure:1895: checking if the linker ($LD) is GNU ld" >&5
1895 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1896   echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1899 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1900   lt_cv_prog_gnu_ld=yes
1901 else
1902   lt_cv_prog_gnu_ld=no
1903 fi
1904 fi
1905
1906 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1907 with_gnu_ld=$lt_cv_prog_gnu_ld
1908
1909
1910 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $LD option to reload object files" >&5
1912 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1913   echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915   lt_cv_ld_reload_flag='-r'
1916 fi
1917
1918 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1919 reload_flag=$lt_cv_ld_reload_flag
1920 test -n "$reload_flag" && reload_flag=" $reload_flag"
1921
1922 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1923 echo "configure:1924: checking for BSD-compatible nm" >&5
1924 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1925   echo $ac_n "(cached) $ac_c" 1>&6
1926 else
1927   if test -n "$NM"; then
1928   # Let the user override the test.
1929   lt_cv_path_NM="$NM"
1930 else
1931   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1932   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1933     test -z "$ac_dir" && ac_dir=.
1934     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1935     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1936       # Check to see if the nm accepts a BSD-compat flag.
1937       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1938       #   nm: unknown option "B" ignored
1939       # Tru64's nm complains that /dev/null is an invalid object file
1940       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1941         lt_cv_path_NM="$tmp_nm -B"
1942         break
1943       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1944         lt_cv_path_NM="$tmp_nm -p"
1945         break
1946       else
1947         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1948         continue # so that we can try to find one that supports BSD flags
1949       fi
1950     fi
1951   done
1952   IFS="$ac_save_ifs"
1953   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1954 fi
1955 fi
1956
1957 NM="$lt_cv_path_NM"
1958 echo "$ac_t""$NM" 1>&6
1959
1960 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1961 echo "configure:1962: checking how to recognise dependant libraries" >&5
1962 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1963   echo $ac_n "(cached) $ac_c" 1>&6
1964 else
1965   lt_cv_file_magic_cmd='$MAGIC_CMD'
1966 lt_cv_file_magic_test_file=
1967 lt_cv_deplibs_check_method='unknown'
1968 # Need to set the preceding variable on all platforms that support
1969 # interlibrary dependencies.
1970 # 'none' -- dependencies not supported.
1971 # `unknown' -- same as none, but documents that we really don't know.
1972 # 'pass_all' -- all dependencies passed with no checks.
1973 # 'test_compile' -- check by making test program.
1974 # 'file_magic [regex]' -- check by looking for files in library path
1975 # which responds to the $file_magic_cmd with a given egrep regex.
1976 # If you have `file' or equivalent on your system and you're not sure
1977 # whether `pass_all' will *always* work, you probably want this one.
1978
1979 case $host_os in
1980 aix*)
1981   lt_cv_deplibs_check_method=pass_all
1982   ;;
1983
1984 beos*)
1985   lt_cv_deplibs_check_method=pass_all
1986   ;;
1987
1988 bsdi4*)
1989   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1990   lt_cv_file_magic_cmd='/usr/bin/file -L'
1991   lt_cv_file_magic_test_file=/shlib/libc.so
1992   ;;
1993
1994 cygwin* | mingw* |pw32*)
1995   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1996   lt_cv_file_magic_cmd='$OBJDUMP -f'
1997   ;;
1998
1999 darwin* | rhapsody*)
2000   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2001   lt_cv_file_magic_cmd='/usr/bin/file -L'
2002   case "$host_os" in
2003   rhapsody* | darwin1.012)
2004     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2005     ;;
2006   *) # Darwin 1.3 on
2007     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2008     ;;
2009   esac
2010   ;;
2011
2012 freebsd* )
2013   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2014     case $host_cpu in
2015     i*86 )
2016       # Not sure whether the presence of OpenBSD here was a mistake.
2017       # Let's accept both of them until this is cleared up.
2018       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2019       lt_cv_file_magic_cmd=/usr/bin/file
2020       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2021       ;;
2022     esac
2023   else
2024     lt_cv_deplibs_check_method=pass_all
2025   fi
2026   ;;
2027
2028 gnu*)
2029   lt_cv_deplibs_check_method=pass_all
2030   ;;
2031
2032 hpux10.20*|hpux11*)
2033   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2034   lt_cv_file_magic_cmd=/usr/bin/file
2035   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2036   ;;
2037
2038 irix5* | irix6*)
2039   case $host_os in
2040   irix5*)
2041     # this will be overridden with pass_all, but let us keep it just in case
2042     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2043     ;;
2044   *)
2045     case $LD in
2046     *-32|*"-32 ") libmagic=32-bit;;
2047     *-n32|*"-n32 ") libmagic=N32;;
2048     *-64|*"-64 ") libmagic=64-bit;;
2049     *) libmagic=never-match;;
2050     esac
2051     # this will be overridden with pass_all, but let us keep it just in case
2052     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2053     ;;
2054   esac
2055   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2056   lt_cv_deplibs_check_method=pass_all
2057   ;;
2058
2059 # This must be Linux ELF.
2060 linux-gnu*)
2061   case $host_cpu in
2062   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2063     lt_cv_deplibs_check_method=pass_all ;;
2064   *)
2065     # glibc up to 2.1.1 does not perform some relocations on ARM
2066     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2067   esac
2068   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2069   ;;
2070
2071 netbsd*)
2072   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2073     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2074   else
2075     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2076   fi
2077   ;;
2078
2079 newsos6)
2080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2081   lt_cv_file_magic_cmd=/usr/bin/file
2082   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2083   ;;
2084
2085 osf3* | osf4* | osf5*)
2086   # this will be overridden with pass_all, but let us keep it just in case
2087   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2088   lt_cv_file_magic_test_file=/shlib/libc.so
2089   lt_cv_deplibs_check_method=pass_all
2090   ;;
2091
2092 sco3.2v5*)
2093   lt_cv_deplibs_check_method=pass_all
2094   ;;
2095
2096 solaris*)
2097   lt_cv_deplibs_check_method=pass_all
2098   lt_cv_file_magic_test_file=/lib/libc.so
2099   ;;
2100
2101 sysv5uw[78]* | sysv4*uw2*)
2102   lt_cv_deplibs_check_method=pass_all
2103   ;;
2104
2105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2106   case $host_vendor in
2107   ncr)
2108     lt_cv_deplibs_check_method=pass_all
2109     ;;
2110   motorola)
2111     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2112     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2113     ;;
2114   esac
2115   ;;
2116 esac
2117
2118 fi
2119
2120 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2121 file_magic_cmd=$lt_cv_file_magic_cmd
2122 deplibs_check_method=$lt_cv_deplibs_check_method
2123
2124 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2125 echo "configure:2126: checking for object suffix" >&5
2126 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2127   echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129   rm -f conftest*
2130 echo 'int i = 1;' > conftest.$ac_ext
2131 if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132   for ac_file in conftest.*; do
2133     case $ac_file in
2134     *.c) ;;
2135     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2136     esac
2137   done
2138 else
2139   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2140 fi
2141 rm -f conftest*
2142 fi
2143
2144 echo "$ac_t""$ac_cv_objext" 1>&6
2145 OBJEXT=$ac_cv_objext
2146 ac_objext=$ac_cv_objext
2147
2148 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2149
2150 # Only perform the check for file, if the check method requires it
2151 case $deplibs_check_method in
2152 file_magic*)
2153   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2154     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2155 echo "configure:2156: checking for ${ac_tool_prefix}file" >&5
2156 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2157   echo $ac_n "(cached) $ac_c" 1>&6
2158 else
2159   case $MAGIC_CMD in
2160   /*)
2161   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2162   ;;
2163   ?:/*)
2164   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2165   ;;
2166   *)
2167   ac_save_MAGIC_CMD="$MAGIC_CMD"
2168   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2169   ac_dummy="/usr/bin:$PATH"
2170   for ac_dir in $ac_dummy; do
2171     test -z "$ac_dir" && ac_dir=.
2172     if test -f $ac_dir/${ac_tool_prefix}file; then
2173       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2174       if test -n "$file_magic_test_file"; then
2175         case $deplibs_check_method in
2176         "file_magic "*)
2177           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2178           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2179           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2180             egrep "$file_magic_regex" > /dev/null; then
2181             :
2182           else
2183             cat <<EOF 1>&2
2184
2185 *** Warning: the command libtool uses to detect shared libraries,
2186 *** $file_magic_cmd, produces output that libtool cannot recognize.
2187 *** The result is that libtool may fail to recognize shared libraries
2188 *** as such.  This will affect the creation of libtool libraries that
2189 *** depend on shared libraries, but programs linked with such libtool
2190 *** libraries will work regardless of this problem.  Nevertheless, you
2191 *** may want to report the problem to your system manager and/or to
2192 *** bug-libtool@gnu.org
2193
2194 EOF
2195           fi ;;
2196         esac
2197       fi
2198       break
2199     fi
2200   done
2201   IFS="$ac_save_ifs"
2202   MAGIC_CMD="$ac_save_MAGIC_CMD"
2203   ;;
2204 esac
2205 fi
2206
2207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2208 if test -n "$MAGIC_CMD"; then
2209   echo "$ac_t""$MAGIC_CMD" 1>&6
2210 else
2211   echo "$ac_t""no" 1>&6
2212 fi
2213
2214 if test -z "$lt_cv_path_MAGIC_CMD"; then
2215   if test -n "$ac_tool_prefix"; then
2216     echo $ac_n "checking for file""... $ac_c" 1>&6
2217 echo "configure:2218: checking for file" >&5
2218 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2219   echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221   case $MAGIC_CMD in
2222   /*)
2223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2224   ;;
2225   ?:/*)
2226   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2227   ;;
2228   *)
2229   ac_save_MAGIC_CMD="$MAGIC_CMD"
2230   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2231   ac_dummy="/usr/bin:$PATH"
2232   for ac_dir in $ac_dummy; do
2233     test -z "$ac_dir" && ac_dir=.
2234     if test -f $ac_dir/file; then
2235       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2236       if test -n "$file_magic_test_file"; then
2237         case $deplibs_check_method in
2238         "file_magic "*)
2239           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2242             egrep "$file_magic_regex" > /dev/null; then
2243             :
2244           else
2245             cat <<EOF 1>&2
2246
2247 *** Warning: the command libtool uses to detect shared libraries,
2248 *** $file_magic_cmd, produces output that libtool cannot recognize.
2249 *** The result is that libtool may fail to recognize shared libraries
2250 *** as such.  This will affect the creation of libtool libraries that
2251 *** depend on shared libraries, but programs linked with such libtool
2252 *** libraries will work regardless of this problem.  Nevertheless, you
2253 *** may want to report the problem to your system manager and/or to
2254 *** bug-libtool@gnu.org
2255
2256 EOF
2257           fi ;;
2258         esac
2259       fi
2260       break
2261     fi
2262   done
2263   IFS="$ac_save_ifs"
2264   MAGIC_CMD="$ac_save_MAGIC_CMD"
2265   ;;
2266 esac
2267 fi
2268
2269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2270 if test -n "$MAGIC_CMD"; then
2271   echo "$ac_t""$MAGIC_CMD" 1>&6
2272 else
2273   echo "$ac_t""no" 1>&6
2274 fi
2275
2276   else
2277     MAGIC_CMD=:
2278   fi
2279 fi
2280
2281   fi
2282   ;;
2283 esac
2284
2285 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_word" >&5
2289 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2290   echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292   if test -n "$RANLIB"; then
2293   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2294 else
2295   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2296   ac_dummy="$PATH"
2297   for ac_dir in $ac_dummy; do
2298     test -z "$ac_dir" && ac_dir=.
2299     if test -f $ac_dir/$ac_word; then
2300       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2301       break
2302     fi
2303   done
2304   IFS="$ac_save_ifs"
2305 fi
2306 fi
2307 RANLIB="$ac_cv_prog_RANLIB"
2308 if test -n "$RANLIB"; then
2309   echo "$ac_t""$RANLIB" 1>&6
2310 else
2311   echo "$ac_t""no" 1>&6
2312 fi
2313
2314
2315 if test -z "$ac_cv_prog_RANLIB"; then
2316 if test -n "$ac_tool_prefix"; then
2317   # Extract the first word of "ranlib", so it can be a program name with args.
2318 set dummy ranlib; ac_word=$2
2319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2320 echo "configure:2321: checking for $ac_word" >&5
2321 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2322   echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324   if test -n "$RANLIB"; then
2325   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2326 else
2327   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2328   ac_dummy="$PATH"
2329   for ac_dir in $ac_dummy; do
2330     test -z "$ac_dir" && ac_dir=.
2331     if test -f $ac_dir/$ac_word; then
2332       ac_cv_prog_RANLIB="ranlib"
2333       break
2334     fi
2335   done
2336   IFS="$ac_save_ifs"
2337   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2338 fi
2339 fi
2340 RANLIB="$ac_cv_prog_RANLIB"
2341 if test -n "$RANLIB"; then
2342   echo "$ac_t""$RANLIB" 1>&6
2343 else
2344   echo "$ac_t""no" 1>&6
2345 fi
2346
2347 else
2348   RANLIB=":"
2349 fi
2350 fi
2351
2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}strip; ac_word=$2
2354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2357   echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359   if test -n "$STRIP"; then
2360   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2363   ac_dummy="$PATH"
2364   for ac_dir in $ac_dummy; do
2365     test -z "$ac_dir" && ac_dir=.
2366     if test -f $ac_dir/$ac_word; then
2367       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368       break
2369     fi
2370   done
2371   IFS="$ac_save_ifs"
2372 fi
2373 fi
2374 STRIP="$ac_cv_prog_STRIP"
2375 if test -n "$STRIP"; then
2376   echo "$ac_t""$STRIP" 1>&6
2377 else
2378   echo "$ac_t""no" 1>&6
2379 fi
2380
2381
2382 if test -z "$ac_cv_prog_STRIP"; then
2383 if test -n "$ac_tool_prefix"; then
2384   # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2389   echo $ac_n "(cached) $ac_c" 1>&6
2390 else
2391   if test -n "$STRIP"; then
2392   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2393 else
2394   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2395   ac_dummy="$PATH"
2396   for ac_dir in $ac_dummy; do
2397     test -z "$ac_dir" && ac_dir=.
2398     if test -f $ac_dir/$ac_word; then
2399       ac_cv_prog_STRIP="strip"
2400       break
2401     fi
2402   done
2403   IFS="$ac_save_ifs"
2404   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2405 fi
2406 fi
2407 STRIP="$ac_cv_prog_STRIP"
2408 if test -n "$STRIP"; then
2409   echo "$ac_t""$STRIP" 1>&6
2410 else
2411   echo "$ac_t""no" 1>&6
2412 fi
2413
2414 else
2415   STRIP=":"
2416 fi
2417 fi
2418
2419
2420 # Check for any special flags to pass to ltconfig.
2421 libtool_flags="--cache-file=$cache_file"
2422 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2423 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2424 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2425 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2426 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2427 libtool_flags="$libtool_flags --enable-dlopen"
2428
2429 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2430 if test "${enable_libtool_lock+set}" = set; then
2431   enableval="$enable_libtool_lock"
2432   :
2433 fi
2434
2435 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2436 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2437
2438 # Check whether --with-pic or --without-pic was given.
2439 if test "${with_pic+set}" = set; then
2440   withval="$with_pic"
2441   pic_mode="$withval"
2442 else
2443   pic_mode=default
2444 fi
2445
2446 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2447 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2448
2449 # Some flags need to be propagated to the compiler or linker for good
2450 # libtool support.
2451 case $host in
2452 *-*-irix6*)
2453   # Find out which ABI we are using.
2454   echo '#line 2455 "configure"' > conftest.$ac_ext
2455   if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456     case `/usr/bin/file conftest.$ac_objext` in
2457     *32-bit*)
2458       LD="${LD-ld} -32"
2459       ;;
2460     *N32*)
2461       LD="${LD-ld} -n32"
2462       ;;
2463     *64-bit*)
2464       LD="${LD-ld} -64"
2465       ;;
2466     esac
2467   fi
2468   rm -rf conftest*
2469   ;;
2470
2471 *-*-sco3.2v5*)
2472   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2473   SAVE_CFLAGS="$CFLAGS"
2474   CFLAGS="$CFLAGS -belf"
2475   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2476 echo "configure:2477: checking whether the C compiler needs -belf" >&5
2477 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2478   echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480   
2481      ac_ext=c
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling=$ac_cv_prog_cc_cross
2487
2488      cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491
2492 int main() {
2493
2494 ; return 0; }
2495 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497   rm -rf conftest*
2498   lt_cv_cc_needs_belf=yes
2499 else
2500   echo "configure: failed program was:" >&5
2501   cat conftest.$ac_ext >&5
2502   rm -rf conftest*
2503   lt_cv_cc_needs_belf=no
2504 fi
2505 rm -f conftest*
2506      ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2512
2513 fi
2514
2515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2516   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2517     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2518     CFLAGS="$SAVE_CFLAGS"
2519   fi
2520   ;;
2521
2522
2523 esac
2524
2525 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2526 echo "configure:2527: checking how to run the C++ preprocessor" >&5
2527 if test -z "$CXXCPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2529   echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531   ac_ext=C
2532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CXXCPP $CPPFLAGS'
2534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cxx_cross
2537   CXXCPP="${CXX-g++} -E"
2538   cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <stdlib.h>
2542 EOF
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2547   :
2548 else
2549   echo "$ac_err" >&5
2550   echo "configure: failed program was:" >&5
2551   cat conftest.$ac_ext >&5
2552   rm -rf conftest*
2553   CXXCPP=/lib/cpp
2554 fi
2555 rm -f conftest*
2556   ac_cv_prog_CXXCPP="$CXXCPP"
2557 ac_ext=c
2558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2562 cross_compiling=$ac_cv_prog_cc_cross
2563 fi
2564 fi
2565 CXXCPP="$ac_cv_prog_CXXCPP"
2566 echo "$ac_t""$CXXCPP" 1>&6
2567
2568
2569 # Save cache, so that ltconfig can load it
2570 cat > confcache <<\EOF
2571 # This file is a shell script that caches the results of configure
2572 # tests run on this system so they can be shared between configure
2573 # scripts and configure runs.  It is not useful on other systems.
2574 # If it contains results you don't want to keep, you may remove or edit it.
2575 #
2576 # By default, configure uses ./config.cache as the cache file,
2577 # creating it if it does not exist already.  You can give configure
2578 # the --cache-file=FILE option to use a different cache file; that is
2579 # what configure does when it calls configure scripts in
2580 # subdirectories, so they share the cache.
2581 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2582 # config.status only pays attention to the cache file if you give it the
2583 # --recheck option to rerun configure.
2584 #
2585 EOF
2586 # The following way of writing the cache mishandles newlines in values,
2587 # but we know of no workaround that is simple, portable, and efficient.
2588 # So, don't put newlines in cache variables' values.
2589 # Ultrix sh set writes to stderr and can't be redirected directly,
2590 # and sets the high bit in the cache file unless we assign to the vars.
2591 (set) 2>&1 |
2592   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2593   *ac_space=\ *)
2594     # `set' does not quote correctly, so add quotes (double-quote substitution
2595     # turns \\\\ into \\, and sed turns \\ into \).
2596     sed -n \
2597       -e "s/'/'\\\\''/g" \
2598       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2599     ;;
2600   *)
2601     # `set' quotes correctly as required by POSIX, so do not add quotes.
2602     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2603     ;;
2604   esac >> confcache
2605 if cmp -s $cache_file confcache; then
2606   :
2607 else
2608   if test -w $cache_file; then
2609     echo "updating cache $cache_file"
2610     cat confcache > $cache_file
2611   else
2612     echo "not updating unwritable cache $cache_file"
2613   fi
2614 fi
2615 rm -f confcache
2616
2617
2618 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2619 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2620 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2621 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2622 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2623 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2624 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2626 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2627 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2628
2629 # Reload cache, that may have been modified by ltconfig
2630 if test -r "$cache_file"; then
2631   echo "loading cache $cache_file"
2632   . $cache_file
2633 else
2634   echo "creating cache $cache_file"
2635   > $cache_file
2636 fi
2637
2638
2639 # This can be used to rebuild libtool when needed
2640 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2641
2642 # Always use our own libtool.
2643 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2644
2645 # Redirect the config.log output again, so that the ltconfig log is not
2646 # clobbered by the next message.
2647 exec 5>>./config.log
2648
2649
2650
2651 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2652 lt_save_CC="$CC"
2653 lt_save_CFLAGS="$CFLAGS"
2654 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2655 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2656 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2657 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2658 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2659 deplibs_check_method="$deplibs_check_method" \
2660 file_magic_cmd="$file_magic_cmd" \
2661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2662 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2663 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2664 CC="$lt_save_CC"
2665 CFLAGS="$lt_save_CFLAGS"
2666
2667 # Redirect the config.log output again, so that the ltconfig log is not
2668 # clobbered by the next message.
2669 exec 5>>./config.log
2670
2671   
2672
2673   
2674          
2675          
2676
2677
2678
2679 # Check for c++ or library specific bits that don't require linking.
2680 #GLIBCPP_CHECK_COMPILER_VERSION
2681 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2682 echo "configure:2683: checking for GNU make" >&5
2683 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2684   echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686   _cv_gnu_make_command='' ;
2687           for a in "${MAKE-make}" make gmake gnumake ; do
2688                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2689                   then
2690                           _cv_gnu_make_command=$a ;
2691                           break;
2692                   fi
2693           done ;
2694   
2695 fi
2696
2697 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2698   if test  "x$_cv_gnu_make_command" != "x"  ; then
2699           ifGNUmake='' ;
2700   else
2701           ifGNUmake='#' ;
2702   fi
2703   
2704
2705
2706 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2707 # Check whether --enable-debug or --disable-debug was given.
2708 if test "${enable_debug+set}" = set; then
2709   enableval="$enable_debug"
2710   case "${enableval}" in
2711  yes) enable_debug=yes ;;
2712  no)  enable_debug=no ;;
2713  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2714  esac
2715 else
2716   enable_debug=no
2717 fi
2718
2719 case "${enable_debug}" in
2720     yes) 
2721         DEBUG_FLAGS='-O0 -ggdb3'                        
2722         ;; 
2723     no)   
2724         DEBUG_FLAGS='-g'
2725         ;;
2726 esac
2727
2728
2729 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2730 echo "configure:2731: checking how to run the C preprocessor" >&5
2731 # On Suns, sometimes $CPP names a directory.
2732 if test -n "$CPP" && test -d "$CPP"; then
2733   CPP=
2734 fi
2735 if test -z "$CPP"; then
2736 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2737   echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739     # This must be in double quotes, not single quotes, because CPP may get
2740   # substituted into the Makefile and "${CC-cc}" will confuse make.
2741   CPP="${CC-cc} -E"
2742   # On the NeXT, cc -E runs the code through the compiler's parser,
2743   # not just through cpp.
2744   cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 #include <assert.h>
2748 Syntax Error
2749 EOF
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2754   :
2755 else
2756   echo "$ac_err" >&5
2757   echo "configure: failed program was:" >&5
2758   cat conftest.$ac_ext >&5
2759   rm -rf conftest*
2760   CPP="${CC-cc} -E -traditional-cpp"
2761   cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <assert.h>
2765 Syntax Error
2766 EOF
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2771   :
2772 else
2773   echo "$ac_err" >&5
2774   echo "configure: failed program was:" >&5
2775   cat conftest.$ac_ext >&5
2776   rm -rf conftest*
2777   CPP="${CC-cc} -nologo -E"
2778   cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <assert.h>
2782 Syntax Error
2783 EOF
2784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2788   :
2789 else
2790   echo "$ac_err" >&5
2791   echo "configure: failed program was:" >&5
2792   cat conftest.$ac_ext >&5
2793   rm -rf conftest*
2794   CPP=/lib/cpp
2795 fi
2796 rm -f conftest*
2797 fi
2798 rm -f conftest*
2799 fi
2800 rm -f conftest*
2801   ac_cv_prog_CPP="$CPP"
2802 fi
2803   CPP="$ac_cv_prog_CPP"
2804 else
2805   ac_cv_prog_CPP="$CPP"
2806 fi
2807 echo "$ac_t""$CPP" 1>&6
2808
2809
2810   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2811 echo "configure:2812: checking for cstdio to use" >&5
2812   # Check whether --enable-cstdio or --disable-cstdio was given.
2813 if test "${enable_cstdio+set}" = set; then
2814   enableval="$enable_cstdio"
2815   if test x$enable_cstdio = xno; then
2816      enable_cstdio=stdio
2817   fi
2818 else
2819   enable_cstdio=stdio
2820 fi
2821
2822
2823   enable_cstdio_flag=$enable_cstdio
2824
2825     case x${enable_cstdio_flag} in
2826     xlibio)
2827       CSTDIO_H=config/io/c_io_libio.h
2828       BASIC_FILE_H=config/io/basic_file_libio.h
2829       BASIC_FILE_CC=config/io/basic_file_libio.cc
2830       echo "$ac_t""libio" 1>&6
2831
2832       # see if we are on a system with libio native (ie, linux)
2833       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2834 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2835 echo "configure:2836: checking for libio.h" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837   echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839   cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #include <libio.h>
2843 EOF
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2848   rm -rf conftest*
2849   eval "ac_cv_header_$ac_safe=yes"
2850 else
2851   echo "$ac_err" >&5
2852   echo "configure: failed program was:" >&5
2853   cat conftest.$ac_ext >&5
2854   rm -rf conftest*
2855   eval "ac_cv_header_$ac_safe=no"
2856 fi
2857 rm -f conftest*
2858 fi
2859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860   echo "$ac_t""yes" 1>&6
2861   has_libio=yes
2862 else
2863   echo "$ac_t""no" 1>&6
2864 has_libio=no
2865 fi
2866
2867
2868       # Need to check and see what version of glibc is being used. If
2869       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2870       # compile most of libio for linux systems.
2871       if test x$has_libio = x"yes"; then
2872         case "$target" in
2873           *-*-linux*)
2874               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2875 echo "configure:2876: checking for glibc version >= 2.2" >&5
2876               cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879
2880             #include <features.h>
2881               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2882                     ok
2883               #endif
2884               
2885 EOF
2886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2887   egrep "ok" >/dev/null 2>&1; then
2888   rm -rf conftest*
2889   glibc_satisfactory=yes
2890 else
2891   rm -rf conftest*
2892   glibc_satisfactory=no
2893 fi
2894 rm -f conftest*
2895
2896               echo "$ac_t""$glibc_satisfactory" 1>&6
2897             ;;
2898         esac
2899
2900         # XXX at the moment, admit defeat and force the recompilation
2901         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2902         glibc_satisfactory=no        
2903
2904         if test x$glibc_satisfactory = x"yes"; then
2905            need_libio=no
2906            need_wlibio=no        
2907         else
2908            need_libio=yes
2909            # bkoz XXX need to add checks to enable this
2910            # pme XXX here's a first pass at such a check
2911            if test x$enable_c_mbchar != xno; then
2912               need_wlibio=yes
2913            else
2914               need_wlibio=no
2915            fi
2916         fi
2917
2918       else
2919          # Using libio, but <libio.h> doesn't exist on the target system. . .
2920          need_libio=yes
2921          # bkoz XXX need to add checks to enable this
2922          # pme XXX here's a first pass at such a check
2923          if test x$enable_c_mbchar != xno; then
2924              need_wlibio=yes
2925          else
2926              need_wlibio=no
2927          fi
2928       fi
2929       ;;
2930     xstdio | x | xno | xnone | xyes)
2931       # default
2932       CSTDIO_H=config/io/c_io_stdio.h
2933       BASIC_FILE_H=config/io/basic_file_stdio.h
2934       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2935       echo "$ac_t""stdio" 1>&6
2936
2937       # We're not using stdio.
2938       need_libio=no
2939       need_wlibio=no
2940       ;;
2941     *)
2942       echo "$enable_cstdio is an unknown io package" 1>&2
2943       exit 1
2944       ;;
2945   esac
2946   
2947   
2948   
2949
2950   # 2000-08-04 bkoz hack
2951   CCODECVT_C=config/io/c_io_libio_codecvt.c
2952   
2953   # 2000-08-04 bkoz hack
2954
2955   
2956
2957 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2958   GLIBCPP_BUILD_LIBIO_TRUE=
2959   GLIBCPP_BUILD_LIBIO_FALSE='#'
2960 else
2961   GLIBCPP_BUILD_LIBIO_TRUE='#'
2962   GLIBCPP_BUILD_LIBIO_FALSE=
2963 fi
2964   
2965
2966 if test "$need_libio" = yes; then
2967   GLIBCPP_NEED_LIBIO_TRUE=
2968   GLIBCPP_NEED_LIBIO_FALSE='#'
2969 else
2970   GLIBCPP_NEED_LIBIO_TRUE='#'
2971   GLIBCPP_NEED_LIBIO_FALSE=
2972 fi
2973   
2974
2975 if test "$need_wlibio" = yes; then
2976   GLIBCPP_NEED_WLIBIO_TRUE=
2977   GLIBCPP_NEED_WLIBIO_FALSE='#'
2978 else
2979   GLIBCPP_NEED_WLIBIO_TRUE='#'
2980   GLIBCPP_NEED_WLIBIO_FALSE=
2981 fi
2982   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2983     libio_la=../libio/libio.la
2984   else
2985     libio_la=
2986   fi
2987   
2988
2989
2990   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2991 echo "configure:2992: checking for clocale to use" >&5
2992   # Check whether --enable-clocale or --disable-clocale was given.
2993 if test "${enable_clocale+set}" = set; then
2994   enableval="$enable_clocale"
2995   if test x$enable_clocale = xno; then
2996      enable_clocale=no
2997   fi
2998 else
2999   enable_clocale=no
3000 fi
3001
3002
3003   enable_clocale_flag=$enable_clocale
3004
3005       if test x$enable_clocale_flag = xno; then
3006     case x${target_os} in
3007       xlinux* | xgnu*)
3008         cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011
3012         #include <features.h>
3013         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3014           _GLIBCPP_ok
3015         #endif
3016         
3017 EOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3020   rm -rf conftest*
3021   enable_clocale_flag=gnu
3022 else
3023   rm -rf conftest*
3024   enable_clocale_flag=generic
3025 fi
3026 rm -f conftest*
3027
3028
3029         # Test for bugs early in glibc-2.2.x series
3030         if test x$enable_clocale_flag = xgnu; then
3031           if test "$cross_compiling" = yes; then
3032   enable_clocale_flag=generic
3033 else
3034   cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037
3038           #define _GNU_SOURCE 1
3039           #include <locale.h>
3040           int main()
3041           {
3042             const char __one[] = "Äuglein Augmen";
3043             const char __two[] = "Äuglein";
3044             int i;
3045             int j;
3046             __locale_t  loc;
3047             __locale_t  loc_dup;
3048             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3049             loc_dup = __duplocale(loc);
3050             i = __strcoll_l(__one, __two, loc);
3051             j = __strcoll_l(__one, __two, loc_dup);
3052             return 0;
3053           }
3054           
3055 EOF
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3057 then
3058   enable_clocale_flag=gnu
3059 else
3060   echo "configure: failed program was:" >&5
3061   cat conftest.$ac_ext >&5
3062   rm -fr conftest*
3063   enable_clocale_flag=generic
3064 fi
3065 rm -fr conftest*
3066 fi
3067
3068         fi
3069
3070         # ... at some point put __strxfrm_l tests in as well.
3071         ;;
3072       *)
3073         enable_clocale_flag=generic
3074         ;;
3075     esac
3076   fi
3077
3078     # Check whether --enable-nls or --disable-nls was given.
3079 if test "${enable_nls+set}" = set; then
3080   enableval="$enable_nls"
3081   :
3082 else
3083   enable_nls=yes
3084 fi
3085
3086   USE_NLS=no
3087
3088     case x${enable_clocale_flag} in
3089     xgeneric)
3090       echo "$ac_t""generic" 1>&6
3091
3092       CLOCALE_H=config/locale/generic/c_locale.h
3093       CLOCALE_CC=config/locale/generic/c_locale.cc
3094       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3095       CCOLLATE_CC=config/locale/generic/collate_members.cc
3096       CCTYPE_CC=config/locale/generic/ctype_members.cc
3097       CMESSAGES_H=config/locale/generic/messages_members.h
3098       CMESSAGES_CC=config/locale/generic/messages_members.cc
3099       CMONEY_CC=config/locale/generic/monetary_members.cc
3100       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3101       CTIME_CC=config/locale/generic/time_members.cc
3102       ;;
3103     xgnu)
3104       echo "$ac_t""gnu" 1>&6
3105
3106       # Declare intention to use gettext, and add support for specific
3107       # languages.
3108       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3109       ALL_LINGUAS="de fr"
3110
3111       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3112       # Extract the first word of "msgfmt", so it can be a program name with args.
3113 set dummy msgfmt; ac_word=$2
3114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_word" >&5
3116 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3117   echo $ac_n "(cached) $ac_c" 1>&6
3118 else
3119   if test -n "$check_msgfmt"; then
3120   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3121 else
3122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3123   ac_dummy="$PATH"
3124   for ac_dir in $ac_dummy; do
3125     test -z "$ac_dir" && ac_dir=.
3126     if test -f $ac_dir/$ac_word; then
3127       ac_cv_prog_check_msgfmt="yes"
3128       break
3129     fi
3130   done
3131   IFS="$ac_save_ifs"
3132   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3133 fi
3134 fi
3135 check_msgfmt="$ac_cv_prog_check_msgfmt"
3136 if test -n "$check_msgfmt"; then
3137   echo "$ac_t""$check_msgfmt" 1>&6
3138 else
3139   echo "$ac_t""no" 1>&6
3140 fi
3141
3142       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3143         USE_NLS=yes
3144       fi
3145       # Export the build objects.
3146       for ling in $ALL_LINGUAS; do \
3147         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3148         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3149       done
3150       
3151       
3152
3153       CLOCALE_H=config/locale/gnu/c_locale.h
3154       CLOCALE_CC=config/locale/gnu/c_locale.cc
3155       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3156       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3157       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3158       CMESSAGES_H=config/locale/gnu/messages_members.h
3159       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3160       CMONEY_CC=config/locale/gnu/monetary_members.cc
3161       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3162       CTIME_CC=config/locale/gnu/time_members.cc
3163       ;;
3164     xieee_1003.1-2001)
3165       echo "$ac_t""generic" 1>&6
3166
3167       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3168       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3169       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3170       CCOLLATE_CC=config/locale/generic/collate_members.cc
3171       CCTYPE_CC=config/locale/generic/ctype_members.cc
3172       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3173       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3174       CMONEY_CC=config/locale/generic/monetary_members.cc
3175       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3176       CTIME_CC=config/locale/generic/time_members.cc
3177       ;;
3178     *)
3179       echo "$enable_clocale is an unknown locale package" 1>&2
3180       exit 1
3181       ;;
3182   esac
3183
3184   # This is where the testsuite looks for locale catalogs, using the
3185   # -DLOCALEDIR define during testsuite compilation.
3186   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3187   
3188
3189   
3190   
3191   
3192   
3193   
3194   
3195   
3196   
3197   
3198   
3199   
3200
3201 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3202 if test "${enable_c_mbchar+set}" = set; then
3203   enableval="$enable_c_mbchar"
3204   case "$enableval" in
3205  yes) enable_c_mbchar=yes ;;
3206  no)  enable_c_mbchar=no ;;
3207  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3208  esac
3209 else
3210   enable_c_mbchar=yes
3211 fi
3212
3213   
3214   # Check whether --enable-c99 or --disable-c99 was given.
3215 if test "${enable_c99+set}" = set; then
3216   enableval="$enable_c99"
3217     case "$enableval" in
3218    yes) enable_c99=yes ;;
3219    no)  enable_c99=no ;;
3220    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3221    esac
3222 else
3223   enable_c99=yes
3224 fi
3225  
3226   
3227   ac_ext=C
3228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3229 ac_cpp='$CXXCPP $CPPFLAGS'
3230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3232 cross_compiling=$ac_cv_prog_cxx_cross
3233
3234
3235   # Check for the existence of <math.h> functions used if C99 is enabled.
3236   ac_c99_math=yes;
3237   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3238 echo "configure:3239: checking for ISO C99 support in <math.h>" >&5
3239   cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 #include <math.h>
3243 int main() {
3244 fpclassify(0.0);
3245 ; return 0; }
3246 EOF
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248   :
3249 else
3250   echo "configure: failed program was:" >&5
3251   cat conftest.$ac_ext >&5
3252   rm -rf conftest*
3253   ac_c99_math=no
3254 fi
3255 rm -f conftest*
3256   cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <math.h>
3260 int main() {
3261 isfinite(0.0);
3262 ; return 0; }
3263 EOF
3264 if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3265   :
3266 else
3267   echo "configure: failed program was:" >&5
3268   cat conftest.$ac_ext >&5
3269   rm -rf conftest*
3270   ac_c99_math=no
3271 fi
3272 rm -f conftest*
3273   cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 #include <math.h>
3277 int main() {
3278 isinf(0.0);
3279 ; return 0; }
3280 EOF
3281 if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3282   :
3283 else
3284   echo "configure: failed program was:" >&5
3285   cat conftest.$ac_ext >&5
3286   rm -rf conftest*
3287   ac_c99_math=no
3288 fi
3289 rm -f conftest*
3290   cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 #include <math.h>
3294 int main() {
3295 isnan(0.0);
3296 ; return 0; }
3297 EOF
3298 if { (eval echo configure:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3299   :
3300 else
3301   echo "configure: failed program was:" >&5
3302   cat conftest.$ac_ext >&5
3303   rm -rf conftest*
3304   ac_c99_math=no
3305 fi
3306 rm -f conftest*
3307   cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <math.h>
3311 int main() {
3312 isnormal(0.0);
3313 ; return 0; }
3314 EOF
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316   :
3317 else
3318   echo "configure: failed program was:" >&5
3319   cat conftest.$ac_ext >&5
3320   rm -rf conftest*
3321   ac_c99_math=no
3322 fi
3323 rm -f conftest*
3324   cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <math.h>
3328 int main() {
3329 signbit(0.0);
3330 ; return 0; }
3331 EOF
3332 if { (eval echo configure:3333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3333   :
3334 else
3335   echo "configure: failed program was:" >&5
3336   cat conftest.$ac_ext >&5
3337   rm -rf conftest*
3338   ac_c99_math=no
3339 fi
3340 rm -f conftest*
3341   cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <math.h>
3345 int main() {
3346 isgreater(0.0,0.0);
3347 ; return 0; }
3348 EOF
3349 if { (eval echo configure:3350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3350   :
3351 else
3352   echo "configure: failed program was:" >&5
3353   cat conftest.$ac_ext >&5
3354   rm -rf conftest*
3355   ac_c99_math=no
3356 fi
3357 rm -f conftest*
3358   cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <math.h>
3362 int main() {
3363 isgreaterequal(0.0,0.0);
3364 ; return 0; }
3365 EOF
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367   :
3368 else
3369   echo "configure: failed program was:" >&5
3370   cat conftest.$ac_ext >&5
3371   rm -rf conftest*
3372   ac_c99_math=no
3373 fi
3374 rm -f conftest*
3375   cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <math.h>
3379 int main() {
3380 isless(0.0,0.0);
3381 ; return 0; }
3382 EOF
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384   :
3385 else
3386   echo "configure: failed program was:" >&5
3387   cat conftest.$ac_ext >&5
3388   rm -rf conftest*
3389   ac_c99_math=no
3390 fi
3391 rm -f conftest*
3392   cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 #include <math.h>
3396 int main() {
3397 islessequal(0.0,0.0);
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401   :
3402 else
3403   echo "configure: failed program was:" >&5
3404   cat conftest.$ac_ext >&5
3405   rm -rf conftest*
3406   ac_c99_math=no
3407 fi
3408 rm -f conftest*
3409   cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <math.h>
3413 int main() {
3414 islessgreater(0.0,0.0);
3415 ; return 0; }
3416 EOF
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3418   :
3419 else
3420   echo "configure: failed program was:" >&5
3421   cat conftest.$ac_ext >&5
3422   rm -rf conftest*
3423   ac_c99_math=no
3424 fi
3425 rm -f conftest*
3426   cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <math.h>
3430 int main() {
3431 isunordered(0.0,0.0);
3432 ; return 0; }
3433 EOF
3434 if { (eval echo configure:3435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3435   :
3436 else
3437   echo "configure: failed program was:" >&5
3438   cat conftest.$ac_ext >&5
3439   rm -rf conftest*
3440   ac_c99_math=no
3441 fi
3442 rm -f conftest*
3443   echo "$ac_t""$ac_c99_math" 1>&6
3444
3445   # Check for the existence in <stdio.h> of vscanf, et. al.
3446   ac_c99_stdio=yes;
3447   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3448 echo "configure:3449: checking for ISO C99 support in <stdio.h>" >&5
3449   cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 #include <stdio.h>
3453 int main() {
3454 snprintf("12", 0, "%i");
3455 ; return 0; }
3456 EOF
3457 if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458   :
3459 else
3460   echo "configure: failed program was:" >&5
3461   cat conftest.$ac_ext >&5
3462   rm -rf conftest*
3463   ac_c99_stdio=no
3464 fi
3465 rm -f conftest*
3466   cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <stdio.h>
3470                   #include <stdarg.h>
3471                   void foo(char* fmt, ...)
3472                   {va_list args; va_start(args, fmt);
3473                   vfscanf(stderr, "%i", args);}
3474 int main() {
3475
3476 ; return 0; }
3477 EOF
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3479   :
3480 else
3481   echo "configure: failed program was:" >&5
3482   cat conftest.$ac_ext >&5
3483   rm -rf conftest*
3484   ac_c99_stdio=no
3485 fi
3486 rm -f conftest*
3487   cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <stdio.h>
3491                   #include <stdarg.h>
3492                   void foo(char* fmt, ...)
3493                   {va_list args; va_start(args, fmt);
3494                   vscanf("%i", args);}
3495 int main() {
3496
3497 ; return 0; }
3498 EOF
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500   :
3501 else
3502   echo "configure: failed program was:" >&5
3503   cat conftest.$ac_ext >&5
3504   rm -rf conftest*
3505   ac_c99_stdio=no
3506 fi
3507 rm -f conftest*
3508   cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdio.h>
3512                   #include <stdarg.h>
3513                   void foo(char* fmt, ...)
3514                   {va_list args; va_start(args, fmt);
3515                   vsnprintf(fmt, 0, "%i", args);}
3516 int main() {
3517
3518 ; return 0; }
3519 EOF
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3521   :
3522 else
3523   echo "configure: failed program was:" >&5
3524   cat conftest.$ac_ext >&5
3525   rm -rf conftest*
3526   ac_c99_stdio=no
3527 fi
3528 rm -f conftest*
3529   cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <stdio.h>
3533                   #include <stdarg.h>
3534                   void foo(char* fmt, ...)
3535                   {va_list args; va_start(args, fmt);
3536                   vsscanf(fmt, "%i", args);}
3537 int main() {
3538
3539 ; return 0; }
3540 EOF
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542   :
3543 else
3544   echo "configure: failed program was:" >&5
3545   cat conftest.$ac_ext >&5
3546   rm -rf conftest*
3547   ac_c99_stdio=no
3548 fi
3549 rm -f conftest*
3550   echo "$ac_t""$ac_c99_stdio" 1>&6
3551
3552   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3553   ac_c99_stdlib=yes;
3554   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3555 echo "configure:3556: checking for lldiv_t declaration" >&5
3556   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3557   echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559   
3560   cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <stdlib.h>
3564 int main() {
3565  lldiv_t mydivt;
3566 ; return 0; }
3567 EOF
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569   rm -rf conftest*
3570   ac_c99_lldiv_t=yes
3571 else
3572   echo "configure: failed program was:" >&5
3573   cat conftest.$ac_ext >&5
3574   rm -rf conftest*
3575   ac_c99_lldiv_t=no
3576 fi
3577 rm -f conftest*
3578   
3579 fi
3580
3581   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3582
3583   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3584 echo "configure:3585: checking for ISO C99 support in <stdlib.h>" >&5
3585   cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <stdlib.h>
3589 int main() {
3590 char* tmp; strtof("gnu", &tmp);
3591 ; return 0; }
3592 EOF
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594   :
3595 else
3596   echo "configure: failed program was:" >&5
3597   cat conftest.$ac_ext >&5
3598   rm -rf conftest*
3599   ac_c99_stdlib=no
3600 fi
3601 rm -f conftest*
3602   cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 #include <stdlib.h>
3606 int main() {
3607 char* tmp; strtold("gnu", &tmp);
3608 ; return 0; }
3609 EOF
3610 if { (eval echo configure:3611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611   :
3612 else
3613   echo "configure: failed program was:" >&5
3614   cat conftest.$ac_ext >&5
3615   rm -rf conftest*
3616   ac_c99_stdlib=no
3617 fi
3618 rm -f conftest*
3619   cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 #include <stdlib.h>
3623 int main() {
3624 llabs(10);
3625 ; return 0; }
3626 EOF
3627 if { (eval echo configure:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3628   :
3629 else
3630   echo "configure: failed program was:" >&5
3631   cat conftest.$ac_ext >&5
3632   rm -rf conftest*
3633   ac_c99_stdlib=no
3634 fi
3635 rm -f conftest*
3636   cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <stdlib.h>
3640 int main() {
3641 lldiv(10,1);
3642 ; return 0; }
3643 EOF
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3645   :
3646 else
3647   echo "configure: failed program was:" >&5
3648   cat conftest.$ac_ext >&5
3649   rm -rf conftest*
3650   ac_c99_stdlib=no
3651 fi
3652 rm -f conftest*
3653   cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 #include <stdlib.h>
3657 int main() {
3658 atoll("10");
3659 ; return 0; }
3660 EOF
3661 if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3662   :
3663 else
3664   echo "configure: failed program was:" >&5
3665   cat conftest.$ac_ext >&5
3666   rm -rf conftest*
3667   ac_c99_stdlib=no
3668 fi
3669 rm -f conftest*
3670   cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <stdlib.h>
3674 int main() {
3675 _Exit(0);
3676 ; return 0; }
3677 EOF
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679   :
3680 else
3681   echo "configure: failed program was:" >&5
3682   cat conftest.$ac_ext >&5
3683   rm -rf conftest*
3684   ac_c99_stdlib=no
3685 fi
3686 rm -f conftest*
3687   if test x"$ac_c99_lldiv_t" = x"no"; then
3688     ac_c99_stdlib=no; 
3689   fi; 
3690   echo "$ac_t""$ac_c99_stdlib" 1>&6
3691
3692   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3693   # XXX the wchar.h checks should be rolled into the general C99 bits.
3694   ac_c99_wchar=yes;
3695   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3696 echo "configure:3697: checking for additional ISO C99 support in <wchar.h>" >&5
3697   cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <wchar.h>
3701 int main() {
3702 wcstold(L"10.0", NULL);
3703 ; return 0; }
3704 EOF
3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706   :
3707 else
3708   echo "configure: failed program was:" >&5
3709   cat conftest.$ac_ext >&5
3710   rm -rf conftest*
3711   ac_c99_wchar=no
3712 fi
3713 rm -f conftest*
3714   cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 #include <wchar.h>
3718 int main() {
3719 wcstoll(L"10", NULL, 10);
3720 ; return 0; }
3721 EOF
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723   :
3724 else
3725   echo "configure: failed program was:" >&5
3726   cat conftest.$ac_ext >&5
3727   rm -rf conftest*
3728   ac_c99_wchar=no
3729 fi
3730 rm -f conftest*
3731   cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <wchar.h>
3735 int main() {
3736 wcstoull(L"10", NULL, 10);
3737 ; return 0; }
3738 EOF
3739 if { (eval echo configure:3740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740   :
3741 else
3742   echo "configure: failed program was:" >&5
3743   cat conftest.$ac_ext >&5
3744   rm -rf conftest*
3745   ac_c99_wchar=no
3746 fi
3747 rm -f conftest*
3748   echo "$ac_t""$ac_c99_wchar" 1>&6
3749
3750   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3751 echo "configure:3752: checking for enabled ISO C99 support" >&5
3752   if test x"$ac_c99_math" = x"no" ||
3753      test x"$ac_c99_stdio" = x"no" ||
3754      test x"$ac_c99_stdlib" = x"no" ||
3755      test x"$ac_c99_wchar" = x"no"; then
3756     enable_c99=no; 
3757   fi; 
3758   echo "$ac_t""$enable_c99" 1>&6
3759
3760   # Option parsed, now set things appropriately
3761   if test x"$enable_c99" = x"yes"; then
3762     cat >> confdefs.h <<\EOF
3763 #define _GLIBCPP_USE_C99 1
3764 EOF
3765
3766   fi
3767
3768   ac_ext=c
3769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3773 cross_compiling=$ac_cv_prog_cc_cross
3774
3775
3776   
3777   # Check whether --enable-long-long or --disable-long-long was given.
3778 if test "${enable_long_long+set}" = set; then
3779   enableval="$enable_long_long"
3780     case "$enableval" in
3781    yes) enable_long_long=yes ;;
3782    no)  enable_long_long=no ;;
3783    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3784    esac
3785 else
3786   enable_long_long=yes
3787 fi
3788
3789   
3790   ac_ext=C
3791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3792 ac_cpp='$CXXCPP $CPPFLAGS'
3793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3795 cross_compiling=$ac_cv_prog_cxx_cross
3796
3797
3798   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3799 echo "configure:3800: checking for enabled long long I/O support" >&5
3800   # iostreams require strtoll, strtoull to compile
3801   cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <stdlib.h>
3805 int main() {
3806 char* tmp; strtoll("gnu", &tmp, 10);
3807 ; return 0; }
3808 EOF
3809 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3810   :
3811 else
3812   echo "configure: failed program was:" >&5
3813   cat conftest.$ac_ext >&5
3814   rm -rf conftest*
3815   enable_long_long=no
3816 fi
3817 rm -f conftest*
3818   cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <stdlib.h>
3822 int main() {
3823 char* tmp; strtoull("gnu", &tmp, 10);
3824 ; return 0; }
3825 EOF
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827   :
3828 else
3829   echo "configure: failed program was:" >&5
3830   cat conftest.$ac_ext >&5
3831   rm -rf conftest*
3832   enable_long_long=no
3833 fi
3834 rm -f conftest*
3835
3836   # Option parsed, now set things appropriately
3837   if test x"$enable_long_long" = xyes; then
3838     cat >> confdefs.h <<\EOF
3839 #define _GLIBCPP_USE_LONG_LONG 1
3840 EOF
3841
3842   fi
3843   echo "$ac_t""$enable_long_long" 1>&6
3844
3845   ac_ext=c
3846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3850 cross_compiling=$ac_cv_prog_cc_cross
3851
3852
3853 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3854 echo "configure:3855: checking for c header strategy to use" >&5
3855 # Check whether --enable-cheaders or --disable-cheaders was given.
3856 if test "${enable_cheaders+set}" = set; then
3857   enableval="$enable_cheaders"
3858   
3859   case "$enableval" in
3860    c) 
3861         enable_cheaders=c 
3862         ;;
3863    c_std)  
3864         enable_cheaders=c_std 
3865         ;;
3866    c_shadow)  
3867         enable_cheaders=c_shadow 
3868         ;;
3869    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3870         ;;
3871   esac
3872 else
3873   enable_cheaders=c_std
3874 fi
3875
3876   echo "$ac_t""$enable_cheaders" 1>&6
3877
3878     case "$enable_cheaders" in
3879     c_shadow) 
3880         CSHADOW_FLAGS="-fno-builtin"
3881         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3882         ;;
3883     c_std)   
3884         CSHADOW_FLAGS=""
3885         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3886         ;;
3887     c)   
3888         CSHADOW_FLAGS=""
3889         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3890         ;;
3891   esac
3892
3893   
3894   
3895   
3896
3897 if test "$enable_cheaders" = c; then
3898   GLIBCPP_C_HEADERS_C_TRUE=
3899   GLIBCPP_C_HEADERS_C_FALSE='#'
3900 else
3901   GLIBCPP_C_HEADERS_C_TRUE='#'
3902   GLIBCPP_C_HEADERS_C_FALSE=
3903 fi
3904   
3905
3906 if test "$enable_cheaders" = c_std; then
3907   GLIBCPP_C_HEADERS_C_STD_TRUE=
3908   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3909 else
3910   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3911   GLIBCPP_C_HEADERS_C_STD_FALSE=
3912 fi
3913
3914
3915   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3916 echo "configure:3917: checking for thread model used by GCC" >&5
3917   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3918   echo "$ac_t""$target_thread_file" 1>&6
3919
3920   if test $target_thread_file != single; then
3921     cat >> confdefs.h <<\EOF
3922 #define HAVE_GTHR_DEFAULT 1
3923 EOF
3924
3925     cat >> confdefs.h <<\EOF
3926 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3927 EOF
3928
3929   fi
3930
3931   glibcpp_thread_h=gthr-$target_thread_file.h
3932   
3933
3934 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3935 if test "${enable_cxx_flags+set}" = set; then
3936   enableval="$enable_cxx_flags"
3937   case "x$enableval" in
3938  xyes)   
3939         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3940  xno|x)  
3941         enable_cxx_flags='' ;;
3942  *)      
3943         enable_cxx_flags="$enableval" ;;
3944  esac
3945 else
3946   enable_cxx_flags='none'
3947 fi
3948
3949
3950 if test "$enable_cxx_flags" = "none"; then 
3951   enable_cxx_flags=''; 
3952 fi
3953
3954 if test -n "$enable_cxx_flags"; then
3955     for f in $enable_cxx_flags; do
3956         case "$f" in
3957             -fhonor-std)  ;;
3958             -*)  ;;
3959             *)   # and we're trying to pass /what/ exactly?
3960                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3961         esac
3962     done
3963 fi
3964 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3965
3966
3967
3968   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3969 echo "configure:3970: checking for exception model to use" >&5
3970   
3971   ac_ext=C
3972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3973 ac_cpp='$CXXCPP $CPPFLAGS'
3974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3976 cross_compiling=$ac_cv_prog_cxx_cross
3977
3978   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3979 if test "${enable_sjlj_exceptions+set}" = set; then
3980   enableval="$enable_sjlj_exceptions"
3981   :
3982 else
3983                        cat > conftest.$ac_ext << EOF
3984 #line 3985 "configure"
3985 struct S { ~S(); };
3986 void bar();
3987 void foo()
3988 {
3989   S s;
3990   bar();
3991 }
3992 EOF
3993    old_CXXFLAGS="$CXXFLAGS"  
3994    CXXFLAGS=-S
3995    if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3996      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3997        enable_sjlj_exceptions=yes
3998      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3999        enable_sjlj_exceptions=no
4000      fi
4001    fi
4002    CXXFLAGS="$old_CXXFLAGS"
4003    rm -f conftest*
4004 fi
4005
4006    if test x$enable_sjlj_exceptions = xyes; then
4007      cat >> confdefs.h <<\EOF
4008 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4009 EOF
4010
4011      ac_exception_model_name=sjlj
4012    elif test x$enable_sjlj_exceptions = xno; then
4013      ac_exception_model_name="call frame"
4014    else
4015      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4016    fi
4017    ac_ext=c
4018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4022 cross_compiling=$ac_cv_prog_cc_cross
4023
4024    echo "$ac_t""$ac_exception_model_name" 1>&6
4025
4026
4027   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4028 echo "configure:4029: checking for use of libunwind" >&5
4029   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4030 if test "${enable_libunwind_exceptions+set}" = set; then
4031   enableval="$enable_libunwind_exceptions"
4032   use_libunwind_exceptions=$enableval
4033 else
4034   use_libunwind_exceptions=no
4035 fi
4036
4037   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4038     if test x"$use_libunwind_exceptions" = xyes; then
4039     LIBUNWIND_FLAG="-lunwind"
4040   else
4041     LIBUNWIND_FLAG=""
4042   fi
4043   
4044
4045 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4046 if test "${enable_concept_checks+set}" = set; then
4047   enableval="$enable_concept_checks"
4048   case "$enableval" in
4049  yes) enable_concept_checks=yes ;;
4050  no)  enable_concept_checks=no ;;
4051  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4052  esac
4053 else
4054   enable_concept_checks=no
4055 fi
4056 if test x"$enable_concept_checks" = xyes; then
4057   cat >> confdefs.h <<\EOF
4058 #define _GLIBCPP_CONCEPT_CHECKS 1
4059 EOF
4060
4061 fi
4062
4063
4064 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4065 for ac_hdr in string.h stdlib.h
4066 do
4067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_hdr" >&5
4070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4071   echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4073   cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 #include <$ac_hdr>
4077 EOF
4078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4079 { (eval echo configure:4080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4081 if test -z "$ac_err"; then
4082   rm -rf conftest*
4083   eval "ac_cv_header_$ac_safe=yes"
4084 else
4085   echo "$ac_err" >&5
4086   echo "configure: failed program was:" >&5
4087   cat conftest.$ac_ext >&5
4088   rm -rf conftest*
4089   eval "ac_cv_header_$ac_safe=no"
4090 fi
4091 rm -f conftest*
4092 fi
4093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4094   echo "$ac_t""yes" 1>&6
4095     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4096   cat >> confdefs.h <<EOF
4097 #define $ac_tr_hdr 1
4098 EOF
4099  
4100 else
4101   echo "$ac_t""no" 1>&6
4102 fi
4103 done
4104
4105
4106 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4107
4108   # This lets us hard-code the functionality we know
4109   # we'll have in the cross target environment. "Let" is a
4110   # sugar-coated word placed on an especially dull and tedious hack, actually.
4111   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4112   # that involve linking can't be used:
4113   # "cannot open sim-crt0.o"
4114   # "cannot open crt0.o"
4115   # etc. All this is because there currently exists no unified,
4116   # consistent way for top level CC information to be passed down
4117   # to target directories: newlib includes, newlib linking info,
4118   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4119   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4120
4121   # We are being configured with some form of cross compiler.
4122   GLIBCPP_IS_CROSS_COMPILING=1
4123
4124   # If Canadian cross, then don't pick up tools from the build
4125   # directory.
4126   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4127     CANADIAN=yes
4128   else
4129     CANADIAN=no
4130   fi
4131
4132   # Construct crosses by hand, eliminating bits that need ld...
4133   # GLIBCPP_CHECK_COMPILER_FEATURES
4134   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4135   # GLIBCPP_CHECK_MATH_SUPPORT
4136
4137   case "$target_alias" in
4138     *-linux*)
4139       # Check for available headers.
4140       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4141         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4142         fp.h locale.h float.h inttypes.h
4143 do
4144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4146 echo "configure:4147: checking for $ac_hdr" >&5
4147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4148   echo $ac_n "(cached) $ac_c" 1>&6
4149 else
4150   cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 #include <$ac_hdr>
4154 EOF
4155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4156 { (eval echo configure:4157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4158 if test -z "$ac_err"; then
4159   rm -rf conftest*
4160   eval "ac_cv_header_$ac_safe=yes"
4161 else
4162   echo "$ac_err" >&5
4163   echo "configure: failed program was:" >&5
4164   cat conftest.$ac_ext >&5
4165   rm -rf conftest*
4166   eval "ac_cv_header_$ac_safe=no"
4167 fi
4168 rm -f conftest*
4169 fi
4170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4171   echo "$ac_t""yes" 1>&6
4172     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4173   cat >> confdefs.h <<EOF
4174 #define $ac_tr_hdr 1
4175 EOF
4176  
4177 else
4178   echo "$ac_t""no" 1>&6
4179 fi
4180 done
4181
4182       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4183       
4184       
4185   # If we're not using GNU ld, then there's no point in even trying these
4186   # tests.  Check for that first.  We should have already tested for gld
4187   # by now (in libtool), but require it now just to be safe...
4188   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4189   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4190   
4191
4192   # The name set by libtool depends on the version of libtool.  Shame on us
4193   # for depending on an impl detail, but c'est la vie.  Older versions used
4194   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4195   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4196   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4197   # set (hence we're using an older libtool), then set it.
4198   if test x${with_gnu_ld+set} != xset; then
4199     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4200       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4201       with_gnu_ld=no
4202     else
4203       with_gnu_ld=$ac_cv_prog_gnu_ld
4204     fi
4205   fi
4206
4207   # Start by getting the version number.  I think the libtool test already
4208   # does some of this, but throws away the result.
4209   
4210   ldver=`$LD --version 2>/dev/null | head -1 | \
4211          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4212   
4213   glibcpp_gnu_ld_version=`echo $ldver | \
4214          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4215
4216   # Set --gc-sections.
4217   if test "$with_gnu_ld" = "notbroken"; then
4218     # GNU ld it is!  Joy and bunny rabbits!
4219
4220     # All these tests are for C++; save the language and the compiler flags.
4221     # Need to do this so that g++ won't try to link in libstdc++
4222     ac_test_CFLAGS="${CFLAGS+set}"
4223     ac_save_CFLAGS="$CFLAGS"
4224     CFLAGS='-x c++  -Wl,--gc-sections'
4225
4226     # Check for -Wl,--gc-sections
4227     # XXX This test is broken at the moment, as symbols required for
4228     # linking are now in libsupc++ (not built yet.....). In addition, 
4229     # this test has cored on solaris in the past. In addition,
4230     # --gc-sections doesn't really work at the moment (keeps on discarding
4231     # used sections, first .eh_frame and now some of the glibc sections for
4232     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4233     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4234 echo "configure:4235: checking for ld that supports -Wl,--gc-sections" >&5
4235     if test "$cross_compiling" = yes; then
4236   ac_sectionLDflags=yes
4237 else
4238   cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241
4242      int main(void) 
4243      {
4244        try { throw 1; }
4245        catch (...) { };
4246        return 0;
4247      }
4248     
4249 EOF
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4251 then
4252   ac_sectionLDflags=yes
4253 else
4254   echo "configure: failed program was:" >&5
4255   cat conftest.$ac_ext >&5
4256   rm -fr conftest*
4257   ac_sectionLDflags=no
4258 fi
4259 rm -fr conftest*
4260 fi
4261
4262     if test "$ac_test_CFLAGS" = set; then
4263       CFLAGS="$ac_save_CFLAGS"
4264     else
4265       # this is the suspicious part
4266       CFLAGS=''
4267     fi
4268     if test "$ac_sectionLDflags" = "yes"; then
4269       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4270     fi
4271     echo "$ac_t""$ac_sectionLDflags" 1>&6
4272   fi
4273
4274   # Set linker optimization flags.
4275   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4276     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4277   fi
4278
4279   
4280   
4281
4282       
4283     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4284 echo "configure:4285: checking for main in -lm" >&5
4285 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4287   echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4289   ac_save_LIBS="$LIBS"
4290 LIBS="-lm  $LIBS"
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4294
4295 int main() {
4296 main()
4297 ; return 0; }
4298 EOF
4299 if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300   rm -rf conftest*
4301   eval "ac_cv_lib_$ac_lib_var=yes"
4302 else
4303   echo "configure: failed program was:" >&5
4304   cat conftest.$ac_ext >&5
4305   rm -rf conftest*
4306   eval "ac_cv_lib_$ac_lib_var=no"
4307 fi
4308 rm -f conftest*
4309 LIBS="$ac_save_LIBS"
4310
4311 fi
4312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313   echo "$ac_t""yes" 1>&6
4314     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4315     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4316   cat >> confdefs.h <<EOF
4317 #define $ac_tr_lib 1
4318 EOF
4319
4320   LIBS="-lm $LIBS"
4321
4322 else
4323   echo "$ac_t""no" 1>&6
4324 fi
4325
4326   for ac_func in nan copysignf
4327 do
4328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4329 echo "configure:4330: checking for $ac_func" >&5
4330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4331   echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333   cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* System header to define __stub macros and hopefully few prototypes,
4337     which can conflict with char $ac_func(); below.  */
4338 #include <assert.h>
4339 /* Override any gcc2 internal prototype to avoid an error.  */
4340 /* We use char because int might match the return type of a gcc2
4341     builtin and then its argument prototype would still apply.  */
4342 char $ac_func();
4343
4344 int main() {
4345
4346 /* The GNU C library defines this for functions which it implements
4347     to always fail with ENOSYS.  Some functions are actually named
4348     something starting with __ and the normal name is an alias.  */
4349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4350 choke me
4351 #else
4352 $ac_func();
4353 #endif
4354
4355 ; return 0; }
4356 EOF
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358   rm -rf conftest*
4359   eval "ac_cv_func_$ac_func=yes"
4360 else
4361   echo "configure: failed program was:" >&5
4362   cat conftest.$ac_ext >&5
4363   rm -rf conftest*
4364   eval "ac_cv_func_$ac_func=no"
4365 fi
4366 rm -f conftest*
4367 fi
4368
4369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4370   echo "$ac_t""yes" 1>&6
4371     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4372   cat >> confdefs.h <<EOF
4373 #define $ac_tr_func 1
4374 EOF
4375  
4376 else
4377   echo "$ac_t""no" 1>&6
4378 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4379 fi
4380 done
4381
4382
4383     for ac_func in __signbit
4384 do
4385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_func" >&5
4387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4388   echo $ac_n "(cached) $ac_c" 1>&6
4389 else
4390   cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394     which can conflict with char $ac_func(); below.  */
4395 #include <assert.h>
4396 /* Override any gcc2 internal prototype to avoid an error.  */
4397 /* We use char because int might match the return type of a gcc2
4398     builtin and then its argument prototype would still apply.  */
4399 char $ac_func();
4400
4401 int main() {
4402
4403 /* The GNU C library defines this for functions which it implements
4404     to always fail with ENOSYS.  Some functions are actually named
4405     something starting with __ and the normal name is an alias.  */
4406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4407 choke me
4408 #else
4409 $ac_func();
4410 #endif
4411
4412 ; return 0; }
4413 EOF
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4415   rm -rf conftest*
4416   eval "ac_cv_func_$ac_func=yes"
4417 else
4418   echo "configure: failed program was:" >&5
4419   cat conftest.$ac_ext >&5
4420   rm -rf conftest*
4421   eval "ac_cv_func_$ac_func=no"
4422 fi
4423 rm -f conftest*
4424 fi
4425
4426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4427   echo "$ac_t""yes" 1>&6
4428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4429   cat >> confdefs.h <<EOF
4430 #define $ac_tr_func 1
4431 EOF
4432  
4433 else
4434   echo "$ac_t""no" 1>&6
4435 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4436 fi
4437 done
4438
4439   for ac_func in __signbitf
4440 do
4441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4442 echo "configure:4443: checking for $ac_func" >&5
4443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4444   echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446   cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 /* System header to define __stub macros and hopefully few prototypes,
4450     which can conflict with char $ac_func(); below.  */
4451 #include <assert.h>
4452 /* Override any gcc2 internal prototype to avoid an error.  */
4453 /* We use char because int might match the return type of a gcc2
4454     builtin and then its argument prototype would still apply.  */
4455 char $ac_func();
4456
4457 int main() {
4458
4459 /* The GNU C library defines this for functions which it implements
4460     to always fail with ENOSYS.  Some functions are actually named
4461     something starting with __ and the normal name is an alias.  */
4462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4463 choke me
4464 #else
4465 $ac_func();
4466 #endif
4467
4468 ; return 0; }
4469 EOF
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471   rm -rf conftest*
4472   eval "ac_cv_func_$ac_func=yes"
4473 else
4474   echo "configure: failed program was:" >&5
4475   cat conftest.$ac_ext >&5
4476   rm -rf conftest*
4477   eval "ac_cv_func_$ac_func=no"
4478 fi
4479 rm -f conftest*
4480 fi
4481
4482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4483   echo "$ac_t""yes" 1>&6
4484     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4485   cat >> confdefs.h <<EOF
4486 #define $ac_tr_func 1
4487 EOF
4488  
4489 else
4490   echo "$ac_t""no" 1>&6
4491 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4492 fi
4493 done
4494
4495
4496           if test x$ac_cv_func_copysignl = x"yes"; then
4497     for ac_func in __signbitl
4498 do
4499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_func" >&5
4501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4502   echo $ac_n "(cached) $ac_c" 1>&6
4503 else
4504   cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* System header to define __stub macros and hopefully few prototypes,
4508     which can conflict with char $ac_func(); below.  */
4509 #include <assert.h>
4510 /* Override any gcc2 internal prototype to avoid an error.  */
4511 /* We use char because int might match the return type of a gcc2
4512     builtin and then its argument prototype would still apply.  */
4513 char $ac_func();
4514
4515 int main() {
4516
4517 /* The GNU C library defines this for functions which it implements
4518     to always fail with ENOSYS.  Some functions are actually named
4519     something starting with __ and the normal name is an alias.  */
4520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4521 choke me
4522 #else
4523 $ac_func();
4524 #endif
4525
4526 ; return 0; }
4527 EOF
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4529   rm -rf conftest*
4530   eval "ac_cv_func_$ac_func=yes"
4531 else
4532   echo "configure: failed program was:" >&5
4533   cat conftest.$ac_ext >&5
4534   rm -rf conftest*
4535   eval "ac_cv_func_$ac_func=no"
4536 fi
4537 rm -f conftest*
4538 fi
4539
4540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4541   echo "$ac_t""yes" 1>&6
4542     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4543   cat >> confdefs.h <<EOF
4544 #define $ac_tr_func 1
4545 EOF
4546  
4547 else
4548   echo "$ac_t""no" 1>&6
4549 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4550 fi
4551 done
4552
4553   fi
4554
4555   
4556
4557       
4558
4559       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4560 echo "configure:4561: checking for mbstate_t" >&5
4561   cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <wchar.h>
4565 int main() {
4566 mbstate_t teststate;
4567 ; return 0; }
4568 EOF
4569 if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4570   rm -rf conftest*
4571   have_mbstate_t=yes
4572 else
4573   echo "configure: failed program was:" >&5
4574   cat conftest.$ac_ext >&5
4575   rm -rf conftest*
4576   have_mbstate_t=no
4577 fi
4578 rm -f conftest*
4579   echo "$ac_t""$have_mbstate_t" 1>&6
4580   if test x"$have_mbstate_t" = xyes; then
4581     cat >> confdefs.h <<\EOF
4582 #define HAVE_MBSTATE_T 1
4583 EOF
4584
4585   fi
4586
4587     for ac_hdr in wchar.h
4588 do
4589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_hdr" >&5
4592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4593   echo $ac_n "(cached) $ac_c" 1>&6
4594 else
4595   cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 #include <$ac_hdr>
4599 EOF
4600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4601 { (eval echo configure:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4603 if test -z "$ac_err"; then
4604   rm -rf conftest*
4605   eval "ac_cv_header_$ac_safe=yes"
4606 else
4607   echo "$ac_err" >&5
4608   echo "configure: failed program was:" >&5
4609   cat conftest.$ac_ext >&5
4610   rm -rf conftest*
4611   eval "ac_cv_header_$ac_safe=no"
4612 fi
4613 rm -f conftest*
4614 fi
4615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4616   echo "$ac_t""yes" 1>&6
4617     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4618   cat >> confdefs.h <<EOF
4619 #define $ac_tr_hdr 1
4620 EOF
4621  ac_has_wchar_h=yes
4622 else
4623   echo "$ac_t""no" 1>&6
4624 ac_has_wchar_h=no
4625 fi
4626 done
4627
4628   for ac_hdr in wctype.h
4629 do
4630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4632 echo "configure:4633: checking for $ac_hdr" >&5
4633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4634   echo $ac_n "(cached) $ac_c" 1>&6
4635 else
4636   cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4639 #include <$ac_hdr>
4640 EOF
4641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4642 { (eval echo configure:4643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4644 if test -z "$ac_err"; then
4645   rm -rf conftest*
4646   eval "ac_cv_header_$ac_safe=yes"
4647 else
4648   echo "$ac_err" >&5
4649   echo "configure: failed program was:" >&5
4650   cat conftest.$ac_ext >&5
4651   rm -rf conftest*
4652   eval "ac_cv_header_$ac_safe=no"
4653 fi
4654 rm -f conftest*
4655 fi
4656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4657   echo "$ac_t""yes" 1>&6
4658     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4659   cat >> confdefs.h <<EOF
4660 #define $ac_tr_hdr 1
4661 EOF
4662  ac_has_wctype_h=yes
4663 else
4664   echo "$ac_t""no" 1>&6
4665 ac_has_wctype_h=no
4666 fi
4667 done
4668
4669   
4670     if test x"$ac_has_wchar_h" = xyes &&
4671      test x"$ac_has_wctype_h" = xyes &&
4672      test x"$enable_c_mbchar" != xno; then
4673       
4674             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4675 echo "configure:4676: checking for WCHAR_MIN and WCHAR_MAX" >&5
4676     cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <wchar.h>
4680 int main() {
4681 int i = WCHAR_MIN; int j = WCHAR_MAX;
4682 ; return 0; }
4683 EOF
4684 if { (eval echo configure:4685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4685   rm -rf conftest*
4686   has_wchar_minmax=yes
4687 else
4688   echo "configure: failed program was:" >&5
4689   cat conftest.$ac_ext >&5
4690   rm -rf conftest*
4691   has_wchar_minmax=no
4692 fi
4693 rm -f conftest*
4694     echo "$ac_t""$has_wchar_minmax" 1>&6
4695     
4696             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4697 echo "configure:4698: checking for WEOF" >&5
4698     cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701
4702       #include <wchar.h>
4703       #include <stddef.h>
4704 int main() {
4705 wint_t i = WEOF;
4706 ; return 0; }
4707 EOF
4708 if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709   rm -rf conftest*
4710   has_weof=yes
4711 else
4712   echo "configure: failed program was:" >&5
4713   cat conftest.$ac_ext >&5
4714   rm -rf conftest*
4715   has_weof=no
4716 fi
4717 rm -f conftest*
4718     echo "$ac_t""$has_weof" 1>&6
4719   
4720         ac_wfuncs=yes
4721     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4722 do
4723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4724 echo "configure:4725: checking for $ac_func" >&5
4725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4726   echo $ac_n "(cached) $ac_c" 1>&6
4727 else
4728   cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 /* System header to define __stub macros and hopefully few prototypes,
4732     which can conflict with char $ac_func(); below.  */
4733 #include <assert.h>
4734 /* Override any gcc2 internal prototype to avoid an error.  */
4735 /* We use char because int might match the return type of a gcc2
4736     builtin and then its argument prototype would still apply.  */
4737 char $ac_func();
4738
4739 int main() {
4740
4741 /* The GNU C library defines this for functions which it implements
4742     to always fail with ENOSYS.  Some functions are actually named
4743     something starting with __ and the normal name is an alias.  */
4744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4745 choke me
4746 #else
4747 $ac_func();
4748 #endif
4749
4750 ; return 0; }
4751 EOF
4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4753   rm -rf conftest*
4754   eval "ac_cv_func_$ac_func=yes"
4755 else
4756   echo "configure: failed program was:" >&5
4757   cat conftest.$ac_ext >&5
4758   rm -rf conftest*
4759   eval "ac_cv_func_$ac_func=no"
4760 fi
4761 rm -f conftest*
4762 fi
4763
4764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4765   echo "$ac_t""yes" 1>&6
4766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4767   cat >> confdefs.h <<EOF
4768 #define $ac_tr_func 1
4769 EOF
4770  
4771 else
4772   echo "$ac_t""no" 1>&6
4773 \
4774     ac_wfuncs=no
4775 fi
4776 done
4777
4778   
4779         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4780     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4781     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4782     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4783     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4784     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4785 do
4786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_func" >&5
4788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4789   echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791   cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 /* System header to define __stub macros and hopefully few prototypes,
4795     which can conflict with char $ac_func(); below.  */
4796 #include <assert.h>
4797 /* Override any gcc2 internal prototype to avoid an error.  */
4798 /* We use char because int might match the return type of a gcc2
4799     builtin and then its argument prototype would still apply.  */
4800 char $ac_func();
4801
4802 int main() {
4803
4804 /* The GNU C library defines this for functions which it implements
4805     to always fail with ENOSYS.  Some functions are actually named
4806     something starting with __ and the normal name is an alias.  */
4807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4808 choke me
4809 #else
4810 $ac_func();
4811 #endif
4812
4813 ; return 0; }
4814 EOF
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4816   rm -rf conftest*
4817   eval "ac_cv_func_$ac_func=yes"
4818 else
4819   echo "configure: failed program was:" >&5
4820   cat conftest.$ac_ext >&5
4821   rm -rf conftest*
4822   eval "ac_cv_func_$ac_func=no"
4823 fi
4824 rm -f conftest*
4825 fi
4826
4827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4828   echo "$ac_t""yes" 1>&6
4829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4830   cat >> confdefs.h <<EOF
4831 #define $ac_tr_func 1
4832 EOF
4833  
4834 else
4835   echo "$ac_t""no" 1>&6
4836 \
4837     ac_wfuncs=no
4838 fi
4839 done
4840
4841
4842     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4843 echo "configure:4844: checking for ISO C99 wchar_t support" >&5
4844     if test x"$has_weof" = xyes &&
4845        test x"$has_wchar_minmax" = xyes &&
4846        test x"$ac_wfuncs" = xyes; then
4847       ac_isoC99_wchar_t=yes
4848     else
4849       ac_isoC99_wchar_t=no
4850     fi
4851     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4852   
4853             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4854 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4855 echo "configure:4856: checking for iconv.h" >&5
4856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4857   echo $ac_n "(cached) $ac_c" 1>&6
4858 else
4859   cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 #include <iconv.h>
4863 EOF
4864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4865 { (eval echo configure:4866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4867 if test -z "$ac_err"; then
4868   rm -rf conftest*
4869   eval "ac_cv_header_$ac_safe=yes"
4870 else
4871   echo "$ac_err" >&5
4872   echo "configure: failed program was:" >&5
4873   cat conftest.$ac_ext >&5
4874   rm -rf conftest*
4875   eval "ac_cv_header_$ac_safe=no"
4876 fi
4877 rm -f conftest*
4878 fi
4879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4880   echo "$ac_t""yes" 1>&6
4881   ac_has_iconv_h=yes
4882 else
4883   echo "$ac_t""no" 1>&6
4884 ac_has_iconv_h=no
4885 fi
4886
4887     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4888 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4889 echo "configure:4890: checking for langinfo.h" >&5
4890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4891   echo $ac_n "(cached) $ac_c" 1>&6
4892 else
4893   cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <langinfo.h>
4897 EOF
4898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4899 { (eval echo configure:4900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4901 if test -z "$ac_err"; then
4902   rm -rf conftest*
4903   eval "ac_cv_header_$ac_safe=yes"
4904 else
4905   echo "$ac_err" >&5
4906   echo "configure: failed program was:" >&5
4907   cat conftest.$ac_ext >&5
4908   rm -rf conftest*
4909   eval "ac_cv_header_$ac_safe=no"
4910 fi
4911 rm -f conftest*
4912 fi
4913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4914   echo "$ac_t""yes" 1>&6
4915   ac_has_langinfo_h=yes
4916 else
4917   echo "$ac_t""no" 1>&6
4918 ac_has_langinfo_h=no
4919 fi
4920
4921
4922         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4923 echo "configure:4924: checking for iconv in -liconv" >&5
4924 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4926   echo $ac_n "(cached) $ac_c" 1>&6
4927 else
4928   ac_save_LIBS="$LIBS"
4929 LIBS="-liconv  $LIBS"
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* Override any gcc2 internal prototype to avoid an error.  */
4934 /* We use char because int might match the return type of a gcc2
4935     builtin and then its argument prototype would still apply.  */
4936 char iconv();
4937
4938 int main() {
4939 iconv()
4940 ; return 0; }
4941 EOF
4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943   rm -rf conftest*
4944   eval "ac_cv_lib_$ac_lib_var=yes"
4945 else
4946   echo "configure: failed program was:" >&5
4947   cat conftest.$ac_ext >&5
4948   rm -rf conftest*
4949   eval "ac_cv_lib_$ac_lib_var=no"
4950 fi
4951 rm -f conftest*
4952 LIBS="$ac_save_LIBS"
4953
4954 fi
4955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4956   echo "$ac_t""yes" 1>&6
4957   libiconv="-liconv"
4958 else
4959   echo "$ac_t""no" 1>&6
4960 fi
4961
4962     ac_save_LIBS="$LIBS"
4963     LIBS="$LIBS $libiconv"
4964
4965     for ac_func in iconv_open iconv_close iconv nl_langinfo
4966 do
4967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4968 echo "configure:4969: checking for $ac_func" >&5
4969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4970   echo $ac_n "(cached) $ac_c" 1>&6
4971 else
4972   cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4975 /* System header to define __stub macros and hopefully few prototypes,
4976     which can conflict with char $ac_func(); below.  */
4977 #include <assert.h>
4978 /* Override any gcc2 internal prototype to avoid an error.  */
4979 /* We use char because int might match the return type of a gcc2
4980     builtin and then its argument prototype would still apply.  */
4981 char $ac_func();
4982
4983 int main() {
4984
4985 /* The GNU C library defines this for functions which it implements
4986     to always fail with ENOSYS.  Some functions are actually named
4987     something starting with __ and the normal name is an alias.  */
4988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4989 choke me
4990 #else
4991 $ac_func();
4992 #endif
4993
4994 ; return 0; }
4995 EOF
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997   rm -rf conftest*
4998   eval "ac_cv_func_$ac_func=yes"
4999 else
5000   echo "configure: failed program was:" >&5
5001   cat conftest.$ac_ext >&5
5002   rm -rf conftest*
5003   eval "ac_cv_func_$ac_func=no"
5004 fi
5005 rm -f conftest*
5006 fi
5007
5008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5009   echo "$ac_t""yes" 1>&6
5010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5011   cat >> confdefs.h <<EOF
5012 #define $ac_tr_func 1
5013 EOF
5014  \
5015     ac_XPG2funcs=yes
5016 else
5017   echo "$ac_t""no" 1>&6
5018 ac_XPG2funcs=no
5019 fi
5020 done
5021
5022   
5023     LIBS="$ac_save_LIBS"
5024
5025     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5026 echo "configure:5027: checking for XPG2 wchar_t support" >&5
5027     if test x"$ac_has_iconv_h" = xyes &&
5028        test x"$ac_has_langinfo_h" = xyes &&
5029        test x"$ac_XPG2funcs" = xyes; then
5030       ac_XPG2_wchar_t=yes
5031     else
5032       ac_XPG2_wchar_t=no
5033     fi
5034     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5035   
5036             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5037 echo "configure:5038: checking for enabled wchar_t specializations" >&5
5038     if test x"$ac_isoC99_wchar_t" = xyes &&
5039        test x"$ac_XPG2_wchar_t" = xyes; then
5040       cat >> confdefs.h <<\EOF
5041 #define _GLIBCPP_USE_WCHAR_T 1
5042 EOF
5043
5044       echo "$ac_t"""yes"" 1>&6
5045     else
5046       echo "$ac_t"""no"" 1>&6
5047     fi
5048   else
5049         echo "configure: warning: wchar_t support disabled." 1>&2
5050   fi
5051
5052       os_include_dir="config/os/gnu-linux"
5053       cat >> confdefs.h <<\EOF
5054 #define HAVE_COPYSIGN 1
5055 EOF
5056
5057       cat >> confdefs.h <<\EOF
5058 #define HAVE_COPYSIGNF 1
5059 EOF
5060
5061       cat >> confdefs.h <<\EOF
5062 #define HAVE_FINITEF 1
5063 EOF
5064
5065       cat >> confdefs.h <<\EOF
5066 #define HAVE_FREXPF 1
5067 EOF
5068
5069       cat >> confdefs.h <<\EOF
5070 #define HAVE_HYPOTF 1
5071 EOF
5072
5073       cat >> confdefs.h <<\EOF
5074 #define HAVE_SINCOS 1
5075 EOF
5076
5077       cat >> confdefs.h <<\EOF
5078 #define HAVE_SINCOSF 1
5079 EOF
5080
5081       if test x"long_double_math_on_this_cpu" = x"yes"; then
5082         cat >> confdefs.h <<\EOF
5083 #define HAVE_HYPOTL 1
5084 EOF
5085
5086       fi
5087       ;;
5088     *-hpux*)
5089       # Check for available headers.
5090       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5091         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5092         fp.h locale.h float.h inttypes.h
5093 do
5094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_hdr" >&5
5097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5098   echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100   cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 #include <$ac_hdr>
5104 EOF
5105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5106 { (eval echo configure:5107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5108 if test -z "$ac_err"; then
5109   rm -rf conftest*
5110   eval "ac_cv_header_$ac_safe=yes"
5111 else
5112   echo "$ac_err" >&5
5113   echo "configure: failed program was:" >&5
5114   cat conftest.$ac_ext >&5
5115   rm -rf conftest*
5116   eval "ac_cv_header_$ac_safe=no"
5117 fi
5118 rm -f conftest*
5119 fi
5120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5121   echo "$ac_t""yes" 1>&6
5122     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5123   cat >> confdefs.h <<EOF
5124 #define $ac_tr_hdr 1
5125 EOF
5126  
5127 else
5128   echo "$ac_t""no" 1>&6
5129 fi
5130 done
5131
5132       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5133       
5134       
5135   # If we're not using GNU ld, then there's no point in even trying these
5136   # tests.  Check for that first.  We should have already tested for gld
5137   # by now (in libtool), but require it now just to be safe...
5138   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5139   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5140   
5141
5142   # The name set by libtool depends on the version of libtool.  Shame on us
5143   # for depending on an impl detail, but c'est la vie.  Older versions used
5144   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5145   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5146   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5147   # set (hence we're using an older libtool), then set it.
5148   if test x${with_gnu_ld+set} != xset; then
5149     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5150       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5151       with_gnu_ld=no
5152     else
5153       with_gnu_ld=$ac_cv_prog_gnu_ld
5154     fi
5155   fi
5156
5157   # Start by getting the version number.  I think the libtool test already
5158   # does some of this, but throws away the result.
5159   
5160   ldver=`$LD --version 2>/dev/null | head -1 | \
5161          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5162   
5163   glibcpp_gnu_ld_version=`echo $ldver | \
5164          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5165
5166   # Set --gc-sections.
5167   if test "$with_gnu_ld" = "notbroken"; then
5168     # GNU ld it is!  Joy and bunny rabbits!
5169
5170     # All these tests are for C++; save the language and the compiler flags.
5171     # Need to do this so that g++ won't try to link in libstdc++
5172     ac_test_CFLAGS="${CFLAGS+set}"
5173     ac_save_CFLAGS="$CFLAGS"
5174     CFLAGS='-x c++  -Wl,--gc-sections'
5175
5176     # Check for -Wl,--gc-sections
5177     # XXX This test is broken at the moment, as symbols required for
5178     # linking are now in libsupc++ (not built yet.....). In addition, 
5179     # this test has cored on solaris in the past. In addition,
5180     # --gc-sections doesn't really work at the moment (keeps on discarding
5181     # used sections, first .eh_frame and now some of the glibc sections for
5182     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5183     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5184 echo "configure:5185: checking for ld that supports -Wl,--gc-sections" >&5
5185     if test "$cross_compiling" = yes; then
5186   ac_sectionLDflags=yes
5187 else
5188   cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191
5192      int main(void) 
5193      {
5194        try { throw 1; }
5195        catch (...) { };
5196        return 0;
5197      }
5198     
5199 EOF
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5201 then
5202   ac_sectionLDflags=yes
5203 else
5204   echo "configure: failed program was:" >&5
5205   cat conftest.$ac_ext >&5
5206   rm -fr conftest*
5207   ac_sectionLDflags=no
5208 fi
5209 rm -fr conftest*
5210 fi
5211
5212     if test "$ac_test_CFLAGS" = set; then
5213       CFLAGS="$ac_save_CFLAGS"
5214     else
5215       # this is the suspicious part
5216       CFLAGS=''
5217     fi
5218     if test "$ac_sectionLDflags" = "yes"; then
5219       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5220     fi
5221     echo "$ac_t""$ac_sectionLDflags" 1>&6
5222   fi
5223
5224   # Set linker optimization flags.
5225   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5226     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5227   fi
5228
5229   
5230   
5231
5232       
5233     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5234 echo "configure:5235: checking for main in -lm" >&5
5235 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5237   echo $ac_n "(cached) $ac_c" 1>&6
5238 else
5239   ac_save_LIBS="$LIBS"
5240 LIBS="-lm  $LIBS"
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5244
5245 int main() {
5246 main()
5247 ; return 0; }
5248 EOF
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250   rm -rf conftest*
5251   eval "ac_cv_lib_$ac_lib_var=yes"
5252 else
5253   echo "configure: failed program was:" >&5
5254   cat conftest.$ac_ext >&5
5255   rm -rf conftest*
5256   eval "ac_cv_lib_$ac_lib_var=no"
5257 fi
5258 rm -f conftest*
5259 LIBS="$ac_save_LIBS"
5260
5261 fi
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263   echo "$ac_t""yes" 1>&6
5264     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5265     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5266   cat >> confdefs.h <<EOF
5267 #define $ac_tr_lib 1
5268 EOF
5269
5270   LIBS="-lm $LIBS"
5271
5272 else
5273   echo "$ac_t""no" 1>&6
5274 fi
5275
5276   for ac_func in nan copysignf
5277 do
5278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5279 echo "configure:5280: checking for $ac_func" >&5
5280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5281   echo $ac_n "(cached) $ac_c" 1>&6
5282 else
5283   cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5286 /* System header to define __stub macros and hopefully few prototypes,
5287     which can conflict with char $ac_func(); below.  */
5288 #include <assert.h>
5289 /* Override any gcc2 internal prototype to avoid an error.  */
5290 /* We use char because int might match the return type of a gcc2
5291     builtin and then its argument prototype would still apply.  */
5292 char $ac_func();
5293
5294 int main() {
5295
5296 /* The GNU C library defines this for functions which it implements
5297     to always fail with ENOSYS.  Some functions are actually named
5298     something starting with __ and the normal name is an alias.  */
5299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5300 choke me
5301 #else
5302 $ac_func();
5303 #endif
5304
5305 ; return 0; }
5306 EOF
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308   rm -rf conftest*
5309   eval "ac_cv_func_$ac_func=yes"
5310 else
5311   echo "configure: failed program was:" >&5
5312   cat conftest.$ac_ext >&5
5313   rm -rf conftest*
5314   eval "ac_cv_func_$ac_func=no"
5315 fi
5316 rm -f conftest*
5317 fi
5318
5319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5320   echo "$ac_t""yes" 1>&6
5321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5322   cat >> confdefs.h <<EOF
5323 #define $ac_tr_func 1
5324 EOF
5325  
5326 else
5327   echo "$ac_t""no" 1>&6
5328 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5329 fi
5330 done
5331
5332
5333     for ac_func in __signbit
5334 do
5335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_func" >&5
5337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5338   echo $ac_n "(cached) $ac_c" 1>&6
5339 else
5340   cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 /* System header to define __stub macros and hopefully few prototypes,
5344     which can conflict with char $ac_func(); below.  */
5345 #include <assert.h>
5346 /* Override any gcc2 internal prototype to avoid an error.  */
5347 /* We use char because int might match the return type of a gcc2
5348     builtin and then its argument prototype would still apply.  */
5349 char $ac_func();
5350
5351 int main() {
5352
5353 /* The GNU C library defines this for functions which it implements
5354     to always fail with ENOSYS.  Some functions are actually named
5355     something starting with __ and the normal name is an alias.  */
5356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5357 choke me
5358 #else
5359 $ac_func();
5360 #endif
5361
5362 ; return 0; }
5363 EOF
5364 if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5365   rm -rf conftest*
5366   eval "ac_cv_func_$ac_func=yes"
5367 else
5368   echo "configure: failed program was:" >&5
5369   cat conftest.$ac_ext >&5
5370   rm -rf conftest*
5371   eval "ac_cv_func_$ac_func=no"
5372 fi
5373 rm -f conftest*
5374 fi
5375
5376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5377   echo "$ac_t""yes" 1>&6
5378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5379   cat >> confdefs.h <<EOF
5380 #define $ac_tr_func 1
5381 EOF
5382  
5383 else
5384   echo "$ac_t""no" 1>&6
5385 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5386 fi
5387 done
5388
5389   for ac_func in __signbitf
5390 do
5391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_func" >&5
5393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5394   echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5396   cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 /* System header to define __stub macros and hopefully few prototypes,
5400     which can conflict with char $ac_func(); below.  */
5401 #include <assert.h>
5402 /* Override any gcc2 internal prototype to avoid an error.  */
5403 /* We use char because int might match the return type of a gcc2
5404     builtin and then its argument prototype would still apply.  */
5405 char $ac_func();
5406
5407 int main() {
5408
5409 /* The GNU C library defines this for functions which it implements
5410     to always fail with ENOSYS.  Some functions are actually named
5411     something starting with __ and the normal name is an alias.  */
5412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5413 choke me
5414 #else
5415 $ac_func();
5416 #endif
5417
5418 ; return 0; }
5419 EOF
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421   rm -rf conftest*
5422   eval "ac_cv_func_$ac_func=yes"
5423 else
5424   echo "configure: failed program was:" >&5
5425   cat conftest.$ac_ext >&5
5426   rm -rf conftest*
5427   eval "ac_cv_func_$ac_func=no"
5428 fi
5429 rm -f conftest*
5430 fi
5431
5432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5433   echo "$ac_t""yes" 1>&6
5434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5435   cat >> confdefs.h <<EOF
5436 #define $ac_tr_func 1
5437 EOF
5438  
5439 else
5440   echo "$ac_t""no" 1>&6
5441 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5442 fi
5443 done
5444
5445
5446           if test x$ac_cv_func_copysignl = x"yes"; then
5447     for ac_func in __signbitl
5448 do
5449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5450 echo "configure:5451: checking for $ac_func" >&5
5451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5452   echo $ac_n "(cached) $ac_c" 1>&6
5453 else
5454   cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 /* System header to define __stub macros and hopefully few prototypes,
5458     which can conflict with char $ac_func(); below.  */
5459 #include <assert.h>
5460 /* Override any gcc2 internal prototype to avoid an error.  */
5461 /* We use char because int might match the return type of a gcc2
5462     builtin and then its argument prototype would still apply.  */
5463 char $ac_func();
5464
5465 int main() {
5466
5467 /* The GNU C library defines this for functions which it implements
5468     to always fail with ENOSYS.  Some functions are actually named
5469     something starting with __ and the normal name is an alias.  */
5470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 choke me
5472 #else
5473 $ac_func();
5474 #endif
5475
5476 ; return 0; }
5477 EOF
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5479   rm -rf conftest*
5480   eval "ac_cv_func_$ac_func=yes"
5481 else
5482   echo "configure: failed program was:" >&5
5483   cat conftest.$ac_ext >&5
5484   rm -rf conftest*
5485   eval "ac_cv_func_$ac_func=no"
5486 fi
5487 rm -f conftest*
5488 fi
5489
5490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5491   echo "$ac_t""yes" 1>&6
5492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5493   cat >> confdefs.h <<EOF
5494 #define $ac_tr_func 1
5495 EOF
5496  
5497 else
5498   echo "$ac_t""no" 1>&6
5499 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5500 fi
5501 done
5502
5503   fi
5504
5505   
5506
5507       
5508
5509       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5510 echo "configure:5511: checking for mbstate_t" >&5
5511   cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 #include <wchar.h>
5515 int main() {
5516 mbstate_t teststate;
5517 ; return 0; }
5518 EOF
5519 if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5520   rm -rf conftest*
5521   have_mbstate_t=yes
5522 else
5523   echo "configure: failed program was:" >&5
5524   cat conftest.$ac_ext >&5
5525   rm -rf conftest*
5526   have_mbstate_t=no
5527 fi
5528 rm -f conftest*
5529   echo "$ac_t""$have_mbstate_t" 1>&6
5530   if test x"$have_mbstate_t" = xyes; then
5531     cat >> confdefs.h <<\EOF
5532 #define HAVE_MBSTATE_T 1
5533 EOF
5534
5535   fi
5536
5537     for ac_hdr in wchar.h
5538 do
5539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_hdr" >&5
5542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5543   echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545   cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 #include <$ac_hdr>
5549 EOF
5550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5551 { (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5553 if test -z "$ac_err"; then
5554   rm -rf conftest*
5555   eval "ac_cv_header_$ac_safe=yes"
5556 else
5557   echo "$ac_err" >&5
5558   echo "configure: failed program was:" >&5
5559   cat conftest.$ac_ext >&5
5560   rm -rf conftest*
5561   eval "ac_cv_header_$ac_safe=no"
5562 fi
5563 rm -f conftest*
5564 fi
5565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5566   echo "$ac_t""yes" 1>&6
5567     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5568   cat >> confdefs.h <<EOF
5569 #define $ac_tr_hdr 1
5570 EOF
5571  ac_has_wchar_h=yes
5572 else
5573   echo "$ac_t""no" 1>&6
5574 ac_has_wchar_h=no
5575 fi
5576 done
5577
5578   for ac_hdr in wctype.h
5579 do
5580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_hdr" >&5
5583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5584   echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586   cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 #include <$ac_hdr>
5590 EOF
5591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5592 { (eval echo configure:5593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5594 if test -z "$ac_err"; then
5595   rm -rf conftest*
5596   eval "ac_cv_header_$ac_safe=yes"
5597 else
5598   echo "$ac_err" >&5
5599   echo "configure: failed program was:" >&5
5600   cat conftest.$ac_ext >&5
5601   rm -rf conftest*
5602   eval "ac_cv_header_$ac_safe=no"
5603 fi
5604 rm -f conftest*
5605 fi
5606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5607   echo "$ac_t""yes" 1>&6
5608     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5609   cat >> confdefs.h <<EOF
5610 #define $ac_tr_hdr 1
5611 EOF
5612  ac_has_wctype_h=yes
5613 else
5614   echo "$ac_t""no" 1>&6
5615 ac_has_wctype_h=no
5616 fi
5617 done
5618
5619   
5620     if test x"$ac_has_wchar_h" = xyes &&
5621      test x"$ac_has_wctype_h" = xyes &&
5622      test x"$enable_c_mbchar" != xno; then
5623       
5624             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5625 echo "configure:5626: checking for WCHAR_MIN and WCHAR_MAX" >&5
5626     cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5629 #include <wchar.h>
5630 int main() {
5631 int i = WCHAR_MIN; int j = WCHAR_MAX;
5632 ; return 0; }
5633 EOF
5634 if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5635   rm -rf conftest*
5636   has_wchar_minmax=yes
5637 else
5638   echo "configure: failed program was:" >&5
5639   cat conftest.$ac_ext >&5
5640   rm -rf conftest*
5641   has_wchar_minmax=no
5642 fi
5643 rm -f conftest*
5644     echo "$ac_t""$has_wchar_minmax" 1>&6
5645     
5646             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5647 echo "configure:5648: checking for WEOF" >&5
5648     cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651
5652       #include <wchar.h>
5653       #include <stddef.h>
5654 int main() {
5655 wint_t i = WEOF;
5656 ; return 0; }
5657 EOF
5658 if { (eval echo configure:5659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5659   rm -rf conftest*
5660   has_weof=yes
5661 else
5662   echo "configure: failed program was:" >&5
5663   cat conftest.$ac_ext >&5
5664   rm -rf conftest*
5665   has_weof=no
5666 fi
5667 rm -f conftest*
5668     echo "$ac_t""$has_weof" 1>&6
5669   
5670         ac_wfuncs=yes
5671     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5672 do
5673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5674 echo "configure:5675: checking for $ac_func" >&5
5675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5676   echo $ac_n "(cached) $ac_c" 1>&6
5677 else
5678   cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5681 /* System header to define __stub macros and hopefully few prototypes,
5682     which can conflict with char $ac_func(); below.  */
5683 #include <assert.h>
5684 /* Override any gcc2 internal prototype to avoid an error.  */
5685 /* We use char because int might match the return type of a gcc2
5686     builtin and then its argument prototype would still apply.  */
5687 char $ac_func();
5688
5689 int main() {
5690
5691 /* The GNU C library defines this for functions which it implements
5692     to always fail with ENOSYS.  Some functions are actually named
5693     something starting with __ and the normal name is an alias.  */
5694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5695 choke me
5696 #else
5697 $ac_func();
5698 #endif
5699
5700 ; return 0; }
5701 EOF
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703   rm -rf conftest*
5704   eval "ac_cv_func_$ac_func=yes"
5705 else
5706   echo "configure: failed program was:" >&5
5707   cat conftest.$ac_ext >&5
5708   rm -rf conftest*
5709   eval "ac_cv_func_$ac_func=no"
5710 fi
5711 rm -f conftest*
5712 fi
5713
5714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5715   echo "$ac_t""yes" 1>&6
5716     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5717   cat >> confdefs.h <<EOF
5718 #define $ac_tr_func 1
5719 EOF
5720  
5721 else
5722   echo "$ac_t""no" 1>&6
5723 \
5724     ac_wfuncs=no
5725 fi
5726 done
5727
5728   
5729         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5730     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5731     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5732     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5733     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5734     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5735 do
5736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_func" >&5
5738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5739   echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5741   cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes,
5745     which can conflict with char $ac_func(); below.  */
5746 #include <assert.h>
5747 /* Override any gcc2 internal prototype to avoid an error.  */
5748 /* We use char because int might match the return type of a gcc2
5749     builtin and then its argument prototype would still apply.  */
5750 char $ac_func();
5751
5752 int main() {
5753
5754 /* The GNU C library defines this for functions which it implements
5755     to always fail with ENOSYS.  Some functions are actually named
5756     something starting with __ and the normal name is an alias.  */
5757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758 choke me
5759 #else
5760 $ac_func();
5761 #endif
5762
5763 ; return 0; }
5764 EOF
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766   rm -rf conftest*
5767   eval "ac_cv_func_$ac_func=yes"
5768 else
5769   echo "configure: failed program was:" >&5
5770   cat conftest.$ac_ext >&5
5771   rm -rf conftest*
5772   eval "ac_cv_func_$ac_func=no"
5773 fi
5774 rm -f conftest*
5775 fi
5776
5777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5778   echo "$ac_t""yes" 1>&6
5779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5780   cat >> confdefs.h <<EOF
5781 #define $ac_tr_func 1
5782 EOF
5783  
5784 else
5785   echo "$ac_t""no" 1>&6
5786 \
5787     ac_wfuncs=no
5788 fi
5789 done
5790
5791
5792     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5793 echo "configure:5794: checking for ISO C99 wchar_t support" >&5
5794     if test x"$has_weof" = xyes &&
5795        test x"$has_wchar_minmax" = xyes &&
5796        test x"$ac_wfuncs" = xyes; then
5797       ac_isoC99_wchar_t=yes
5798     else
5799       ac_isoC99_wchar_t=no
5800     fi
5801     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5802   
5803             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5805 echo "configure:5806: checking for iconv.h" >&5
5806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5807   echo $ac_n "(cached) $ac_c" 1>&6
5808 else
5809   cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <iconv.h>
5813 EOF
5814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5815 { (eval echo configure:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5817 if test -z "$ac_err"; then
5818   rm -rf conftest*
5819   eval "ac_cv_header_$ac_safe=yes"
5820 else
5821   echo "$ac_err" >&5
5822   echo "configure: failed program was:" >&5
5823   cat conftest.$ac_ext >&5
5824   rm -rf conftest*
5825   eval "ac_cv_header_$ac_safe=no"
5826 fi
5827 rm -f conftest*
5828 fi
5829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5830   echo "$ac_t""yes" 1>&6
5831   ac_has_iconv_h=yes
5832 else
5833   echo "$ac_t""no" 1>&6
5834 ac_has_iconv_h=no
5835 fi
5836
5837     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5838 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5839 echo "configure:5840: checking for langinfo.h" >&5
5840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5841   echo $ac_n "(cached) $ac_c" 1>&6
5842 else
5843   cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5846 #include <langinfo.h>
5847 EOF
5848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5849 { (eval echo configure:5850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5851 if test -z "$ac_err"; then
5852   rm -rf conftest*
5853   eval "ac_cv_header_$ac_safe=yes"
5854 else
5855   echo "$ac_err" >&5
5856   echo "configure: failed program was:" >&5
5857   cat conftest.$ac_ext >&5
5858   rm -rf conftest*
5859   eval "ac_cv_header_$ac_safe=no"
5860 fi
5861 rm -f conftest*
5862 fi
5863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5864   echo "$ac_t""yes" 1>&6
5865   ac_has_langinfo_h=yes
5866 else
5867   echo "$ac_t""no" 1>&6
5868 ac_has_langinfo_h=no
5869 fi
5870
5871
5872         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5873 echo "configure:5874: checking for iconv in -liconv" >&5
5874 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5876   echo $ac_n "(cached) $ac_c" 1>&6
5877 else
5878   ac_save_LIBS="$LIBS"
5879 LIBS="-liconv  $LIBS"
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 /* Override any gcc2 internal prototype to avoid an error.  */
5884 /* We use char because int might match the return type of a gcc2
5885     builtin and then its argument prototype would still apply.  */
5886 char iconv();
5887
5888 int main() {
5889 iconv()
5890 ; return 0; }
5891 EOF
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893   rm -rf conftest*
5894   eval "ac_cv_lib_$ac_lib_var=yes"
5895 else
5896   echo "configure: failed program was:" >&5
5897   cat conftest.$ac_ext >&5
5898   rm -rf conftest*
5899   eval "ac_cv_lib_$ac_lib_var=no"
5900 fi
5901 rm -f conftest*
5902 LIBS="$ac_save_LIBS"
5903
5904 fi
5905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5906   echo "$ac_t""yes" 1>&6
5907   libiconv="-liconv"
5908 else
5909   echo "$ac_t""no" 1>&6
5910 fi
5911
5912     ac_save_LIBS="$LIBS"
5913     LIBS="$LIBS $libiconv"
5914
5915     for ac_func in iconv_open iconv_close iconv nl_langinfo
5916 do
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920   echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922   cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926     which can conflict with char $ac_func(); below.  */
5927 #include <assert.h>
5928 /* Override any gcc2 internal prototype to avoid an error.  */
5929 /* We use char because int might match the return type of a gcc2
5930     builtin and then its argument prototype would still apply.  */
5931 char $ac_func();
5932
5933 int main() {
5934
5935 /* The GNU C library defines this for functions which it implements
5936     to always fail with ENOSYS.  Some functions are actually named
5937     something starting with __ and the normal name is an alias.  */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5939 choke me
5940 #else
5941 $ac_func();
5942 #endif
5943
5944 ; return 0; }
5945 EOF
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5947   rm -rf conftest*
5948   eval "ac_cv_func_$ac_func=yes"
5949 else
5950   echo "configure: failed program was:" >&5
5951   cat conftest.$ac_ext >&5
5952   rm -rf conftest*
5953   eval "ac_cv_func_$ac_func=no"
5954 fi
5955 rm -f conftest*
5956 fi
5957
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959   echo "$ac_t""yes" 1>&6
5960     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961   cat >> confdefs.h <<EOF
5962 #define $ac_tr_func 1
5963 EOF
5964  \
5965     ac_XPG2funcs=yes
5966 else
5967   echo "$ac_t""no" 1>&6
5968 ac_XPG2funcs=no
5969 fi
5970 done
5971
5972   
5973     LIBS="$ac_save_LIBS"
5974
5975     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5976 echo "configure:5977: checking for XPG2 wchar_t support" >&5
5977     if test x"$ac_has_iconv_h" = xyes &&
5978        test x"$ac_has_langinfo_h" = xyes &&
5979        test x"$ac_XPG2funcs" = xyes; then
5980       ac_XPG2_wchar_t=yes
5981     else
5982       ac_XPG2_wchar_t=no
5983     fi
5984     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5985   
5986             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5987 echo "configure:5988: checking for enabled wchar_t specializations" >&5
5988     if test x"$ac_isoC99_wchar_t" = xyes &&
5989        test x"$ac_XPG2_wchar_t" = xyes; then
5990       cat >> confdefs.h <<\EOF
5991 #define _GLIBCPP_USE_WCHAR_T 1
5992 EOF
5993
5994       echo "$ac_t"""yes"" 1>&6
5995     else
5996       echo "$ac_t"""no"" 1>&6
5997     fi
5998   else
5999         echo "configure: warning: wchar_t support disabled." 1>&2
6000   fi
6001
6002       os_include_dir="config/os/hpux"
6003       cat >> confdefs.h <<\EOF
6004 #define HAVE_COPYSIGN 1
6005 EOF
6006
6007       cat >> confdefs.h <<\EOF
6008 #define HAVE_COPYSIGNF 1
6009 EOF
6010
6011       cat >> confdefs.h <<\EOF
6012 #define HAVE_FINITEF 1
6013 EOF
6014
6015       cat >> confdefs.h <<\EOF
6016 #define HAVE_FREXPF 1
6017 EOF
6018
6019       cat >> confdefs.h <<\EOF
6020 #define HAVE_HYPOT 1
6021 EOF
6022
6023       cat >> confdefs.h <<\EOF
6024 #define HAVE_SINCOS 1
6025 EOF
6026
6027       cat >> confdefs.h <<\EOF
6028 #define HAVE_SINCOSF 1
6029 EOF
6030
6031       ;;
6032     *-netbsd*)
6033       # Check for available headers.
6034       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6035         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6036         fp.h locale.h float.h inttypes.h
6037 do
6038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6040 echo "configure:6041: checking for $ac_hdr" >&5
6041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6042   echo $ac_n "(cached) $ac_c" 1>&6
6043 else
6044   cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <$ac_hdr>
6048 EOF
6049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050 { (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6052 if test -z "$ac_err"; then
6053   rm -rf conftest*
6054   eval "ac_cv_header_$ac_safe=yes"
6055 else
6056   echo "$ac_err" >&5
6057   echo "configure: failed program was:" >&5
6058   cat conftest.$ac_ext >&5
6059   rm -rf conftest*
6060   eval "ac_cv_header_$ac_safe=no"
6061 fi
6062 rm -f conftest*
6063 fi
6064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6065   echo "$ac_t""yes" 1>&6
6066     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6067   cat >> confdefs.h <<EOF
6068 #define $ac_tr_hdr 1
6069 EOF
6070  
6071 else
6072   echo "$ac_t""no" 1>&6
6073 fi
6074 done
6075
6076       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6077        
6078       
6079   # If we're not using GNU ld, then there's no point in even trying these
6080   # tests.  Check for that first.  We should have already tested for gld
6081   # by now (in libtool), but require it now just to be safe...
6082   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6083   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6084   
6085
6086   # The name set by libtool depends on the version of libtool.  Shame on us
6087   # for depending on an impl detail, but c'est la vie.  Older versions used
6088   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6089   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6090   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6091   # set (hence we're using an older libtool), then set it.
6092   if test x${with_gnu_ld+set} != xset; then
6093     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6094       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6095       with_gnu_ld=no
6096     else
6097       with_gnu_ld=$ac_cv_prog_gnu_ld
6098     fi
6099   fi
6100
6101   # Start by getting the version number.  I think the libtool test already
6102   # does some of this, but throws away the result.
6103   
6104   ldver=`$LD --version 2>/dev/null | head -1 | \
6105          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6106   
6107   glibcpp_gnu_ld_version=`echo $ldver | \
6108          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6109
6110   # Set --gc-sections.
6111   if test "$with_gnu_ld" = "notbroken"; then
6112     # GNU ld it is!  Joy and bunny rabbits!
6113
6114     # All these tests are for C++; save the language and the compiler flags.
6115     # Need to do this so that g++ won't try to link in libstdc++
6116     ac_test_CFLAGS="${CFLAGS+set}"
6117     ac_save_CFLAGS="$CFLAGS"
6118     CFLAGS='-x c++  -Wl,--gc-sections'
6119
6120     # Check for -Wl,--gc-sections
6121     # XXX This test is broken at the moment, as symbols required for
6122     # linking are now in libsupc++ (not built yet.....). In addition, 
6123     # this test has cored on solaris in the past. In addition,
6124     # --gc-sections doesn't really work at the moment (keeps on discarding
6125     # used sections, first .eh_frame and now some of the glibc sections for
6126     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6127     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6128 echo "configure:6129: checking for ld that supports -Wl,--gc-sections" >&5
6129     if test "$cross_compiling" = yes; then
6130   ac_sectionLDflags=yes
6131 else
6132   cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135
6136      int main(void) 
6137      {
6138        try { throw 1; }
6139        catch (...) { };
6140        return 0;
6141      }
6142     
6143 EOF
6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6145 then
6146   ac_sectionLDflags=yes
6147 else
6148   echo "configure: failed program was:" >&5
6149   cat conftest.$ac_ext >&5
6150   rm -fr conftest*
6151   ac_sectionLDflags=no
6152 fi
6153 rm -fr conftest*
6154 fi
6155
6156     if test "$ac_test_CFLAGS" = set; then
6157       CFLAGS="$ac_save_CFLAGS"
6158     else
6159       # this is the suspicious part
6160       CFLAGS=''
6161     fi
6162     if test "$ac_sectionLDflags" = "yes"; then
6163       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6164     fi
6165     echo "$ac_t""$ac_sectionLDflags" 1>&6
6166   fi
6167
6168   # Set linker optimization flags.
6169   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6170     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6171   fi
6172
6173   
6174   
6175
6176       
6177     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6178 echo "configure:6179: checking for main in -lm" >&5
6179 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6181   echo $ac_n "(cached) $ac_c" 1>&6
6182 else
6183   ac_save_LIBS="$LIBS"
6184 LIBS="-lm  $LIBS"
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188
6189 int main() {
6190 main()
6191 ; return 0; }
6192 EOF
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194   rm -rf conftest*
6195   eval "ac_cv_lib_$ac_lib_var=yes"
6196 else
6197   echo "configure: failed program was:" >&5
6198   cat conftest.$ac_ext >&5
6199   rm -rf conftest*
6200   eval "ac_cv_lib_$ac_lib_var=no"
6201 fi
6202 rm -f conftest*
6203 LIBS="$ac_save_LIBS"
6204
6205 fi
6206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6207   echo "$ac_t""yes" 1>&6
6208     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6209     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6210   cat >> confdefs.h <<EOF
6211 #define $ac_tr_lib 1
6212 EOF
6213
6214   LIBS="-lm $LIBS"
6215
6216 else
6217   echo "$ac_t""no" 1>&6
6218 fi
6219
6220   for ac_func in nan copysignf
6221 do
6222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_func" >&5
6224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6225   echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227   cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231     which can conflict with char $ac_func(); below.  */
6232 #include <assert.h>
6233 /* Override any gcc2 internal prototype to avoid an error.  */
6234 /* We use char because int might match the return type of a gcc2
6235     builtin and then its argument prototype would still apply.  */
6236 char $ac_func();
6237
6238 int main() {
6239
6240 /* The GNU C library defines this for functions which it implements
6241     to always fail with ENOSYS.  Some functions are actually named
6242     something starting with __ and the normal name is an alias.  */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 choke me
6245 #else
6246 $ac_func();
6247 #endif
6248
6249 ; return 0; }
6250 EOF
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6252   rm -rf conftest*
6253   eval "ac_cv_func_$ac_func=yes"
6254 else
6255   echo "configure: failed program was:" >&5
6256   cat conftest.$ac_ext >&5
6257   rm -rf conftest*
6258   eval "ac_cv_func_$ac_func=no"
6259 fi
6260 rm -f conftest*
6261 fi
6262
6263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6264   echo "$ac_t""yes" 1>&6
6265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6266   cat >> confdefs.h <<EOF
6267 #define $ac_tr_func 1
6268 EOF
6269  
6270 else
6271   echo "$ac_t""no" 1>&6
6272 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6273 fi
6274 done
6275
6276
6277     for ac_func in __signbit
6278 do
6279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6280 echo "configure:6281: checking for $ac_func" >&5
6281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6282   echo $ac_n "(cached) $ac_c" 1>&6
6283 else
6284   cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288     which can conflict with char $ac_func(); below.  */
6289 #include <assert.h>
6290 /* Override any gcc2 internal prototype to avoid an error.  */
6291 /* We use char because int might match the return type of a gcc2
6292     builtin and then its argument prototype would still apply.  */
6293 char $ac_func();
6294
6295 int main() {
6296
6297 /* The GNU C library defines this for functions which it implements
6298     to always fail with ENOSYS.  Some functions are actually named
6299     something starting with __ and the normal name is an alias.  */
6300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6301 choke me
6302 #else
6303 $ac_func();
6304 #endif
6305
6306 ; return 0; }
6307 EOF
6308 if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6309   rm -rf conftest*
6310   eval "ac_cv_func_$ac_func=yes"
6311 else
6312   echo "configure: failed program was:" >&5
6313   cat conftest.$ac_ext >&5
6314   rm -rf conftest*
6315   eval "ac_cv_func_$ac_func=no"
6316 fi
6317 rm -f conftest*
6318 fi
6319
6320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6321   echo "$ac_t""yes" 1>&6
6322     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6323   cat >> confdefs.h <<EOF
6324 #define $ac_tr_func 1
6325 EOF
6326  
6327 else
6328   echo "$ac_t""no" 1>&6
6329 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6330 fi
6331 done
6332
6333   for ac_func in __signbitf
6334 do
6335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_func" >&5
6337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6338   echo $ac_n "(cached) $ac_c" 1>&6
6339 else
6340   cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344     which can conflict with char $ac_func(); below.  */
6345 #include <assert.h>
6346 /* Override any gcc2 internal prototype to avoid an error.  */
6347 /* We use char because int might match the return type of a gcc2
6348     builtin and then its argument prototype would still apply.  */
6349 char $ac_func();
6350
6351 int main() {
6352
6353 /* The GNU C library defines this for functions which it implements
6354     to always fail with ENOSYS.  Some functions are actually named
6355     something starting with __ and the normal name is an alias.  */
6356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 choke me
6358 #else
6359 $ac_func();
6360 #endif
6361
6362 ; return 0; }
6363 EOF
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365   rm -rf conftest*
6366   eval "ac_cv_func_$ac_func=yes"
6367 else
6368   echo "configure: failed program was:" >&5
6369   cat conftest.$ac_ext >&5
6370   rm -rf conftest*
6371   eval "ac_cv_func_$ac_func=no"
6372 fi
6373 rm -f conftest*
6374 fi
6375
6376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6377   echo "$ac_t""yes" 1>&6
6378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6379   cat >> confdefs.h <<EOF
6380 #define $ac_tr_func 1
6381 EOF
6382  
6383 else
6384   echo "$ac_t""no" 1>&6
6385 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6386 fi
6387 done
6388
6389
6390           if test x$ac_cv_func_copysignl = x"yes"; then
6391     for ac_func in __signbitl
6392 do
6393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6394 echo "configure:6395: checking for $ac_func" >&5
6395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6396   echo $ac_n "(cached) $ac_c" 1>&6
6397 else
6398   cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* System header to define __stub macros and hopefully few prototypes,
6402     which can conflict with char $ac_func(); below.  */
6403 #include <assert.h>
6404 /* Override any gcc2 internal prototype to avoid an error.  */
6405 /* We use char because int might match the return type of a gcc2
6406     builtin and then its argument prototype would still apply.  */
6407 char $ac_func();
6408
6409 int main() {
6410
6411 /* The GNU C library defines this for functions which it implements
6412     to always fail with ENOSYS.  Some functions are actually named
6413     something starting with __ and the normal name is an alias.  */
6414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6415 choke me
6416 #else
6417 $ac_func();
6418 #endif
6419
6420 ; return 0; }
6421 EOF
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423   rm -rf conftest*
6424   eval "ac_cv_func_$ac_func=yes"
6425 else
6426   echo "configure: failed program was:" >&5
6427   cat conftest.$ac_ext >&5
6428   rm -rf conftest*
6429   eval "ac_cv_func_$ac_func=no"
6430 fi
6431 rm -f conftest*
6432 fi
6433
6434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6435   echo "$ac_t""yes" 1>&6
6436     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6437   cat >> confdefs.h <<EOF
6438 #define $ac_tr_func 1
6439 EOF
6440  
6441 else
6442   echo "$ac_t""no" 1>&6
6443 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6444 fi
6445 done
6446
6447   fi
6448
6449   
6450
6451       
6452
6453       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6454 echo "configure:6455: checking for mbstate_t" >&5
6455   cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 #include <wchar.h>
6459 int main() {
6460 mbstate_t teststate;
6461 ; return 0; }
6462 EOF
6463 if { (eval echo configure:6464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6464   rm -rf conftest*
6465   have_mbstate_t=yes
6466 else
6467   echo "configure: failed program was:" >&5
6468   cat conftest.$ac_ext >&5
6469   rm -rf conftest*
6470   have_mbstate_t=no
6471 fi
6472 rm -f conftest*
6473   echo "$ac_t""$have_mbstate_t" 1>&6
6474   if test x"$have_mbstate_t" = xyes; then
6475     cat >> confdefs.h <<\EOF
6476 #define HAVE_MBSTATE_T 1
6477 EOF
6478
6479   fi
6480
6481     for ac_hdr in wchar.h
6482 do
6483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_hdr" >&5
6486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6487   echo $ac_n "(cached) $ac_c" 1>&6
6488 else
6489   cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 #include <$ac_hdr>
6493 EOF
6494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6495 { (eval echo configure:6496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6497 if test -z "$ac_err"; then
6498   rm -rf conftest*
6499   eval "ac_cv_header_$ac_safe=yes"
6500 else
6501   echo "$ac_err" >&5
6502   echo "configure: failed program was:" >&5
6503   cat conftest.$ac_ext >&5
6504   rm -rf conftest*
6505   eval "ac_cv_header_$ac_safe=no"
6506 fi
6507 rm -f conftest*
6508 fi
6509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6510   echo "$ac_t""yes" 1>&6
6511     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6512   cat >> confdefs.h <<EOF
6513 #define $ac_tr_hdr 1
6514 EOF
6515  ac_has_wchar_h=yes
6516 else
6517   echo "$ac_t""no" 1>&6
6518 ac_has_wchar_h=no
6519 fi
6520 done
6521
6522   for ac_hdr in wctype.h
6523 do
6524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6526 echo "configure:6527: checking for $ac_hdr" >&5
6527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6528   echo $ac_n "(cached) $ac_c" 1>&6
6529 else
6530   cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 #include <$ac_hdr>
6534 EOF
6535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6536 { (eval echo configure:6537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6538 if test -z "$ac_err"; then
6539   rm -rf conftest*
6540   eval "ac_cv_header_$ac_safe=yes"
6541 else
6542   echo "$ac_err" >&5
6543   echo "configure: failed program was:" >&5
6544   cat conftest.$ac_ext >&5
6545   rm -rf conftest*
6546   eval "ac_cv_header_$ac_safe=no"
6547 fi
6548 rm -f conftest*
6549 fi
6550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6551   echo "$ac_t""yes" 1>&6
6552     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6553   cat >> confdefs.h <<EOF
6554 #define $ac_tr_hdr 1
6555 EOF
6556  ac_has_wctype_h=yes
6557 else
6558   echo "$ac_t""no" 1>&6
6559 ac_has_wctype_h=no
6560 fi
6561 done
6562
6563   
6564     if test x"$ac_has_wchar_h" = xyes &&
6565      test x"$ac_has_wctype_h" = xyes &&
6566      test x"$enable_c_mbchar" != xno; then
6567       
6568             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6569 echo "configure:6570: checking for WCHAR_MIN and WCHAR_MAX" >&5
6570     cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 #include <wchar.h>
6574 int main() {
6575 int i = WCHAR_MIN; int j = WCHAR_MAX;
6576 ; return 0; }
6577 EOF
6578 if { (eval echo configure:6579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6579   rm -rf conftest*
6580   has_wchar_minmax=yes
6581 else
6582   echo "configure: failed program was:" >&5
6583   cat conftest.$ac_ext >&5
6584   rm -rf conftest*
6585   has_wchar_minmax=no
6586 fi
6587 rm -f conftest*
6588     echo "$ac_t""$has_wchar_minmax" 1>&6
6589     
6590             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6591 echo "configure:6592: checking for WEOF" >&5
6592     cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595
6596       #include <wchar.h>
6597       #include <stddef.h>
6598 int main() {
6599 wint_t i = WEOF;
6600 ; return 0; }
6601 EOF
6602 if { (eval echo configure:6603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6603   rm -rf conftest*
6604   has_weof=yes
6605 else
6606   echo "configure: failed program was:" >&5
6607   cat conftest.$ac_ext >&5
6608   rm -rf conftest*
6609   has_weof=no
6610 fi
6611 rm -f conftest*
6612     echo "$ac_t""$has_weof" 1>&6
6613   
6614         ac_wfuncs=yes
6615     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6616 do
6617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6618 echo "configure:6619: checking for $ac_func" >&5
6619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6620   echo $ac_n "(cached) $ac_c" 1>&6
6621 else
6622   cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 /* System header to define __stub macros and hopefully few prototypes,
6626     which can conflict with char $ac_func(); below.  */
6627 #include <assert.h>
6628 /* Override any gcc2 internal prototype to avoid an error.  */
6629 /* We use char because int might match the return type of a gcc2
6630     builtin and then its argument prototype would still apply.  */
6631 char $ac_func();
6632
6633 int main() {
6634
6635 /* The GNU C library defines this for functions which it implements
6636     to always fail with ENOSYS.  Some functions are actually named
6637     something starting with __ and the normal name is an alias.  */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6639 choke me
6640 #else
6641 $ac_func();
6642 #endif
6643
6644 ; return 0; }
6645 EOF
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647   rm -rf conftest*
6648   eval "ac_cv_func_$ac_func=yes"
6649 else
6650   echo "configure: failed program was:" >&5
6651   cat conftest.$ac_ext >&5
6652   rm -rf conftest*
6653   eval "ac_cv_func_$ac_func=no"
6654 fi
6655 rm -f conftest*
6656 fi
6657
6658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6659   echo "$ac_t""yes" 1>&6
6660     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6661   cat >> confdefs.h <<EOF
6662 #define $ac_tr_func 1
6663 EOF
6664  
6665 else
6666   echo "$ac_t""no" 1>&6
6667 \
6668     ac_wfuncs=no
6669 fi
6670 done
6671
6672   
6673         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6674     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6675     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6676     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6677     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6678     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6679 do
6680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_func" >&5
6682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6683   echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685   cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689     which can conflict with char $ac_func(); below.  */
6690 #include <assert.h>
6691 /* Override any gcc2 internal prototype to avoid an error.  */
6692 /* We use char because int might match the return type of a gcc2
6693     builtin and then its argument prototype would still apply.  */
6694 char $ac_func();
6695
6696 int main() {
6697
6698 /* The GNU C library defines this for functions which it implements
6699     to always fail with ENOSYS.  Some functions are actually named
6700     something starting with __ and the normal name is an alias.  */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 choke me
6703 #else
6704 $ac_func();
6705 #endif
6706
6707 ; return 0; }
6708 EOF
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710   rm -rf conftest*
6711   eval "ac_cv_func_$ac_func=yes"
6712 else
6713   echo "configure: failed program was:" >&5
6714   cat conftest.$ac_ext >&5
6715   rm -rf conftest*
6716   eval "ac_cv_func_$ac_func=no"
6717 fi
6718 rm -f conftest*
6719 fi
6720
6721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6722   echo "$ac_t""yes" 1>&6
6723     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6724   cat >> confdefs.h <<EOF
6725 #define $ac_tr_func 1
6726 EOF
6727  
6728 else
6729   echo "$ac_t""no" 1>&6
6730 \
6731     ac_wfuncs=no
6732 fi
6733 done
6734
6735
6736     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6737 echo "configure:6738: checking for ISO C99 wchar_t support" >&5
6738     if test x"$has_weof" = xyes &&
6739        test x"$has_wchar_minmax" = xyes &&
6740        test x"$ac_wfuncs" = xyes; then
6741       ac_isoC99_wchar_t=yes
6742     else
6743       ac_isoC99_wchar_t=no
6744     fi
6745     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6746   
6747             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6748 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6749 echo "configure:6750: checking for iconv.h" >&5
6750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6751   echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753   cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <iconv.h>
6757 EOF
6758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6759 { (eval echo configure:6760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6761 if test -z "$ac_err"; then
6762   rm -rf conftest*
6763   eval "ac_cv_header_$ac_safe=yes"
6764 else
6765   echo "$ac_err" >&5
6766   echo "configure: failed program was:" >&5
6767   cat conftest.$ac_ext >&5
6768   rm -rf conftest*
6769   eval "ac_cv_header_$ac_safe=no"
6770 fi
6771 rm -f conftest*
6772 fi
6773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6774   echo "$ac_t""yes" 1>&6
6775   ac_has_iconv_h=yes
6776 else
6777   echo "$ac_t""no" 1>&6
6778 ac_has_iconv_h=no
6779 fi
6780
6781     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6782 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6783 echo "configure:6784: checking for langinfo.h" >&5
6784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6785   echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787   cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 #include <langinfo.h>
6791 EOF
6792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6793 { (eval echo configure:6794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6795 if test -z "$ac_err"; then
6796   rm -rf conftest*
6797   eval "ac_cv_header_$ac_safe=yes"
6798 else
6799   echo "$ac_err" >&5
6800   echo "configure: failed program was:" >&5
6801   cat conftest.$ac_ext >&5
6802   rm -rf conftest*
6803   eval "ac_cv_header_$ac_safe=no"
6804 fi
6805 rm -f conftest*
6806 fi
6807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6808   echo "$ac_t""yes" 1>&6
6809   ac_has_langinfo_h=yes
6810 else
6811   echo "$ac_t""no" 1>&6
6812 ac_has_langinfo_h=no
6813 fi
6814
6815
6816         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6817 echo "configure:6818: checking for iconv in -liconv" >&5
6818 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6820   echo $ac_n "(cached) $ac_c" 1>&6
6821 else
6822   ac_save_LIBS="$LIBS"
6823 LIBS="-liconv  $LIBS"
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* Override any gcc2 internal prototype to avoid an error.  */
6828 /* We use char because int might match the return type of a gcc2
6829     builtin and then its argument prototype would still apply.  */
6830 char iconv();
6831
6832 int main() {
6833 iconv()
6834 ; return 0; }
6835 EOF
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837   rm -rf conftest*
6838   eval "ac_cv_lib_$ac_lib_var=yes"
6839 else
6840   echo "configure: failed program was:" >&5
6841   cat conftest.$ac_ext >&5
6842   rm -rf conftest*
6843   eval "ac_cv_lib_$ac_lib_var=no"
6844 fi
6845 rm -f conftest*
6846 LIBS="$ac_save_LIBS"
6847
6848 fi
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6850   echo "$ac_t""yes" 1>&6
6851   libiconv="-liconv"
6852 else
6853   echo "$ac_t""no" 1>&6
6854 fi
6855
6856     ac_save_LIBS="$LIBS"
6857     LIBS="$LIBS $libiconv"
6858
6859     for ac_func in iconv_open iconv_close iconv nl_langinfo
6860 do
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864   echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866   cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870     which can conflict with char $ac_func(); below.  */
6871 #include <assert.h>
6872 /* Override any gcc2 internal prototype to avoid an error.  */
6873 /* We use char because int might match the return type of a gcc2
6874     builtin and then its argument prototype would still apply.  */
6875 char $ac_func();
6876
6877 int main() {
6878
6879 /* The GNU C library defines this for functions which it implements
6880     to always fail with ENOSYS.  Some functions are actually named
6881     something starting with __ and the normal name is an alias.  */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6883 choke me
6884 #else
6885 $ac_func();
6886 #endif
6887
6888 ; return 0; }
6889 EOF
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891   rm -rf conftest*
6892   eval "ac_cv_func_$ac_func=yes"
6893 else
6894   echo "configure: failed program was:" >&5
6895   cat conftest.$ac_ext >&5
6896   rm -rf conftest*
6897   eval "ac_cv_func_$ac_func=no"
6898 fi
6899 rm -f conftest*
6900 fi
6901
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903   echo "$ac_t""yes" 1>&6
6904     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905   cat >> confdefs.h <<EOF
6906 #define $ac_tr_func 1
6907 EOF
6908  \
6909     ac_XPG2funcs=yes
6910 else
6911   echo "$ac_t""no" 1>&6
6912 ac_XPG2funcs=no
6913 fi
6914 done
6915
6916   
6917     LIBS="$ac_save_LIBS"
6918
6919     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6920 echo "configure:6921: checking for XPG2 wchar_t support" >&5
6921     if test x"$ac_has_iconv_h" = xyes &&
6922        test x"$ac_has_langinfo_h" = xyes &&
6923        test x"$ac_XPG2funcs" = xyes; then
6924       ac_XPG2_wchar_t=yes
6925     else
6926       ac_XPG2_wchar_t=no
6927     fi
6928     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6929   
6930             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6931 echo "configure:6932: checking for enabled wchar_t specializations" >&5
6932     if test x"$ac_isoC99_wchar_t" = xyes &&
6933        test x"$ac_XPG2_wchar_t" = xyes; then
6934       cat >> confdefs.h <<\EOF
6935 #define _GLIBCPP_USE_WCHAR_T 1
6936 EOF
6937
6938       echo "$ac_t"""yes"" 1>&6
6939     else
6940       echo "$ac_t"""no"" 1>&6
6941     fi
6942   else
6943         echo "configure: warning: wchar_t support disabled." 1>&2
6944   fi
6945
6946       os_include_dir="config/os/bsd/netbsd"
6947       cat >> confdefs.h <<\EOF
6948 #define HAVE_COPYSIGN 1
6949 EOF
6950
6951       cat >> confdefs.h <<\EOF
6952 #define HAVE_COPYSIGNF 1
6953 EOF
6954
6955       cat >> confdefs.h <<\EOF
6956 #define HAVE_FINITEF 1
6957 EOF
6958
6959       cat >> confdefs.h <<\EOF
6960 #define HAVE_FREXPF 1
6961 EOF
6962
6963       cat >> confdefs.h <<\EOF
6964 #define HAVE_HYPOTF 1
6965 EOF
6966
6967       ;;
6968     *-mingw32*)
6969       for ac_hdr in sys/types.h locale.h float.h
6970 do
6971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6973 echo "configure:6974: checking for $ac_hdr" >&5
6974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6975   echo $ac_n "(cached) $ac_c" 1>&6
6976 else
6977   cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6980 #include <$ac_hdr>
6981 EOF
6982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6983 { (eval echo configure:6984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6985 if test -z "$ac_err"; then
6986   rm -rf conftest*
6987   eval "ac_cv_header_$ac_safe=yes"
6988 else
6989   echo "$ac_err" >&5
6990   echo "configure: failed program was:" >&5
6991   cat conftest.$ac_ext >&5
6992   rm -rf conftest*
6993   eval "ac_cv_header_$ac_safe=no"
6994 fi
6995 rm -f conftest*
6996 fi
6997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6998   echo "$ac_t""yes" 1>&6
6999     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7000   cat >> confdefs.h <<EOF
7001 #define $ac_tr_hdr 1
7002 EOF
7003  
7004 else
7005   echo "$ac_t""no" 1>&6
7006 fi
7007 done
7008
7009       
7010   # If we're not using GNU ld, then there's no point in even trying these
7011   # tests.  Check for that first.  We should have already tested for gld
7012   # by now (in libtool), but require it now just to be safe...
7013   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7014   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7015   
7016
7017   # The name set by libtool depends on the version of libtool.  Shame on us
7018   # for depending on an impl detail, but c'est la vie.  Older versions used
7019   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7020   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7021   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7022   # set (hence we're using an older libtool), then set it.
7023   if test x${with_gnu_ld+set} != xset; then
7024     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7025       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7026       with_gnu_ld=no
7027     else
7028       with_gnu_ld=$ac_cv_prog_gnu_ld
7029     fi
7030   fi
7031
7032   # Start by getting the version number.  I think the libtool test already
7033   # does some of this, but throws away the result.
7034   
7035   ldver=`$LD --version 2>/dev/null | head -1 | \
7036          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7037   
7038   glibcpp_gnu_ld_version=`echo $ldver | \
7039          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7040
7041   # Set --gc-sections.
7042   if test "$with_gnu_ld" = "notbroken"; then
7043     # GNU ld it is!  Joy and bunny rabbits!
7044
7045     # All these tests are for C++; save the language and the compiler flags.
7046     # Need to do this so that g++ won't try to link in libstdc++
7047     ac_test_CFLAGS="${CFLAGS+set}"
7048     ac_save_CFLAGS="$CFLAGS"
7049     CFLAGS='-x c++  -Wl,--gc-sections'
7050
7051     # Check for -Wl,--gc-sections
7052     # XXX This test is broken at the moment, as symbols required for
7053     # linking are now in libsupc++ (not built yet.....). In addition, 
7054     # this test has cored on solaris in the past. In addition,
7055     # --gc-sections doesn't really work at the moment (keeps on discarding
7056     # used sections, first .eh_frame and now some of the glibc sections for
7057     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7058     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7059 echo "configure:7060: checking for ld that supports -Wl,--gc-sections" >&5
7060     if test "$cross_compiling" = yes; then
7061   ac_sectionLDflags=yes
7062 else
7063   cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7066
7067      int main(void) 
7068      {
7069        try { throw 1; }
7070        catch (...) { };
7071        return 0;
7072      }
7073     
7074 EOF
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7076 then
7077   ac_sectionLDflags=yes
7078 else
7079   echo "configure: failed program was:" >&5
7080   cat conftest.$ac_ext >&5
7081   rm -fr conftest*
7082   ac_sectionLDflags=no
7083 fi
7084 rm -fr conftest*
7085 fi
7086
7087     if test "$ac_test_CFLAGS" = set; then
7088       CFLAGS="$ac_save_CFLAGS"
7089     else
7090       # this is the suspicious part
7091       CFLAGS=''
7092     fi
7093     if test "$ac_sectionLDflags" = "yes"; then
7094       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7095     fi
7096     echo "$ac_t""$ac_sectionLDflags" 1>&6
7097   fi
7098
7099   # Set linker optimization flags.
7100   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7101     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7102   fi
7103
7104   
7105   
7106
7107       
7108     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7109 echo "configure:7110: checking for main in -lm" >&5
7110 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7112   echo $ac_n "(cached) $ac_c" 1>&6
7113 else
7114   ac_save_LIBS="$LIBS"
7115 LIBS="-lm  $LIBS"
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7119
7120 int main() {
7121 main()
7122 ; return 0; }
7123 EOF
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7125   rm -rf conftest*
7126   eval "ac_cv_lib_$ac_lib_var=yes"
7127 else
7128   echo "configure: failed program was:" >&5
7129   cat conftest.$ac_ext >&5
7130   rm -rf conftest*
7131   eval "ac_cv_lib_$ac_lib_var=no"
7132 fi
7133 rm -f conftest*
7134 LIBS="$ac_save_LIBS"
7135
7136 fi
7137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7138   echo "$ac_t""yes" 1>&6
7139     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7140     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7141   cat >> confdefs.h <<EOF
7142 #define $ac_tr_lib 1
7143 EOF
7144
7145   LIBS="-lm $LIBS"
7146
7147 else
7148   echo "$ac_t""no" 1>&6
7149 fi
7150
7151   for ac_func in nan copysignf
7152 do
7153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7154 echo "configure:7155: checking for $ac_func" >&5
7155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7156   echo $ac_n "(cached) $ac_c" 1>&6
7157 else
7158   cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* System header to define __stub macros and hopefully few prototypes,
7162     which can conflict with char $ac_func(); below.  */
7163 #include <assert.h>
7164 /* Override any gcc2 internal prototype to avoid an error.  */
7165 /* We use char because int might match the return type of a gcc2
7166     builtin and then its argument prototype would still apply.  */
7167 char $ac_func();
7168
7169 int main() {
7170
7171 /* The GNU C library defines this for functions which it implements
7172     to always fail with ENOSYS.  Some functions are actually named
7173     something starting with __ and the normal name is an alias.  */
7174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7175 choke me
7176 #else
7177 $ac_func();
7178 #endif
7179
7180 ; return 0; }
7181 EOF
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183   rm -rf conftest*
7184   eval "ac_cv_func_$ac_func=yes"
7185 else
7186   echo "configure: failed program was:" >&5
7187   cat conftest.$ac_ext >&5
7188   rm -rf conftest*
7189   eval "ac_cv_func_$ac_func=no"
7190 fi
7191 rm -f conftest*
7192 fi
7193
7194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7195   echo "$ac_t""yes" 1>&6
7196     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7197   cat >> confdefs.h <<EOF
7198 #define $ac_tr_func 1
7199 EOF
7200  
7201 else
7202   echo "$ac_t""no" 1>&6
7203 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7204 fi
7205 done
7206
7207
7208     for ac_func in __signbit
7209 do
7210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7211 echo "configure:7212: checking for $ac_func" >&5
7212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7213   echo $ac_n "(cached) $ac_c" 1>&6
7214 else
7215   cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 /* System header to define __stub macros and hopefully few prototypes,
7219     which can conflict with char $ac_func(); below.  */
7220 #include <assert.h>
7221 /* Override any gcc2 internal prototype to avoid an error.  */
7222 /* We use char because int might match the return type of a gcc2
7223     builtin and then its argument prototype would still apply.  */
7224 char $ac_func();
7225
7226 int main() {
7227
7228 /* The GNU C library defines this for functions which it implements
7229     to always fail with ENOSYS.  Some functions are actually named
7230     something starting with __ and the normal name is an alias.  */
7231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7232 choke me
7233 #else
7234 $ac_func();
7235 #endif
7236
7237 ; return 0; }
7238 EOF
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240   rm -rf conftest*
7241   eval "ac_cv_func_$ac_func=yes"
7242 else
7243   echo "configure: failed program was:" >&5
7244   cat conftest.$ac_ext >&5
7245   rm -rf conftest*
7246   eval "ac_cv_func_$ac_func=no"
7247 fi
7248 rm -f conftest*
7249 fi
7250
7251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7252   echo "$ac_t""yes" 1>&6
7253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7254   cat >> confdefs.h <<EOF
7255 #define $ac_tr_func 1
7256 EOF
7257  
7258 else
7259   echo "$ac_t""no" 1>&6
7260 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7261 fi
7262 done
7263
7264   for ac_func in __signbitf
7265 do
7266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7267 echo "configure:7268: checking for $ac_func" >&5
7268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7269   echo $ac_n "(cached) $ac_c" 1>&6
7270 else
7271   cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7274 /* System header to define __stub macros and hopefully few prototypes,
7275     which can conflict with char $ac_func(); below.  */
7276 #include <assert.h>
7277 /* Override any gcc2 internal prototype to avoid an error.  */
7278 /* We use char because int might match the return type of a gcc2
7279     builtin and then its argument prototype would still apply.  */
7280 char $ac_func();
7281
7282 int main() {
7283
7284 /* The GNU C library defines this for functions which it implements
7285     to always fail with ENOSYS.  Some functions are actually named
7286     something starting with __ and the normal name is an alias.  */
7287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7288 choke me
7289 #else
7290 $ac_func();
7291 #endif
7292
7293 ; return 0; }
7294 EOF
7295 if { (eval echo configure:7296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7296   rm -rf conftest*
7297   eval "ac_cv_func_$ac_func=yes"
7298 else
7299   echo "configure: failed program was:" >&5
7300   cat conftest.$ac_ext >&5
7301   rm -rf conftest*
7302   eval "ac_cv_func_$ac_func=no"
7303 fi
7304 rm -f conftest*
7305 fi
7306
7307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7308   echo "$ac_t""yes" 1>&6
7309     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7310   cat >> confdefs.h <<EOF
7311 #define $ac_tr_func 1
7312 EOF
7313  
7314 else
7315   echo "$ac_t""no" 1>&6
7316 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7317 fi
7318 done
7319
7320
7321           if test x$ac_cv_func_copysignl = x"yes"; then
7322     for ac_func in __signbitl
7323 do
7324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7325 echo "configure:7326: checking for $ac_func" >&5
7326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7327   echo $ac_n "(cached) $ac_c" 1>&6
7328 else
7329   cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 /* System header to define __stub macros and hopefully few prototypes,
7333     which can conflict with char $ac_func(); below.  */
7334 #include <assert.h>
7335 /* Override any gcc2 internal prototype to avoid an error.  */
7336 /* We use char because int might match the return type of a gcc2
7337     builtin and then its argument prototype would still apply.  */
7338 char $ac_func();
7339
7340 int main() {
7341
7342 /* The GNU C library defines this for functions which it implements
7343     to always fail with ENOSYS.  Some functions are actually named
7344     something starting with __ and the normal name is an alias.  */
7345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7346 choke me
7347 #else
7348 $ac_func();
7349 #endif
7350
7351 ; return 0; }
7352 EOF
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354   rm -rf conftest*
7355   eval "ac_cv_func_$ac_func=yes"
7356 else
7357   echo "configure: failed program was:" >&5
7358   cat conftest.$ac_ext >&5
7359   rm -rf conftest*
7360   eval "ac_cv_func_$ac_func=no"
7361 fi
7362 rm -f conftest*
7363 fi
7364
7365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7366   echo "$ac_t""yes" 1>&6
7367     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7368   cat >> confdefs.h <<EOF
7369 #define $ac_tr_func 1
7370 EOF
7371  
7372 else
7373   echo "$ac_t""no" 1>&6
7374 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7375 fi
7376 done
7377
7378   fi
7379
7380   
7381
7382       
7383
7384       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7385 echo "configure:7386: checking for mbstate_t" >&5
7386   cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 #include <wchar.h>
7390 int main() {
7391 mbstate_t teststate;
7392 ; return 0; }
7393 EOF
7394 if { (eval echo configure:7395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395   rm -rf conftest*
7396   have_mbstate_t=yes
7397 else
7398   echo "configure: failed program was:" >&5
7399   cat conftest.$ac_ext >&5
7400   rm -rf conftest*
7401   have_mbstate_t=no
7402 fi
7403 rm -f conftest*
7404   echo "$ac_t""$have_mbstate_t" 1>&6
7405   if test x"$have_mbstate_t" = xyes; then
7406     cat >> confdefs.h <<\EOF
7407 #define HAVE_MBSTATE_T 1
7408 EOF
7409
7410   fi
7411
7412     for ac_hdr in wchar.h
7413 do
7414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7416 echo "configure:7417: checking for $ac_hdr" >&5
7417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7418   echo $ac_n "(cached) $ac_c" 1>&6
7419 else
7420   cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 #include <$ac_hdr>
7424 EOF
7425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7426 { (eval echo configure:7427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7428 if test -z "$ac_err"; then
7429   rm -rf conftest*
7430   eval "ac_cv_header_$ac_safe=yes"
7431 else
7432   echo "$ac_err" >&5
7433   echo "configure: failed program was:" >&5
7434   cat conftest.$ac_ext >&5
7435   rm -rf conftest*
7436   eval "ac_cv_header_$ac_safe=no"
7437 fi
7438 rm -f conftest*
7439 fi
7440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7441   echo "$ac_t""yes" 1>&6
7442     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7443   cat >> confdefs.h <<EOF
7444 #define $ac_tr_hdr 1
7445 EOF
7446  ac_has_wchar_h=yes
7447 else
7448   echo "$ac_t""no" 1>&6
7449 ac_has_wchar_h=no
7450 fi
7451 done
7452
7453   for ac_hdr in wctype.h
7454 do
7455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7457 echo "configure:7458: checking for $ac_hdr" >&5
7458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7459   echo $ac_n "(cached) $ac_c" 1>&6
7460 else
7461   cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 #include <$ac_hdr>
7465 EOF
7466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7467 { (eval echo configure:7468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7469 if test -z "$ac_err"; then
7470   rm -rf conftest*
7471   eval "ac_cv_header_$ac_safe=yes"
7472 else
7473   echo "$ac_err" >&5
7474   echo "configure: failed program was:" >&5
7475   cat conftest.$ac_ext >&5
7476   rm -rf conftest*
7477   eval "ac_cv_header_$ac_safe=no"
7478 fi
7479 rm -f conftest*
7480 fi
7481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7482   echo "$ac_t""yes" 1>&6
7483     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7484   cat >> confdefs.h <<EOF
7485 #define $ac_tr_hdr 1
7486 EOF
7487  ac_has_wctype_h=yes
7488 else
7489   echo "$ac_t""no" 1>&6
7490 ac_has_wctype_h=no
7491 fi
7492 done
7493
7494   
7495     if test x"$ac_has_wchar_h" = xyes &&
7496      test x"$ac_has_wctype_h" = xyes &&
7497      test x"$enable_c_mbchar" != xno; then
7498       
7499             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7500 echo "configure:7501: checking for WCHAR_MIN and WCHAR_MAX" >&5
7501     cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 #include <wchar.h>
7505 int main() {
7506 int i = WCHAR_MIN; int j = WCHAR_MAX;
7507 ; return 0; }
7508 EOF
7509 if { (eval echo configure:7510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7510   rm -rf conftest*
7511   has_wchar_minmax=yes
7512 else
7513   echo "configure: failed program was:" >&5
7514   cat conftest.$ac_ext >&5
7515   rm -rf conftest*
7516   has_wchar_minmax=no
7517 fi
7518 rm -f conftest*
7519     echo "$ac_t""$has_wchar_minmax" 1>&6
7520     
7521             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7522 echo "configure:7523: checking for WEOF" >&5
7523     cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7526
7527       #include <wchar.h>
7528       #include <stddef.h>
7529 int main() {
7530 wint_t i = WEOF;
7531 ; return 0; }
7532 EOF
7533 if { (eval echo configure:7534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7534   rm -rf conftest*
7535   has_weof=yes
7536 else
7537   echo "configure: failed program was:" >&5
7538   cat conftest.$ac_ext >&5
7539   rm -rf conftest*
7540   has_weof=no
7541 fi
7542 rm -f conftest*
7543     echo "$ac_t""$has_weof" 1>&6
7544   
7545         ac_wfuncs=yes
7546     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7547 do
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551   echo $ac_n "(cached) $ac_c" 1>&6
7552 else
7553   cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557     which can conflict with char $ac_func(); below.  */
7558 #include <assert.h>
7559 /* Override any gcc2 internal prototype to avoid an error.  */
7560 /* We use char because int might match the return type of a gcc2
7561     builtin and then its argument prototype would still apply.  */
7562 char $ac_func();
7563
7564 int main() {
7565
7566 /* The GNU C library defines this for functions which it implements
7567     to always fail with ENOSYS.  Some functions are actually named
7568     something starting with __ and the normal name is an alias.  */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7570 choke me
7571 #else
7572 $ac_func();
7573 #endif
7574
7575 ; return 0; }
7576 EOF
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578   rm -rf conftest*
7579   eval "ac_cv_func_$ac_func=yes"
7580 else
7581   echo "configure: failed program was:" >&5
7582   cat conftest.$ac_ext >&5
7583   rm -rf conftest*
7584   eval "ac_cv_func_$ac_func=no"
7585 fi
7586 rm -f conftest*
7587 fi
7588
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590   echo "$ac_t""yes" 1>&6
7591     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592   cat >> confdefs.h <<EOF
7593 #define $ac_tr_func 1
7594 EOF
7595  
7596 else
7597   echo "$ac_t""no" 1>&6
7598 \
7599     ac_wfuncs=no
7600 fi
7601 done
7602
7603   
7604         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7605     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7606     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7607     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7608     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7609     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7610 do
7611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_func" >&5
7613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7614   echo $ac_n "(cached) $ac_c" 1>&6
7615 else
7616   cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* System header to define __stub macros and hopefully few prototypes,
7620     which can conflict with char $ac_func(); below.  */
7621 #include <assert.h>
7622 /* Override any gcc2 internal prototype to avoid an error.  */
7623 /* We use char because int might match the return type of a gcc2
7624     builtin and then its argument prototype would still apply.  */
7625 char $ac_func();
7626
7627 int main() {
7628
7629 /* The GNU C library defines this for functions which it implements
7630     to always fail with ENOSYS.  Some functions are actually named
7631     something starting with __ and the normal name is an alias.  */
7632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7633 choke me
7634 #else
7635 $ac_func();
7636 #endif
7637
7638 ; return 0; }
7639 EOF
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7641   rm -rf conftest*
7642   eval "ac_cv_func_$ac_func=yes"
7643 else
7644   echo "configure: failed program was:" >&5
7645   cat conftest.$ac_ext >&5
7646   rm -rf conftest*
7647   eval "ac_cv_func_$ac_func=no"
7648 fi
7649 rm -f conftest*
7650 fi
7651
7652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7653   echo "$ac_t""yes" 1>&6
7654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7655   cat >> confdefs.h <<EOF
7656 #define $ac_tr_func 1
7657 EOF
7658  
7659 else
7660   echo "$ac_t""no" 1>&6
7661 \
7662     ac_wfuncs=no
7663 fi
7664 done
7665
7666
7667     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7668 echo "configure:7669: checking for ISO C99 wchar_t support" >&5
7669     if test x"$has_weof" = xyes &&
7670        test x"$has_wchar_minmax" = xyes &&
7671        test x"$ac_wfuncs" = xyes; then
7672       ac_isoC99_wchar_t=yes
7673     else
7674       ac_isoC99_wchar_t=no
7675     fi
7676     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7677   
7678             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7679 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7680 echo "configure:7681: checking for iconv.h" >&5
7681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7682   echo $ac_n "(cached) $ac_c" 1>&6
7683 else
7684   cat > conftest.$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7687 #include <iconv.h>
7688 EOF
7689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7690 { (eval echo configure:7691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7692 if test -z "$ac_err"; then
7693   rm -rf conftest*
7694   eval "ac_cv_header_$ac_safe=yes"
7695 else
7696   echo "$ac_err" >&5
7697   echo "configure: failed program was:" >&5
7698   cat conftest.$ac_ext >&5
7699   rm -rf conftest*
7700   eval "ac_cv_header_$ac_safe=no"
7701 fi
7702 rm -f conftest*
7703 fi
7704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7705   echo "$ac_t""yes" 1>&6
7706   ac_has_iconv_h=yes
7707 else
7708   echo "$ac_t""no" 1>&6
7709 ac_has_iconv_h=no
7710 fi
7711
7712     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7713 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7714 echo "configure:7715: checking for langinfo.h" >&5
7715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7716   echo $ac_n "(cached) $ac_c" 1>&6
7717 else
7718   cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7721 #include <langinfo.h>
7722 EOF
7723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7724 { (eval echo configure:7725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7726 if test -z "$ac_err"; then
7727   rm -rf conftest*
7728   eval "ac_cv_header_$ac_safe=yes"
7729 else
7730   echo "$ac_err" >&5
7731   echo "configure: failed program was:" >&5
7732   cat conftest.$ac_ext >&5
7733   rm -rf conftest*
7734   eval "ac_cv_header_$ac_safe=no"
7735 fi
7736 rm -f conftest*
7737 fi
7738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7739   echo "$ac_t""yes" 1>&6
7740   ac_has_langinfo_h=yes
7741 else
7742   echo "$ac_t""no" 1>&6
7743 ac_has_langinfo_h=no
7744 fi
7745
7746
7747         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7748 echo "configure:7749: checking for iconv in -liconv" >&5
7749 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7751   echo $ac_n "(cached) $ac_c" 1>&6
7752 else
7753   ac_save_LIBS="$LIBS"
7754 LIBS="-liconv  $LIBS"
7755 cat > conftest.$ac_ext <<EOF
7756 #line 7757 "configure"
7757 #include "confdefs.h"
7758 /* Override any gcc2 internal prototype to avoid an error.  */
7759 /* We use char because int might match the return type of a gcc2
7760     builtin and then its argument prototype would still apply.  */
7761 char iconv();
7762
7763 int main() {
7764 iconv()
7765 ; return 0; }
7766 EOF
7767 if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7768   rm -rf conftest*
7769   eval "ac_cv_lib_$ac_lib_var=yes"
7770 else
7771   echo "configure: failed program was:" >&5
7772   cat conftest.$ac_ext >&5
7773   rm -rf conftest*
7774   eval "ac_cv_lib_$ac_lib_var=no"
7775 fi
7776 rm -f conftest*
7777 LIBS="$ac_save_LIBS"
7778
7779 fi
7780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7781   echo "$ac_t""yes" 1>&6
7782   libiconv="-liconv"
7783 else
7784   echo "$ac_t""no" 1>&6
7785 fi
7786
7787     ac_save_LIBS="$LIBS"
7788     LIBS="$LIBS $libiconv"
7789
7790     for ac_func in iconv_open iconv_close iconv nl_langinfo
7791 do
7792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_func" >&5
7794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7795   echo $ac_n "(cached) $ac_c" 1>&6
7796 else
7797   cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* System header to define __stub macros and hopefully few prototypes,
7801     which can conflict with char $ac_func(); below.  */
7802 #include <assert.h>
7803 /* Override any gcc2 internal prototype to avoid an error.  */
7804 /* We use char because int might match the return type of a gcc2
7805     builtin and then its argument prototype would still apply.  */
7806 char $ac_func();
7807
7808 int main() {
7809
7810 /* The GNU C library defines this for functions which it implements
7811     to always fail with ENOSYS.  Some functions are actually named
7812     something starting with __ and the normal name is an alias.  */
7813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7814 choke me
7815 #else
7816 $ac_func();
7817 #endif
7818
7819 ; return 0; }
7820 EOF
7821 if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7822   rm -rf conftest*
7823   eval "ac_cv_func_$ac_func=yes"
7824 else
7825   echo "configure: failed program was:" >&5
7826   cat conftest.$ac_ext >&5
7827   rm -rf conftest*
7828   eval "ac_cv_func_$ac_func=no"
7829 fi
7830 rm -f conftest*
7831 fi
7832
7833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7834   echo "$ac_t""yes" 1>&6
7835     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7836   cat >> confdefs.h <<EOF
7837 #define $ac_tr_func 1
7838 EOF
7839  \
7840     ac_XPG2funcs=yes
7841 else
7842   echo "$ac_t""no" 1>&6
7843 ac_XPG2funcs=no
7844 fi
7845 done
7846
7847   
7848     LIBS="$ac_save_LIBS"
7849
7850     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7851 echo "configure:7852: checking for XPG2 wchar_t support" >&5
7852     if test x"$ac_has_iconv_h" = xyes &&
7853        test x"$ac_has_langinfo_h" = xyes &&
7854        test x"$ac_XPG2funcs" = xyes; then
7855       ac_XPG2_wchar_t=yes
7856     else
7857       ac_XPG2_wchar_t=no
7858     fi
7859     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7860   
7861             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7862 echo "configure:7863: checking for enabled wchar_t specializations" >&5
7863     if test x"$ac_isoC99_wchar_t" = xyes &&
7864        test x"$ac_XPG2_wchar_t" = xyes; then
7865       cat >> confdefs.h <<\EOF
7866 #define _GLIBCPP_USE_WCHAR_T 1
7867 EOF
7868
7869       echo "$ac_t"""yes"" 1>&6
7870     else
7871       echo "$ac_t"""no"" 1>&6
7872     fi
7873   else
7874         echo "configure: warning: wchar_t support disabled." 1>&2
7875   fi
7876
7877       os_include_dir="config/os/mingw32"
7878       ;;
7879     *-windiss*)
7880       os_include_dir="config/os/windiss"
7881       ;;
7882     *)
7883       os_include_dir="config/os/newlib"
7884       cat >> confdefs.h <<\EOF
7885 #define HAVE_HYPOT 1
7886 EOF
7887
7888       ;;
7889   esac
7890
7891   case "$target_alias" in
7892     *-mingw32*)
7893       ;;
7894     *-windiss*)
7895       cat >> confdefs.h <<\EOF
7896 #define HAVE_ACOSF 1
7897 EOF
7898
7899       cat >> confdefs.h <<\EOF
7900 #define HAVE_ASINF 1
7901 EOF
7902
7903       cat >> confdefs.h <<\EOF
7904 #define HAVE_ATAN2F 1
7905 EOF
7906
7907       cat >> confdefs.h <<\EOF
7908 #define HAVE_ATANF 1
7909 EOF
7910
7911       cat >> confdefs.h <<\EOF
7912 #define HAVE_CEILF 1
7913 EOF
7914
7915       cat >> confdefs.h <<\EOF
7916 #define HAVE_COPYSIGN 1
7917 EOF
7918
7919       cat >> confdefs.h <<\EOF
7920 #define HAVE_COPYSIGNF 1
7921 EOF
7922
7923       cat >> confdefs.h <<\EOF
7924 #define HAVE_COSF 1
7925 EOF
7926
7927       cat >> confdefs.h <<\EOF
7928 #define HAVE_COSHF 1
7929 EOF
7930
7931       cat >> confdefs.h <<\EOF
7932 #define HAVE_EXPF 1
7933 EOF
7934
7935       cat >> confdefs.h <<\EOF
7936 #define HAVE_FABSF 1
7937 EOF
7938
7939       cat >> confdefs.h <<\EOF
7940 #define HAVE_FLOORF 1
7941 EOF
7942
7943       cat >> confdefs.h <<\EOF
7944 #define HAVE_FMODF 1
7945 EOF
7946
7947       cat >> confdefs.h <<\EOF
7948 #define HAVE_FREXPF 1
7949 EOF
7950
7951       cat >> confdefs.h <<\EOF
7952 #define HAVE_LDEXPF 1
7953 EOF
7954
7955       cat >> confdefs.h <<\EOF
7956 #define HAVE_LOG10F 1
7957 EOF
7958
7959       cat >> confdefs.h <<\EOF
7960 #define HAVE_LOGF 1
7961 EOF
7962
7963       cat >> confdefs.h <<\EOF
7964 #define HAVE_MODFF 1
7965 EOF
7966
7967       cat >> confdefs.h <<\EOF
7968 #define HAVE_POWF 1
7969 EOF
7970
7971       cat >> confdefs.h <<\EOF
7972 #define HAVE_SINF 1
7973 EOF
7974
7975       cat >> confdefs.h <<\EOF
7976 #define HAVE_SINHF 1
7977 EOF
7978
7979       cat >> confdefs.h <<\EOF
7980 #define HAVE_SQRTF 1
7981 EOF
7982
7983       cat >> confdefs.h <<\EOF
7984 #define HAVE_TANF 1
7985 EOF
7986
7987       cat >> confdefs.h <<\EOF
7988 #define HAVE_TANHF 1
7989 EOF
7990
7991       ;;
7992     *)
7993       # GLIBCPP_CHECK_STDLIB_SUPPORT
7994       cat >> confdefs.h <<\EOF
7995 #define HAVE_STRTOF 1
7996 EOF
7997         
7998       cat >> confdefs.h <<\EOF
7999 #define HAVE_STRTOLD 1
8000 EOF
8001         
8002       # AC_FUNC_MMAP
8003       cat >> confdefs.h <<\EOF
8004 #define HAVE_MMAP 1
8005 EOF
8006
8007
8008       cat >> confdefs.h <<\EOF
8009 #define HAVE_ACOSF 1
8010 EOF
8011
8012       cat >> confdefs.h <<\EOF
8013 #define HAVE_ASINF 1
8014 EOF
8015
8016       cat >> confdefs.h <<\EOF
8017 #define HAVE_ATAN2F 1
8018 EOF
8019
8020       cat >> confdefs.h <<\EOF
8021 #define HAVE_ATANF 1
8022 EOF
8023
8024       cat >> confdefs.h <<\EOF
8025 #define HAVE_CEILF 1
8026 EOF
8027
8028       cat >> confdefs.h <<\EOF
8029 #define HAVE_COPYSIGN 1
8030 EOF
8031
8032       cat >> confdefs.h <<\EOF
8033 #define HAVE_COPYSIGNF 1
8034 EOF
8035
8036       cat >> confdefs.h <<\EOF
8037 #define HAVE_COSF 1
8038 EOF
8039
8040       cat >> confdefs.h <<\EOF
8041 #define HAVE_COSHF 1
8042 EOF
8043
8044       cat >> confdefs.h <<\EOF
8045 #define HAVE_EXPF 1
8046 EOF
8047
8048       cat >> confdefs.h <<\EOF
8049 #define HAVE_FABSF 1
8050 EOF
8051
8052       cat >> confdefs.h <<\EOF
8053 #define HAVE_FINITE 1
8054 EOF
8055
8056       cat >> confdefs.h <<\EOF
8057 #define HAVE_FINITEF 1
8058 EOF
8059
8060       cat >> confdefs.h <<\EOF
8061 #define HAVE_FLOORF 1
8062 EOF
8063
8064       cat >> confdefs.h <<\EOF
8065 #define HAVE_FMODF 1
8066 EOF
8067
8068       cat >> confdefs.h <<\EOF
8069 #define HAVE_FREXPF 1
8070 EOF
8071
8072       cat >> confdefs.h <<\EOF
8073 #define HAVE_ISINF 1
8074 EOF
8075
8076       cat >> confdefs.h <<\EOF
8077 #define HAVE_ISINFF 1
8078 EOF
8079
8080       cat >> confdefs.h <<\EOF
8081 #define HAVE_ISNAN 1
8082 EOF
8083
8084       cat >> confdefs.h <<\EOF
8085 #define HAVE_ISNANF 1
8086 EOF
8087
8088       cat >> confdefs.h <<\EOF
8089 #define HAVE_LDEXPF 1
8090 EOF
8091
8092       cat >> confdefs.h <<\EOF
8093 #define HAVE_LOG10F 1
8094 EOF
8095
8096       cat >> confdefs.h <<\EOF
8097 #define HAVE_LOGF 1
8098 EOF
8099
8100       cat >> confdefs.h <<\EOF
8101 #define HAVE_MODFF 1
8102 EOF
8103
8104       cat >> confdefs.h <<\EOF
8105 #define HAVE_POWF 1
8106 EOF
8107
8108       cat >> confdefs.h <<\EOF
8109 #define HAVE_SINF 1
8110 EOF
8111
8112       cat >> confdefs.h <<\EOF
8113 #define HAVE_SINHF 1
8114 EOF
8115
8116       cat >> confdefs.h <<\EOF
8117 #define HAVE_SQRTF 1
8118 EOF
8119
8120       cat >> confdefs.h <<\EOF
8121 #define HAVE_TANF 1
8122 EOF
8123
8124       cat >> confdefs.h <<\EOF
8125 #define HAVE_TANHF 1
8126 EOF
8127
8128       ;;
8129   esac
8130
8131   # At some point, we should differentiate between architectures
8132   # like x86, which have long double versions, and alpha/powerpc/etc.,
8133   # which don't. For the time being, punt.
8134   if test x"long_double_math_on_this_cpu" = x"yes"; then
8135     cat >> confdefs.h <<\EOF
8136 #define HAVE_ACOSL 1
8137 EOF
8138
8139     cat >> confdefs.h <<\EOF
8140 #define HAVE_ASINL 1
8141 EOF
8142
8143     cat >> confdefs.h <<\EOF
8144 #define HAVE_ATAN2L 1
8145 EOF
8146
8147     cat >> confdefs.h <<\EOF
8148 #define HAVE_ATANL 1
8149 EOF
8150
8151     cat >> confdefs.h <<\EOF
8152 #define HAVE_CEILL 1
8153 EOF
8154
8155     cat >> confdefs.h <<\EOF
8156 #define HAVE_COPYSIGNL 1
8157 EOF
8158
8159     cat >> confdefs.h <<\EOF
8160 #define HAVE_COSL 1
8161 EOF
8162
8163     cat >> confdefs.h <<\EOF
8164 #define HAVE_COSHL 1
8165 EOF
8166
8167     cat >> confdefs.h <<\EOF
8168 #define HAVE_EXPL 1
8169 EOF
8170
8171     cat >> confdefs.h <<\EOF
8172 #define HAVE_FABSL 1
8173 EOF
8174
8175     cat >> confdefs.h <<\EOF
8176 #define HAVE_FINITEL 1
8177 EOF
8178
8179     cat >> confdefs.h <<\EOF
8180 #define HAVE_FLOORL 1
8181 EOF
8182
8183     cat >> confdefs.h <<\EOF
8184 #define HAVE_FMODL 1
8185 EOF
8186
8187     cat >> confdefs.h <<\EOF
8188 #define HAVE_FREXPL 1
8189 EOF
8190
8191     cat >> confdefs.h <<\EOF
8192 #define HAVE_ISINFL 1
8193 EOF
8194
8195     cat >> confdefs.h <<\EOF
8196 #define HAVE_ISNANL 1
8197 EOF
8198
8199     cat >> confdefs.h <<\EOF
8200 #define HAVE_LDEXPL 1
8201 EOF
8202
8203     cat >> confdefs.h <<\EOF
8204 #define HAVE_LOG10L 1
8205 EOF
8206
8207     cat >> confdefs.h <<\EOF
8208 #define HAVE_LOGL 1
8209 EOF
8210
8211     cat >> confdefs.h <<\EOF
8212 #define HAVE_MODFL 1
8213 EOF
8214
8215     cat >> confdefs.h <<\EOF
8216 #define HAVE_POWL 1
8217 EOF
8218
8219     cat >> confdefs.h <<\EOF
8220 #define HAVE_SINCOSL 1
8221 EOF
8222
8223     cat >> confdefs.h <<\EOF
8224 #define HAVE_SINL 1
8225 EOF
8226
8227     cat >> confdefs.h <<\EOF
8228 #define HAVE_SINHL 1
8229 EOF
8230
8231     cat >> confdefs.h <<\EOF
8232 #define HAVE_SQRTL 1
8233 EOF
8234
8235     cat >> confdefs.h <<\EOF
8236 #define HAVE_TANL 1
8237 EOF
8238
8239     cat >> confdefs.h <<\EOF
8240 #define HAVE_TANHL 1
8241 EOF
8242
8243   fi
8244 else
8245
8246   # We are being configured natively. We can do more elaborate tests
8247   # that include AC_TRY_COMPILE now, as the linker is assumed to be
8248   # working.
8249   GLIBCPP_IS_CROSS_COMPILING=0
8250   CANADIAN=no
8251
8252   # Check for available headers.
8253   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8254   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
8255 do
8256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8258 echo "configure:8259: checking for $ac_hdr" >&5
8259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8260   echo $ac_n "(cached) $ac_c" 1>&6
8261 else
8262   cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8265 #include <$ac_hdr>
8266 EOF
8267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8268 { (eval echo configure:8269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8270 if test -z "$ac_err"; then
8271   rm -rf conftest*
8272   eval "ac_cv_header_$ac_safe=yes"
8273 else
8274   echo "$ac_err" >&5
8275   echo "configure: failed program was:" >&5
8276   cat conftest.$ac_ext >&5
8277   rm -rf conftest*
8278   eval "ac_cv_header_$ac_safe=no"
8279 fi
8280 rm -f conftest*
8281 fi
8282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8283   echo "$ac_t""yes" 1>&6
8284     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8285   cat >> confdefs.h <<EOF
8286 #define $ac_tr_hdr 1
8287 EOF
8288  
8289 else
8290   echo "$ac_t""no" 1>&6
8291 fi
8292 done
8293
8294
8295   
8296   # All these tests are for C++; save the language and the compiler flags.
8297   # The CXXFLAGS thing is suspicious, but based on similar bits previously
8298   # found in GLIBCPP_CONFIGURE.
8299   
8300   ac_ext=C
8301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8302 ac_cpp='$CXXCPP $CPPFLAGS'
8303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8305 cross_compiling=$ac_cv_prog_cxx_cross
8306
8307   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8308   ac_save_CXXFLAGS="$CXXFLAGS"
8309
8310   # Check for maintainer-mode bits.
8311   if test x"$USE_MAINTAINER_MODE" = xno; then
8312     WERROR=''
8313   else
8314     WERROR='-Werror'
8315   fi
8316
8317   # Check for -ffunction-sections -fdata-sections
8318   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
8319 echo "configure:8320: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8320   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8321   cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324
8325 int main() {
8326 int foo;
8327   
8328 ; return 0; }
8329 EOF
8330 if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8331   rm -rf conftest*
8332   ac_fdsections=yes
8333 else
8334   echo "configure: failed program was:" >&5
8335   cat conftest.$ac_ext >&5
8336   rm -rf conftest*
8337   ac_fdsections=no
8338 fi
8339 rm -f conftest*
8340   if test "$ac_test_CXXFLAGS" = set; then
8341     CXXFLAGS="$ac_save_CXXFLAGS"
8342   else
8343     # this is the suspicious part
8344     CXXFLAGS=''
8345   fi
8346   if test x"$ac_fdsections" = x"yes" &&
8347      test x"$enable_debug" = x"no"; then
8348     SECTION_FLAGS='-ffunction-sections -fdata-sections'
8349   fi
8350   echo "$ac_t""$ac_fdsections" 1>&6
8351
8352   ac_ext=c
8353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8354 ac_cpp='$CPP $CPPFLAGS'
8355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8357 cross_compiling=$ac_cv_prog_cc_cross
8358
8359   
8360   
8361
8362   
8363   # If we're not using GNU ld, then there's no point in even trying these
8364   # tests.  Check for that first.  We should have already tested for gld
8365   # by now (in libtool), but require it now just to be safe...
8366   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8367   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8368   
8369
8370   # The name set by libtool depends on the version of libtool.  Shame on us
8371   # for depending on an impl detail, but c'est la vie.  Older versions used
8372   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8373   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8374   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8375   # set (hence we're using an older libtool), then set it.
8376   if test x${with_gnu_ld+set} != xset; then
8377     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8378       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8379       with_gnu_ld=no
8380     else
8381       with_gnu_ld=$ac_cv_prog_gnu_ld
8382     fi
8383   fi
8384
8385   # Start by getting the version number.  I think the libtool test already
8386   # does some of this, but throws away the result.
8387   
8388   ldver=`$LD --version 2>/dev/null | head -1 | \
8389          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8390   
8391   glibcpp_gnu_ld_version=`echo $ldver | \
8392          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8393
8394   # Set --gc-sections.
8395   if test "$with_gnu_ld" = "notbroken"; then
8396     # GNU ld it is!  Joy and bunny rabbits!
8397
8398     # All these tests are for C++; save the language and the compiler flags.
8399     # Need to do this so that g++ won't try to link in libstdc++
8400     ac_test_CFLAGS="${CFLAGS+set}"
8401     ac_save_CFLAGS="$CFLAGS"
8402     CFLAGS='-x c++  -Wl,--gc-sections'
8403
8404     # Check for -Wl,--gc-sections
8405     # XXX This test is broken at the moment, as symbols required for
8406     # linking are now in libsupc++ (not built yet.....). In addition, 
8407     # this test has cored on solaris in the past. In addition,
8408     # --gc-sections doesn't really work at the moment (keeps on discarding
8409     # used sections, first .eh_frame and now some of the glibc sections for
8410     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8411     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8412 echo "configure:8413: checking for ld that supports -Wl,--gc-sections" >&5
8413     if test "$cross_compiling" = yes; then
8414   ac_sectionLDflags=yes
8415 else
8416   cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419
8420      int main(void) 
8421      {
8422        try { throw 1; }
8423        catch (...) { };
8424        return 0;
8425      }
8426     
8427 EOF
8428 if { (eval echo configure:8429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8429 then
8430   ac_sectionLDflags=yes
8431 else
8432   echo "configure: failed program was:" >&5
8433   cat conftest.$ac_ext >&5
8434   rm -fr conftest*
8435   ac_sectionLDflags=no
8436 fi
8437 rm -fr conftest*
8438 fi
8439
8440     if test "$ac_test_CFLAGS" = set; then
8441       CFLAGS="$ac_save_CFLAGS"
8442     else
8443       # this is the suspicious part
8444       CFLAGS=''
8445     fi
8446     if test "$ac_sectionLDflags" = "yes"; then
8447       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8448     fi
8449     echo "$ac_t""$ac_sectionLDflags" 1>&6
8450   fi
8451
8452   # Set linker optimization flags.
8453   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8454     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8455   fi
8456
8457   
8458   
8459
8460   
8461       
8462   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
8463 echo "configure:8464: checking for __builtin_abs declaration" >&5
8464   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
8465     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
8466   echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8468   
8469       
8470       ac_ext=C
8471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8472 ac_cpp='$CXXCPP $CPPFLAGS'
8473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8475 cross_compiling=$ac_cv_prog_cxx_cross
8476
8477       cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 #include <math.h>
8481 int main() {
8482  __builtin_abs(0);
8483 ; return 0; }
8484 EOF
8485 if { (eval echo configure:8486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8486   rm -rf conftest*
8487   glibcpp_cv_func___builtin_abs_use=yes
8488 else
8489   echo "configure: failed program was:" >&5
8490   cat conftest.$ac_ext >&5
8491   rm -rf conftest*
8492   glibcpp_cv_func___builtin_abs_use=no
8493 fi
8494 rm -f conftest*
8495       ac_ext=c
8496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8497 ac_cpp='$CPP $CPPFLAGS'
8498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8500 cross_compiling=$ac_cv_prog_cc_cross
8501
8502     
8503 fi
8504
8505   fi
8506   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
8507   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
8508     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
8509 echo "configure:8510: checking for __builtin_abs linkage" >&5
8510     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
8511       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
8512   echo $ac_n "(cached) $ac_c" 1>&6
8513 else
8514   
8515         cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8518 #include <math.h>
8519 int main() {
8520  __builtin_abs(0);
8521 ; return 0; }
8522 EOF
8523 if { (eval echo configure:8524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524   rm -rf conftest*
8525   glibcpp_cv_func___builtin_abs_link=yes
8526 else
8527   echo "configure: failed program was:" >&5
8528   cat conftest.$ac_ext >&5
8529   rm -rf conftest*
8530   glibcpp_cv_func___builtin_abs_link=no
8531 fi
8532 rm -f conftest*
8533       
8534 fi
8535
8536     fi
8537     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
8538     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
8539       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8540       cat >> confdefs.h <<EOF
8541 #define ${ac_tr_func} 1
8542 EOF
8543
8544     fi
8545   fi
8546
8547   
8548   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
8549 echo "configure:8550: checking for __builtin_fabsf declaration" >&5
8550   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
8551     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
8552   echo $ac_n "(cached) $ac_c" 1>&6
8553 else
8554   
8555       
8556       ac_ext=C
8557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8558 ac_cpp='$CXXCPP $CPPFLAGS'
8559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8561 cross_compiling=$ac_cv_prog_cxx_cross
8562
8563       cat > conftest.$ac_ext <<EOF
8564 #line 8565 "configure"
8565 #include "confdefs.h"
8566 #include <math.h>
8567 int main() {
8568  __builtin_fabsf(0);
8569 ; return 0; }
8570 EOF
8571 if { (eval echo configure:8572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8572   rm -rf conftest*
8573   glibcpp_cv_func___builtin_fabsf_use=yes
8574 else
8575   echo "configure: failed program was:" >&5
8576   cat conftest.$ac_ext >&5
8577   rm -rf conftest*
8578   glibcpp_cv_func___builtin_fabsf_use=no
8579 fi
8580 rm -f conftest*
8581       ac_ext=c
8582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8583 ac_cpp='$CPP $CPPFLAGS'
8584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8586 cross_compiling=$ac_cv_prog_cc_cross
8587
8588     
8589 fi
8590
8591   fi
8592   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
8593   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
8594     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
8595 echo "configure:8596: checking for __builtin_fabsf linkage" >&5
8596     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
8597       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
8598   echo $ac_n "(cached) $ac_c" 1>&6
8599 else
8600   
8601         cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8604 #include <math.h>
8605 int main() {
8606  __builtin_fabsf(0);
8607 ; return 0; }
8608 EOF
8609 if { (eval echo configure:8610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8610   rm -rf conftest*
8611   glibcpp_cv_func___builtin_fabsf_link=yes
8612 else
8613   echo "configure: failed program was:" >&5
8614   cat conftest.$ac_ext >&5
8615   rm -rf conftest*
8616   glibcpp_cv_func___builtin_fabsf_link=no
8617 fi
8618 rm -f conftest*
8619       
8620 fi
8621
8622     fi
8623     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
8624     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
8625       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8626       cat >> confdefs.h <<EOF
8627 #define ${ac_tr_func} 1
8628 EOF
8629
8630     fi
8631   fi
8632
8633   
8634   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
8635 echo "configure:8636: checking for __builtin_fabs declaration" >&5
8636   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
8637     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
8638   echo $ac_n "(cached) $ac_c" 1>&6
8639 else
8640   
8641       
8642       ac_ext=C
8643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8644 ac_cpp='$CXXCPP $CPPFLAGS'
8645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8647 cross_compiling=$ac_cv_prog_cxx_cross
8648
8649       cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 #include <math.h>
8653 int main() {
8654  __builtin_fabs(0);
8655 ; return 0; }
8656 EOF
8657 if { (eval echo configure:8658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8658   rm -rf conftest*
8659   glibcpp_cv_func___builtin_fabs_use=yes
8660 else
8661   echo "configure: failed program was:" >&5
8662   cat conftest.$ac_ext >&5
8663   rm -rf conftest*
8664   glibcpp_cv_func___builtin_fabs_use=no
8665 fi
8666 rm -f conftest*
8667       ac_ext=c
8668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8669 ac_cpp='$CPP $CPPFLAGS'
8670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8672 cross_compiling=$ac_cv_prog_cc_cross
8673
8674     
8675 fi
8676
8677   fi
8678   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
8679   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
8680     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
8681 echo "configure:8682: checking for __builtin_fabs linkage" >&5
8682     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
8683       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
8684   echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686   
8687         cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 #include <math.h>
8691 int main() {
8692  __builtin_fabs(0);
8693 ; return 0; }
8694 EOF
8695 if { (eval echo configure:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8696   rm -rf conftest*
8697   glibcpp_cv_func___builtin_fabs_link=yes
8698 else
8699   echo "configure: failed program was:" >&5
8700   cat conftest.$ac_ext >&5
8701   rm -rf conftest*
8702   glibcpp_cv_func___builtin_fabs_link=no
8703 fi
8704 rm -f conftest*
8705       
8706 fi
8707
8708     fi
8709     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
8710     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
8711       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8712       cat >> confdefs.h <<EOF
8713 #define ${ac_tr_func} 1
8714 EOF
8715
8716     fi
8717   fi
8718
8719   
8720   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
8721 echo "configure:8722: checking for __builtin_fabsl declaration" >&5
8722   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
8723     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
8724   echo $ac_n "(cached) $ac_c" 1>&6
8725 else
8726   
8727       
8728       ac_ext=C
8729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8730 ac_cpp='$CXXCPP $CPPFLAGS'
8731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8733 cross_compiling=$ac_cv_prog_cxx_cross
8734
8735       cat > conftest.$ac_ext <<EOF
8736 #line 8737 "configure"
8737 #include "confdefs.h"
8738 #include <math.h>
8739 int main() {
8740  __builtin_fabsl(0);
8741 ; return 0; }
8742 EOF
8743 if { (eval echo configure:8744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8744   rm -rf conftest*
8745   glibcpp_cv_func___builtin_fabsl_use=yes
8746 else
8747   echo "configure: failed program was:" >&5
8748   cat conftest.$ac_ext >&5
8749   rm -rf conftest*
8750   glibcpp_cv_func___builtin_fabsl_use=no
8751 fi
8752 rm -f conftest*
8753       ac_ext=c
8754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8755 ac_cpp='$CPP $CPPFLAGS'
8756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8758 cross_compiling=$ac_cv_prog_cc_cross
8759
8760     
8761 fi
8762
8763   fi
8764   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
8765   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
8766     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
8767 echo "configure:8768: checking for __builtin_fabsl linkage" >&5
8768     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
8769       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
8770   echo $ac_n "(cached) $ac_c" 1>&6
8771 else
8772   
8773         cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8776 #include <math.h>
8777 int main() {
8778  __builtin_fabsl(0);
8779 ; return 0; }
8780 EOF
8781 if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8782   rm -rf conftest*
8783   glibcpp_cv_func___builtin_fabsl_link=yes
8784 else
8785   echo "configure: failed program was:" >&5
8786   cat conftest.$ac_ext >&5
8787   rm -rf conftest*
8788   glibcpp_cv_func___builtin_fabsl_link=no
8789 fi
8790 rm -f conftest*
8791       
8792 fi
8793
8794     fi
8795     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
8796     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
8797       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8798       cat >> confdefs.h <<EOF
8799 #define ${ac_tr_func} 1
8800 EOF
8801
8802     fi
8803   fi
8804
8805   
8806   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
8807 echo "configure:8808: checking for __builtin_labs declaration" >&5
8808   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
8809     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
8810   echo $ac_n "(cached) $ac_c" 1>&6
8811 else
8812   
8813       
8814       ac_ext=C
8815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8816 ac_cpp='$CXXCPP $CPPFLAGS'
8817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8819 cross_compiling=$ac_cv_prog_cxx_cross
8820
8821       cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8824 #include <math.h>
8825 int main() {
8826  __builtin_labs(0);
8827 ; return 0; }
8828 EOF
8829 if { (eval echo configure:8830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8830   rm -rf conftest*
8831   glibcpp_cv_func___builtin_labs_use=yes
8832 else
8833   echo "configure: failed program was:" >&5
8834   cat conftest.$ac_ext >&5
8835   rm -rf conftest*
8836   glibcpp_cv_func___builtin_labs_use=no
8837 fi
8838 rm -f conftest*
8839       ac_ext=c
8840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8841 ac_cpp='$CPP $CPPFLAGS'
8842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8844 cross_compiling=$ac_cv_prog_cc_cross
8845
8846     
8847 fi
8848
8849   fi
8850   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
8851   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
8852     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
8853 echo "configure:8854: checking for __builtin_labs linkage" >&5
8854     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
8855       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
8856   echo $ac_n "(cached) $ac_c" 1>&6
8857 else
8858   
8859         cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 #include <math.h>
8863 int main() {
8864  __builtin_labs(0);
8865 ; return 0; }
8866 EOF
8867 if { (eval echo configure:8868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8868   rm -rf conftest*
8869   glibcpp_cv_func___builtin_labs_link=yes
8870 else
8871   echo "configure: failed program was:" >&5
8872   cat conftest.$ac_ext >&5
8873   rm -rf conftest*
8874   glibcpp_cv_func___builtin_labs_link=no
8875 fi
8876 rm -f conftest*
8877       
8878 fi
8879
8880     fi
8881     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
8882     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
8883       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8884       cat >> confdefs.h <<EOF
8885 #define ${ac_tr_func} 1
8886 EOF
8887
8888     fi
8889   fi
8890
8891
8892   
8893   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
8894 echo "configure:8895: checking for __builtin_sqrtf declaration" >&5
8895   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
8896     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
8897   echo $ac_n "(cached) $ac_c" 1>&6
8898 else
8899   
8900       
8901       ac_ext=C
8902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8903 ac_cpp='$CXXCPP $CPPFLAGS'
8904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8906 cross_compiling=$ac_cv_prog_cxx_cross
8907
8908       cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 #include <math.h>
8912 int main() {
8913  __builtin_sqrtf(0);
8914 ; return 0; }
8915 EOF
8916 if { (eval echo configure:8917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8917   rm -rf conftest*
8918   glibcpp_cv_func___builtin_sqrtf_use=yes
8919 else
8920   echo "configure: failed program was:" >&5
8921   cat conftest.$ac_ext >&5
8922   rm -rf conftest*
8923   glibcpp_cv_func___builtin_sqrtf_use=no
8924 fi
8925 rm -f conftest*
8926       ac_ext=c
8927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8931 cross_compiling=$ac_cv_prog_cc_cross
8932
8933     
8934 fi
8935
8936   fi
8937   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
8938   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
8939     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
8940 echo "configure:8941: checking for __builtin_sqrtf linkage" >&5
8941     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
8942       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
8943   echo $ac_n "(cached) $ac_c" 1>&6
8944 else
8945   
8946         cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 #include <math.h>
8950 int main() {
8951  __builtin_sqrtf(0);
8952 ; return 0; }
8953 EOF
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8955   rm -rf conftest*
8956   glibcpp_cv_func___builtin_sqrtf_link=yes
8957 else
8958   echo "configure: failed program was:" >&5
8959   cat conftest.$ac_ext >&5
8960   rm -rf conftest*
8961   glibcpp_cv_func___builtin_sqrtf_link=no
8962 fi
8963 rm -f conftest*
8964       
8965 fi
8966
8967     fi
8968     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
8969     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
8970       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8971       cat >> confdefs.h <<EOF
8972 #define ${ac_tr_func} 1
8973 EOF
8974
8975     fi
8976   fi
8977
8978   
8979   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
8980 echo "configure:8981: checking for __builtin_sqrt declaration" >&5
8981   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
8982     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
8983   echo $ac_n "(cached) $ac_c" 1>&6
8984 else
8985   
8986       
8987       ac_ext=C
8988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8989 ac_cpp='$CXXCPP $CPPFLAGS'
8990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8992 cross_compiling=$ac_cv_prog_cxx_cross
8993
8994       cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 #include <math.h>
8998 int main() {
8999  __builtin_sqrt(0);
9000 ; return 0; }
9001 EOF
9002 if { (eval echo configure:9003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9003   rm -rf conftest*
9004   glibcpp_cv_func___builtin_sqrt_use=yes
9005 else
9006   echo "configure: failed program was:" >&5
9007   cat conftest.$ac_ext >&5
9008   rm -rf conftest*
9009   glibcpp_cv_func___builtin_sqrt_use=no
9010 fi
9011 rm -f conftest*
9012       ac_ext=c
9013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9014 ac_cpp='$CPP $CPPFLAGS'
9015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9017 cross_compiling=$ac_cv_prog_cc_cross
9018
9019     
9020 fi
9021
9022   fi
9023   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9024   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9025     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9026 echo "configure:9027: checking for __builtin_sqrt linkage" >&5
9027     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9028       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9029   echo $ac_n "(cached) $ac_c" 1>&6
9030 else
9031   
9032         cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035 #include <math.h>
9036 int main() {
9037  __builtin_sqrt(0);
9038 ; return 0; }
9039 EOF
9040 if { (eval echo configure:9041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9041   rm -rf conftest*
9042   glibcpp_cv_func___builtin_sqrt_link=yes
9043 else
9044   echo "configure: failed program was:" >&5
9045   cat conftest.$ac_ext >&5
9046   rm -rf conftest*
9047   glibcpp_cv_func___builtin_sqrt_link=no
9048 fi
9049 rm -f conftest*
9050       
9051 fi
9052
9053     fi
9054     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9055     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9056       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9057       cat >> confdefs.h <<EOF
9058 #define ${ac_tr_func} 1
9059 EOF
9060
9061     fi
9062   fi
9063
9064   
9065   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9066 echo "configure:9067: checking for __builtin_sqrtl declaration" >&5
9067   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9068     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9069   echo $ac_n "(cached) $ac_c" 1>&6
9070 else
9071   
9072       
9073       ac_ext=C
9074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9075 ac_cpp='$CXXCPP $CPPFLAGS'
9076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9078 cross_compiling=$ac_cv_prog_cxx_cross
9079
9080       cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 #include <math.h>
9084 int main() {
9085  __builtin_sqrtl(0);
9086 ; return 0; }
9087 EOF
9088 if { (eval echo configure:9089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9089   rm -rf conftest*
9090   glibcpp_cv_func___builtin_sqrtl_use=yes
9091 else
9092   echo "configure: failed program was:" >&5
9093   cat conftest.$ac_ext >&5
9094   rm -rf conftest*
9095   glibcpp_cv_func___builtin_sqrtl_use=no
9096 fi
9097 rm -f conftest*
9098       ac_ext=c
9099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9100 ac_cpp='$CPP $CPPFLAGS'
9101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9103 cross_compiling=$ac_cv_prog_cc_cross
9104
9105     
9106 fi
9107
9108   fi
9109   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
9110   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
9111     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
9112 echo "configure:9113: checking for __builtin_sqrtl linkage" >&5
9113     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
9114       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
9115   echo $ac_n "(cached) $ac_c" 1>&6
9116 else
9117   
9118         cat > conftest.$ac_ext <<EOF
9119 #line 9120 "configure"
9120 #include "confdefs.h"
9121 #include <math.h>
9122 int main() {
9123  __builtin_sqrtl(0);
9124 ; return 0; }
9125 EOF
9126 if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9127   rm -rf conftest*
9128   glibcpp_cv_func___builtin_sqrtl_link=yes
9129 else
9130   echo "configure: failed program was:" >&5
9131   cat conftest.$ac_ext >&5
9132   rm -rf conftest*
9133   glibcpp_cv_func___builtin_sqrtl_link=no
9134 fi
9135 rm -f conftest*
9136       
9137 fi
9138
9139     fi
9140     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
9141     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
9142       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9143       cat >> confdefs.h <<EOF
9144 #define ${ac_tr_func} 1
9145 EOF
9146
9147     fi
9148   fi
9149
9150
9151   
9152   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
9153 echo "configure:9154: checking for __builtin_sinf declaration" >&5
9154   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
9155     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
9156   echo $ac_n "(cached) $ac_c" 1>&6
9157 else
9158   
9159       
9160       ac_ext=C
9161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9162 ac_cpp='$CXXCPP $CPPFLAGS'
9163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9165 cross_compiling=$ac_cv_prog_cxx_cross
9166
9167       cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 #include <math.h>
9171 int main() {
9172  __builtin_sinf(0);
9173 ; return 0; }
9174 EOF
9175 if { (eval echo configure:9176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9176   rm -rf conftest*
9177   glibcpp_cv_func___builtin_sinf_use=yes
9178 else
9179   echo "configure: failed program was:" >&5
9180   cat conftest.$ac_ext >&5
9181   rm -rf conftest*
9182   glibcpp_cv_func___builtin_sinf_use=no
9183 fi
9184 rm -f conftest*
9185       ac_ext=c
9186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9187 ac_cpp='$CPP $CPPFLAGS'
9188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9190 cross_compiling=$ac_cv_prog_cc_cross
9191
9192     
9193 fi
9194
9195   fi
9196   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
9197   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
9198     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
9199 echo "configure:9200: checking for __builtin_sinf linkage" >&5
9200     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
9201       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
9202   echo $ac_n "(cached) $ac_c" 1>&6
9203 else
9204   
9205         cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 #include <math.h>
9209 int main() {
9210  __builtin_sinf(0);
9211 ; return 0; }
9212 EOF
9213 if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9214   rm -rf conftest*
9215   glibcpp_cv_func___builtin_sinf_link=yes
9216 else
9217   echo "configure: failed program was:" >&5
9218   cat conftest.$ac_ext >&5
9219   rm -rf conftest*
9220   glibcpp_cv_func___builtin_sinf_link=no
9221 fi
9222 rm -f conftest*
9223       
9224 fi
9225
9226     fi
9227     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
9228     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
9229       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9230       cat >> confdefs.h <<EOF
9231 #define ${ac_tr_func} 1
9232 EOF
9233
9234     fi
9235   fi
9236
9237   
9238   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
9239 echo "configure:9240: checking for __builtin_sin declaration" >&5
9240   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
9241     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
9242   echo $ac_n "(cached) $ac_c" 1>&6
9243 else
9244   
9245       
9246       ac_ext=C
9247 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9248 ac_cpp='$CXXCPP $CPPFLAGS'
9249 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9250 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9251 cross_compiling=$ac_cv_prog_cxx_cross
9252
9253       cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 #include <math.h>
9257 int main() {
9258  __builtin_sin(0);
9259 ; return 0; }
9260 EOF
9261 if { (eval echo configure:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9262   rm -rf conftest*
9263   glibcpp_cv_func___builtin_sin_use=yes
9264 else
9265   echo "configure: failed program was:" >&5
9266   cat conftest.$ac_ext >&5
9267   rm -rf conftest*
9268   glibcpp_cv_func___builtin_sin_use=no
9269 fi
9270 rm -f conftest*
9271       ac_ext=c
9272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9273 ac_cpp='$CPP $CPPFLAGS'
9274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9276 cross_compiling=$ac_cv_prog_cc_cross
9277
9278     
9279 fi
9280
9281   fi
9282   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
9283   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
9284     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
9285 echo "configure:9286: checking for __builtin_sin linkage" >&5
9286     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
9287       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
9288   echo $ac_n "(cached) $ac_c" 1>&6
9289 else
9290   
9291         cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9294 #include <math.h>
9295 int main() {
9296  __builtin_sin(0);
9297 ; return 0; }
9298 EOF
9299 if { (eval echo configure:9300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9300   rm -rf conftest*
9301   glibcpp_cv_func___builtin_sin_link=yes
9302 else
9303   echo "configure: failed program was:" >&5
9304   cat conftest.$ac_ext >&5
9305   rm -rf conftest*
9306   glibcpp_cv_func___builtin_sin_link=no
9307 fi
9308 rm -f conftest*
9309       
9310 fi
9311
9312     fi
9313     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
9314     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
9315       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9316       cat >> confdefs.h <<EOF
9317 #define ${ac_tr_func} 1
9318 EOF
9319
9320     fi
9321   fi
9322
9323   
9324   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
9325 echo "configure:9326: checking for __builtin_sinl declaration" >&5
9326   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
9327     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
9328   echo $ac_n "(cached) $ac_c" 1>&6
9329 else
9330   
9331       
9332       ac_ext=C
9333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9334 ac_cpp='$CXXCPP $CPPFLAGS'
9335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9337 cross_compiling=$ac_cv_prog_cxx_cross
9338
9339       cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 #include <math.h>
9343 int main() {
9344  __builtin_sinl(0);
9345 ; return 0; }
9346 EOF
9347 if { (eval echo configure:9348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9348   rm -rf conftest*
9349   glibcpp_cv_func___builtin_sinl_use=yes
9350 else
9351   echo "configure: failed program was:" >&5
9352   cat conftest.$ac_ext >&5
9353   rm -rf conftest*
9354   glibcpp_cv_func___builtin_sinl_use=no
9355 fi
9356 rm -f conftest*
9357       ac_ext=c
9358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9359 ac_cpp='$CPP $CPPFLAGS'
9360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9362 cross_compiling=$ac_cv_prog_cc_cross
9363
9364     
9365 fi
9366
9367   fi
9368   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
9369   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
9370     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
9371 echo "configure:9372: checking for __builtin_sinl linkage" >&5
9372     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
9373       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
9374   echo $ac_n "(cached) $ac_c" 1>&6
9375 else
9376   
9377         cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 #include <math.h>
9381 int main() {
9382  __builtin_sinl(0);
9383 ; return 0; }
9384 EOF
9385 if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9386   rm -rf conftest*
9387   glibcpp_cv_func___builtin_sinl_link=yes
9388 else
9389   echo "configure: failed program was:" >&5
9390   cat conftest.$ac_ext >&5
9391   rm -rf conftest*
9392   glibcpp_cv_func___builtin_sinl_link=no
9393 fi
9394 rm -f conftest*
9395       
9396 fi
9397
9398     fi
9399     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
9400     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
9401       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9402       cat >> confdefs.h <<EOF
9403 #define ${ac_tr_func} 1
9404 EOF
9405
9406     fi
9407   fi
9408
9409
9410   
9411   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
9412 echo "configure:9413: checking for __builtin_cosf declaration" >&5
9413   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
9414     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
9415   echo $ac_n "(cached) $ac_c" 1>&6
9416 else
9417   
9418       
9419       ac_ext=C
9420 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9421 ac_cpp='$CXXCPP $CPPFLAGS'
9422 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9423 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9424 cross_compiling=$ac_cv_prog_cxx_cross
9425
9426       cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure"
9428 #include "confdefs.h"
9429 #include <math.h>
9430 int main() {
9431  __builtin_cosf(0);
9432 ; return 0; }
9433 EOF
9434 if { (eval echo configure:9435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9435   rm -rf conftest*
9436   glibcpp_cv_func___builtin_cosf_use=yes
9437 else
9438   echo "configure: failed program was:" >&5
9439   cat conftest.$ac_ext >&5
9440   rm -rf conftest*
9441   glibcpp_cv_func___builtin_cosf_use=no
9442 fi
9443 rm -f conftest*
9444       ac_ext=c
9445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9446 ac_cpp='$CPP $CPPFLAGS'
9447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9449 cross_compiling=$ac_cv_prog_cc_cross
9450
9451     
9452 fi
9453
9454   fi
9455   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
9456   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
9457     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
9458 echo "configure:9459: checking for __builtin_cosf linkage" >&5
9459     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
9460       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
9461   echo $ac_n "(cached) $ac_c" 1>&6
9462 else
9463   
9464         cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure"
9466 #include "confdefs.h"
9467 #include <math.h>
9468 int main() {
9469  __builtin_cosf(0);
9470 ; return 0; }
9471 EOF
9472 if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9473   rm -rf conftest*
9474   glibcpp_cv_func___builtin_cosf_link=yes
9475 else
9476   echo "configure: failed program was:" >&5
9477   cat conftest.$ac_ext >&5
9478   rm -rf conftest*
9479   glibcpp_cv_func___builtin_cosf_link=no
9480 fi
9481 rm -f conftest*
9482       
9483 fi
9484
9485     fi
9486     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
9487     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
9488       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9489       cat >> confdefs.h <<EOF
9490 #define ${ac_tr_func} 1
9491 EOF
9492
9493     fi
9494   fi
9495
9496   
9497   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
9498 echo "configure:9499: checking for __builtin_cos declaration" >&5
9499   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
9500     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
9501   echo $ac_n "(cached) $ac_c" 1>&6
9502 else
9503   
9504       
9505       ac_ext=C
9506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9507 ac_cpp='$CXXCPP $CPPFLAGS'
9508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9510 cross_compiling=$ac_cv_prog_cxx_cross
9511
9512       cat > conftest.$ac_ext <<EOF
9513 #line 9514 "configure"
9514 #include "confdefs.h"
9515 #include <math.h>
9516 int main() {
9517  __builtin_cos(0);
9518 ; return 0; }
9519 EOF
9520 if { (eval echo configure:9521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9521   rm -rf conftest*
9522   glibcpp_cv_func___builtin_cos_use=yes
9523 else
9524   echo "configure: failed program was:" >&5
9525   cat conftest.$ac_ext >&5
9526   rm -rf conftest*
9527   glibcpp_cv_func___builtin_cos_use=no
9528 fi
9529 rm -f conftest*
9530       ac_ext=c
9531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9532 ac_cpp='$CPP $CPPFLAGS'
9533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9535 cross_compiling=$ac_cv_prog_cc_cross
9536
9537     
9538 fi
9539
9540   fi
9541   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
9542   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
9543     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
9544 echo "configure:9545: checking for __builtin_cos linkage" >&5
9545     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
9546       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
9547   echo $ac_n "(cached) $ac_c" 1>&6
9548 else
9549   
9550         cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 #include <math.h>
9554 int main() {
9555  __builtin_cos(0);
9556 ; return 0; }
9557 EOF
9558 if { (eval echo configure:9559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9559   rm -rf conftest*
9560   glibcpp_cv_func___builtin_cos_link=yes
9561 else
9562   echo "configure: failed program was:" >&5
9563   cat conftest.$ac_ext >&5
9564   rm -rf conftest*
9565   glibcpp_cv_func___builtin_cos_link=no
9566 fi
9567 rm -f conftest*
9568       
9569 fi
9570
9571     fi
9572     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
9573     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
9574       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9575       cat >> confdefs.h <<EOF
9576 #define ${ac_tr_func} 1
9577 EOF
9578
9579     fi
9580   fi
9581
9582   
9583   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
9584 echo "configure:9585: checking for __builtin_cosl declaration" >&5
9585   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
9586     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
9587   echo $ac_n "(cached) $ac_c" 1>&6
9588 else
9589   
9590       
9591       ac_ext=C
9592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9593 ac_cpp='$CXXCPP $CPPFLAGS'
9594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9596 cross_compiling=$ac_cv_prog_cxx_cross
9597
9598       cat > conftest.$ac_ext <<EOF
9599 #line 9600 "configure"
9600 #include "confdefs.h"
9601 #include <math.h>
9602 int main() {
9603  __builtin_cosl(0);
9604 ; return 0; }
9605 EOF
9606 if { (eval echo configure:9607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9607   rm -rf conftest*
9608   glibcpp_cv_func___builtin_cosl_use=yes
9609 else
9610   echo "configure: failed program was:" >&5
9611   cat conftest.$ac_ext >&5
9612   rm -rf conftest*
9613   glibcpp_cv_func___builtin_cosl_use=no
9614 fi
9615 rm -f conftest*
9616       ac_ext=c
9617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9618 ac_cpp='$CPP $CPPFLAGS'
9619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9621 cross_compiling=$ac_cv_prog_cc_cross
9622
9623     
9624 fi
9625
9626   fi
9627   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
9628   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
9629     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
9630 echo "configure:9631: checking for __builtin_cosl linkage" >&5
9631     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
9632       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
9633   echo $ac_n "(cached) $ac_c" 1>&6
9634 else
9635   
9636         cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9639 #include <math.h>
9640 int main() {
9641  __builtin_cosl(0);
9642 ; return 0; }
9643 EOF
9644 if { (eval echo configure:9645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9645   rm -rf conftest*
9646   glibcpp_cv_func___builtin_cosl_link=yes
9647 else
9648   echo "configure: failed program was:" >&5
9649   cat conftest.$ac_ext >&5
9650   rm -rf conftest*
9651   glibcpp_cv_func___builtin_cosl_link=no
9652 fi
9653 rm -f conftest*
9654       
9655 fi
9656
9657     fi
9658     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
9659     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
9660       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9661       cat >> confdefs.h <<EOF
9662 #define ${ac_tr_func} 1
9663 EOF
9664
9665     fi
9666   fi
9667
9668
9669               dummyvar=no
9670   if test x$dummyvar = x"yes"; then
9671     cat >> confdefs.h <<\EOF
9672 #define HAVE___BUILTIN_ABS 1
9673 EOF
9674
9675     cat >> confdefs.h <<\EOF
9676 #define HAVE___BUILTIN_LABS 1
9677 EOF
9678
9679     cat >> confdefs.h <<\EOF
9680 #define HAVE___BUILTIN_COS 1
9681 EOF
9682
9683     cat >> confdefs.h <<\EOF
9684 #define HAVE___BUILTIN_COSF 1
9685 EOF
9686
9687     cat >> confdefs.h <<\EOF
9688 #define HAVE___BUILTIN_COSL 1
9689 EOF
9690
9691     cat >> confdefs.h <<\EOF
9692 #define HAVE___BUILTIN_FABS 1
9693 EOF
9694
9695     cat >> confdefs.h <<\EOF
9696 #define HAVE___BUILTIN_FABSF 1
9697 EOF
9698
9699     cat >> confdefs.h <<\EOF
9700 #define HAVE___BUILTIN_FABSL 1
9701 EOF
9702
9703     cat >> confdefs.h <<\EOF
9704 #define HAVE___BUILTIN_SIN 1
9705 EOF
9706
9707     cat >> confdefs.h <<\EOF
9708 #define HAVE___BUILTIN_SINF 1
9709 EOF
9710
9711     cat >> confdefs.h <<\EOF
9712 #define HAVE___BUILTIN_SINL 1
9713 EOF
9714
9715     cat >> confdefs.h <<\EOF
9716 #define HAVE___BUILTIN_SQRT 1
9717 EOF
9718
9719     cat >> confdefs.h <<\EOF
9720 #define HAVE___BUILTIN_SQRTF 1
9721 EOF
9722
9723     cat >> confdefs.h <<\EOF
9724 #define HAVE___BUILTIN_SQRTL 1
9725 EOF
9726
9727   fi
9728
9729   
9730   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9731   ac_save_CXXFLAGS="$CXXFLAGS"
9732   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
9733
9734     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
9735 echo "configure:9736: checking for sin in -lm" >&5
9736 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
9737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9738   echo $ac_n "(cached) $ac_c" 1>&6
9739 else
9740   ac_save_LIBS="$LIBS"
9741 LIBS="-lm  $LIBS"
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* Override any gcc2 internal prototype to avoid an error.  */
9746 /* We use char because int might match the return type of a gcc2
9747     builtin and then its argument prototype would still apply.  */
9748 char sin();
9749
9750 int main() {
9751 sin()
9752 ; return 0; }
9753 EOF
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755   rm -rf conftest*
9756   eval "ac_cv_lib_$ac_lib_var=yes"
9757 else
9758   echo "configure: failed program was:" >&5
9759   cat conftest.$ac_ext >&5
9760   rm -rf conftest*
9761   eval "ac_cv_lib_$ac_lib_var=no"
9762 fi
9763 rm -f conftest*
9764 LIBS="$ac_save_LIBS"
9765
9766 fi
9767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9768   echo "$ac_t""yes" 1>&6
9769   libm="-lm"
9770 else
9771   echo "$ac_t""no" 1>&6
9772 fi
9773
9774   ac_save_LIBS="$LIBS"
9775   LIBS="$LIBS $libm"
9776
9777     
9778   
9779   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
9780 echo "configure:9781: checking for isinf declaration" >&5
9781   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
9782     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
9783   echo $ac_n "(cached) $ac_c" 1>&6
9784 else
9785   
9786       
9787       ac_ext=C
9788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9789 ac_cpp='$CXXCPP $CPPFLAGS'
9790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9792 cross_compiling=$ac_cv_prog_cxx_cross
9793
9794       cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <math.h>
9798                       #ifdef HAVE_IEEEFP_H
9799                       #include <ieeefp.h>
9800                       #endif
9801                      
9802 int main() {
9803  isinf(0);
9804 ; return 0; }
9805 EOF
9806 if { (eval echo configure:9807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9807   rm -rf conftest*
9808   glibcpp_cv_func_isinf_use=yes
9809 else
9810   echo "configure: failed program was:" >&5
9811   cat conftest.$ac_ext >&5
9812   rm -rf conftest*
9813   glibcpp_cv_func_isinf_use=no
9814 fi
9815 rm -f conftest*
9816       ac_ext=c
9817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9818 ac_cpp='$CPP $CPPFLAGS'
9819 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9820 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9821 cross_compiling=$ac_cv_prog_cc_cross
9822
9823     
9824 fi
9825
9826   fi
9827   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
9828
9829   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
9830     for ac_func in isinf
9831 do
9832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9833 echo "configure:9834: checking for $ac_func" >&5
9834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9835   echo $ac_n "(cached) $ac_c" 1>&6
9836 else
9837   cat > conftest.$ac_ext <<EOF
9838 #line 9839 "configure"
9839 #include "confdefs.h"
9840 /* System header to define __stub macros and hopefully few prototypes,
9841     which can conflict with char $ac_func(); below.  */
9842 #include <assert.h>
9843 /* Override any gcc2 internal prototype to avoid an error.  */
9844 /* We use char because int might match the return type of a gcc2
9845     builtin and then its argument prototype would still apply.  */
9846 char $ac_func();
9847
9848 int main() {
9849
9850 /* The GNU C library defines this for functions which it implements
9851     to always fail with ENOSYS.  Some functions are actually named
9852     something starting with __ and the normal name is an alias.  */
9853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9854 choke me
9855 #else
9856 $ac_func();
9857 #endif
9858
9859 ; return 0; }
9860 EOF
9861 if { (eval echo configure:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9862   rm -rf conftest*
9863   eval "ac_cv_func_$ac_func=yes"
9864 else
9865   echo "configure: failed program was:" >&5
9866   cat conftest.$ac_ext >&5
9867   rm -rf conftest*
9868   eval "ac_cv_func_$ac_func=no"
9869 fi
9870 rm -f conftest*
9871 fi
9872
9873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9874   echo "$ac_t""yes" 1>&6
9875     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9876   cat >> confdefs.h <<EOF
9877 #define $ac_tr_func 1
9878 EOF
9879  
9880 else
9881   echo "$ac_t""no" 1>&6
9882 fi
9883 done
9884     
9885   else
9886     
9887   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
9888 echo "configure:9889: checking for _isinf declaration" >&5
9889   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
9890     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
9891   echo $ac_n "(cached) $ac_c" 1>&6
9892 else
9893   
9894       
9895       ac_ext=C
9896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9897 ac_cpp='$CXXCPP $CPPFLAGS'
9898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9900 cross_compiling=$ac_cv_prog_cxx_cross
9901
9902       cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 #include <math.h>
9906                       #ifdef HAVE_IEEEFP_H
9907                       #include <ieeefp.h>
9908                       #endif
9909                      
9910 int main() {
9911  _isinf(0);
9912 ; return 0; }
9913 EOF
9914 if { (eval echo configure:9915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9915   rm -rf conftest*
9916   glibcpp_cv_func__isinf_use=yes
9917 else
9918   echo "configure: failed program was:" >&5
9919   cat conftest.$ac_ext >&5
9920   rm -rf conftest*
9921   glibcpp_cv_func__isinf_use=no
9922 fi
9923 rm -f conftest*
9924       ac_ext=c
9925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9926 ac_cpp='$CPP $CPPFLAGS'
9927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9929 cross_compiling=$ac_cv_prog_cc_cross
9930
9931     
9932 fi
9933
9934   fi
9935   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
9936
9937     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
9938       for ac_func in _isinf
9939 do
9940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9941 echo "configure:9942: checking for $ac_func" >&5
9942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9943   echo $ac_n "(cached) $ac_c" 1>&6
9944 else
9945   cat > conftest.$ac_ext <<EOF
9946 #line 9947 "configure"
9947 #include "confdefs.h"
9948 /* System header to define __stub macros and hopefully few prototypes,
9949     which can conflict with char $ac_func(); below.  */
9950 #include <assert.h>
9951 /* Override any gcc2 internal prototype to avoid an error.  */
9952 /* We use char because int might match the return type of a gcc2
9953     builtin and then its argument prototype would still apply.  */
9954 char $ac_func();
9955
9956 int main() {
9957
9958 /* The GNU C library defines this for functions which it implements
9959     to always fail with ENOSYS.  Some functions are actually named
9960     something starting with __ and the normal name is an alias.  */
9961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9962 choke me
9963 #else
9964 $ac_func();
9965 #endif
9966
9967 ; return 0; }
9968 EOF
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9970   rm -rf conftest*
9971   eval "ac_cv_func_$ac_func=yes"
9972 else
9973   echo "configure: failed program was:" >&5
9974   cat conftest.$ac_ext >&5
9975   rm -rf conftest*
9976   eval "ac_cv_func_$ac_func=no"
9977 fi
9978 rm -f conftest*
9979 fi
9980
9981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9982   echo "$ac_t""yes" 1>&6
9983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9984   cat >> confdefs.h <<EOF
9985 #define $ac_tr_func 1
9986 EOF
9987  
9988 else
9989   echo "$ac_t""no" 1>&6
9990 fi
9991 done
9992     
9993     fi
9994   fi
9995
9996   
9997   
9998   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
9999 echo "configure:10000: checking for isnan declaration" >&5
10000   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10001     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10002   echo $ac_n "(cached) $ac_c" 1>&6
10003 else
10004   
10005       
10006       ac_ext=C
10007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10008 ac_cpp='$CXXCPP $CPPFLAGS'
10009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10011 cross_compiling=$ac_cv_prog_cxx_cross
10012
10013       cat > conftest.$ac_ext <<EOF
10014 #line 10015 "configure"
10015 #include "confdefs.h"
10016 #include <math.h>
10017                       #ifdef HAVE_IEEEFP_H
10018                       #include <ieeefp.h>
10019                       #endif
10020                      
10021 int main() {
10022  isnan(0);
10023 ; return 0; }
10024 EOF
10025 if { (eval echo configure:10026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10026   rm -rf conftest*
10027   glibcpp_cv_func_isnan_use=yes
10028 else
10029   echo "configure: failed program was:" >&5
10030   cat conftest.$ac_ext >&5
10031   rm -rf conftest*
10032   glibcpp_cv_func_isnan_use=no
10033 fi
10034 rm -f conftest*
10035       ac_ext=c
10036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10037 ac_cpp='$CPP $CPPFLAGS'
10038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10040 cross_compiling=$ac_cv_prog_cc_cross
10041
10042     
10043 fi
10044
10045   fi
10046   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10047
10048   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10049     for ac_func in isnan
10050 do
10051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10052 echo "configure:10053: checking for $ac_func" >&5
10053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10054   echo $ac_n "(cached) $ac_c" 1>&6
10055 else
10056   cat > conftest.$ac_ext <<EOF
10057 #line 10058 "configure"
10058 #include "confdefs.h"
10059 /* System header to define __stub macros and hopefully few prototypes,
10060     which can conflict with char $ac_func(); below.  */
10061 #include <assert.h>
10062 /* Override any gcc2 internal prototype to avoid an error.  */
10063 /* We use char because int might match the return type of a gcc2
10064     builtin and then its argument prototype would still apply.  */
10065 char $ac_func();
10066
10067 int main() {
10068
10069 /* The GNU C library defines this for functions which it implements
10070     to always fail with ENOSYS.  Some functions are actually named
10071     something starting with __ and the normal name is an alias.  */
10072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10073 choke me
10074 #else
10075 $ac_func();
10076 #endif
10077
10078 ; return 0; }
10079 EOF
10080 if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10081   rm -rf conftest*
10082   eval "ac_cv_func_$ac_func=yes"
10083 else
10084   echo "configure: failed program was:" >&5
10085   cat conftest.$ac_ext >&5
10086   rm -rf conftest*
10087   eval "ac_cv_func_$ac_func=no"
10088 fi
10089 rm -f conftest*
10090 fi
10091
10092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10093   echo "$ac_t""yes" 1>&6
10094     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10095   cat >> confdefs.h <<EOF
10096 #define $ac_tr_func 1
10097 EOF
10098  
10099 else
10100   echo "$ac_t""no" 1>&6
10101 fi
10102 done
10103     
10104   else
10105     
10106   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
10107 echo "configure:10108: checking for _isnan declaration" >&5
10108   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
10109     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
10110   echo $ac_n "(cached) $ac_c" 1>&6
10111 else
10112   
10113       
10114       ac_ext=C
10115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10116 ac_cpp='$CXXCPP $CPPFLAGS'
10117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10119 cross_compiling=$ac_cv_prog_cxx_cross
10120
10121       cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 #include <math.h>
10125                       #ifdef HAVE_IEEEFP_H
10126                       #include <ieeefp.h>
10127                       #endif
10128                      
10129 int main() {
10130  _isnan(0);
10131 ; return 0; }
10132 EOF
10133 if { (eval echo configure:10134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10134   rm -rf conftest*
10135   glibcpp_cv_func__isnan_use=yes
10136 else
10137   echo "configure: failed program was:" >&5
10138   cat conftest.$ac_ext >&5
10139   rm -rf conftest*
10140   glibcpp_cv_func__isnan_use=no
10141 fi
10142 rm -f conftest*
10143       ac_ext=c
10144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10145 ac_cpp='$CPP $CPPFLAGS'
10146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10148 cross_compiling=$ac_cv_prog_cc_cross
10149
10150     
10151 fi
10152
10153   fi
10154   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
10155
10156     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
10157       for ac_func in _isnan
10158 do
10159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10160 echo "configure:10161: checking for $ac_func" >&5
10161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10162   echo $ac_n "(cached) $ac_c" 1>&6
10163 else
10164   cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 /* System header to define __stub macros and hopefully few prototypes,
10168     which can conflict with char $ac_func(); below.  */
10169 #include <assert.h>
10170 /* Override any gcc2 internal prototype to avoid an error.  */
10171 /* We use char because int might match the return type of a gcc2
10172     builtin and then its argument prototype would still apply.  */
10173 char $ac_func();
10174
10175 int main() {
10176
10177 /* The GNU C library defines this for functions which it implements
10178     to always fail with ENOSYS.  Some functions are actually named
10179     something starting with __ and the normal name is an alias.  */
10180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10181 choke me
10182 #else
10183 $ac_func();
10184 #endif
10185
10186 ; return 0; }
10187 EOF
10188 if { (eval echo configure:10189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10189   rm -rf conftest*
10190   eval "ac_cv_func_$ac_func=yes"
10191 else
10192   echo "configure: failed program was:" >&5
10193   cat conftest.$ac_ext >&5
10194   rm -rf conftest*
10195   eval "ac_cv_func_$ac_func=no"
10196 fi
10197 rm -f conftest*
10198 fi
10199
10200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10201   echo "$ac_t""yes" 1>&6
10202     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10203   cat >> confdefs.h <<EOF
10204 #define $ac_tr_func 1
10205 EOF
10206  
10207 else
10208   echo "$ac_t""no" 1>&6
10209 fi
10210 done
10211     
10212     fi
10213   fi
10214
10215   
10216   
10217   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
10218 echo "configure:10219: checking for finite declaration" >&5
10219   if test x${glibcpp_cv_func_finite_use+set} != xset; then
10220     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
10221   echo $ac_n "(cached) $ac_c" 1>&6
10222 else
10223   
10224       
10225       ac_ext=C
10226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10227 ac_cpp='$CXXCPP $CPPFLAGS'
10228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10230 cross_compiling=$ac_cv_prog_cxx_cross
10231
10232       cat > conftest.$ac_ext <<EOF
10233 #line 10234 "configure"
10234 #include "confdefs.h"
10235 #include <math.h>
10236                       #ifdef HAVE_IEEEFP_H
10237                       #include <ieeefp.h>
10238                       #endif
10239                      
10240 int main() {
10241  finite(0);
10242 ; return 0; }
10243 EOF
10244 if { (eval echo configure:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10245   rm -rf conftest*
10246   glibcpp_cv_func_finite_use=yes
10247 else
10248   echo "configure: failed program was:" >&5
10249   cat conftest.$ac_ext >&5
10250   rm -rf conftest*
10251   glibcpp_cv_func_finite_use=no
10252 fi
10253 rm -f conftest*
10254       ac_ext=c
10255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10256 ac_cpp='$CPP $CPPFLAGS'
10257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10259 cross_compiling=$ac_cv_prog_cc_cross
10260
10261     
10262 fi
10263
10264   fi
10265   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
10266
10267   if test x$glibcpp_cv_func_finite_use = x"yes"; then
10268     for ac_func in finite
10269 do
10270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10271 echo "configure:10272: checking for $ac_func" >&5
10272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10273   echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10275   cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 /* System header to define __stub macros and hopefully few prototypes,
10279     which can conflict with char $ac_func(); below.  */
10280 #include <assert.h>
10281 /* Override any gcc2 internal prototype to avoid an error.  */
10282 /* We use char because int might match the return type of a gcc2
10283     builtin and then its argument prototype would still apply.  */
10284 char $ac_func();
10285
10286 int main() {
10287
10288 /* The GNU C library defines this for functions which it implements
10289     to always fail with ENOSYS.  Some functions are actually named
10290     something starting with __ and the normal name is an alias.  */
10291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10292 choke me
10293 #else
10294 $ac_func();
10295 #endif
10296
10297 ; return 0; }
10298 EOF
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10300   rm -rf conftest*
10301   eval "ac_cv_func_$ac_func=yes"
10302 else
10303   echo "configure: failed program was:" >&5
10304   cat conftest.$ac_ext >&5
10305   rm -rf conftest*
10306   eval "ac_cv_func_$ac_func=no"
10307 fi
10308 rm -f conftest*
10309 fi
10310
10311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10312   echo "$ac_t""yes" 1>&6
10313     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10314   cat >> confdefs.h <<EOF
10315 #define $ac_tr_func 1
10316 EOF
10317  
10318 else
10319   echo "$ac_t""no" 1>&6
10320 fi
10321 done
10322     
10323   else
10324     
10325   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
10326 echo "configure:10327: checking for _finite declaration" >&5
10327   if test x${glibcpp_cv_func__finite_use+set} != xset; then
10328     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
10329   echo $ac_n "(cached) $ac_c" 1>&6
10330 else
10331   
10332       
10333       ac_ext=C
10334 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10335 ac_cpp='$CXXCPP $CPPFLAGS'
10336 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10337 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10338 cross_compiling=$ac_cv_prog_cxx_cross
10339
10340       cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 #include <math.h>
10344                       #ifdef HAVE_IEEEFP_H
10345                       #include <ieeefp.h>
10346                       #endif
10347                      
10348 int main() {
10349  _finite(0);
10350 ; return 0; }
10351 EOF
10352 if { (eval echo configure:10353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10353   rm -rf conftest*
10354   glibcpp_cv_func__finite_use=yes
10355 else
10356   echo "configure: failed program was:" >&5
10357   cat conftest.$ac_ext >&5
10358   rm -rf conftest*
10359   glibcpp_cv_func__finite_use=no
10360 fi
10361 rm -f conftest*
10362       ac_ext=c
10363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10364 ac_cpp='$CPP $CPPFLAGS'
10365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10367 cross_compiling=$ac_cv_prog_cc_cross
10368
10369     
10370 fi
10371
10372   fi
10373   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
10374
10375     if test x$glibcpp_cv_func__finite_use = x"yes"; then
10376       for ac_func in _finite
10377 do
10378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10379 echo "configure:10380: checking for $ac_func" >&5
10380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10381   echo $ac_n "(cached) $ac_c" 1>&6
10382 else
10383   cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 /* System header to define __stub macros and hopefully few prototypes,
10387     which can conflict with char $ac_func(); below.  */
10388 #include <assert.h>
10389 /* Override any gcc2 internal prototype to avoid an error.  */
10390 /* We use char because int might match the return type of a gcc2
10391     builtin and then its argument prototype would still apply.  */
10392 char $ac_func();
10393
10394 int main() {
10395
10396 /* The GNU C library defines this for functions which it implements
10397     to always fail with ENOSYS.  Some functions are actually named
10398     something starting with __ and the normal name is an alias.  */
10399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10400 choke me
10401 #else
10402 $ac_func();
10403 #endif
10404
10405 ; return 0; }
10406 EOF
10407 if { (eval echo configure:10408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10408   rm -rf conftest*
10409   eval "ac_cv_func_$ac_func=yes"
10410 else
10411   echo "configure: failed program was:" >&5
10412   cat conftest.$ac_ext >&5
10413   rm -rf conftest*
10414   eval "ac_cv_func_$ac_func=no"
10415 fi
10416 rm -f conftest*
10417 fi
10418
10419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10420   echo "$ac_t""yes" 1>&6
10421     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10422   cat >> confdefs.h <<EOF
10423 #define $ac_tr_func 1
10424 EOF
10425  
10426 else
10427   echo "$ac_t""no" 1>&6
10428 fi
10429 done
10430     
10431     fi
10432   fi
10433
10434   
10435   
10436   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
10437 echo "configure:10438: checking for copysign declaration" >&5
10438   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
10439     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
10440   echo $ac_n "(cached) $ac_c" 1>&6
10441 else
10442   
10443       
10444       ac_ext=C
10445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10446 ac_cpp='$CXXCPP $CPPFLAGS'
10447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10449 cross_compiling=$ac_cv_prog_cxx_cross
10450
10451       cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 #include <math.h>
10455 int main() {
10456  copysign(0, 0);
10457 ; return 0; }
10458 EOF
10459 if { (eval echo configure:10460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10460   rm -rf conftest*
10461   glibcpp_cv_func_copysign_use=yes
10462 else
10463   echo "configure: failed program was:" >&5
10464   cat conftest.$ac_ext >&5
10465   rm -rf conftest*
10466   glibcpp_cv_func_copysign_use=no
10467 fi
10468 rm -f conftest*
10469       ac_ext=c
10470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10471 ac_cpp='$CPP $CPPFLAGS'
10472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10474 cross_compiling=$ac_cv_prog_cc_cross
10475
10476     
10477 fi
10478
10479   fi
10480   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
10481
10482   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
10483     for ac_func in copysign
10484 do
10485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10486 echo "configure:10487: checking for $ac_func" >&5
10487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10488   echo $ac_n "(cached) $ac_c" 1>&6
10489 else
10490   cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 /* System header to define __stub macros and hopefully few prototypes,
10494     which can conflict with char $ac_func(); below.  */
10495 #include <assert.h>
10496 /* Override any gcc2 internal prototype to avoid an error.  */
10497 /* We use char because int might match the return type of a gcc2
10498     builtin and then its argument prototype would still apply.  */
10499 char $ac_func();
10500
10501 int main() {
10502
10503 /* The GNU C library defines this for functions which it implements
10504     to always fail with ENOSYS.  Some functions are actually named
10505     something starting with __ and the normal name is an alias.  */
10506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10507 choke me
10508 #else
10509 $ac_func();
10510 #endif
10511
10512 ; return 0; }
10513 EOF
10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10515   rm -rf conftest*
10516   eval "ac_cv_func_$ac_func=yes"
10517 else
10518   echo "configure: failed program was:" >&5
10519   cat conftest.$ac_ext >&5
10520   rm -rf conftest*
10521   eval "ac_cv_func_$ac_func=no"
10522 fi
10523 rm -f conftest*
10524 fi
10525
10526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10527   echo "$ac_t""yes" 1>&6
10528     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10529   cat >> confdefs.h <<EOF
10530 #define $ac_tr_func 1
10531 EOF
10532  
10533 else
10534   echo "$ac_t""no" 1>&6
10535 fi
10536 done
10537     
10538   else
10539     
10540   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
10541 echo "configure:10542: checking for _copysign declaration" >&5
10542   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
10543     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
10544   echo $ac_n "(cached) $ac_c" 1>&6
10545 else
10546   
10547       
10548       ac_ext=C
10549 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10550 ac_cpp='$CXXCPP $CPPFLAGS'
10551 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10552 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10553 cross_compiling=$ac_cv_prog_cxx_cross
10554
10555       cat > conftest.$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10558 #include <math.h>
10559 int main() {
10560  _copysign(0, 0);
10561 ; return 0; }
10562 EOF
10563 if { (eval echo configure:10564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10564   rm -rf conftest*
10565   glibcpp_cv_func__copysign_use=yes
10566 else
10567   echo "configure: failed program was:" >&5
10568   cat conftest.$ac_ext >&5
10569   rm -rf conftest*
10570   glibcpp_cv_func__copysign_use=no
10571 fi
10572 rm -f conftest*
10573       ac_ext=c
10574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10575 ac_cpp='$CPP $CPPFLAGS'
10576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10578 cross_compiling=$ac_cv_prog_cc_cross
10579
10580     
10581 fi
10582
10583   fi
10584   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
10585
10586     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
10587       for ac_func in _copysign
10588 do
10589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10590 echo "configure:10591: checking for $ac_func" >&5
10591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10592   echo $ac_n "(cached) $ac_c" 1>&6
10593 else
10594   cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10597 /* System header to define __stub macros and hopefully few prototypes,
10598     which can conflict with char $ac_func(); below.  */
10599 #include <assert.h>
10600 /* Override any gcc2 internal prototype to avoid an error.  */
10601 /* We use char because int might match the return type of a gcc2
10602     builtin and then its argument prototype would still apply.  */
10603 char $ac_func();
10604
10605 int main() {
10606
10607 /* The GNU C library defines this for functions which it implements
10608     to always fail with ENOSYS.  Some functions are actually named
10609     something starting with __ and the normal name is an alias.  */
10610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10611 choke me
10612 #else
10613 $ac_func();
10614 #endif
10615
10616 ; return 0; }
10617 EOF
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10619   rm -rf conftest*
10620   eval "ac_cv_func_$ac_func=yes"
10621 else
10622   echo "configure: failed program was:" >&5
10623   cat conftest.$ac_ext >&5
10624   rm -rf conftest*
10625   eval "ac_cv_func_$ac_func=no"
10626 fi
10627 rm -f conftest*
10628 fi
10629
10630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10631   echo "$ac_t""yes" 1>&6
10632     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10633   cat >> confdefs.h <<EOF
10634 #define $ac_tr_func 1
10635 EOF
10636  
10637 else
10638   echo "$ac_t""no" 1>&6
10639 fi
10640 done
10641     
10642     fi
10643   fi
10644
10645   
10646   
10647   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
10648 echo "configure:10649: checking for sincos declaration" >&5
10649   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
10650     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
10651   echo $ac_n "(cached) $ac_c" 1>&6
10652 else
10653   
10654       
10655       ac_ext=C
10656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10657 ac_cpp='$CXXCPP $CPPFLAGS'
10658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10659 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10660 cross_compiling=$ac_cv_prog_cxx_cross
10661
10662       cat > conftest.$ac_ext <<EOF
10663 #line 10664 "configure"
10664 #include "confdefs.h"
10665 #include <math.h>
10666 int main() {
10667  sincos(0, 0, 0);
10668 ; return 0; }
10669 EOF
10670 if { (eval echo configure:10671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10671   rm -rf conftest*
10672   glibcpp_cv_func_sincos_use=yes
10673 else
10674   echo "configure: failed program was:" >&5
10675   cat conftest.$ac_ext >&5
10676   rm -rf conftest*
10677   glibcpp_cv_func_sincos_use=no
10678 fi
10679 rm -f conftest*
10680       ac_ext=c
10681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10682 ac_cpp='$CPP $CPPFLAGS'
10683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10685 cross_compiling=$ac_cv_prog_cc_cross
10686
10687     
10688 fi
10689
10690   fi
10691   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
10692
10693   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
10694     for ac_func in sincos
10695 do
10696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10697 echo "configure:10698: checking for $ac_func" >&5
10698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10699   echo $ac_n "(cached) $ac_c" 1>&6
10700 else
10701   cat > conftest.$ac_ext <<EOF
10702 #line 10703 "configure"
10703 #include "confdefs.h"
10704 /* System header to define __stub macros and hopefully few prototypes,
10705     which can conflict with char $ac_func(); below.  */
10706 #include <assert.h>
10707 /* Override any gcc2 internal prototype to avoid an error.  */
10708 /* We use char because int might match the return type of a gcc2
10709     builtin and then its argument prototype would still apply.  */
10710 char $ac_func();
10711
10712 int main() {
10713
10714 /* The GNU C library defines this for functions which it implements
10715     to always fail with ENOSYS.  Some functions are actually named
10716     something starting with __ and the normal name is an alias.  */
10717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10718 choke me
10719 #else
10720 $ac_func();
10721 #endif
10722
10723 ; return 0; }
10724 EOF
10725 if { (eval echo configure:10726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10726   rm -rf conftest*
10727   eval "ac_cv_func_$ac_func=yes"
10728 else
10729   echo "configure: failed program was:" >&5
10730   cat conftest.$ac_ext >&5
10731   rm -rf conftest*
10732   eval "ac_cv_func_$ac_func=no"
10733 fi
10734 rm -f conftest*
10735 fi
10736
10737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10738   echo "$ac_t""yes" 1>&6
10739     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10740   cat >> confdefs.h <<EOF
10741 #define $ac_tr_func 1
10742 EOF
10743  
10744 else
10745   echo "$ac_t""no" 1>&6
10746 fi
10747 done
10748     
10749   else
10750     
10751   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
10752 echo "configure:10753: checking for _sincos declaration" >&5
10753   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
10754     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
10755   echo $ac_n "(cached) $ac_c" 1>&6
10756 else
10757   
10758       
10759       ac_ext=C
10760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10761 ac_cpp='$CXXCPP $CPPFLAGS'
10762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10764 cross_compiling=$ac_cv_prog_cxx_cross
10765
10766       cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10769 #include <math.h>
10770 int main() {
10771  _sincos(0, 0, 0);
10772 ; return 0; }
10773 EOF
10774 if { (eval echo configure:10775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10775   rm -rf conftest*
10776   glibcpp_cv_func__sincos_use=yes
10777 else
10778   echo "configure: failed program was:" >&5
10779   cat conftest.$ac_ext >&5
10780   rm -rf conftest*
10781   glibcpp_cv_func__sincos_use=no
10782 fi
10783 rm -f conftest*
10784       ac_ext=c
10785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10786 ac_cpp='$CPP $CPPFLAGS'
10787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10789 cross_compiling=$ac_cv_prog_cc_cross
10790
10791     
10792 fi
10793
10794   fi
10795   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
10796
10797     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
10798       for ac_func in _sincos
10799 do
10800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10801 echo "configure:10802: checking for $ac_func" >&5
10802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10803   echo $ac_n "(cached) $ac_c" 1>&6
10804 else
10805   cat > conftest.$ac_ext <<EOF
10806 #line 10807 "configure"
10807 #include "confdefs.h"
10808 /* System header to define __stub macros and hopefully few prototypes,
10809     which can conflict with char $ac_func(); below.  */
10810 #include <assert.h>
10811 /* Override any gcc2 internal prototype to avoid an error.  */
10812 /* We use char because int might match the return type of a gcc2
10813     builtin and then its argument prototype would still apply.  */
10814 char $ac_func();
10815
10816 int main() {
10817
10818 /* The GNU C library defines this for functions which it implements
10819     to always fail with ENOSYS.  Some functions are actually named
10820     something starting with __ and the normal name is an alias.  */
10821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10822 choke me
10823 #else
10824 $ac_func();
10825 #endif
10826
10827 ; return 0; }
10828 EOF
10829 if { (eval echo configure:10830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10830   rm -rf conftest*
10831   eval "ac_cv_func_$ac_func=yes"
10832 else
10833   echo "configure: failed program was:" >&5
10834   cat conftest.$ac_ext >&5
10835   rm -rf conftest*
10836   eval "ac_cv_func_$ac_func=no"
10837 fi
10838 rm -f conftest*
10839 fi
10840
10841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10842   echo "$ac_t""yes" 1>&6
10843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10844   cat >> confdefs.h <<EOF
10845 #define $ac_tr_func 1
10846 EOF
10847  
10848 else
10849   echo "$ac_t""no" 1>&6
10850 fi
10851 done
10852     
10853     fi
10854   fi
10855
10856   
10857   
10858   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
10859 echo "configure:10860: checking for fpclass declaration" >&5
10860   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
10861     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
10862   echo $ac_n "(cached) $ac_c" 1>&6
10863 else
10864   
10865       
10866       ac_ext=C
10867 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10868 ac_cpp='$CXXCPP $CPPFLAGS'
10869 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10870 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10871 cross_compiling=$ac_cv_prog_cxx_cross
10872
10873       cat > conftest.$ac_ext <<EOF
10874 #line 10875 "configure"
10875 #include "confdefs.h"
10876 #include <math.h>
10877                       #ifdef HAVE_IEEEFP_H
10878                       #include <ieeefp.h>
10879                       #endif
10880                      
10881 int main() {
10882  fpclass(0);
10883 ; return 0; }
10884 EOF
10885 if { (eval echo configure:10886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10886   rm -rf conftest*
10887   glibcpp_cv_func_fpclass_use=yes
10888 else
10889   echo "configure: failed program was:" >&5
10890   cat conftest.$ac_ext >&5
10891   rm -rf conftest*
10892   glibcpp_cv_func_fpclass_use=no
10893 fi
10894 rm -f conftest*
10895       ac_ext=c
10896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10897 ac_cpp='$CPP $CPPFLAGS'
10898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10900 cross_compiling=$ac_cv_prog_cc_cross
10901
10902     
10903 fi
10904
10905   fi
10906   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
10907
10908   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
10909     for ac_func in fpclass
10910 do
10911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10912 echo "configure:10913: checking for $ac_func" >&5
10913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10914   echo $ac_n "(cached) $ac_c" 1>&6
10915 else
10916   cat > conftest.$ac_ext <<EOF
10917 #line 10918 "configure"
10918 #include "confdefs.h"
10919 /* System header to define __stub macros and hopefully few prototypes,
10920     which can conflict with char $ac_func(); below.  */
10921 #include <assert.h>
10922 /* Override any gcc2 internal prototype to avoid an error.  */
10923 /* We use char because int might match the return type of a gcc2
10924     builtin and then its argument prototype would still apply.  */
10925 char $ac_func();
10926
10927 int main() {
10928
10929 /* The GNU C library defines this for functions which it implements
10930     to always fail with ENOSYS.  Some functions are actually named
10931     something starting with __ and the normal name is an alias.  */
10932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10933 choke me
10934 #else
10935 $ac_func();
10936 #endif
10937
10938 ; return 0; }
10939 EOF
10940 if { (eval echo configure:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10941   rm -rf conftest*
10942   eval "ac_cv_func_$ac_func=yes"
10943 else
10944   echo "configure: failed program was:" >&5
10945   cat conftest.$ac_ext >&5
10946   rm -rf conftest*
10947   eval "ac_cv_func_$ac_func=no"
10948 fi
10949 rm -f conftest*
10950 fi
10951
10952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10953   echo "$ac_t""yes" 1>&6
10954     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10955   cat >> confdefs.h <<EOF
10956 #define $ac_tr_func 1
10957 EOF
10958  
10959 else
10960   echo "$ac_t""no" 1>&6
10961 fi
10962 done
10963     
10964   else
10965     
10966   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
10967 echo "configure:10968: checking for _fpclass declaration" >&5
10968   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
10969     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
10970   echo $ac_n "(cached) $ac_c" 1>&6
10971 else
10972   
10973       
10974       ac_ext=C
10975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10976 ac_cpp='$CXXCPP $CPPFLAGS'
10977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10979 cross_compiling=$ac_cv_prog_cxx_cross
10980
10981       cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10984 #include <math.h>
10985                       #ifdef HAVE_IEEEFP_H
10986                       #include <ieeefp.h>
10987                       #endif
10988                      
10989 int main() {
10990  _fpclass(0);
10991 ; return 0; }
10992 EOF
10993 if { (eval echo configure:10994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10994   rm -rf conftest*
10995   glibcpp_cv_func__fpclass_use=yes
10996 else
10997   echo "configure: failed program was:" >&5
10998   cat conftest.$ac_ext >&5
10999   rm -rf conftest*
11000   glibcpp_cv_func__fpclass_use=no
11001 fi
11002 rm -f conftest*
11003       ac_ext=c
11004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11005 ac_cpp='$CPP $CPPFLAGS'
11006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11008 cross_compiling=$ac_cv_prog_cc_cross
11009
11010     
11011 fi
11012
11013   fi
11014   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11015
11016     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11017       for ac_func in _fpclass
11018 do
11019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11020 echo "configure:11021: checking for $ac_func" >&5
11021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11022   echo $ac_n "(cached) $ac_c" 1>&6
11023 else
11024   cat > conftest.$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11027 /* System header to define __stub macros and hopefully few prototypes,
11028     which can conflict with char $ac_func(); below.  */
11029 #include <assert.h>
11030 /* Override any gcc2 internal prototype to avoid an error.  */
11031 /* We use char because int might match the return type of a gcc2
11032     builtin and then its argument prototype would still apply.  */
11033 char $ac_func();
11034
11035 int main() {
11036
11037 /* The GNU C library defines this for functions which it implements
11038     to always fail with ENOSYS.  Some functions are actually named
11039     something starting with __ and the normal name is an alias.  */
11040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11041 choke me
11042 #else
11043 $ac_func();
11044 #endif
11045
11046 ; return 0; }
11047 EOF
11048 if { (eval echo configure:11049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11049   rm -rf conftest*
11050   eval "ac_cv_func_$ac_func=yes"
11051 else
11052   echo "configure: failed program was:" >&5
11053   cat conftest.$ac_ext >&5
11054   rm -rf conftest*
11055   eval "ac_cv_func_$ac_func=no"
11056 fi
11057 rm -f conftest*
11058 fi
11059
11060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11061   echo "$ac_t""yes" 1>&6
11062     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11063   cat >> confdefs.h <<EOF
11064 #define $ac_tr_func 1
11065 EOF
11066  
11067 else
11068   echo "$ac_t""no" 1>&6
11069 fi
11070 done
11071     
11072     fi
11073   fi
11074
11075   
11076   
11077   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11078 echo "configure:11079: checking for qfpclass declaration" >&5
11079   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11080     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11081   echo $ac_n "(cached) $ac_c" 1>&6
11082 else
11083   
11084       
11085       ac_ext=C
11086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11087 ac_cpp='$CXXCPP $CPPFLAGS'
11088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11090 cross_compiling=$ac_cv_prog_cxx_cross
11091
11092       cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11095 #include <math.h>
11096                       #ifdef HAVE_IEEEFP_H
11097                       #include <ieeefp.h>
11098                       #endif
11099                      
11100 int main() {
11101  qfpclass(0);
11102 ; return 0; }
11103 EOF
11104 if { (eval echo configure:11105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11105   rm -rf conftest*
11106   glibcpp_cv_func_qfpclass_use=yes
11107 else
11108   echo "configure: failed program was:" >&5
11109   cat conftest.$ac_ext >&5
11110   rm -rf conftest*
11111   glibcpp_cv_func_qfpclass_use=no
11112 fi
11113 rm -f conftest*
11114       ac_ext=c
11115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11116 ac_cpp='$CPP $CPPFLAGS'
11117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11119 cross_compiling=$ac_cv_prog_cc_cross
11120
11121     
11122 fi
11123
11124   fi
11125   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
11126
11127   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
11128     for ac_func in qfpclass
11129 do
11130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11131 echo "configure:11132: checking for $ac_func" >&5
11132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11133   echo $ac_n "(cached) $ac_c" 1>&6
11134 else
11135   cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 /* System header to define __stub macros and hopefully few prototypes,
11139     which can conflict with char $ac_func(); below.  */
11140 #include <assert.h>
11141 /* Override any gcc2 internal prototype to avoid an error.  */
11142 /* We use char because int might match the return type of a gcc2
11143     builtin and then its argument prototype would still apply.  */
11144 char $ac_func();
11145
11146 int main() {
11147
11148 /* The GNU C library defines this for functions which it implements
11149     to always fail with ENOSYS.  Some functions are actually named
11150     something starting with __ and the normal name is an alias.  */
11151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11152 choke me
11153 #else
11154 $ac_func();
11155 #endif
11156
11157 ; return 0; }
11158 EOF
11159 if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160   rm -rf conftest*
11161   eval "ac_cv_func_$ac_func=yes"
11162 else
11163   echo "configure: failed program was:" >&5
11164   cat conftest.$ac_ext >&5
11165   rm -rf conftest*
11166   eval "ac_cv_func_$ac_func=no"
11167 fi
11168 rm -f conftest*
11169 fi
11170
11171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11172   echo "$ac_t""yes" 1>&6
11173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11174   cat >> confdefs.h <<EOF
11175 #define $ac_tr_func 1
11176 EOF
11177  
11178 else
11179   echo "$ac_t""no" 1>&6
11180 fi
11181 done
11182     
11183   else
11184     
11185   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
11186 echo "configure:11187: checking for _qfpclass declaration" >&5
11187   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
11188     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
11189   echo $ac_n "(cached) $ac_c" 1>&6
11190 else
11191   
11192       
11193       ac_ext=C
11194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11195 ac_cpp='$CXXCPP $CPPFLAGS'
11196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11198 cross_compiling=$ac_cv_prog_cxx_cross
11199
11200       cat > conftest.$ac_ext <<EOF
11201 #line 11202 "configure"
11202 #include "confdefs.h"
11203 #include <math.h>
11204                       #ifdef HAVE_IEEEFP_H
11205                       #include <ieeefp.h>
11206                       #endif
11207                      
11208 int main() {
11209  _qfpclass(0);
11210 ; return 0; }
11211 EOF
11212 if { (eval echo configure:11213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11213   rm -rf conftest*
11214   glibcpp_cv_func__qfpclass_use=yes
11215 else
11216   echo "configure: failed program was:" >&5
11217   cat conftest.$ac_ext >&5
11218   rm -rf conftest*
11219   glibcpp_cv_func__qfpclass_use=no
11220 fi
11221 rm -f conftest*
11222       ac_ext=c
11223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11224 ac_cpp='$CPP $CPPFLAGS'
11225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11227 cross_compiling=$ac_cv_prog_cc_cross
11228
11229     
11230 fi
11231
11232   fi
11233   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
11234
11235     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
11236       for ac_func in _qfpclass
11237 do
11238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11239 echo "configure:11240: checking for $ac_func" >&5
11240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11241   echo $ac_n "(cached) $ac_c" 1>&6
11242 else
11243   cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure"
11245 #include "confdefs.h"
11246 /* System header to define __stub macros and hopefully few prototypes,
11247     which can conflict with char $ac_func(); below.  */
11248 #include <assert.h>
11249 /* Override any gcc2 internal prototype to avoid an error.  */
11250 /* We use char because int might match the return type of a gcc2
11251     builtin and then its argument prototype would still apply.  */
11252 char $ac_func();
11253
11254 int main() {
11255
11256 /* The GNU C library defines this for functions which it implements
11257     to always fail with ENOSYS.  Some functions are actually named
11258     something starting with __ and the normal name is an alias.  */
11259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11260 choke me
11261 #else
11262 $ac_func();
11263 #endif
11264
11265 ; return 0; }
11266 EOF
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11268   rm -rf conftest*
11269   eval "ac_cv_func_$ac_func=yes"
11270 else
11271   echo "configure: failed program was:" >&5
11272   cat conftest.$ac_ext >&5
11273   rm -rf conftest*
11274   eval "ac_cv_func_$ac_func=no"
11275 fi
11276 rm -f conftest*
11277 fi
11278
11279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11280   echo "$ac_t""yes" 1>&6
11281     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11282   cat >> confdefs.h <<EOF
11283 #define $ac_tr_func 1
11284 EOF
11285  
11286 else
11287   echo "$ac_t""no" 1>&6
11288 fi
11289 done
11290     
11291     fi
11292   fi
11293
11294   
11295   
11296   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
11297 echo "configure:11298: checking for hypot declaration" >&5
11298   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
11299     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
11300   echo $ac_n "(cached) $ac_c" 1>&6
11301 else
11302   
11303       
11304       ac_ext=C
11305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11306 ac_cpp='$CXXCPP $CPPFLAGS'
11307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11309 cross_compiling=$ac_cv_prog_cxx_cross
11310
11311       cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11314 #include <math.h>
11315 int main() {
11316  hypot(0, 0);
11317 ; return 0; }
11318 EOF
11319 if { (eval echo configure:11320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11320   rm -rf conftest*
11321   glibcpp_cv_func_hypot_use=yes
11322 else
11323   echo "configure: failed program was:" >&5
11324   cat conftest.$ac_ext >&5
11325   rm -rf conftest*
11326   glibcpp_cv_func_hypot_use=no
11327 fi
11328 rm -f conftest*
11329       ac_ext=c
11330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11331 ac_cpp='$CPP $CPPFLAGS'
11332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11334 cross_compiling=$ac_cv_prog_cc_cross
11335
11336     
11337 fi
11338
11339   fi
11340   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
11341
11342   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
11343     for ac_func in hypot
11344 do
11345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11346 echo "configure:11347: checking for $ac_func" >&5
11347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11348   echo $ac_n "(cached) $ac_c" 1>&6
11349 else
11350   cat > conftest.$ac_ext <<EOF
11351 #line 11352 "configure"
11352 #include "confdefs.h"
11353 /* System header to define __stub macros and hopefully few prototypes,
11354     which can conflict with char $ac_func(); below.  */
11355 #include <assert.h>
11356 /* Override any gcc2 internal prototype to avoid an error.  */
11357 /* We use char because int might match the return type of a gcc2
11358     builtin and then its argument prototype would still apply.  */
11359 char $ac_func();
11360
11361 int main() {
11362
11363 /* The GNU C library defines this for functions which it implements
11364     to always fail with ENOSYS.  Some functions are actually named
11365     something starting with __ and the normal name is an alias.  */
11366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11367 choke me
11368 #else
11369 $ac_func();
11370 #endif
11371
11372 ; return 0; }
11373 EOF
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11375   rm -rf conftest*
11376   eval "ac_cv_func_$ac_func=yes"
11377 else
11378   echo "configure: failed program was:" >&5
11379   cat conftest.$ac_ext >&5
11380   rm -rf conftest*
11381   eval "ac_cv_func_$ac_func=no"
11382 fi
11383 rm -f conftest*
11384 fi
11385
11386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11387   echo "$ac_t""yes" 1>&6
11388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11389   cat >> confdefs.h <<EOF
11390 #define $ac_tr_func 1
11391 EOF
11392  
11393 else
11394   echo "$ac_t""no" 1>&6
11395 fi
11396 done
11397     
11398   else
11399     
11400   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
11401 echo "configure:11402: checking for _hypot declaration" >&5
11402   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
11403     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
11404   echo $ac_n "(cached) $ac_c" 1>&6
11405 else
11406   
11407       
11408       ac_ext=C
11409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11410 ac_cpp='$CXXCPP $CPPFLAGS'
11411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11413 cross_compiling=$ac_cv_prog_cxx_cross
11414
11415       cat > conftest.$ac_ext <<EOF
11416 #line 11417 "configure"
11417 #include "confdefs.h"
11418 #include <math.h>
11419 int main() {
11420  _hypot(0, 0);
11421 ; return 0; }
11422 EOF
11423 if { (eval echo configure:11424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11424   rm -rf conftest*
11425   glibcpp_cv_func__hypot_use=yes
11426 else
11427   echo "configure: failed program was:" >&5
11428   cat conftest.$ac_ext >&5
11429   rm -rf conftest*
11430   glibcpp_cv_func__hypot_use=no
11431 fi
11432 rm -f conftest*
11433       ac_ext=c
11434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11435 ac_cpp='$CPP $CPPFLAGS'
11436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11438 cross_compiling=$ac_cv_prog_cc_cross
11439
11440     
11441 fi
11442
11443   fi
11444   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
11445
11446     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
11447       for ac_func in _hypot
11448 do
11449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11450 echo "configure:11451: checking for $ac_func" >&5
11451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11452   echo $ac_n "(cached) $ac_c" 1>&6
11453 else
11454   cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure"
11456 #include "confdefs.h"
11457 /* System header to define __stub macros and hopefully few prototypes,
11458     which can conflict with char $ac_func(); below.  */
11459 #include <assert.h>
11460 /* Override any gcc2 internal prototype to avoid an error.  */
11461 /* We use char because int might match the return type of a gcc2
11462     builtin and then its argument prototype would still apply.  */
11463 char $ac_func();
11464
11465 int main() {
11466
11467 /* The GNU C library defines this for functions which it implements
11468     to always fail with ENOSYS.  Some functions are actually named
11469     something starting with __ and the normal name is an alias.  */
11470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11471 choke me
11472 #else
11473 $ac_func();
11474 #endif
11475
11476 ; return 0; }
11477 EOF
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11479   rm -rf conftest*
11480   eval "ac_cv_func_$ac_func=yes"
11481 else
11482   echo "configure: failed program was:" >&5
11483   cat conftest.$ac_ext >&5
11484   rm -rf conftest*
11485   eval "ac_cv_func_$ac_func=no"
11486 fi
11487 rm -f conftest*
11488 fi
11489
11490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11491   echo "$ac_t""yes" 1>&6
11492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11493   cat >> confdefs.h <<EOF
11494 #define $ac_tr_func 1
11495 EOF
11496  
11497 else
11498   echo "$ac_t""no" 1>&6
11499 fi
11500 done
11501     
11502     fi
11503   fi
11504
11505
11506     
11507   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
11508 echo "configure:11509: checking for float trig functions" >&5
11509   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
11510   echo $ac_n "(cached) $ac_c" 1>&6
11511 else
11512   
11513     
11514     ac_ext=C
11515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11516 ac_cpp='$CXXCPP $CPPFLAGS'
11517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11519 cross_compiling=$ac_cv_prog_cxx_cross
11520
11521     cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 #include <math.h>
11525 int main() {
11526  `for x in acosf asinf atanf \
11527                                           cosf sinf tanf \
11528                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
11529 ; return 0; }
11530 EOF
11531 if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532   rm -rf conftest*
11533   glibcpp_cv_func_float_trig_use=yes
11534 else
11535   echo "configure: failed program was:" >&5
11536   cat conftest.$ac_ext >&5
11537   rm -rf conftest*
11538   glibcpp_cv_func_float_trig_use=no
11539 fi
11540 rm -f conftest*
11541     ac_ext=c
11542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11546 cross_compiling=$ac_cv_prog_cc_cross
11547
11548 fi
11549
11550   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
11551   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
11552     for ac_func in acosf asinf atanf \
11553                                           cosf sinf tanf \
11554                                           coshf sinhf tanhf
11555 do
11556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11557 echo "configure:11558: checking for $ac_func" >&5
11558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11559   echo $ac_n "(cached) $ac_c" 1>&6
11560 else
11561   cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 /* System header to define __stub macros and hopefully few prototypes,
11565     which can conflict with char $ac_func(); below.  */
11566 #include <assert.h>
11567 /* Override any gcc2 internal prototype to avoid an error.  */
11568 /* We use char because int might match the return type of a gcc2
11569     builtin and then its argument prototype would still apply.  */
11570 char $ac_func();
11571
11572 int main() {
11573
11574 /* The GNU C library defines this for functions which it implements
11575     to always fail with ENOSYS.  Some functions are actually named
11576     something starting with __ and the normal name is an alias.  */
11577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11578 choke me
11579 #else
11580 $ac_func();
11581 #endif
11582
11583 ; return 0; }
11584 EOF
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11586   rm -rf conftest*
11587   eval "ac_cv_func_$ac_func=yes"
11588 else
11589   echo "configure: failed program was:" >&5
11590   cat conftest.$ac_ext >&5
11591   rm -rf conftest*
11592   eval "ac_cv_func_$ac_func=no"
11593 fi
11594 rm -f conftest*
11595 fi
11596
11597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11598   echo "$ac_t""yes" 1>&6
11599     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11600   cat >> confdefs.h <<EOF
11601 #define $ac_tr_func 1
11602 EOF
11603  
11604 else
11605   echo "$ac_t""no" 1>&6
11606 fi
11607 done
11608
11609   fi
11610
11611   
11612   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
11613 echo "configure:11614: checking for float round functions" >&5
11614   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
11615   echo $ac_n "(cached) $ac_c" 1>&6
11616 else
11617   
11618     
11619     ac_ext=C
11620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11621 ac_cpp='$CXXCPP $CPPFLAGS'
11622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11624 cross_compiling=$ac_cv_prog_cxx_cross
11625
11626     cat > conftest.$ac_ext <<EOF
11627 #line 11628 "configure"
11628 #include "confdefs.h"
11629 #include <math.h>
11630 int main() {
11631  `for x in ceilf floorf; do echo "$x (0);"; done` 
11632 ; return 0; }
11633 EOF
11634 if { (eval echo configure:11635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11635   rm -rf conftest*
11636   glibcpp_cv_func_float_round_use=yes
11637 else
11638   echo "configure: failed program was:" >&5
11639   cat conftest.$ac_ext >&5
11640   rm -rf conftest*
11641   glibcpp_cv_func_float_round_use=no
11642 fi
11643 rm -f conftest*
11644     ac_ext=c
11645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11646 ac_cpp='$CPP $CPPFLAGS'
11647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11649 cross_compiling=$ac_cv_prog_cc_cross
11650
11651 fi
11652
11653   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
11654   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
11655     for ac_func in ceilf floorf
11656 do
11657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11658 echo "configure:11659: checking for $ac_func" >&5
11659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11660   echo $ac_n "(cached) $ac_c" 1>&6
11661 else
11662   cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11665 /* System header to define __stub macros and hopefully few prototypes,
11666     which can conflict with char $ac_func(); below.  */
11667 #include <assert.h>
11668 /* Override any gcc2 internal prototype to avoid an error.  */
11669 /* We use char because int might match the return type of a gcc2
11670     builtin and then its argument prototype would still apply.  */
11671 char $ac_func();
11672
11673 int main() {
11674
11675 /* The GNU C library defines this for functions which it implements
11676     to always fail with ENOSYS.  Some functions are actually named
11677     something starting with __ and the normal name is an alias.  */
11678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11679 choke me
11680 #else
11681 $ac_func();
11682 #endif
11683
11684 ; return 0; }
11685 EOF
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687   rm -rf conftest*
11688   eval "ac_cv_func_$ac_func=yes"
11689 else
11690   echo "configure: failed program was:" >&5
11691   cat conftest.$ac_ext >&5
11692   rm -rf conftest*
11693   eval "ac_cv_func_$ac_func=no"
11694 fi
11695 rm -f conftest*
11696 fi
11697
11698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11699   echo "$ac_t""yes" 1>&6
11700     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11701   cat >> confdefs.h <<EOF
11702 #define $ac_tr_func 1
11703 EOF
11704  
11705 else
11706   echo "$ac_t""no" 1>&6
11707 fi
11708 done
11709
11710   fi
11711
11712   
11713   
11714   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
11715 echo "configure:11716: checking for expf declaration" >&5
11716   if test x${glibcpp_cv_func_expf_use+set} != xset; then
11717     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
11718   echo $ac_n "(cached) $ac_c" 1>&6
11719 else
11720   
11721       
11722       ac_ext=C
11723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11724 ac_cpp='$CXXCPP $CPPFLAGS'
11725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11727 cross_compiling=$ac_cv_prog_cxx_cross
11728
11729       cat > conftest.$ac_ext <<EOF
11730 #line 11731 "configure"
11731 #include "confdefs.h"
11732 #include <math.h>
11733                       #ifdef HAVE_IEEEFP_H
11734                       #include <ieeefp.h>
11735                       #endif
11736                      
11737 int main() {
11738  expf(0);
11739 ; return 0; }
11740 EOF
11741 if { (eval echo configure:11742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11742   rm -rf conftest*
11743   glibcpp_cv_func_expf_use=yes
11744 else
11745   echo "configure: failed program was:" >&5
11746   cat conftest.$ac_ext >&5
11747   rm -rf conftest*
11748   glibcpp_cv_func_expf_use=no
11749 fi
11750 rm -f conftest*
11751       ac_ext=c
11752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11756 cross_compiling=$ac_cv_prog_cc_cross
11757
11758     
11759 fi
11760
11761   fi
11762   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
11763
11764   if test x$glibcpp_cv_func_expf_use = x"yes"; then
11765     for ac_func in expf
11766 do
11767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11768 echo "configure:11769: checking for $ac_func" >&5
11769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11770   echo $ac_n "(cached) $ac_c" 1>&6
11771 else
11772   cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 /* System header to define __stub macros and hopefully few prototypes,
11776     which can conflict with char $ac_func(); below.  */
11777 #include <assert.h>
11778 /* Override any gcc2 internal prototype to avoid an error.  */
11779 /* We use char because int might match the return type of a gcc2
11780     builtin and then its argument prototype would still apply.  */
11781 char $ac_func();
11782
11783 int main() {
11784
11785 /* The GNU C library defines this for functions which it implements
11786     to always fail with ENOSYS.  Some functions are actually named
11787     something starting with __ and the normal name is an alias.  */
11788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11789 choke me
11790 #else
11791 $ac_func();
11792 #endif
11793
11794 ; return 0; }
11795 EOF
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11797   rm -rf conftest*
11798   eval "ac_cv_func_$ac_func=yes"
11799 else
11800   echo "configure: failed program was:" >&5
11801   cat conftest.$ac_ext >&5
11802   rm -rf conftest*
11803   eval "ac_cv_func_$ac_func=no"
11804 fi
11805 rm -f conftest*
11806 fi
11807
11808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11809   echo "$ac_t""yes" 1>&6
11810     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11811   cat >> confdefs.h <<EOF
11812 #define $ac_tr_func 1
11813 EOF
11814  
11815 else
11816   echo "$ac_t""no" 1>&6
11817 fi
11818 done
11819     
11820   else
11821     
11822   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
11823 echo "configure:11824: checking for _expf declaration" >&5
11824   if test x${glibcpp_cv_func__expf_use+set} != xset; then
11825     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
11826   echo $ac_n "(cached) $ac_c" 1>&6
11827 else
11828   
11829       
11830       ac_ext=C
11831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11832 ac_cpp='$CXXCPP $CPPFLAGS'
11833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11835 cross_compiling=$ac_cv_prog_cxx_cross
11836
11837       cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840 #include <math.h>
11841                       #ifdef HAVE_IEEEFP_H
11842                       #include <ieeefp.h>
11843                       #endif
11844                      
11845 int main() {
11846  _expf(0);
11847 ; return 0; }
11848 EOF
11849 if { (eval echo configure:11850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11850   rm -rf conftest*
11851   glibcpp_cv_func__expf_use=yes
11852 else
11853   echo "configure: failed program was:" >&5
11854   cat conftest.$ac_ext >&5
11855   rm -rf conftest*
11856   glibcpp_cv_func__expf_use=no
11857 fi
11858 rm -f conftest*
11859       ac_ext=c
11860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11861 ac_cpp='$CPP $CPPFLAGS'
11862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11864 cross_compiling=$ac_cv_prog_cc_cross
11865
11866     
11867 fi
11868
11869   fi
11870   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
11871
11872     if test x$glibcpp_cv_func__expf_use = x"yes"; then
11873       for ac_func in _expf
11874 do
11875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11876 echo "configure:11877: checking for $ac_func" >&5
11877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11878   echo $ac_n "(cached) $ac_c" 1>&6
11879 else
11880   cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11883 /* System header to define __stub macros and hopefully few prototypes,
11884     which can conflict with char $ac_func(); below.  */
11885 #include <assert.h>
11886 /* Override any gcc2 internal prototype to avoid an error.  */
11887 /* We use char because int might match the return type of a gcc2
11888     builtin and then its argument prototype would still apply.  */
11889 char $ac_func();
11890
11891 int main() {
11892
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11897 choke me
11898 #else
11899 $ac_func();
11900 #endif
11901
11902 ; return 0; }
11903 EOF
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11905   rm -rf conftest*
11906   eval "ac_cv_func_$ac_func=yes"
11907 else
11908   echo "configure: failed program was:" >&5
11909   cat conftest.$ac_ext >&5
11910   rm -rf conftest*
11911   eval "ac_cv_func_$ac_func=no"
11912 fi
11913 rm -f conftest*
11914 fi
11915
11916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11917   echo "$ac_t""yes" 1>&6
11918     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11919   cat >> confdefs.h <<EOF
11920 #define $ac_tr_func 1
11921 EOF
11922  
11923 else
11924   echo "$ac_t""no" 1>&6
11925 fi
11926 done
11927     
11928     fi
11929   fi
11930
11931   
11932   
11933   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
11934 echo "configure:11935: checking for isnanf declaration" >&5
11935   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
11936     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
11937   echo $ac_n "(cached) $ac_c" 1>&6
11938 else
11939   
11940       
11941       ac_ext=C
11942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11943 ac_cpp='$CXXCPP $CPPFLAGS'
11944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11946 cross_compiling=$ac_cv_prog_cxx_cross
11947
11948       cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 #include <math.h>
11952                       #ifdef HAVE_IEEEFP_H
11953                       #include <ieeefp.h>
11954                       #endif
11955                      
11956 int main() {
11957  isnanf(0);
11958 ; return 0; }
11959 EOF
11960 if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11961   rm -rf conftest*
11962   glibcpp_cv_func_isnanf_use=yes
11963 else
11964   echo "configure: failed program was:" >&5
11965   cat conftest.$ac_ext >&5
11966   rm -rf conftest*
11967   glibcpp_cv_func_isnanf_use=no
11968 fi
11969 rm -f conftest*
11970       ac_ext=c
11971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11975 cross_compiling=$ac_cv_prog_cc_cross
11976
11977     
11978 fi
11979
11980   fi
11981   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
11982
11983   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
11984     for ac_func in isnanf
11985 do
11986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11987 echo "configure:11988: checking for $ac_func" >&5
11988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11989   echo $ac_n "(cached) $ac_c" 1>&6
11990 else
11991   cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11994 /* System header to define __stub macros and hopefully few prototypes,
11995     which can conflict with char $ac_func(); below.  */
11996 #include <assert.h>
11997 /* Override any gcc2 internal prototype to avoid an error.  */
11998 /* We use char because int might match the return type of a gcc2
11999     builtin and then its argument prototype would still apply.  */
12000 char $ac_func();
12001
12002 int main() {
12003
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 choke me
12009 #else
12010 $ac_func();
12011 #endif
12012
12013 ; return 0; }
12014 EOF
12015 if { (eval echo configure:12016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12016   rm -rf conftest*
12017   eval "ac_cv_func_$ac_func=yes"
12018 else
12019   echo "configure: failed program was:" >&5
12020   cat conftest.$ac_ext >&5
12021   rm -rf conftest*
12022   eval "ac_cv_func_$ac_func=no"
12023 fi
12024 rm -f conftest*
12025 fi
12026
12027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12028   echo "$ac_t""yes" 1>&6
12029     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12030   cat >> confdefs.h <<EOF
12031 #define $ac_tr_func 1
12032 EOF
12033  
12034 else
12035   echo "$ac_t""no" 1>&6
12036 fi
12037 done
12038     
12039   else
12040     
12041   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12042 echo "configure:12043: checking for _isnanf declaration" >&5
12043   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12044     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12045   echo $ac_n "(cached) $ac_c" 1>&6
12046 else
12047   
12048       
12049       ac_ext=C
12050 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12051 ac_cpp='$CXXCPP $CPPFLAGS'
12052 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12053 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12054 cross_compiling=$ac_cv_prog_cxx_cross
12055
12056       cat > conftest.$ac_ext <<EOF
12057 #line 12058 "configure"
12058 #include "confdefs.h"
12059 #include <math.h>
12060                       #ifdef HAVE_IEEEFP_H
12061                       #include <ieeefp.h>
12062                       #endif
12063                      
12064 int main() {
12065  _isnanf(0);
12066 ; return 0; }
12067 EOF
12068 if { (eval echo configure:12069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12069   rm -rf conftest*
12070   glibcpp_cv_func__isnanf_use=yes
12071 else
12072   echo "configure: failed program was:" >&5
12073   cat conftest.$ac_ext >&5
12074   rm -rf conftest*
12075   glibcpp_cv_func__isnanf_use=no
12076 fi
12077 rm -f conftest*
12078       ac_ext=c
12079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12080 ac_cpp='$CPP $CPPFLAGS'
12081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12083 cross_compiling=$ac_cv_prog_cc_cross
12084
12085     
12086 fi
12087
12088   fi
12089   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
12090
12091     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
12092       for ac_func in _isnanf
12093 do
12094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12095 echo "configure:12096: checking for $ac_func" >&5
12096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12097   echo $ac_n "(cached) $ac_c" 1>&6
12098 else
12099   cat > conftest.$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12102 /* System header to define __stub macros and hopefully few prototypes,
12103     which can conflict with char $ac_func(); below.  */
12104 #include <assert.h>
12105 /* Override any gcc2 internal prototype to avoid an error.  */
12106 /* We use char because int might match the return type of a gcc2
12107     builtin and then its argument prototype would still apply.  */
12108 char $ac_func();
12109
12110 int main() {
12111
12112 /* The GNU C library defines this for functions which it implements
12113     to always fail with ENOSYS.  Some functions are actually named
12114     something starting with __ and the normal name is an alias.  */
12115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12116 choke me
12117 #else
12118 $ac_func();
12119 #endif
12120
12121 ; return 0; }
12122 EOF
12123 if { (eval echo configure:12124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12124   rm -rf conftest*
12125   eval "ac_cv_func_$ac_func=yes"
12126 else
12127   echo "configure: failed program was:" >&5
12128   cat conftest.$ac_ext >&5
12129   rm -rf conftest*
12130   eval "ac_cv_func_$ac_func=no"
12131 fi
12132 rm -f conftest*
12133 fi
12134
12135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12136   echo "$ac_t""yes" 1>&6
12137     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12138   cat >> confdefs.h <<EOF
12139 #define $ac_tr_func 1
12140 EOF
12141  
12142 else
12143   echo "$ac_t""no" 1>&6
12144 fi
12145 done
12146     
12147     fi
12148   fi
12149
12150   
12151   
12152   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
12153 echo "configure:12154: checking for isinff declaration" >&5
12154   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
12155     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
12156   echo $ac_n "(cached) $ac_c" 1>&6
12157 else
12158   
12159       
12160       ac_ext=C
12161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12162 ac_cpp='$CXXCPP $CPPFLAGS'
12163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12165 cross_compiling=$ac_cv_prog_cxx_cross
12166
12167       cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure"
12169 #include "confdefs.h"
12170 #include <math.h>
12171                       #ifdef HAVE_IEEEFP_H
12172                       #include <ieeefp.h>
12173                       #endif
12174                      
12175 int main() {
12176  isinff(0);
12177 ; return 0; }
12178 EOF
12179 if { (eval echo configure:12180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12180   rm -rf conftest*
12181   glibcpp_cv_func_isinff_use=yes
12182 else
12183   echo "configure: failed program was:" >&5
12184   cat conftest.$ac_ext >&5
12185   rm -rf conftest*
12186   glibcpp_cv_func_isinff_use=no
12187 fi
12188 rm -f conftest*
12189       ac_ext=c
12190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12191 ac_cpp='$CPP $CPPFLAGS'
12192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12194 cross_compiling=$ac_cv_prog_cc_cross
12195
12196     
12197 fi
12198
12199   fi
12200   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
12201
12202   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
12203     for ac_func in isinff
12204 do
12205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12206 echo "configure:12207: checking for $ac_func" >&5
12207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12208   echo $ac_n "(cached) $ac_c" 1>&6
12209 else
12210   cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12213 /* System header to define __stub macros and hopefully few prototypes,
12214     which can conflict with char $ac_func(); below.  */
12215 #include <assert.h>
12216 /* Override any gcc2 internal prototype to avoid an error.  */
12217 /* We use char because int might match the return type of a gcc2
12218     builtin and then its argument prototype would still apply.  */
12219 char $ac_func();
12220
12221 int main() {
12222
12223 /* The GNU C library defines this for functions which it implements
12224     to always fail with ENOSYS.  Some functions are actually named
12225     something starting with __ and the normal name is an alias.  */
12226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12227 choke me
12228 #else
12229 $ac_func();
12230 #endif
12231
12232 ; return 0; }
12233 EOF
12234 if { (eval echo configure:12235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12235   rm -rf conftest*
12236   eval "ac_cv_func_$ac_func=yes"
12237 else
12238   echo "configure: failed program was:" >&5
12239   cat conftest.$ac_ext >&5
12240   rm -rf conftest*
12241   eval "ac_cv_func_$ac_func=no"
12242 fi
12243 rm -f conftest*
12244 fi
12245
12246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12247   echo "$ac_t""yes" 1>&6
12248     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12249   cat >> confdefs.h <<EOF
12250 #define $ac_tr_func 1
12251 EOF
12252  
12253 else
12254   echo "$ac_t""no" 1>&6
12255 fi
12256 done
12257     
12258   else
12259     
12260   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
12261 echo "configure:12262: checking for _isinff declaration" >&5
12262   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
12263     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
12264   echo $ac_n "(cached) $ac_c" 1>&6
12265 else
12266   
12267       
12268       ac_ext=C
12269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12270 ac_cpp='$CXXCPP $CPPFLAGS'
12271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12273 cross_compiling=$ac_cv_prog_cxx_cross
12274
12275       cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278 #include <math.h>
12279                       #ifdef HAVE_IEEEFP_H
12280                       #include <ieeefp.h>
12281                       #endif
12282                      
12283 int main() {
12284  _isinff(0);
12285 ; return 0; }
12286 EOF
12287 if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12288   rm -rf conftest*
12289   glibcpp_cv_func__isinff_use=yes
12290 else
12291   echo "configure: failed program was:" >&5
12292   cat conftest.$ac_ext >&5
12293   rm -rf conftest*
12294   glibcpp_cv_func__isinff_use=no
12295 fi
12296 rm -f conftest*
12297       ac_ext=c
12298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12299 ac_cpp='$CPP $CPPFLAGS'
12300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12302 cross_compiling=$ac_cv_prog_cc_cross
12303
12304     
12305 fi
12306
12307   fi
12308   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
12309
12310     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
12311       for ac_func in _isinff
12312 do
12313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12314 echo "configure:12315: checking for $ac_func" >&5
12315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12316   echo $ac_n "(cached) $ac_c" 1>&6
12317 else
12318   cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12321 /* System header to define __stub macros and hopefully few prototypes,
12322     which can conflict with char $ac_func(); below.  */
12323 #include <assert.h>
12324 /* Override any gcc2 internal prototype to avoid an error.  */
12325 /* We use char because int might match the return type of a gcc2
12326     builtin and then its argument prototype would still apply.  */
12327 char $ac_func();
12328
12329 int main() {
12330
12331 /* The GNU C library defines this for functions which it implements
12332     to always fail with ENOSYS.  Some functions are actually named
12333     something starting with __ and the normal name is an alias.  */
12334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12335 choke me
12336 #else
12337 $ac_func();
12338 #endif
12339
12340 ; return 0; }
12341 EOF
12342 if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12343   rm -rf conftest*
12344   eval "ac_cv_func_$ac_func=yes"
12345 else
12346   echo "configure: failed program was:" >&5
12347   cat conftest.$ac_ext >&5
12348   rm -rf conftest*
12349   eval "ac_cv_func_$ac_func=no"
12350 fi
12351 rm -f conftest*
12352 fi
12353
12354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12355   echo "$ac_t""yes" 1>&6
12356     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12357   cat >> confdefs.h <<EOF
12358 #define $ac_tr_func 1
12359 EOF
12360  
12361 else
12362   echo "$ac_t""no" 1>&6
12363 fi
12364 done
12365     
12366     fi
12367   fi
12368
12369   
12370   
12371   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
12372 echo "configure:12373: checking for atan2f declaration" >&5
12373   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
12374     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
12375   echo $ac_n "(cached) $ac_c" 1>&6
12376 else
12377   
12378       
12379       ac_ext=C
12380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12381 ac_cpp='$CXXCPP $CPPFLAGS'
12382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12384 cross_compiling=$ac_cv_prog_cxx_cross
12385
12386       cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 #include <math.h>
12390 int main() {
12391  atan2f(0, 0);
12392 ; return 0; }
12393 EOF
12394 if { (eval echo configure:12395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12395   rm -rf conftest*
12396   glibcpp_cv_func_atan2f_use=yes
12397 else
12398   echo "configure: failed program was:" >&5
12399   cat conftest.$ac_ext >&5
12400   rm -rf conftest*
12401   glibcpp_cv_func_atan2f_use=no
12402 fi
12403 rm -f conftest*
12404       ac_ext=c
12405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12406 ac_cpp='$CPP $CPPFLAGS'
12407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12409 cross_compiling=$ac_cv_prog_cc_cross
12410
12411     
12412 fi
12413
12414   fi
12415   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
12416
12417   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
12418     for ac_func in atan2f
12419 do
12420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12421 echo "configure:12422: checking for $ac_func" >&5
12422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12423   echo $ac_n "(cached) $ac_c" 1>&6
12424 else
12425   cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 /* System header to define __stub macros and hopefully few prototypes,
12429     which can conflict with char $ac_func(); below.  */
12430 #include <assert.h>
12431 /* Override any gcc2 internal prototype to avoid an error.  */
12432 /* We use char because int might match the return type of a gcc2
12433     builtin and then its argument prototype would still apply.  */
12434 char $ac_func();
12435
12436 int main() {
12437
12438 /* The GNU C library defines this for functions which it implements
12439     to always fail with ENOSYS.  Some functions are actually named
12440     something starting with __ and the normal name is an alias.  */
12441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12442 choke me
12443 #else
12444 $ac_func();
12445 #endif
12446
12447 ; return 0; }
12448 EOF
12449 if { (eval echo configure:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12450   rm -rf conftest*
12451   eval "ac_cv_func_$ac_func=yes"
12452 else
12453   echo "configure: failed program was:" >&5
12454   cat conftest.$ac_ext >&5
12455   rm -rf conftest*
12456   eval "ac_cv_func_$ac_func=no"
12457 fi
12458 rm -f conftest*
12459 fi
12460
12461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12462   echo "$ac_t""yes" 1>&6
12463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12464   cat >> confdefs.h <<EOF
12465 #define $ac_tr_func 1
12466 EOF
12467  
12468 else
12469   echo "$ac_t""no" 1>&6
12470 fi
12471 done
12472     
12473   else
12474     
12475   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
12476 echo "configure:12477: checking for _atan2f declaration" >&5
12477   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
12478     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
12479   echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12481   
12482       
12483       ac_ext=C
12484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12485 ac_cpp='$CXXCPP $CPPFLAGS'
12486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12488 cross_compiling=$ac_cv_prog_cxx_cross
12489
12490       cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 #include <math.h>
12494 int main() {
12495  _atan2f(0, 0);
12496 ; return 0; }
12497 EOF
12498 if { (eval echo configure:12499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12499   rm -rf conftest*
12500   glibcpp_cv_func__atan2f_use=yes
12501 else
12502   echo "configure: failed program was:" >&5
12503   cat conftest.$ac_ext >&5
12504   rm -rf conftest*
12505   glibcpp_cv_func__atan2f_use=no
12506 fi
12507 rm -f conftest*
12508       ac_ext=c
12509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12510 ac_cpp='$CPP $CPPFLAGS'
12511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12513 cross_compiling=$ac_cv_prog_cc_cross
12514
12515     
12516 fi
12517
12518   fi
12519   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
12520
12521     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
12522       for ac_func in _atan2f
12523 do
12524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12525 echo "configure:12526: checking for $ac_func" >&5
12526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12527   echo $ac_n "(cached) $ac_c" 1>&6
12528 else
12529   cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 /* System header to define __stub macros and hopefully few prototypes,
12533     which can conflict with char $ac_func(); below.  */
12534 #include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error.  */
12536 /* We use char because int might match the return type of a gcc2
12537     builtin and then its argument prototype would still apply.  */
12538 char $ac_func();
12539
12540 int main() {
12541
12542 /* The GNU C library defines this for functions which it implements
12543     to always fail with ENOSYS.  Some functions are actually named
12544     something starting with __ and the normal name is an alias.  */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12546 choke me
12547 #else
12548 $ac_func();
12549 #endif
12550
12551 ; return 0; }
12552 EOF
12553 if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12554   rm -rf conftest*
12555   eval "ac_cv_func_$ac_func=yes"
12556 else
12557   echo "configure: failed program was:" >&5
12558   cat conftest.$ac_ext >&5
12559   rm -rf conftest*
12560   eval "ac_cv_func_$ac_func=no"
12561 fi
12562 rm -f conftest*
12563 fi
12564
12565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12566   echo "$ac_t""yes" 1>&6
12567     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12568   cat >> confdefs.h <<EOF
12569 #define $ac_tr_func 1
12570 EOF
12571  
12572 else
12573   echo "$ac_t""no" 1>&6
12574 fi
12575 done
12576     
12577     fi
12578   fi
12579
12580   
12581   
12582   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
12583 echo "configure:12584: checking for fabsf declaration" >&5
12584   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
12585     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
12586   echo $ac_n "(cached) $ac_c" 1>&6
12587 else
12588   
12589       
12590       ac_ext=C
12591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12592 ac_cpp='$CXXCPP $CPPFLAGS'
12593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12595 cross_compiling=$ac_cv_prog_cxx_cross
12596
12597       cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 #include <math.h>
12601                       #ifdef HAVE_IEEEFP_H
12602                       #include <ieeefp.h>
12603                       #endif
12604                      
12605 int main() {
12606  fabsf(0);
12607 ; return 0; }
12608 EOF
12609 if { (eval echo configure:12610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12610   rm -rf conftest*
12611   glibcpp_cv_func_fabsf_use=yes
12612 else
12613   echo "configure: failed program was:" >&5
12614   cat conftest.$ac_ext >&5
12615   rm -rf conftest*
12616   glibcpp_cv_func_fabsf_use=no
12617 fi
12618 rm -f conftest*
12619       ac_ext=c
12620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12621 ac_cpp='$CPP $CPPFLAGS'
12622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12624 cross_compiling=$ac_cv_prog_cc_cross
12625
12626     
12627 fi
12628
12629   fi
12630   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
12631
12632   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
12633     for ac_func in fabsf
12634 do
12635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12636 echo "configure:12637: checking for $ac_func" >&5
12637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12638   echo $ac_n "(cached) $ac_c" 1>&6
12639 else
12640   cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644     which can conflict with char $ac_func(); below.  */
12645 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error.  */
12647 /* We use char because int might match the return type of a gcc2
12648     builtin and then its argument prototype would still apply.  */
12649 char $ac_func();
12650
12651 int main() {
12652
12653 /* The GNU C library defines this for functions which it implements
12654     to always fail with ENOSYS.  Some functions are actually named
12655     something starting with __ and the normal name is an alias.  */
12656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12657 choke me
12658 #else
12659 $ac_func();
12660 #endif
12661
12662 ; return 0; }
12663 EOF
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665   rm -rf conftest*
12666   eval "ac_cv_func_$ac_func=yes"
12667 else
12668   echo "configure: failed program was:" >&5
12669   cat conftest.$ac_ext >&5
12670   rm -rf conftest*
12671   eval "ac_cv_func_$ac_func=no"
12672 fi
12673 rm -f conftest*
12674 fi
12675
12676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12677   echo "$ac_t""yes" 1>&6
12678     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12679   cat >> confdefs.h <<EOF
12680 #define $ac_tr_func 1
12681 EOF
12682  
12683 else
12684   echo "$ac_t""no" 1>&6
12685 fi
12686 done
12687     
12688   else
12689     
12690   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
12691 echo "configure:12692: checking for _fabsf declaration" >&5
12692   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
12693     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
12694   echo $ac_n "(cached) $ac_c" 1>&6
12695 else
12696   
12697       
12698       ac_ext=C
12699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12700 ac_cpp='$CXXCPP $CPPFLAGS'
12701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12703 cross_compiling=$ac_cv_prog_cxx_cross
12704
12705       cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 #include <math.h>
12709                       #ifdef HAVE_IEEEFP_H
12710                       #include <ieeefp.h>
12711                       #endif
12712                      
12713 int main() {
12714  _fabsf(0);
12715 ; return 0; }
12716 EOF
12717 if { (eval echo configure:12718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12718   rm -rf conftest*
12719   glibcpp_cv_func__fabsf_use=yes
12720 else
12721   echo "configure: failed program was:" >&5
12722   cat conftest.$ac_ext >&5
12723   rm -rf conftest*
12724   glibcpp_cv_func__fabsf_use=no
12725 fi
12726 rm -f conftest*
12727       ac_ext=c
12728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12729 ac_cpp='$CPP $CPPFLAGS'
12730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12732 cross_compiling=$ac_cv_prog_cc_cross
12733
12734     
12735 fi
12736
12737   fi
12738   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
12739
12740     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
12741       for ac_func in _fabsf
12742 do
12743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12744 echo "configure:12745: checking for $ac_func" >&5
12745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12746   echo $ac_n "(cached) $ac_c" 1>&6
12747 else
12748   cat > conftest.$ac_ext <<EOF
12749 #line 12750 "configure"
12750 #include "confdefs.h"
12751 /* System header to define __stub macros and hopefully few prototypes,
12752     which can conflict with char $ac_func(); below.  */
12753 #include <assert.h>
12754 /* Override any gcc2 internal prototype to avoid an error.  */
12755 /* We use char because int might match the return type of a gcc2
12756     builtin and then its argument prototype would still apply.  */
12757 char $ac_func();
12758
12759 int main() {
12760
12761 /* The GNU C library defines this for functions which it implements
12762     to always fail with ENOSYS.  Some functions are actually named
12763     something starting with __ and the normal name is an alias.  */
12764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12765 choke me
12766 #else
12767 $ac_func();
12768 #endif
12769
12770 ; return 0; }
12771 EOF
12772 if { (eval echo configure:12773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12773   rm -rf conftest*
12774   eval "ac_cv_func_$ac_func=yes"
12775 else
12776   echo "configure: failed program was:" >&5
12777   cat conftest.$ac_ext >&5
12778   rm -rf conftest*
12779   eval "ac_cv_func_$ac_func=no"
12780 fi
12781 rm -f conftest*
12782 fi
12783
12784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12785   echo "$ac_t""yes" 1>&6
12786     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12787   cat >> confdefs.h <<EOF
12788 #define $ac_tr_func 1
12789 EOF
12790  
12791 else
12792   echo "$ac_t""no" 1>&6
12793 fi
12794 done
12795     
12796     fi
12797   fi
12798
12799   
12800   
12801   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
12802 echo "configure:12803: checking for fmodf declaration" >&5
12803   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
12804     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
12805   echo $ac_n "(cached) $ac_c" 1>&6
12806 else
12807   
12808       
12809       ac_ext=C
12810 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12811 ac_cpp='$CXXCPP $CPPFLAGS'
12812 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12813 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12814 cross_compiling=$ac_cv_prog_cxx_cross
12815
12816       cat > conftest.$ac_ext <<EOF
12817 #line 12818 "configure"
12818 #include "confdefs.h"
12819 #include <math.h>
12820 int main() {
12821  fmodf(0, 0);
12822 ; return 0; }
12823 EOF
12824 if { (eval echo configure:12825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12825   rm -rf conftest*
12826   glibcpp_cv_func_fmodf_use=yes
12827 else
12828   echo "configure: failed program was:" >&5
12829   cat conftest.$ac_ext >&5
12830   rm -rf conftest*
12831   glibcpp_cv_func_fmodf_use=no
12832 fi
12833 rm -f conftest*
12834       ac_ext=c
12835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12836 ac_cpp='$CPP $CPPFLAGS'
12837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12839 cross_compiling=$ac_cv_prog_cc_cross
12840
12841     
12842 fi
12843
12844   fi
12845   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
12846
12847   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
12848     for ac_func in fmodf
12849 do
12850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12851 echo "configure:12852: checking for $ac_func" >&5
12852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12853   echo $ac_n "(cached) $ac_c" 1>&6
12854 else
12855   cat > conftest.$ac_ext <<EOF
12856 #line 12857 "configure"
12857 #include "confdefs.h"
12858 /* System header to define __stub macros and hopefully few prototypes,
12859     which can conflict with char $ac_func(); below.  */
12860 #include <assert.h>
12861 /* Override any gcc2 internal prototype to avoid an error.  */
12862 /* We use char because int might match the return type of a gcc2
12863     builtin and then its argument prototype would still apply.  */
12864 char $ac_func();
12865
12866 int main() {
12867
12868 /* The GNU C library defines this for functions which it implements
12869     to always fail with ENOSYS.  Some functions are actually named
12870     something starting with __ and the normal name is an alias.  */
12871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12872 choke me
12873 #else
12874 $ac_func();
12875 #endif
12876
12877 ; return 0; }
12878 EOF
12879 if { (eval echo configure:12880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12880   rm -rf conftest*
12881   eval "ac_cv_func_$ac_func=yes"
12882 else
12883   echo "configure: failed program was:" >&5
12884   cat conftest.$ac_ext >&5
12885   rm -rf conftest*
12886   eval "ac_cv_func_$ac_func=no"
12887 fi
12888 rm -f conftest*
12889 fi
12890
12891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12892   echo "$ac_t""yes" 1>&6
12893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12894   cat >> confdefs.h <<EOF
12895 #define $ac_tr_func 1
12896 EOF
12897  
12898 else
12899   echo "$ac_t""no" 1>&6
12900 fi
12901 done
12902     
12903   else
12904     
12905   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
12906 echo "configure:12907: checking for _fmodf declaration" >&5
12907   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
12908     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
12909   echo $ac_n "(cached) $ac_c" 1>&6
12910 else
12911   
12912       
12913       ac_ext=C
12914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12915 ac_cpp='$CXXCPP $CPPFLAGS'
12916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12918 cross_compiling=$ac_cv_prog_cxx_cross
12919
12920       cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923 #include <math.h>
12924 int main() {
12925  _fmodf(0, 0);
12926 ; return 0; }
12927 EOF
12928 if { (eval echo configure:12929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12929   rm -rf conftest*
12930   glibcpp_cv_func__fmodf_use=yes
12931 else
12932   echo "configure: failed program was:" >&5
12933   cat conftest.$ac_ext >&5
12934   rm -rf conftest*
12935   glibcpp_cv_func__fmodf_use=no
12936 fi
12937 rm -f conftest*
12938       ac_ext=c
12939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12943 cross_compiling=$ac_cv_prog_cc_cross
12944
12945     
12946 fi
12947
12948   fi
12949   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
12950
12951     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
12952       for ac_func in _fmodf
12953 do
12954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12955 echo "configure:12956: checking for $ac_func" >&5
12956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12957   echo $ac_n "(cached) $ac_c" 1>&6
12958 else
12959   cat > conftest.$ac_ext <<EOF
12960 #line 12961 "configure"
12961 #include "confdefs.h"
12962 /* System header to define __stub macros and hopefully few prototypes,
12963     which can conflict with char $ac_func(); below.  */
12964 #include <assert.h>
12965 /* Override any gcc2 internal prototype to avoid an error.  */
12966 /* We use char because int might match the return type of a gcc2
12967     builtin and then its argument prototype would still apply.  */
12968 char $ac_func();
12969
12970 int main() {
12971
12972 /* The GNU C library defines this for functions which it implements
12973     to always fail with ENOSYS.  Some functions are actually named
12974     something starting with __ and the normal name is an alias.  */
12975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976 choke me
12977 #else
12978 $ac_func();
12979 #endif
12980
12981 ; return 0; }
12982 EOF
12983 if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12984   rm -rf conftest*
12985   eval "ac_cv_func_$ac_func=yes"
12986 else
12987   echo "configure: failed program was:" >&5
12988   cat conftest.$ac_ext >&5
12989   rm -rf conftest*
12990   eval "ac_cv_func_$ac_func=no"
12991 fi
12992 rm -f conftest*
12993 fi
12994
12995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12996   echo "$ac_t""yes" 1>&6
12997     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12998   cat >> confdefs.h <<EOF
12999 #define $ac_tr_func 1
13000 EOF
13001  
13002 else
13003   echo "$ac_t""no" 1>&6
13004 fi
13005 done
13006     
13007     fi
13008   fi
13009
13010   
13011   
13012   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13013 echo "configure:13014: checking for frexpf declaration" >&5
13014   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13015     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13016   echo $ac_n "(cached) $ac_c" 1>&6
13017 else
13018   
13019       
13020       ac_ext=C
13021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13022 ac_cpp='$CXXCPP $CPPFLAGS'
13023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13025 cross_compiling=$ac_cv_prog_cxx_cross
13026
13027       cat > conftest.$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 #include <math.h>
13031 int main() {
13032  frexpf(0, 0);
13033 ; return 0; }
13034 EOF
13035 if { (eval echo configure:13036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13036   rm -rf conftest*
13037   glibcpp_cv_func_frexpf_use=yes
13038 else
13039   echo "configure: failed program was:" >&5
13040   cat conftest.$ac_ext >&5
13041   rm -rf conftest*
13042   glibcpp_cv_func_frexpf_use=no
13043 fi
13044 rm -f conftest*
13045       ac_ext=c
13046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13047 ac_cpp='$CPP $CPPFLAGS'
13048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13050 cross_compiling=$ac_cv_prog_cc_cross
13051
13052     
13053 fi
13054
13055   fi
13056   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13057
13058   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13059     for ac_func in frexpf
13060 do
13061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13062 echo "configure:13063: checking for $ac_func" >&5
13063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13064   echo $ac_n "(cached) $ac_c" 1>&6
13065 else
13066   cat > conftest.$ac_ext <<EOF
13067 #line 13068 "configure"
13068 #include "confdefs.h"
13069 /* System header to define __stub macros and hopefully few prototypes,
13070     which can conflict with char $ac_func(); below.  */
13071 #include <assert.h>
13072 /* Override any gcc2 internal prototype to avoid an error.  */
13073 /* We use char because int might match the return type of a gcc2
13074     builtin and then its argument prototype would still apply.  */
13075 char $ac_func();
13076
13077 int main() {
13078
13079 /* The GNU C library defines this for functions which it implements
13080     to always fail with ENOSYS.  Some functions are actually named
13081     something starting with __ and the normal name is an alias.  */
13082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13083 choke me
13084 #else
13085 $ac_func();
13086 #endif
13087
13088 ; return 0; }
13089 EOF
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13091   rm -rf conftest*
13092   eval "ac_cv_func_$ac_func=yes"
13093 else
13094   echo "configure: failed program was:" >&5
13095   cat conftest.$ac_ext >&5
13096   rm -rf conftest*
13097   eval "ac_cv_func_$ac_func=no"
13098 fi
13099 rm -f conftest*
13100 fi
13101
13102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13103   echo "$ac_t""yes" 1>&6
13104     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13105   cat >> confdefs.h <<EOF
13106 #define $ac_tr_func 1
13107 EOF
13108  
13109 else
13110   echo "$ac_t""no" 1>&6
13111 fi
13112 done
13113     
13114   else
13115     
13116   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
13117 echo "configure:13118: checking for _frexpf declaration" >&5
13118   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
13119     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
13120   echo $ac_n "(cached) $ac_c" 1>&6
13121 else
13122   
13123       
13124       ac_ext=C
13125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13126 ac_cpp='$CXXCPP $CPPFLAGS'
13127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13129 cross_compiling=$ac_cv_prog_cxx_cross
13130
13131       cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure"
13133 #include "confdefs.h"
13134 #include <math.h>
13135 int main() {
13136  _frexpf(0, 0);
13137 ; return 0; }
13138 EOF
13139 if { (eval echo configure:13140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13140   rm -rf conftest*
13141   glibcpp_cv_func__frexpf_use=yes
13142 else
13143   echo "configure: failed program was:" >&5
13144   cat conftest.$ac_ext >&5
13145   rm -rf conftest*
13146   glibcpp_cv_func__frexpf_use=no
13147 fi
13148 rm -f conftest*
13149       ac_ext=c
13150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13151 ac_cpp='$CPP $CPPFLAGS'
13152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13154 cross_compiling=$ac_cv_prog_cc_cross
13155
13156     
13157 fi
13158
13159   fi
13160   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
13161
13162     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
13163       for ac_func in _frexpf
13164 do
13165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13166 echo "configure:13167: checking for $ac_func" >&5
13167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13168   echo $ac_n "(cached) $ac_c" 1>&6
13169 else
13170   cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 /* System header to define __stub macros and hopefully few prototypes,
13174     which can conflict with char $ac_func(); below.  */
13175 #include <assert.h>
13176 /* Override any gcc2 internal prototype to avoid an error.  */
13177 /* We use char because int might match the return type of a gcc2
13178     builtin and then its argument prototype would still apply.  */
13179 char $ac_func();
13180
13181 int main() {
13182
13183 /* The GNU C library defines this for functions which it implements
13184     to always fail with ENOSYS.  Some functions are actually named
13185     something starting with __ and the normal name is an alias.  */
13186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13187 choke me
13188 #else
13189 $ac_func();
13190 #endif
13191
13192 ; return 0; }
13193 EOF
13194 if { (eval echo configure:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13195   rm -rf conftest*
13196   eval "ac_cv_func_$ac_func=yes"
13197 else
13198   echo "configure: failed program was:" >&5
13199   cat conftest.$ac_ext >&5
13200   rm -rf conftest*
13201   eval "ac_cv_func_$ac_func=no"
13202 fi
13203 rm -f conftest*
13204 fi
13205
13206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13207   echo "$ac_t""yes" 1>&6
13208     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13209   cat >> confdefs.h <<EOF
13210 #define $ac_tr_func 1
13211 EOF
13212  
13213 else
13214   echo "$ac_t""no" 1>&6
13215 fi
13216 done
13217     
13218     fi
13219   fi
13220
13221   
13222   
13223   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
13224 echo "configure:13225: checking for hypotf declaration" >&5
13225   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
13226     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
13227   echo $ac_n "(cached) $ac_c" 1>&6
13228 else
13229   
13230       
13231       ac_ext=C
13232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13233 ac_cpp='$CXXCPP $CPPFLAGS'
13234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13236 cross_compiling=$ac_cv_prog_cxx_cross
13237
13238       cat > conftest.$ac_ext <<EOF
13239 #line 13240 "configure"
13240 #include "confdefs.h"
13241 #include <math.h>
13242 int main() {
13243  hypotf(0, 0);
13244 ; return 0; }
13245 EOF
13246 if { (eval echo configure:13247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13247   rm -rf conftest*
13248   glibcpp_cv_func_hypotf_use=yes
13249 else
13250   echo "configure: failed program was:" >&5
13251   cat conftest.$ac_ext >&5
13252   rm -rf conftest*
13253   glibcpp_cv_func_hypotf_use=no
13254 fi
13255 rm -f conftest*
13256       ac_ext=c
13257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13258 ac_cpp='$CPP $CPPFLAGS'
13259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13261 cross_compiling=$ac_cv_prog_cc_cross
13262
13263     
13264 fi
13265
13266   fi
13267   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
13268
13269   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
13270     for ac_func in hypotf
13271 do
13272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13273 echo "configure:13274: checking for $ac_func" >&5
13274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13275   echo $ac_n "(cached) $ac_c" 1>&6
13276 else
13277   cat > conftest.$ac_ext <<EOF
13278 #line 13279 "configure"
13279 #include "confdefs.h"
13280 /* System header to define __stub macros and hopefully few prototypes,
13281     which can conflict with char $ac_func(); below.  */
13282 #include <assert.h>
13283 /* Override any gcc2 internal prototype to avoid an error.  */
13284 /* We use char because int might match the return type of a gcc2
13285     builtin and then its argument prototype would still apply.  */
13286 char $ac_func();
13287
13288 int main() {
13289
13290 /* The GNU C library defines this for functions which it implements
13291     to always fail with ENOSYS.  Some functions are actually named
13292     something starting with __ and the normal name is an alias.  */
13293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13294 choke me
13295 #else
13296 $ac_func();
13297 #endif
13298
13299 ; return 0; }
13300 EOF
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13302   rm -rf conftest*
13303   eval "ac_cv_func_$ac_func=yes"
13304 else
13305   echo "configure: failed program was:" >&5
13306   cat conftest.$ac_ext >&5
13307   rm -rf conftest*
13308   eval "ac_cv_func_$ac_func=no"
13309 fi
13310 rm -f conftest*
13311 fi
13312
13313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13314   echo "$ac_t""yes" 1>&6
13315     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13316   cat >> confdefs.h <<EOF
13317 #define $ac_tr_func 1
13318 EOF
13319  
13320 else
13321   echo "$ac_t""no" 1>&6
13322 fi
13323 done
13324     
13325   else
13326     
13327   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
13328 echo "configure:13329: checking for _hypotf declaration" >&5
13329   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
13330     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
13331   echo $ac_n "(cached) $ac_c" 1>&6
13332 else
13333   
13334       
13335       ac_ext=C
13336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13337 ac_cpp='$CXXCPP $CPPFLAGS'
13338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13340 cross_compiling=$ac_cv_prog_cxx_cross
13341
13342       cat > conftest.$ac_ext <<EOF
13343 #line 13344 "configure"
13344 #include "confdefs.h"
13345 #include <math.h>
13346 int main() {
13347  _hypotf(0, 0);
13348 ; return 0; }
13349 EOF
13350 if { (eval echo configure:13351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13351   rm -rf conftest*
13352   glibcpp_cv_func__hypotf_use=yes
13353 else
13354   echo "configure: failed program was:" >&5
13355   cat conftest.$ac_ext >&5
13356   rm -rf conftest*
13357   glibcpp_cv_func__hypotf_use=no
13358 fi
13359 rm -f conftest*
13360       ac_ext=c
13361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13362 ac_cpp='$CPP $CPPFLAGS'
13363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13365 cross_compiling=$ac_cv_prog_cc_cross
13366
13367     
13368 fi
13369
13370   fi
13371   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
13372
13373     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
13374       for ac_func in _hypotf
13375 do
13376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13377 echo "configure:13378: checking for $ac_func" >&5
13378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13379   echo $ac_n "(cached) $ac_c" 1>&6
13380 else
13381   cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 /* System header to define __stub macros and hopefully few prototypes,
13385     which can conflict with char $ac_func(); below.  */
13386 #include <assert.h>
13387 /* Override any gcc2 internal prototype to avoid an error.  */
13388 /* We use char because int might match the return type of a gcc2
13389     builtin and then its argument prototype would still apply.  */
13390 char $ac_func();
13391
13392 int main() {
13393
13394 /* The GNU C library defines this for functions which it implements
13395     to always fail with ENOSYS.  Some functions are actually named
13396     something starting with __ and the normal name is an alias.  */
13397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13398 choke me
13399 #else
13400 $ac_func();
13401 #endif
13402
13403 ; return 0; }
13404 EOF
13405 if { (eval echo configure:13406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13406   rm -rf conftest*
13407   eval "ac_cv_func_$ac_func=yes"
13408 else
13409   echo "configure: failed program was:" >&5
13410   cat conftest.$ac_ext >&5
13411   rm -rf conftest*
13412   eval "ac_cv_func_$ac_func=no"
13413 fi
13414 rm -f conftest*
13415 fi
13416
13417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13418   echo "$ac_t""yes" 1>&6
13419     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13420   cat >> confdefs.h <<EOF
13421 #define $ac_tr_func 1
13422 EOF
13423  
13424 else
13425   echo "$ac_t""no" 1>&6
13426 fi
13427 done
13428     
13429     fi
13430   fi
13431
13432   
13433   
13434   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
13435 echo "configure:13436: checking for ldexpf declaration" >&5
13436   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
13437     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
13438   echo $ac_n "(cached) $ac_c" 1>&6
13439 else
13440   
13441       
13442       ac_ext=C
13443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13444 ac_cpp='$CXXCPP $CPPFLAGS'
13445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13447 cross_compiling=$ac_cv_prog_cxx_cross
13448
13449       cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 #include <math.h>
13453 int main() {
13454  ldexpf(0, 0);
13455 ; return 0; }
13456 EOF
13457 if { (eval echo configure:13458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13458   rm -rf conftest*
13459   glibcpp_cv_func_ldexpf_use=yes
13460 else
13461   echo "configure: failed program was:" >&5
13462   cat conftest.$ac_ext >&5
13463   rm -rf conftest*
13464   glibcpp_cv_func_ldexpf_use=no
13465 fi
13466 rm -f conftest*
13467       ac_ext=c
13468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13469 ac_cpp='$CPP $CPPFLAGS'
13470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13472 cross_compiling=$ac_cv_prog_cc_cross
13473
13474     
13475 fi
13476
13477   fi
13478   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
13479
13480   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
13481     for ac_func in ldexpf
13482 do
13483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13484 echo "configure:13485: checking for $ac_func" >&5
13485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13486   echo $ac_n "(cached) $ac_c" 1>&6
13487 else
13488   cat > conftest.$ac_ext <<EOF
13489 #line 13490 "configure"
13490 #include "confdefs.h"
13491 /* System header to define __stub macros and hopefully few prototypes,
13492     which can conflict with char $ac_func(); below.  */
13493 #include <assert.h>
13494 /* Override any gcc2 internal prototype to avoid an error.  */
13495 /* We use char because int might match the return type of a gcc2
13496     builtin and then its argument prototype would still apply.  */
13497 char $ac_func();
13498
13499 int main() {
13500
13501 /* The GNU C library defines this for functions which it implements
13502     to always fail with ENOSYS.  Some functions are actually named
13503     something starting with __ and the normal name is an alias.  */
13504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13505 choke me
13506 #else
13507 $ac_func();
13508 #endif
13509
13510 ; return 0; }
13511 EOF
13512 if { (eval echo configure:13513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13513   rm -rf conftest*
13514   eval "ac_cv_func_$ac_func=yes"
13515 else
13516   echo "configure: failed program was:" >&5
13517   cat conftest.$ac_ext >&5
13518   rm -rf conftest*
13519   eval "ac_cv_func_$ac_func=no"
13520 fi
13521 rm -f conftest*
13522 fi
13523
13524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13525   echo "$ac_t""yes" 1>&6
13526     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13527   cat >> confdefs.h <<EOF
13528 #define $ac_tr_func 1
13529 EOF
13530  
13531 else
13532   echo "$ac_t""no" 1>&6
13533 fi
13534 done
13535     
13536   else
13537     
13538   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
13539 echo "configure:13540: checking for _ldexpf declaration" >&5
13540   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
13541     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
13542   echo $ac_n "(cached) $ac_c" 1>&6
13543 else
13544   
13545       
13546       ac_ext=C
13547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13548 ac_cpp='$CXXCPP $CPPFLAGS'
13549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13551 cross_compiling=$ac_cv_prog_cxx_cross
13552
13553       cat > conftest.$ac_ext <<EOF
13554 #line 13555 "configure"
13555 #include "confdefs.h"
13556 #include <math.h>
13557 int main() {
13558  _ldexpf(0, 0);
13559 ; return 0; }
13560 EOF
13561 if { (eval echo configure:13562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13562   rm -rf conftest*
13563   glibcpp_cv_func__ldexpf_use=yes
13564 else
13565   echo "configure: failed program was:" >&5
13566   cat conftest.$ac_ext >&5
13567   rm -rf conftest*
13568   glibcpp_cv_func__ldexpf_use=no
13569 fi
13570 rm -f conftest*
13571       ac_ext=c
13572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13573 ac_cpp='$CPP $CPPFLAGS'
13574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13576 cross_compiling=$ac_cv_prog_cc_cross
13577
13578     
13579 fi
13580
13581   fi
13582   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
13583
13584     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
13585       for ac_func in _ldexpf
13586 do
13587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13588 echo "configure:13589: checking for $ac_func" >&5
13589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13590   echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592   cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 /* System header to define __stub macros and hopefully few prototypes,
13596     which can conflict with char $ac_func(); below.  */
13597 #include <assert.h>
13598 /* Override any gcc2 internal prototype to avoid an error.  */
13599 /* We use char because int might match the return type of a gcc2
13600     builtin and then its argument prototype would still apply.  */
13601 char $ac_func();
13602
13603 int main() {
13604
13605 /* The GNU C library defines this for functions which it implements
13606     to always fail with ENOSYS.  Some functions are actually named
13607     something starting with __ and the normal name is an alias.  */
13608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13609 choke me
13610 #else
13611 $ac_func();
13612 #endif
13613
13614 ; return 0; }
13615 EOF
13616 if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13617   rm -rf conftest*
13618   eval "ac_cv_func_$ac_func=yes"
13619 else
13620   echo "configure: failed program was:" >&5
13621   cat conftest.$ac_ext >&5
13622   rm -rf conftest*
13623   eval "ac_cv_func_$ac_func=no"
13624 fi
13625 rm -f conftest*
13626 fi
13627
13628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13629   echo "$ac_t""yes" 1>&6
13630     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13631   cat >> confdefs.h <<EOF
13632 #define $ac_tr_func 1
13633 EOF
13634  
13635 else
13636   echo "$ac_t""no" 1>&6
13637 fi
13638 done
13639     
13640     fi
13641   fi
13642
13643   
13644   
13645   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
13646 echo "configure:13647: checking for logf declaration" >&5
13647   if test x${glibcpp_cv_func_logf_use+set} != xset; then
13648     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
13649   echo $ac_n "(cached) $ac_c" 1>&6
13650 else
13651   
13652       
13653       ac_ext=C
13654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13655 ac_cpp='$CXXCPP $CPPFLAGS'
13656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13658 cross_compiling=$ac_cv_prog_cxx_cross
13659
13660       cat > conftest.$ac_ext <<EOF
13661 #line 13662 "configure"
13662 #include "confdefs.h"
13663 #include <math.h>
13664                       #ifdef HAVE_IEEEFP_H
13665                       #include <ieeefp.h>
13666                       #endif
13667                      
13668 int main() {
13669  logf(0);
13670 ; return 0; }
13671 EOF
13672 if { (eval echo configure:13673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13673   rm -rf conftest*
13674   glibcpp_cv_func_logf_use=yes
13675 else
13676   echo "configure: failed program was:" >&5
13677   cat conftest.$ac_ext >&5
13678   rm -rf conftest*
13679   glibcpp_cv_func_logf_use=no
13680 fi
13681 rm -f conftest*
13682       ac_ext=c
13683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13684 ac_cpp='$CPP $CPPFLAGS'
13685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13687 cross_compiling=$ac_cv_prog_cc_cross
13688
13689     
13690 fi
13691
13692   fi
13693   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
13694
13695   if test x$glibcpp_cv_func_logf_use = x"yes"; then
13696     for ac_func in logf
13697 do
13698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13699 echo "configure:13700: checking for $ac_func" >&5
13700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13701   echo $ac_n "(cached) $ac_c" 1>&6
13702 else
13703   cat > conftest.$ac_ext <<EOF
13704 #line 13705 "configure"
13705 #include "confdefs.h"
13706 /* System header to define __stub macros and hopefully few prototypes,
13707     which can conflict with char $ac_func(); below.  */
13708 #include <assert.h>
13709 /* Override any gcc2 internal prototype to avoid an error.  */
13710 /* We use char because int might match the return type of a gcc2
13711     builtin and then its argument prototype would still apply.  */
13712 char $ac_func();
13713
13714 int main() {
13715
13716 /* The GNU C library defines this for functions which it implements
13717     to always fail with ENOSYS.  Some functions are actually named
13718     something starting with __ and the normal name is an alias.  */
13719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13720 choke me
13721 #else
13722 $ac_func();
13723 #endif
13724
13725 ; return 0; }
13726 EOF
13727 if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13728   rm -rf conftest*
13729   eval "ac_cv_func_$ac_func=yes"
13730 else
13731   echo "configure: failed program was:" >&5
13732   cat conftest.$ac_ext >&5
13733   rm -rf conftest*
13734   eval "ac_cv_func_$ac_func=no"
13735 fi
13736 rm -f conftest*
13737 fi
13738
13739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13740   echo "$ac_t""yes" 1>&6
13741     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13742   cat >> confdefs.h <<EOF
13743 #define $ac_tr_func 1
13744 EOF
13745  
13746 else
13747   echo "$ac_t""no" 1>&6
13748 fi
13749 done
13750     
13751   else
13752     
13753   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
13754 echo "configure:13755: checking for _logf declaration" >&5
13755   if test x${glibcpp_cv_func__logf_use+set} != xset; then
13756     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
13757   echo $ac_n "(cached) $ac_c" 1>&6
13758 else
13759   
13760       
13761       ac_ext=C
13762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13763 ac_cpp='$CXXCPP $CPPFLAGS'
13764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13766 cross_compiling=$ac_cv_prog_cxx_cross
13767
13768       cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 #include <math.h>
13772                       #ifdef HAVE_IEEEFP_H
13773                       #include <ieeefp.h>
13774                       #endif
13775                      
13776 int main() {
13777  _logf(0);
13778 ; return 0; }
13779 EOF
13780 if { (eval echo configure:13781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13781   rm -rf conftest*
13782   glibcpp_cv_func__logf_use=yes
13783 else
13784   echo "configure: failed program was:" >&5
13785   cat conftest.$ac_ext >&5
13786   rm -rf conftest*
13787   glibcpp_cv_func__logf_use=no
13788 fi
13789 rm -f conftest*
13790       ac_ext=c
13791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13795 cross_compiling=$ac_cv_prog_cc_cross
13796
13797     
13798 fi
13799
13800   fi
13801   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
13802
13803     if test x$glibcpp_cv_func__logf_use = x"yes"; then
13804       for ac_func in _logf
13805 do
13806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13807 echo "configure:13808: checking for $ac_func" >&5
13808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13809   echo $ac_n "(cached) $ac_c" 1>&6
13810 else
13811   cat > conftest.$ac_ext <<EOF
13812 #line 13813 "configure"
13813 #include "confdefs.h"
13814 /* System header to define __stub macros and hopefully few prototypes,
13815     which can conflict with char $ac_func(); below.  */
13816 #include <assert.h>
13817 /* Override any gcc2 internal prototype to avoid an error.  */
13818 /* We use char because int might match the return type of a gcc2
13819     builtin and then its argument prototype would still apply.  */
13820 char $ac_func();
13821
13822 int main() {
13823
13824 /* The GNU C library defines this for functions which it implements
13825     to always fail with ENOSYS.  Some functions are actually named
13826     something starting with __ and the normal name is an alias.  */
13827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13828 choke me
13829 #else
13830 $ac_func();
13831 #endif
13832
13833 ; return 0; }
13834 EOF
13835 if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13836   rm -rf conftest*
13837   eval "ac_cv_func_$ac_func=yes"
13838 else
13839   echo "configure: failed program was:" >&5
13840   cat conftest.$ac_ext >&5
13841   rm -rf conftest*
13842   eval "ac_cv_func_$ac_func=no"
13843 fi
13844 rm -f conftest*
13845 fi
13846
13847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13848   echo "$ac_t""yes" 1>&6
13849     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13850   cat >> confdefs.h <<EOF
13851 #define $ac_tr_func 1
13852 EOF
13853  
13854 else
13855   echo "$ac_t""no" 1>&6
13856 fi
13857 done
13858     
13859     fi
13860   fi
13861
13862   
13863   
13864   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
13865 echo "configure:13866: checking for log10f declaration" >&5
13866   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
13867     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
13868   echo $ac_n "(cached) $ac_c" 1>&6
13869 else
13870   
13871       
13872       ac_ext=C
13873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13874 ac_cpp='$CXXCPP $CPPFLAGS'
13875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13877 cross_compiling=$ac_cv_prog_cxx_cross
13878
13879       cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 #include <math.h>
13883                       #ifdef HAVE_IEEEFP_H
13884                       #include <ieeefp.h>
13885                       #endif
13886                      
13887 int main() {
13888  log10f(0);
13889 ; return 0; }
13890 EOF
13891 if { (eval echo configure:13892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13892   rm -rf conftest*
13893   glibcpp_cv_func_log10f_use=yes
13894 else
13895   echo "configure: failed program was:" >&5
13896   cat conftest.$ac_ext >&5
13897   rm -rf conftest*
13898   glibcpp_cv_func_log10f_use=no
13899 fi
13900 rm -f conftest*
13901       ac_ext=c
13902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13903 ac_cpp='$CPP $CPPFLAGS'
13904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13906 cross_compiling=$ac_cv_prog_cc_cross
13907
13908     
13909 fi
13910
13911   fi
13912   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
13913
13914   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
13915     for ac_func in log10f
13916 do
13917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13918 echo "configure:13919: checking for $ac_func" >&5
13919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13920   echo $ac_n "(cached) $ac_c" 1>&6
13921 else
13922   cat > conftest.$ac_ext <<EOF
13923 #line 13924 "configure"
13924 #include "confdefs.h"
13925 /* System header to define __stub macros and hopefully few prototypes,
13926     which can conflict with char $ac_func(); below.  */
13927 #include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error.  */
13929 /* We use char because int might match the return type of a gcc2
13930     builtin and then its argument prototype would still apply.  */
13931 char $ac_func();
13932
13933 int main() {
13934
13935 /* The GNU C library defines this for functions which it implements
13936     to always fail with ENOSYS.  Some functions are actually named
13937     something starting with __ and the normal name is an alias.  */
13938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13939 choke me
13940 #else
13941 $ac_func();
13942 #endif
13943
13944 ; return 0; }
13945 EOF
13946 if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13947   rm -rf conftest*
13948   eval "ac_cv_func_$ac_func=yes"
13949 else
13950   echo "configure: failed program was:" >&5
13951   cat conftest.$ac_ext >&5
13952   rm -rf conftest*
13953   eval "ac_cv_func_$ac_func=no"
13954 fi
13955 rm -f conftest*
13956 fi
13957
13958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13959   echo "$ac_t""yes" 1>&6
13960     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13961   cat >> confdefs.h <<EOF
13962 #define $ac_tr_func 1
13963 EOF
13964  
13965 else
13966   echo "$ac_t""no" 1>&6
13967 fi
13968 done
13969     
13970   else
13971     
13972   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
13973 echo "configure:13974: checking for _log10f declaration" >&5
13974   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
13975     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
13976   echo $ac_n "(cached) $ac_c" 1>&6
13977 else
13978   
13979       
13980       ac_ext=C
13981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13982 ac_cpp='$CXXCPP $CPPFLAGS'
13983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13985 cross_compiling=$ac_cv_prog_cxx_cross
13986
13987       cat > conftest.$ac_ext <<EOF
13988 #line 13989 "configure"
13989 #include "confdefs.h"
13990 #include <math.h>
13991                       #ifdef HAVE_IEEEFP_H
13992                       #include <ieeefp.h>
13993                       #endif
13994                      
13995 int main() {
13996  _log10f(0);
13997 ; return 0; }
13998 EOF
13999 if { (eval echo configure:14000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14000   rm -rf conftest*
14001   glibcpp_cv_func__log10f_use=yes
14002 else
14003   echo "configure: failed program was:" >&5
14004   cat conftest.$ac_ext >&5
14005   rm -rf conftest*
14006   glibcpp_cv_func__log10f_use=no
14007 fi
14008 rm -f conftest*
14009       ac_ext=c
14010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14011 ac_cpp='$CPP $CPPFLAGS'
14012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14014 cross_compiling=$ac_cv_prog_cc_cross
14015
14016     
14017 fi
14018
14019   fi
14020   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14021
14022     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14023       for ac_func in _log10f
14024 do
14025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14026 echo "configure:14027: checking for $ac_func" >&5
14027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14028   echo $ac_n "(cached) $ac_c" 1>&6
14029 else
14030   cat > conftest.$ac_ext <<EOF
14031 #line 14032 "configure"
14032 #include "confdefs.h"
14033 /* System header to define __stub macros and hopefully few prototypes,
14034     which can conflict with char $ac_func(); below.  */
14035 #include <assert.h>
14036 /* Override any gcc2 internal prototype to avoid an error.  */
14037 /* We use char because int might match the return type of a gcc2
14038     builtin and then its argument prototype would still apply.  */
14039 char $ac_func();
14040
14041 int main() {
14042
14043 /* The GNU C library defines this for functions which it implements
14044     to always fail with ENOSYS.  Some functions are actually named
14045     something starting with __ and the normal name is an alias.  */
14046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14047 choke me
14048 #else
14049 $ac_func();
14050 #endif
14051
14052 ; return 0; }
14053 EOF
14054 if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14055   rm -rf conftest*
14056   eval "ac_cv_func_$ac_func=yes"
14057 else
14058   echo "configure: failed program was:" >&5
14059   cat conftest.$ac_ext >&5
14060   rm -rf conftest*
14061   eval "ac_cv_func_$ac_func=no"
14062 fi
14063 rm -f conftest*
14064 fi
14065
14066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14067   echo "$ac_t""yes" 1>&6
14068     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14069   cat >> confdefs.h <<EOF
14070 #define $ac_tr_func 1
14071 EOF
14072  
14073 else
14074   echo "$ac_t""no" 1>&6
14075 fi
14076 done
14077     
14078     fi
14079   fi
14080
14081   
14082   
14083   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14084 echo "configure:14085: checking for modff declaration" >&5
14085   if test x${glibcpp_cv_func_modff_use+set} != xset; then
14086     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
14087   echo $ac_n "(cached) $ac_c" 1>&6
14088 else
14089   
14090       
14091       ac_ext=C
14092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14093 ac_cpp='$CXXCPP $CPPFLAGS'
14094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14096 cross_compiling=$ac_cv_prog_cxx_cross
14097
14098       cat > conftest.$ac_ext <<EOF
14099 #line 14100 "configure"
14100 #include "confdefs.h"
14101 #include <math.h>
14102 int main() {
14103  modff(0, 0);
14104 ; return 0; }
14105 EOF
14106 if { (eval echo configure:14107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14107   rm -rf conftest*
14108   glibcpp_cv_func_modff_use=yes
14109 else
14110   echo "configure: failed program was:" >&5
14111   cat conftest.$ac_ext >&5
14112   rm -rf conftest*
14113   glibcpp_cv_func_modff_use=no
14114 fi
14115 rm -f conftest*
14116       ac_ext=c
14117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14118 ac_cpp='$CPP $CPPFLAGS'
14119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14121 cross_compiling=$ac_cv_prog_cc_cross
14122
14123     
14124 fi
14125
14126   fi
14127   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
14128
14129   if test x$glibcpp_cv_func_modff_use = x"yes"; then
14130     for ac_func in modff
14131 do
14132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14133 echo "configure:14134: checking for $ac_func" >&5
14134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14135   echo $ac_n "(cached) $ac_c" 1>&6
14136 else
14137   cat > conftest.$ac_ext <<EOF
14138 #line 14139 "configure"
14139 #include "confdefs.h"
14140 /* System header to define __stub macros and hopefully few prototypes,
14141     which can conflict with char $ac_func(); below.  */
14142 #include <assert.h>
14143 /* Override any gcc2 internal prototype to avoid an error.  */
14144 /* We use char because int might match the return type of a gcc2
14145     builtin and then its argument prototype would still apply.  */
14146 char $ac_func();
14147
14148 int main() {
14149
14150 /* The GNU C library defines this for functions which it implements
14151     to always fail with ENOSYS.  Some functions are actually named
14152     something starting with __ and the normal name is an alias.  */
14153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14154 choke me
14155 #else
14156 $ac_func();
14157 #endif
14158
14159 ; return 0; }
14160 EOF
14161 if { (eval echo configure:14162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14162   rm -rf conftest*
14163   eval "ac_cv_func_$ac_func=yes"
14164 else
14165   echo "configure: failed program was:" >&5
14166   cat conftest.$ac_ext >&5
14167   rm -rf conftest*
14168   eval "ac_cv_func_$ac_func=no"
14169 fi
14170 rm -f conftest*
14171 fi
14172
14173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14174   echo "$ac_t""yes" 1>&6
14175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14176   cat >> confdefs.h <<EOF
14177 #define $ac_tr_func 1
14178 EOF
14179  
14180 else
14181   echo "$ac_t""no" 1>&6
14182 fi
14183 done
14184     
14185   else
14186     
14187   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
14188 echo "configure:14189: checking for _modff declaration" >&5
14189   if test x${glibcpp_cv_func__modff_use+set} != xset; then
14190     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
14191   echo $ac_n "(cached) $ac_c" 1>&6
14192 else
14193   
14194       
14195       ac_ext=C
14196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14197 ac_cpp='$CXXCPP $CPPFLAGS'
14198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14200 cross_compiling=$ac_cv_prog_cxx_cross
14201
14202       cat > conftest.$ac_ext <<EOF
14203 #line 14204 "configure"
14204 #include "confdefs.h"
14205 #include <math.h>
14206 int main() {
14207  _modff(0, 0);
14208 ; return 0; }
14209 EOF
14210 if { (eval echo configure:14211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14211   rm -rf conftest*
14212   glibcpp_cv_func__modff_use=yes
14213 else
14214   echo "configure: failed program was:" >&5
14215   cat conftest.$ac_ext >&5
14216   rm -rf conftest*
14217   glibcpp_cv_func__modff_use=no
14218 fi
14219 rm -f conftest*
14220       ac_ext=c
14221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14222 ac_cpp='$CPP $CPPFLAGS'
14223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14225 cross_compiling=$ac_cv_prog_cc_cross
14226
14227     
14228 fi
14229
14230   fi
14231   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
14232
14233     if test x$glibcpp_cv_func__modff_use = x"yes"; then
14234       for ac_func in _modff
14235 do
14236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14237 echo "configure:14238: checking for $ac_func" >&5
14238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14239   echo $ac_n "(cached) $ac_c" 1>&6
14240 else
14241   cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure"
14243 #include "confdefs.h"
14244 /* System header to define __stub macros and hopefully few prototypes,
14245     which can conflict with char $ac_func(); below.  */
14246 #include <assert.h>
14247 /* Override any gcc2 internal prototype to avoid an error.  */
14248 /* We use char because int might match the return type of a gcc2
14249     builtin and then its argument prototype would still apply.  */
14250 char $ac_func();
14251
14252 int main() {
14253
14254 /* The GNU C library defines this for functions which it implements
14255     to always fail with ENOSYS.  Some functions are actually named
14256     something starting with __ and the normal name is an alias.  */
14257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14258 choke me
14259 #else
14260 $ac_func();
14261 #endif
14262
14263 ; return 0; }
14264 EOF
14265 if { (eval echo configure:14266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14266   rm -rf conftest*
14267   eval "ac_cv_func_$ac_func=yes"
14268 else
14269   echo "configure: failed program was:" >&5
14270   cat conftest.$ac_ext >&5
14271   rm -rf conftest*
14272   eval "ac_cv_func_$ac_func=no"
14273 fi
14274 rm -f conftest*
14275 fi
14276
14277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14278   echo "$ac_t""yes" 1>&6
14279     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14280   cat >> confdefs.h <<EOF
14281 #define $ac_tr_func 1
14282 EOF
14283  
14284 else
14285   echo "$ac_t""no" 1>&6
14286 fi
14287 done
14288     
14289     fi
14290   fi
14291
14292   
14293   
14294   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
14295 echo "configure:14296: checking for powf declaration" >&5
14296   if test x${glibcpp_cv_func_powf_use+set} != xset; then
14297     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
14298   echo $ac_n "(cached) $ac_c" 1>&6
14299 else
14300   
14301       
14302       ac_ext=C
14303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14304 ac_cpp='$CXXCPP $CPPFLAGS'
14305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14307 cross_compiling=$ac_cv_prog_cxx_cross
14308
14309       cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14312 #include <math.h>
14313 int main() {
14314  powf(0, 0);
14315 ; return 0; }
14316 EOF
14317 if { (eval echo configure:14318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14318   rm -rf conftest*
14319   glibcpp_cv_func_powf_use=yes
14320 else
14321   echo "configure: failed program was:" >&5
14322   cat conftest.$ac_ext >&5
14323   rm -rf conftest*
14324   glibcpp_cv_func_powf_use=no
14325 fi
14326 rm -f conftest*
14327       ac_ext=c
14328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14332 cross_compiling=$ac_cv_prog_cc_cross
14333
14334     
14335 fi
14336
14337   fi
14338   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
14339
14340   if test x$glibcpp_cv_func_powf_use = x"yes"; then
14341     for ac_func in powf
14342 do
14343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14344 echo "configure:14345: checking for $ac_func" >&5
14345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14346   echo $ac_n "(cached) $ac_c" 1>&6
14347 else
14348   cat > conftest.$ac_ext <<EOF
14349 #line 14350 "configure"
14350 #include "confdefs.h"
14351 /* System header to define __stub macros and hopefully few prototypes,
14352     which can conflict with char $ac_func(); below.  */
14353 #include <assert.h>
14354 /* Override any gcc2 internal prototype to avoid an error.  */
14355 /* We use char because int might match the return type of a gcc2
14356     builtin and then its argument prototype would still apply.  */
14357 char $ac_func();
14358
14359 int main() {
14360
14361 /* The GNU C library defines this for functions which it implements
14362     to always fail with ENOSYS.  Some functions are actually named
14363     something starting with __ and the normal name is an alias.  */
14364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14365 choke me
14366 #else
14367 $ac_func();
14368 #endif
14369
14370 ; return 0; }
14371 EOF
14372 if { (eval echo configure:14373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14373   rm -rf conftest*
14374   eval "ac_cv_func_$ac_func=yes"
14375 else
14376   echo "configure: failed program was:" >&5
14377   cat conftest.$ac_ext >&5
14378   rm -rf conftest*
14379   eval "ac_cv_func_$ac_func=no"
14380 fi
14381 rm -f conftest*
14382 fi
14383
14384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14385   echo "$ac_t""yes" 1>&6
14386     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14387   cat >> confdefs.h <<EOF
14388 #define $ac_tr_func 1
14389 EOF
14390  
14391 else
14392   echo "$ac_t""no" 1>&6
14393 fi
14394 done
14395     
14396   else
14397     
14398   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
14399 echo "configure:14400: checking for _powf declaration" >&5
14400   if test x${glibcpp_cv_func__powf_use+set} != xset; then
14401     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
14402   echo $ac_n "(cached) $ac_c" 1>&6
14403 else
14404   
14405       
14406       ac_ext=C
14407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14408 ac_cpp='$CXXCPP $CPPFLAGS'
14409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14411 cross_compiling=$ac_cv_prog_cxx_cross
14412
14413       cat > conftest.$ac_ext <<EOF
14414 #line 14415 "configure"
14415 #include "confdefs.h"
14416 #include <math.h>
14417 int main() {
14418  _powf(0, 0);
14419 ; return 0; }
14420 EOF
14421 if { (eval echo configure:14422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14422   rm -rf conftest*
14423   glibcpp_cv_func__powf_use=yes
14424 else
14425   echo "configure: failed program was:" >&5
14426   cat conftest.$ac_ext >&5
14427   rm -rf conftest*
14428   glibcpp_cv_func__powf_use=no
14429 fi
14430 rm -f conftest*
14431       ac_ext=c
14432 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14433 ac_cpp='$CPP $CPPFLAGS'
14434 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14435 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14436 cross_compiling=$ac_cv_prog_cc_cross
14437
14438     
14439 fi
14440
14441   fi
14442   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
14443
14444     if test x$glibcpp_cv_func__powf_use = x"yes"; then
14445       for ac_func in _powf
14446 do
14447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14448 echo "configure:14449: checking for $ac_func" >&5
14449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14450   echo $ac_n "(cached) $ac_c" 1>&6
14451 else
14452   cat > conftest.$ac_ext <<EOF
14453 #line 14454 "configure"
14454 #include "confdefs.h"
14455 /* System header to define __stub macros and hopefully few prototypes,
14456     which can conflict with char $ac_func(); below.  */
14457 #include <assert.h>
14458 /* Override any gcc2 internal prototype to avoid an error.  */
14459 /* We use char because int might match the return type of a gcc2
14460     builtin and then its argument prototype would still apply.  */
14461 char $ac_func();
14462
14463 int main() {
14464
14465 /* The GNU C library defines this for functions which it implements
14466     to always fail with ENOSYS.  Some functions are actually named
14467     something starting with __ and the normal name is an alias.  */
14468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14469 choke me
14470 #else
14471 $ac_func();
14472 #endif
14473
14474 ; return 0; }
14475 EOF
14476 if { (eval echo configure:14477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14477   rm -rf conftest*
14478   eval "ac_cv_func_$ac_func=yes"
14479 else
14480   echo "configure: failed program was:" >&5
14481   cat conftest.$ac_ext >&5
14482   rm -rf conftest*
14483   eval "ac_cv_func_$ac_func=no"
14484 fi
14485 rm -f conftest*
14486 fi
14487
14488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14489   echo "$ac_t""yes" 1>&6
14490     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14491   cat >> confdefs.h <<EOF
14492 #define $ac_tr_func 1
14493 EOF
14494  
14495 else
14496   echo "$ac_t""no" 1>&6
14497 fi
14498 done
14499     
14500     fi
14501   fi
14502
14503   
14504   
14505   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
14506 echo "configure:14507: checking for sqrtf declaration" >&5
14507   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
14508     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
14509   echo $ac_n "(cached) $ac_c" 1>&6
14510 else
14511   
14512       
14513       ac_ext=C
14514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14515 ac_cpp='$CXXCPP $CPPFLAGS'
14516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14518 cross_compiling=$ac_cv_prog_cxx_cross
14519
14520       cat > conftest.$ac_ext <<EOF
14521 #line 14522 "configure"
14522 #include "confdefs.h"
14523 #include <math.h>
14524                       #ifdef HAVE_IEEEFP_H
14525                       #include <ieeefp.h>
14526                       #endif
14527                      
14528 int main() {
14529  sqrtf(0);
14530 ; return 0; }
14531 EOF
14532 if { (eval echo configure:14533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14533   rm -rf conftest*
14534   glibcpp_cv_func_sqrtf_use=yes
14535 else
14536   echo "configure: failed program was:" >&5
14537   cat conftest.$ac_ext >&5
14538   rm -rf conftest*
14539   glibcpp_cv_func_sqrtf_use=no
14540 fi
14541 rm -f conftest*
14542       ac_ext=c
14543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14544 ac_cpp='$CPP $CPPFLAGS'
14545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14547 cross_compiling=$ac_cv_prog_cc_cross
14548
14549     
14550 fi
14551
14552   fi
14553   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
14554
14555   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
14556     for ac_func in sqrtf
14557 do
14558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14559 echo "configure:14560: checking for $ac_func" >&5
14560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14561   echo $ac_n "(cached) $ac_c" 1>&6
14562 else
14563   cat > conftest.$ac_ext <<EOF
14564 #line 14565 "configure"
14565 #include "confdefs.h"
14566 /* System header to define __stub macros and hopefully few prototypes,
14567     which can conflict with char $ac_func(); below.  */
14568 #include <assert.h>
14569 /* Override any gcc2 internal prototype to avoid an error.  */
14570 /* We use char because int might match the return type of a gcc2
14571     builtin and then its argument prototype would still apply.  */
14572 char $ac_func();
14573
14574 int main() {
14575
14576 /* The GNU C library defines this for functions which it implements
14577     to always fail with ENOSYS.  Some functions are actually named
14578     something starting with __ and the normal name is an alias.  */
14579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14580 choke me
14581 #else
14582 $ac_func();
14583 #endif
14584
14585 ; return 0; }
14586 EOF
14587 if { (eval echo configure:14588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14588   rm -rf conftest*
14589   eval "ac_cv_func_$ac_func=yes"
14590 else
14591   echo "configure: failed program was:" >&5
14592   cat conftest.$ac_ext >&5
14593   rm -rf conftest*
14594   eval "ac_cv_func_$ac_func=no"
14595 fi
14596 rm -f conftest*
14597 fi
14598
14599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14600   echo "$ac_t""yes" 1>&6
14601     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14602   cat >> confdefs.h <<EOF
14603 #define $ac_tr_func 1
14604 EOF
14605  
14606 else
14607   echo "$ac_t""no" 1>&6
14608 fi
14609 done
14610     
14611   else
14612     
14613   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
14614 echo "configure:14615: checking for _sqrtf declaration" >&5
14615   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
14616     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
14617   echo $ac_n "(cached) $ac_c" 1>&6
14618 else
14619   
14620       
14621       ac_ext=C
14622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14623 ac_cpp='$CXXCPP $CPPFLAGS'
14624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14626 cross_compiling=$ac_cv_prog_cxx_cross
14627
14628       cat > conftest.$ac_ext <<EOF
14629 #line 14630 "configure"
14630 #include "confdefs.h"
14631 #include <math.h>
14632                       #ifdef HAVE_IEEEFP_H
14633                       #include <ieeefp.h>
14634                       #endif
14635                      
14636 int main() {
14637  _sqrtf(0);
14638 ; return 0; }
14639 EOF
14640 if { (eval echo configure:14641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14641   rm -rf conftest*
14642   glibcpp_cv_func__sqrtf_use=yes
14643 else
14644   echo "configure: failed program was:" >&5
14645   cat conftest.$ac_ext >&5
14646   rm -rf conftest*
14647   glibcpp_cv_func__sqrtf_use=no
14648 fi
14649 rm -f conftest*
14650       ac_ext=c
14651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14652 ac_cpp='$CPP $CPPFLAGS'
14653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14655 cross_compiling=$ac_cv_prog_cc_cross
14656
14657     
14658 fi
14659
14660   fi
14661   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
14662
14663     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
14664       for ac_func in _sqrtf
14665 do
14666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14667 echo "configure:14668: checking for $ac_func" >&5
14668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14669   echo $ac_n "(cached) $ac_c" 1>&6
14670 else
14671   cat > conftest.$ac_ext <<EOF
14672 #line 14673 "configure"
14673 #include "confdefs.h"
14674 /* System header to define __stub macros and hopefully few prototypes,
14675     which can conflict with char $ac_func(); below.  */
14676 #include <assert.h>
14677 /* Override any gcc2 internal prototype to avoid an error.  */
14678 /* We use char because int might match the return type of a gcc2
14679     builtin and then its argument prototype would still apply.  */
14680 char $ac_func();
14681
14682 int main() {
14683
14684 /* The GNU C library defines this for functions which it implements
14685     to always fail with ENOSYS.  Some functions are actually named
14686     something starting with __ and the normal name is an alias.  */
14687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14688 choke me
14689 #else
14690 $ac_func();
14691 #endif
14692
14693 ; return 0; }
14694 EOF
14695 if { (eval echo configure:14696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14696   rm -rf conftest*
14697   eval "ac_cv_func_$ac_func=yes"
14698 else
14699   echo "configure: failed program was:" >&5
14700   cat conftest.$ac_ext >&5
14701   rm -rf conftest*
14702   eval "ac_cv_func_$ac_func=no"
14703 fi
14704 rm -f conftest*
14705 fi
14706
14707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14708   echo "$ac_t""yes" 1>&6
14709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14710   cat >> confdefs.h <<EOF
14711 #define $ac_tr_func 1
14712 EOF
14713  
14714 else
14715   echo "$ac_t""no" 1>&6
14716 fi
14717 done
14718     
14719     fi
14720   fi
14721
14722   
14723   
14724   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
14725 echo "configure:14726: checking for sincosf declaration" >&5
14726   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
14727     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
14728   echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730   
14731       
14732       ac_ext=C
14733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14734 ac_cpp='$CXXCPP $CPPFLAGS'
14735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14737 cross_compiling=$ac_cv_prog_cxx_cross
14738
14739       cat > conftest.$ac_ext <<EOF
14740 #line 14741 "configure"
14741 #include "confdefs.h"
14742 #include <math.h>
14743 int main() {
14744  sincosf(0, 0, 0);
14745 ; return 0; }
14746 EOF
14747 if { (eval echo configure:14748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14748   rm -rf conftest*
14749   glibcpp_cv_func_sincosf_use=yes
14750 else
14751   echo "configure: failed program was:" >&5
14752   cat conftest.$ac_ext >&5
14753   rm -rf conftest*
14754   glibcpp_cv_func_sincosf_use=no
14755 fi
14756 rm -f conftest*
14757       ac_ext=c
14758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14759 ac_cpp='$CPP $CPPFLAGS'
14760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14762 cross_compiling=$ac_cv_prog_cc_cross
14763
14764     
14765 fi
14766
14767   fi
14768   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
14769
14770   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
14771     for ac_func in sincosf
14772 do
14773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14774 echo "configure:14775: checking for $ac_func" >&5
14775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14776   echo $ac_n "(cached) $ac_c" 1>&6
14777 else
14778   cat > conftest.$ac_ext <<EOF
14779 #line 14780 "configure"
14780 #include "confdefs.h"
14781 /* System header to define __stub macros and hopefully few prototypes,
14782     which can conflict with char $ac_func(); below.  */
14783 #include <assert.h>
14784 /* Override any gcc2 internal prototype to avoid an error.  */
14785 /* We use char because int might match the return type of a gcc2
14786     builtin and then its argument prototype would still apply.  */
14787 char $ac_func();
14788
14789 int main() {
14790
14791 /* The GNU C library defines this for functions which it implements
14792     to always fail with ENOSYS.  Some functions are actually named
14793     something starting with __ and the normal name is an alias.  */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14795 choke me
14796 #else
14797 $ac_func();
14798 #endif
14799
14800 ; return 0; }
14801 EOF
14802 if { (eval echo configure:14803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14803   rm -rf conftest*
14804   eval "ac_cv_func_$ac_func=yes"
14805 else
14806   echo "configure: failed program was:" >&5
14807   cat conftest.$ac_ext >&5
14808   rm -rf conftest*
14809   eval "ac_cv_func_$ac_func=no"
14810 fi
14811 rm -f conftest*
14812 fi
14813
14814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14815   echo "$ac_t""yes" 1>&6
14816     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14817   cat >> confdefs.h <<EOF
14818 #define $ac_tr_func 1
14819 EOF
14820  
14821 else
14822   echo "$ac_t""no" 1>&6
14823 fi
14824 done
14825     
14826   else
14827     
14828   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
14829 echo "configure:14830: checking for _sincosf declaration" >&5
14830   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
14831     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
14832   echo $ac_n "(cached) $ac_c" 1>&6
14833 else
14834   
14835       
14836       ac_ext=C
14837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14838 ac_cpp='$CXXCPP $CPPFLAGS'
14839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14841 cross_compiling=$ac_cv_prog_cxx_cross
14842
14843       cat > conftest.$ac_ext <<EOF
14844 #line 14845 "configure"
14845 #include "confdefs.h"
14846 #include <math.h>
14847 int main() {
14848  _sincosf(0, 0, 0);
14849 ; return 0; }
14850 EOF
14851 if { (eval echo configure:14852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14852   rm -rf conftest*
14853   glibcpp_cv_func__sincosf_use=yes
14854 else
14855   echo "configure: failed program was:" >&5
14856   cat conftest.$ac_ext >&5
14857   rm -rf conftest*
14858   glibcpp_cv_func__sincosf_use=no
14859 fi
14860 rm -f conftest*
14861       ac_ext=c
14862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14863 ac_cpp='$CPP $CPPFLAGS'
14864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14866 cross_compiling=$ac_cv_prog_cc_cross
14867
14868     
14869 fi
14870
14871   fi
14872   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
14873
14874     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
14875       for ac_func in _sincosf
14876 do
14877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14878 echo "configure:14879: checking for $ac_func" >&5
14879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14880   echo $ac_n "(cached) $ac_c" 1>&6
14881 else
14882   cat > conftest.$ac_ext <<EOF
14883 #line 14884 "configure"
14884 #include "confdefs.h"
14885 /* System header to define __stub macros and hopefully few prototypes,
14886     which can conflict with char $ac_func(); below.  */
14887 #include <assert.h>
14888 /* Override any gcc2 internal prototype to avoid an error.  */
14889 /* We use char because int might match the return type of a gcc2
14890     builtin and then its argument prototype would still apply.  */
14891 char $ac_func();
14892
14893 int main() {
14894
14895 /* The GNU C library defines this for functions which it implements
14896     to always fail with ENOSYS.  Some functions are actually named
14897     something starting with __ and the normal name is an alias.  */
14898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14899 choke me
14900 #else
14901 $ac_func();
14902 #endif
14903
14904 ; return 0; }
14905 EOF
14906 if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14907   rm -rf conftest*
14908   eval "ac_cv_func_$ac_func=yes"
14909 else
14910   echo "configure: failed program was:" >&5
14911   cat conftest.$ac_ext >&5
14912   rm -rf conftest*
14913   eval "ac_cv_func_$ac_func=no"
14914 fi
14915 rm -f conftest*
14916 fi
14917
14918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14919   echo "$ac_t""yes" 1>&6
14920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14921   cat >> confdefs.h <<EOF
14922 #define $ac_tr_func 1
14923 EOF
14924  
14925 else
14926   echo "$ac_t""no" 1>&6
14927 fi
14928 done
14929     
14930     fi
14931   fi
14932
14933   
14934   
14935   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
14936 echo "configure:14937: checking for finitef declaration" >&5
14937   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
14938     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
14939   echo $ac_n "(cached) $ac_c" 1>&6
14940 else
14941   
14942       
14943       ac_ext=C
14944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14945 ac_cpp='$CXXCPP $CPPFLAGS'
14946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14948 cross_compiling=$ac_cv_prog_cxx_cross
14949
14950       cat > conftest.$ac_ext <<EOF
14951 #line 14952 "configure"
14952 #include "confdefs.h"
14953 #include <math.h>
14954                       #ifdef HAVE_IEEEFP_H
14955                       #include <ieeefp.h>
14956                       #endif
14957                      
14958 int main() {
14959  finitef(0);
14960 ; return 0; }
14961 EOF
14962 if { (eval echo configure:14963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14963   rm -rf conftest*
14964   glibcpp_cv_func_finitef_use=yes
14965 else
14966   echo "configure: failed program was:" >&5
14967   cat conftest.$ac_ext >&5
14968   rm -rf conftest*
14969   glibcpp_cv_func_finitef_use=no
14970 fi
14971 rm -f conftest*
14972       ac_ext=c
14973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14974 ac_cpp='$CPP $CPPFLAGS'
14975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14977 cross_compiling=$ac_cv_prog_cc_cross
14978
14979     
14980 fi
14981
14982   fi
14983   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
14984
14985   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
14986     for ac_func in finitef
14987 do
14988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14989 echo "configure:14990: checking for $ac_func" >&5
14990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14991   echo $ac_n "(cached) $ac_c" 1>&6
14992 else
14993   cat > conftest.$ac_ext <<EOF
14994 #line 14995 "configure"
14995 #include "confdefs.h"
14996 /* System header to define __stub macros and hopefully few prototypes,
14997     which can conflict with char $ac_func(); below.  */
14998 #include <assert.h>
14999 /* Override any gcc2 internal prototype to avoid an error.  */
15000 /* We use char because int might match the return type of a gcc2
15001     builtin and then its argument prototype would still apply.  */
15002 char $ac_func();
15003
15004 int main() {
15005
15006 /* The GNU C library defines this for functions which it implements
15007     to always fail with ENOSYS.  Some functions are actually named
15008     something starting with __ and the normal name is an alias.  */
15009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15010 choke me
15011 #else
15012 $ac_func();
15013 #endif
15014
15015 ; return 0; }
15016 EOF
15017 if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15018   rm -rf conftest*
15019   eval "ac_cv_func_$ac_func=yes"
15020 else
15021   echo "configure: failed program was:" >&5
15022   cat conftest.$ac_ext >&5
15023   rm -rf conftest*
15024   eval "ac_cv_func_$ac_func=no"
15025 fi
15026 rm -f conftest*
15027 fi
15028
15029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15030   echo "$ac_t""yes" 1>&6
15031     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15032   cat >> confdefs.h <<EOF
15033 #define $ac_tr_func 1
15034 EOF
15035  
15036 else
15037   echo "$ac_t""no" 1>&6
15038 fi
15039 done
15040     
15041   else
15042     
15043   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15044 echo "configure:15045: checking for _finitef declaration" >&5
15045   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15046     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15047   echo $ac_n "(cached) $ac_c" 1>&6
15048 else
15049   
15050       
15051       ac_ext=C
15052 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15053 ac_cpp='$CXXCPP $CPPFLAGS'
15054 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15055 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15056 cross_compiling=$ac_cv_prog_cxx_cross
15057
15058       cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 #include <math.h>
15062                       #ifdef HAVE_IEEEFP_H
15063                       #include <ieeefp.h>
15064                       #endif
15065                      
15066 int main() {
15067  _finitef(0);
15068 ; return 0; }
15069 EOF
15070 if { (eval echo configure:15071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15071   rm -rf conftest*
15072   glibcpp_cv_func__finitef_use=yes
15073 else
15074   echo "configure: failed program was:" >&5
15075   cat conftest.$ac_ext >&5
15076   rm -rf conftest*
15077   glibcpp_cv_func__finitef_use=no
15078 fi
15079 rm -f conftest*
15080       ac_ext=c
15081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15082 ac_cpp='$CPP $CPPFLAGS'
15083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15085 cross_compiling=$ac_cv_prog_cc_cross
15086
15087     
15088 fi
15089
15090   fi
15091   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
15092
15093     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
15094       for ac_func in _finitef
15095 do
15096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15097 echo "configure:15098: checking for $ac_func" >&5
15098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15099   echo $ac_n "(cached) $ac_c" 1>&6
15100 else
15101   cat > conftest.$ac_ext <<EOF
15102 #line 15103 "configure"
15103 #include "confdefs.h"
15104 /* System header to define __stub macros and hopefully few prototypes,
15105     which can conflict with char $ac_func(); below.  */
15106 #include <assert.h>
15107 /* Override any gcc2 internal prototype to avoid an error.  */
15108 /* We use char because int might match the return type of a gcc2
15109     builtin and then its argument prototype would still apply.  */
15110 char $ac_func();
15111
15112 int main() {
15113
15114 /* The GNU C library defines this for functions which it implements
15115     to always fail with ENOSYS.  Some functions are actually named
15116     something starting with __ and the normal name is an alias.  */
15117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15118 choke me
15119 #else
15120 $ac_func();
15121 #endif
15122
15123 ; return 0; }
15124 EOF
15125 if { (eval echo configure:15126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15126   rm -rf conftest*
15127   eval "ac_cv_func_$ac_func=yes"
15128 else
15129   echo "configure: failed program was:" >&5
15130   cat conftest.$ac_ext >&5
15131   rm -rf conftest*
15132   eval "ac_cv_func_$ac_func=no"
15133 fi
15134 rm -f conftest*
15135 fi
15136
15137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15138   echo "$ac_t""yes" 1>&6
15139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15140   cat >> confdefs.h <<EOF
15141 #define $ac_tr_func 1
15142 EOF
15143  
15144 else
15145   echo "$ac_t""no" 1>&6
15146 fi
15147 done
15148     
15149     fi
15150   fi
15151
15152
15153     
15154   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
15155 echo "configure:15156: checking for long double trig functions" >&5
15156   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
15157   echo $ac_n "(cached) $ac_c" 1>&6
15158 else
15159   
15160     
15161     ac_ext=C
15162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15163 ac_cpp='$CXXCPP $CPPFLAGS'
15164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15166 cross_compiling=$ac_cv_prog_cxx_cross
15167
15168     cat > conftest.$ac_ext <<EOF
15169 #line 15170 "configure"
15170 #include "confdefs.h"
15171 #include <math.h>
15172 int main() {
15173  `for x in acosl asinl atanl \
15174                                           cosl sinl tanl \
15175                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
15176 ; return 0; }
15177 EOF
15178 if { (eval echo configure:15179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15179   rm -rf conftest*
15180   glibcpp_cv_func_long_double_trig_use=yes
15181 else
15182   echo "configure: failed program was:" >&5
15183   cat conftest.$ac_ext >&5
15184   rm -rf conftest*
15185   glibcpp_cv_func_long_double_trig_use=no
15186 fi
15187 rm -f conftest*
15188     ac_ext=c
15189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15190 ac_cpp='$CPP $CPPFLAGS'
15191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15193 cross_compiling=$ac_cv_prog_cc_cross
15194
15195 fi
15196
15197   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
15198   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
15199     for ac_func in acosl asinl atanl \
15200                                           cosl sinl tanl \
15201                                           coshl sinhl tanhl
15202 do
15203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15204 echo "configure:15205: checking for $ac_func" >&5
15205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15206   echo $ac_n "(cached) $ac_c" 1>&6
15207 else
15208   cat > conftest.$ac_ext <<EOF
15209 #line 15210 "configure"
15210 #include "confdefs.h"
15211 /* System header to define __stub macros and hopefully few prototypes,
15212     which can conflict with char $ac_func(); below.  */
15213 #include <assert.h>
15214 /* Override any gcc2 internal prototype to avoid an error.  */
15215 /* We use char because int might match the return type of a gcc2
15216     builtin and then its argument prototype would still apply.  */
15217 char $ac_func();
15218
15219 int main() {
15220
15221 /* The GNU C library defines this for functions which it implements
15222     to always fail with ENOSYS.  Some functions are actually named
15223     something starting with __ and the normal name is an alias.  */
15224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15225 choke me
15226 #else
15227 $ac_func();
15228 #endif
15229
15230 ; return 0; }
15231 EOF
15232 if { (eval echo configure:15233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15233   rm -rf conftest*
15234   eval "ac_cv_func_$ac_func=yes"
15235 else
15236   echo "configure: failed program was:" >&5
15237   cat conftest.$ac_ext >&5
15238   rm -rf conftest*
15239   eval "ac_cv_func_$ac_func=no"
15240 fi
15241 rm -f conftest*
15242 fi
15243
15244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15245   echo "$ac_t""yes" 1>&6
15246     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15247   cat >> confdefs.h <<EOF
15248 #define $ac_tr_func 1
15249 EOF
15250  
15251 else
15252   echo "$ac_t""no" 1>&6
15253 fi
15254 done
15255
15256   fi
15257
15258   
15259   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
15260 echo "configure:15261: checking for long double round functions" >&5
15261   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
15262   echo $ac_n "(cached) $ac_c" 1>&6
15263 else
15264   
15265     
15266     ac_ext=C
15267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15268 ac_cpp='$CXXCPP $CPPFLAGS'
15269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15271 cross_compiling=$ac_cv_prog_cxx_cross
15272
15273     cat > conftest.$ac_ext <<EOF
15274 #line 15275 "configure"
15275 #include "confdefs.h"
15276 #include <math.h>
15277 int main() {
15278  `for x in ceill floorl; do echo "$x (0);"; done` 
15279 ; return 0; }
15280 EOF
15281 if { (eval echo configure:15282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15282   rm -rf conftest*
15283   glibcpp_cv_func_long_double_round_use=yes
15284 else
15285   echo "configure: failed program was:" >&5
15286   cat conftest.$ac_ext >&5
15287   rm -rf conftest*
15288   glibcpp_cv_func_long_double_round_use=no
15289 fi
15290 rm -f conftest*
15291     ac_ext=c
15292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15293 ac_cpp='$CPP $CPPFLAGS'
15294 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15295 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15296 cross_compiling=$ac_cv_prog_cc_cross
15297
15298 fi
15299
15300   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
15301   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
15302     for ac_func in ceill floorl
15303 do
15304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15305 echo "configure:15306: checking for $ac_func" >&5
15306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15307   echo $ac_n "(cached) $ac_c" 1>&6
15308 else
15309   cat > conftest.$ac_ext <<EOF
15310 #line 15311 "configure"
15311 #include "confdefs.h"
15312 /* System header to define __stub macros and hopefully few prototypes,
15313     which can conflict with char $ac_func(); below.  */
15314 #include <assert.h>
15315 /* Override any gcc2 internal prototype to avoid an error.  */
15316 /* We use char because int might match the return type of a gcc2
15317     builtin and then its argument prototype would still apply.  */
15318 char $ac_func();
15319
15320 int main() {
15321
15322 /* The GNU C library defines this for functions which it implements
15323     to always fail with ENOSYS.  Some functions are actually named
15324     something starting with __ and the normal name is an alias.  */
15325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15326 choke me
15327 #else
15328 $ac_func();
15329 #endif
15330
15331 ; return 0; }
15332 EOF
15333 if { (eval echo configure:15334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15334   rm -rf conftest*
15335   eval "ac_cv_func_$ac_func=yes"
15336 else
15337   echo "configure: failed program was:" >&5
15338   cat conftest.$ac_ext >&5
15339   rm -rf conftest*
15340   eval "ac_cv_func_$ac_func=no"
15341 fi
15342 rm -f conftest*
15343 fi
15344
15345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15346   echo "$ac_t""yes" 1>&6
15347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15348   cat >> confdefs.h <<EOF
15349 #define $ac_tr_func 1
15350 EOF
15351  
15352 else
15353   echo "$ac_t""no" 1>&6
15354 fi
15355 done
15356
15357   fi
15358
15359   
15360   
15361   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
15362 echo "configure:15363: checking for isnanl declaration" >&5
15363   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
15364     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
15365   echo $ac_n "(cached) $ac_c" 1>&6
15366 else
15367   
15368       
15369       ac_ext=C
15370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15371 ac_cpp='$CXXCPP $CPPFLAGS'
15372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15374 cross_compiling=$ac_cv_prog_cxx_cross
15375
15376       cat > conftest.$ac_ext <<EOF
15377 #line 15378 "configure"
15378 #include "confdefs.h"
15379 #include <math.h>
15380                       #ifdef HAVE_IEEEFP_H
15381                       #include <ieeefp.h>
15382                       #endif
15383                      
15384 int main() {
15385  isnanl(0);
15386 ; return 0; }
15387 EOF
15388 if { (eval echo configure:15389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15389   rm -rf conftest*
15390   glibcpp_cv_func_isnanl_use=yes
15391 else
15392   echo "configure: failed program was:" >&5
15393   cat conftest.$ac_ext >&5
15394   rm -rf conftest*
15395   glibcpp_cv_func_isnanl_use=no
15396 fi
15397 rm -f conftest*
15398       ac_ext=c
15399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15400 ac_cpp='$CPP $CPPFLAGS'
15401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15403 cross_compiling=$ac_cv_prog_cc_cross
15404
15405     
15406 fi
15407
15408   fi
15409   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
15410
15411   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
15412     for ac_func in isnanl
15413 do
15414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15415 echo "configure:15416: checking for $ac_func" >&5
15416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15417   echo $ac_n "(cached) $ac_c" 1>&6
15418 else
15419   cat > conftest.$ac_ext <<EOF
15420 #line 15421 "configure"
15421 #include "confdefs.h"
15422 /* System header to define __stub macros and hopefully few prototypes,
15423     which can conflict with char $ac_func(); below.  */
15424 #include <assert.h>
15425 /* Override any gcc2 internal prototype to avoid an error.  */
15426 /* We use char because int might match the return type of a gcc2
15427     builtin and then its argument prototype would still apply.  */
15428 char $ac_func();
15429
15430 int main() {
15431
15432 /* The GNU C library defines this for functions which it implements
15433     to always fail with ENOSYS.  Some functions are actually named
15434     something starting with __ and the normal name is an alias.  */
15435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15436 choke me
15437 #else
15438 $ac_func();
15439 #endif
15440
15441 ; return 0; }
15442 EOF
15443 if { (eval echo configure:15444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15444   rm -rf conftest*
15445   eval "ac_cv_func_$ac_func=yes"
15446 else
15447   echo "configure: failed program was:" >&5
15448   cat conftest.$ac_ext >&5
15449   rm -rf conftest*
15450   eval "ac_cv_func_$ac_func=no"
15451 fi
15452 rm -f conftest*
15453 fi
15454
15455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15456   echo "$ac_t""yes" 1>&6
15457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15458   cat >> confdefs.h <<EOF
15459 #define $ac_tr_func 1
15460 EOF
15461  
15462 else
15463   echo "$ac_t""no" 1>&6
15464 fi
15465 done
15466     
15467   else
15468     
15469   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
15470 echo "configure:15471: checking for _isnanl declaration" >&5
15471   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
15472     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
15473   echo $ac_n "(cached) $ac_c" 1>&6
15474 else
15475   
15476       
15477       ac_ext=C
15478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15479 ac_cpp='$CXXCPP $CPPFLAGS'
15480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15482 cross_compiling=$ac_cv_prog_cxx_cross
15483
15484       cat > conftest.$ac_ext <<EOF
15485 #line 15486 "configure"
15486 #include "confdefs.h"
15487 #include <math.h>
15488                       #ifdef HAVE_IEEEFP_H
15489                       #include <ieeefp.h>
15490                       #endif
15491                      
15492 int main() {
15493  _isnanl(0);
15494 ; return 0; }
15495 EOF
15496 if { (eval echo configure:15497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15497   rm -rf conftest*
15498   glibcpp_cv_func__isnanl_use=yes
15499 else
15500   echo "configure: failed program was:" >&5
15501   cat conftest.$ac_ext >&5
15502   rm -rf conftest*
15503   glibcpp_cv_func__isnanl_use=no
15504 fi
15505 rm -f conftest*
15506       ac_ext=c
15507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15508 ac_cpp='$CPP $CPPFLAGS'
15509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15511 cross_compiling=$ac_cv_prog_cc_cross
15512
15513     
15514 fi
15515
15516   fi
15517   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
15518
15519     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
15520       for ac_func in _isnanl
15521 do
15522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15523 echo "configure:15524: checking for $ac_func" >&5
15524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15525   echo $ac_n "(cached) $ac_c" 1>&6
15526 else
15527   cat > conftest.$ac_ext <<EOF
15528 #line 15529 "configure"
15529 #include "confdefs.h"
15530 /* System header to define __stub macros and hopefully few prototypes,
15531     which can conflict with char $ac_func(); below.  */
15532 #include <assert.h>
15533 /* Override any gcc2 internal prototype to avoid an error.  */
15534 /* We use char because int might match the return type of a gcc2
15535     builtin and then its argument prototype would still apply.  */
15536 char $ac_func();
15537
15538 int main() {
15539
15540 /* The GNU C library defines this for functions which it implements
15541     to always fail with ENOSYS.  Some functions are actually named
15542     something starting with __ and the normal name is an alias.  */
15543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15544 choke me
15545 #else
15546 $ac_func();
15547 #endif
15548
15549 ; return 0; }
15550 EOF
15551 if { (eval echo configure:15552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15552   rm -rf conftest*
15553   eval "ac_cv_func_$ac_func=yes"
15554 else
15555   echo "configure: failed program was:" >&5
15556   cat conftest.$ac_ext >&5
15557   rm -rf conftest*
15558   eval "ac_cv_func_$ac_func=no"
15559 fi
15560 rm -f conftest*
15561 fi
15562
15563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15564   echo "$ac_t""yes" 1>&6
15565     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15566   cat >> confdefs.h <<EOF
15567 #define $ac_tr_func 1
15568 EOF
15569  
15570 else
15571   echo "$ac_t""no" 1>&6
15572 fi
15573 done
15574     
15575     fi
15576   fi
15577
15578   
15579   
15580   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
15581 echo "configure:15582: checking for isinfl declaration" >&5
15582   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
15583     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
15584   echo $ac_n "(cached) $ac_c" 1>&6
15585 else
15586   
15587       
15588       ac_ext=C
15589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15590 ac_cpp='$CXXCPP $CPPFLAGS'
15591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15593 cross_compiling=$ac_cv_prog_cxx_cross
15594
15595       cat > conftest.$ac_ext <<EOF
15596 #line 15597 "configure"
15597 #include "confdefs.h"
15598 #include <math.h>
15599                       #ifdef HAVE_IEEEFP_H
15600                       #include <ieeefp.h>
15601                       #endif
15602                      
15603 int main() {
15604  isinfl(0);
15605 ; return 0; }
15606 EOF
15607 if { (eval echo configure:15608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15608   rm -rf conftest*
15609   glibcpp_cv_func_isinfl_use=yes
15610 else
15611   echo "configure: failed program was:" >&5
15612   cat conftest.$ac_ext >&5
15613   rm -rf conftest*
15614   glibcpp_cv_func_isinfl_use=no
15615 fi
15616 rm -f conftest*
15617       ac_ext=c
15618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15619 ac_cpp='$CPP $CPPFLAGS'
15620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15622 cross_compiling=$ac_cv_prog_cc_cross
15623
15624     
15625 fi
15626
15627   fi
15628   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
15629
15630   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
15631     for ac_func in isinfl
15632 do
15633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15634 echo "configure:15635: checking for $ac_func" >&5
15635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15636   echo $ac_n "(cached) $ac_c" 1>&6
15637 else
15638   cat > conftest.$ac_ext <<EOF
15639 #line 15640 "configure"
15640 #include "confdefs.h"
15641 /* System header to define __stub macros and hopefully few prototypes,
15642     which can conflict with char $ac_func(); below.  */
15643 #include <assert.h>
15644 /* Override any gcc2 internal prototype to avoid an error.  */
15645 /* We use char because int might match the return type of a gcc2
15646     builtin and then its argument prototype would still apply.  */
15647 char $ac_func();
15648
15649 int main() {
15650
15651 /* The GNU C library defines this for functions which it implements
15652     to always fail with ENOSYS.  Some functions are actually named
15653     something starting with __ and the normal name is an alias.  */
15654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15655 choke me
15656 #else
15657 $ac_func();
15658 #endif
15659
15660 ; return 0; }
15661 EOF
15662 if { (eval echo configure:15663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15663   rm -rf conftest*
15664   eval "ac_cv_func_$ac_func=yes"
15665 else
15666   echo "configure: failed program was:" >&5
15667   cat conftest.$ac_ext >&5
15668   rm -rf conftest*
15669   eval "ac_cv_func_$ac_func=no"
15670 fi
15671 rm -f conftest*
15672 fi
15673
15674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15675   echo "$ac_t""yes" 1>&6
15676     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15677   cat >> confdefs.h <<EOF
15678 #define $ac_tr_func 1
15679 EOF
15680  
15681 else
15682   echo "$ac_t""no" 1>&6
15683 fi
15684 done
15685     
15686   else
15687     
15688   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
15689 echo "configure:15690: checking for _isinfl declaration" >&5
15690   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
15691     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
15692   echo $ac_n "(cached) $ac_c" 1>&6
15693 else
15694   
15695       
15696       ac_ext=C
15697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15698 ac_cpp='$CXXCPP $CPPFLAGS'
15699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15701 cross_compiling=$ac_cv_prog_cxx_cross
15702
15703       cat > conftest.$ac_ext <<EOF
15704 #line 15705 "configure"
15705 #include "confdefs.h"
15706 #include <math.h>
15707                       #ifdef HAVE_IEEEFP_H
15708                       #include <ieeefp.h>
15709                       #endif
15710                      
15711 int main() {
15712  _isinfl(0);
15713 ; return 0; }
15714 EOF
15715 if { (eval echo configure:15716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15716   rm -rf conftest*
15717   glibcpp_cv_func__isinfl_use=yes
15718 else
15719   echo "configure: failed program was:" >&5
15720   cat conftest.$ac_ext >&5
15721   rm -rf conftest*
15722   glibcpp_cv_func__isinfl_use=no
15723 fi
15724 rm -f conftest*
15725       ac_ext=c
15726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15727 ac_cpp='$CPP $CPPFLAGS'
15728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15730 cross_compiling=$ac_cv_prog_cc_cross
15731
15732     
15733 fi
15734
15735   fi
15736   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
15737
15738     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
15739       for ac_func in _isinfl
15740 do
15741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15742 echo "configure:15743: checking for $ac_func" >&5
15743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15744   echo $ac_n "(cached) $ac_c" 1>&6
15745 else
15746   cat > conftest.$ac_ext <<EOF
15747 #line 15748 "configure"
15748 #include "confdefs.h"
15749 /* System header to define __stub macros and hopefully few prototypes,
15750     which can conflict with char $ac_func(); below.  */
15751 #include <assert.h>
15752 /* Override any gcc2 internal prototype to avoid an error.  */
15753 /* We use char because int might match the return type of a gcc2
15754     builtin and then its argument prototype would still apply.  */
15755 char $ac_func();
15756
15757 int main() {
15758
15759 /* The GNU C library defines this for functions which it implements
15760     to always fail with ENOSYS.  Some functions are actually named
15761     something starting with __ and the normal name is an alias.  */
15762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15763 choke me
15764 #else
15765 $ac_func();
15766 #endif
15767
15768 ; return 0; }
15769 EOF
15770 if { (eval echo configure:15771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15771   rm -rf conftest*
15772   eval "ac_cv_func_$ac_func=yes"
15773 else
15774   echo "configure: failed program was:" >&5
15775   cat conftest.$ac_ext >&5
15776   rm -rf conftest*
15777   eval "ac_cv_func_$ac_func=no"
15778 fi
15779 rm -f conftest*
15780 fi
15781
15782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15783   echo "$ac_t""yes" 1>&6
15784     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15785   cat >> confdefs.h <<EOF
15786 #define $ac_tr_func 1
15787 EOF
15788  
15789 else
15790   echo "$ac_t""no" 1>&6
15791 fi
15792 done
15793     
15794     fi
15795   fi
15796
15797   
15798   
15799   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
15800 echo "configure:15801: checking for copysignl declaration" >&5
15801   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
15802     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
15803   echo $ac_n "(cached) $ac_c" 1>&6
15804 else
15805   
15806       
15807       ac_ext=C
15808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15809 ac_cpp='$CXXCPP $CPPFLAGS'
15810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15812 cross_compiling=$ac_cv_prog_cxx_cross
15813
15814       cat > conftest.$ac_ext <<EOF
15815 #line 15816 "configure"
15816 #include "confdefs.h"
15817 #include <math.h>
15818 int main() {
15819  copysignl(0, 0);
15820 ; return 0; }
15821 EOF
15822 if { (eval echo configure:15823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15823   rm -rf conftest*
15824   glibcpp_cv_func_copysignl_use=yes
15825 else
15826   echo "configure: failed program was:" >&5
15827   cat conftest.$ac_ext >&5
15828   rm -rf conftest*
15829   glibcpp_cv_func_copysignl_use=no
15830 fi
15831 rm -f conftest*
15832       ac_ext=c
15833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15834 ac_cpp='$CPP $CPPFLAGS'
15835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15837 cross_compiling=$ac_cv_prog_cc_cross
15838
15839     
15840 fi
15841
15842   fi
15843   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
15844
15845   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
15846     for ac_func in copysignl
15847 do
15848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15849 echo "configure:15850: checking for $ac_func" >&5
15850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15851   echo $ac_n "(cached) $ac_c" 1>&6
15852 else
15853   cat > conftest.$ac_ext <<EOF
15854 #line 15855 "configure"
15855 #include "confdefs.h"
15856 /* System header to define __stub macros and hopefully few prototypes,
15857     which can conflict with char $ac_func(); below.  */
15858 #include <assert.h>
15859 /* Override any gcc2 internal prototype to avoid an error.  */
15860 /* We use char because int might match the return type of a gcc2
15861     builtin and then its argument prototype would still apply.  */
15862 char $ac_func();
15863
15864 int main() {
15865
15866 /* The GNU C library defines this for functions which it implements
15867     to always fail with ENOSYS.  Some functions are actually named
15868     something starting with __ and the normal name is an alias.  */
15869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15870 choke me
15871 #else
15872 $ac_func();
15873 #endif
15874
15875 ; return 0; }
15876 EOF
15877 if { (eval echo configure:15878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15878   rm -rf conftest*
15879   eval "ac_cv_func_$ac_func=yes"
15880 else
15881   echo "configure: failed program was:" >&5
15882   cat conftest.$ac_ext >&5
15883   rm -rf conftest*
15884   eval "ac_cv_func_$ac_func=no"
15885 fi
15886 rm -f conftest*
15887 fi
15888
15889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15890   echo "$ac_t""yes" 1>&6
15891     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15892   cat >> confdefs.h <<EOF
15893 #define $ac_tr_func 1
15894 EOF
15895  
15896 else
15897   echo "$ac_t""no" 1>&6
15898 fi
15899 done
15900     
15901   else
15902     
15903   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
15904 echo "configure:15905: checking for _copysignl declaration" >&5
15905   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
15906     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
15907   echo $ac_n "(cached) $ac_c" 1>&6
15908 else
15909   
15910       
15911       ac_ext=C
15912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15913 ac_cpp='$CXXCPP $CPPFLAGS'
15914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15916 cross_compiling=$ac_cv_prog_cxx_cross
15917
15918       cat > conftest.$ac_ext <<EOF
15919 #line 15920 "configure"
15920 #include "confdefs.h"
15921 #include <math.h>
15922 int main() {
15923  _copysignl(0, 0);
15924 ; return 0; }
15925 EOF
15926 if { (eval echo configure:15927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15927   rm -rf conftest*
15928   glibcpp_cv_func__copysignl_use=yes
15929 else
15930   echo "configure: failed program was:" >&5
15931   cat conftest.$ac_ext >&5
15932   rm -rf conftest*
15933   glibcpp_cv_func__copysignl_use=no
15934 fi
15935 rm -f conftest*
15936       ac_ext=c
15937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15938 ac_cpp='$CPP $CPPFLAGS'
15939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15941 cross_compiling=$ac_cv_prog_cc_cross
15942
15943     
15944 fi
15945
15946   fi
15947   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
15948
15949     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
15950       for ac_func in _copysignl
15951 do
15952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15953 echo "configure:15954: checking for $ac_func" >&5
15954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15955   echo $ac_n "(cached) $ac_c" 1>&6
15956 else
15957   cat > conftest.$ac_ext <<EOF
15958 #line 15959 "configure"
15959 #include "confdefs.h"
15960 /* System header to define __stub macros and hopefully few prototypes,
15961     which can conflict with char $ac_func(); below.  */
15962 #include <assert.h>
15963 /* Override any gcc2 internal prototype to avoid an error.  */
15964 /* We use char because int might match the return type of a gcc2
15965     builtin and then its argument prototype would still apply.  */
15966 char $ac_func();
15967
15968 int main() {
15969
15970 /* The GNU C library defines this for functions which it implements
15971     to always fail with ENOSYS.  Some functions are actually named
15972     something starting with __ and the normal name is an alias.  */
15973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15974 choke me
15975 #else
15976 $ac_func();
15977 #endif
15978
15979 ; return 0; }
15980 EOF
15981 if { (eval echo configure:15982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15982   rm -rf conftest*
15983   eval "ac_cv_func_$ac_func=yes"
15984 else
15985   echo "configure: failed program was:" >&5
15986   cat conftest.$ac_ext >&5
15987   rm -rf conftest*
15988   eval "ac_cv_func_$ac_func=no"
15989 fi
15990 rm -f conftest*
15991 fi
15992
15993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15994   echo "$ac_t""yes" 1>&6
15995     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15996   cat >> confdefs.h <<EOF
15997 #define $ac_tr_func 1
15998 EOF
15999  
16000 else
16001   echo "$ac_t""no" 1>&6
16002 fi
16003 done
16004     
16005     fi
16006   fi
16007
16008   
16009   
16010   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16011 echo "configure:16012: checking for atan2l declaration" >&5
16012   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16013     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16014   echo $ac_n "(cached) $ac_c" 1>&6
16015 else
16016   
16017       
16018       ac_ext=C
16019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16020 ac_cpp='$CXXCPP $CPPFLAGS'
16021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16023 cross_compiling=$ac_cv_prog_cxx_cross
16024
16025       cat > conftest.$ac_ext <<EOF
16026 #line 16027 "configure"
16027 #include "confdefs.h"
16028 #include <math.h>
16029 int main() {
16030  atan2l(0, 0);
16031 ; return 0; }
16032 EOF
16033 if { (eval echo configure:16034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16034   rm -rf conftest*
16035   glibcpp_cv_func_atan2l_use=yes
16036 else
16037   echo "configure: failed program was:" >&5
16038   cat conftest.$ac_ext >&5
16039   rm -rf conftest*
16040   glibcpp_cv_func_atan2l_use=no
16041 fi
16042 rm -f conftest*
16043       ac_ext=c
16044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16045 ac_cpp='$CPP $CPPFLAGS'
16046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16048 cross_compiling=$ac_cv_prog_cc_cross
16049
16050     
16051 fi
16052
16053   fi
16054   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16055
16056   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16057     for ac_func in atan2l
16058 do
16059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16060 echo "configure:16061: checking for $ac_func" >&5
16061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16062   echo $ac_n "(cached) $ac_c" 1>&6
16063 else
16064   cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 /* System header to define __stub macros and hopefully few prototypes,
16068     which can conflict with char $ac_func(); below.  */
16069 #include <assert.h>
16070 /* Override any gcc2 internal prototype to avoid an error.  */
16071 /* We use char because int might match the return type of a gcc2
16072     builtin and then its argument prototype would still apply.  */
16073 char $ac_func();
16074
16075 int main() {
16076
16077 /* The GNU C library defines this for functions which it implements
16078     to always fail with ENOSYS.  Some functions are actually named
16079     something starting with __ and the normal name is an alias.  */
16080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16081 choke me
16082 #else
16083 $ac_func();
16084 #endif
16085
16086 ; return 0; }
16087 EOF
16088 if { (eval echo configure:16089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16089   rm -rf conftest*
16090   eval "ac_cv_func_$ac_func=yes"
16091 else
16092   echo "configure: failed program was:" >&5
16093   cat conftest.$ac_ext >&5
16094   rm -rf conftest*
16095   eval "ac_cv_func_$ac_func=no"
16096 fi
16097 rm -f conftest*
16098 fi
16099
16100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16101   echo "$ac_t""yes" 1>&6
16102     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16103   cat >> confdefs.h <<EOF
16104 #define $ac_tr_func 1
16105 EOF
16106  
16107 else
16108   echo "$ac_t""no" 1>&6
16109 fi
16110 done
16111     
16112   else
16113     
16114   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
16115 echo "configure:16116: checking for _atan2l declaration" >&5
16116   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
16117     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
16118   echo $ac_n "(cached) $ac_c" 1>&6
16119 else
16120   
16121       
16122       ac_ext=C
16123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16124 ac_cpp='$CXXCPP $CPPFLAGS'
16125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16127 cross_compiling=$ac_cv_prog_cxx_cross
16128
16129       cat > conftest.$ac_ext <<EOF
16130 #line 16131 "configure"
16131 #include "confdefs.h"
16132 #include <math.h>
16133 int main() {
16134  _atan2l(0, 0);
16135 ; return 0; }
16136 EOF
16137 if { (eval echo configure:16138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16138   rm -rf conftest*
16139   glibcpp_cv_func__atan2l_use=yes
16140 else
16141   echo "configure: failed program was:" >&5
16142   cat conftest.$ac_ext >&5
16143   rm -rf conftest*
16144   glibcpp_cv_func__atan2l_use=no
16145 fi
16146 rm -f conftest*
16147       ac_ext=c
16148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16149 ac_cpp='$CPP $CPPFLAGS'
16150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16152 cross_compiling=$ac_cv_prog_cc_cross
16153
16154     
16155 fi
16156
16157   fi
16158   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
16159
16160     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
16161       for ac_func in _atan2l
16162 do
16163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16164 echo "configure:16165: checking for $ac_func" >&5
16165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16166   echo $ac_n "(cached) $ac_c" 1>&6
16167 else
16168   cat > conftest.$ac_ext <<EOF
16169 #line 16170 "configure"
16170 #include "confdefs.h"
16171 /* System header to define __stub macros and hopefully few prototypes,
16172     which can conflict with char $ac_func(); below.  */
16173 #include <assert.h>
16174 /* Override any gcc2 internal prototype to avoid an error.  */
16175 /* We use char because int might match the return type of a gcc2
16176     builtin and then its argument prototype would still apply.  */
16177 char $ac_func();
16178
16179 int main() {
16180
16181 /* The GNU C library defines this for functions which it implements
16182     to always fail with ENOSYS.  Some functions are actually named
16183     something starting with __ and the normal name is an alias.  */
16184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16185 choke me
16186 #else
16187 $ac_func();
16188 #endif
16189
16190 ; return 0; }
16191 EOF
16192 if { (eval echo configure:16193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16193   rm -rf conftest*
16194   eval "ac_cv_func_$ac_func=yes"
16195 else
16196   echo "configure: failed program was:" >&5
16197   cat conftest.$ac_ext >&5
16198   rm -rf conftest*
16199   eval "ac_cv_func_$ac_func=no"
16200 fi
16201 rm -f conftest*
16202 fi
16203
16204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16205   echo "$ac_t""yes" 1>&6
16206     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16207   cat >> confdefs.h <<EOF
16208 #define $ac_tr_func 1
16209 EOF
16210  
16211 else
16212   echo "$ac_t""no" 1>&6
16213 fi
16214 done
16215     
16216     fi
16217   fi
16218
16219   
16220   
16221   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
16222 echo "configure:16223: checking for expl declaration" >&5
16223   if test x${glibcpp_cv_func_expl_use+set} != xset; then
16224     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
16225   echo $ac_n "(cached) $ac_c" 1>&6
16226 else
16227   
16228       
16229       ac_ext=C
16230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16231 ac_cpp='$CXXCPP $CPPFLAGS'
16232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16234 cross_compiling=$ac_cv_prog_cxx_cross
16235
16236       cat > conftest.$ac_ext <<EOF
16237 #line 16238 "configure"
16238 #include "confdefs.h"
16239 #include <math.h>
16240                       #ifdef HAVE_IEEEFP_H
16241                       #include <ieeefp.h>
16242                       #endif
16243                      
16244 int main() {
16245  expl(0);
16246 ; return 0; }
16247 EOF
16248 if { (eval echo configure:16249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16249   rm -rf conftest*
16250   glibcpp_cv_func_expl_use=yes
16251 else
16252   echo "configure: failed program was:" >&5
16253   cat conftest.$ac_ext >&5
16254   rm -rf conftest*
16255   glibcpp_cv_func_expl_use=no
16256 fi
16257 rm -f conftest*
16258       ac_ext=c
16259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16263 cross_compiling=$ac_cv_prog_cc_cross
16264
16265     
16266 fi
16267
16268   fi
16269   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
16270
16271   if test x$glibcpp_cv_func_expl_use = x"yes"; then
16272     for ac_func in expl
16273 do
16274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16275 echo "configure:16276: checking for $ac_func" >&5
16276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16277   echo $ac_n "(cached) $ac_c" 1>&6
16278 else
16279   cat > conftest.$ac_ext <<EOF
16280 #line 16281 "configure"
16281 #include "confdefs.h"
16282 /* System header to define __stub macros and hopefully few prototypes,
16283     which can conflict with char $ac_func(); below.  */
16284 #include <assert.h>
16285 /* Override any gcc2 internal prototype to avoid an error.  */
16286 /* We use char because int might match the return type of a gcc2
16287     builtin and then its argument prototype would still apply.  */
16288 char $ac_func();
16289
16290 int main() {
16291
16292 /* The GNU C library defines this for functions which it implements
16293     to always fail with ENOSYS.  Some functions are actually named
16294     something starting with __ and the normal name is an alias.  */
16295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16296 choke me
16297 #else
16298 $ac_func();
16299 #endif
16300
16301 ; return 0; }
16302 EOF
16303 if { (eval echo configure:16304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16304   rm -rf conftest*
16305   eval "ac_cv_func_$ac_func=yes"
16306 else
16307   echo "configure: failed program was:" >&5
16308   cat conftest.$ac_ext >&5
16309   rm -rf conftest*
16310   eval "ac_cv_func_$ac_func=no"
16311 fi
16312 rm -f conftest*
16313 fi
16314
16315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16316   echo "$ac_t""yes" 1>&6
16317     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16318   cat >> confdefs.h <<EOF
16319 #define $ac_tr_func 1
16320 EOF
16321  
16322 else
16323   echo "$ac_t""no" 1>&6
16324 fi
16325 done
16326     
16327   else
16328     
16329   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
16330 echo "configure:16331: checking for _expl declaration" >&5
16331   if test x${glibcpp_cv_func__expl_use+set} != xset; then
16332     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
16333   echo $ac_n "(cached) $ac_c" 1>&6
16334 else
16335   
16336       
16337       ac_ext=C
16338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16339 ac_cpp='$CXXCPP $CPPFLAGS'
16340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16342 cross_compiling=$ac_cv_prog_cxx_cross
16343
16344       cat > conftest.$ac_ext <<EOF
16345 #line 16346 "configure"
16346 #include "confdefs.h"
16347 #include <math.h>
16348                       #ifdef HAVE_IEEEFP_H
16349                       #include <ieeefp.h>
16350                       #endif
16351                      
16352 int main() {
16353  _expl(0);
16354 ; return 0; }
16355 EOF
16356 if { (eval echo configure:16357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16357   rm -rf conftest*
16358   glibcpp_cv_func__expl_use=yes
16359 else
16360   echo "configure: failed program was:" >&5
16361   cat conftest.$ac_ext >&5
16362   rm -rf conftest*
16363   glibcpp_cv_func__expl_use=no
16364 fi
16365 rm -f conftest*
16366       ac_ext=c
16367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16371 cross_compiling=$ac_cv_prog_cc_cross
16372
16373     
16374 fi
16375
16376   fi
16377   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
16378
16379     if test x$glibcpp_cv_func__expl_use = x"yes"; then
16380       for ac_func in _expl
16381 do
16382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16383 echo "configure:16384: checking for $ac_func" >&5
16384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16385   echo $ac_n "(cached) $ac_c" 1>&6
16386 else
16387   cat > conftest.$ac_ext <<EOF
16388 #line 16389 "configure"
16389 #include "confdefs.h"
16390 /* System header to define __stub macros and hopefully few prototypes,
16391     which can conflict with char $ac_func(); below.  */
16392 #include <assert.h>
16393 /* Override any gcc2 internal prototype to avoid an error.  */
16394 /* We use char because int might match the return type of a gcc2
16395     builtin and then its argument prototype would still apply.  */
16396 char $ac_func();
16397
16398 int main() {
16399
16400 /* The GNU C library defines this for functions which it implements
16401     to always fail with ENOSYS.  Some functions are actually named
16402     something starting with __ and the normal name is an alias.  */
16403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16404 choke me
16405 #else
16406 $ac_func();
16407 #endif
16408
16409 ; return 0; }
16410 EOF
16411 if { (eval echo configure:16412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16412   rm -rf conftest*
16413   eval "ac_cv_func_$ac_func=yes"
16414 else
16415   echo "configure: failed program was:" >&5
16416   cat conftest.$ac_ext >&5
16417   rm -rf conftest*
16418   eval "ac_cv_func_$ac_func=no"
16419 fi
16420 rm -f conftest*
16421 fi
16422
16423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16424   echo "$ac_t""yes" 1>&6
16425     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16426   cat >> confdefs.h <<EOF
16427 #define $ac_tr_func 1
16428 EOF
16429  
16430 else
16431   echo "$ac_t""no" 1>&6
16432 fi
16433 done
16434     
16435     fi
16436   fi
16437
16438   
16439   
16440   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
16441 echo "configure:16442: checking for fabsl declaration" >&5
16442   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
16443     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
16444   echo $ac_n "(cached) $ac_c" 1>&6
16445 else
16446   
16447       
16448       ac_ext=C
16449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16450 ac_cpp='$CXXCPP $CPPFLAGS'
16451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16453 cross_compiling=$ac_cv_prog_cxx_cross
16454
16455       cat > conftest.$ac_ext <<EOF
16456 #line 16457 "configure"
16457 #include "confdefs.h"
16458 #include <math.h>
16459                       #ifdef HAVE_IEEEFP_H
16460                       #include <ieeefp.h>
16461                       #endif
16462                      
16463 int main() {
16464  fabsl(0);
16465 ; return 0; }
16466 EOF
16467 if { (eval echo configure:16468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16468   rm -rf conftest*
16469   glibcpp_cv_func_fabsl_use=yes
16470 else
16471   echo "configure: failed program was:" >&5
16472   cat conftest.$ac_ext >&5
16473   rm -rf conftest*
16474   glibcpp_cv_func_fabsl_use=no
16475 fi
16476 rm -f conftest*
16477       ac_ext=c
16478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16479 ac_cpp='$CPP $CPPFLAGS'
16480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16482 cross_compiling=$ac_cv_prog_cc_cross
16483
16484     
16485 fi
16486
16487   fi
16488   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
16489
16490   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
16491     for ac_func in fabsl
16492 do
16493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16494 echo "configure:16495: checking for $ac_func" >&5
16495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16496   echo $ac_n "(cached) $ac_c" 1>&6
16497 else
16498   cat > conftest.$ac_ext <<EOF
16499 #line 16500 "configure"
16500 #include "confdefs.h"
16501 /* System header to define __stub macros and hopefully few prototypes,
16502     which can conflict with char $ac_func(); below.  */
16503 #include <assert.h>
16504 /* Override any gcc2 internal prototype to avoid an error.  */
16505 /* We use char because int might match the return type of a gcc2
16506     builtin and then its argument prototype would still apply.  */
16507 char $ac_func();
16508
16509 int main() {
16510
16511 /* The GNU C library defines this for functions which it implements
16512     to always fail with ENOSYS.  Some functions are actually named
16513     something starting with __ and the normal name is an alias.  */
16514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16515 choke me
16516 #else
16517 $ac_func();
16518 #endif
16519
16520 ; return 0; }
16521 EOF
16522 if { (eval echo configure:16523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16523   rm -rf conftest*
16524   eval "ac_cv_func_$ac_func=yes"
16525 else
16526   echo "configure: failed program was:" >&5
16527   cat conftest.$ac_ext >&5
16528   rm -rf conftest*
16529   eval "ac_cv_func_$ac_func=no"
16530 fi
16531 rm -f conftest*
16532 fi
16533
16534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16535   echo "$ac_t""yes" 1>&6
16536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16537   cat >> confdefs.h <<EOF
16538 #define $ac_tr_func 1
16539 EOF
16540  
16541 else
16542   echo "$ac_t""no" 1>&6
16543 fi
16544 done
16545     
16546   else
16547     
16548   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
16549 echo "configure:16550: checking for _fabsl declaration" >&5
16550   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
16551     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
16552   echo $ac_n "(cached) $ac_c" 1>&6
16553 else
16554   
16555       
16556       ac_ext=C
16557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16558 ac_cpp='$CXXCPP $CPPFLAGS'
16559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16561 cross_compiling=$ac_cv_prog_cxx_cross
16562
16563       cat > conftest.$ac_ext <<EOF
16564 #line 16565 "configure"
16565 #include "confdefs.h"
16566 #include <math.h>
16567                       #ifdef HAVE_IEEEFP_H
16568                       #include <ieeefp.h>
16569                       #endif
16570                      
16571 int main() {
16572  _fabsl(0);
16573 ; return 0; }
16574 EOF
16575 if { (eval echo configure:16576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16576   rm -rf conftest*
16577   glibcpp_cv_func__fabsl_use=yes
16578 else
16579   echo "configure: failed program was:" >&5
16580   cat conftest.$ac_ext >&5
16581   rm -rf conftest*
16582   glibcpp_cv_func__fabsl_use=no
16583 fi
16584 rm -f conftest*
16585       ac_ext=c
16586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16587 ac_cpp='$CPP $CPPFLAGS'
16588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16590 cross_compiling=$ac_cv_prog_cc_cross
16591
16592     
16593 fi
16594
16595   fi
16596   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
16597
16598     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
16599       for ac_func in _fabsl
16600 do
16601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16602 echo "configure:16603: checking for $ac_func" >&5
16603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16604   echo $ac_n "(cached) $ac_c" 1>&6
16605 else
16606   cat > conftest.$ac_ext <<EOF
16607 #line 16608 "configure"
16608 #include "confdefs.h"
16609 /* System header to define __stub macros and hopefully few prototypes,
16610     which can conflict with char $ac_func(); below.  */
16611 #include <assert.h>
16612 /* Override any gcc2 internal prototype to avoid an error.  */
16613 /* We use char because int might match the return type of a gcc2
16614     builtin and then its argument prototype would still apply.  */
16615 char $ac_func();
16616
16617 int main() {
16618
16619 /* The GNU C library defines this for functions which it implements
16620     to always fail with ENOSYS.  Some functions are actually named
16621     something starting with __ and the normal name is an alias.  */
16622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16623 choke me
16624 #else
16625 $ac_func();
16626 #endif
16627
16628 ; return 0; }
16629 EOF
16630 if { (eval echo configure:16631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16631   rm -rf conftest*
16632   eval "ac_cv_func_$ac_func=yes"
16633 else
16634   echo "configure: failed program was:" >&5
16635   cat conftest.$ac_ext >&5
16636   rm -rf conftest*
16637   eval "ac_cv_func_$ac_func=no"
16638 fi
16639 rm -f conftest*
16640 fi
16641
16642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16643   echo "$ac_t""yes" 1>&6
16644     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16645   cat >> confdefs.h <<EOF
16646 #define $ac_tr_func 1
16647 EOF
16648  
16649 else
16650   echo "$ac_t""no" 1>&6
16651 fi
16652 done
16653     
16654     fi
16655   fi
16656
16657   
16658   
16659   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
16660 echo "configure:16661: checking for fmodl declaration" >&5
16661   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
16662     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
16663   echo $ac_n "(cached) $ac_c" 1>&6
16664 else
16665   
16666       
16667       ac_ext=C
16668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16669 ac_cpp='$CXXCPP $CPPFLAGS'
16670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16672 cross_compiling=$ac_cv_prog_cxx_cross
16673
16674       cat > conftest.$ac_ext <<EOF
16675 #line 16676 "configure"
16676 #include "confdefs.h"
16677 #include <math.h>
16678 int main() {
16679  fmodl(0, 0);
16680 ; return 0; }
16681 EOF
16682 if { (eval echo configure:16683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16683   rm -rf conftest*
16684   glibcpp_cv_func_fmodl_use=yes
16685 else
16686   echo "configure: failed program was:" >&5
16687   cat conftest.$ac_ext >&5
16688   rm -rf conftest*
16689   glibcpp_cv_func_fmodl_use=no
16690 fi
16691 rm -f conftest*
16692       ac_ext=c
16693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16694 ac_cpp='$CPP $CPPFLAGS'
16695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16697 cross_compiling=$ac_cv_prog_cc_cross
16698
16699     
16700 fi
16701
16702   fi
16703   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
16704
16705   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
16706     for ac_func in fmodl
16707 do
16708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16709 echo "configure:16710: checking for $ac_func" >&5
16710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16711   echo $ac_n "(cached) $ac_c" 1>&6
16712 else
16713   cat > conftest.$ac_ext <<EOF
16714 #line 16715 "configure"
16715 #include "confdefs.h"
16716 /* System header to define __stub macros and hopefully few prototypes,
16717     which can conflict with char $ac_func(); below.  */
16718 #include <assert.h>
16719 /* Override any gcc2 internal prototype to avoid an error.  */
16720 /* We use char because int might match the return type of a gcc2
16721     builtin and then its argument prototype would still apply.  */
16722 char $ac_func();
16723
16724 int main() {
16725
16726 /* The GNU C library defines this for functions which it implements
16727     to always fail with ENOSYS.  Some functions are actually named
16728     something starting with __ and the normal name is an alias.  */
16729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16730 choke me
16731 #else
16732 $ac_func();
16733 #endif
16734
16735 ; return 0; }
16736 EOF
16737 if { (eval echo configure:16738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16738   rm -rf conftest*
16739   eval "ac_cv_func_$ac_func=yes"
16740 else
16741   echo "configure: failed program was:" >&5
16742   cat conftest.$ac_ext >&5
16743   rm -rf conftest*
16744   eval "ac_cv_func_$ac_func=no"
16745 fi
16746 rm -f conftest*
16747 fi
16748
16749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16750   echo "$ac_t""yes" 1>&6
16751     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16752   cat >> confdefs.h <<EOF
16753 #define $ac_tr_func 1
16754 EOF
16755  
16756 else
16757   echo "$ac_t""no" 1>&6
16758 fi
16759 done
16760     
16761   else
16762     
16763   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
16764 echo "configure:16765: checking for _fmodl declaration" >&5
16765   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
16766     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
16767   echo $ac_n "(cached) $ac_c" 1>&6
16768 else
16769   
16770       
16771       ac_ext=C
16772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16773 ac_cpp='$CXXCPP $CPPFLAGS'
16774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16776 cross_compiling=$ac_cv_prog_cxx_cross
16777
16778       cat > conftest.$ac_ext <<EOF
16779 #line 16780 "configure"
16780 #include "confdefs.h"
16781 #include <math.h>
16782 int main() {
16783  _fmodl(0, 0);
16784 ; return 0; }
16785 EOF
16786 if { (eval echo configure:16787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16787   rm -rf conftest*
16788   glibcpp_cv_func__fmodl_use=yes
16789 else
16790   echo "configure: failed program was:" >&5
16791   cat conftest.$ac_ext >&5
16792   rm -rf conftest*
16793   glibcpp_cv_func__fmodl_use=no
16794 fi
16795 rm -f conftest*
16796       ac_ext=c
16797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16798 ac_cpp='$CPP $CPPFLAGS'
16799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16801 cross_compiling=$ac_cv_prog_cc_cross
16802
16803     
16804 fi
16805
16806   fi
16807   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
16808
16809     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
16810       for ac_func in _fmodl
16811 do
16812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16813 echo "configure:16814: checking for $ac_func" >&5
16814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16815   echo $ac_n "(cached) $ac_c" 1>&6
16816 else
16817   cat > conftest.$ac_ext <<EOF
16818 #line 16819 "configure"
16819 #include "confdefs.h"
16820 /* System header to define __stub macros and hopefully few prototypes,
16821     which can conflict with char $ac_func(); below.  */
16822 #include <assert.h>
16823 /* Override any gcc2 internal prototype to avoid an error.  */
16824 /* We use char because int might match the return type of a gcc2
16825     builtin and then its argument prototype would still apply.  */
16826 char $ac_func();
16827
16828 int main() {
16829
16830 /* The GNU C library defines this for functions which it implements
16831     to always fail with ENOSYS.  Some functions are actually named
16832     something starting with __ and the normal name is an alias.  */
16833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16834 choke me
16835 #else
16836 $ac_func();
16837 #endif
16838
16839 ; return 0; }
16840 EOF
16841 if { (eval echo configure:16842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16842   rm -rf conftest*
16843   eval "ac_cv_func_$ac_func=yes"
16844 else
16845   echo "configure: failed program was:" >&5
16846   cat conftest.$ac_ext >&5
16847   rm -rf conftest*
16848   eval "ac_cv_func_$ac_func=no"
16849 fi
16850 rm -f conftest*
16851 fi
16852
16853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16854   echo "$ac_t""yes" 1>&6
16855     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16856   cat >> confdefs.h <<EOF
16857 #define $ac_tr_func 1
16858 EOF
16859  
16860 else
16861   echo "$ac_t""no" 1>&6
16862 fi
16863 done
16864     
16865     fi
16866   fi
16867
16868   
16869   
16870   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
16871 echo "configure:16872: checking for frexpl declaration" >&5
16872   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
16873     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
16874   echo $ac_n "(cached) $ac_c" 1>&6
16875 else
16876   
16877       
16878       ac_ext=C
16879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16880 ac_cpp='$CXXCPP $CPPFLAGS'
16881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16883 cross_compiling=$ac_cv_prog_cxx_cross
16884
16885       cat > conftest.$ac_ext <<EOF
16886 #line 16887 "configure"
16887 #include "confdefs.h"
16888 #include <math.h>
16889 int main() {
16890  frexpl(0, 0);
16891 ; return 0; }
16892 EOF
16893 if { (eval echo configure:16894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16894   rm -rf conftest*
16895   glibcpp_cv_func_frexpl_use=yes
16896 else
16897   echo "configure: failed program was:" >&5
16898   cat conftest.$ac_ext >&5
16899   rm -rf conftest*
16900   glibcpp_cv_func_frexpl_use=no
16901 fi
16902 rm -f conftest*
16903       ac_ext=c
16904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16905 ac_cpp='$CPP $CPPFLAGS'
16906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16908 cross_compiling=$ac_cv_prog_cc_cross
16909
16910     
16911 fi
16912
16913   fi
16914   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
16915
16916   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
16917     for ac_func in frexpl
16918 do
16919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16920 echo "configure:16921: checking for $ac_func" >&5
16921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16922   echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16924   cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16927 /* System header to define __stub macros and hopefully few prototypes,
16928     which can conflict with char $ac_func(); below.  */
16929 #include <assert.h>
16930 /* Override any gcc2 internal prototype to avoid an error.  */
16931 /* We use char because int might match the return type of a gcc2
16932     builtin and then its argument prototype would still apply.  */
16933 char $ac_func();
16934
16935 int main() {
16936
16937 /* The GNU C library defines this for functions which it implements
16938     to always fail with ENOSYS.  Some functions are actually named
16939     something starting with __ and the normal name is an alias.  */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16941 choke me
16942 #else
16943 $ac_func();
16944 #endif
16945
16946 ; return 0; }
16947 EOF
16948 if { (eval echo configure:16949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16949   rm -rf conftest*
16950   eval "ac_cv_func_$ac_func=yes"
16951 else
16952   echo "configure: failed program was:" >&5
16953   cat conftest.$ac_ext >&5
16954   rm -rf conftest*
16955   eval "ac_cv_func_$ac_func=no"
16956 fi
16957 rm -f conftest*
16958 fi
16959
16960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16961   echo "$ac_t""yes" 1>&6
16962     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16963   cat >> confdefs.h <<EOF
16964 #define $ac_tr_func 1
16965 EOF
16966  
16967 else
16968   echo "$ac_t""no" 1>&6
16969 fi
16970 done
16971     
16972   else
16973     
16974   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
16975 echo "configure:16976: checking for _frexpl declaration" >&5
16976   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
16977     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
16978   echo $ac_n "(cached) $ac_c" 1>&6
16979 else
16980   
16981       
16982       ac_ext=C
16983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16984 ac_cpp='$CXXCPP $CPPFLAGS'
16985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16987 cross_compiling=$ac_cv_prog_cxx_cross
16988
16989       cat > conftest.$ac_ext <<EOF
16990 #line 16991 "configure"
16991 #include "confdefs.h"
16992 #include <math.h>
16993 int main() {
16994  _frexpl(0, 0);
16995 ; return 0; }
16996 EOF
16997 if { (eval echo configure:16998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16998   rm -rf conftest*
16999   glibcpp_cv_func__frexpl_use=yes
17000 else
17001   echo "configure: failed program was:" >&5
17002   cat conftest.$ac_ext >&5
17003   rm -rf conftest*
17004   glibcpp_cv_func__frexpl_use=no
17005 fi
17006 rm -f conftest*
17007       ac_ext=c
17008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17009 ac_cpp='$CPP $CPPFLAGS'
17010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17012 cross_compiling=$ac_cv_prog_cc_cross
17013
17014     
17015 fi
17016
17017   fi
17018   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17019
17020     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17021       for ac_func in _frexpl
17022 do
17023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17024 echo "configure:17025: checking for $ac_func" >&5
17025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17026   echo $ac_n "(cached) $ac_c" 1>&6
17027 else
17028   cat > conftest.$ac_ext <<EOF
17029 #line 17030 "configure"
17030 #include "confdefs.h"
17031 /* System header to define __stub macros and hopefully few prototypes,
17032     which can conflict with char $ac_func(); below.  */
17033 #include <assert.h>
17034 /* Override any gcc2 internal prototype to avoid an error.  */
17035 /* We use char because int might match the return type of a gcc2
17036     builtin and then its argument prototype would still apply.  */
17037 char $ac_func();
17038
17039 int main() {
17040
17041 /* The GNU C library defines this for functions which it implements
17042     to always fail with ENOSYS.  Some functions are actually named
17043     something starting with __ and the normal name is an alias.  */
17044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17045 choke me
17046 #else
17047 $ac_func();
17048 #endif
17049
17050 ; return 0; }
17051 EOF
17052 if { (eval echo configure:17053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17053   rm -rf conftest*
17054   eval "ac_cv_func_$ac_func=yes"
17055 else
17056   echo "configure: failed program was:" >&5
17057   cat conftest.$ac_ext >&5
17058   rm -rf conftest*
17059   eval "ac_cv_func_$ac_func=no"
17060 fi
17061 rm -f conftest*
17062 fi
17063
17064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17065   echo "$ac_t""yes" 1>&6
17066     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17067   cat >> confdefs.h <<EOF
17068 #define $ac_tr_func 1
17069 EOF
17070  
17071 else
17072   echo "$ac_t""no" 1>&6
17073 fi
17074 done
17075     
17076     fi
17077   fi
17078
17079   
17080   
17081   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17082 echo "configure:17083: checking for hypotl declaration" >&5
17083   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17084     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
17085   echo $ac_n "(cached) $ac_c" 1>&6
17086 else
17087   
17088       
17089       ac_ext=C
17090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17091 ac_cpp='$CXXCPP $CPPFLAGS'
17092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17094 cross_compiling=$ac_cv_prog_cxx_cross
17095
17096       cat > conftest.$ac_ext <<EOF
17097 #line 17098 "configure"
17098 #include "confdefs.h"
17099 #include <math.h>
17100 int main() {
17101  hypotl(0, 0);
17102 ; return 0; }
17103 EOF
17104 if { (eval echo configure:17105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17105   rm -rf conftest*
17106   glibcpp_cv_func_hypotl_use=yes
17107 else
17108   echo "configure: failed program was:" >&5
17109   cat conftest.$ac_ext >&5
17110   rm -rf conftest*
17111   glibcpp_cv_func_hypotl_use=no
17112 fi
17113 rm -f conftest*
17114       ac_ext=c
17115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17116 ac_cpp='$CPP $CPPFLAGS'
17117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17119 cross_compiling=$ac_cv_prog_cc_cross
17120
17121     
17122 fi
17123
17124   fi
17125   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
17126
17127   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
17128     for ac_func in hypotl
17129 do
17130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17131 echo "configure:17132: checking for $ac_func" >&5
17132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17133   echo $ac_n "(cached) $ac_c" 1>&6
17134 else
17135   cat > conftest.$ac_ext <<EOF
17136 #line 17137 "configure"
17137 #include "confdefs.h"
17138 /* System header to define __stub macros and hopefully few prototypes,
17139     which can conflict with char $ac_func(); below.  */
17140 #include <assert.h>
17141 /* Override any gcc2 internal prototype to avoid an error.  */
17142 /* We use char because int might match the return type of a gcc2
17143     builtin and then its argument prototype would still apply.  */
17144 char $ac_func();
17145
17146 int main() {
17147
17148 /* The GNU C library defines this for functions which it implements
17149     to always fail with ENOSYS.  Some functions are actually named
17150     something starting with __ and the normal name is an alias.  */
17151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17152 choke me
17153 #else
17154 $ac_func();
17155 #endif
17156
17157 ; return 0; }
17158 EOF
17159 if { (eval echo configure:17160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17160   rm -rf conftest*
17161   eval "ac_cv_func_$ac_func=yes"
17162 else
17163   echo "configure: failed program was:" >&5
17164   cat conftest.$ac_ext >&5
17165   rm -rf conftest*
17166   eval "ac_cv_func_$ac_func=no"
17167 fi
17168 rm -f conftest*
17169 fi
17170
17171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17172   echo "$ac_t""yes" 1>&6
17173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17174   cat >> confdefs.h <<EOF
17175 #define $ac_tr_func 1
17176 EOF
17177  
17178 else
17179   echo "$ac_t""no" 1>&6
17180 fi
17181 done
17182     
17183   else
17184     
17185   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
17186 echo "configure:17187: checking for _hypotl declaration" >&5
17187   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
17188     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
17189   echo $ac_n "(cached) $ac_c" 1>&6
17190 else
17191   
17192       
17193       ac_ext=C
17194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17195 ac_cpp='$CXXCPP $CPPFLAGS'
17196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17198 cross_compiling=$ac_cv_prog_cxx_cross
17199
17200       cat > conftest.$ac_ext <<EOF
17201 #line 17202 "configure"
17202 #include "confdefs.h"
17203 #include <math.h>
17204 int main() {
17205  _hypotl(0, 0);
17206 ; return 0; }
17207 EOF
17208 if { (eval echo configure:17209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17209   rm -rf conftest*
17210   glibcpp_cv_func__hypotl_use=yes
17211 else
17212   echo "configure: failed program was:" >&5
17213   cat conftest.$ac_ext >&5
17214   rm -rf conftest*
17215   glibcpp_cv_func__hypotl_use=no
17216 fi
17217 rm -f conftest*
17218       ac_ext=c
17219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17220 ac_cpp='$CPP $CPPFLAGS'
17221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17223 cross_compiling=$ac_cv_prog_cc_cross
17224
17225     
17226 fi
17227
17228   fi
17229   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
17230
17231     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
17232       for ac_func in _hypotl
17233 do
17234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17235 echo "configure:17236: checking for $ac_func" >&5
17236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17237   echo $ac_n "(cached) $ac_c" 1>&6
17238 else
17239   cat > conftest.$ac_ext <<EOF
17240 #line 17241 "configure"
17241 #include "confdefs.h"
17242 /* System header to define __stub macros and hopefully few prototypes,
17243     which can conflict with char $ac_func(); below.  */
17244 #include <assert.h>
17245 /* Override any gcc2 internal prototype to avoid an error.  */
17246 /* We use char because int might match the return type of a gcc2
17247     builtin and then its argument prototype would still apply.  */
17248 char $ac_func();
17249
17250 int main() {
17251
17252 /* The GNU C library defines this for functions which it implements
17253     to always fail with ENOSYS.  Some functions are actually named
17254     something starting with __ and the normal name is an alias.  */
17255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17256 choke me
17257 #else
17258 $ac_func();
17259 #endif
17260
17261 ; return 0; }
17262 EOF
17263 if { (eval echo configure:17264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17264   rm -rf conftest*
17265   eval "ac_cv_func_$ac_func=yes"
17266 else
17267   echo "configure: failed program was:" >&5
17268   cat conftest.$ac_ext >&5
17269   rm -rf conftest*
17270   eval "ac_cv_func_$ac_func=no"
17271 fi
17272 rm -f conftest*
17273 fi
17274
17275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17276   echo "$ac_t""yes" 1>&6
17277     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17278   cat >> confdefs.h <<EOF
17279 #define $ac_tr_func 1
17280 EOF
17281  
17282 else
17283   echo "$ac_t""no" 1>&6
17284 fi
17285 done
17286     
17287     fi
17288   fi
17289
17290   
17291   
17292   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
17293 echo "configure:17294: checking for ldexpl declaration" >&5
17294   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
17295     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
17296   echo $ac_n "(cached) $ac_c" 1>&6
17297 else
17298   
17299       
17300       ac_ext=C
17301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17302 ac_cpp='$CXXCPP $CPPFLAGS'
17303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17305 cross_compiling=$ac_cv_prog_cxx_cross
17306
17307       cat > conftest.$ac_ext <<EOF
17308 #line 17309 "configure"
17309 #include "confdefs.h"
17310 #include <math.h>
17311 int main() {
17312  ldexpl(0, 0);
17313 ; return 0; }
17314 EOF
17315 if { (eval echo configure:17316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17316   rm -rf conftest*
17317   glibcpp_cv_func_ldexpl_use=yes
17318 else
17319   echo "configure: failed program was:" >&5
17320   cat conftest.$ac_ext >&5
17321   rm -rf conftest*
17322   glibcpp_cv_func_ldexpl_use=no
17323 fi
17324 rm -f conftest*
17325       ac_ext=c
17326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17327 ac_cpp='$CPP $CPPFLAGS'
17328 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17329 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17330 cross_compiling=$ac_cv_prog_cc_cross
17331
17332     
17333 fi
17334
17335   fi
17336   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
17337
17338   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
17339     for ac_func in ldexpl
17340 do
17341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17342 echo "configure:17343: checking for $ac_func" >&5
17343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17344   echo $ac_n "(cached) $ac_c" 1>&6
17345 else
17346   cat > conftest.$ac_ext <<EOF
17347 #line 17348 "configure"
17348 #include "confdefs.h"
17349 /* System header to define __stub macros and hopefully few prototypes,
17350     which can conflict with char $ac_func(); below.  */
17351 #include <assert.h>
17352 /* Override any gcc2 internal prototype to avoid an error.  */
17353 /* We use char because int might match the return type of a gcc2
17354     builtin and then its argument prototype would still apply.  */
17355 char $ac_func();
17356
17357 int main() {
17358
17359 /* The GNU C library defines this for functions which it implements
17360     to always fail with ENOSYS.  Some functions are actually named
17361     something starting with __ and the normal name is an alias.  */
17362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17363 choke me
17364 #else
17365 $ac_func();
17366 #endif
17367
17368 ; return 0; }
17369 EOF
17370 if { (eval echo configure:17371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17371   rm -rf conftest*
17372   eval "ac_cv_func_$ac_func=yes"
17373 else
17374   echo "configure: failed program was:" >&5
17375   cat conftest.$ac_ext >&5
17376   rm -rf conftest*
17377   eval "ac_cv_func_$ac_func=no"
17378 fi
17379 rm -f conftest*
17380 fi
17381
17382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17383   echo "$ac_t""yes" 1>&6
17384     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17385   cat >> confdefs.h <<EOF
17386 #define $ac_tr_func 1
17387 EOF
17388  
17389 else
17390   echo "$ac_t""no" 1>&6
17391 fi
17392 done
17393     
17394   else
17395     
17396   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
17397 echo "configure:17398: checking for _ldexpl declaration" >&5
17398   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
17399     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
17400   echo $ac_n "(cached) $ac_c" 1>&6
17401 else
17402   
17403       
17404       ac_ext=C
17405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17406 ac_cpp='$CXXCPP $CPPFLAGS'
17407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17409 cross_compiling=$ac_cv_prog_cxx_cross
17410
17411       cat > conftest.$ac_ext <<EOF
17412 #line 17413 "configure"
17413 #include "confdefs.h"
17414 #include <math.h>
17415 int main() {
17416  _ldexpl(0, 0);
17417 ; return 0; }
17418 EOF
17419 if { (eval echo configure:17420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17420   rm -rf conftest*
17421   glibcpp_cv_func__ldexpl_use=yes
17422 else
17423   echo "configure: failed program was:" >&5
17424   cat conftest.$ac_ext >&5
17425   rm -rf conftest*
17426   glibcpp_cv_func__ldexpl_use=no
17427 fi
17428 rm -f conftest*
17429       ac_ext=c
17430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17431 ac_cpp='$CPP $CPPFLAGS'
17432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17434 cross_compiling=$ac_cv_prog_cc_cross
17435
17436     
17437 fi
17438
17439   fi
17440   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
17441
17442     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
17443       for ac_func in _ldexpl
17444 do
17445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17446 echo "configure:17447: checking for $ac_func" >&5
17447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17448   echo $ac_n "(cached) $ac_c" 1>&6
17449 else
17450   cat > conftest.$ac_ext <<EOF
17451 #line 17452 "configure"
17452 #include "confdefs.h"
17453 /* System header to define __stub macros and hopefully few prototypes,
17454     which can conflict with char $ac_func(); below.  */
17455 #include <assert.h>
17456 /* Override any gcc2 internal prototype to avoid an error.  */
17457 /* We use char because int might match the return type of a gcc2
17458     builtin and then its argument prototype would still apply.  */
17459 char $ac_func();
17460
17461 int main() {
17462
17463 /* The GNU C library defines this for functions which it implements
17464     to always fail with ENOSYS.  Some functions are actually named
17465     something starting with __ and the normal name is an alias.  */
17466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17467 choke me
17468 #else
17469 $ac_func();
17470 #endif
17471
17472 ; return 0; }
17473 EOF
17474 if { (eval echo configure:17475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17475   rm -rf conftest*
17476   eval "ac_cv_func_$ac_func=yes"
17477 else
17478   echo "configure: failed program was:" >&5
17479   cat conftest.$ac_ext >&5
17480   rm -rf conftest*
17481   eval "ac_cv_func_$ac_func=no"
17482 fi
17483 rm -f conftest*
17484 fi
17485
17486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17487   echo "$ac_t""yes" 1>&6
17488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17489   cat >> confdefs.h <<EOF
17490 #define $ac_tr_func 1
17491 EOF
17492  
17493 else
17494   echo "$ac_t""no" 1>&6
17495 fi
17496 done
17497     
17498     fi
17499   fi
17500
17501   
17502   
17503   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
17504 echo "configure:17505: checking for logl declaration" >&5
17505   if test x${glibcpp_cv_func_logl_use+set} != xset; then
17506     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
17507   echo $ac_n "(cached) $ac_c" 1>&6
17508 else
17509   
17510       
17511       ac_ext=C
17512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17513 ac_cpp='$CXXCPP $CPPFLAGS'
17514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17516 cross_compiling=$ac_cv_prog_cxx_cross
17517
17518       cat > conftest.$ac_ext <<EOF
17519 #line 17520 "configure"
17520 #include "confdefs.h"
17521 #include <math.h>
17522                       #ifdef HAVE_IEEEFP_H
17523                       #include <ieeefp.h>
17524                       #endif
17525                      
17526 int main() {
17527  logl(0);
17528 ; return 0; }
17529 EOF
17530 if { (eval echo configure:17531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17531   rm -rf conftest*
17532   glibcpp_cv_func_logl_use=yes
17533 else
17534   echo "configure: failed program was:" >&5
17535   cat conftest.$ac_ext >&5
17536   rm -rf conftest*
17537   glibcpp_cv_func_logl_use=no
17538 fi
17539 rm -f conftest*
17540       ac_ext=c
17541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17542 ac_cpp='$CPP $CPPFLAGS'
17543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17545 cross_compiling=$ac_cv_prog_cc_cross
17546
17547     
17548 fi
17549
17550   fi
17551   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
17552
17553   if test x$glibcpp_cv_func_logl_use = x"yes"; then
17554     for ac_func in logl
17555 do
17556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17557 echo "configure:17558: checking for $ac_func" >&5
17558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17559   echo $ac_n "(cached) $ac_c" 1>&6
17560 else
17561   cat > conftest.$ac_ext <<EOF
17562 #line 17563 "configure"
17563 #include "confdefs.h"
17564 /* System header to define __stub macros and hopefully few prototypes,
17565     which can conflict with char $ac_func(); below.  */
17566 #include <assert.h>
17567 /* Override any gcc2 internal prototype to avoid an error.  */
17568 /* We use char because int might match the return type of a gcc2
17569     builtin and then its argument prototype would still apply.  */
17570 char $ac_func();
17571
17572 int main() {
17573
17574 /* The GNU C library defines this for functions which it implements
17575     to always fail with ENOSYS.  Some functions are actually named
17576     something starting with __ and the normal name is an alias.  */
17577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17578 choke me
17579 #else
17580 $ac_func();
17581 #endif
17582
17583 ; return 0; }
17584 EOF
17585 if { (eval echo configure:17586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17586   rm -rf conftest*
17587   eval "ac_cv_func_$ac_func=yes"
17588 else
17589   echo "configure: failed program was:" >&5
17590   cat conftest.$ac_ext >&5
17591   rm -rf conftest*
17592   eval "ac_cv_func_$ac_func=no"
17593 fi
17594 rm -f conftest*
17595 fi
17596
17597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17598   echo "$ac_t""yes" 1>&6
17599     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17600   cat >> confdefs.h <<EOF
17601 #define $ac_tr_func 1
17602 EOF
17603  
17604 else
17605   echo "$ac_t""no" 1>&6
17606 fi
17607 done
17608     
17609   else
17610     
17611   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
17612 echo "configure:17613: checking for _logl declaration" >&5
17613   if test x${glibcpp_cv_func__logl_use+set} != xset; then
17614     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
17615   echo $ac_n "(cached) $ac_c" 1>&6
17616 else
17617   
17618       
17619       ac_ext=C
17620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17621 ac_cpp='$CXXCPP $CPPFLAGS'
17622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17624 cross_compiling=$ac_cv_prog_cxx_cross
17625
17626       cat > conftest.$ac_ext <<EOF
17627 #line 17628 "configure"
17628 #include "confdefs.h"
17629 #include <math.h>
17630                       #ifdef HAVE_IEEEFP_H
17631                       #include <ieeefp.h>
17632                       #endif
17633                      
17634 int main() {
17635  _logl(0);
17636 ; return 0; }
17637 EOF
17638 if { (eval echo configure:17639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17639   rm -rf conftest*
17640   glibcpp_cv_func__logl_use=yes
17641 else
17642   echo "configure: failed program was:" >&5
17643   cat conftest.$ac_ext >&5
17644   rm -rf conftest*
17645   glibcpp_cv_func__logl_use=no
17646 fi
17647 rm -f conftest*
17648       ac_ext=c
17649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17650 ac_cpp='$CPP $CPPFLAGS'
17651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17653 cross_compiling=$ac_cv_prog_cc_cross
17654
17655     
17656 fi
17657
17658   fi
17659   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
17660
17661     if test x$glibcpp_cv_func__logl_use = x"yes"; then
17662       for ac_func in _logl
17663 do
17664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17665 echo "configure:17666: checking for $ac_func" >&5
17666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17667   echo $ac_n "(cached) $ac_c" 1>&6
17668 else
17669   cat > conftest.$ac_ext <<EOF
17670 #line 17671 "configure"
17671 #include "confdefs.h"
17672 /* System header to define __stub macros and hopefully few prototypes,
17673     which can conflict with char $ac_func(); below.  */
17674 #include <assert.h>
17675 /* Override any gcc2 internal prototype to avoid an error.  */
17676 /* We use char because int might match the return type of a gcc2
17677     builtin and then its argument prototype would still apply.  */
17678 char $ac_func();
17679
17680 int main() {
17681
17682 /* The GNU C library defines this for functions which it implements
17683     to always fail with ENOSYS.  Some functions are actually named
17684     something starting with __ and the normal name is an alias.  */
17685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17686 choke me
17687 #else
17688 $ac_func();
17689 #endif
17690
17691 ; return 0; }
17692 EOF
17693 if { (eval echo configure:17694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17694   rm -rf conftest*
17695   eval "ac_cv_func_$ac_func=yes"
17696 else
17697   echo "configure: failed program was:" >&5
17698   cat conftest.$ac_ext >&5
17699   rm -rf conftest*
17700   eval "ac_cv_func_$ac_func=no"
17701 fi
17702 rm -f conftest*
17703 fi
17704
17705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17706   echo "$ac_t""yes" 1>&6
17707     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17708   cat >> confdefs.h <<EOF
17709 #define $ac_tr_func 1
17710 EOF
17711  
17712 else
17713   echo "$ac_t""no" 1>&6
17714 fi
17715 done
17716     
17717     fi
17718   fi
17719
17720   
17721   
17722   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
17723 echo "configure:17724: checking for log10l declaration" >&5
17724   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
17725     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
17726   echo $ac_n "(cached) $ac_c" 1>&6
17727 else
17728   
17729       
17730       ac_ext=C
17731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17732 ac_cpp='$CXXCPP $CPPFLAGS'
17733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17735 cross_compiling=$ac_cv_prog_cxx_cross
17736
17737       cat > conftest.$ac_ext <<EOF
17738 #line 17739 "configure"
17739 #include "confdefs.h"
17740 #include <math.h>
17741                       #ifdef HAVE_IEEEFP_H
17742                       #include <ieeefp.h>
17743                       #endif
17744                      
17745 int main() {
17746  log10l(0);
17747 ; return 0; }
17748 EOF
17749 if { (eval echo configure:17750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17750   rm -rf conftest*
17751   glibcpp_cv_func_log10l_use=yes
17752 else
17753   echo "configure: failed program was:" >&5
17754   cat conftest.$ac_ext >&5
17755   rm -rf conftest*
17756   glibcpp_cv_func_log10l_use=no
17757 fi
17758 rm -f conftest*
17759       ac_ext=c
17760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17761 ac_cpp='$CPP $CPPFLAGS'
17762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17764 cross_compiling=$ac_cv_prog_cc_cross
17765
17766     
17767 fi
17768
17769   fi
17770   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
17771
17772   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
17773     for ac_func in log10l
17774 do
17775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17776 echo "configure:17777: checking for $ac_func" >&5
17777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17778   echo $ac_n "(cached) $ac_c" 1>&6
17779 else
17780   cat > conftest.$ac_ext <<EOF
17781 #line 17782 "configure"
17782 #include "confdefs.h"
17783 /* System header to define __stub macros and hopefully few prototypes,
17784     which can conflict with char $ac_func(); below.  */
17785 #include <assert.h>
17786 /* Override any gcc2 internal prototype to avoid an error.  */
17787 /* We use char because int might match the return type of a gcc2
17788     builtin and then its argument prototype would still apply.  */
17789 char $ac_func();
17790
17791 int main() {
17792
17793 /* The GNU C library defines this for functions which it implements
17794     to always fail with ENOSYS.  Some functions are actually named
17795     something starting with __ and the normal name is an alias.  */
17796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17797 choke me
17798 #else
17799 $ac_func();
17800 #endif
17801
17802 ; return 0; }
17803 EOF
17804 if { (eval echo configure:17805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17805   rm -rf conftest*
17806   eval "ac_cv_func_$ac_func=yes"
17807 else
17808   echo "configure: failed program was:" >&5
17809   cat conftest.$ac_ext >&5
17810   rm -rf conftest*
17811   eval "ac_cv_func_$ac_func=no"
17812 fi
17813 rm -f conftest*
17814 fi
17815
17816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17817   echo "$ac_t""yes" 1>&6
17818     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17819   cat >> confdefs.h <<EOF
17820 #define $ac_tr_func 1
17821 EOF
17822  
17823 else
17824   echo "$ac_t""no" 1>&6
17825 fi
17826 done
17827     
17828   else
17829     
17830   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
17831 echo "configure:17832: checking for _log10l declaration" >&5
17832   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
17833     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
17834   echo $ac_n "(cached) $ac_c" 1>&6
17835 else
17836   
17837       
17838       ac_ext=C
17839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17840 ac_cpp='$CXXCPP $CPPFLAGS'
17841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17843 cross_compiling=$ac_cv_prog_cxx_cross
17844
17845       cat > conftest.$ac_ext <<EOF
17846 #line 17847 "configure"
17847 #include "confdefs.h"
17848 #include <math.h>
17849                       #ifdef HAVE_IEEEFP_H
17850                       #include <ieeefp.h>
17851                       #endif
17852                      
17853 int main() {
17854  _log10l(0);
17855 ; return 0; }
17856 EOF
17857 if { (eval echo configure:17858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17858   rm -rf conftest*
17859   glibcpp_cv_func__log10l_use=yes
17860 else
17861   echo "configure: failed program was:" >&5
17862   cat conftest.$ac_ext >&5
17863   rm -rf conftest*
17864   glibcpp_cv_func__log10l_use=no
17865 fi
17866 rm -f conftest*
17867       ac_ext=c
17868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17869 ac_cpp='$CPP $CPPFLAGS'
17870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17872 cross_compiling=$ac_cv_prog_cc_cross
17873
17874     
17875 fi
17876
17877   fi
17878   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
17879
17880     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
17881       for ac_func in _log10l
17882 do
17883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17884 echo "configure:17885: checking for $ac_func" >&5
17885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17886   echo $ac_n "(cached) $ac_c" 1>&6
17887 else
17888   cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17891 /* System header to define __stub macros and hopefully few prototypes,
17892     which can conflict with char $ac_func(); below.  */
17893 #include <assert.h>
17894 /* Override any gcc2 internal prototype to avoid an error.  */
17895 /* We use char because int might match the return type of a gcc2
17896     builtin and then its argument prototype would still apply.  */
17897 char $ac_func();
17898
17899 int main() {
17900
17901 /* The GNU C library defines this for functions which it implements
17902     to always fail with ENOSYS.  Some functions are actually named
17903     something starting with __ and the normal name is an alias.  */
17904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17905 choke me
17906 #else
17907 $ac_func();
17908 #endif
17909
17910 ; return 0; }
17911 EOF
17912 if { (eval echo configure:17913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17913   rm -rf conftest*
17914   eval "ac_cv_func_$ac_func=yes"
17915 else
17916   echo "configure: failed program was:" >&5
17917   cat conftest.$ac_ext >&5
17918   rm -rf conftest*
17919   eval "ac_cv_func_$ac_func=no"
17920 fi
17921 rm -f conftest*
17922 fi
17923
17924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17925   echo "$ac_t""yes" 1>&6
17926     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17927   cat >> confdefs.h <<EOF
17928 #define $ac_tr_func 1
17929 EOF
17930  
17931 else
17932   echo "$ac_t""no" 1>&6
17933 fi
17934 done
17935     
17936     fi
17937   fi
17938
17939   
17940   
17941   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
17942 echo "configure:17943: checking for modfl declaration" >&5
17943   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
17944     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
17945   echo $ac_n "(cached) $ac_c" 1>&6
17946 else
17947   
17948       
17949       ac_ext=C
17950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17951 ac_cpp='$CXXCPP $CPPFLAGS'
17952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17954 cross_compiling=$ac_cv_prog_cxx_cross
17955
17956       cat > conftest.$ac_ext <<EOF
17957 #line 17958 "configure"
17958 #include "confdefs.h"
17959 #include <math.h>
17960 int main() {
17961  modfl(0, 0);
17962 ; return 0; }
17963 EOF
17964 if { (eval echo configure:17965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17965   rm -rf conftest*
17966   glibcpp_cv_func_modfl_use=yes
17967 else
17968   echo "configure: failed program was:" >&5
17969   cat conftest.$ac_ext >&5
17970   rm -rf conftest*
17971   glibcpp_cv_func_modfl_use=no
17972 fi
17973 rm -f conftest*
17974       ac_ext=c
17975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17976 ac_cpp='$CPP $CPPFLAGS'
17977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17979 cross_compiling=$ac_cv_prog_cc_cross
17980
17981     
17982 fi
17983
17984   fi
17985   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
17986
17987   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
17988     for ac_func in modfl
17989 do
17990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17991 echo "configure:17992: checking for $ac_func" >&5
17992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17993   echo $ac_n "(cached) $ac_c" 1>&6
17994 else
17995   cat > conftest.$ac_ext <<EOF
17996 #line 17997 "configure"
17997 #include "confdefs.h"
17998 /* System header to define __stub macros and hopefully few prototypes,
17999     which can conflict with char $ac_func(); below.  */
18000 #include <assert.h>
18001 /* Override any gcc2 internal prototype to avoid an error.  */
18002 /* We use char because int might match the return type of a gcc2
18003     builtin and then its argument prototype would still apply.  */
18004 char $ac_func();
18005
18006 int main() {
18007
18008 /* The GNU C library defines this for functions which it implements
18009     to always fail with ENOSYS.  Some functions are actually named
18010     something starting with __ and the normal name is an alias.  */
18011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18012 choke me
18013 #else
18014 $ac_func();
18015 #endif
18016
18017 ; return 0; }
18018 EOF
18019 if { (eval echo configure:18020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18020   rm -rf conftest*
18021   eval "ac_cv_func_$ac_func=yes"
18022 else
18023   echo "configure: failed program was:" >&5
18024   cat conftest.$ac_ext >&5
18025   rm -rf conftest*
18026   eval "ac_cv_func_$ac_func=no"
18027 fi
18028 rm -f conftest*
18029 fi
18030
18031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18032   echo "$ac_t""yes" 1>&6
18033     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18034   cat >> confdefs.h <<EOF
18035 #define $ac_tr_func 1
18036 EOF
18037  
18038 else
18039   echo "$ac_t""no" 1>&6
18040 fi
18041 done
18042     
18043   else
18044     
18045   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18046 echo "configure:18047: checking for _modfl declaration" >&5
18047   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18048     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18049   echo $ac_n "(cached) $ac_c" 1>&6
18050 else
18051   
18052       
18053       ac_ext=C
18054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18055 ac_cpp='$CXXCPP $CPPFLAGS'
18056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18058 cross_compiling=$ac_cv_prog_cxx_cross
18059
18060       cat > conftest.$ac_ext <<EOF
18061 #line 18062 "configure"
18062 #include "confdefs.h"
18063 #include <math.h>
18064 int main() {
18065  _modfl(0, 0);
18066 ; return 0; }
18067 EOF
18068 if { (eval echo configure:18069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18069   rm -rf conftest*
18070   glibcpp_cv_func__modfl_use=yes
18071 else
18072   echo "configure: failed program was:" >&5
18073   cat conftest.$ac_ext >&5
18074   rm -rf conftest*
18075   glibcpp_cv_func__modfl_use=no
18076 fi
18077 rm -f conftest*
18078       ac_ext=c
18079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18080 ac_cpp='$CPP $CPPFLAGS'
18081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18083 cross_compiling=$ac_cv_prog_cc_cross
18084
18085     
18086 fi
18087
18088   fi
18089   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
18090
18091     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
18092       for ac_func in _modfl
18093 do
18094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18095 echo "configure:18096: checking for $ac_func" >&5
18096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18097   echo $ac_n "(cached) $ac_c" 1>&6
18098 else
18099   cat > conftest.$ac_ext <<EOF
18100 #line 18101 "configure"
18101 #include "confdefs.h"
18102 /* System header to define __stub macros and hopefully few prototypes,
18103     which can conflict with char $ac_func(); below.  */
18104 #include <assert.h>
18105 /* Override any gcc2 internal prototype to avoid an error.  */
18106 /* We use char because int might match the return type of a gcc2
18107     builtin and then its argument prototype would still apply.  */
18108 char $ac_func();
18109
18110 int main() {
18111
18112 /* The GNU C library defines this for functions which it implements
18113     to always fail with ENOSYS.  Some functions are actually named
18114     something starting with __ and the normal name is an alias.  */
18115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18116 choke me
18117 #else
18118 $ac_func();
18119 #endif
18120
18121 ; return 0; }
18122 EOF
18123 if { (eval echo configure:18124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18124   rm -rf conftest*
18125   eval "ac_cv_func_$ac_func=yes"
18126 else
18127   echo "configure: failed program was:" >&5
18128   cat conftest.$ac_ext >&5
18129   rm -rf conftest*
18130   eval "ac_cv_func_$ac_func=no"
18131 fi
18132 rm -f conftest*
18133 fi
18134
18135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18136   echo "$ac_t""yes" 1>&6
18137     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18138   cat >> confdefs.h <<EOF
18139 #define $ac_tr_func 1
18140 EOF
18141  
18142 else
18143   echo "$ac_t""no" 1>&6
18144 fi
18145 done
18146     
18147     fi
18148   fi
18149
18150   
18151   
18152   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
18153 echo "configure:18154: checking for powl declaration" >&5
18154   if test x${glibcpp_cv_func_powl_use+set} != xset; then
18155     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
18156   echo $ac_n "(cached) $ac_c" 1>&6
18157 else
18158   
18159       
18160       ac_ext=C
18161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18162 ac_cpp='$CXXCPP $CPPFLAGS'
18163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18165 cross_compiling=$ac_cv_prog_cxx_cross
18166
18167       cat > conftest.$ac_ext <<EOF
18168 #line 18169 "configure"
18169 #include "confdefs.h"
18170 #include <math.h>
18171 int main() {
18172  powl(0, 0);
18173 ; return 0; }
18174 EOF
18175 if { (eval echo configure:18176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18176   rm -rf conftest*
18177   glibcpp_cv_func_powl_use=yes
18178 else
18179   echo "configure: failed program was:" >&5
18180   cat conftest.$ac_ext >&5
18181   rm -rf conftest*
18182   glibcpp_cv_func_powl_use=no
18183 fi
18184 rm -f conftest*
18185       ac_ext=c
18186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18187 ac_cpp='$CPP $CPPFLAGS'
18188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18190 cross_compiling=$ac_cv_prog_cc_cross
18191
18192     
18193 fi
18194
18195   fi
18196   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
18197
18198   if test x$glibcpp_cv_func_powl_use = x"yes"; then
18199     for ac_func in powl
18200 do
18201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18202 echo "configure:18203: checking for $ac_func" >&5
18203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18204   echo $ac_n "(cached) $ac_c" 1>&6
18205 else
18206   cat > conftest.$ac_ext <<EOF
18207 #line 18208 "configure"
18208 #include "confdefs.h"
18209 /* System header to define __stub macros and hopefully few prototypes,
18210     which can conflict with char $ac_func(); below.  */
18211 #include <assert.h>
18212 /* Override any gcc2 internal prototype to avoid an error.  */
18213 /* We use char because int might match the return type of a gcc2
18214     builtin and then its argument prototype would still apply.  */
18215 char $ac_func();
18216
18217 int main() {
18218
18219 /* The GNU C library defines this for functions which it implements
18220     to always fail with ENOSYS.  Some functions are actually named
18221     something starting with __ and the normal name is an alias.  */
18222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18223 choke me
18224 #else
18225 $ac_func();
18226 #endif
18227
18228 ; return 0; }
18229 EOF
18230 if { (eval echo configure:18231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18231   rm -rf conftest*
18232   eval "ac_cv_func_$ac_func=yes"
18233 else
18234   echo "configure: failed program was:" >&5
18235   cat conftest.$ac_ext >&5
18236   rm -rf conftest*
18237   eval "ac_cv_func_$ac_func=no"
18238 fi
18239 rm -f conftest*
18240 fi
18241
18242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18243   echo "$ac_t""yes" 1>&6
18244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18245   cat >> confdefs.h <<EOF
18246 #define $ac_tr_func 1
18247 EOF
18248  
18249 else
18250   echo "$ac_t""no" 1>&6
18251 fi
18252 done
18253     
18254   else
18255     
18256   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
18257 echo "configure:18258: checking for _powl declaration" >&5
18258   if test x${glibcpp_cv_func__powl_use+set} != xset; then
18259     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
18260   echo $ac_n "(cached) $ac_c" 1>&6
18261 else
18262   
18263       
18264       ac_ext=C
18265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18266 ac_cpp='$CXXCPP $CPPFLAGS'
18267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18269 cross_compiling=$ac_cv_prog_cxx_cross
18270
18271       cat > conftest.$ac_ext <<EOF
18272 #line 18273 "configure"
18273 #include "confdefs.h"
18274 #include <math.h>
18275 int main() {
18276  _powl(0, 0);
18277 ; return 0; }
18278 EOF
18279 if { (eval echo configure:18280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18280   rm -rf conftest*
18281   glibcpp_cv_func__powl_use=yes
18282 else
18283   echo "configure: failed program was:" >&5
18284   cat conftest.$ac_ext >&5
18285   rm -rf conftest*
18286   glibcpp_cv_func__powl_use=no
18287 fi
18288 rm -f conftest*
18289       ac_ext=c
18290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18291 ac_cpp='$CPP $CPPFLAGS'
18292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18294 cross_compiling=$ac_cv_prog_cc_cross
18295
18296     
18297 fi
18298
18299   fi
18300   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
18301
18302     if test x$glibcpp_cv_func__powl_use = x"yes"; then
18303       for ac_func in _powl
18304 do
18305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18306 echo "configure:18307: checking for $ac_func" >&5
18307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18308   echo $ac_n "(cached) $ac_c" 1>&6
18309 else
18310   cat > conftest.$ac_ext <<EOF
18311 #line 18312 "configure"
18312 #include "confdefs.h"
18313 /* System header to define __stub macros and hopefully few prototypes,
18314     which can conflict with char $ac_func(); below.  */
18315 #include <assert.h>
18316 /* Override any gcc2 internal prototype to avoid an error.  */
18317 /* We use char because int might match the return type of a gcc2
18318     builtin and then its argument prototype would still apply.  */
18319 char $ac_func();
18320
18321 int main() {
18322
18323 /* The GNU C library defines this for functions which it implements
18324     to always fail with ENOSYS.  Some functions are actually named
18325     something starting with __ and the normal name is an alias.  */
18326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18327 choke me
18328 #else
18329 $ac_func();
18330 #endif
18331
18332 ; return 0; }
18333 EOF
18334 if { (eval echo configure:18335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18335   rm -rf conftest*
18336   eval "ac_cv_func_$ac_func=yes"
18337 else
18338   echo "configure: failed program was:" >&5
18339   cat conftest.$ac_ext >&5
18340   rm -rf conftest*
18341   eval "ac_cv_func_$ac_func=no"
18342 fi
18343 rm -f conftest*
18344 fi
18345
18346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18347   echo "$ac_t""yes" 1>&6
18348     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18349   cat >> confdefs.h <<EOF
18350 #define $ac_tr_func 1
18351 EOF
18352  
18353 else
18354   echo "$ac_t""no" 1>&6
18355 fi
18356 done
18357     
18358     fi
18359   fi
18360
18361   
18362   
18363   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
18364 echo "configure:18365: checking for sqrtl declaration" >&5
18365   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
18366     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
18367   echo $ac_n "(cached) $ac_c" 1>&6
18368 else
18369   
18370       
18371       ac_ext=C
18372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18373 ac_cpp='$CXXCPP $CPPFLAGS'
18374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18376 cross_compiling=$ac_cv_prog_cxx_cross
18377
18378       cat > conftest.$ac_ext <<EOF
18379 #line 18380 "configure"
18380 #include "confdefs.h"
18381 #include <math.h>
18382                       #ifdef HAVE_IEEEFP_H
18383                       #include <ieeefp.h>
18384                       #endif
18385                      
18386 int main() {
18387  sqrtl(0);
18388 ; return 0; }
18389 EOF
18390 if { (eval echo configure:18391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18391   rm -rf conftest*
18392   glibcpp_cv_func_sqrtl_use=yes
18393 else
18394   echo "configure: failed program was:" >&5
18395   cat conftest.$ac_ext >&5
18396   rm -rf conftest*
18397   glibcpp_cv_func_sqrtl_use=no
18398 fi
18399 rm -f conftest*
18400       ac_ext=c
18401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18402 ac_cpp='$CPP $CPPFLAGS'
18403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18405 cross_compiling=$ac_cv_prog_cc_cross
18406
18407     
18408 fi
18409
18410   fi
18411   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
18412
18413   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
18414     for ac_func in sqrtl
18415 do
18416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18417 echo "configure:18418: checking for $ac_func" >&5
18418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18419   echo $ac_n "(cached) $ac_c" 1>&6
18420 else
18421   cat > conftest.$ac_ext <<EOF
18422 #line 18423 "configure"
18423 #include "confdefs.h"
18424 /* System header to define __stub macros and hopefully few prototypes,
18425     which can conflict with char $ac_func(); below.  */
18426 #include <assert.h>
18427 /* Override any gcc2 internal prototype to avoid an error.  */
18428 /* We use char because int might match the return type of a gcc2
18429     builtin and then its argument prototype would still apply.  */
18430 char $ac_func();
18431
18432 int main() {
18433
18434 /* The GNU C library defines this for functions which it implements
18435     to always fail with ENOSYS.  Some functions are actually named
18436     something starting with __ and the normal name is an alias.  */
18437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18438 choke me
18439 #else
18440 $ac_func();
18441 #endif
18442
18443 ; return 0; }
18444 EOF
18445 if { (eval echo configure:18446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18446   rm -rf conftest*
18447   eval "ac_cv_func_$ac_func=yes"
18448 else
18449   echo "configure: failed program was:" >&5
18450   cat conftest.$ac_ext >&5
18451   rm -rf conftest*
18452   eval "ac_cv_func_$ac_func=no"
18453 fi
18454 rm -f conftest*
18455 fi
18456
18457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18458   echo "$ac_t""yes" 1>&6
18459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18460   cat >> confdefs.h <<EOF
18461 #define $ac_tr_func 1
18462 EOF
18463  
18464 else
18465   echo "$ac_t""no" 1>&6
18466 fi
18467 done
18468     
18469   else
18470     
18471   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
18472 echo "configure:18473: checking for _sqrtl declaration" >&5
18473   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
18474     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
18475   echo $ac_n "(cached) $ac_c" 1>&6
18476 else
18477   
18478       
18479       ac_ext=C
18480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18481 ac_cpp='$CXXCPP $CPPFLAGS'
18482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18484 cross_compiling=$ac_cv_prog_cxx_cross
18485
18486       cat > conftest.$ac_ext <<EOF
18487 #line 18488 "configure"
18488 #include "confdefs.h"
18489 #include <math.h>
18490                       #ifdef HAVE_IEEEFP_H
18491                       #include <ieeefp.h>
18492                       #endif
18493                      
18494 int main() {
18495  _sqrtl(0);
18496 ; return 0; }
18497 EOF
18498 if { (eval echo configure:18499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18499   rm -rf conftest*
18500   glibcpp_cv_func__sqrtl_use=yes
18501 else
18502   echo "configure: failed program was:" >&5
18503   cat conftest.$ac_ext >&5
18504   rm -rf conftest*
18505   glibcpp_cv_func__sqrtl_use=no
18506 fi
18507 rm -f conftest*
18508       ac_ext=c
18509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18510 ac_cpp='$CPP $CPPFLAGS'
18511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18513 cross_compiling=$ac_cv_prog_cc_cross
18514
18515     
18516 fi
18517
18518   fi
18519   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
18520
18521     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
18522       for ac_func in _sqrtl
18523 do
18524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18525 echo "configure:18526: checking for $ac_func" >&5
18526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18527   echo $ac_n "(cached) $ac_c" 1>&6
18528 else
18529   cat > conftest.$ac_ext <<EOF
18530 #line 18531 "configure"
18531 #include "confdefs.h"
18532 /* System header to define __stub macros and hopefully few prototypes,
18533     which can conflict with char $ac_func(); below.  */
18534 #include <assert.h>
18535 /* Override any gcc2 internal prototype to avoid an error.  */
18536 /* We use char because int might match the return type of a gcc2
18537     builtin and then its argument prototype would still apply.  */
18538 char $ac_func();
18539
18540 int main() {
18541
18542 /* The GNU C library defines this for functions which it implements
18543     to always fail with ENOSYS.  Some functions are actually named
18544     something starting with __ and the normal name is an alias.  */
18545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18546 choke me
18547 #else
18548 $ac_func();
18549 #endif
18550
18551 ; return 0; }
18552 EOF
18553 if { (eval echo configure:18554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18554   rm -rf conftest*
18555   eval "ac_cv_func_$ac_func=yes"
18556 else
18557   echo "configure: failed program was:" >&5
18558   cat conftest.$ac_ext >&5
18559   rm -rf conftest*
18560   eval "ac_cv_func_$ac_func=no"
18561 fi
18562 rm -f conftest*
18563 fi
18564
18565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18566   echo "$ac_t""yes" 1>&6
18567     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18568   cat >> confdefs.h <<EOF
18569 #define $ac_tr_func 1
18570 EOF
18571  
18572 else
18573   echo "$ac_t""no" 1>&6
18574 fi
18575 done
18576     
18577     fi
18578   fi
18579
18580   
18581   
18582   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
18583 echo "configure:18584: checking for sincosl declaration" >&5
18584   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
18585     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
18586   echo $ac_n "(cached) $ac_c" 1>&6
18587 else
18588   
18589       
18590       ac_ext=C
18591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18592 ac_cpp='$CXXCPP $CPPFLAGS'
18593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18595 cross_compiling=$ac_cv_prog_cxx_cross
18596
18597       cat > conftest.$ac_ext <<EOF
18598 #line 18599 "configure"
18599 #include "confdefs.h"
18600 #include <math.h>
18601 int main() {
18602  sincosl(0, 0, 0);
18603 ; return 0; }
18604 EOF
18605 if { (eval echo configure:18606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18606   rm -rf conftest*
18607   glibcpp_cv_func_sincosl_use=yes
18608 else
18609   echo "configure: failed program was:" >&5
18610   cat conftest.$ac_ext >&5
18611   rm -rf conftest*
18612   glibcpp_cv_func_sincosl_use=no
18613 fi
18614 rm -f conftest*
18615       ac_ext=c
18616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18617 ac_cpp='$CPP $CPPFLAGS'
18618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18620 cross_compiling=$ac_cv_prog_cc_cross
18621
18622     
18623 fi
18624
18625   fi
18626   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
18627
18628   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
18629     for ac_func in sincosl
18630 do
18631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18632 echo "configure:18633: checking for $ac_func" >&5
18633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18634   echo $ac_n "(cached) $ac_c" 1>&6
18635 else
18636   cat > conftest.$ac_ext <<EOF
18637 #line 18638 "configure"
18638 #include "confdefs.h"
18639 /* System header to define __stub macros and hopefully few prototypes,
18640     which can conflict with char $ac_func(); below.  */
18641 #include <assert.h>
18642 /* Override any gcc2 internal prototype to avoid an error.  */
18643 /* We use char because int might match the return type of a gcc2
18644     builtin and then its argument prototype would still apply.  */
18645 char $ac_func();
18646
18647 int main() {
18648
18649 /* The GNU C library defines this for functions which it implements
18650     to always fail with ENOSYS.  Some functions are actually named
18651     something starting with __ and the normal name is an alias.  */
18652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18653 choke me
18654 #else
18655 $ac_func();
18656 #endif
18657
18658 ; return 0; }
18659 EOF
18660 if { (eval echo configure:18661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18661   rm -rf conftest*
18662   eval "ac_cv_func_$ac_func=yes"
18663 else
18664   echo "configure: failed program was:" >&5
18665   cat conftest.$ac_ext >&5
18666   rm -rf conftest*
18667   eval "ac_cv_func_$ac_func=no"
18668 fi
18669 rm -f conftest*
18670 fi
18671
18672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18673   echo "$ac_t""yes" 1>&6
18674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18675   cat >> confdefs.h <<EOF
18676 #define $ac_tr_func 1
18677 EOF
18678  
18679 else
18680   echo "$ac_t""no" 1>&6
18681 fi
18682 done
18683     
18684   else
18685     
18686   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
18687 echo "configure:18688: checking for _sincosl declaration" >&5
18688   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
18689     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
18690   echo $ac_n "(cached) $ac_c" 1>&6
18691 else
18692   
18693       
18694       ac_ext=C
18695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18696 ac_cpp='$CXXCPP $CPPFLAGS'
18697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18699 cross_compiling=$ac_cv_prog_cxx_cross
18700
18701       cat > conftest.$ac_ext <<EOF
18702 #line 18703 "configure"
18703 #include "confdefs.h"
18704 #include <math.h>
18705 int main() {
18706  _sincosl(0, 0, 0);
18707 ; return 0; }
18708 EOF
18709 if { (eval echo configure:18710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18710   rm -rf conftest*
18711   glibcpp_cv_func__sincosl_use=yes
18712 else
18713   echo "configure: failed program was:" >&5
18714   cat conftest.$ac_ext >&5
18715   rm -rf conftest*
18716   glibcpp_cv_func__sincosl_use=no
18717 fi
18718 rm -f conftest*
18719       ac_ext=c
18720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18721 ac_cpp='$CPP $CPPFLAGS'
18722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18724 cross_compiling=$ac_cv_prog_cc_cross
18725
18726     
18727 fi
18728
18729   fi
18730   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
18731
18732     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
18733       for ac_func in _sincosl
18734 do
18735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18736 echo "configure:18737: checking for $ac_func" >&5
18737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18738   echo $ac_n "(cached) $ac_c" 1>&6
18739 else
18740   cat > conftest.$ac_ext <<EOF
18741 #line 18742 "configure"
18742 #include "confdefs.h"
18743 /* System header to define __stub macros and hopefully few prototypes,
18744     which can conflict with char $ac_func(); below.  */
18745 #include <assert.h>
18746 /* Override any gcc2 internal prototype to avoid an error.  */
18747 /* We use char because int might match the return type of a gcc2
18748     builtin and then its argument prototype would still apply.  */
18749 char $ac_func();
18750
18751 int main() {
18752
18753 /* The GNU C library defines this for functions which it implements
18754     to always fail with ENOSYS.  Some functions are actually named
18755     something starting with __ and the normal name is an alias.  */
18756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18757 choke me
18758 #else
18759 $ac_func();
18760 #endif
18761
18762 ; return 0; }
18763 EOF
18764 if { (eval echo configure:18765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18765   rm -rf conftest*
18766   eval "ac_cv_func_$ac_func=yes"
18767 else
18768   echo "configure: failed program was:" >&5
18769   cat conftest.$ac_ext >&5
18770   rm -rf conftest*
18771   eval "ac_cv_func_$ac_func=no"
18772 fi
18773 rm -f conftest*
18774 fi
18775
18776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18777   echo "$ac_t""yes" 1>&6
18778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18779   cat >> confdefs.h <<EOF
18780 #define $ac_tr_func 1
18781 EOF
18782  
18783 else
18784   echo "$ac_t""no" 1>&6
18785 fi
18786 done
18787     
18788     fi
18789   fi
18790
18791   
18792   
18793   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
18794 echo "configure:18795: checking for finitel declaration" >&5
18795   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
18796     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
18797   echo $ac_n "(cached) $ac_c" 1>&6
18798 else
18799   
18800       
18801       ac_ext=C
18802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18803 ac_cpp='$CXXCPP $CPPFLAGS'
18804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18806 cross_compiling=$ac_cv_prog_cxx_cross
18807
18808       cat > conftest.$ac_ext <<EOF
18809 #line 18810 "configure"
18810 #include "confdefs.h"
18811 #include <math.h>
18812                       #ifdef HAVE_IEEEFP_H
18813                       #include <ieeefp.h>
18814                       #endif
18815                      
18816 int main() {
18817  finitel(0);
18818 ; return 0; }
18819 EOF
18820 if { (eval echo configure:18821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18821   rm -rf conftest*
18822   glibcpp_cv_func_finitel_use=yes
18823 else
18824   echo "configure: failed program was:" >&5
18825   cat conftest.$ac_ext >&5
18826   rm -rf conftest*
18827   glibcpp_cv_func_finitel_use=no
18828 fi
18829 rm -f conftest*
18830       ac_ext=c
18831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18832 ac_cpp='$CPP $CPPFLAGS'
18833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18835 cross_compiling=$ac_cv_prog_cc_cross
18836
18837     
18838 fi
18839
18840   fi
18841   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
18842
18843   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
18844     for ac_func in finitel
18845 do
18846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18847 echo "configure:18848: checking for $ac_func" >&5
18848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18849   echo $ac_n "(cached) $ac_c" 1>&6
18850 else
18851   cat > conftest.$ac_ext <<EOF
18852 #line 18853 "configure"
18853 #include "confdefs.h"
18854 /* System header to define __stub macros and hopefully few prototypes,
18855     which can conflict with char $ac_func(); below.  */
18856 #include <assert.h>
18857 /* Override any gcc2 internal prototype to avoid an error.  */
18858 /* We use char because int might match the return type of a gcc2
18859     builtin and then its argument prototype would still apply.  */
18860 char $ac_func();
18861
18862 int main() {
18863
18864 /* The GNU C library defines this for functions which it implements
18865     to always fail with ENOSYS.  Some functions are actually named
18866     something starting with __ and the normal name is an alias.  */
18867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18868 choke me
18869 #else
18870 $ac_func();
18871 #endif
18872
18873 ; return 0; }
18874 EOF
18875 if { (eval echo configure:18876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18876   rm -rf conftest*
18877   eval "ac_cv_func_$ac_func=yes"
18878 else
18879   echo "configure: failed program was:" >&5
18880   cat conftest.$ac_ext >&5
18881   rm -rf conftest*
18882   eval "ac_cv_func_$ac_func=no"
18883 fi
18884 rm -f conftest*
18885 fi
18886
18887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18888   echo "$ac_t""yes" 1>&6
18889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18890   cat >> confdefs.h <<EOF
18891 #define $ac_tr_func 1
18892 EOF
18893  
18894 else
18895   echo "$ac_t""no" 1>&6
18896 fi
18897 done
18898     
18899   else
18900     
18901   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
18902 echo "configure:18903: checking for _finitel declaration" >&5
18903   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
18904     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
18905   echo $ac_n "(cached) $ac_c" 1>&6
18906 else
18907   
18908       
18909       ac_ext=C
18910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18911 ac_cpp='$CXXCPP $CPPFLAGS'
18912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18914 cross_compiling=$ac_cv_prog_cxx_cross
18915
18916       cat > conftest.$ac_ext <<EOF
18917 #line 18918 "configure"
18918 #include "confdefs.h"
18919 #include <math.h>
18920                       #ifdef HAVE_IEEEFP_H
18921                       #include <ieeefp.h>
18922                       #endif
18923                      
18924 int main() {
18925  _finitel(0);
18926 ; return 0; }
18927 EOF
18928 if { (eval echo configure:18929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18929   rm -rf conftest*
18930   glibcpp_cv_func__finitel_use=yes
18931 else
18932   echo "configure: failed program was:" >&5
18933   cat conftest.$ac_ext >&5
18934   rm -rf conftest*
18935   glibcpp_cv_func__finitel_use=no
18936 fi
18937 rm -f conftest*
18938       ac_ext=c
18939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18940 ac_cpp='$CPP $CPPFLAGS'
18941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18943 cross_compiling=$ac_cv_prog_cc_cross
18944
18945     
18946 fi
18947
18948   fi
18949   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
18950
18951     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
18952       for ac_func in _finitel
18953 do
18954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18955 echo "configure:18956: checking for $ac_func" >&5
18956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18957   echo $ac_n "(cached) $ac_c" 1>&6
18958 else
18959   cat > conftest.$ac_ext <<EOF
18960 #line 18961 "configure"
18961 #include "confdefs.h"
18962 /* System header to define __stub macros and hopefully few prototypes,
18963     which can conflict with char $ac_func(); below.  */
18964 #include <assert.h>
18965 /* Override any gcc2 internal prototype to avoid an error.  */
18966 /* We use char because int might match the return type of a gcc2
18967     builtin and then its argument prototype would still apply.  */
18968 char $ac_func();
18969
18970 int main() {
18971
18972 /* The GNU C library defines this for functions which it implements
18973     to always fail with ENOSYS.  Some functions are actually named
18974     something starting with __ and the normal name is an alias.  */
18975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18976 choke me
18977 #else
18978 $ac_func();
18979 #endif
18980
18981 ; return 0; }
18982 EOF
18983 if { (eval echo configure:18984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18984   rm -rf conftest*
18985   eval "ac_cv_func_$ac_func=yes"
18986 else
18987   echo "configure: failed program was:" >&5
18988   cat conftest.$ac_ext >&5
18989   rm -rf conftest*
18990   eval "ac_cv_func_$ac_func=no"
18991 fi
18992 rm -f conftest*
18993 fi
18994
18995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18996   echo "$ac_t""yes" 1>&6
18997     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18998   cat >> confdefs.h <<EOF
18999 #define $ac_tr_func 1
19000 EOF
19001  
19002 else
19003   echo "$ac_t""no" 1>&6
19004 fi
19005 done
19006     
19007     fi
19008   fi
19009
19010
19011         
19012     
19013   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19014 echo "configure:19015: checking for _float trig functions" >&5
19015   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19016   echo $ac_n "(cached) $ac_c" 1>&6
19017 else
19018   
19019     
19020     ac_ext=C
19021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19022 ac_cpp='$CXXCPP $CPPFLAGS'
19023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19025 cross_compiling=$ac_cv_prog_cxx_cross
19026
19027     cat > conftest.$ac_ext <<EOF
19028 #line 19029 "configure"
19029 #include "confdefs.h"
19030 #include <math.h>
19031 int main() {
19032  `for x in _acosf _asinf _atanf \
19033                                           _cosf _sinf _tanf \
19034                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19035 ; return 0; }
19036 EOF
19037 if { (eval echo configure:19038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19038   rm -rf conftest*
19039   glibcpp_cv_func__float_trig_use=yes
19040 else
19041   echo "configure: failed program was:" >&5
19042   cat conftest.$ac_ext >&5
19043   rm -rf conftest*
19044   glibcpp_cv_func__float_trig_use=no
19045 fi
19046 rm -f conftest*
19047     ac_ext=c
19048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19049 ac_cpp='$CPP $CPPFLAGS'
19050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19052 cross_compiling=$ac_cv_prog_cc_cross
19053
19054 fi
19055
19056   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19057   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19058     for ac_func in _acosf _asinf _atanf \
19059                                           _cosf _sinf _tanf \
19060                                           _coshf _sinhf _tanhf
19061 do
19062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19063 echo "configure:19064: checking for $ac_func" >&5
19064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19065   echo $ac_n "(cached) $ac_c" 1>&6
19066 else
19067   cat > conftest.$ac_ext <<EOF
19068 #line 19069 "configure"
19069 #include "confdefs.h"
19070 /* System header to define __stub macros and hopefully few prototypes,
19071     which can conflict with char $ac_func(); below.  */
19072 #include <assert.h>
19073 /* Override any gcc2 internal prototype to avoid an error.  */
19074 /* We use char because int might match the return type of a gcc2
19075     builtin and then its argument prototype would still apply.  */
19076 char $ac_func();
19077
19078 int main() {
19079
19080 /* The GNU C library defines this for functions which it implements
19081     to always fail with ENOSYS.  Some functions are actually named
19082     something starting with __ and the normal name is an alias.  */
19083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19084 choke me
19085 #else
19086 $ac_func();
19087 #endif
19088
19089 ; return 0; }
19090 EOF
19091 if { (eval echo configure:19092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19092   rm -rf conftest*
19093   eval "ac_cv_func_$ac_func=yes"
19094 else
19095   echo "configure: failed program was:" >&5
19096   cat conftest.$ac_ext >&5
19097   rm -rf conftest*
19098   eval "ac_cv_func_$ac_func=no"
19099 fi
19100 rm -f conftest*
19101 fi
19102
19103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19104   echo "$ac_t""yes" 1>&6
19105     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19106   cat >> confdefs.h <<EOF
19107 #define $ac_tr_func 1
19108 EOF
19109  
19110 else
19111   echo "$ac_t""no" 1>&6
19112 fi
19113 done
19114
19115   fi
19116
19117   
19118   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
19119 echo "configure:19120: checking for _float round functions" >&5
19120   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
19121   echo $ac_n "(cached) $ac_c" 1>&6
19122 else
19123   
19124     
19125     ac_ext=C
19126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19127 ac_cpp='$CXXCPP $CPPFLAGS'
19128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19130 cross_compiling=$ac_cv_prog_cxx_cross
19131
19132     cat > conftest.$ac_ext <<EOF
19133 #line 19134 "configure"
19134 #include "confdefs.h"
19135 #include <math.h>
19136 int main() {
19137  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
19138 ; return 0; }
19139 EOF
19140 if { (eval echo configure:19141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19141   rm -rf conftest*
19142   glibcpp_cv_func__float_round_use=yes
19143 else
19144   echo "configure: failed program was:" >&5
19145   cat conftest.$ac_ext >&5
19146   rm -rf conftest*
19147   glibcpp_cv_func__float_round_use=no
19148 fi
19149 rm -f conftest*
19150     ac_ext=c
19151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19152 ac_cpp='$CPP $CPPFLAGS'
19153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19155 cross_compiling=$ac_cv_prog_cc_cross
19156
19157 fi
19158
19159   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
19160   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
19161     for ac_func in _ceilf _floorf
19162 do
19163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19164 echo "configure:19165: checking for $ac_func" >&5
19165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19166   echo $ac_n "(cached) $ac_c" 1>&6
19167 else
19168   cat > conftest.$ac_ext <<EOF
19169 #line 19170 "configure"
19170 #include "confdefs.h"
19171 /* System header to define __stub macros and hopefully few prototypes,
19172     which can conflict with char $ac_func(); below.  */
19173 #include <assert.h>
19174 /* Override any gcc2 internal prototype to avoid an error.  */
19175 /* We use char because int might match the return type of a gcc2
19176     builtin and then its argument prototype would still apply.  */
19177 char $ac_func();
19178
19179 int main() {
19180
19181 /* The GNU C library defines this for functions which it implements
19182     to always fail with ENOSYS.  Some functions are actually named
19183     something starting with __ and the normal name is an alias.  */
19184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19185 choke me
19186 #else
19187 $ac_func();
19188 #endif
19189
19190 ; return 0; }
19191 EOF
19192 if { (eval echo configure:19193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19193   rm -rf conftest*
19194   eval "ac_cv_func_$ac_func=yes"
19195 else
19196   echo "configure: failed program was:" >&5
19197   cat conftest.$ac_ext >&5
19198   rm -rf conftest*
19199   eval "ac_cv_func_$ac_func=no"
19200 fi
19201 rm -f conftest*
19202 fi
19203
19204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19205   echo "$ac_t""yes" 1>&6
19206     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19207   cat >> confdefs.h <<EOF
19208 #define $ac_tr_func 1
19209 EOF
19210  
19211 else
19212   echo "$ac_t""no" 1>&6
19213 fi
19214 done
19215
19216   fi
19217
19218
19219     
19220   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
19221 echo "configure:19222: checking for _long double trig functions" >&5
19222   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
19223   echo $ac_n "(cached) $ac_c" 1>&6
19224 else
19225   
19226     
19227     ac_ext=C
19228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19229 ac_cpp='$CXXCPP $CPPFLAGS'
19230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19232 cross_compiling=$ac_cv_prog_cxx_cross
19233
19234     cat > conftest.$ac_ext <<EOF
19235 #line 19236 "configure"
19236 #include "confdefs.h"
19237 #include <math.h>
19238 int main() {
19239  `for x in _acosl _asinl _atanl \
19240                                           _cosl _sinl _tanl \
19241                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
19242 ; return 0; }
19243 EOF
19244 if { (eval echo configure:19245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19245   rm -rf conftest*
19246   glibcpp_cv_func__long_double_trig_use=yes
19247 else
19248   echo "configure: failed program was:" >&5
19249   cat conftest.$ac_ext >&5
19250   rm -rf conftest*
19251   glibcpp_cv_func__long_double_trig_use=no
19252 fi
19253 rm -f conftest*
19254     ac_ext=c
19255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19256 ac_cpp='$CPP $CPPFLAGS'
19257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19259 cross_compiling=$ac_cv_prog_cc_cross
19260
19261 fi
19262
19263   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
19264   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
19265     for ac_func in _acosl _asinl _atanl \
19266                                           _cosl _sinl _tanl \
19267                                           _coshl _sinhl _tanhl
19268 do
19269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19270 echo "configure:19271: checking for $ac_func" >&5
19271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19272   echo $ac_n "(cached) $ac_c" 1>&6
19273 else
19274   cat > conftest.$ac_ext <<EOF
19275 #line 19276 "configure"
19276 #include "confdefs.h"
19277 /* System header to define __stub macros and hopefully few prototypes,
19278     which can conflict with char $ac_func(); below.  */
19279 #include <assert.h>
19280 /* Override any gcc2 internal prototype to avoid an error.  */
19281 /* We use char because int might match the return type of a gcc2
19282     builtin and then its argument prototype would still apply.  */
19283 char $ac_func();
19284
19285 int main() {
19286
19287 /* The GNU C library defines this for functions which it implements
19288     to always fail with ENOSYS.  Some functions are actually named
19289     something starting with __ and the normal name is an alias.  */
19290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19291 choke me
19292 #else
19293 $ac_func();
19294 #endif
19295
19296 ; return 0; }
19297 EOF
19298 if { (eval echo configure:19299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19299   rm -rf conftest*
19300   eval "ac_cv_func_$ac_func=yes"
19301 else
19302   echo "configure: failed program was:" >&5
19303   cat conftest.$ac_ext >&5
19304   rm -rf conftest*
19305   eval "ac_cv_func_$ac_func=no"
19306 fi
19307 rm -f conftest*
19308 fi
19309
19310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19311   echo "$ac_t""yes" 1>&6
19312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19313   cat >> confdefs.h <<EOF
19314 #define $ac_tr_func 1
19315 EOF
19316  
19317 else
19318   echo "$ac_t""no" 1>&6
19319 fi
19320 done
19321
19322   fi
19323
19324   
19325   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
19326 echo "configure:19327: checking for _long double round functions" >&5
19327   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
19328   echo $ac_n "(cached) $ac_c" 1>&6
19329 else
19330   
19331     
19332     ac_ext=C
19333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19334 ac_cpp='$CXXCPP $CPPFLAGS'
19335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19337 cross_compiling=$ac_cv_prog_cxx_cross
19338
19339     cat > conftest.$ac_ext <<EOF
19340 #line 19341 "configure"
19341 #include "confdefs.h"
19342 #include <math.h>
19343 int main() {
19344  `for x in _ceill _floorl; do echo "$x (0);"; done` 
19345 ; return 0; }
19346 EOF
19347 if { (eval echo configure:19348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19348   rm -rf conftest*
19349   glibcpp_cv_func__long_double_round_use=yes
19350 else
19351   echo "configure: failed program was:" >&5
19352   cat conftest.$ac_ext >&5
19353   rm -rf conftest*
19354   glibcpp_cv_func__long_double_round_use=no
19355 fi
19356 rm -f conftest*
19357     ac_ext=c
19358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19359 ac_cpp='$CPP $CPPFLAGS'
19360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19362 cross_compiling=$ac_cv_prog_cc_cross
19363
19364 fi
19365
19366   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
19367   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
19368     for ac_func in _ceill _floorl
19369 do
19370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19371 echo "configure:19372: checking for $ac_func" >&5
19372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19373   echo $ac_n "(cached) $ac_c" 1>&6
19374 else
19375   cat > conftest.$ac_ext <<EOF
19376 #line 19377 "configure"
19377 #include "confdefs.h"
19378 /* System header to define __stub macros and hopefully few prototypes,
19379     which can conflict with char $ac_func(); below.  */
19380 #include <assert.h>
19381 /* Override any gcc2 internal prototype to avoid an error.  */
19382 /* We use char because int might match the return type of a gcc2
19383     builtin and then its argument prototype would still apply.  */
19384 char $ac_func();
19385
19386 int main() {
19387
19388 /* The GNU C library defines this for functions which it implements
19389     to always fail with ENOSYS.  Some functions are actually named
19390     something starting with __ and the normal name is an alias.  */
19391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19392 choke me
19393 #else
19394 $ac_func();
19395 #endif
19396
19397 ; return 0; }
19398 EOF
19399 if { (eval echo configure:19400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19400   rm -rf conftest*
19401   eval "ac_cv_func_$ac_func=yes"
19402 else
19403   echo "configure: failed program was:" >&5
19404   cat conftest.$ac_ext >&5
19405   rm -rf conftest*
19406   eval "ac_cv_func_$ac_func=no"
19407 fi
19408 rm -f conftest*
19409 fi
19410
19411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19412   echo "$ac_t""yes" 1>&6
19413     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19414   cat >> confdefs.h <<EOF
19415 #define $ac_tr_func 1
19416 EOF
19417  
19418 else
19419   echo "$ac_t""no" 1>&6
19420 fi
19421 done
19422
19423   fi
19424
19425
19426   LIBS="$ac_save_LIBS"
19427   CXXFLAGS="$ac_save_CXXFLAGS"
19428
19429   
19430     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
19431 echo "configure:19432: checking for main in -lm" >&5
19432 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
19433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19434   echo $ac_n "(cached) $ac_c" 1>&6
19435 else
19436   ac_save_LIBS="$LIBS"
19437 LIBS="-lm  $LIBS"
19438 cat > conftest.$ac_ext <<EOF
19439 #line 19440 "configure"
19440 #include "confdefs.h"
19441
19442 int main() {
19443 main()
19444 ; return 0; }
19445 EOF
19446 if { (eval echo configure:19447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19447   rm -rf conftest*
19448   eval "ac_cv_lib_$ac_lib_var=yes"
19449 else
19450   echo "configure: failed program was:" >&5
19451   cat conftest.$ac_ext >&5
19452   rm -rf conftest*
19453   eval "ac_cv_lib_$ac_lib_var=no"
19454 fi
19455 rm -f conftest*
19456 LIBS="$ac_save_LIBS"
19457
19458 fi
19459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19460   echo "$ac_t""yes" 1>&6
19461     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19462     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19463   cat >> confdefs.h <<EOF
19464 #define $ac_tr_lib 1
19465 EOF
19466
19467   LIBS="-lm $LIBS"
19468
19469 else
19470   echo "$ac_t""no" 1>&6
19471 fi
19472
19473   for ac_func in nan copysignf
19474 do
19475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19476 echo "configure:19477: checking for $ac_func" >&5
19477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19478   echo $ac_n "(cached) $ac_c" 1>&6
19479 else
19480   cat > conftest.$ac_ext <<EOF
19481 #line 19482 "configure"
19482 #include "confdefs.h"
19483 /* System header to define __stub macros and hopefully few prototypes,
19484     which can conflict with char $ac_func(); below.  */
19485 #include <assert.h>
19486 /* Override any gcc2 internal prototype to avoid an error.  */
19487 /* We use char because int might match the return type of a gcc2
19488     builtin and then its argument prototype would still apply.  */
19489 char $ac_func();
19490
19491 int main() {
19492
19493 /* The GNU C library defines this for functions which it implements
19494     to always fail with ENOSYS.  Some functions are actually named
19495     something starting with __ and the normal name is an alias.  */
19496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19497 choke me
19498 #else
19499 $ac_func();
19500 #endif
19501
19502 ; return 0; }
19503 EOF
19504 if { (eval echo configure:19505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19505   rm -rf conftest*
19506   eval "ac_cv_func_$ac_func=yes"
19507 else
19508   echo "configure: failed program was:" >&5
19509   cat conftest.$ac_ext >&5
19510   rm -rf conftest*
19511   eval "ac_cv_func_$ac_func=no"
19512 fi
19513 rm -f conftest*
19514 fi
19515
19516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19517   echo "$ac_t""yes" 1>&6
19518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19519   cat >> confdefs.h <<EOF
19520 #define $ac_tr_func 1
19521 EOF
19522  
19523 else
19524   echo "$ac_t""no" 1>&6
19525 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
19526 fi
19527 done
19528
19529
19530     for ac_func in __signbit
19531 do
19532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19533 echo "configure:19534: checking for $ac_func" >&5
19534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19535   echo $ac_n "(cached) $ac_c" 1>&6
19536 else
19537   cat > conftest.$ac_ext <<EOF
19538 #line 19539 "configure"
19539 #include "confdefs.h"
19540 /* System header to define __stub macros and hopefully few prototypes,
19541     which can conflict with char $ac_func(); below.  */
19542 #include <assert.h>
19543 /* Override any gcc2 internal prototype to avoid an error.  */
19544 /* We use char because int might match the return type of a gcc2
19545     builtin and then its argument prototype would still apply.  */
19546 char $ac_func();
19547
19548 int main() {
19549
19550 /* The GNU C library defines this for functions which it implements
19551     to always fail with ENOSYS.  Some functions are actually named
19552     something starting with __ and the normal name is an alias.  */
19553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19554 choke me
19555 #else
19556 $ac_func();
19557 #endif
19558
19559 ; return 0; }
19560 EOF
19561 if { (eval echo configure:19562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19562   rm -rf conftest*
19563   eval "ac_cv_func_$ac_func=yes"
19564 else
19565   echo "configure: failed program was:" >&5
19566   cat conftest.$ac_ext >&5
19567   rm -rf conftest*
19568   eval "ac_cv_func_$ac_func=no"
19569 fi
19570 rm -f conftest*
19571 fi
19572
19573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19574   echo "$ac_t""yes" 1>&6
19575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19576   cat >> confdefs.h <<EOF
19577 #define $ac_tr_func 1
19578 EOF
19579  
19580 else
19581   echo "$ac_t""no" 1>&6
19582 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
19583 fi
19584 done
19585
19586   for ac_func in __signbitf
19587 do
19588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19589 echo "configure:19590: checking for $ac_func" >&5
19590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19591   echo $ac_n "(cached) $ac_c" 1>&6
19592 else
19593   cat > conftest.$ac_ext <<EOF
19594 #line 19595 "configure"
19595 #include "confdefs.h"
19596 /* System header to define __stub macros and hopefully few prototypes,
19597     which can conflict with char $ac_func(); below.  */
19598 #include <assert.h>
19599 /* Override any gcc2 internal prototype to avoid an error.  */
19600 /* We use char because int might match the return type of a gcc2
19601     builtin and then its argument prototype would still apply.  */
19602 char $ac_func();
19603
19604 int main() {
19605
19606 /* The GNU C library defines this for functions which it implements
19607     to always fail with ENOSYS.  Some functions are actually named
19608     something starting with __ and the normal name is an alias.  */
19609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19610 choke me
19611 #else
19612 $ac_func();
19613 #endif
19614
19615 ; return 0; }
19616 EOF
19617 if { (eval echo configure:19618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19618   rm -rf conftest*
19619   eval "ac_cv_func_$ac_func=yes"
19620 else
19621   echo "configure: failed program was:" >&5
19622   cat conftest.$ac_ext >&5
19623   rm -rf conftest*
19624   eval "ac_cv_func_$ac_func=no"
19625 fi
19626 rm -f conftest*
19627 fi
19628
19629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19630   echo "$ac_t""yes" 1>&6
19631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19632   cat >> confdefs.h <<EOF
19633 #define $ac_tr_func 1
19634 EOF
19635  
19636 else
19637   echo "$ac_t""no" 1>&6
19638 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
19639 fi
19640 done
19641
19642
19643           if test x$ac_cv_func_copysignl = x"yes"; then
19644     for ac_func in __signbitl
19645 do
19646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19647 echo "configure:19648: checking for $ac_func" >&5
19648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19649   echo $ac_n "(cached) $ac_c" 1>&6
19650 else
19651   cat > conftest.$ac_ext <<EOF
19652 #line 19653 "configure"
19653 #include "confdefs.h"
19654 /* System header to define __stub macros and hopefully few prototypes,
19655     which can conflict with char $ac_func(); below.  */
19656 #include <assert.h>
19657 /* Override any gcc2 internal prototype to avoid an error.  */
19658 /* We use char because int might match the return type of a gcc2
19659     builtin and then its argument prototype would still apply.  */
19660 char $ac_func();
19661
19662 int main() {
19663
19664 /* The GNU C library defines this for functions which it implements
19665     to always fail with ENOSYS.  Some functions are actually named
19666     something starting with __ and the normal name is an alias.  */
19667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19668 choke me
19669 #else
19670 $ac_func();
19671 #endif
19672
19673 ; return 0; }
19674 EOF
19675 if { (eval echo configure:19676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19676   rm -rf conftest*
19677   eval "ac_cv_func_$ac_func=yes"
19678 else
19679   echo "configure: failed program was:" >&5
19680   cat conftest.$ac_ext >&5
19681   rm -rf conftest*
19682   eval "ac_cv_func_$ac_func=no"
19683 fi
19684 rm -f conftest*
19685 fi
19686
19687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19688   echo "$ac_t""yes" 1>&6
19689     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19690   cat >> confdefs.h <<EOF
19691 #define $ac_tr_func 1
19692 EOF
19693  
19694 else
19695   echo "$ac_t""no" 1>&6
19696 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
19697 fi
19698 done
19699
19700   fi
19701
19702   
19703
19704   
19705
19706       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
19707 echo "configure:19708: checking for mbstate_t" >&5
19708   cat > conftest.$ac_ext <<EOF
19709 #line 19710 "configure"
19710 #include "confdefs.h"
19711 #include <wchar.h>
19712 int main() {
19713 mbstate_t teststate;
19714 ; return 0; }
19715 EOF
19716 if { (eval echo configure:19717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19717   rm -rf conftest*
19718   have_mbstate_t=yes
19719 else
19720   echo "configure: failed program was:" >&5
19721   cat conftest.$ac_ext >&5
19722   rm -rf conftest*
19723   have_mbstate_t=no
19724 fi
19725 rm -f conftest*
19726   echo "$ac_t""$have_mbstate_t" 1>&6
19727   if test x"$have_mbstate_t" = xyes; then
19728     cat >> confdefs.h <<\EOF
19729 #define HAVE_MBSTATE_T 1
19730 EOF
19731
19732   fi
19733
19734     for ac_hdr in wchar.h
19735 do
19736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19738 echo "configure:19739: checking for $ac_hdr" >&5
19739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19740   echo $ac_n "(cached) $ac_c" 1>&6
19741 else
19742   cat > conftest.$ac_ext <<EOF
19743 #line 19744 "configure"
19744 #include "confdefs.h"
19745 #include <$ac_hdr>
19746 EOF
19747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19748 { (eval echo configure:19749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19750 if test -z "$ac_err"; then
19751   rm -rf conftest*
19752   eval "ac_cv_header_$ac_safe=yes"
19753 else
19754   echo "$ac_err" >&5
19755   echo "configure: failed program was:" >&5
19756   cat conftest.$ac_ext >&5
19757   rm -rf conftest*
19758   eval "ac_cv_header_$ac_safe=no"
19759 fi
19760 rm -f conftest*
19761 fi
19762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19763   echo "$ac_t""yes" 1>&6
19764     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19765   cat >> confdefs.h <<EOF
19766 #define $ac_tr_hdr 1
19767 EOF
19768  ac_has_wchar_h=yes
19769 else
19770   echo "$ac_t""no" 1>&6
19771 ac_has_wchar_h=no
19772 fi
19773 done
19774
19775   for ac_hdr in wctype.h
19776 do
19777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19779 echo "configure:19780: checking for $ac_hdr" >&5
19780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19781   echo $ac_n "(cached) $ac_c" 1>&6
19782 else
19783   cat > conftest.$ac_ext <<EOF
19784 #line 19785 "configure"
19785 #include "confdefs.h"
19786 #include <$ac_hdr>
19787 EOF
19788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19789 { (eval echo configure:19790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19791 if test -z "$ac_err"; then
19792   rm -rf conftest*
19793   eval "ac_cv_header_$ac_safe=yes"
19794 else
19795   echo "$ac_err" >&5
19796   echo "configure: failed program was:" >&5
19797   cat conftest.$ac_ext >&5
19798   rm -rf conftest*
19799   eval "ac_cv_header_$ac_safe=no"
19800 fi
19801 rm -f conftest*
19802 fi
19803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19804   echo "$ac_t""yes" 1>&6
19805     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19806   cat >> confdefs.h <<EOF
19807 #define $ac_tr_hdr 1
19808 EOF
19809  ac_has_wctype_h=yes
19810 else
19811   echo "$ac_t""no" 1>&6
19812 ac_has_wctype_h=no
19813 fi
19814 done
19815
19816   
19817     if test x"$ac_has_wchar_h" = xyes &&
19818      test x"$ac_has_wctype_h" = xyes &&
19819      test x"$enable_c_mbchar" != xno; then
19820       
19821             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
19822 echo "configure:19823: checking for WCHAR_MIN and WCHAR_MAX" >&5
19823     cat > conftest.$ac_ext <<EOF
19824 #line 19825 "configure"
19825 #include "confdefs.h"
19826 #include <wchar.h>
19827 int main() {
19828 int i = WCHAR_MIN; int j = WCHAR_MAX;
19829 ; return 0; }
19830 EOF
19831 if { (eval echo configure:19832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19832   rm -rf conftest*
19833   has_wchar_minmax=yes
19834 else
19835   echo "configure: failed program was:" >&5
19836   cat conftest.$ac_ext >&5
19837   rm -rf conftest*
19838   has_wchar_minmax=no
19839 fi
19840 rm -f conftest*
19841     echo "$ac_t""$has_wchar_minmax" 1>&6
19842     
19843             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
19844 echo "configure:19845: checking for WEOF" >&5
19845     cat > conftest.$ac_ext <<EOF
19846 #line 19847 "configure"
19847 #include "confdefs.h"
19848
19849       #include <wchar.h>
19850       #include <stddef.h>
19851 int main() {
19852 wint_t i = WEOF;
19853 ; return 0; }
19854 EOF
19855 if { (eval echo configure:19856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19856   rm -rf conftest*
19857   has_weof=yes
19858 else
19859   echo "configure: failed program was:" >&5
19860   cat conftest.$ac_ext >&5
19861   rm -rf conftest*
19862   has_weof=no
19863 fi
19864 rm -f conftest*
19865     echo "$ac_t""$has_weof" 1>&6
19866   
19867         ac_wfuncs=yes
19868     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
19869 do
19870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19871 echo "configure:19872: checking for $ac_func" >&5
19872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19873   echo $ac_n "(cached) $ac_c" 1>&6
19874 else
19875   cat > conftest.$ac_ext <<EOF
19876 #line 19877 "configure"
19877 #include "confdefs.h"
19878 /* System header to define __stub macros and hopefully few prototypes,
19879     which can conflict with char $ac_func(); below.  */
19880 #include <assert.h>
19881 /* Override any gcc2 internal prototype to avoid an error.  */
19882 /* We use char because int might match the return type of a gcc2
19883     builtin and then its argument prototype would still apply.  */
19884 char $ac_func();
19885
19886 int main() {
19887
19888 /* The GNU C library defines this for functions which it implements
19889     to always fail with ENOSYS.  Some functions are actually named
19890     something starting with __ and the normal name is an alias.  */
19891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19892 choke me
19893 #else
19894 $ac_func();
19895 #endif
19896
19897 ; return 0; }
19898 EOF
19899 if { (eval echo configure:19900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19900   rm -rf conftest*
19901   eval "ac_cv_func_$ac_func=yes"
19902 else
19903   echo "configure: failed program was:" >&5
19904   cat conftest.$ac_ext >&5
19905   rm -rf conftest*
19906   eval "ac_cv_func_$ac_func=no"
19907 fi
19908 rm -f conftest*
19909 fi
19910
19911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19912   echo "$ac_t""yes" 1>&6
19913     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19914   cat >> confdefs.h <<EOF
19915 #define $ac_tr_func 1
19916 EOF
19917  
19918 else
19919   echo "$ac_t""no" 1>&6
19920 \
19921     ac_wfuncs=no
19922 fi
19923 done
19924
19925   
19926         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
19927     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
19928     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
19929     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
19930     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
19931     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
19932 do
19933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19934 echo "configure:19935: checking for $ac_func" >&5
19935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19936   echo $ac_n "(cached) $ac_c" 1>&6
19937 else
19938   cat > conftest.$ac_ext <<EOF
19939 #line 19940 "configure"
19940 #include "confdefs.h"
19941 /* System header to define __stub macros and hopefully few prototypes,
19942     which can conflict with char $ac_func(); below.  */
19943 #include <assert.h>
19944 /* Override any gcc2 internal prototype to avoid an error.  */
19945 /* We use char because int might match the return type of a gcc2
19946     builtin and then its argument prototype would still apply.  */
19947 char $ac_func();
19948
19949 int main() {
19950
19951 /* The GNU C library defines this for functions which it implements
19952     to always fail with ENOSYS.  Some functions are actually named
19953     something starting with __ and the normal name is an alias.  */
19954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19955 choke me
19956 #else
19957 $ac_func();
19958 #endif
19959
19960 ; return 0; }
19961 EOF
19962 if { (eval echo configure:19963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19963   rm -rf conftest*
19964   eval "ac_cv_func_$ac_func=yes"
19965 else
19966   echo "configure: failed program was:" >&5
19967   cat conftest.$ac_ext >&5
19968   rm -rf conftest*
19969   eval "ac_cv_func_$ac_func=no"
19970 fi
19971 rm -f conftest*
19972 fi
19973
19974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19975   echo "$ac_t""yes" 1>&6
19976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19977   cat >> confdefs.h <<EOF
19978 #define $ac_tr_func 1
19979 EOF
19980  
19981 else
19982   echo "$ac_t""no" 1>&6
19983 \
19984     ac_wfuncs=no
19985 fi
19986 done
19987
19988
19989     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
19990 echo "configure:19991: checking for ISO C99 wchar_t support" >&5
19991     if test x"$has_weof" = xyes &&
19992        test x"$has_wchar_minmax" = xyes &&
19993        test x"$ac_wfuncs" = xyes; then
19994       ac_isoC99_wchar_t=yes
19995     else
19996       ac_isoC99_wchar_t=no
19997     fi
19998     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
19999   
20000             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20001 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20002 echo "configure:20003: checking for iconv.h" >&5
20003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20004   echo $ac_n "(cached) $ac_c" 1>&6
20005 else
20006   cat > conftest.$ac_ext <<EOF
20007 #line 20008 "configure"
20008 #include "confdefs.h"
20009 #include <iconv.h>
20010 EOF
20011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20012 { (eval echo configure:20013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20014 if test -z "$ac_err"; then
20015   rm -rf conftest*
20016   eval "ac_cv_header_$ac_safe=yes"
20017 else
20018   echo "$ac_err" >&5
20019   echo "configure: failed program was:" >&5
20020   cat conftest.$ac_ext >&5
20021   rm -rf conftest*
20022   eval "ac_cv_header_$ac_safe=no"
20023 fi
20024 rm -f conftest*
20025 fi
20026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20027   echo "$ac_t""yes" 1>&6
20028   ac_has_iconv_h=yes
20029 else
20030   echo "$ac_t""no" 1>&6
20031 ac_has_iconv_h=no
20032 fi
20033
20034     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20035 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20036 echo "configure:20037: checking for langinfo.h" >&5
20037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20038   echo $ac_n "(cached) $ac_c" 1>&6
20039 else
20040   cat > conftest.$ac_ext <<EOF
20041 #line 20042 "configure"
20042 #include "confdefs.h"
20043 #include <langinfo.h>
20044 EOF
20045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20046 { (eval echo configure:20047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20048 if test -z "$ac_err"; then
20049   rm -rf conftest*
20050   eval "ac_cv_header_$ac_safe=yes"
20051 else
20052   echo "$ac_err" >&5
20053   echo "configure: failed program was:" >&5
20054   cat conftest.$ac_ext >&5
20055   rm -rf conftest*
20056   eval "ac_cv_header_$ac_safe=no"
20057 fi
20058 rm -f conftest*
20059 fi
20060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20061   echo "$ac_t""yes" 1>&6
20062   ac_has_langinfo_h=yes
20063 else
20064   echo "$ac_t""no" 1>&6
20065 ac_has_langinfo_h=no
20066 fi
20067
20068
20069         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20070 echo "configure:20071: checking for iconv in -liconv" >&5
20071 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20073   echo $ac_n "(cached) $ac_c" 1>&6
20074 else
20075   ac_save_LIBS="$LIBS"
20076 LIBS="-liconv  $LIBS"
20077 cat > conftest.$ac_ext <<EOF
20078 #line 20079 "configure"
20079 #include "confdefs.h"
20080 /* Override any gcc2 internal prototype to avoid an error.  */
20081 /* We use char because int might match the return type of a gcc2
20082     builtin and then its argument prototype would still apply.  */
20083 char iconv();
20084
20085 int main() {
20086 iconv()
20087 ; return 0; }
20088 EOF
20089 if { (eval echo configure:20090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20090   rm -rf conftest*
20091   eval "ac_cv_lib_$ac_lib_var=yes"
20092 else
20093   echo "configure: failed program was:" >&5
20094   cat conftest.$ac_ext >&5
20095   rm -rf conftest*
20096   eval "ac_cv_lib_$ac_lib_var=no"
20097 fi
20098 rm -f conftest*
20099 LIBS="$ac_save_LIBS"
20100
20101 fi
20102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20103   echo "$ac_t""yes" 1>&6
20104   libiconv="-liconv"
20105 else
20106   echo "$ac_t""no" 1>&6
20107 fi
20108
20109     ac_save_LIBS="$LIBS"
20110     LIBS="$LIBS $libiconv"
20111
20112     for ac_func in iconv_open iconv_close iconv nl_langinfo
20113 do
20114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20115 echo "configure:20116: checking for $ac_func" >&5
20116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20117   echo $ac_n "(cached) $ac_c" 1>&6
20118 else
20119   cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20122 /* System header to define __stub macros and hopefully few prototypes,
20123     which can conflict with char $ac_func(); below.  */
20124 #include <assert.h>
20125 /* Override any gcc2 internal prototype to avoid an error.  */
20126 /* We use char because int might match the return type of a gcc2
20127     builtin and then its argument prototype would still apply.  */
20128 char $ac_func();
20129
20130 int main() {
20131
20132 /* The GNU C library defines this for functions which it implements
20133     to always fail with ENOSYS.  Some functions are actually named
20134     something starting with __ and the normal name is an alias.  */
20135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20136 choke me
20137 #else
20138 $ac_func();
20139 #endif
20140
20141 ; return 0; }
20142 EOF
20143 if { (eval echo configure:20144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20144   rm -rf conftest*
20145   eval "ac_cv_func_$ac_func=yes"
20146 else
20147   echo "configure: failed program was:" >&5
20148   cat conftest.$ac_ext >&5
20149   rm -rf conftest*
20150   eval "ac_cv_func_$ac_func=no"
20151 fi
20152 rm -f conftest*
20153 fi
20154
20155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20156   echo "$ac_t""yes" 1>&6
20157     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20158   cat >> confdefs.h <<EOF
20159 #define $ac_tr_func 1
20160 EOF
20161  \
20162     ac_XPG2funcs=yes
20163 else
20164   echo "$ac_t""no" 1>&6
20165 ac_XPG2funcs=no
20166 fi
20167 done
20168
20169   
20170     LIBS="$ac_save_LIBS"
20171
20172     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
20173 echo "configure:20174: checking for XPG2 wchar_t support" >&5
20174     if test x"$ac_has_iconv_h" = xyes &&
20175        test x"$ac_has_langinfo_h" = xyes &&
20176        test x"$ac_XPG2funcs" = xyes; then
20177       ac_XPG2_wchar_t=yes
20178     else
20179       ac_XPG2_wchar_t=no
20180     fi
20181     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
20182   
20183             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
20184 echo "configure:20185: checking for enabled wchar_t specializations" >&5
20185     if test x"$ac_isoC99_wchar_t" = xyes &&
20186        test x"$ac_XPG2_wchar_t" = xyes; then
20187       cat >> confdefs.h <<\EOF
20188 #define _GLIBCPP_USE_WCHAR_T 1
20189 EOF
20190
20191       echo "$ac_t"""yes"" 1>&6
20192     else
20193       echo "$ac_t"""no"" 1>&6
20194     fi
20195   else
20196         echo "configure: warning: wchar_t support disabled." 1>&2
20197   fi
20198
20199   
20200   ac_test_CXXFLAGS="${CXXFLAGS+set}"
20201   ac_save_CXXFLAGS="$CXXFLAGS"
20202   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
20203
20204   
20205   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
20206 echo "configure:20207: checking for strtold declaration" >&5
20207   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
20208     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
20209   echo $ac_n "(cached) $ac_c" 1>&6
20210 else
20211   
20212       
20213       ac_ext=C
20214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20215 ac_cpp='$CXXCPP $CPPFLAGS'
20216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20218 cross_compiling=$ac_cv_prog_cxx_cross
20219
20220       cat > conftest.$ac_ext <<EOF
20221 #line 20222 "configure"
20222 #include "confdefs.h"
20223 #include <stdlib.h>
20224 int main() {
20225  strtold(0, 0);
20226 ; return 0; }
20227 EOF
20228 if { (eval echo configure:20229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20229   rm -rf conftest*
20230   glibcpp_cv_func_strtold_use=yes
20231 else
20232   echo "configure: failed program was:" >&5
20233   cat conftest.$ac_ext >&5
20234   rm -rf conftest*
20235   glibcpp_cv_func_strtold_use=no
20236 fi
20237 rm -f conftest*
20238       ac_ext=c
20239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20240 ac_cpp='$CPP $CPPFLAGS'
20241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20243 cross_compiling=$ac_cv_prog_cc_cross
20244
20245     
20246 fi
20247
20248   fi
20249   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
20250   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
20251     for ac_func in strtold
20252 do
20253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20254 echo "configure:20255: checking for $ac_func" >&5
20255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20256   echo $ac_n "(cached) $ac_c" 1>&6
20257 else
20258   cat > conftest.$ac_ext <<EOF
20259 #line 20260 "configure"
20260 #include "confdefs.h"
20261 /* System header to define __stub macros and hopefully few prototypes,
20262     which can conflict with char $ac_func(); below.  */
20263 #include <assert.h>
20264 /* Override any gcc2 internal prototype to avoid an error.  */
20265 /* We use char because int might match the return type of a gcc2
20266     builtin and then its argument prototype would still apply.  */
20267 char $ac_func();
20268
20269 int main() {
20270
20271 /* The GNU C library defines this for functions which it implements
20272     to always fail with ENOSYS.  Some functions are actually named
20273     something starting with __ and the normal name is an alias.  */
20274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20275 choke me
20276 #else
20277 $ac_func();
20278 #endif
20279
20280 ; return 0; }
20281 EOF
20282 if { (eval echo configure:20283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20283   rm -rf conftest*
20284   eval "ac_cv_func_$ac_func=yes"
20285 else
20286   echo "configure: failed program was:" >&5
20287   cat conftest.$ac_ext >&5
20288   rm -rf conftest*
20289   eval "ac_cv_func_$ac_func=no"
20290 fi
20291 rm -f conftest*
20292 fi
20293
20294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20295   echo "$ac_t""yes" 1>&6
20296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20297   cat >> confdefs.h <<EOF
20298 #define $ac_tr_func 1
20299 EOF
20300  
20301 else
20302   echo "$ac_t""no" 1>&6
20303 fi
20304 done
20305     
20306   fi
20307
20308   
20309   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
20310 echo "configure:20311: checking for strtof declaration" >&5
20311   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
20312     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
20313   echo $ac_n "(cached) $ac_c" 1>&6
20314 else
20315   
20316       
20317       ac_ext=C
20318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20319 ac_cpp='$CXXCPP $CPPFLAGS'
20320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20322 cross_compiling=$ac_cv_prog_cxx_cross
20323
20324       cat > conftest.$ac_ext <<EOF
20325 #line 20326 "configure"
20326 #include "confdefs.h"
20327 #include <stdlib.h>
20328 int main() {
20329  strtof(0, 0);
20330 ; return 0; }
20331 EOF
20332 if { (eval echo configure:20333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20333   rm -rf conftest*
20334   glibcpp_cv_func_strtof_use=yes
20335 else
20336   echo "configure: failed program was:" >&5
20337   cat conftest.$ac_ext >&5
20338   rm -rf conftest*
20339   glibcpp_cv_func_strtof_use=no
20340 fi
20341 rm -f conftest*
20342       ac_ext=c
20343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20344 ac_cpp='$CPP $CPPFLAGS'
20345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20347 cross_compiling=$ac_cv_prog_cc_cross
20348
20349     
20350 fi
20351
20352   fi
20353   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
20354   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
20355     for ac_func in strtof
20356 do
20357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20358 echo "configure:20359: checking for $ac_func" >&5
20359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20360   echo $ac_n "(cached) $ac_c" 1>&6
20361 else
20362   cat > conftest.$ac_ext <<EOF
20363 #line 20364 "configure"
20364 #include "confdefs.h"
20365 /* System header to define __stub macros and hopefully few prototypes,
20366     which can conflict with char $ac_func(); below.  */
20367 #include <assert.h>
20368 /* Override any gcc2 internal prototype to avoid an error.  */
20369 /* We use char because int might match the return type of a gcc2
20370     builtin and then its argument prototype would still apply.  */
20371 char $ac_func();
20372
20373 int main() {
20374
20375 /* The GNU C library defines this for functions which it implements
20376     to always fail with ENOSYS.  Some functions are actually named
20377     something starting with __ and the normal name is an alias.  */
20378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20379 choke me
20380 #else
20381 $ac_func();
20382 #endif
20383
20384 ; return 0; }
20385 EOF
20386 if { (eval echo configure:20387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20387   rm -rf conftest*
20388   eval "ac_cv_func_$ac_func=yes"
20389 else
20390   echo "configure: failed program was:" >&5
20391   cat conftest.$ac_ext >&5
20392   rm -rf conftest*
20393   eval "ac_cv_func_$ac_func=no"
20394 fi
20395 rm -f conftest*
20396 fi
20397
20398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20399   echo "$ac_t""yes" 1>&6
20400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20401   cat >> confdefs.h <<EOF
20402 #define $ac_tr_func 1
20403 EOF
20404  
20405 else
20406   echo "$ac_t""no" 1>&6
20407 fi
20408 done
20409     
20410   fi
20411
20412   for ac_func in drand48
20413 do
20414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20415 echo "configure:20416: checking for $ac_func" >&5
20416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20417   echo $ac_n "(cached) $ac_c" 1>&6
20418 else
20419   cat > conftest.$ac_ext <<EOF
20420 #line 20421 "configure"
20421 #include "confdefs.h"
20422 /* System header to define __stub macros and hopefully few prototypes,
20423     which can conflict with char $ac_func(); below.  */
20424 #include <assert.h>
20425 /* Override any gcc2 internal prototype to avoid an error.  */
20426 /* We use char because int might match the return type of a gcc2
20427     builtin and then its argument prototype would still apply.  */
20428 char $ac_func();
20429
20430 int main() {
20431
20432 /* The GNU C library defines this for functions which it implements
20433     to always fail with ENOSYS.  Some functions are actually named
20434     something starting with __ and the normal name is an alias.  */
20435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20436 choke me
20437 #else
20438 $ac_func();
20439 #endif
20440
20441 ; return 0; }
20442 EOF
20443 if { (eval echo configure:20444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20444   rm -rf conftest*
20445   eval "ac_cv_func_$ac_func=yes"
20446 else
20447   echo "configure: failed program was:" >&5
20448   cat conftest.$ac_ext >&5
20449   rm -rf conftest*
20450   eval "ac_cv_func_$ac_func=no"
20451 fi
20452 rm -f conftest*
20453 fi
20454
20455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20456   echo "$ac_t""yes" 1>&6
20457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20458   cat >> confdefs.h <<EOF
20459 #define $ac_tr_func 1
20460 EOF
20461  
20462 else
20463   echo "$ac_t""no" 1>&6
20464 fi
20465 done
20466
20467
20468   CXXFLAGS="$ac_save_CXXFLAGS"
20469
20470   
20471   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
20472 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
20473 echo "configure:20474: checking for locale.h" >&5
20474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20475   echo $ac_n "(cached) $ac_c" 1>&6
20476 else
20477   cat > conftest.$ac_ext <<EOF
20478 #line 20479 "configure"
20479 #include "confdefs.h"
20480 #include <locale.h>
20481 EOF
20482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20483 { (eval echo configure:20484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20485 if test -z "$ac_err"; then
20486   rm -rf conftest*
20487   eval "ac_cv_header_$ac_safe=yes"
20488 else
20489   echo "$ac_err" >&5
20490   echo "configure: failed program was:" >&5
20491   cat conftest.$ac_ext >&5
20492   rm -rf conftest*
20493   eval "ac_cv_header_$ac_safe=no"
20494 fi
20495 rm -f conftest*
20496 fi
20497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20498   echo "$ac_t""yes" 1>&6
20499   
20500     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
20501 echo "configure:20502: checking for LC_MESSAGES" >&5
20502 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
20503   echo $ac_n "(cached) $ac_c" 1>&6
20504 else
20505   cat > conftest.$ac_ext <<EOF
20506 #line 20507 "configure"
20507 #include "confdefs.h"
20508 #include <locale.h>
20509 int main() {
20510 return LC_MESSAGES
20511 ; return 0; }
20512 EOF
20513 if { (eval echo configure:20514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20514   rm -rf conftest*
20515   ac_cv_val_LC_MESSAGES=yes
20516 else
20517   echo "configure: failed program was:" >&5
20518   cat conftest.$ac_ext >&5
20519   rm -rf conftest*
20520   ac_cv_val_LC_MESSAGES=no
20521 fi
20522 rm -f conftest*
20523 fi
20524
20525 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
20526     if test $ac_cv_val_LC_MESSAGES = yes; then
20527       cat >> confdefs.h <<\EOF
20528 #define HAVE_LC_MESSAGES 1
20529 EOF
20530
20531     fi
20532   
20533 else
20534   echo "$ac_t""no" 1>&6
20535 fi
20536
20537
20538
20539   cat > conftest.$ac_ext <<EOF
20540 #line 20541 "configure"
20541 #include "confdefs.h"
20542
20543   #include <setjmp.h>
20544   
20545 int main() {
20546 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20547 ; return 0; }
20548 EOF
20549 if { (eval echo configure:20550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20550   rm -rf conftest*
20551   cat >> confdefs.h <<\EOF
20552 #define HAVE_SIGSETJMP 1
20553 EOF
20554
20555   
20556 else
20557   echo "configure: failed program was:" >&5
20558   cat conftest.$ac_ext >&5
20559 fi
20560 rm -f conftest*
20561
20562   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
20563 do
20564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20566 echo "configure:20567: checking for $ac_hdr" >&5
20567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20568   echo $ac_n "(cached) $ac_c" 1>&6
20569 else
20570   cat > conftest.$ac_ext <<EOF
20571 #line 20572 "configure"
20572 #include "confdefs.h"
20573 #include <$ac_hdr>
20574 EOF
20575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20576 { (eval echo configure:20577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20578 if test -z "$ac_err"; then
20579   rm -rf conftest*
20580   eval "ac_cv_header_$ac_safe=yes"
20581 else
20582   echo "$ac_err" >&5
20583   echo "configure: failed program was:" >&5
20584   cat conftest.$ac_ext >&5
20585   rm -rf conftest*
20586   eval "ac_cv_header_$ac_safe=no"
20587 fi
20588 rm -f conftest*
20589 fi
20590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20591   echo "$ac_t""yes" 1>&6
20592     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20593   cat >> confdefs.h <<EOF
20594 #define $ac_tr_hdr 1
20595 EOF
20596  
20597 else
20598   echo "$ac_t""no" 1>&6
20599 fi
20600 done
20601
20602 for ac_func in getpagesize
20603 do
20604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20605 echo "configure:20606: checking for $ac_func" >&5
20606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20607   echo $ac_n "(cached) $ac_c" 1>&6
20608 else
20609   cat > conftest.$ac_ext <<EOF
20610 #line 20611 "configure"
20611 #include "confdefs.h"
20612 /* System header to define __stub macros and hopefully few prototypes,
20613     which can conflict with char $ac_func(); below.  */
20614 #include <assert.h>
20615 /* Override any gcc2 internal prototype to avoid an error.  */
20616 /* We use char because int might match the return type of a gcc2
20617     builtin and then its argument prototype would still apply.  */
20618 char $ac_func();
20619
20620 int main() {
20621
20622 /* The GNU C library defines this for functions which it implements
20623     to always fail with ENOSYS.  Some functions are actually named
20624     something starting with __ and the normal name is an alias.  */
20625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20626 choke me
20627 #else
20628 $ac_func();
20629 #endif
20630
20631 ; return 0; }
20632 EOF
20633 if { (eval echo configure:20634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20634   rm -rf conftest*
20635   eval "ac_cv_func_$ac_func=yes"
20636 else
20637   echo "configure: failed program was:" >&5
20638   cat conftest.$ac_ext >&5
20639   rm -rf conftest*
20640   eval "ac_cv_func_$ac_func=no"
20641 fi
20642 rm -f conftest*
20643 fi
20644
20645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20646   echo "$ac_t""yes" 1>&6
20647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20648   cat >> confdefs.h <<EOF
20649 #define $ac_tr_func 1
20650 EOF
20651  
20652 else
20653   echo "$ac_t""no" 1>&6
20654 fi
20655 done
20656
20657 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
20658 echo "configure:20659: checking for working mmap" >&5
20659 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
20660   echo $ac_n "(cached) $ac_c" 1>&6
20661 else
20662   if test "$cross_compiling" = yes; then
20663   ac_cv_func_mmap_fixed_mapped=no
20664 else
20665   cat > conftest.$ac_ext <<EOF
20666 #line 20667 "configure"
20667 #include "confdefs.h"
20668
20669 /* Thanks to Mike Haertel and Jim Avera for this test.
20670    Here is a matrix of mmap possibilities:
20671         mmap private not fixed
20672         mmap private fixed at somewhere currently unmapped
20673         mmap private fixed at somewhere already mapped
20674         mmap shared not fixed
20675         mmap shared fixed at somewhere currently unmapped
20676         mmap shared fixed at somewhere already mapped
20677    For private mappings, we should verify that changes cannot be read()
20678    back from the file, nor mmap's back from the file at a different
20679    address.  (There have been systems where private was not correctly
20680    implemented like the infamous i386 svr4.0, and systems where the
20681    VM page cache was not coherent with the filesystem buffer cache
20682    like early versions of FreeBSD and possibly contemporary NetBSD.)
20683    For shared mappings, we should conversely verify that changes get
20684    propogated back to all the places they're supposed to be.
20685
20686    Grep wants private fixed already mapped.
20687    The main things grep needs to know about mmap are:
20688    * does it exist and is it safe to write into the mmap'd area
20689    * how to use it (BSD variants)  */
20690 #include <sys/types.h>
20691 #include <fcntl.h>
20692 #include <sys/mman.h>
20693
20694 #if HAVE_SYS_TYPES_H
20695 # include <sys/types.h>
20696 #endif
20697
20698 #if HAVE_STDLIB_H
20699 # include <stdlib.h>
20700 #endif
20701
20702 #if HAVE_SYS_STAT_H
20703 # include <sys/stat.h>
20704 #endif
20705
20706 #if HAVE_UNISTD_H
20707 # include <unistd.h>
20708 #endif
20709
20710 /* This mess was copied from the GNU getpagesize.h.  */
20711 #ifndef HAVE_GETPAGESIZE
20712
20713 /* Assume that all systems that can run configure have sys/param.h.  */
20714 # ifndef HAVE_SYS_PARAM_H
20715 #  define HAVE_SYS_PARAM_H 1
20716 # endif
20717
20718 # ifdef _SC_PAGESIZE
20719 #  define getpagesize() sysconf(_SC_PAGESIZE)
20720 # else /* no _SC_PAGESIZE */
20721 #  ifdef HAVE_SYS_PARAM_H
20722 #   include <sys/param.h>
20723 #   ifdef EXEC_PAGESIZE
20724 #    define getpagesize() EXEC_PAGESIZE
20725 #   else /* no EXEC_PAGESIZE */
20726 #    ifdef NBPG
20727 #     define getpagesize() NBPG * CLSIZE
20728 #     ifndef CLSIZE
20729 #      define CLSIZE 1
20730 #     endif /* no CLSIZE */
20731 #    else /* no NBPG */
20732 #     ifdef NBPC
20733 #      define getpagesize() NBPC
20734 #     else /* no NBPC */
20735 #      ifdef PAGESIZE
20736 #       define getpagesize() PAGESIZE
20737 #      endif /* PAGESIZE */
20738 #     endif /* no NBPC */
20739 #    endif /* no NBPG */
20740 #   endif /* no EXEC_PAGESIZE */
20741 #  else /* no HAVE_SYS_PARAM_H */
20742 #   define getpagesize() 8192   /* punt totally */
20743 #  endif /* no HAVE_SYS_PARAM_H */
20744 # endif /* no _SC_PAGESIZE */
20745
20746 #endif /* no HAVE_GETPAGESIZE */
20747
20748 #ifdef __cplusplus
20749 extern "C" { void *malloc(unsigned); }
20750 #else
20751 char *malloc();
20752 #endif
20753
20754 int
20755 main()
20756 {
20757         char *data, *data2, *data3;
20758         int i, pagesize;
20759         int fd;
20760
20761         pagesize = getpagesize();
20762
20763         /*
20764          * First, make a file with some known garbage in it.
20765          */
20766         data = malloc(pagesize);
20767         if (!data)
20768                 exit(1);
20769         for (i = 0; i < pagesize; ++i)
20770                 *(data + i) = rand();
20771         umask(0);
20772         fd = creat("conftestmmap", 0600);
20773         if (fd < 0)
20774                 exit(1);
20775         if (write(fd, data, pagesize) != pagesize)
20776                 exit(1);
20777         close(fd);
20778
20779         /*
20780          * Next, try to mmap the file at a fixed address which
20781          * already has something else allocated at it.  If we can,
20782          * also make sure that we see the same garbage.
20783          */
20784         fd = open("conftestmmap", O_RDWR);
20785         if (fd < 0)
20786                 exit(1);
20787         data2 = malloc(2 * pagesize);
20788         if (!data2)
20789                 exit(1);
20790         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20791         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
20792             MAP_PRIVATE | MAP_FIXED, fd, 0L))
20793                 exit(1);
20794         for (i = 0; i < pagesize; ++i)
20795                 if (*(data + i) != *(data2 + i))
20796                         exit(1);
20797
20798         /*
20799          * Finally, make sure that changes to the mapped area
20800          * do not percolate back to the file as seen by read().
20801          * (This is a bug on some variants of i386 svr4.0.)
20802          */
20803         for (i = 0; i < pagesize; ++i)
20804                 *(data2 + i) = *(data2 + i) + 1;
20805         data3 = malloc(pagesize);
20806         if (!data3)
20807                 exit(1);
20808         if (read(fd, data3, pagesize) != pagesize)
20809                 exit(1);
20810         for (i = 0; i < pagesize; ++i)
20811                 if (*(data + i) != *(data3 + i))
20812                         exit(1);
20813         close(fd);
20814         unlink("conftestmmap");
20815         exit(0);
20816 }
20817
20818 EOF
20819 if { (eval echo configure:20820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20820 then
20821   ac_cv_func_mmap_fixed_mapped=yes
20822 else
20823   echo "configure: failed program was:" >&5
20824   cat conftest.$ac_ext >&5
20825   rm -fr conftest*
20826   ac_cv_func_mmap_fixed_mapped=no
20827 fi
20828 rm -fr conftest*
20829 fi
20830
20831 fi
20832
20833 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
20834 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20835   cat >> confdefs.h <<\EOF
20836 #define HAVE_MMAP 1
20837 EOF
20838
20839 fi
20840
20841
20842   # Establish limits on memory usage during 'make check'
20843   
20844   
20845   setrlimit_have_headers=yes
20846   for ac_hdr in sys/resource.h unistd.h
20847 do
20848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20850 echo "configure:20851: checking for $ac_hdr" >&5
20851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20852   echo $ac_n "(cached) $ac_c" 1>&6
20853 else
20854   cat > conftest.$ac_ext <<EOF
20855 #line 20856 "configure"
20856 #include "confdefs.h"
20857 #include <$ac_hdr>
20858 EOF
20859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20860 { (eval echo configure:20861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20862 if test -z "$ac_err"; then
20863   rm -rf conftest*
20864   eval "ac_cv_header_$ac_safe=yes"
20865 else
20866   echo "$ac_err" >&5
20867   echo "configure: failed program was:" >&5
20868   cat conftest.$ac_ext >&5
20869   rm -rf conftest*
20870   eval "ac_cv_header_$ac_safe=no"
20871 fi
20872 rm -f conftest*
20873 fi
20874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20875   echo "$ac_t""yes" 1>&6
20876     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20877   cat >> confdefs.h <<EOF
20878 #define $ac_tr_hdr 1
20879 EOF
20880  
20881 else
20882   echo "$ac_t""no" 1>&6
20883 setrlimit_have_headers=no
20884 fi
20885 done
20886
20887   # If don't have the headers, then we can't run the tests now, and we
20888   # won't be seeing any of these during testsuite compilation.
20889   if test $setrlimit_have_headers = yes; then
20890     # Can't do these in a loop, else the resulting syntax is wrong.
20891     
20892   cat > conftest.$ac_ext <<EOF
20893 #line 20894 "configure"
20894 #include "confdefs.h"
20895 #include <sys/resource.h>
20896                   #include <unistd.h>
20897                  
20898 int main() {
20899  int f = RLIMIT_DATA ; 
20900 ; return 0; }
20901 EOF
20902 if { (eval echo configure:20903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20903   rm -rf conftest*
20904   glibcpp_mresult=1
20905 else
20906   echo "configure: failed program was:" >&5
20907   cat conftest.$ac_ext >&5
20908   rm -rf conftest*
20909   glibcpp_mresult=0
20910 fi
20911 rm -f conftest*
20912   cat >> confdefs.h <<EOF
20913 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
20914 EOF
20915
20916
20917     
20918   cat > conftest.$ac_ext <<EOF
20919 #line 20920 "configure"
20920 #include "confdefs.h"
20921 #include <sys/resource.h>
20922                   #include <unistd.h>
20923                  
20924 int main() {
20925  int f = RLIMIT_RSS ; 
20926 ; return 0; }
20927 EOF
20928 if { (eval echo configure:20929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20929   rm -rf conftest*
20930   glibcpp_mresult=1
20931 else
20932   echo "configure: failed program was:" >&5
20933   cat conftest.$ac_ext >&5
20934   rm -rf conftest*
20935   glibcpp_mresult=0
20936 fi
20937 rm -f conftest*
20938   cat >> confdefs.h <<EOF
20939 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
20940 EOF
20941
20942
20943     
20944   cat > conftest.$ac_ext <<EOF
20945 #line 20946 "configure"
20946 #include "confdefs.h"
20947 #include <sys/resource.h>
20948                   #include <unistd.h>
20949                  
20950 int main() {
20951  int f = RLIMIT_VMEM ; 
20952 ; return 0; }
20953 EOF
20954 if { (eval echo configure:20955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20955   rm -rf conftest*
20956   glibcpp_mresult=1
20957 else
20958   echo "configure: failed program was:" >&5
20959   cat conftest.$ac_ext >&5
20960   rm -rf conftest*
20961   glibcpp_mresult=0
20962 fi
20963 rm -f conftest*
20964   cat >> confdefs.h <<EOF
20965 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
20966 EOF
20967
20968
20969     
20970   cat > conftest.$ac_ext <<EOF
20971 #line 20972 "configure"
20972 #include "confdefs.h"
20973 #include <sys/resource.h>
20974                   #include <unistd.h>
20975                  
20976 int main() {
20977  int f = RLIMIT_AS ; 
20978 ; return 0; }
20979 EOF
20980 if { (eval echo configure:20981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20981   rm -rf conftest*
20982   glibcpp_mresult=1
20983 else
20984   echo "configure: failed program was:" >&5
20985   cat conftest.$ac_ext >&5
20986   rm -rf conftest*
20987   glibcpp_mresult=0
20988 fi
20989 rm -f conftest*
20990   cat >> confdefs.h <<EOF
20991 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
20992 EOF
20993
20994
20995
20996     # Check for rlimit, setrlimit.
20997     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
20998   echo $ac_n "(cached) $ac_c" 1>&6
20999 else
21000   
21001       cat > conftest.$ac_ext <<EOF
21002 #line 21003 "configure"
21003 #include "confdefs.h"
21004 #include <sys/resource.h>
21005                       #include <unistd.h>
21006                      
21007 int main() {
21008  struct rlimit r; setrlimit(0, &r);
21009 ; return 0; }
21010 EOF
21011 if { (eval echo configure:21012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21012   rm -rf conftest*
21013   ac_setrlimit=yes
21014 else
21015   echo "configure: failed program was:" >&5
21016   cat conftest.$ac_ext >&5
21017   rm -rf conftest*
21018   ac_setrlimit=no
21019 fi
21020 rm -f conftest*
21021     
21022 fi
21023
21024   fi
21025
21026   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21027 echo "configure:21028: checking for testsuite memory limit support" >&5
21028   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21029     ac_mem_limits=yes
21030     cat >> confdefs.h <<\EOF
21031 #define _GLIBCPP_MEM_LIMITS 1
21032 EOF
21033
21034   else
21035     ac_mem_limits=no
21036   fi
21037   echo "$ac_t""$ac_mem_limits" 1>&6
21038
21039
21040   # Look for setenv, so that extended locale tests can be performed.
21041   
21042   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21043 echo "configure:21044: checking for setenv declaration" >&5
21044   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21045     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21046   echo $ac_n "(cached) $ac_c" 1>&6
21047 else
21048   
21049       
21050       ac_ext=C
21051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21052 ac_cpp='$CXXCPP $CPPFLAGS'
21053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21055 cross_compiling=$ac_cv_prog_cxx_cross
21056
21057       cat > conftest.$ac_ext <<EOF
21058 #line 21059 "configure"
21059 #include "confdefs.h"
21060 #include <stdlib.h>
21061 int main() {
21062  setenv(0, 0, 0);
21063 ; return 0; }
21064 EOF
21065 if { (eval echo configure:21066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21066   rm -rf conftest*
21067   glibcpp_cv_func_setenv_use=yes
21068 else
21069   echo "configure: failed program was:" >&5
21070   cat conftest.$ac_ext >&5
21071   rm -rf conftest*
21072   glibcpp_cv_func_setenv_use=no
21073 fi
21074 rm -f conftest*
21075       ac_ext=c
21076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21077 ac_cpp='$CPP $CPPFLAGS'
21078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21080 cross_compiling=$ac_cv_prog_cc_cross
21081
21082     
21083 fi
21084
21085   fi
21086   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21087   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
21088     for ac_func in setenv
21089 do
21090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21091 echo "configure:21092: checking for $ac_func" >&5
21092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21093   echo $ac_n "(cached) $ac_c" 1>&6
21094 else
21095   cat > conftest.$ac_ext <<EOF
21096 #line 21097 "configure"
21097 #include "confdefs.h"
21098 /* System header to define __stub macros and hopefully few prototypes,
21099     which can conflict with char $ac_func(); below.  */
21100 #include <assert.h>
21101 /* Override any gcc2 internal prototype to avoid an error.  */
21102 /* We use char because int might match the return type of a gcc2
21103     builtin and then its argument prototype would still apply.  */
21104 char $ac_func();
21105
21106 int main() {
21107
21108 /* The GNU C library defines this for functions which it implements
21109     to always fail with ENOSYS.  Some functions are actually named
21110     something starting with __ and the normal name is an alias.  */
21111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21112 choke me
21113 #else
21114 $ac_func();
21115 #endif
21116
21117 ; return 0; }
21118 EOF
21119 if { (eval echo configure:21120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21120   rm -rf conftest*
21121   eval "ac_cv_func_$ac_func=yes"
21122 else
21123   echo "configure: failed program was:" >&5
21124   cat conftest.$ac_ext >&5
21125   rm -rf conftest*
21126   eval "ac_cv_func_$ac_func=no"
21127 fi
21128 rm -f conftest*
21129 fi
21130
21131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21132   echo "$ac_t""yes" 1>&6
21133     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21134   cat >> confdefs.h <<EOF
21135 #define $ac_tr_func 1
21136 EOF
21137  
21138 else
21139   echo "$ac_t""no" 1>&6
21140 fi
21141 done
21142     
21143   fi
21144
21145
21146 fi
21147
21148 # This depends on the possibly-skipped linker test above.
21149 # Check whether --enable-symvers or --disable-symvers was given.
21150 if test "${enable_symvers+set}" = set; then
21151   enableval="$enable_symvers"
21152   case "$enableval" in
21153  yes) enable_symvers=yes ;;
21154  no)  enable_symvers=no ;;
21155  # other names here, just as sanity checks
21156  #gnu|sun|etcetera) enable_symvers=$enableval ;;
21157  gnu) enable_symvers=$enableval ;;
21158  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
21159  esac
21160 else
21161   enable_symvers=yes
21162 fi
21163
21164 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
21165 # don't know enough about $LD to do tricks... 
21166 if test x$enable_shared = xno || 
21167         test "x$LD" = x || 
21168         test x$glibcpp_gnu_ld_version = x; then
21169   enable_symvers=no
21170 fi
21171
21172 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
21173 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
21174 echo "configure:21175: checking for shared libgcc" >&5
21175 ac_save_CFLAGS="$CFLAGS"
21176 CFLAGS=' -lgcc_s'
21177 cat > conftest.$ac_ext <<EOF
21178 #line 21179 "configure"
21179 #include "confdefs.h"
21180
21181 int main() {
21182 return 0
21183 ; return 0; }
21184 EOF
21185 if { (eval echo configure:21186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21186   rm -rf conftest*
21187   glibcpp_shared_libgcc=yes
21188 else
21189   echo "configure: failed program was:" >&5
21190   cat conftest.$ac_ext >&5
21191   rm -rf conftest*
21192   glibcpp_shared_libgcc=no
21193 fi
21194 rm -f conftest*
21195 CFLAGS="$ac_save_CFLAGS"
21196 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
21197
21198 # For GNU ld, we need at least this version.  It's 2.12 in the same format
21199 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
21200 glibcpp_min_gnu_ld_version=21200
21201
21202 # Check to see if unspecified "yes" value can win, given results
21203 # above.  
21204 if test $enable_symvers = yes ; then
21205   if test $with_gnu_ld = yes &&
21206     test $glibcpp_shared_libgcc = yes ;
21207   then
21208     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
21209         enable_symvers=gnu
21210     else
21211       ac_test_CFLAGS="${CFLAGS+set}"
21212       ac_save_CFLAGS="$CFLAGS"
21213       CFLAGS='-shared -Wl,--version-script,conftest.map'
21214       enable_symvers=no
21215       
21216       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
21217       
21218       cat > conftest.$ac_ext <<EOF
21219 #line 21220 "configure"
21220 #include "confdefs.h"
21221 int foo;
21222 int main() {
21223
21224 ; return 0; }
21225 EOF
21226 if { (eval echo configure:21227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21227   rm -rf conftest*
21228   enable_symvers=gnu
21229 else
21230   echo "configure: failed program was:" >&5
21231   cat conftest.$ac_ext >&5
21232 fi
21233 rm -f conftest*
21234       if test "$ac_test_CFLAGS" = set; then
21235         CFLAGS="$ac_save_CFLAGS"
21236       else
21237         # this is the suspicious part
21238         CFLAGS=''
21239       fi
21240       rm -f conftest.map
21241     fi
21242   else
21243     # just fail for now
21244     enable_symvers=no
21245   fi
21246 fi
21247
21248 case $enable_symvers in
21249   no)
21250       LINKER_MAP=config/linker-map.dummy
21251       ;;
21252   gnu)
21253       LINKER_MAP=config/linker-map.gnu
21254       ;;
21255 esac
21256
21257
21258
21259
21260 if test $enable_symvers != no; then
21261   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
21262   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
21263 else
21264   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
21265   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
21266 fi
21267 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
21268 echo "configure:21269: checking versioning on shared library symbols" >&5
21269 echo "$ac_t""$enable_symvers" 1>&6
21270
21271
21272 # Propagate the target-specific source directories through the build chain.
21273 OS_INC_SRCDIR=$os_include_dir/bits
21274 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
21275 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
21276
21277
21278
21279
21280 # Set up cross-compile flags
21281
21282
21283
21284 if test "$CANADIAN" = yes; then
21285   CANADIAN_TRUE=
21286   CANADIAN_FALSE='#'
21287 else
21288   CANADIAN_TRUE='#'
21289   CANADIAN_FALSE=
21290 fi
21291  
21292 cat > confcache <<\EOF
21293 # This file is a shell script that caches the results of configure
21294 # tests run on this system so they can be shared between configure
21295 # scripts and configure runs.  It is not useful on other systems.
21296 # If it contains results you don't want to keep, you may remove or edit it.
21297 #
21298 # By default, configure uses ./config.cache as the cache file,
21299 # creating it if it does not exist already.  You can give configure
21300 # the --cache-file=FILE option to use a different cache file; that is
21301 # what configure does when it calls configure scripts in
21302 # subdirectories, so they share the cache.
21303 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21304 # config.status only pays attention to the cache file if you give it the
21305 # --recheck option to rerun configure.
21306 #
21307 EOF
21308 # The following way of writing the cache mishandles newlines in values,
21309 # but we know of no workaround that is simple, portable, and efficient.
21310 # So, don't put newlines in cache variables' values.
21311 # Ultrix sh set writes to stderr and can't be redirected directly,
21312 # and sets the high bit in the cache file unless we assign to the vars.
21313 (set) 2>&1 |
21314   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21315   *ac_space=\ *)
21316     # `set' does not quote correctly, so add quotes (double-quote substitution
21317     # turns \\\\ into \\, and sed turns \\ into \).
21318     sed -n \
21319       -e "s/'/'\\\\''/g" \
21320       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21321     ;;
21322   *)
21323     # `set' quotes correctly as required by POSIX, so do not add quotes.
21324     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21325     ;;
21326   esac >> confcache
21327 if cmp -s $cache_file confcache; then
21328   :
21329 else
21330   if test -w $cache_file; then
21331     echo "updating cache $cache_file"
21332     cat confcache > $cache_file
21333   else
21334     echo "not updating unwritable cache $cache_file"
21335   fi
21336 fi
21337 rm -f confcache
21338
21339
21340 if test "${multilib}" = "yes"; then
21341   multilib_arg="--enable-multilib"
21342 else
21343   multilib_arg=
21344 fi
21345
21346 # Needed so that g++ can find the correct include subdir automatically.
21347 INTERFACE=v3
21348
21349 # Export all the install information
21350
21351 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
21352 # exported correctly in GLIBCPP_CONFIGURE.
21353 glibcpp_toolexecdir=no
21354 glibcpp_toolexeclibdir=no
21355 glibcpp_prefixdir=${prefix}
21356
21357 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
21358 echo "configure:21359: checking for interface version number" >&5
21359 libstdcxx_interface=$INTERFACE
21360 echo "$ac_t""$libstdcxx_interface" 1>&6
21361
21362 # Process the option --with-gxx-include-dir=<path to include-files directory>
21363 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
21364 echo "configure:21365: checking for --with-gxx-include-dir" >&5
21365 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
21366 if test "${with_gxx_include_dir+set}" = set; then
21367   withval="$with_gxx_include_dir"
21368   case "${withval}" in
21369   yes)
21370     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
21371     gxx_include_dir=no
21372     ;;
21373   no)
21374     gxx_include_dir=no
21375     ;;
21376   *)
21377     gxx_include_dir=${withval}
21378     ;;
21379 esac
21380 else
21381   gxx_include_dir=no
21382 fi
21383
21384 echo "$ac_t""$gxx_include_dir" 1>&6
21385
21386 # Process the option "--enable-version-specific-runtime-libs"
21387 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
21388 echo "configure:21389: checking for --enable-version-specific-runtime-libs" >&5
21389 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
21390 if test "${enable_version_specific_runtime_libs+set}" = set; then
21391   enableval="$enable_version_specific_runtime_libs"
21392   case "$enableval" in
21393  yes) version_specific_libs=yes ;;
21394  no)  version_specific_libs=no ;;
21395  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
21396  esac
21397 else
21398   version_specific_libs=no
21399 fi
21400 # Option set, now we can test it.
21401 echo "$ac_t""$version_specific_libs" 1>&6
21402
21403 if test $version_specific_libs = yes; then
21404   # Need the gcc compiler version to know where to install libraries
21405   # and header files if --enable-version-specific-runtime-libs option
21406   # is selected.
21407     gcc_version_trigger=${srcdir}/../gcc/version.c
21408   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
21409   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
21410   if test x"$gxx_include_dir" = x"no"; then
21411     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
21412   fi
21413   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21414   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
21415   fi
21416
21417 # Default case for install directory for include files.
21418 if test $version_specific_libs = no &&
21419    test $gxx_include_dir = no; then
21420   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
21421 fi
21422
21423 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
21424 # Install a library built with a cross compiler in tooldir, not libdir.
21425 if test x"$glibcpp_toolexecdir" = x"no"; then 
21426   if test -n "$with_cross_host" &&
21427      test x"$with_cross_host" != x"no"; then
21428     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
21429     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
21430   else
21431     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
21432     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
21433   fi
21434 fi
21435
21436 echo $ac_n "checking for install location""... $ac_c" 1>&6
21437 echo "configure:21438: checking for install location" >&5
21438 echo "$ac_t""$gxx_include_dir" 1>&6
21439
21440
21441
21442
21443
21444
21445
21446 # Export all the include and flag information to makefiles.
21447
21448   # Root level of the build directory include sources.
21449   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
21450
21451   # Passed down for canadian crosses.
21452   if test x"$CANADIAN" = xyes; then
21453     TOPLEVEL_INCLUDES='-I$(includedir)'
21454   fi
21455
21456   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
21457
21458   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
21459
21460   if test x"$need_libio" = xyes; then
21461     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
21462     
21463   fi
21464
21465   # Now, export this to all the little Makefiles....
21466   
21467   
21468   
21469   
21470
21471
21472   # Optimization flags that are probably a good idea for thrill-seekers. Just
21473   # uncomment the lines below and make, everything else is ready to go... 
21474   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
21475   OPTIMIZE_CXXFLAGS=
21476   
21477
21478   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
21479   
21480
21481
21482 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
21483    grep "enable shared" > /dev/null; then
21484   LIBSUPCXX_PICFLAGS=-prefer-pic
21485 else
21486   LIBSUPCXX_PICFLAGS=
21487 fi
21488
21489
21490 # Generate the various Makefiles, include files, and scripts.
21491 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
21492 # and libsupc++/Makefile.am so that multilib installs will end up
21493 # installed in the correct place. To work around this not being passed
21494 # down from config-ml.in -> top_srcdir/Makefile.am ->
21495 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
21496 trap '' 1 2 15
21497 cat > confcache <<\EOF
21498 # This file is a shell script that caches the results of configure
21499 # tests run on this system so they can be shared between configure
21500 # scripts and configure runs.  It is not useful on other systems.
21501 # If it contains results you don't want to keep, you may remove or edit it.
21502 #
21503 # By default, configure uses ./config.cache as the cache file,
21504 # creating it if it does not exist already.  You can give configure
21505 # the --cache-file=FILE option to use a different cache file; that is
21506 # what configure does when it calls configure scripts in
21507 # subdirectories, so they share the cache.
21508 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21509 # config.status only pays attention to the cache file if you give it the
21510 # --recheck option to rerun configure.
21511 #
21512 EOF
21513 # The following way of writing the cache mishandles newlines in values,
21514 # but we know of no workaround that is simple, portable, and efficient.
21515 # So, don't put newlines in cache variables' values.
21516 # Ultrix sh set writes to stderr and can't be redirected directly,
21517 # and sets the high bit in the cache file unless we assign to the vars.
21518 (set) 2>&1 |
21519   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21520   *ac_space=\ *)
21521     # `set' does not quote correctly, so add quotes (double-quote substitution
21522     # turns \\\\ into \\, and sed turns \\ into \).
21523     sed -n \
21524       -e "s/'/'\\\\''/g" \
21525       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21526     ;;
21527   *)
21528     # `set' quotes correctly as required by POSIX, so do not add quotes.
21529     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21530     ;;
21531   esac >> confcache
21532 if cmp -s $cache_file confcache; then
21533   :
21534 else
21535   if test -w $cache_file; then
21536     echo "updating cache $cache_file"
21537     cat confcache > $cache_file
21538   else
21539     echo "not updating unwritable cache $cache_file"
21540   fi
21541 fi
21542 rm -f confcache
21543
21544 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21545
21546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21547 # Let make expand exec_prefix.
21548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21549
21550 # Any assignment to VPATH causes Sun make to only execute
21551 # the first set of double-colon rules, so remove it if not needed.
21552 # If there is a colon in the path, we need to keep it.
21553 if test "x$srcdir" = x.; then
21554   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
21555 fi
21556
21557 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21558
21559 DEFS=-DHAVE_CONFIG_H
21560
21561 # Without the "./", some shells look in PATH for config.status.
21562 : ${CONFIG_STATUS=./config.status}
21563
21564 echo creating $CONFIG_STATUS
21565 rm -f $CONFIG_STATUS
21566 cat > $CONFIG_STATUS <<EOF
21567 #! /bin/sh
21568 # Generated automatically by configure.
21569 # Run this file to recreate the current configuration.
21570 # This directory was configured as follows,
21571 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21572 #
21573 # $0 $ac_configure_args
21574 #
21575 # Compiler output produced by configure, useful for debugging
21576 # configure, is in ./config.log if it exists.
21577
21578 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21579 for ac_option
21580 do
21581   case "\$ac_option" in
21582   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21583     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21584     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21585   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21586     echo "$CONFIG_STATUS generated by autoconf version 2.13"
21587     exit 0 ;;
21588   -help | --help | --hel | --he | --h)
21589     echo "\$ac_cs_usage"; exit 0 ;;
21590   *) echo "\$ac_cs_usage"; exit 1 ;;
21591   esac
21592 done
21593
21594 ac_given_srcdir=$srcdir
21595 ac_given_INSTALL="$INSTALL"
21596
21597 trap 'rm -fr `echo "Makefile \
21598     include/Makefile src/Makefile \
21599     libmath/Makefile libio/Makefile libsupc++/Makefile \
21600     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21601 EOF
21602 cat >> $CONFIG_STATUS <<EOF
21603
21604 # Protect against being on the right side of a sed subst in config.status.
21605 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21606  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21607 $ac_vpsub
21608 $extrasub
21609 s%@SHELL@%$SHELL%g
21610 s%@CFLAGS@%$CFLAGS%g
21611 s%@CPPFLAGS@%$CPPFLAGS%g
21612 s%@CXXFLAGS@%$CXXFLAGS%g
21613 s%@FFLAGS@%$FFLAGS%g
21614 s%@DEFS@%$DEFS%g
21615 s%@LDFLAGS@%$LDFLAGS%g
21616 s%@LIBS@%$LIBS%g
21617 s%@exec_prefix@%$exec_prefix%g
21618 s%@prefix@%$prefix%g
21619 s%@program_transform_name@%$program_transform_name%g
21620 s%@bindir@%$bindir%g
21621 s%@sbindir@%$sbindir%g
21622 s%@libexecdir@%$libexecdir%g
21623 s%@datadir@%$datadir%g
21624 s%@sysconfdir@%$sysconfdir%g
21625 s%@sharedstatedir@%$sharedstatedir%g
21626 s%@localstatedir@%$localstatedir%g
21627 s%@libdir@%$libdir%g
21628 s%@includedir@%$includedir%g
21629 s%@oldincludedir@%$oldincludedir%g
21630 s%@infodir@%$infodir%g
21631 s%@mandir@%$mandir%g
21632 s%@PACKAGE@%$PACKAGE%g
21633 s%@release_VERSION@%$release_VERSION%g
21634 s%@libtool_VERSION@%$libtool_VERSION%g
21635 s%@host@%$host%g
21636 s%@host_alias@%$host_alias%g
21637 s%@host_cpu@%$host_cpu%g
21638 s%@host_vendor@%$host_vendor%g
21639 s%@host_os@%$host_os%g
21640 s%@target@%$target%g
21641 s%@target_alias@%$target_alias%g
21642 s%@target_cpu@%$target_cpu%g
21643 s%@target_vendor@%$target_vendor%g
21644 s%@target_os@%$target_os%g
21645 s%@build@%$build%g
21646 s%@build_alias@%$build_alias%g
21647 s%@build_cpu@%$build_cpu%g
21648 s%@build_vendor@%$build_vendor%g
21649 s%@build_os@%$build_os%g
21650 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21651 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21652 s%@INSTALL_DATA@%$INSTALL_DATA%g
21653 s%@VERSION@%$VERSION%g
21654 s%@ACLOCAL@%$ACLOCAL%g
21655 s%@AUTOCONF@%$AUTOCONF%g
21656 s%@AUTOMAKE@%$AUTOMAKE%g
21657 s%@AUTOHEADER@%$AUTOHEADER%g
21658 s%@MAKEINFO@%$MAKEINFO%g
21659 s%@SET_MAKE@%$SET_MAKE%g
21660 s%@toplevel_srcdir@%$toplevel_srcdir%g
21661 s%@glibcpp_builddir@%$glibcpp_builddir%g
21662 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
21663 s%@AWK@%$AWK%g
21664 s%@LN_S@%$LN_S%g
21665 s%@glibcpp_basedir@%$glibcpp_basedir%g
21666 s%@CC@%$CC%g
21667 s%@glibcpp_CXX@%$glibcpp_CXX%g
21668 s%@AS@%$AS%g
21669 s%@AR@%$AR%g
21670 s%@RANLIB@%$RANLIB%g
21671 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
21672 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
21673 s%@MAINT@%$MAINT%g
21674 s%@EXEEXT@%$EXEEXT%g
21675 s%@OBJEXT@%$OBJEXT%g
21676 s%@STRIP@%$STRIP%g
21677 s%@LIBTOOL@%$LIBTOOL%g
21678 s%@CXXCPP@%$CXXCPP%g
21679 s%@enable_shared@%$enable_shared%g
21680 s%@enable_static@%$enable_static%g
21681 s%@ifGNUmake@%$ifGNUmake%g
21682 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
21683 s%@CPP@%$CPP%g
21684 s%@CSTDIO_H@%$CSTDIO_H%g
21685 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
21686 s%@CCODECVT_C@%$CCODECVT_C%g
21687 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
21688 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
21689 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
21690 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
21691 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
21692 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
21693 s%@libio_la@%$libio_la%g
21694 s%@check_msgfmt@%$check_msgfmt%g
21695 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
21696 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
21697 s%@glibcpp_localedir@%$glibcpp_localedir%g
21698 s%@USE_NLS@%$USE_NLS%g
21699 s%@CLOCALE_H@%$CLOCALE_H%g
21700 s%@CCODECVT_H@%$CCODECVT_H%g
21701 s%@CMESSAGES_H@%$CMESSAGES_H%g
21702 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
21703 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
21704 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
21705 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
21706 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
21707 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
21708 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
21709 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
21710 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
21711 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
21712 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
21713 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
21714 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
21715 s%@WERROR@%$WERROR%g
21716 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
21717 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
21718 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
21719 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
21720 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
21721 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
21722 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
21723 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
21724 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
21725 s%@gxx_include_dir@%$gxx_include_dir%g
21726 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
21727 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
21728 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
21729 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
21730 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
21731 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
21732 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
21733 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
21734 s%@WARN_FLAGS@%$WARN_FLAGS%g
21735 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
21736
21737 CEOF
21738 EOF
21739
21740 cat >> $CONFIG_STATUS <<\EOF
21741
21742 # Split the substitutions into bite-sized pieces for seds with
21743 # small command number limits, like on Digital OSF/1 and HP-UX.
21744 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21745 ac_file=1 # Number of current file.
21746 ac_beg=1 # First line for current file.
21747 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21748 ac_more_lines=:
21749 ac_sed_cmds=""
21750 while $ac_more_lines; do
21751   if test $ac_beg -gt 1; then
21752     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21753   else
21754     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21755   fi
21756   if test ! -s conftest.s$ac_file; then
21757     ac_more_lines=false
21758     rm -f conftest.s$ac_file
21759   else
21760     if test -z "$ac_sed_cmds"; then
21761       ac_sed_cmds="sed -f conftest.s$ac_file"
21762     else
21763       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21764     fi
21765     ac_file=`expr $ac_file + 1`
21766     ac_beg=$ac_end
21767     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21768   fi
21769 done
21770 if test -z "$ac_sed_cmds"; then
21771   ac_sed_cmds=cat
21772 fi
21773 EOF
21774
21775 cat >> $CONFIG_STATUS <<EOF
21776
21777 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
21778     include/Makefile src/Makefile \
21779     libmath/Makefile libio/Makefile libsupc++/Makefile \
21780     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
21781 EOF
21782 cat >> $CONFIG_STATUS <<\EOF
21783 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21784   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21785   case "$ac_file" in
21786   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21787        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21788   *) ac_file_in="${ac_file}.in" ;;
21789   esac
21790
21791   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21792
21793   # Remove last slash and all that follows it.  Not all systems have dirname.
21794   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21795   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21796     # The file is in a subdirectory.
21797     test ! -d "$ac_dir" && mkdir "$ac_dir"
21798     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21799     # A "../" for each directory in $ac_dir_suffix.
21800     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21801   else
21802     ac_dir_suffix= ac_dots=
21803   fi
21804
21805   case "$ac_given_srcdir" in
21806   .)  srcdir=.
21807       if test -z "$ac_dots"; then top_srcdir=.
21808       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21809   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21810   *) # Relative path.
21811     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21812     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21813   esac
21814
21815   case "$ac_given_INSTALL" in
21816   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21817   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21818   esac
21819
21820   echo creating "$ac_file"
21821   rm -f "$ac_file"
21822   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21823   case "$ac_file" in
21824   *Makefile*) ac_comsub="1i\\
21825 # $configure_input" ;;
21826   *) ac_comsub= ;;
21827   esac
21828
21829   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21830   sed -e "$ac_comsub
21831 s%@configure_input@%$configure_input%g
21832 s%@srcdir@%$srcdir%g
21833 s%@top_srcdir@%$top_srcdir%g
21834 s%@INSTALL@%$INSTALL%g
21835 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21836 fi; done
21837 rm -f conftest.s*
21838
21839 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21840 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21841 #
21842 # ac_d sets the value in "#define NAME VALUE" lines.
21843 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21844 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21845 ac_dC='\3'
21846 ac_dD='%g'
21847 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21848 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21849 ac_uB='\([      ]\)%\1#\2define\3'
21850 ac_uC=' '
21851 ac_uD='\4%g'
21852 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21853 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21854 ac_eB='$%\1#\2define\3'
21855 ac_eC=' '
21856 ac_eD='%g'
21857
21858 if test "${CONFIG_HEADERS+set}" != set; then
21859 EOF
21860 cat >> $CONFIG_STATUS <<EOF
21861   CONFIG_HEADERS="config.h"
21862 EOF
21863 cat >> $CONFIG_STATUS <<\EOF
21864 fi
21865 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21866   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21867   case "$ac_file" in
21868   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21869        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21870   *) ac_file_in="${ac_file}.in" ;;
21871   esac
21872
21873   echo creating $ac_file
21874
21875   rm -f conftest.frag conftest.in conftest.out
21876   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21877   cat $ac_file_inputs > conftest.in
21878
21879 EOF
21880
21881 # Transform confdefs.h into a sed script conftest.vals that substitutes
21882 # the proper values into config.h.in to produce config.h.  And first:
21883 # Protect against being on the right side of a sed subst in config.status.
21884 # Protect against being in an unquoted here document in config.status.
21885 rm -f conftest.vals
21886 cat > conftest.hdr <<\EOF
21887 s/[\\&%]/\\&/g
21888 s%[\\$`]%\\&%g
21889 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21890 s%ac_d%ac_u%gp
21891 s%ac_u%ac_e%gp
21892 EOF
21893 sed -n -f conftest.hdr confdefs.h > conftest.vals
21894 rm -f conftest.hdr
21895
21896 # This sed command replaces #undef with comments.  This is necessary, for
21897 # example, in the case of _POSIX_SOURCE, which is predefined and required
21898 # on some systems where configure will not decide to define it.
21899 cat >> conftest.vals <<\EOF
21900 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21901 EOF
21902
21903 # Break up conftest.vals because some shells have a limit on
21904 # the size of here documents, and old seds have small limits too.
21905
21906 rm -f conftest.tail
21907 while :
21908 do
21909   ac_lines=`grep -c . conftest.vals`
21910   # grep -c gives empty output for an empty file on some AIX systems.
21911   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21912   # Write a limited-size here document to conftest.frag.
21913   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21914   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21915   echo 'CEOF
21916   sed -f conftest.frag conftest.in > conftest.out
21917   rm -f conftest.in
21918   mv conftest.out conftest.in
21919 ' >> $CONFIG_STATUS
21920   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21921   rm -f conftest.vals
21922   mv conftest.tail conftest.vals
21923 done
21924 rm -f conftest.vals
21925
21926 cat >> $CONFIG_STATUS <<\EOF
21927   rm -f conftest.frag conftest.h
21928   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21929   cat conftest.in >> conftest.h
21930   rm -f conftest.in
21931   if cmp -s $ac_file conftest.h 2>/dev/null; then
21932     echo "$ac_file is unchanged"
21933     rm -f conftest.h
21934   else
21935     # Remove last slash and all that follows it.  Not all systems have dirname.
21936       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21937       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21938       # The file is in a subdirectory.
21939       test ! -d "$ac_dir" && mkdir "$ac_dir"
21940     fi
21941     rm -f $ac_file
21942     mv conftest.h $ac_file
21943   fi
21944 fi; done
21945
21946 EOF
21947
21948 cat >> $CONFIG_STATUS <<EOF
21949 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
21950 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"
21951 EOF
21952
21953 cat >> $CONFIG_STATUS <<\EOF
21954 srcdir=$ac_given_srcdir
21955 while test -n "$ac_sources"; do
21956   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21957   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21958
21959   echo "linking $srcdir/$ac_source to $ac_dest"
21960
21961   if test ! -r $srcdir/$ac_source; then
21962     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
21963   fi
21964   rm -f $ac_dest
21965
21966   # Make relative symlinks.
21967   # Remove last slash and all that follows it.  Not all systems have dirname.
21968   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
21969   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
21970     # The dest file is in a subdirectory.
21971     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
21972     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
21973     # A "../" for each directory in $ac_dest_dir_suffix.
21974     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
21975   else
21976     ac_dest_dir_suffix= ac_dots=
21977   fi
21978
21979   case "$srcdir" in
21980   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
21981   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
21982   esac
21983
21984   # Make a symlink if possible; otherwise try a hard link.
21985   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21986     ln $srcdir/$ac_source $ac_dest; then :
21987   else
21988     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
21989   fi
21990 done
21991 EOF
21992 cat >> $CONFIG_STATUS <<EOF
21993
21994 srcdir=${srcdir}
21995 host=${host}
21996 target=${target}
21997 with_multisubdir=${with_multisubdir}
21998 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21999 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22000 glibcpp_basedir=${glibcpp_basedir}
22001 CC="${CC}"
22002 CXX="${CXX}"
22003
22004 EOF
22005 cat >> $CONFIG_STATUS <<\EOF
22006 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22007 if test -n "$CONFIG_FILES"; then
22008   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22009   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22010   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22011   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22012 fi
22013 chmod +x mkcheck
22014 chmod +x testsuite_flags
22015
22016 exit 0
22017 EOF
22018 chmod +x $CONFIG_STATUS
22019 rm -fr confdefs* $ac_clean_files
22020 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22021
22022
22023
22024 # Sanity checking & User-visible messages.
22025 # Checks down here, otherwise they get scrolled off before
22026 # the user will notice.
22027
22028 # Trying to get more people to read documentation.  Possibly remove
22029 # check and warn all the time. There is no "informational" AC_MSG_
22030 # macro, so these are going to be printed even when --quiet/--silent
22031 # is given.
22032 if test ! -f stamp-sanity-warned; then
22033   touch stamp-sanity-warned
22034   echo ""
22035   echo "Please make certain that you read the installation information here:"
22036   echo "  faster => ${srcdir}/docs/html/install.html"
22037   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22038   echo ""
22039   echo "and the configuration information here:"
22040   echo "  faster => ${srcdir}/docs/html/configopts.html"
22041   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22042   echo ""
22043   echo "before proceeding with ${_cv_gnu_make_command}."
22044   echo ""
22045 fi