acinclude.m4: Add C++ linkage check for strtof.
[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-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62   --with-gxx-include-dir  the installation directory for include files"
63 ac_help="$ac_help
64   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
65
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 srcdir=
83 target=NONE
84 verbose=
85 x_includes=NONE
86 x_libraries=NONE
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
99
100 # Initialize some other variables.
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 ac_max_here_lines=12
106
107 ac_prev=
108 for ac_option
109 do
110
111   # If the previous option needs an argument, assign it.
112   if test -n "$ac_prev"; then
113     eval "$ac_prev=\$ac_option"
114     ac_prev=
115     continue
116   fi
117
118   case "$ac_option" in
119   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120   *) ac_optarg= ;;
121   esac
122
123   # Accept the important Cygnus configure options, so we can diagnose typos.
124
125   case "$ac_option" in
126
127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
128     ac_prev=bindir ;;
129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130     bindir="$ac_optarg" ;;
131
132   -build | --build | --buil | --bui | --bu)
133     ac_prev=build ;;
134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135     build="$ac_optarg" ;;
136
137   -cache-file | --cache-file | --cache-fil | --cache-fi \
138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139     ac_prev=cache_file ;;
140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142     cache_file="$ac_optarg" ;;
143
144   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145     ac_prev=datadir ;;
146   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147   | --da=*)
148     datadir="$ac_optarg" ;;
149
150   -disable-* | --disable-*)
151     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152     # Reject names that are not valid shell variable names.
153     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155     fi
156     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157     eval "enable_${ac_feature}=no" ;;
158
159   -enable-* | --enable-*)
160     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161     # Reject names that are not valid shell variable names.
162     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164     fi
165     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166     case "$ac_option" in
167       *=*) ;;
168       *) ac_optarg=yes ;;
169     esac
170     eval "enable_${ac_feature}='$ac_optarg'" ;;
171
172   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174   | --exec | --exe | --ex)
175     ac_prev=exec_prefix ;;
176   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178   | --exec=* | --exe=* | --ex=*)
179     exec_prefix="$ac_optarg" ;;
180
181   -gas | --gas | --ga | --g)
182     # Obsolete; use --with-gas.
183     with_gas=yes ;;
184
185   -help | --help | --hel | --he)
186     # Omit some internal or obsolete options to make the list less imposing.
187     # This message is too long to be a string in the A/UX 3.1 sh.
188     cat << EOF
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
191 Configuration:
192   --cache-file=FILE       cache test results in FILE
193   --help                  print this message
194   --no-create             do not create output files
195   --quiet, --silent       do not print \`checking...' messages
196   --version               print the version of autoconf that created configure
197 Directory and file names:
198   --prefix=PREFIX         install architecture-independent files in PREFIX
199                           [$ac_default_prefix]
200   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
201                           [same as prefix]
202   --bindir=DIR            user executables in DIR [EPREFIX/bin]
203   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
204   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
205   --datadir=DIR           read-only architecture-independent data in DIR
206                           [PREFIX/share]
207   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
208   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
209                           [PREFIX/com]
210   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
211   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
212   --includedir=DIR        C header files in DIR [PREFIX/include]
213   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
214   --infodir=DIR           info documentation in DIR [PREFIX/info]
215   --mandir=DIR            man documentation in DIR [PREFIX/man]
216   --srcdir=DIR            find the sources in DIR [configure dir or ..]
217   --program-prefix=PREFIX prepend PREFIX to installed program names
218   --program-suffix=SUFFIX append SUFFIX to installed program names
219   --program-transform-name=PROGRAM
220                           run sed PROGRAM on installed program names
221 EOF
222     cat << EOF
223 Host type:
224   --build=BUILD           configure for building on BUILD [BUILD=HOST]
225   --host=HOST             configure for HOST [guessed]
226   --target=TARGET         configure for TARGET [TARGET=HOST]
227 Features and packages:
228   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
229   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
230   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
231   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
232   --x-includes=DIR        X include files are in DIR
233   --x-libraries=DIR       X library files are in DIR
234 EOF
235     if test -n "$ac_help"; then
236       echo "--enable and --with options recognized:$ac_help"
237     fi
238     exit 0 ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host="$ac_optarg" ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir="$ac_optarg" ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir="$ac_optarg" ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir="$ac_optarg" ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir="$ac_optarg" ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir="$ac_optarg" ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir="$ac_optarg" ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir="$ac_optarg" ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix="$ac_optarg" ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix="$ac_optarg" ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix="$ac_optarg" ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name="$ac_optarg" ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir="$ac_optarg" ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir="$ac_optarg" ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site="$ac_optarg" ;;
365
366   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367     ac_prev=srcdir ;;
368   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369     srcdir="$ac_optarg" ;;
370
371   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372   | --syscon | --sysco | --sysc | --sys | --sy)
373     ac_prev=sysconfdir ;;
374   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376     sysconfdir="$ac_optarg" ;;
377
378   -target | --target | --targe | --targ | --tar | --ta | --t)
379     ac_prev=target ;;
380   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381     target="$ac_optarg" ;;
382
383   -v | -verbose | --verbose | --verbos | --verbo | --verb)
384     verbose=yes ;;
385
386   -version | --version | --versio | --versi | --vers)
387     echo "configure generated by autoconf version 2.13"
388     exit 0 ;;
389
390   -with-* | --with-*)
391     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392     # Reject names that are not valid shell variable names.
393     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395     fi
396     ac_package=`echo $ac_package| sed 's/-/_/g'`
397     case "$ac_option" in
398       *=*) ;;
399       *) ac_optarg=yes ;;
400     esac
401     eval "with_${ac_package}='$ac_optarg'" ;;
402
403   -without-* | --without-*)
404     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405     # Reject names that are not valid shell variable names.
406     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408     fi
409     ac_package=`echo $ac_package| sed 's/-/_/g'`
410     eval "with_${ac_package}=no" ;;
411
412   --x)
413     # Obsolete; use --with-x.
414     with_x=yes ;;
415
416   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417   | --x-incl | --x-inc | --x-in | --x-i)
418     ac_prev=x_includes ;;
419   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421     x_includes="$ac_optarg" ;;
422
423   -x-libraries | --x-libraries | --x-librarie | --x-librari \
424   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425     ac_prev=x_libraries ;;
426   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428     x_libraries="$ac_optarg" ;;
429
430   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431     ;;
432
433   *)
434     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435       echo "configure: warning: $ac_option: invalid host type" 1>&2
436     fi
437     if test "x$nonopt" != xNONE; then
438       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439     fi
440     nonopt="$ac_option"
441     ;;
442
443   esac
444 done
445
446 if test -n "$ac_prev"; then
447   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 fi
449
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451
452 # File descriptor usage:
453 # 0 standard input
454 # 1 file creation
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
461   exec 6>/dev/null
462 else
463   exec 6>&1
464 fi
465 exec 5>./config.log
466
467 echo "\
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
470 " 1>&5
471
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
474 ac_configure_args=
475 for ac_arg
476 do
477   case "$ac_arg" in
478   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479   | --no-cr | --no-c) ;;
480   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485   esac
486 done
487
488 # NLS nuisances.
489 # Only set these to C if already set.  These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
497
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 echo > confdefs.h
502
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/ios.cc
506
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509   ac_srcdir_defaulted=yes
510   # Try the directory containing this script, then its parent.
511   ac_prog=$0
512   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514   srcdir=$ac_confdir
515   if test ! -r $srcdir/$ac_unique_file; then
516     srcdir=..
517   fi
518 else
519   ac_srcdir_defaulted=no
520 fi
521 if test ! -r $srcdir/$ac_unique_file; then
522   if test "$ac_srcdir_defaulted" = yes; then
523     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524   else
525     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526   fi
527 fi
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532   if test "x$prefix" != xNONE; then
533     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534   else
535     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536   fi
537 fi
538 for ac_site_file in $CONFIG_SITE; do
539   if test -r "$ac_site_file"; then
540     echo "loading site script $ac_site_file"
541     . "$ac_site_file"
542   fi
543 done
544
545 if test -r "$cache_file"; then
546   echo "loading cache $cache_file"
547   . $cache_file
548 else
549   echo "creating cache $cache_file"
550   > $cache_file
551 fi
552
553 ac_ext=c
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
559
560 ac_exeext=
561 ac_objext=o
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565     ac_n= ac_c='
566 ' ac_t='        '
567   else
568     ac_n=-n ac_c= ac_t=
569   fi
570 else
571   ac_n= ac_c='\c' ac_t=
572 fi
573
574
575
576 PACKAGE=libstdc++
577
578 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
579 release_VERSION=3.1.0
580
581 # For libtool versioning info, format is CURRENT:REVISION:AGE
582 libtool_VERSION=4:0:0
583
584
585 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
586 # AC 2.50 sets target_alias iff the user specified --target, but we use it
587 # everywhere, so we set it here just to be sure.
588 ac_aux_dir=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590   if test -f $ac_dir/install-sh; then
591     ac_aux_dir=$ac_dir
592     ac_install_sh="$ac_aux_dir/install-sh -c"
593     break
594   elif test -f $ac_dir/install.sh; then
595     ac_aux_dir=$ac_dir
596     ac_install_sh="$ac_aux_dir/install.sh -c"
597     break
598   fi
599 done
600 if test -z "$ac_aux_dir"; then
601   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 fi
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606
607
608 # Do some error checking and defaulting for the host and target type.
609 # The inputs are:
610 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
611 #
612 # The rules are:
613 # 1. You are not allowed to specify --host, --target, and nonopt at the
614 #    same time.
615 # 2. Host defaults to nonopt.
616 # 3. If nonopt is not specified, then host defaults to the current host,
617 #    as determined by config.guess.
618 # 4. Target and build default to nonopt.
619 # 5. If nonopt is not specified, then target and build default to host.
620
621 # The aliases save the names the user supplied, while $host etc.
622 # will get canonicalized.
623 case $host---$target---$nonopt in
624 NONE---*---* | *---NONE---* | *---*---NONE) ;;
625 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 esac
627
628
629 # Make sure we can run config.sub.
630 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632 fi
633
634 echo $ac_n "checking host system type""... $ac_c" 1>&6
635 echo "configure:636: checking host system type" >&5
636
637 host_alias=$host
638 case "$host_alias" in
639 NONE)
640   case $nonopt in
641   NONE)
642     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644     fi ;;
645   *) host_alias=$nonopt ;;
646   esac ;;
647 esac
648
649 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$host" 1>&6
654
655 echo $ac_n "checking target system type""... $ac_c" 1>&6
656 echo "configure:657: checking target system type" >&5
657
658 target_alias=$target
659 case "$target_alias" in
660 NONE)
661   case $nonopt in
662   NONE) target_alias=$host_alias ;;
663   *) target_alias=$nonopt ;;
664   esac ;;
665 esac
666
667 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
668 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671 echo "$ac_t""$target" 1>&6
672
673 echo $ac_n "checking build system type""... $ac_c" 1>&6
674 echo "configure:675: checking build system type" >&5
675
676 build_alias=$build
677 case "$build_alias" in
678 NONE)
679   case $nonopt in
680   NONE) build_alias=$host_alias ;;
681   *) build_alias=$nonopt ;;
682   esac ;;
683 esac
684
685 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
686 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$build" 1>&6
690
691 test "$host_alias" != "$target_alias" &&
692   test "$program_prefix$program_suffix$program_transform_name" = \
693     NONENONEs,x,x, &&
694   program_prefix=${target_alias}-
695
696 target_alias=${target_alias-$target}
697
698
699 # Find a good install program.  We prefer a C program (faster),
700 # so one script is as good as another.  But avoid the broken or
701 # incompatible versions:
702 # SysV /etc/install, /usr/sbin/install
703 # SunOS /usr/etc/install
704 # IRIX /sbin/install
705 # AIX /bin/install
706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709 # ./install, which can be erroneously created by make from ./install.sh.
710 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711 echo "configure:712: checking for a BSD compatible install" >&5
712 if test -z "$INSTALL"; then
713 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714   echo $ac_n "(cached) $ac_c" 1>&6
715 else
716     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
717   for ac_dir in $PATH; do
718     # Account for people who put trailing slashes in PATH elements.
719     case "$ac_dir/" in
720     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721     *)
722       # OSF1 and SCO ODT 3.0 have their own names for install.
723       # Don't use installbsd from OSF since it installs stuff as root
724       # by default.
725       for ac_prog in ginstall scoinst install; do
726         if test -f $ac_dir/$ac_prog; then
727           if test $ac_prog = install &&
728             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
729             # AIX install.  It has an incompatible calling convention.
730             :
731           else
732             ac_cv_path_install="$ac_dir/$ac_prog -c"
733             break 2
734           fi
735         fi
736       done
737       ;;
738     esac
739   done
740   IFS="$ac_save_IFS"
741
742 fi
743   if test "${ac_cv_path_install+set}" = set; then
744     INSTALL="$ac_cv_path_install"
745   else
746     # As a last resort, use the slow shell script.  We don't cache a
747     # path for INSTALL within a source directory, because that will
748     # break other packages using the cache if that directory is
749     # removed, or if the path is relative.
750     INSTALL="$ac_install_sh"
751   fi
752 fi
753 echo "$ac_t""$INSTALL" 1>&6
754
755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
756 # It thinks the first close brace ends the variable substitution.
757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
758
759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
760
761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
762
763 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
764 echo "configure:765: checking whether build environment is sane" >&5
765 # Just in case
766 sleep 1
767 echo timestamp > conftestfile
768 # Do `set' in a subshell so we don't clobber the current shell's
769 # arguments.  Must try -L first in case configure is actually a
770 # symlink; some systems play weird games with the mod time of symlinks
771 # (eg FreeBSD returns the mod time of the symlink's containing
772 # directory).
773 if (
774    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
775    if test "$*" = "X"; then
776       # -L didn't work.
777       set X `ls -t $srcdir/configure conftestfile`
778    fi
779    if test "$*" != "X $srcdir/configure conftestfile" \
780       && test "$*" != "X conftestfile $srcdir/configure"; then
781
782       # If neither matched, then we have a broken ls.  This can happen
783       # if, for instance, CONFIG_SHELL is bash and it inherits a
784       # broken ls alias from the environment.  This has actually
785       # happened.  Such a system could not be considered "sane".
786       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
787 alias in your environment" 1>&2; exit 1; }
788    fi
789
790    test "$2" = conftestfile
791    )
792 then
793    # Ok.
794    :
795 else
796    { echo "configure: error: newly created file is older than distributed files!
797 Check your system clock" 1>&2; exit 1; }
798 fi
799 rm -f conftest*
800 echo "$ac_t""yes" 1>&6
801 if test "$program_transform_name" = s,x,x,; then
802   program_transform_name=
803 else
804   # Double any \ or $.  echo might interpret backslashes.
805   cat <<\EOF_SED > conftestsed
806 s,\\,\\\\,g; s,\$,$$,g
807 EOF_SED
808   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
809   rm -f conftestsed
810 fi
811 test "$program_prefix" != NONE &&
812   program_transform_name="s,^,${program_prefix},; $program_transform_name"
813 # Use a double $ so make ignores it.
814 test "$program_suffix" != NONE &&
815   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
816
817 # sed with no file args requires a program.
818 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
819
820 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
821 echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
823 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
824   echo $ac_n "(cached) $ac_c" 1>&6
825 else
826   cat > conftestmake <<\EOF
827 all:
828         @echo 'ac_maketemp="${MAKE}"'
829 EOF
830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
831 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
832 if test -n "$ac_maketemp"; then
833   eval ac_cv_prog_make_${ac_make}_set=yes
834 else
835   eval ac_cv_prog_make_${ac_make}_set=no
836 fi
837 rm -f conftestmake
838 fi
839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
840   echo "$ac_t""yes" 1>&6
841   SET_MAKE=
842 else
843   echo "$ac_t""no" 1>&6
844   SET_MAKE="MAKE=${MAKE-make}"
845 fi
846
847
848 PACKAGE=$PACKAGE
849
850 VERSION=$release_VERSION
851
852 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
853   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
854 fi
855 cat >> confdefs.h <<EOF
856 #define PACKAGE "$PACKAGE"
857 EOF
858
859 cat >> confdefs.h <<EOF
860 #define VERSION "$VERSION"
861 EOF
862
863
864
865 missing_dir=`cd $ac_aux_dir && pwd`
866 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
867 echo "configure:868: checking for working aclocal" >&5
868 # Run test in a subshell; some versions of sh will print an error if
869 # an executable is not found, even if stderr is redirected.
870 # Redirect stdin to placate older versions of autoconf.  Sigh.
871 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
872    ACLOCAL=aclocal
873    echo "$ac_t""found" 1>&6
874 else
875    ACLOCAL="$missing_dir/missing aclocal"
876    echo "$ac_t""missing" 1>&6
877 fi
878
879 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
880 echo "configure:881: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
885    AUTOCONF=autoconf
886    echo "$ac_t""found" 1>&6
887 else
888    AUTOCONF="$missing_dir/missing autoconf"
889    echo "$ac_t""missing" 1>&6
890 fi
891
892 echo $ac_n "checking for working automake""... $ac_c" 1>&6
893 echo "configure:894: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
898    AUTOMAKE=automake
899    echo "$ac_t""found" 1>&6
900 else
901    AUTOMAKE="$missing_dir/missing automake"
902    echo "$ac_t""missing" 1>&6
903 fi
904
905 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
906 echo "configure:907: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
911    AUTOHEADER=autoheader
912    echo "$ac_t""found" 1>&6
913 else
914    AUTOHEADER="$missing_dir/missing autoheader"
915    echo "$ac_t""missing" 1>&6
916 fi
917
918 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
919 echo "configure:920: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
924    MAKEINFO=makeinfo
925    echo "$ac_t""found" 1>&6
926 else
927    MAKEINFO="$missing_dir/missing makeinfo"
928    echo "$ac_t""missing" 1>&6
929 fi
930
931
932
933
934
935
936 # Runs configure.host and configure.target, as well as finds CC, CXX
937 # and assorted other critical bits. Have to run this before the
938 # GLIBCPP_ENABLE_* macros below.
939 if test $host != $build; then
940   ac_tool_prefix=${host_alias}-
941 else
942   ac_tool_prefix=
943 fi
944
945 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
946 echo "configure:947: checking for Cygwin environment" >&5
947 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
948   echo $ac_n "(cached) $ac_c" 1>&6
949 else
950   cat > conftest.$ac_ext <<EOF
951 #line 952 "configure"
952 #include "confdefs.h"
953
954 int main() {
955
956 #ifndef __CYGWIN__
957 #define __CYGWIN__ __CYGWIN32__
958 #endif
959 return __CYGWIN__;
960 ; return 0; }
961 EOF
962 if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
963   rm -rf conftest*
964   ac_cv_cygwin=yes
965 else
966   echo "configure: failed program was:" >&5
967   cat conftest.$ac_ext >&5
968   rm -rf conftest*
969   ac_cv_cygwin=no
970 fi
971 rm -f conftest*
972 rm -f conftest*
973 fi
974
975 echo "$ac_t""$ac_cv_cygwin" 1>&6
976 CYGWIN=
977 test "$ac_cv_cygwin" = yes && CYGWIN=yes
978 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
979 echo "configure:980: checking for mingw32 environment" >&5
980 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
981   echo $ac_n "(cached) $ac_c" 1>&6
982 else
983   cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986
987 int main() {
988 return __MINGW32__;
989 ; return 0; }
990 EOF
991 if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992   rm -rf conftest*
993   ac_cv_mingw32=yes
994 else
995   echo "configure: failed program was:" >&5
996   cat conftest.$ac_ext >&5
997   rm -rf conftest*
998   ac_cv_mingw32=no
999 fi
1000 rm -f conftest*
1001 rm -f conftest*
1002 fi
1003
1004 echo "$ac_t""$ac_cv_mingw32" 1>&6
1005 MINGW32=
1006 test "$ac_cv_mingw32" = yes && MINGW32=yes
1007
1008     # Check whether --enable-multilib or --disable-multilib was given.
1009 if test "${enable_multilib+set}" = set; then
1010   enableval="$enable_multilib"
1011   case "${enableval}" in
1012     yes) multilib=yes ;;
1013     no)  multilib=no ;;
1014     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1015    esac
1016 else
1017   multilib=yes
1018 fi
1019
1020 # When building with srcdir == objdir, links to the source files will
1021 # be created in directories within the target_subdir.  We have to
1022 # adjust toplevel_srcdir accordingly, so that configure finds
1023 # install-sh and other auxiliary files that live in the top-level
1024 # source directory.
1025 if test "${srcdir}" = "."; then
1026   if test -z "${with_target_subdir}"; then
1027     toprel=".."
1028   else
1029     if test "${with_target_subdir}" != "."; then
1030       toprel="${with_multisrctop}../.."
1031     else
1032       toprel="${with_multisrctop}.."
1033     fi
1034   fi
1035 else
1036   toprel=".."
1037 fi
1038 ac_aux_dir=
1039 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1040   if test -f $ac_dir/install-sh; then
1041     ac_aux_dir=$ac_dir
1042     ac_install_sh="$ac_aux_dir/install-sh -c"
1043     break
1044   elif test -f $ac_dir/install.sh; then
1045     ac_aux_dir=$ac_dir
1046     ac_install_sh="$ac_aux_dir/install.sh -c"
1047     break
1048   fi
1049 done
1050 if test -z "$ac_aux_dir"; then
1051   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1052 fi
1053 ac_config_guess=$ac_aux_dir/config.guess
1054 ac_config_sub=$ac_aux_dir/config.sub
1055 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1056
1057 toplevel_srcdir=\${top_srcdir}/$toprel
1058
1059
1060 # Export build and source directories.
1061 # These need to be absolute paths, yet at the same time need to
1062 # canonicalize only relative paths, because then amd will not unmount
1063 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1064 glibcpp_builddir=`pwd`
1065 case $srcdir in
1066 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1067 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1068 esac
1069
1070
1071
1072
1073
1074 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1075 # be 'cp -p' if linking isn't available.
1076 #ac_cv_prog_LN_S='cp -p'
1077 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ln -s works" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1080   echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082   rm -f conftestdata
1083 if ln -s X conftestdata 2>/dev/null
1084 then
1085   rm -f conftestdata
1086   ac_cv_prog_LN_S="ln -s"
1087 else
1088   ac_cv_prog_LN_S=ln
1089 fi
1090 fi
1091 LN_S="$ac_cv_prog_LN_S"
1092 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1093   echo "$ac_t""yes" 1>&6
1094 else
1095   echo "$ac_t""no" 1>&6
1096 fi
1097
1098
1099 # We use these options to decide which functions to include.
1100 # Check whether --with-target-subdir or --without-target-subdir was given.
1101 if test "${with_target_subdir+set}" = set; then
1102   withval="$with_target_subdir"
1103   :
1104 fi
1105
1106 # Check whether --with-cross-host or --without-cross-host was given.
1107 if test "${with_cross_host+set}" = set; then
1108   withval="$with_cross_host"
1109   :
1110 fi
1111
1112
1113   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1114   
1115
1116   # Never versions of autoconf add an underscore to these functions.
1117   # Prevent future problems ...
1118   
1119   
1120   
1121   
1122
1123 #  AC_PROG_CC
1124
1125 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1126 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1127 # are probably using a cross compiler, which will not be able to fully
1128 # link an executable.  This should really be fixed in autoconf
1129 # itself.
1130
1131
1132
1133
1134 # Extract the first word of "gcc", so it can be a program name with args.
1135 set dummy gcc; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139   echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141   if test -n "$CC"; then
1142   ac_cv_prog_CC="$CC" # Let the user override the test.
1143 else
1144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1145   ac_dummy="$PATH"
1146   for ac_dir in $ac_dummy; do
1147     test -z "$ac_dir" && ac_dir=.
1148     if test -f $ac_dir/$ac_word; then
1149       ac_cv_prog_CC="gcc"
1150       break
1151     fi
1152   done
1153   IFS="$ac_save_ifs"
1154 fi
1155 fi
1156 CC="$ac_cv_prog_CC"
1157 if test -n "$CC"; then
1158   echo "$ac_t""$CC" 1>&6
1159 else
1160   echo "$ac_t""no" 1>&6
1161 fi
1162
1163 if test -z "$CC"; then
1164   # Extract the first word of "cc", so it can be a program name with args.
1165 set dummy cc; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169   echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171   if test -n "$CC"; then
1172   ac_cv_prog_CC="$CC" # Let the user override the test.
1173 else
1174   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1175   ac_prog_rejected=no
1176   ac_dummy="$PATH"
1177   for ac_dir in $ac_dummy; do
1178     test -z "$ac_dir" && ac_dir=.
1179     if test -f $ac_dir/$ac_word; then
1180       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1181         ac_prog_rejected=yes
1182         continue
1183       fi
1184       ac_cv_prog_CC="cc"
1185       break
1186     fi
1187   done
1188   IFS="$ac_save_ifs"
1189 if test $ac_prog_rejected = yes; then
1190   # We found a bogon in the path, so make sure we never use it.
1191   set dummy $ac_cv_prog_CC
1192   shift
1193   if test $# -gt 0; then
1194     # We chose a different compiler from the bogus one.
1195     # However, it has the same basename, so the bogon will be chosen
1196     # first if we set CC to just the basename; use the full file name.
1197     shift
1198     set dummy "$ac_dir/$ac_word" "$@"
1199     shift
1200     ac_cv_prog_CC="$@"
1201   fi
1202 fi
1203 fi
1204 fi
1205 CC="$ac_cv_prog_CC"
1206 if test -n "$CC"; then
1207   echo "$ac_t""$CC" 1>&6
1208 else
1209   echo "$ac_t""no" 1>&6
1210 fi
1211
1212   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1213 fi
1214
1215 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether we are using GNU C" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1218   echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220   cat > conftest.c <<EOF
1221 #ifdef __GNUC__
1222   yes;
1223 #endif
1224 EOF
1225 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1226   ac_cv_prog_gcc=yes
1227 else
1228   ac_cv_prog_gcc=no
1229 fi
1230 fi
1231
1232 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1233
1234 if test $ac_cv_prog_gcc = yes; then
1235   GCC=yes
1236   ac_test_CFLAGS="${CFLAGS+set}"
1237   ac_save_CFLAGS="$CFLAGS"
1238   CFLAGS=
1239   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -g" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1242   echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244   echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1246   ac_cv_prog_cc_g=yes
1247 else
1248   ac_cv_prog_cc_g=no
1249 fi
1250 rm -f conftest*
1251
1252 fi
1253
1254 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1255   if test "$ac_test_CFLAGS" = set; then
1256     CFLAGS="$ac_save_CFLAGS"
1257   elif test $ac_cv_prog_cc_g = yes; then
1258     CFLAGS="-g -O2"
1259   else
1260     CFLAGS="-O2"
1261   fi
1262 else
1263   GCC=
1264   test "${CFLAGS+set}" = set || CFLAGS="-g"
1265 fi
1266
1267
1268 # Can't just call these here as g++ requires libstc++ to be built....
1269 #  AC_PROG_CXX
1270
1271 # Likewise for AC_PROG_CXX.
1272
1273
1274
1275 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1276 # flags that come in CXX while configuring libstdc++.  They're different
1277 # from those used for all other target libraries.  If CXX is set in
1278 # the environment, respect that here.
1279 glibcpp_CXX=$CXX
1280 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1281 do
1282 # Extract the first word of "$ac_prog", so it can be a program name with args.
1283 set dummy $ac_prog; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1287   echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289   if test -n "$glibcpp_CXX"; then
1290   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1291 else
1292   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1293   ac_dummy="$PATH"
1294   for ac_dir in $ac_dummy; do
1295     test -z "$ac_dir" && ac_dir=.
1296     if test -f $ac_dir/$ac_word; then
1297       ac_cv_prog_glibcpp_CXX="$ac_prog"
1298       break
1299     fi
1300   done
1301   IFS="$ac_save_ifs"
1302 fi
1303 fi
1304 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1305 if test -n "$glibcpp_CXX"; then
1306   echo "$ac_t""$glibcpp_CXX" 1>&6
1307 else
1308   echo "$ac_t""no" 1>&6
1309 fi
1310
1311 test -n "$glibcpp_CXX" && break
1312 done
1313 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1314
1315
1316 CXX=$glibcpp_CXX
1317 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1318
1319 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether we are using GNU C++" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1322   echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324   cat > conftest.C <<EOF
1325 #ifdef __GNUC__
1326   yes;
1327 #endif
1328 EOF
1329 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1330   ac_cv_prog_gxx=yes
1331 else
1332   ac_cv_prog_gxx=no
1333 fi
1334 fi
1335
1336 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1337
1338 if test $ac_cv_prog_gxx = yes; then
1339   GXX=yes
1340   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1341   ac_save_CXXFLAGS="$CXXFLAGS"
1342   CXXFLAGS=
1343   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1344 echo "configure:1345: checking whether ${CXX-g++} accepts -g" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   echo 'void f(){}' > conftest.cc
1349 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1350   ac_cv_prog_cxx_g=yes
1351 else
1352   ac_cv_prog_cxx_g=no
1353 fi
1354 rm -f conftest*
1355
1356 fi
1357
1358 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1359   if test "$ac_test_CXXFLAGS" = set; then
1360     CXXFLAGS="$ac_save_CXXFLAGS"
1361   elif test $ac_cv_prog_cxx_g = yes; then
1362     CXXFLAGS="-g -O2"
1363   else
1364     CXXFLAGS="-O2"
1365   fi
1366 else
1367   GXX=
1368   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1369 fi
1370
1371
1372    # For some reason, gettext needs this.
1373    echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1374 echo "configure:1375: checking for POSIXized ISC" >&5
1375 if test -d /etc/conf/kconfig.d &&
1376   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1377 then
1378   echo "$ac_t""yes" 1>&6
1379   ISC=yes # If later tests want to check for ISC.
1380   cat >> confdefs.h <<\EOF
1381 #define _POSIX_SOURCE 1
1382 EOF
1383
1384   if test "$GCC" = yes; then
1385     CC="$CC -posix"
1386   else
1387     CC="$CC -Xp"
1388   fi
1389 else
1390   echo "$ac_t""no" 1>&6
1391   ISC=
1392 fi
1393
1394
1395   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1396 set dummy ${ac_tool_prefix}as; ac_word=$2
1397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1398 echo "configure:1399: checking for $ac_word" >&5
1399 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1400   echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402   if test -n "$AS"; then
1403   ac_cv_prog_AS="$AS" # Let the user override the test.
1404 else
1405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1406   ac_dummy="$PATH"
1407   for ac_dir in $ac_dummy; do
1408     test -z "$ac_dir" && ac_dir=.
1409     if test -f $ac_dir/$ac_word; then
1410       ac_cv_prog_AS="${ac_tool_prefix}as"
1411       break
1412     fi
1413   done
1414   IFS="$ac_save_ifs"
1415   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1416 fi
1417 fi
1418 AS="$ac_cv_prog_AS"
1419 if test -n "$AS"; then
1420   echo "$ac_t""$AS" 1>&6
1421 else
1422   echo "$ac_t""no" 1>&6
1423 fi
1424
1425
1426
1427   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1428 set dummy ${ac_tool_prefix}ar; ac_word=$2
1429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1430 echo "configure:1431: checking for $ac_word" >&5
1431 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1432   echo $ac_n "(cached) $ac_c" 1>&6
1433 else
1434   if test -n "$AR"; then
1435   ac_cv_prog_AR="$AR" # Let the user override the test.
1436 else
1437   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1438   ac_dummy="$PATH"
1439   for ac_dir in $ac_dummy; do
1440     test -z "$ac_dir" && ac_dir=.
1441     if test -f $ac_dir/$ac_word; then
1442       ac_cv_prog_AR="${ac_tool_prefix}ar"
1443       break
1444     fi
1445   done
1446   IFS="$ac_save_ifs"
1447   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1448 fi
1449 fi
1450 AR="$ac_cv_prog_AR"
1451 if test -n "$AR"; then
1452   echo "$ac_t""$AR" 1>&6
1453 else
1454   echo "$ac_t""no" 1>&6
1455 fi
1456
1457
1458
1459   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1462 echo "configure:1463: checking for $ac_word" >&5
1463 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1464   echo $ac_n "(cached) $ac_c" 1>&6
1465 else
1466   if test -n "$RANLIB"; then
1467   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1468 else
1469   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1470   ac_dummy="$PATH"
1471   for ac_dir in $ac_dummy; do
1472     test -z "$ac_dir" && ac_dir=.
1473     if test -f $ac_dir/$ac_word; then
1474       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1475       break
1476     fi
1477   done
1478   IFS="$ac_save_ifs"
1479 fi
1480 fi
1481 RANLIB="$ac_cv_prog_RANLIB"
1482 if test -n "$RANLIB"; then
1483   echo "$ac_t""$RANLIB" 1>&6
1484 else
1485   echo "$ac_t""no" 1>&6
1486 fi
1487
1488
1489 if test -z "$ac_cv_prog_RANLIB"; then
1490 if test -n "$ac_tool_prefix"; then
1491   # Extract the first word of "ranlib", so it can be a program name with args.
1492 set dummy ranlib; ac_word=$2
1493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1494 echo "configure:1495: checking for $ac_word" >&5
1495 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1496   echo $ac_n "(cached) $ac_c" 1>&6
1497 else
1498   if test -n "$RANLIB"; then
1499   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1500 else
1501   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1502   ac_dummy="$PATH"
1503   for ac_dir in $ac_dummy; do
1504     test -z "$ac_dir" && ac_dir=.
1505     if test -f $ac_dir/$ac_word; then
1506       ac_cv_prog_RANLIB="ranlib"
1507       break
1508     fi
1509   done
1510   IFS="$ac_save_ifs"
1511   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1512 fi
1513 fi
1514 RANLIB="$ac_cv_prog_RANLIB"
1515 if test -n "$RANLIB"; then
1516   echo "$ac_t""$RANLIB" 1>&6
1517 else
1518   echo "$ac_t""no" 1>&6
1519 fi
1520
1521 else
1522   RANLIB="ranlib-not-found-in-path-error"
1523 fi
1524 fi
1525
1526   # Find a good install program.  We prefer a C program (faster),
1527 # so one script is as good as another.  But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1532 # AIX /bin/install
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # ./install, which can be erroneously created by make from ./install.sh.
1537 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1538 echo "configure:1539: checking for a BSD compatible install" >&5
1539 if test -z "$INSTALL"; then
1540 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1541   echo $ac_n "(cached) $ac_c" 1>&6
1542 else
1543     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1544   for ac_dir in $PATH; do
1545     # Account for people who put trailing slashes in PATH elements.
1546     case "$ac_dir/" in
1547     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1548     *)
1549       # OSF1 and SCO ODT 3.0 have their own names for install.
1550       # Don't use installbsd from OSF since it installs stuff as root
1551       # by default.
1552       for ac_prog in ginstall scoinst install; do
1553         if test -f $ac_dir/$ac_prog; then
1554           if test $ac_prog = install &&
1555             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1556             # AIX install.  It has an incompatible calling convention.
1557             :
1558           else
1559             ac_cv_path_install="$ac_dir/$ac_prog -c"
1560             break 2
1561           fi
1562         fi
1563       done
1564       ;;
1565     esac
1566   done
1567   IFS="$ac_save_IFS"
1568
1569 fi
1570   if test "${ac_cv_path_install+set}" = set; then
1571     INSTALL="$ac_cv_path_install"
1572   else
1573     # As a last resort, use the slow shell script.  We don't cache a
1574     # path for INSTALL within a source directory, because that will
1575     # break other packages using the cache if that directory is
1576     # removed, or if the path is relative.
1577     INSTALL="$ac_install_sh"
1578   fi
1579 fi
1580 echo "$ac_t""$INSTALL" 1>&6
1581
1582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1583 # It thinks the first close brace ends the variable substitution.
1584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1585
1586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1587
1588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1589
1590
1591   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1592 echo "configure:1593: checking whether to enable maintainer-specific portions of Makefiles" >&5
1593     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1594 if test "${enable_maintainer_mode+set}" = set; then
1595   enableval="$enable_maintainer_mode"
1596   USE_MAINTAINER_MODE=$enableval
1597 else
1598   USE_MAINTAINER_MODE=no
1599 fi
1600
1601   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1602   
1603
1604 if test $USE_MAINTAINER_MODE = yes; then
1605   MAINTAINER_MODE_TRUE=
1606   MAINTAINER_MODE_FALSE='#'
1607 else
1608   MAINTAINER_MODE_TRUE='#'
1609   MAINTAINER_MODE_FALSE=
1610 fi
1611   MAINT=$MAINTAINER_MODE_TRUE
1612   
1613
1614
1615   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1616   # at least currently, we never actually build a program, so we never
1617   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1618   # fails, because we are probably configuring with a cross compiler
1619   # which can't create executables.  So we include AC_EXEEXT to keep
1620   # automake happy, but we don't execute it, since we don't care about
1621   # the result.
1622   if false; then
1623     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1624     # to nothing, so nothing would remain between `then' and `fi' if it
1625     # were not for the `:' below.
1626     :
1627     
1628
1629 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1630 echo "configure:1631: checking for executable suffix" >&5
1631 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1632   echo $ac_n "(cached) $ac_c" 1>&6
1633 else
1634   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1635   ac_cv_exeext=.exe
1636 else
1637   rm -f conftest*
1638   echo 'int main () { return 0; }' > conftest.$ac_ext
1639   ac_cv_exeext=
1640   if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1641     for file in conftest.*; do
1642       case $file in
1643       *.c | *.C | *.o | *.obj) ;;
1644       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1645       esac
1646     done
1647   else
1648     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1649   fi
1650   rm -f conftest*
1651   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1652 fi
1653 fi
1654
1655 EXEEXT=""
1656 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1657 echo "$ac_t""${ac_cv_exeext}" 1>&6
1658 ac_exeext=$EXEEXT
1659
1660   fi
1661
1662   . ${glibcpp_basedir}/configure.host
1663
1664   case ${glibcpp_basedir} in
1665     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1666     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1667   esac
1668
1669   # This does for the target what configure.host does for the host.  In
1670   # addition to possibly modifying the same flags, it also sets up symlinks.
1671   
1672     . ${glibcpp_basedir}/configure.target
1673     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1674     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1675
1676
1677   # 
1678
1679
1680
1681 # Check whether --enable-shared or --disable-shared was given.
1682 if test "${enable_shared+set}" = set; then
1683   enableval="$enable_shared"
1684   p=${PACKAGE-default}
1685 case $enableval in
1686 yes) enable_shared=yes ;;
1687 no) enable_shared=no ;;
1688 *)
1689   enable_shared=no
1690   # Look at the argument we got.  We use all the common list separators.
1691   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1692   for pkg in $enableval; do
1693     if test "X$pkg" = "X$p"; then
1694       enable_shared=yes
1695     fi
1696   done
1697   IFS="$ac_save_ifs"
1698   ;;
1699 esac
1700 else
1701   enable_shared=yes
1702 fi
1703
1704 # Check whether --enable-static or --disable-static was given.
1705 if test "${enable_static+set}" = set; then
1706   enableval="$enable_static"
1707   p=${PACKAGE-default}
1708 case $enableval in
1709 yes) enable_static=yes ;;
1710 no) enable_static=no ;;
1711 *)
1712   enable_static=no
1713   # Look at the argument we got.  We use all the common list separators.
1714   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1715   for pkg in $enableval; do
1716     if test "X$pkg" = "X$p"; then
1717       enable_static=yes
1718     fi
1719   done
1720   IFS="$ac_save_ifs"
1721   ;;
1722 esac
1723 else
1724   enable_static=yes
1725 fi
1726
1727 # Check whether --enable-fast-install or --disable-fast-install was given.
1728 if test "${enable_fast_install+set}" = set; then
1729   enableval="$enable_fast_install"
1730   p=${PACKAGE-default}
1731 case $enableval in
1732 yes) enable_fast_install=yes ;;
1733 no) enable_fast_install=no ;;
1734 *)
1735   enable_fast_install=no
1736   # Look at the argument we got.  We use all the common list separators.
1737   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1738   for pkg in $enableval; do
1739     if test "X$pkg" = "X$p"; then
1740       enable_fast_install=yes
1741     fi
1742   done
1743   IFS="$ac_save_ifs"
1744   ;;
1745 esac
1746 else
1747   enable_fast_install=yes
1748 fi
1749
1750 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1751 if test "${with_gnu_ld+set}" = set; then
1752   withval="$with_gnu_ld"
1753   test "$withval" = no || with_gnu_ld=yes
1754 else
1755   with_gnu_ld=no
1756 fi
1757
1758 ac_prog=ld
1759 if test "$GCC" = yes; then
1760   # Check if gcc -print-prog-name=ld gives a path.
1761   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1762 echo "configure:1763: checking for ld used by GCC" >&5
1763   case $host in
1764   *-*-mingw*)
1765     # gcc leaves a trailing carriage return which upsets mingw
1766     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1767   *)
1768     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1769   esac
1770   case $ac_prog in
1771     # Accept absolute paths.
1772     [\\/]* | [A-Za-z]:[\\/]*)
1773       re_direlt='/[^/][^/]*/\.\./'
1774       # Canonicalize the path of ld
1775       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1776       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1777         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1778       done
1779       test -z "$LD" && LD="$ac_prog"
1780       ;;
1781   "")
1782     # If it fails, then pretend we aren't using GCC.
1783     ac_prog=ld
1784     ;;
1785   *)
1786     # If it is relative, then search for the first ld in PATH.
1787     with_gnu_ld=unknown
1788     ;;
1789   esac
1790 elif test "$with_gnu_ld" = yes; then
1791   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1792 echo "configure:1793: checking for GNU ld" >&5
1793 else
1794   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1795 echo "configure:1796: checking for non-GNU ld" >&5
1796 fi
1797 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1798   echo $ac_n "(cached) $ac_c" 1>&6
1799 else
1800   if test -z "$LD"; then
1801   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1802   for ac_dir in $PATH; do
1803     test -z "$ac_dir" && ac_dir=.
1804     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1805       lt_cv_path_LD="$ac_dir/$ac_prog"
1806       # Check to see if the program is GNU ld.  I'd rather use --version,
1807       # but apparently some GNU ld's only accept -v.
1808       # Break only if it was the GNU/non-GNU ld that we prefer.
1809       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1810         test "$with_gnu_ld" != no && break
1811       else
1812         test "$with_gnu_ld" != yes && break
1813       fi
1814     fi
1815   done
1816   IFS="$ac_save_ifs"
1817 else
1818   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1819 fi
1820 fi
1821
1822 LD="$lt_cv_path_LD"
1823 if test -n "$LD"; then
1824   echo "$ac_t""$LD" 1>&6
1825 else
1826   echo "$ac_t""no" 1>&6
1827 fi
1828 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1829 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1830 echo "configure:1831: checking if the linker ($LD) is GNU ld" >&5
1831 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1832   echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1835 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1836   lt_cv_prog_gnu_ld=yes
1837 else
1838   lt_cv_prog_gnu_ld=no
1839 fi
1840 fi
1841
1842 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1843 with_gnu_ld=$lt_cv_prog_gnu_ld
1844
1845
1846 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $LD option to reload object files" >&5
1848 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1849   echo $ac_n "(cached) $ac_c" 1>&6
1850 else
1851   lt_cv_ld_reload_flag='-r'
1852 fi
1853
1854 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1855 reload_flag=$lt_cv_ld_reload_flag
1856 test -n "$reload_flag" && reload_flag=" $reload_flag"
1857
1858 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1859 echo "configure:1860: checking for BSD-compatible nm" >&5
1860 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1861   echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863   if test -n "$NM"; then
1864   # Let the user override the test.
1865   lt_cv_path_NM="$NM"
1866 else
1867   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1868   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1869     test -z "$ac_dir" && ac_dir=.
1870     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1871     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1872       # Check to see if the nm accepts a BSD-compat flag.
1873       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1874       #   nm: unknown option "B" ignored
1875       # Tru64's nm complains that /dev/null is an invalid object file
1876       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1877         lt_cv_path_NM="$tmp_nm -B"
1878         break
1879       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1880         lt_cv_path_NM="$tmp_nm -p"
1881         break
1882       else
1883         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1884         continue # so that we can try to find one that supports BSD flags
1885       fi
1886     fi
1887   done
1888   IFS="$ac_save_ifs"
1889   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1890 fi
1891 fi
1892
1893 NM="$lt_cv_path_NM"
1894 echo "$ac_t""$NM" 1>&6
1895
1896 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1897 echo "configure:1898: checking how to recognise dependant libraries" >&5
1898 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1899   echo $ac_n "(cached) $ac_c" 1>&6
1900 else
1901   lt_cv_file_magic_cmd='$MAGIC_CMD'
1902 lt_cv_file_magic_test_file=
1903 lt_cv_deplibs_check_method='unknown'
1904 # Need to set the preceding variable on all platforms that support
1905 # interlibrary dependencies.
1906 # 'none' -- dependencies not supported.
1907 # `unknown' -- same as none, but documents that we really don't know.
1908 # 'pass_all' -- all dependencies passed with no checks.
1909 # 'test_compile' -- check by making test program.
1910 # 'file_magic [regex]' -- check by looking for files in library path
1911 # which responds to the $file_magic_cmd with a given egrep regex.
1912 # If you have `file' or equivalent on your system and you're not sure
1913 # whether `pass_all' will *always* work, you probably want this one.
1914
1915 case $host_os in
1916 aix*)
1917   lt_cv_deplibs_check_method=pass_all
1918   ;;
1919
1920 beos*)
1921   lt_cv_deplibs_check_method=pass_all
1922   ;;
1923
1924 bsdi4*)
1925   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1926   lt_cv_file_magic_cmd='/usr/bin/file -L'
1927   lt_cv_file_magic_test_file=/shlib/libc.so
1928   ;;
1929
1930 cygwin* | mingw* |pw32*)
1931   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1932   lt_cv_file_magic_cmd='$OBJDUMP -f'
1933   ;;
1934
1935 darwin* | rhapsody*)
1936   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1937   lt_cv_file_magic_cmd='/usr/bin/file -L'
1938   case "$host_os" in
1939   rhapsody* | darwin1.012)
1940     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1941     ;;
1942   *) # Darwin 1.3 on
1943     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1944     ;;
1945   esac
1946   ;;
1947
1948 freebsd* )
1949   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1950     case $host_cpu in
1951     i*86 )
1952       # Not sure whether the presence of OpenBSD here was a mistake.
1953       # Let's accept both of them until this is cleared up.
1954       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1955       lt_cv_file_magic_cmd=/usr/bin/file
1956       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1957       ;;
1958     esac
1959   else
1960     lt_cv_deplibs_check_method=pass_all
1961   fi
1962   ;;
1963
1964 gnu*)
1965   lt_cv_deplibs_check_method=pass_all
1966   ;;
1967
1968 hpux10.20*|hpux11*)
1969   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970   lt_cv_file_magic_cmd=/usr/bin/file
1971   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972   ;;
1973
1974 irix5* | irix6*)
1975   case $host_os in
1976   irix5*)
1977     # this will be overridden with pass_all, but let us keep it just in case
1978     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1979     ;;
1980   *)
1981     case $LD in
1982     *-32|*"-32 ") libmagic=32-bit;;
1983     *-n32|*"-n32 ") libmagic=N32;;
1984     *-64|*"-64 ") libmagic=64-bit;;
1985     *) libmagic=never-match;;
1986     esac
1987     # this will be overridden with pass_all, but let us keep it just in case
1988     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1989     ;;
1990   esac
1991   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1992   lt_cv_deplibs_check_method=pass_all
1993   ;;
1994
1995 # This must be Linux ELF.
1996 linux-gnu*)
1997   case $host_cpu in
1998   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1999     lt_cv_deplibs_check_method=pass_all ;;
2000   *)
2001     # glibc up to 2.1.1 does not perform some relocations on ARM
2002     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2003   esac
2004   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2005   ;;
2006
2007 netbsd*)
2008   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2009     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2010   else
2011     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2012   fi
2013   ;;
2014
2015 newsos6)
2016   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2017   lt_cv_file_magic_cmd=/usr/bin/file
2018   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2019   ;;
2020
2021 osf3* | osf4* | osf5*)
2022   # this will be overridden with pass_all, but let us keep it just in case
2023   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2024   lt_cv_file_magic_test_file=/shlib/libc.so
2025   lt_cv_deplibs_check_method=pass_all
2026   ;;
2027
2028 sco3.2v5*)
2029   lt_cv_deplibs_check_method=pass_all
2030   ;;
2031
2032 solaris*)
2033   lt_cv_deplibs_check_method=pass_all
2034   lt_cv_file_magic_test_file=/lib/libc.so
2035   ;;
2036
2037 sysv5uw[78]* | sysv4*uw2*)
2038   lt_cv_deplibs_check_method=pass_all
2039   ;;
2040
2041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2042   case $host_vendor in
2043   ncr)
2044     lt_cv_deplibs_check_method=pass_all
2045     ;;
2046   motorola)
2047     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]'
2048     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2049     ;;
2050   esac
2051   ;;
2052 esac
2053
2054 fi
2055
2056 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2057 file_magic_cmd=$lt_cv_file_magic_cmd
2058 deplibs_check_method=$lt_cv_deplibs_check_method
2059
2060 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2061 echo "configure:2062: checking for object suffix" >&5
2062 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2063   echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065   rm -f conftest*
2066 echo 'int i = 1;' > conftest.$ac_ext
2067 if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2068   for ac_file in conftest.*; do
2069     case $ac_file in
2070     *.c) ;;
2071     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2072     esac
2073   done
2074 else
2075   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2076 fi
2077 rm -f conftest*
2078 fi
2079
2080 echo "$ac_t""$ac_cv_objext" 1>&6
2081 OBJEXT=$ac_cv_objext
2082 ac_objext=$ac_cv_objext
2083
2084 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2085
2086 # Only perform the check for file, if the check method requires it
2087 case $deplibs_check_method in
2088 file_magic*)
2089   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2090     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2091 echo "configure:2092: checking for ${ac_tool_prefix}file" >&5
2092 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2093   echo $ac_n "(cached) $ac_c" 1>&6
2094 else
2095   case $MAGIC_CMD in
2096   /*)
2097   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2098   ;;
2099   ?:/*)
2100   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2101   ;;
2102   *)
2103   ac_save_MAGIC_CMD="$MAGIC_CMD"
2104   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2105   ac_dummy="/usr/bin:$PATH"
2106   for ac_dir in $ac_dummy; do
2107     test -z "$ac_dir" && ac_dir=.
2108     if test -f $ac_dir/${ac_tool_prefix}file; then
2109       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2110       if test -n "$file_magic_test_file"; then
2111         case $deplibs_check_method in
2112         "file_magic "*)
2113           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2114           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2115           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2116             egrep "$file_magic_regex" > /dev/null; then
2117             :
2118           else
2119             cat <<EOF 1>&2
2120
2121 *** Warning: the command libtool uses to detect shared libraries,
2122 *** $file_magic_cmd, produces output that libtool cannot recognize.
2123 *** The result is that libtool may fail to recognize shared libraries
2124 *** as such.  This will affect the creation of libtool libraries that
2125 *** depend on shared libraries, but programs linked with such libtool
2126 *** libraries will work regardless of this problem.  Nevertheless, you
2127 *** may want to report the problem to your system manager and/or to
2128 *** bug-libtool@gnu.org
2129
2130 EOF
2131           fi ;;
2132         esac
2133       fi
2134       break
2135     fi
2136   done
2137   IFS="$ac_save_ifs"
2138   MAGIC_CMD="$ac_save_MAGIC_CMD"
2139   ;;
2140 esac
2141 fi
2142
2143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2144 if test -n "$MAGIC_CMD"; then
2145   echo "$ac_t""$MAGIC_CMD" 1>&6
2146 else
2147   echo "$ac_t""no" 1>&6
2148 fi
2149
2150 if test -z "$lt_cv_path_MAGIC_CMD"; then
2151   if test -n "$ac_tool_prefix"; then
2152     echo $ac_n "checking for file""... $ac_c" 1>&6
2153 echo "configure:2154: checking for file" >&5
2154 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2155   echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157   case $MAGIC_CMD in
2158   /*)
2159   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2160   ;;
2161   ?:/*)
2162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2163   ;;
2164   *)
2165   ac_save_MAGIC_CMD="$MAGIC_CMD"
2166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2167   ac_dummy="/usr/bin:$PATH"
2168   for ac_dir in $ac_dummy; do
2169     test -z "$ac_dir" && ac_dir=.
2170     if test -f $ac_dir/file; then
2171       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2172       if test -n "$file_magic_test_file"; then
2173         case $deplibs_check_method in
2174         "file_magic "*)
2175           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2176           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2177           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2178             egrep "$file_magic_regex" > /dev/null; then
2179             :
2180           else
2181             cat <<EOF 1>&2
2182
2183 *** Warning: the command libtool uses to detect shared libraries,
2184 *** $file_magic_cmd, produces output that libtool cannot recognize.
2185 *** The result is that libtool may fail to recognize shared libraries
2186 *** as such.  This will affect the creation of libtool libraries that
2187 *** depend on shared libraries, but programs linked with such libtool
2188 *** libraries will work regardless of this problem.  Nevertheless, you
2189 *** may want to report the problem to your system manager and/or to
2190 *** bug-libtool@gnu.org
2191
2192 EOF
2193           fi ;;
2194         esac
2195       fi
2196       break
2197     fi
2198   done
2199   IFS="$ac_save_ifs"
2200   MAGIC_CMD="$ac_save_MAGIC_CMD"
2201   ;;
2202 esac
2203 fi
2204
2205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2206 if test -n "$MAGIC_CMD"; then
2207   echo "$ac_t""$MAGIC_CMD" 1>&6
2208 else
2209   echo "$ac_t""no" 1>&6
2210 fi
2211
2212   else
2213     MAGIC_CMD=:
2214   fi
2215 fi
2216
2217   fi
2218   ;;
2219 esac
2220
2221 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_word" >&5
2225 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2226   echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228   if test -n "$RANLIB"; then
2229   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2230 else
2231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2232   ac_dummy="$PATH"
2233   for ac_dir in $ac_dummy; do
2234     test -z "$ac_dir" && ac_dir=.
2235     if test -f $ac_dir/$ac_word; then
2236       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2237       break
2238     fi
2239   done
2240   IFS="$ac_save_ifs"
2241 fi
2242 fi
2243 RANLIB="$ac_cv_prog_RANLIB"
2244 if test -n "$RANLIB"; then
2245   echo "$ac_t""$RANLIB" 1>&6
2246 else
2247   echo "$ac_t""no" 1>&6
2248 fi
2249
2250
2251 if test -z "$ac_cv_prog_RANLIB"; then
2252 if test -n "$ac_tool_prefix"; then
2253   # Extract the first word of "ranlib", so it can be a program name with args.
2254 set dummy ranlib; ac_word=$2
2255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_word" >&5
2257 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2258   echo $ac_n "(cached) $ac_c" 1>&6
2259 else
2260   if test -n "$RANLIB"; then
2261   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2262 else
2263   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2264   ac_dummy="$PATH"
2265   for ac_dir in $ac_dummy; do
2266     test -z "$ac_dir" && ac_dir=.
2267     if test -f $ac_dir/$ac_word; then
2268       ac_cv_prog_RANLIB="ranlib"
2269       break
2270     fi
2271   done
2272   IFS="$ac_save_ifs"
2273   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2274 fi
2275 fi
2276 RANLIB="$ac_cv_prog_RANLIB"
2277 if test -n "$RANLIB"; then
2278   echo "$ac_t""$RANLIB" 1>&6
2279 else
2280   echo "$ac_t""no" 1>&6
2281 fi
2282
2283 else
2284   RANLIB=":"
2285 fi
2286 fi
2287
2288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2289 set dummy ${ac_tool_prefix}strip; ac_word=$2
2290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2291 echo "configure:2292: checking for $ac_word" >&5
2292 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2293   echo $ac_n "(cached) $ac_c" 1>&6
2294 else
2295   if test -n "$STRIP"; then
2296   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2297 else
2298   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2299   ac_dummy="$PATH"
2300   for ac_dir in $ac_dummy; do
2301     test -z "$ac_dir" && ac_dir=.
2302     if test -f $ac_dir/$ac_word; then
2303       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2304       break
2305     fi
2306   done
2307   IFS="$ac_save_ifs"
2308 fi
2309 fi
2310 STRIP="$ac_cv_prog_STRIP"
2311 if test -n "$STRIP"; then
2312   echo "$ac_t""$STRIP" 1>&6
2313 else
2314   echo "$ac_t""no" 1>&6
2315 fi
2316
2317
2318 if test -z "$ac_cv_prog_STRIP"; then
2319 if test -n "$ac_tool_prefix"; then
2320   # Extract the first word of "strip", so it can be a program name with args.
2321 set dummy strip; ac_word=$2
2322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_word" >&5
2324 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2325   echo $ac_n "(cached) $ac_c" 1>&6
2326 else
2327   if test -n "$STRIP"; then
2328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 else
2330   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2331   ac_dummy="$PATH"
2332   for ac_dir in $ac_dummy; do
2333     test -z "$ac_dir" && ac_dir=.
2334     if test -f $ac_dir/$ac_word; then
2335       ac_cv_prog_STRIP="strip"
2336       break
2337     fi
2338   done
2339   IFS="$ac_save_ifs"
2340   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2341 fi
2342 fi
2343 STRIP="$ac_cv_prog_STRIP"
2344 if test -n "$STRIP"; then
2345   echo "$ac_t""$STRIP" 1>&6
2346 else
2347   echo "$ac_t""no" 1>&6
2348 fi
2349
2350 else
2351   STRIP=":"
2352 fi
2353 fi
2354
2355
2356 # Check for any special flags to pass to ltconfig.
2357 libtool_flags="--cache-file=$cache_file"
2358 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2359 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2360 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2361 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2362 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2363 libtool_flags="$libtool_flags --enable-dlopen"
2364
2365 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2366 if test "${enable_libtool_lock+set}" = set; then
2367   enableval="$enable_libtool_lock"
2368   :
2369 fi
2370
2371 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2372 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2373
2374 # Check whether --with-pic or --without-pic was given.
2375 if test "${with_pic+set}" = set; then
2376   withval="$with_pic"
2377   pic_mode="$withval"
2378 else
2379   pic_mode=default
2380 fi
2381
2382 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2383 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2384
2385 # Some flags need to be propagated to the compiler or linker for good
2386 # libtool support.
2387 case $host in
2388 *-*-irix6*)
2389   # Find out which ABI we are using.
2390   echo '#line 2391 "configure"' > conftest.$ac_ext
2391   if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2392     case `/usr/bin/file conftest.$ac_objext` in
2393     *32-bit*)
2394       LD="${LD-ld} -32"
2395       ;;
2396     *N32*)
2397       LD="${LD-ld} -n32"
2398       ;;
2399     *64-bit*)
2400       LD="${LD-ld} -64"
2401       ;;
2402     esac
2403   fi
2404   rm -rf conftest*
2405   ;;
2406
2407 *-*-sco3.2v5*)
2408   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2409   SAVE_CFLAGS="$CFLAGS"
2410   CFLAGS="$CFLAGS -belf"
2411   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2412 echo "configure:2413: checking whether the C compiler needs -belf" >&5
2413 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2414   echo $ac_n "(cached) $ac_c" 1>&6
2415 else
2416   
2417      ac_ext=c
2418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2422 cross_compiling=$ac_cv_prog_cc_cross
2423
2424      cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427
2428 int main() {
2429
2430 ; return 0; }
2431 EOF
2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2433   rm -rf conftest*
2434   lt_cv_cc_needs_belf=yes
2435 else
2436   echo "configure: failed program was:" >&5
2437   cat conftest.$ac_ext >&5
2438   rm -rf conftest*
2439   lt_cv_cc_needs_belf=no
2440 fi
2441 rm -f conftest*
2442      ac_ext=c
2443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2447 cross_compiling=$ac_cv_prog_cc_cross
2448
2449 fi
2450
2451 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2452   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2453     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2454     CFLAGS="$SAVE_CFLAGS"
2455   fi
2456   ;;
2457
2458
2459 esac
2460
2461 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2462 echo "configure:2463: checking how to run the C++ preprocessor" >&5
2463 if test -z "$CXXCPP"; then
2464 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2465   echo $ac_n "(cached) $ac_c" 1>&6
2466 else
2467   ac_ext=C
2468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2469 ac_cpp='$CXXCPP $CPPFLAGS'
2470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2472 cross_compiling=$ac_cv_prog_cxx_cross
2473   CXXCPP="${CXX-g++} -E"
2474   cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 #include <stdlib.h>
2478 EOF
2479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480 { (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482 if test -z "$ac_err"; then
2483   :
2484 else
2485   echo "$ac_err" >&5
2486   echo "configure: failed program was:" >&5
2487   cat conftest.$ac_ext >&5
2488   rm -rf conftest*
2489   CXXCPP=/lib/cpp
2490 fi
2491 rm -f conftest*
2492   ac_cv_prog_CXXCPP="$CXXCPP"
2493 ac_ext=c
2494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2495 ac_cpp='$CPP $CPPFLAGS'
2496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2498 cross_compiling=$ac_cv_prog_cc_cross
2499 fi
2500 fi
2501 CXXCPP="$ac_cv_prog_CXXCPP"
2502 echo "$ac_t""$CXXCPP" 1>&6
2503
2504
2505 # Save cache, so that ltconfig can load it
2506 cat > confcache <<\EOF
2507 # This file is a shell script that caches the results of configure
2508 # tests run on this system so they can be shared between configure
2509 # scripts and configure runs.  It is not useful on other systems.
2510 # If it contains results you don't want to keep, you may remove or edit it.
2511 #
2512 # By default, configure uses ./config.cache as the cache file,
2513 # creating it if it does not exist already.  You can give configure
2514 # the --cache-file=FILE option to use a different cache file; that is
2515 # what configure does when it calls configure scripts in
2516 # subdirectories, so they share the cache.
2517 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2518 # config.status only pays attention to the cache file if you give it the
2519 # --recheck option to rerun configure.
2520 #
2521 EOF
2522 # The following way of writing the cache mishandles newlines in values,
2523 # but we know of no workaround that is simple, portable, and efficient.
2524 # So, don't put newlines in cache variables' values.
2525 # Ultrix sh set writes to stderr and can't be redirected directly,
2526 # and sets the high bit in the cache file unless we assign to the vars.
2527 (set) 2>&1 |
2528   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2529   *ac_space=\ *)
2530     # `set' does not quote correctly, so add quotes (double-quote substitution
2531     # turns \\\\ into \\, and sed turns \\ into \).
2532     sed -n \
2533       -e "s/'/'\\\\''/g" \
2534       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2535     ;;
2536   *)
2537     # `set' quotes correctly as required by POSIX, so do not add quotes.
2538     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2539     ;;
2540   esac >> confcache
2541 if cmp -s $cache_file confcache; then
2542   :
2543 else
2544   if test -w $cache_file; then
2545     echo "updating cache $cache_file"
2546     cat confcache > $cache_file
2547   else
2548     echo "not updating unwritable cache $cache_file"
2549   fi
2550 fi
2551 rm -f confcache
2552
2553
2554 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2555 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2556 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2557 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2558 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2559 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2560 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2561 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2562 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2563 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2564
2565 # Reload cache, that may have been modified by ltconfig
2566 if test -r "$cache_file"; then
2567   echo "loading cache $cache_file"
2568   . $cache_file
2569 else
2570   echo "creating cache $cache_file"
2571   > $cache_file
2572 fi
2573
2574
2575 # This can be used to rebuild libtool when needed
2576 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2577
2578 # Always use our own libtool.
2579 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2580
2581 # Redirect the config.log output again, so that the ltconfig log is not
2582 # clobbered by the next message.
2583 exec 5>>./config.log
2584
2585
2586
2587 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2588 lt_save_CC="$CC"
2589 lt_save_CFLAGS="$CFLAGS"
2590 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2591 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2592 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2593 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2594 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2595 deplibs_check_method="$deplibs_check_method" \
2596 file_magic_cmd="$file_magic_cmd" \
2597 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2598 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2599 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2600 CC="$lt_save_CC"
2601 CFLAGS="$lt_save_CFLAGS"
2602
2603 # Redirect the config.log output again, so that the ltconfig log is not
2604 # clobbered by the next message.
2605 exec 5>>./config.log
2606
2607   
2608
2609   
2610          
2611          
2612
2613
2614
2615 # Check for c++ or library specific bits that don't require linking.
2616 #GLIBCPP_CHECK_COMPILER_VERSION
2617 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2618 echo "configure:2619: checking for GNU make" >&5
2619 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2620   echo $ac_n "(cached) $ac_c" 1>&6
2621 else
2622   _cv_gnu_make_command='' ;
2623           for a in "${MAKE-make}" make gmake gnumake ; do
2624                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2625                   then
2626                           _cv_gnu_make_command=$a ;
2627                           break;
2628                   fi
2629           done ;
2630   
2631 fi
2632
2633 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2634   if test  "x$_cv_gnu_make_command" != "x"  ; then
2635           ifGNUmake='' ;
2636   else
2637           ifGNUmake='#' ;
2638   fi
2639   
2640
2641
2642 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2643 # Check whether --enable-debug or --disable-debug was given.
2644 if test "${enable_debug+set}" = set; then
2645   enableval="$enable_debug"
2646   case "${enableval}" in
2647  yes) enable_debug=yes ;;
2648  no)  enable_debug=no ;;
2649  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2650  esac
2651 else
2652   enable_debug=no
2653 fi
2654
2655 case "${enable_debug}" in
2656     yes) 
2657         DEBUG_FLAGS='-O0 -ggdb3'                        
2658         ;; 
2659     no)   
2660         DEBUG_FLAGS='-g'
2661         ;;
2662 esac
2663
2664
2665 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2666 echo "configure:2667: checking how to run the C preprocessor" >&5
2667 # On Suns, sometimes $CPP names a directory.
2668 if test -n "$CPP" && test -d "$CPP"; then
2669   CPP=
2670 fi
2671 if test -z "$CPP"; then
2672 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2673   echo $ac_n "(cached) $ac_c" 1>&6
2674 else
2675     # This must be in double quotes, not single quotes, because CPP may get
2676   # substituted into the Makefile and "${CC-cc}" will confuse make.
2677   CPP="${CC-cc} -E"
2678   # On the NeXT, cc -E runs the code through the compiler's parser,
2679   # not just through cpp.
2680   cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 #include <assert.h>
2684 Syntax Error
2685 EOF
2686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2687 { (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2689 if test -z "$ac_err"; then
2690   :
2691 else
2692   echo "$ac_err" >&5
2693   echo "configure: failed program was:" >&5
2694   cat conftest.$ac_ext >&5
2695   rm -rf conftest*
2696   CPP="${CC-cc} -E -traditional-cpp"
2697   cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 #include <assert.h>
2701 Syntax Error
2702 EOF
2703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704 { (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2706 if test -z "$ac_err"; then
2707   :
2708 else
2709   echo "$ac_err" >&5
2710   echo "configure: failed program was:" >&5
2711   cat conftest.$ac_ext >&5
2712   rm -rf conftest*
2713   CPP="${CC-cc} -nologo -E"
2714   cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2717 #include <assert.h>
2718 Syntax Error
2719 EOF
2720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2721 { (eval echo configure:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2723 if test -z "$ac_err"; then
2724   :
2725 else
2726   echo "$ac_err" >&5
2727   echo "configure: failed program was:" >&5
2728   cat conftest.$ac_ext >&5
2729   rm -rf conftest*
2730   CPP=/lib/cpp
2731 fi
2732 rm -f conftest*
2733 fi
2734 rm -f conftest*
2735 fi
2736 rm -f conftest*
2737   ac_cv_prog_CPP="$CPP"
2738 fi
2739   CPP="$ac_cv_prog_CPP"
2740 else
2741   ac_cv_prog_CPP="$CPP"
2742 fi
2743 echo "$ac_t""$CPP" 1>&6
2744
2745
2746   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2747 echo "configure:2748: checking for cstdio to use" >&5
2748   # Check whether --enable-cstdio or --disable-cstdio was given.
2749 if test "${enable_cstdio+set}" = set; then
2750   enableval="$enable_cstdio"
2751   if test x$enable_cstdio = xno; then
2752      enable_cstdio=stdio
2753   fi
2754 else
2755   enable_cstdio=stdio
2756 fi
2757
2758
2759   enable_cstdio_flag=$enable_cstdio
2760
2761     case x${enable_cstdio_flag} in
2762     xlibio)
2763       CSTDIO_H=config/io/c_io_libio.h
2764       BASIC_FILE_H=config/io/basic_file_libio.h
2765       BASIC_FILE_CC=config/io/basic_file_libio.cc
2766       echo "$ac_t""libio" 1>&6
2767
2768       # see if we are on a system with libio native (ie, linux)
2769       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2771 echo "configure:2772: checking for libio.h" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773   echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775   cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <libio.h>
2779 EOF
2780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2784   rm -rf conftest*
2785   eval "ac_cv_header_$ac_safe=yes"
2786 else
2787   echo "$ac_err" >&5
2788   echo "configure: failed program was:" >&5
2789   cat conftest.$ac_ext >&5
2790   rm -rf conftest*
2791   eval "ac_cv_header_$ac_safe=no"
2792 fi
2793 rm -f conftest*
2794 fi
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796   echo "$ac_t""yes" 1>&6
2797   has_libio=yes
2798 else
2799   echo "$ac_t""no" 1>&6
2800 has_libio=no
2801 fi
2802
2803
2804       # Need to check and see what version of glibc is being used. If
2805       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2806       # compile most of libio for linux systems.
2807       if test x$has_libio = x"yes"; then
2808         case "$target" in
2809           *-*-linux*)
2810               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2811 echo "configure:2812: checking for glibc version >= 2.2" >&5
2812               cat > conftest.$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2815
2816             #include <features.h>
2817               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2818                     ok
2819               #endif
2820               
2821 EOF
2822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2823   egrep "ok" >/dev/null 2>&1; then
2824   rm -rf conftest*
2825   glibc_satisfactory=yes
2826 else
2827   rm -rf conftest*
2828   glibc_satisfactory=no
2829 fi
2830 rm -f conftest*
2831
2832               echo "$ac_t""$glibc_satisfactory" 1>&6
2833             ;;
2834         esac
2835
2836         # XXX at the moment, admit defeat and force the recompilation
2837         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2838         glibc_satisfactory=no        
2839
2840         if test x$glibc_satisfactory = x"yes"; then
2841            need_libio=no
2842            need_wlibio=no        
2843         else
2844            need_libio=yes
2845            # bkoz XXX need to add checks to enable this
2846            # pme XXX here's a first pass at such a check
2847            if test x$enable_c_mbchar != xno; then
2848               need_wlibio=yes
2849            else
2850               need_wlibio=no
2851            fi
2852         fi
2853
2854       else
2855          # Using libio, but <libio.h> doesn't exist on the target system. . .
2856          need_libio=yes
2857          # bkoz XXX need to add checks to enable this
2858          # pme XXX here's a first pass at such a check
2859          if test x$enable_c_mbchar != xno; then
2860              need_wlibio=yes
2861          else
2862              need_wlibio=no
2863          fi
2864       fi
2865       ;;
2866     xstdio | x | xno | xnone | xyes)
2867       # default
2868       CSTDIO_H=config/io/c_io_stdio.h
2869       BASIC_FILE_H=config/io/basic_file_stdio.h
2870       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2871       echo "$ac_t""stdio" 1>&6
2872
2873       # We're not using stdio.
2874       need_libio=no
2875       need_wlibio=no
2876       ;;
2877     *)
2878       echo "$enable_cstdio is an unknown io package" 1>&2
2879       exit 1
2880       ;;
2881   esac
2882   
2883   
2884   
2885
2886   # 2000-08-04 bkoz hack
2887   CCODECVT_C=config/io/c_io_libio_codecvt.c
2888   
2889   # 2000-08-04 bkoz hack
2890
2891   
2892
2893 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2894   GLIBCPP_BUILD_LIBIO_TRUE=
2895   GLIBCPP_BUILD_LIBIO_FALSE='#'
2896 else
2897   GLIBCPP_BUILD_LIBIO_TRUE='#'
2898   GLIBCPP_BUILD_LIBIO_FALSE=
2899 fi
2900   
2901
2902 if test "$need_libio" = yes; then
2903   GLIBCPP_NEED_LIBIO_TRUE=
2904   GLIBCPP_NEED_LIBIO_FALSE='#'
2905 else
2906   GLIBCPP_NEED_LIBIO_TRUE='#'
2907   GLIBCPP_NEED_LIBIO_FALSE=
2908 fi
2909   
2910
2911 if test "$need_wlibio" = yes; then
2912   GLIBCPP_NEED_WLIBIO_TRUE=
2913   GLIBCPP_NEED_WLIBIO_FALSE='#'
2914 else
2915   GLIBCPP_NEED_WLIBIO_TRUE='#'
2916   GLIBCPP_NEED_WLIBIO_FALSE=
2917 fi
2918   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2919     libio_la=../libio/libio.la
2920   else
2921     libio_la=
2922   fi
2923   
2924
2925
2926   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2927 echo "configure:2928: checking for clocale to use" >&5
2928   # Check whether --enable-clocale or --disable-clocale was given.
2929 if test "${enable_clocale+set}" = set; then
2930   enableval="$enable_clocale"
2931   if test x$enable_clocale = xno; then
2932      enable_clocale=no
2933   fi
2934 else
2935   enable_clocale=no
2936 fi
2937
2938
2939   enable_clocale_flag=$enable_clocale
2940
2941       if test x$enable_clocale_flag = xno; then
2942     case x${target_os} in
2943       xlinux* | xgnu*)
2944         cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947
2948         #include <features.h>
2949         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2950           _GLIBCPP_ok
2951         #endif
2952         
2953 EOF
2954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2955   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2956   rm -rf conftest*
2957   enable_clocale_flag=gnu
2958 else
2959   rm -rf conftest*
2960   enable_clocale_flag=generic
2961 fi
2962 rm -f conftest*
2963
2964
2965         # Test for bugs early in glibc-2.2.x series
2966         if test x$enable_clocale_flag = xgnu; then
2967           if test "$cross_compiling" = yes; then
2968   enable_clocale_flag=generic
2969 else
2970   cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2973
2974           #define _GNU_SOURCE 1
2975           #include <locale.h>
2976           int main()
2977           {
2978             const char __one[] = "Äuglein Augmen";
2979             const char __two[] = "Äuglein";
2980             int i;
2981             int j;
2982             __locale_t  loc;
2983             __locale_t  loc_dup;
2984             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
2985             loc_dup = __duplocale(loc);
2986             i = __strcoll_l(__one, __two, loc);
2987             j = __strcoll_l(__one, __two, loc_dup);
2988             return 0;
2989           }
2990           
2991 EOF
2992 if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2993 then
2994   enable_clocale_flag=gnu
2995 else
2996   echo "configure: failed program was:" >&5
2997   cat conftest.$ac_ext >&5
2998   rm -fr conftest*
2999   enable_clocale_flag=generic
3000 fi
3001 rm -fr conftest*
3002 fi
3003
3004         fi
3005
3006         # ... at some point put __strxfrm_l tests in as well.
3007         ;;
3008       *)
3009         enable_clocale_flag=generic
3010         ;;
3011     esac
3012   fi
3013
3014     case x${enable_clocale_flag} in
3015     xgeneric)
3016       echo "$ac_t""generic" 1>&6
3017
3018       # Don't use gettext.
3019       USE_NLS=no
3020
3021       CLOCALE_H=config/locale/c_locale_generic.h
3022       CLOCALE_CC=config/locale/c_locale_generic.cc
3023       CCODECVT_H=config/locale/codecvt_specializations_generic.h
3024       CCOLLATE_CC=config/locale/collate_members_generic.cc
3025       CCTYPE_CC=config/locale/ctype_members_generic.cc
3026       CMESSAGES_H=config/locale/messages_members_generic.h
3027       CMESSAGES_CC=config/locale/messages_members_generic.cc
3028       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3029       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3030       CTIME_CC=config/locale/time_members_generic.cc
3031       ;;
3032     xgnu)
3033       echo "$ac_t""gnu" 1>&6
3034
3035       # Declare intention to use gettext, and add support for specific
3036       # languages.
3037       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3038       ALL_LINGUAS="de fr"
3039       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3040       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3041       USE_NLS=yes
3042
3043       # Export the build objects.
3044       for ling in $ALL_LINGUAS; do \
3045         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3046         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3047       done
3048       
3049       
3050
3051       CLOCALE_H=config/locale/c_locale_gnu.h
3052       CLOCALE_CC=config/locale/c_locale_gnu.cc
3053       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3054       CCOLLATE_CC=config/locale/collate_members_gnu.cc
3055       CCTYPE_CC=config/locale/ctype_members_gnu.cc
3056       CMESSAGES_H=config/locale/messages_members_gnu.h
3057       CMESSAGES_CC=config/locale/messages_members_gnu.cc
3058       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3059       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3060       CTIME_CC=config/locale/time_members_gnu.cc
3061       ;;
3062     xieee_1003.1)
3063       echo "$ac_t""generic" 1>&6
3064
3065       # Don't use gettext.
3066       USE_NLS=no
3067
3068       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3069       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3070       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3071       CCOLLATE_CC=config/locale/collate_members_generic.cc
3072       CCTYPE_CC=config/locale/ctype_members_generic.cc
3073       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3074       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3075       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3076       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3077       CTIME_CC=config/locale/time_members_generic.cc
3078       ;;
3079     *)
3080       echo "$enable_clocale is an unknown locale package" 1>&2
3081       exit 1
3082       ;;
3083   esac
3084
3085   # This is where the testsuite looks for locale catalogs, using the
3086   # -DLOCALEDIR define during testsuite compilation.
3087   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3088   
3089
3090   
3091   
3092   
3093   
3094   
3095   
3096   
3097   
3098   
3099   
3100   
3101
3102 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3103 if test "${enable_c_mbchar+set}" = set; then
3104   enableval="$enable_c_mbchar"
3105   case "$enableval" in
3106  yes) enable_c_mbchar=yes ;;
3107  no)  enable_c_mbchar=no ;;
3108  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3109  esac
3110 else
3111   enable_c_mbchar=yes
3112 fi
3113
3114   
3115   # Check whether --enable-c99 or --disable-c99 was given.
3116 if test "${enable_c99+set}" = set; then
3117   enableval="$enable_c99"
3118     case "$enableval" in
3119    yes) enable_c99=yes ;;
3120    no)  enable_c99=no ;;
3121    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3122    esac
3123 else
3124   enable_c99=yes
3125 fi
3126  
3127   
3128   ac_ext=C
3129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3130 ac_cpp='$CXXCPP $CPPFLAGS'
3131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3133 cross_compiling=$ac_cv_prog_cxx_cross
3134
3135
3136   # Check for the existence of <math.h> functions used if C99 is enabled.
3137   ac_c99_math=yes;
3138   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3139 echo "configure:3140: checking for ISO C99 support in <math.h>" >&5
3140   cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143 #include <math.h>
3144 int main() {
3145 fpclassify(0.0);
3146 ; return 0; }
3147 EOF
3148 if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149   :
3150 else
3151   echo "configure: failed program was:" >&5
3152   cat conftest.$ac_ext >&5
3153   rm -rf conftest*
3154   ac_c99_math=no
3155 fi
3156 rm -f conftest*
3157   cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 #include <math.h>
3161 int main() {
3162 isfinite(0.0);
3163 ; return 0; }
3164 EOF
3165 if { (eval echo configure:3166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3166   :
3167 else
3168   echo "configure: failed program was:" >&5
3169   cat conftest.$ac_ext >&5
3170   rm -rf conftest*
3171   ac_c99_math=no
3172 fi
3173 rm -f conftest*
3174   cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #include <math.h>
3178 int main() {
3179 isinf(0.0);
3180 ; return 0; }
3181 EOF
3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3183   :
3184 else
3185   echo "configure: failed program was:" >&5
3186   cat conftest.$ac_ext >&5
3187   rm -rf conftest*
3188   ac_c99_math=no
3189 fi
3190 rm -f conftest*
3191   cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <math.h>
3195 int main() {
3196 isnan(0.0);
3197 ; return 0; }
3198 EOF
3199 if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3200   :
3201 else
3202   echo "configure: failed program was:" >&5
3203   cat conftest.$ac_ext >&5
3204   rm -rf conftest*
3205   ac_c99_math=no
3206 fi
3207 rm -f conftest*
3208   cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <math.h>
3212 int main() {
3213 isnormal(0.0);
3214 ; return 0; }
3215 EOF
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3217   :
3218 else
3219   echo "configure: failed program was:" >&5
3220   cat conftest.$ac_ext >&5
3221   rm -rf conftest*
3222   ac_c99_math=no
3223 fi
3224 rm -f conftest*
3225   cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 #include <math.h>
3229 int main() {
3230 signbit(0.0);
3231 ; return 0; }
3232 EOF
3233 if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234   :
3235 else
3236   echo "configure: failed program was:" >&5
3237   cat conftest.$ac_ext >&5
3238   rm -rf conftest*
3239   ac_c99_math=no
3240 fi
3241 rm -f conftest*
3242   cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 #include <math.h>
3246 int main() {
3247 isgreater(0.0,0.0);
3248 ; return 0; }
3249 EOF
3250 if { (eval echo configure:3251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3251   :
3252 else
3253   echo "configure: failed program was:" >&5
3254   cat conftest.$ac_ext >&5
3255   rm -rf conftest*
3256   ac_c99_math=no
3257 fi
3258 rm -f conftest*
3259   cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <math.h>
3263 int main() {
3264 isgreaterequal(0.0,0.0);
3265 ; return 0; }
3266 EOF
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268   :
3269 else
3270   echo "configure: failed program was:" >&5
3271   cat conftest.$ac_ext >&5
3272   rm -rf conftest*
3273   ac_c99_math=no
3274 fi
3275 rm -f conftest*
3276   cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <math.h>
3280 int main() {
3281 isless(0.0,0.0);
3282 ; return 0; }
3283 EOF
3284 if { (eval echo configure:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3285   :
3286 else
3287   echo "configure: failed program was:" >&5
3288   cat conftest.$ac_ext >&5
3289   rm -rf conftest*
3290   ac_c99_math=no
3291 fi
3292 rm -f conftest*
3293   cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <math.h>
3297 int main() {
3298 islessequal(0.0,0.0);
3299 ; return 0; }
3300 EOF
3301 if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302   :
3303 else
3304   echo "configure: failed program was:" >&5
3305   cat conftest.$ac_ext >&5
3306   rm -rf conftest*
3307   ac_c99_math=no
3308 fi
3309 rm -f conftest*
3310   cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <math.h>
3314 int main() {
3315 islessgreater(0.0,0.0);
3316 ; return 0; }
3317 EOF
3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319   :
3320 else
3321   echo "configure: failed program was:" >&5
3322   cat conftest.$ac_ext >&5
3323   rm -rf conftest*
3324   ac_c99_math=no
3325 fi
3326 rm -f conftest*
3327   cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 #include <math.h>
3331 int main() {
3332 isunordered(0.0,0.0);
3333 ; return 0; }
3334 EOF
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336   :
3337 else
3338   echo "configure: failed program was:" >&5
3339   cat conftest.$ac_ext >&5
3340   rm -rf conftest*
3341   ac_c99_math=no
3342 fi
3343 rm -f conftest*
3344   echo "$ac_t""$ac_c99_math" 1>&6
3345
3346   # Check for the existence in <stdio.h> of vscanf, et. al.
3347   ac_c99_stdio=yes;
3348   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3349 echo "configure:3350: checking for ISO C99 support in <stdio.h>" >&5
3350   cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <stdio.h>
3354 int main() {
3355 snprintf("12", 0, "%i");
3356 ; return 0; }
3357 EOF
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359   :
3360 else
3361   echo "configure: failed program was:" >&5
3362   cat conftest.$ac_ext >&5
3363   rm -rf conftest*
3364   ac_c99_stdio=no
3365 fi
3366 rm -f conftest*
3367   cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include <stdio.h>
3371                   #include <stdarg.h>
3372                   void foo(char* fmt, ...)
3373                   {va_list args; va_start(args, fmt);
3374                   vfscanf(stderr, "%i", args);}
3375 int main() {
3376
3377 ; return 0; }
3378 EOF
3379 if { (eval echo configure:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3380   :
3381 else
3382   echo "configure: failed program was:" >&5
3383   cat conftest.$ac_ext >&5
3384   rm -rf conftest*
3385   ac_c99_stdio=no
3386 fi
3387 rm -f conftest*
3388   cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <stdio.h>
3392                   #include <stdarg.h>
3393                   void foo(char* fmt, ...)
3394                   {va_list args; va_start(args, fmt);
3395                   vscanf("%i", args);}
3396 int main() {
3397
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_stdio=no
3407 fi
3408 rm -f conftest*
3409   cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <stdio.h>
3413                   #include <stdarg.h>
3414                   void foo(char* fmt, ...)
3415                   {va_list args; va_start(args, fmt);
3416                   vsnprintf(fmt, 0, "%i", args);}
3417 int main() {
3418
3419 ; return 0; }
3420 EOF
3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422   :
3423 else
3424   echo "configure: failed program was:" >&5
3425   cat conftest.$ac_ext >&5
3426   rm -rf conftest*
3427   ac_c99_stdio=no
3428 fi
3429 rm -f conftest*
3430   cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <stdio.h>
3434                   #include <stdarg.h>
3435                   void foo(char* fmt, ...)
3436                   {va_list args; va_start(args, fmt);
3437                   vsscanf(fmt, "%i", args);}
3438 int main() {
3439
3440 ; return 0; }
3441 EOF
3442 if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443   :
3444 else
3445   echo "configure: failed program was:" >&5
3446   cat conftest.$ac_ext >&5
3447   rm -rf conftest*
3448   ac_c99_stdio=no
3449 fi
3450 rm -f conftest*
3451   echo "$ac_t""$ac_c99_stdio" 1>&6
3452
3453   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3454   ac_c99_stdlib=yes;
3455   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3456 echo "configure:3457: checking for lldiv_t declaration" >&5
3457   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3458   echo $ac_n "(cached) $ac_c" 1>&6
3459 else
3460   
3461   cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <stdlib.h>
3465 int main() {
3466  lldiv_t mydivt;
3467 ; return 0; }
3468 EOF
3469 if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470   rm -rf conftest*
3471   ac_c99_lldiv_t=yes
3472 else
3473   echo "configure: failed program was:" >&5
3474   cat conftest.$ac_ext >&5
3475   rm -rf conftest*
3476   ac_c99_lldiv_t=no
3477 fi
3478 rm -f conftest*
3479   
3480 fi
3481
3482   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3483
3484   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3485 echo "configure:3486: checking for ISO C99 support in <stdlib.h>" >&5
3486   cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <stdlib.h>
3490 int main() {
3491 char* tmp; strtof("gnu", &tmp);
3492 ; return 0; }
3493 EOF
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495   :
3496 else
3497   echo "configure: failed program was:" >&5
3498   cat conftest.$ac_ext >&5
3499   rm -rf conftest*
3500   ac_c99_stdlib=no
3501 fi
3502 rm -f conftest*
3503   cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <stdlib.h>
3507 int main() {
3508 char* tmp; strtold("gnu", &tmp);
3509 ; return 0; }
3510 EOF
3511 if { (eval echo configure:3512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512   :
3513 else
3514   echo "configure: failed program was:" >&5
3515   cat conftest.$ac_ext >&5
3516   rm -rf conftest*
3517   ac_c99_stdlib=no
3518 fi
3519 rm -f conftest*
3520   cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <stdlib.h>
3524 int main() {
3525 llabs(10);
3526 ; return 0; }
3527 EOF
3528 if { (eval echo configure:3529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529   :
3530 else
3531   echo "configure: failed program was:" >&5
3532   cat conftest.$ac_ext >&5
3533   rm -rf conftest*
3534   ac_c99_stdlib=no
3535 fi
3536 rm -f conftest*
3537   cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <stdlib.h>
3541 int main() {
3542 lldiv(10,1);
3543 ; return 0; }
3544 EOF
3545 if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546   :
3547 else
3548   echo "configure: failed program was:" >&5
3549   cat conftest.$ac_ext >&5
3550   rm -rf conftest*
3551   ac_c99_stdlib=no
3552 fi
3553 rm -f conftest*
3554   cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <stdlib.h>
3558 int main() {
3559 atoll("10");
3560 ; return 0; }
3561 EOF
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563   :
3564 else
3565   echo "configure: failed program was:" >&5
3566   cat conftest.$ac_ext >&5
3567   rm -rf conftest*
3568   ac_c99_stdlib=no
3569 fi
3570 rm -f conftest*
3571   cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <stdlib.h>
3575 int main() {
3576 _Exit(0);
3577 ; return 0; }
3578 EOF
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580   :
3581 else
3582   echo "configure: failed program was:" >&5
3583   cat conftest.$ac_ext >&5
3584   rm -rf conftest*
3585   ac_c99_stdlib=no
3586 fi
3587 rm -f conftest*
3588   if test x"$ac_c99_lldiv_t" = x"no"; then
3589     ac_c99_stdlib=no; 
3590   fi; 
3591   echo "$ac_t""$ac_c99_stdlib" 1>&6
3592
3593   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3594   # XXX the wchar.h checks should be rolled into the general C99 bits.
3595   ac_c99_wchar=yes;
3596   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3597 echo "configure:3598: checking for additional ISO C99 support in <wchar.h>" >&5
3598   cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #include <wchar.h>
3602 int main() {
3603 wcstold(L"10.0", NULL);
3604 ; return 0; }
3605 EOF
3606 if { (eval echo configure:3607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3607   :
3608 else
3609   echo "configure: failed program was:" >&5
3610   cat conftest.$ac_ext >&5
3611   rm -rf conftest*
3612   ac_c99_wchar=no
3613 fi
3614 rm -f conftest*
3615   cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 #include <wchar.h>
3619 int main() {
3620 wcstoll(L"10", NULL, 10);
3621 ; return 0; }
3622 EOF
3623 if { (eval echo configure:3624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3624   :
3625 else
3626   echo "configure: failed program was:" >&5
3627   cat conftest.$ac_ext >&5
3628   rm -rf conftest*
3629   ac_c99_wchar=no
3630 fi
3631 rm -f conftest*
3632   cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <wchar.h>
3636 int main() {
3637 wcstoull(L"10", NULL, 10);
3638 ; return 0; }
3639 EOF
3640 if { (eval echo configure:3641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3641   :
3642 else
3643   echo "configure: failed program was:" >&5
3644   cat conftest.$ac_ext >&5
3645   rm -rf conftest*
3646   ac_c99_wchar=no
3647 fi
3648 rm -f conftest*
3649   echo "$ac_t""$ac_c99_wchar" 1>&6
3650
3651   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3652 echo "configure:3653: checking for enabled ISO C99 support" >&5
3653   if test x"$ac_c99_math" = x"no" ||
3654      test x"$ac_c99_stdio" = x"no" ||
3655      test x"$ac_c99_stdlib" = x"no" ||
3656      test x"$ac_c99_wchar" = x"no"; then
3657     enable_c99=no; 
3658   fi; 
3659   echo "$ac_t""$enable_c99" 1>&6
3660
3661   # Option parsed, now set things appropriately
3662   if test x"$enable_c99" = x"yes"; then
3663     cat >> confdefs.h <<\EOF
3664 #define _GLIBCPP_USE_C99 1
3665 EOF
3666
3667   fi
3668
3669   ac_ext=c
3670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3674 cross_compiling=$ac_cv_prog_cc_cross
3675
3676
3677   
3678   # Check whether --enable-long-long or --disable-long-long was given.
3679 if test "${enable_long_long+set}" = set; then
3680   enableval="$enable_long_long"
3681     case "$enableval" in
3682    yes) enable_long_long=yes ;;
3683    no)  enable_long_long=no ;;
3684    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3685    esac
3686 else
3687   enable_long_long=yes
3688 fi
3689
3690   
3691   ac_ext=C
3692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3693 ac_cpp='$CXXCPP $CPPFLAGS'
3694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3696 cross_compiling=$ac_cv_prog_cxx_cross
3697
3698
3699   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3700 echo "configure:3701: checking for enabled long long I/O support" >&5
3701   # iostreams require strtoll, strtoull to compile
3702   cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 #include <stdlib.h>
3706 int main() {
3707 char* tmp; strtoll("gnu", &tmp, 10);
3708 ; return 0; }
3709 EOF
3710 if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711   :
3712 else
3713   echo "configure: failed program was:" >&5
3714   cat conftest.$ac_ext >&5
3715   rm -rf conftest*
3716   enable_long_long=no
3717 fi
3718 rm -f conftest*
3719   cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <stdlib.h>
3723 int main() {
3724 char* tmp; strtoull("gnu", &tmp, 10);
3725 ; return 0; }
3726 EOF
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3728   :
3729 else
3730   echo "configure: failed program was:" >&5
3731   cat conftest.$ac_ext >&5
3732   rm -rf conftest*
3733   enable_long_long=no
3734 fi
3735 rm -f conftest*
3736
3737   # Option parsed, now set things appropriately
3738   if test x"$enable_long_long" = xyes; then
3739     cat >> confdefs.h <<\EOF
3740 #define _GLIBCPP_USE_LONG_LONG 1
3741 EOF
3742
3743   fi
3744   echo "$ac_t""$enable_long_long" 1>&6
3745
3746   ac_ext=c
3747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3751 cross_compiling=$ac_cv_prog_cc_cross
3752
3753
3754 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3755 echo "configure:3756: checking for c header strategy to use" >&5
3756 # Check whether --enable-cheaders or --disable-cheaders was given.
3757 if test "${enable_cheaders+set}" = set; then
3758   enableval="$enable_cheaders"
3759   
3760   case "$enableval" in
3761    c) 
3762         enable_cheaders=c 
3763         ;;
3764    c_std)  
3765         enable_cheaders=c_std 
3766         ;;
3767    c_shadow)  
3768         enable_cheaders=c_shadow 
3769         ;;
3770    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3771         ;;
3772   esac
3773 else
3774   enable_cheaders=c_std
3775 fi
3776
3777   echo "$ac_t""$enable_cheaders" 1>&6
3778
3779     case "$enable_cheaders" in
3780     c_shadow) 
3781         CSHADOW_FLAGS="-fno-builtin"
3782         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3783         cat >> confdefs.h <<\EOF
3784 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3785 EOF
3786
3787         ;;
3788     c_std)   
3789         CSHADOW_FLAGS=""
3790         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3791         ;;
3792     c)   
3793         CSHADOW_FLAGS=""
3794         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3795         ;;
3796   esac
3797
3798   
3799   
3800   
3801
3802 if test "$enable_cheaders" = c_shadow; then
3803   GLIBCPP_USE_CSHADOW_TRUE=
3804   GLIBCPP_USE_CSHADOW_FALSE='#'
3805 else
3806   GLIBCPP_USE_CSHADOW_TRUE='#'
3807   GLIBCPP_USE_CSHADOW_FALSE=
3808 fi
3809
3810
3811   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3812 echo "configure:3813: checking for thread model used by GCC" >&5
3813   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3814   echo "$ac_t""$target_thread_file" 1>&6
3815
3816   if test $target_thread_file != single; then
3817     cat >> confdefs.h <<\EOF
3818 #define HAVE_GTHR_DEFAULT 1
3819 EOF
3820
3821     cat >> confdefs.h <<\EOF
3822 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3823 EOF
3824
3825   fi
3826
3827   glibcpp_thread_h=gthr-$target_thread_file.h
3828   
3829
3830 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3831 if test "${enable_cxx_flags+set}" = set; then
3832   enableval="$enable_cxx_flags"
3833   case "x$enableval" in
3834  xyes)   
3835         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3836  xno|x)  
3837         enable_cxx_flags='' ;;
3838  *)      
3839         enable_cxx_flags="$enableval" ;;
3840  esac
3841 else
3842   enable_cxx_flags='none'
3843 fi
3844
3845
3846 if test "$enable_cxx_flags" = "none"; then 
3847   enable_cxx_flags=''; 
3848 fi
3849
3850 if test -n "$enable_cxx_flags"; then
3851     for f in $enable_cxx_flags; do
3852         case "$f" in
3853             -fhonor-std)  ;;
3854             -*)  ;;
3855             *)   # and we're trying to pass /what/ exactly?
3856                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3857         esac
3858     done
3859 fi
3860 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3861
3862
3863
3864   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3865 echo "configure:3866: checking for exception model to use" >&5
3866   
3867   ac_ext=C
3868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3869 ac_cpp='$CXXCPP $CPPFLAGS'
3870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3872 cross_compiling=$ac_cv_prog_cxx_cross
3873
3874   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3875 if test "${enable_sjlj_exceptions+set}" = set; then
3876   enableval="$enable_sjlj_exceptions"
3877   :
3878 else
3879                        cat > conftest.$ac_ext << EOF
3880 #line 3881 "configure"
3881 struct S { ~S(); };
3882 void bar();
3883 void foo()
3884 {
3885   S s;
3886   bar();
3887 }
3888 EOF
3889    old_CXXFLAGS="$CXXFLAGS"  
3890    CXXFLAGS=-S
3891    if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3893        enable_sjlj_exceptions=yes
3894      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3895        enable_sjlj_exceptions=no
3896      fi
3897    fi
3898    CXXFLAGS="$old_CXXFLAGS"
3899    rm -f conftest*
3900 fi
3901
3902    if test x$enable_sjlj_exceptions = xyes; then
3903      cat >> confdefs.h <<\EOF
3904 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3905 EOF
3906
3907      ac_exception_model_name=sjlj
3908    elif test x$enable_sjlj_exceptions = xno; then
3909      ac_exception_model_name="call frame"
3910    else
3911      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3912    fi
3913    ac_ext=c
3914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3918 cross_compiling=$ac_cv_prog_cc_cross
3919
3920    echo "$ac_t""$ac_exception_model_name" 1>&6
3921
3922 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3923 if test "${enable_concept_checks+set}" = set; then
3924   enableval="$enable_concept_checks"
3925   case "$enableval" in
3926  yes) enable_concept_checks=yes ;;
3927  no)  enable_concept_checks=no ;;
3928  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3929  esac
3930 else
3931   enable_concept_checks=no
3932 fi
3933 if test x"$enable_concept_checks" = xyes; then
3934   cat >> confdefs.h <<\EOF
3935 #define _GLIBCPP_CONCEPT_CHECKS 1
3936 EOF
3937
3938 fi
3939
3940
3941
3942 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3943
3944   # This lets us hard-code the functionality we know
3945   # we'll have in the cross target environment. "Let" is a
3946   # sugar-coated word placed on an especially dull and tedious hack, actually.
3947   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3948   # that involve linking can't be used:
3949   # "cannot open sim-crt0.o"
3950   # "cannot open crt0.o"
3951   # etc. All this is because there currently exists no unified,
3952   # consistent way for top level CC information to be passed down
3953   # to target directories: newlib includes, newlib linking info,
3954   # libgloss versus newlib crt0.o, etc. When all of this is done, all
3955   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3956
3957   # We are being configured with some form of cross compiler.
3958   GLIBCPP_IS_CROSS_COMPILING=1
3959
3960   # If Canadian cross, then don't pick up tools from the build
3961   # directory.
3962   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3963     CANADIAN=yes
3964   else
3965     CANADIAN=no
3966   fi
3967
3968   # Construct crosses by hand, eliminating bits that need ld...
3969   # GLIBCPP_CHECK_COMPILER_FEATURES
3970   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3971   # GLIBCPP_CHECK_MATH_SUPPORT
3972
3973   case "$target_alias" in
3974     *-linux*)
3975       # Check for available headers.
3976       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3977         machine/endian.h machine/param.h sys/machine.h sys/types.h \
3978         fp.h locale.h float.h inttypes.h
3979 do
3980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3982 echo "configure:3983: checking for $ac_hdr" >&5
3983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3984   echo $ac_n "(cached) $ac_c" 1>&6
3985 else
3986   cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 #include <$ac_hdr>
3990 EOF
3991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3992 { (eval echo configure:3993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3994 if test -z "$ac_err"; then
3995   rm -rf conftest*
3996   eval "ac_cv_header_$ac_safe=yes"
3997 else
3998   echo "$ac_err" >&5
3999   echo "configure: failed program was:" >&5
4000   cat conftest.$ac_ext >&5
4001   rm -rf conftest*
4002   eval "ac_cv_header_$ac_safe=no"
4003 fi
4004 rm -f conftest*
4005 fi
4006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4007   echo "$ac_t""yes" 1>&6
4008     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4009   cat >> confdefs.h <<EOF
4010 #define $ac_tr_hdr 1
4011 EOF
4012  
4013 else
4014   echo "$ac_t""no" 1>&6
4015 fi
4016 done
4017
4018       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4019       
4020       
4021   # If we're not using GNU ld, then there's no point in even trying these
4022   # tests.  Check for that first.  We should have already tested for gld
4023   # by now (in libtool), but require it now just to be safe...
4024   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4025   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4026   
4027
4028   # Set --gc-sections.
4029   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4030     # GNU ld it is!  Joy and bunny rabbits!
4031
4032     # All these tests are for C++; save the language and the compiler flags.
4033     # Need to do this so that g++ won't try to link in libstdc++
4034     ac_test_CFLAGS="${CFLAGS+set}"
4035     ac_save_CFLAGS="$CFLAGS"
4036     CFLAGS='-x c++  -Wl,--gc-sections'
4037
4038     # Check for -Wl,--gc-sections
4039     # XXX This test is broken at the moment, as symbols required for
4040     # linking are now in libsupc++ (not built yet.....). In addition, 
4041     # this test has cored on solaris in the past. In addition,
4042     # --gc-sections doesn't really work at the moment (keeps on discarding
4043     # used sections, first .eh_frame and now some of the glibc sections for
4044     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4045     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4046 echo "configure:4047: checking for ld that supports -Wl,--gc-sections" >&5
4047     if test "$cross_compiling" = yes; then
4048   ac_sectionLDflags=yes
4049 else
4050   cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053
4054      int main(void) 
4055      {
4056        try { throw 1; }
4057        catch (...) { };
4058        return 0;
4059      }
4060     
4061 EOF
4062 if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4063 then
4064   ac_sectionLDflags=yes
4065 else
4066   echo "configure: failed program was:" >&5
4067   cat conftest.$ac_ext >&5
4068   rm -fr conftest*
4069   ac_sectionLDflags=no
4070 fi
4071 rm -fr conftest*
4072 fi
4073
4074     if test "$ac_test_CFLAGS" = set; then
4075       CFLAGS="$ac_save_CFLAGS"
4076     else
4077       # this is the suspicious part
4078       CFLAGS=''
4079     fi
4080     if test "$ac_sectionLDflags" = "yes"; then
4081       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4082     fi
4083     echo "$ac_t""$ac_sectionLDflags" 1>&6
4084   fi
4085
4086   # Set linker optimization flags.
4087   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4088      test x"$enable_debug" = x"no"; then
4089     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4090   fi
4091
4092   
4093   
4094
4095       
4096     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4097 echo "configure:4098: checking for main in -lm" >&5
4098 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4100   echo $ac_n "(cached) $ac_c" 1>&6
4101 else
4102   ac_save_LIBS="$LIBS"
4103 LIBS="-lm  $LIBS"
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107
4108 int main() {
4109 main()
4110 ; return 0; }
4111 EOF
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4113   rm -rf conftest*
4114   eval "ac_cv_lib_$ac_lib_var=yes"
4115 else
4116   echo "configure: failed program was:" >&5
4117   cat conftest.$ac_ext >&5
4118   rm -rf conftest*
4119   eval "ac_cv_lib_$ac_lib_var=no"
4120 fi
4121 rm -f conftest*
4122 LIBS="$ac_save_LIBS"
4123
4124 fi
4125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4126   echo "$ac_t""yes" 1>&6
4127     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4128     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4129   cat >> confdefs.h <<EOF
4130 #define $ac_tr_lib 1
4131 EOF
4132
4133   LIBS="-lm $LIBS"
4134
4135 else
4136   echo "$ac_t""no" 1>&6
4137 fi
4138
4139   for ac_func in nan copysignf
4140 do
4141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4142 echo "configure:4143: checking for $ac_func" >&5
4143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4144   echo $ac_n "(cached) $ac_c" 1>&6
4145 else
4146   cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 /* System header to define __stub macros and hopefully few prototypes,
4150     which can conflict with char $ac_func(); below.  */
4151 #include <assert.h>
4152 /* Override any gcc2 internal prototype to avoid an error.  */
4153 /* We use char because int might match the return type of a gcc2
4154     builtin and then its argument prototype would still apply.  */
4155 char $ac_func();
4156
4157 int main() {
4158
4159 /* The GNU C library defines this for functions which it implements
4160     to always fail with ENOSYS.  Some functions are actually named
4161     something starting with __ and the normal name is an alias.  */
4162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4163 choke me
4164 #else
4165 $ac_func();
4166 #endif
4167
4168 ; return 0; }
4169 EOF
4170 if { (eval echo configure:4171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4171   rm -rf conftest*
4172   eval "ac_cv_func_$ac_func=yes"
4173 else
4174   echo "configure: failed program was:" >&5
4175   cat conftest.$ac_ext >&5
4176   rm -rf conftest*
4177   eval "ac_cv_func_$ac_func=no"
4178 fi
4179 rm -f conftest*
4180 fi
4181
4182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4183   echo "$ac_t""yes" 1>&6
4184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4185   cat >> confdefs.h <<EOF
4186 #define $ac_tr_func 1
4187 EOF
4188  
4189 else
4190   echo "$ac_t""no" 1>&6
4191 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4192 fi
4193 done
4194
4195
4196
4197           USE_COMPLEX_LONG_DOUBLE=no
4198   if test x$ac_cv_func_copysignl = x"yes"; then
4199     USE_COMPLEX_LONG_DOUBLE=yes
4200     for ac_func in signbitl
4201 do
4202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4203 echo "configure:4204: checking for $ac_func" >&5
4204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4205   echo $ac_n "(cached) $ac_c" 1>&6
4206 else
4207   cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 /* System header to define __stub macros and hopefully few prototypes,
4211     which can conflict with char $ac_func(); below.  */
4212 #include <assert.h>
4213 /* Override any gcc2 internal prototype to avoid an error.  */
4214 /* We use char because int might match the return type of a gcc2
4215     builtin and then its argument prototype would still apply.  */
4216 char $ac_func();
4217
4218 int main() {
4219
4220 /* The GNU C library defines this for functions which it implements
4221     to always fail with ENOSYS.  Some functions are actually named
4222     something starting with __ and the normal name is an alias.  */
4223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4224 choke me
4225 #else
4226 $ac_func();
4227 #endif
4228
4229 ; return 0; }
4230 EOF
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4232   rm -rf conftest*
4233   eval "ac_cv_func_$ac_func=yes"
4234 else
4235   echo "configure: failed program was:" >&5
4236   cat conftest.$ac_ext >&5
4237   rm -rf conftest*
4238   eval "ac_cv_func_$ac_func=no"
4239 fi
4240 rm -f conftest*
4241 fi
4242
4243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4244   echo "$ac_t""yes" 1>&6
4245     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4246   cat >> confdefs.h <<EOF
4247 #define $ac_tr_func 1
4248 EOF
4249  
4250 else
4251   echo "$ac_t""no" 1>&6
4252 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4253 fi
4254 done
4255
4256
4257   fi
4258
4259   
4260
4261       
4262
4263       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4264 echo "configure:4265: checking for mbstate_t" >&5
4265   cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 #include <wchar.h>
4269 int main() {
4270 mbstate_t teststate;
4271 ; return 0; }
4272 EOF
4273 if { (eval echo configure:4274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4274   rm -rf conftest*
4275   have_mbstate_t=yes
4276 else
4277   echo "configure: failed program was:" >&5
4278   cat conftest.$ac_ext >&5
4279   rm -rf conftest*
4280   have_mbstate_t=no
4281 fi
4282 rm -f conftest*
4283   echo "$ac_t""$have_mbstate_t" 1>&6
4284   if test x"$have_mbstate_t" = xyes; then
4285     cat >> confdefs.h <<\EOF
4286 #define HAVE_MBSTATE_T 1
4287 EOF
4288
4289   fi
4290
4291     for ac_hdr in wchar.h
4292 do
4293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4295 echo "configure:4296: checking for $ac_hdr" >&5
4296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4297   echo $ac_n "(cached) $ac_c" 1>&6
4298 else
4299   cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 #include <$ac_hdr>
4303 EOF
4304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4305 { (eval echo configure:4306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4307 if test -z "$ac_err"; then
4308   rm -rf conftest*
4309   eval "ac_cv_header_$ac_safe=yes"
4310 else
4311   echo "$ac_err" >&5
4312   echo "configure: failed program was:" >&5
4313   cat conftest.$ac_ext >&5
4314   rm -rf conftest*
4315   eval "ac_cv_header_$ac_safe=no"
4316 fi
4317 rm -f conftest*
4318 fi
4319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4320   echo "$ac_t""yes" 1>&6
4321     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4322   cat >> confdefs.h <<EOF
4323 #define $ac_tr_hdr 1
4324 EOF
4325  ac_has_wchar_h=yes
4326 else
4327   echo "$ac_t""no" 1>&6
4328 ac_has_wchar_h=no
4329 fi
4330 done
4331
4332   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4334 echo "configure:4335: checking for wctype.h" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336   echo $ac_n "(cached) $ac_c" 1>&6
4337 else
4338   cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <wctype.h>
4342 EOF
4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4347   rm -rf conftest*
4348   eval "ac_cv_header_$ac_safe=yes"
4349 else
4350   echo "$ac_err" >&5
4351   echo "configure: failed program was:" >&5
4352   cat conftest.$ac_ext >&5
4353   rm -rf conftest*
4354   eval "ac_cv_header_$ac_safe=no"
4355 fi
4356 rm -f conftest*
4357 fi
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359   echo "$ac_t""yes" 1>&6
4360   ac_has_wctype_h=yes
4361 else
4362   echo "$ac_t""no" 1>&6
4363 ac_has_wctype_h=no
4364 fi
4365
4366   
4367     if test x"$ac_has_wchar_h" = xyes &&
4368      test x"$ac_has_wctype_h" = xyes &&
4369      test x"$enable_c_mbchar" != xno; then
4370       
4371             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4372 echo "configure:4373: checking for WCHAR_MIN and WCHAR_MAX" >&5
4373     cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <wchar.h>
4377 int main() {
4378 int i = WCHAR_MIN; int j = WCHAR_MAX;
4379 ; return 0; }
4380 EOF
4381 if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4382   rm -rf conftest*
4383   has_wchar_minmax=yes
4384 else
4385   echo "configure: failed program was:" >&5
4386   cat conftest.$ac_ext >&5
4387   rm -rf conftest*
4388   has_wchar_minmax=no
4389 fi
4390 rm -f conftest*
4391     echo "$ac_t""$has_wchar_minmax" 1>&6
4392     
4393             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4394 echo "configure:4395: checking for WEOF" >&5
4395     cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398
4399       #include <wchar.h>
4400       #include <stddef.h>
4401 int main() {
4402 wint_t i = WEOF;
4403 ; return 0; }
4404 EOF
4405 if { (eval echo configure:4406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4406   rm -rf conftest*
4407   has_weof=yes
4408 else
4409   echo "configure: failed program was:" >&5
4410   cat conftest.$ac_ext >&5
4411   rm -rf conftest*
4412   has_weof=no
4413 fi
4414 rm -f conftest*
4415     echo "$ac_t""$has_weof" 1>&6
4416   
4417         ac_wfuncs=yes
4418     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4419 do
4420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_func" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4423   echo $ac_n "(cached) $ac_c" 1>&6
4424 else
4425   cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429     which can conflict with char $ac_func(); below.  */
4430 #include <assert.h>
4431 /* Override any gcc2 internal prototype to avoid an error.  */
4432 /* We use char because int might match the return type of a gcc2
4433     builtin and then its argument prototype would still apply.  */
4434 char $ac_func();
4435
4436 int main() {
4437
4438 /* The GNU C library defines this for functions which it implements
4439     to always fail with ENOSYS.  Some functions are actually named
4440     something starting with __ and the normal name is an alias.  */
4441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4442 choke me
4443 #else
4444 $ac_func();
4445 #endif
4446
4447 ; return 0; }
4448 EOF
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4450   rm -rf conftest*
4451   eval "ac_cv_func_$ac_func=yes"
4452 else
4453   echo "configure: failed program was:" >&5
4454   cat conftest.$ac_ext >&5
4455   rm -rf conftest*
4456   eval "ac_cv_func_$ac_func=no"
4457 fi
4458 rm -f conftest*
4459 fi
4460
4461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462   echo "$ac_t""yes" 1>&6
4463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4464   cat >> confdefs.h <<EOF
4465 #define $ac_tr_func 1
4466 EOF
4467  
4468 else
4469   echo "$ac_t""no" 1>&6
4470 \
4471     ac_wfuncs=no
4472 fi
4473 done
4474
4475   
4476         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4477     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4478     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4479     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4480     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4481     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4482 do
4483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_func" >&5
4485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4486   echo $ac_n "(cached) $ac_c" 1>&6
4487 else
4488   cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 /* System header to define __stub macros and hopefully few prototypes,
4492     which can conflict with char $ac_func(); below.  */
4493 #include <assert.h>
4494 /* Override any gcc2 internal prototype to avoid an error.  */
4495 /* We use char because int might match the return type of a gcc2
4496     builtin and then its argument prototype would still apply.  */
4497 char $ac_func();
4498
4499 int main() {
4500
4501 /* The GNU C library defines this for functions which it implements
4502     to always fail with ENOSYS.  Some functions are actually named
4503     something starting with __ and the normal name is an alias.  */
4504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4505 choke me
4506 #else
4507 $ac_func();
4508 #endif
4509
4510 ; return 0; }
4511 EOF
4512 if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513   rm -rf conftest*
4514   eval "ac_cv_func_$ac_func=yes"
4515 else
4516   echo "configure: failed program was:" >&5
4517   cat conftest.$ac_ext >&5
4518   rm -rf conftest*
4519   eval "ac_cv_func_$ac_func=no"
4520 fi
4521 rm -f conftest*
4522 fi
4523
4524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4525   echo "$ac_t""yes" 1>&6
4526     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4527   cat >> confdefs.h <<EOF
4528 #define $ac_tr_func 1
4529 EOF
4530  
4531 else
4532   echo "$ac_t""no" 1>&6
4533 \
4534     ac_wfuncs=no
4535 fi
4536 done
4537
4538
4539     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4540 echo "configure:4541: checking for ISO C99 wchar_t support" >&5
4541     if test x"$has_weof" = xyes &&
4542        test x"$has_wchar_minmax" = xyes &&
4543        test x"$ac_wfuncs" = xyes; then
4544       ac_isoC99_wchar_t=yes
4545     else
4546       ac_isoC99_wchar_t=no
4547     fi
4548     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4549   
4550             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4551 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4552 echo "configure:4553: checking for iconv.h" >&5
4553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4554   echo $ac_n "(cached) $ac_c" 1>&6
4555 else
4556   cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 #include <iconv.h>
4560 EOF
4561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4562 { (eval echo configure:4563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4564 if test -z "$ac_err"; then
4565   rm -rf conftest*
4566   eval "ac_cv_header_$ac_safe=yes"
4567 else
4568   echo "$ac_err" >&5
4569   echo "configure: failed program was:" >&5
4570   cat conftest.$ac_ext >&5
4571   rm -rf conftest*
4572   eval "ac_cv_header_$ac_safe=no"
4573 fi
4574 rm -f conftest*
4575 fi
4576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4577   echo "$ac_t""yes" 1>&6
4578   ac_has_iconv_h=yes
4579 else
4580   echo "$ac_t""no" 1>&6
4581 ac_has_iconv_h=no
4582 fi
4583
4584     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4585 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4586 echo "configure:4587: checking for langinfo.h" >&5
4587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4588   echo $ac_n "(cached) $ac_c" 1>&6
4589 else
4590   cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <langinfo.h>
4594 EOF
4595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4596 { (eval echo configure:4597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4598 if test -z "$ac_err"; then
4599   rm -rf conftest*
4600   eval "ac_cv_header_$ac_safe=yes"
4601 else
4602   echo "$ac_err" >&5
4603   echo "configure: failed program was:" >&5
4604   cat conftest.$ac_ext >&5
4605   rm -rf conftest*
4606   eval "ac_cv_header_$ac_safe=no"
4607 fi
4608 rm -f conftest*
4609 fi
4610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4611   echo "$ac_t""yes" 1>&6
4612   ac_has_langinfo_h=yes
4613 else
4614   echo "$ac_t""no" 1>&6
4615 ac_has_langinfo_h=no
4616 fi
4617
4618
4619         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4620 echo "configure:4621: checking for iconv in -liconv" >&5
4621 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623   echo $ac_n "(cached) $ac_c" 1>&6
4624 else
4625   ac_save_LIBS="$LIBS"
4626 LIBS="-liconv  $LIBS"
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* Override any gcc2 internal prototype to avoid an error.  */
4631 /* We use char because int might match the return type of a gcc2
4632     builtin and then its argument prototype would still apply.  */
4633 char iconv();
4634
4635 int main() {
4636 iconv()
4637 ; return 0; }
4638 EOF
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640   rm -rf conftest*
4641   eval "ac_cv_lib_$ac_lib_var=yes"
4642 else
4643   echo "configure: failed program was:" >&5
4644   cat conftest.$ac_ext >&5
4645   rm -rf conftest*
4646   eval "ac_cv_lib_$ac_lib_var=no"
4647 fi
4648 rm -f conftest*
4649 LIBS="$ac_save_LIBS"
4650
4651 fi
4652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4653   echo "$ac_t""yes" 1>&6
4654   libiconv="-liconv"
4655 else
4656   echo "$ac_t""no" 1>&6
4657 fi
4658
4659     ac_save_LIBS="$LIBS"
4660     LIBS="$LIBS $libiconv"
4661
4662     for ac_func in iconv_open iconv_close iconv nl_langinfo
4663 do
4664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_func" >&5
4666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4667   echo $ac_n "(cached) $ac_c" 1>&6
4668 else
4669   cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* System header to define __stub macros and hopefully few prototypes,
4673     which can conflict with char $ac_func(); below.  */
4674 #include <assert.h>
4675 /* Override any gcc2 internal prototype to avoid an error.  */
4676 /* We use char because int might match the return type of a gcc2
4677     builtin and then its argument prototype would still apply.  */
4678 char $ac_func();
4679
4680 int main() {
4681
4682 /* The GNU C library defines this for functions which it implements
4683     to always fail with ENOSYS.  Some functions are actually named
4684     something starting with __ and the normal name is an alias.  */
4685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4686 choke me
4687 #else
4688 $ac_func();
4689 #endif
4690
4691 ; return 0; }
4692 EOF
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694   rm -rf conftest*
4695   eval "ac_cv_func_$ac_func=yes"
4696 else
4697   echo "configure: failed program was:" >&5
4698   cat conftest.$ac_ext >&5
4699   rm -rf conftest*
4700   eval "ac_cv_func_$ac_func=no"
4701 fi
4702 rm -f conftest*
4703 fi
4704
4705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4706   echo "$ac_t""yes" 1>&6
4707     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4708   cat >> confdefs.h <<EOF
4709 #define $ac_tr_func 1
4710 EOF
4711  \
4712     ac_XPG2funcs=yes
4713 else
4714   echo "$ac_t""no" 1>&6
4715 ac_XPG2funcs=no
4716 fi
4717 done
4718
4719   
4720     LIBS="$ac_save_LIBS"
4721
4722     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4723 echo "configure:4724: checking for XPG2 wchar_t support" >&5
4724     if test x"$ac_has_iconv_h" = xyes &&
4725        test x"$ac_has_langinfo_h" = xyes &&
4726        test x"$ac_XPG2funcs" = xyes; then
4727       ac_XPG2_wchar_t=yes
4728     else
4729       ac_XPG2_wchar_t=no
4730     fi
4731     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4732   
4733             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4734 echo "configure:4735: checking for enabled wchar_t specializations" >&5
4735     if test x"$ac_isoC99_wchar_t" = xyes &&
4736        test x"$ac_XPG2_wchar_t" = xyes; then
4737       cat >> confdefs.h <<\EOF
4738 #define _GLIBCPP_USE_WCHAR_T 1
4739 EOF
4740
4741       echo "$ac_t"""yes"" 1>&6
4742     else
4743       echo "$ac_t"""no"" 1>&6
4744     fi
4745   else
4746         echo "configure: warning: wchar_t support disabled." 1>&2
4747   fi
4748
4749       os_include_dir="config/os/gnu-linux"
4750       cat >> confdefs.h <<\EOF
4751 #define HAVE_COPYSIGN 1
4752 EOF
4753
4754       cat >> confdefs.h <<\EOF
4755 #define HAVE_COPYSIGNF 1
4756 EOF
4757
4758       cat >> confdefs.h <<\EOF
4759 #define HAVE_FINITEF 1
4760 EOF
4761
4762       cat >> confdefs.h <<\EOF
4763 #define HAVE_FREXPF 1
4764 EOF
4765
4766       cat >> confdefs.h <<\EOF
4767 #define HAVE_HYPOTF 1
4768 EOF
4769
4770       cat >> confdefs.h <<\EOF
4771 #define HAVE_SINCOS 1
4772 EOF
4773
4774       cat >> confdefs.h <<\EOF
4775 #define HAVE_SINCOSF 1
4776 EOF
4777
4778       if test x"long_double_math_on_this_cpu" = x"yes"; then
4779         cat >> confdefs.h <<\EOF
4780 #define HAVE_HYPOTL 1
4781 EOF
4782
4783       fi
4784       ;;
4785     *-hpux*)
4786       # Check for available headers.
4787       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4788         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4789         fp.h locale.h float.h inttypes.h
4790 do
4791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4793 echo "configure:4794: checking for $ac_hdr" >&5
4794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4795   echo $ac_n "(cached) $ac_c" 1>&6
4796 else
4797   cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 #include <$ac_hdr>
4801 EOF
4802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4803 { (eval echo configure:4804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4805 if test -z "$ac_err"; then
4806   rm -rf conftest*
4807   eval "ac_cv_header_$ac_safe=yes"
4808 else
4809   echo "$ac_err" >&5
4810   echo "configure: failed program was:" >&5
4811   cat conftest.$ac_ext >&5
4812   rm -rf conftest*
4813   eval "ac_cv_header_$ac_safe=no"
4814 fi
4815 rm -f conftest*
4816 fi
4817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4818   echo "$ac_t""yes" 1>&6
4819     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4820   cat >> confdefs.h <<EOF
4821 #define $ac_tr_hdr 1
4822 EOF
4823  
4824 else
4825   echo "$ac_t""no" 1>&6
4826 fi
4827 done
4828
4829       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4830       
4831       
4832   # If we're not using GNU ld, then there's no point in even trying these
4833   # tests.  Check for that first.  We should have already tested for gld
4834   # by now (in libtool), but require it now just to be safe...
4835   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4836   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4837   
4838
4839   # Set --gc-sections.
4840   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4841     # GNU ld it is!  Joy and bunny rabbits!
4842
4843     # All these tests are for C++; save the language and the compiler flags.
4844     # Need to do this so that g++ won't try to link in libstdc++
4845     ac_test_CFLAGS="${CFLAGS+set}"
4846     ac_save_CFLAGS="$CFLAGS"
4847     CFLAGS='-x c++  -Wl,--gc-sections'
4848
4849     # Check for -Wl,--gc-sections
4850     # XXX This test is broken at the moment, as symbols required for
4851     # linking are now in libsupc++ (not built yet.....). In addition, 
4852     # this test has cored on solaris in the past. In addition,
4853     # --gc-sections doesn't really work at the moment (keeps on discarding
4854     # used sections, first .eh_frame and now some of the glibc sections for
4855     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4856     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4857 echo "configure:4858: checking for ld that supports -Wl,--gc-sections" >&5
4858     if test "$cross_compiling" = yes; then
4859   ac_sectionLDflags=yes
4860 else
4861   cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864
4865      int main(void) 
4866      {
4867        try { throw 1; }
4868        catch (...) { };
4869        return 0;
4870      }
4871     
4872 EOF
4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4874 then
4875   ac_sectionLDflags=yes
4876 else
4877   echo "configure: failed program was:" >&5
4878   cat conftest.$ac_ext >&5
4879   rm -fr conftest*
4880   ac_sectionLDflags=no
4881 fi
4882 rm -fr conftest*
4883 fi
4884
4885     if test "$ac_test_CFLAGS" = set; then
4886       CFLAGS="$ac_save_CFLAGS"
4887     else
4888       # this is the suspicious part
4889       CFLAGS=''
4890     fi
4891     if test "$ac_sectionLDflags" = "yes"; then
4892       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4893     fi
4894     echo "$ac_t""$ac_sectionLDflags" 1>&6
4895   fi
4896
4897   # Set linker optimization flags.
4898   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4899      test x"$enable_debug" = x"no"; then
4900     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4901   fi
4902
4903   
4904   
4905
4906       
4907     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4908 echo "configure:4909: checking for main in -lm" >&5
4909 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4911   echo $ac_n "(cached) $ac_c" 1>&6
4912 else
4913   ac_save_LIBS="$LIBS"
4914 LIBS="-lm  $LIBS"
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918
4919 int main() {
4920 main()
4921 ; return 0; }
4922 EOF
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924   rm -rf conftest*
4925   eval "ac_cv_lib_$ac_lib_var=yes"
4926 else
4927   echo "configure: failed program was:" >&5
4928   cat conftest.$ac_ext >&5
4929   rm -rf conftest*
4930   eval "ac_cv_lib_$ac_lib_var=no"
4931 fi
4932 rm -f conftest*
4933 LIBS="$ac_save_LIBS"
4934
4935 fi
4936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4937   echo "$ac_t""yes" 1>&6
4938     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4939     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4940   cat >> confdefs.h <<EOF
4941 #define $ac_tr_lib 1
4942 EOF
4943
4944   LIBS="-lm $LIBS"
4945
4946 else
4947   echo "$ac_t""no" 1>&6
4948 fi
4949
4950   for ac_func in nan copysignf
4951 do
4952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4953 echo "configure:4954: checking for $ac_func" >&5
4954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4955   echo $ac_n "(cached) $ac_c" 1>&6
4956 else
4957   cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* System header to define __stub macros and hopefully few prototypes,
4961     which can conflict with char $ac_func(); below.  */
4962 #include <assert.h>
4963 /* Override any gcc2 internal prototype to avoid an error.  */
4964 /* We use char because int might match the return type of a gcc2
4965     builtin and then its argument prototype would still apply.  */
4966 char $ac_func();
4967
4968 int main() {
4969
4970 /* The GNU C library defines this for functions which it implements
4971     to always fail with ENOSYS.  Some functions are actually named
4972     something starting with __ and the normal name is an alias.  */
4973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4974 choke me
4975 #else
4976 $ac_func();
4977 #endif
4978
4979 ; return 0; }
4980 EOF
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4982   rm -rf conftest*
4983   eval "ac_cv_func_$ac_func=yes"
4984 else
4985   echo "configure: failed program was:" >&5
4986   cat conftest.$ac_ext >&5
4987   rm -rf conftest*
4988   eval "ac_cv_func_$ac_func=no"
4989 fi
4990 rm -f conftest*
4991 fi
4992
4993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4994   echo "$ac_t""yes" 1>&6
4995     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4996   cat >> confdefs.h <<EOF
4997 #define $ac_tr_func 1
4998 EOF
4999  
5000 else
5001   echo "$ac_t""no" 1>&6
5002 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5003 fi
5004 done
5005
5006
5007
5008           USE_COMPLEX_LONG_DOUBLE=no
5009   if test x$ac_cv_func_copysignl = x"yes"; then
5010     USE_COMPLEX_LONG_DOUBLE=yes
5011     for ac_func in signbitl
5012 do
5013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5014 echo "configure:5015: checking for $ac_func" >&5
5015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5016   echo $ac_n "(cached) $ac_c" 1>&6
5017 else
5018   cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 /* System header to define __stub macros and hopefully few prototypes,
5022     which can conflict with char $ac_func(); below.  */
5023 #include <assert.h>
5024 /* Override any gcc2 internal prototype to avoid an error.  */
5025 /* We use char because int might match the return type of a gcc2
5026     builtin and then its argument prototype would still apply.  */
5027 char $ac_func();
5028
5029 int main() {
5030
5031 /* The GNU C library defines this for functions which it implements
5032     to always fail with ENOSYS.  Some functions are actually named
5033     something starting with __ and the normal name is an alias.  */
5034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5035 choke me
5036 #else
5037 $ac_func();
5038 #endif
5039
5040 ; return 0; }
5041 EOF
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043   rm -rf conftest*
5044   eval "ac_cv_func_$ac_func=yes"
5045 else
5046   echo "configure: failed program was:" >&5
5047   cat conftest.$ac_ext >&5
5048   rm -rf conftest*
5049   eval "ac_cv_func_$ac_func=no"
5050 fi
5051 rm -f conftest*
5052 fi
5053
5054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5055   echo "$ac_t""yes" 1>&6
5056     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5057   cat >> confdefs.h <<EOF
5058 #define $ac_tr_func 1
5059 EOF
5060  
5061 else
5062   echo "$ac_t""no" 1>&6
5063 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5064 fi
5065 done
5066
5067
5068   fi
5069
5070   
5071
5072       
5073
5074       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5075 echo "configure:5076: checking for mbstate_t" >&5
5076   cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 #include <wchar.h>
5080 int main() {
5081 mbstate_t teststate;
5082 ; return 0; }
5083 EOF
5084 if { (eval echo configure:5085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5085   rm -rf conftest*
5086   have_mbstate_t=yes
5087 else
5088   echo "configure: failed program was:" >&5
5089   cat conftest.$ac_ext >&5
5090   rm -rf conftest*
5091   have_mbstate_t=no
5092 fi
5093 rm -f conftest*
5094   echo "$ac_t""$have_mbstate_t" 1>&6
5095   if test x"$have_mbstate_t" = xyes; then
5096     cat >> confdefs.h <<\EOF
5097 #define HAVE_MBSTATE_T 1
5098 EOF
5099
5100   fi
5101
5102     for ac_hdr in wchar.h
5103 do
5104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_hdr" >&5
5107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5108   echo $ac_n "(cached) $ac_c" 1>&6
5109 else
5110   cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 #include <$ac_hdr>
5114 EOF
5115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5116 { (eval echo configure:5117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5118 if test -z "$ac_err"; then
5119   rm -rf conftest*
5120   eval "ac_cv_header_$ac_safe=yes"
5121 else
5122   echo "$ac_err" >&5
5123   echo "configure: failed program was:" >&5
5124   cat conftest.$ac_ext >&5
5125   rm -rf conftest*
5126   eval "ac_cv_header_$ac_safe=no"
5127 fi
5128 rm -f conftest*
5129 fi
5130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5131   echo "$ac_t""yes" 1>&6
5132     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5133   cat >> confdefs.h <<EOF
5134 #define $ac_tr_hdr 1
5135 EOF
5136  ac_has_wchar_h=yes
5137 else
5138   echo "$ac_t""no" 1>&6
5139 ac_has_wchar_h=no
5140 fi
5141 done
5142
5143   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5144 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5145 echo "configure:5146: checking for wctype.h" >&5
5146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5147   echo $ac_n "(cached) $ac_c" 1>&6
5148 else
5149   cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 #include <wctype.h>
5153 EOF
5154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5155 { (eval echo configure:5156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5157 if test -z "$ac_err"; then
5158   rm -rf conftest*
5159   eval "ac_cv_header_$ac_safe=yes"
5160 else
5161   echo "$ac_err" >&5
5162   echo "configure: failed program was:" >&5
5163   cat conftest.$ac_ext >&5
5164   rm -rf conftest*
5165   eval "ac_cv_header_$ac_safe=no"
5166 fi
5167 rm -f conftest*
5168 fi
5169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5170   echo "$ac_t""yes" 1>&6
5171   ac_has_wctype_h=yes
5172 else
5173   echo "$ac_t""no" 1>&6
5174 ac_has_wctype_h=no
5175 fi
5176
5177   
5178     if test x"$ac_has_wchar_h" = xyes &&
5179      test x"$ac_has_wctype_h" = xyes &&
5180      test x"$enable_c_mbchar" != xno; then
5181       
5182             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5183 echo "configure:5184: checking for WCHAR_MIN and WCHAR_MAX" >&5
5184     cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 #include <wchar.h>
5188 int main() {
5189 int i = WCHAR_MIN; int j = WCHAR_MAX;
5190 ; return 0; }
5191 EOF
5192 if { (eval echo configure:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5193   rm -rf conftest*
5194   has_wchar_minmax=yes
5195 else
5196   echo "configure: failed program was:" >&5
5197   cat conftest.$ac_ext >&5
5198   rm -rf conftest*
5199   has_wchar_minmax=no
5200 fi
5201 rm -f conftest*
5202     echo "$ac_t""$has_wchar_minmax" 1>&6
5203     
5204             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5205 echo "configure:5206: checking for WEOF" >&5
5206     cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209
5210       #include <wchar.h>
5211       #include <stddef.h>
5212 int main() {
5213 wint_t i = WEOF;
5214 ; return 0; }
5215 EOF
5216 if { (eval echo configure:5217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5217   rm -rf conftest*
5218   has_weof=yes
5219 else
5220   echo "configure: failed program was:" >&5
5221   cat conftest.$ac_ext >&5
5222   rm -rf conftest*
5223   has_weof=no
5224 fi
5225 rm -f conftest*
5226     echo "$ac_t""$has_weof" 1>&6
5227   
5228         ac_wfuncs=yes
5229     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5230 do
5231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5232 echo "configure:5233: checking for $ac_func" >&5
5233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5234   echo $ac_n "(cached) $ac_c" 1>&6
5235 else
5236   cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5239 /* System header to define __stub macros and hopefully few prototypes,
5240     which can conflict with char $ac_func(); below.  */
5241 #include <assert.h>
5242 /* Override any gcc2 internal prototype to avoid an error.  */
5243 /* We use char because int might match the return type of a gcc2
5244     builtin and then its argument prototype would still apply.  */
5245 char $ac_func();
5246
5247 int main() {
5248
5249 /* The GNU C library defines this for functions which it implements
5250     to always fail with ENOSYS.  Some functions are actually named
5251     something starting with __ and the normal name is an alias.  */
5252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5253 choke me
5254 #else
5255 $ac_func();
5256 #endif
5257
5258 ; return 0; }
5259 EOF
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261   rm -rf conftest*
5262   eval "ac_cv_func_$ac_func=yes"
5263 else
5264   echo "configure: failed program was:" >&5
5265   cat conftest.$ac_ext >&5
5266   rm -rf conftest*
5267   eval "ac_cv_func_$ac_func=no"
5268 fi
5269 rm -f conftest*
5270 fi
5271
5272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5273   echo "$ac_t""yes" 1>&6
5274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5275   cat >> confdefs.h <<EOF
5276 #define $ac_tr_func 1
5277 EOF
5278  
5279 else
5280   echo "$ac_t""no" 1>&6
5281 \
5282     ac_wfuncs=no
5283 fi
5284 done
5285
5286   
5287         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5288     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5289     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5290     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5291     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5292     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5293 do
5294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5295 echo "configure:5296: checking for $ac_func" >&5
5296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5297   echo $ac_n "(cached) $ac_c" 1>&6
5298 else
5299   cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* System header to define __stub macros and hopefully few prototypes,
5303     which can conflict with char $ac_func(); below.  */
5304 #include <assert.h>
5305 /* Override any gcc2 internal prototype to avoid an error.  */
5306 /* We use char because int might match the return type of a gcc2
5307     builtin and then its argument prototype would still apply.  */
5308 char $ac_func();
5309
5310 int main() {
5311
5312 /* The GNU C library defines this for functions which it implements
5313     to always fail with ENOSYS.  Some functions are actually named
5314     something starting with __ and the normal name is an alias.  */
5315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5316 choke me
5317 #else
5318 $ac_func();
5319 #endif
5320
5321 ; return 0; }
5322 EOF
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324   rm -rf conftest*
5325   eval "ac_cv_func_$ac_func=yes"
5326 else
5327   echo "configure: failed program was:" >&5
5328   cat conftest.$ac_ext >&5
5329   rm -rf conftest*
5330   eval "ac_cv_func_$ac_func=no"
5331 fi
5332 rm -f conftest*
5333 fi
5334
5335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5336   echo "$ac_t""yes" 1>&6
5337     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5338   cat >> confdefs.h <<EOF
5339 #define $ac_tr_func 1
5340 EOF
5341  
5342 else
5343   echo "$ac_t""no" 1>&6
5344 \
5345     ac_wfuncs=no
5346 fi
5347 done
5348
5349
5350     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5351 echo "configure:5352: checking for ISO C99 wchar_t support" >&5
5352     if test x"$has_weof" = xyes &&
5353        test x"$has_wchar_minmax" = xyes &&
5354        test x"$ac_wfuncs" = xyes; then
5355       ac_isoC99_wchar_t=yes
5356     else
5357       ac_isoC99_wchar_t=no
5358     fi
5359     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5360   
5361             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5362 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5363 echo "configure:5364: checking for iconv.h" >&5
5364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5365   echo $ac_n "(cached) $ac_c" 1>&6
5366 else
5367   cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 #include <iconv.h>
5371 EOF
5372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5373 { (eval echo configure:5374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5375 if test -z "$ac_err"; then
5376   rm -rf conftest*
5377   eval "ac_cv_header_$ac_safe=yes"
5378 else
5379   echo "$ac_err" >&5
5380   echo "configure: failed program was:" >&5
5381   cat conftest.$ac_ext >&5
5382   rm -rf conftest*
5383   eval "ac_cv_header_$ac_safe=no"
5384 fi
5385 rm -f conftest*
5386 fi
5387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5388   echo "$ac_t""yes" 1>&6
5389   ac_has_iconv_h=yes
5390 else
5391   echo "$ac_t""no" 1>&6
5392 ac_has_iconv_h=no
5393 fi
5394
5395     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5396 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5397 echo "configure:5398: checking for langinfo.h" >&5
5398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5399   echo $ac_n "(cached) $ac_c" 1>&6
5400 else
5401   cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 #include <langinfo.h>
5405 EOF
5406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5407 { (eval echo configure:5408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5409 if test -z "$ac_err"; then
5410   rm -rf conftest*
5411   eval "ac_cv_header_$ac_safe=yes"
5412 else
5413   echo "$ac_err" >&5
5414   echo "configure: failed program was:" >&5
5415   cat conftest.$ac_ext >&5
5416   rm -rf conftest*
5417   eval "ac_cv_header_$ac_safe=no"
5418 fi
5419 rm -f conftest*
5420 fi
5421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5422   echo "$ac_t""yes" 1>&6
5423   ac_has_langinfo_h=yes
5424 else
5425   echo "$ac_t""no" 1>&6
5426 ac_has_langinfo_h=no
5427 fi
5428
5429
5430         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5431 echo "configure:5432: checking for iconv in -liconv" >&5
5432 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5434   echo $ac_n "(cached) $ac_c" 1>&6
5435 else
5436   ac_save_LIBS="$LIBS"
5437 LIBS="-liconv  $LIBS"
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* Override any gcc2 internal prototype to avoid an error.  */
5442 /* We use char because int might match the return type of a gcc2
5443     builtin and then its argument prototype would still apply.  */
5444 char iconv();
5445
5446 int main() {
5447 iconv()
5448 ; return 0; }
5449 EOF
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5451   rm -rf conftest*
5452   eval "ac_cv_lib_$ac_lib_var=yes"
5453 else
5454   echo "configure: failed program was:" >&5
5455   cat conftest.$ac_ext >&5
5456   rm -rf conftest*
5457   eval "ac_cv_lib_$ac_lib_var=no"
5458 fi
5459 rm -f conftest*
5460 LIBS="$ac_save_LIBS"
5461
5462 fi
5463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5464   echo "$ac_t""yes" 1>&6
5465   libiconv="-liconv"
5466 else
5467   echo "$ac_t""no" 1>&6
5468 fi
5469
5470     ac_save_LIBS="$LIBS"
5471     LIBS="$LIBS $libiconv"
5472
5473     for ac_func in iconv_open iconv_close iconv nl_langinfo
5474 do
5475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5476 echo "configure:5477: checking for $ac_func" >&5
5477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5478   echo $ac_n "(cached) $ac_c" 1>&6
5479 else
5480   cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5483 /* System header to define __stub macros and hopefully few prototypes,
5484     which can conflict with char $ac_func(); below.  */
5485 #include <assert.h>
5486 /* Override any gcc2 internal prototype to avoid an error.  */
5487 /* We use char because int might match the return type of a gcc2
5488     builtin and then its argument prototype would still apply.  */
5489 char $ac_func();
5490
5491 int main() {
5492
5493 /* The GNU C library defines this for functions which it implements
5494     to always fail with ENOSYS.  Some functions are actually named
5495     something starting with __ and the normal name is an alias.  */
5496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5497 choke me
5498 #else
5499 $ac_func();
5500 #endif
5501
5502 ; return 0; }
5503 EOF
5504 if { (eval echo configure:5505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5505   rm -rf conftest*
5506   eval "ac_cv_func_$ac_func=yes"
5507 else
5508   echo "configure: failed program was:" >&5
5509   cat conftest.$ac_ext >&5
5510   rm -rf conftest*
5511   eval "ac_cv_func_$ac_func=no"
5512 fi
5513 rm -f conftest*
5514 fi
5515
5516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5517   echo "$ac_t""yes" 1>&6
5518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5519   cat >> confdefs.h <<EOF
5520 #define $ac_tr_func 1
5521 EOF
5522  \
5523     ac_XPG2funcs=yes
5524 else
5525   echo "$ac_t""no" 1>&6
5526 ac_XPG2funcs=no
5527 fi
5528 done
5529
5530   
5531     LIBS="$ac_save_LIBS"
5532
5533     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5534 echo "configure:5535: checking for XPG2 wchar_t support" >&5
5535     if test x"$ac_has_iconv_h" = xyes &&
5536        test x"$ac_has_langinfo_h" = xyes &&
5537        test x"$ac_XPG2funcs" = xyes; then
5538       ac_XPG2_wchar_t=yes
5539     else
5540       ac_XPG2_wchar_t=no
5541     fi
5542     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5543   
5544             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5545 echo "configure:5546: checking for enabled wchar_t specializations" >&5
5546     if test x"$ac_isoC99_wchar_t" = xyes &&
5547        test x"$ac_XPG2_wchar_t" = xyes; then
5548       cat >> confdefs.h <<\EOF
5549 #define _GLIBCPP_USE_WCHAR_T 1
5550 EOF
5551
5552       echo "$ac_t"""yes"" 1>&6
5553     else
5554       echo "$ac_t"""no"" 1>&6
5555     fi
5556   else
5557         echo "configure: warning: wchar_t support disabled." 1>&2
5558   fi
5559
5560       os_include_dir="config/os/hpux"
5561       cat >> confdefs.h <<\EOF
5562 #define HAVE_COPYSIGN 1
5563 EOF
5564
5565       cat >> confdefs.h <<\EOF
5566 #define HAVE_COPYSIGNF 1
5567 EOF
5568
5569       cat >> confdefs.h <<\EOF
5570 #define HAVE_FINITEF 1
5571 EOF
5572
5573       cat >> confdefs.h <<\EOF
5574 #define HAVE_FREXPF 1
5575 EOF
5576
5577       cat >> confdefs.h <<\EOF
5578 #define HAVE_HYPOT 1
5579 EOF
5580
5581       cat >> confdefs.h <<\EOF
5582 #define HAVE_SINCOS 1
5583 EOF
5584
5585       cat >> confdefs.h <<\EOF
5586 #define HAVE_SINCOSF 1
5587 EOF
5588
5589       ;;
5590     *-netbsd*)
5591       # Check for available headers.
5592       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5593         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5594         fp.h locale.h float.h inttypes.h
5595 do
5596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_hdr" >&5
5599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5600   echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5602   cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 #include <$ac_hdr>
5606 EOF
5607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5608 { (eval echo configure:5609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5610 if test -z "$ac_err"; then
5611   rm -rf conftest*
5612   eval "ac_cv_header_$ac_safe=yes"
5613 else
5614   echo "$ac_err" >&5
5615   echo "configure: failed program was:" >&5
5616   cat conftest.$ac_ext >&5
5617   rm -rf conftest*
5618   eval "ac_cv_header_$ac_safe=no"
5619 fi
5620 rm -f conftest*
5621 fi
5622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5623   echo "$ac_t""yes" 1>&6
5624     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5625   cat >> confdefs.h <<EOF
5626 #define $ac_tr_hdr 1
5627 EOF
5628  
5629 else
5630   echo "$ac_t""no" 1>&6
5631 fi
5632 done
5633
5634       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5635        
5636       
5637   # If we're not using GNU ld, then there's no point in even trying these
5638   # tests.  Check for that first.  We should have already tested for gld
5639   # by now (in libtool), but require it now just to be safe...
5640   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5641   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5642   
5643
5644   # Set --gc-sections.
5645   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5646     # GNU ld it is!  Joy and bunny rabbits!
5647
5648     # All these tests are for C++; save the language and the compiler flags.
5649     # Need to do this so that g++ won't try to link in libstdc++
5650     ac_test_CFLAGS="${CFLAGS+set}"
5651     ac_save_CFLAGS="$CFLAGS"
5652     CFLAGS='-x c++  -Wl,--gc-sections'
5653
5654     # Check for -Wl,--gc-sections
5655     # XXX This test is broken at the moment, as symbols required for
5656     # linking are now in libsupc++ (not built yet.....). In addition, 
5657     # this test has cored on solaris in the past. In addition,
5658     # --gc-sections doesn't really work at the moment (keeps on discarding
5659     # used sections, first .eh_frame and now some of the glibc sections for
5660     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5661     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5662 echo "configure:5663: checking for ld that supports -Wl,--gc-sections" >&5
5663     if test "$cross_compiling" = yes; then
5664   ac_sectionLDflags=yes
5665 else
5666   cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669
5670      int main(void) 
5671      {
5672        try { throw 1; }
5673        catch (...) { };
5674        return 0;
5675      }
5676     
5677 EOF
5678 if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5679 then
5680   ac_sectionLDflags=yes
5681 else
5682   echo "configure: failed program was:" >&5
5683   cat conftest.$ac_ext >&5
5684   rm -fr conftest*
5685   ac_sectionLDflags=no
5686 fi
5687 rm -fr conftest*
5688 fi
5689
5690     if test "$ac_test_CFLAGS" = set; then
5691       CFLAGS="$ac_save_CFLAGS"
5692     else
5693       # this is the suspicious part
5694       CFLAGS=''
5695     fi
5696     if test "$ac_sectionLDflags" = "yes"; then
5697       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5698     fi
5699     echo "$ac_t""$ac_sectionLDflags" 1>&6
5700   fi
5701
5702   # Set linker optimization flags.
5703   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5704      test x"$enable_debug" = x"no"; then
5705     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5706   fi
5707
5708   
5709   
5710
5711       
5712     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5713 echo "configure:5714: checking for main in -lm" >&5
5714 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5716   echo $ac_n "(cached) $ac_c" 1>&6
5717 else
5718   ac_save_LIBS="$LIBS"
5719 LIBS="-lm  $LIBS"
5720 cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5723
5724 int main() {
5725 main()
5726 ; return 0; }
5727 EOF
5728 if { (eval echo configure:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5729   rm -rf conftest*
5730   eval "ac_cv_lib_$ac_lib_var=yes"
5731 else
5732   echo "configure: failed program was:" >&5
5733   cat conftest.$ac_ext >&5
5734   rm -rf conftest*
5735   eval "ac_cv_lib_$ac_lib_var=no"
5736 fi
5737 rm -f conftest*
5738 LIBS="$ac_save_LIBS"
5739
5740 fi
5741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5742   echo "$ac_t""yes" 1>&6
5743     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5744     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5745   cat >> confdefs.h <<EOF
5746 #define $ac_tr_lib 1
5747 EOF
5748
5749   LIBS="-lm $LIBS"
5750
5751 else
5752   echo "$ac_t""no" 1>&6
5753 fi
5754
5755   for ac_func in nan copysignf
5756 do
5757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5758 echo "configure:5759: checking for $ac_func" >&5
5759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5760   echo $ac_n "(cached) $ac_c" 1>&6
5761 else
5762   cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 /* System header to define __stub macros and hopefully few prototypes,
5766     which can conflict with char $ac_func(); below.  */
5767 #include <assert.h>
5768 /* Override any gcc2 internal prototype to avoid an error.  */
5769 /* We use char because int might match the return type of a gcc2
5770     builtin and then its argument prototype would still apply.  */
5771 char $ac_func();
5772
5773 int main() {
5774
5775 /* The GNU C library defines this for functions which it implements
5776     to always fail with ENOSYS.  Some functions are actually named
5777     something starting with __ and the normal name is an alias.  */
5778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5779 choke me
5780 #else
5781 $ac_func();
5782 #endif
5783
5784 ; return 0; }
5785 EOF
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787   rm -rf conftest*
5788   eval "ac_cv_func_$ac_func=yes"
5789 else
5790   echo "configure: failed program was:" >&5
5791   cat conftest.$ac_ext >&5
5792   rm -rf conftest*
5793   eval "ac_cv_func_$ac_func=no"
5794 fi
5795 rm -f conftest*
5796 fi
5797
5798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5799   echo "$ac_t""yes" 1>&6
5800     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5801   cat >> confdefs.h <<EOF
5802 #define $ac_tr_func 1
5803 EOF
5804  
5805 else
5806   echo "$ac_t""no" 1>&6
5807 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5808 fi
5809 done
5810
5811
5812
5813           USE_COMPLEX_LONG_DOUBLE=no
5814   if test x$ac_cv_func_copysignl = x"yes"; then
5815     USE_COMPLEX_LONG_DOUBLE=yes
5816     for ac_func in signbitl
5817 do
5818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5819 echo "configure:5820: checking for $ac_func" >&5
5820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5821   echo $ac_n "(cached) $ac_c" 1>&6
5822 else
5823   cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 /* System header to define __stub macros and hopefully few prototypes,
5827     which can conflict with char $ac_func(); below.  */
5828 #include <assert.h>
5829 /* Override any gcc2 internal prototype to avoid an error.  */
5830 /* We use char because int might match the return type of a gcc2
5831     builtin and then its argument prototype would still apply.  */
5832 char $ac_func();
5833
5834 int main() {
5835
5836 /* The GNU C library defines this for functions which it implements
5837     to always fail with ENOSYS.  Some functions are actually named
5838     something starting with __ and the normal name is an alias.  */
5839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5840 choke me
5841 #else
5842 $ac_func();
5843 #endif
5844
5845 ; return 0; }
5846 EOF
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848   rm -rf conftest*
5849   eval "ac_cv_func_$ac_func=yes"
5850 else
5851   echo "configure: failed program was:" >&5
5852   cat conftest.$ac_ext >&5
5853   rm -rf conftest*
5854   eval "ac_cv_func_$ac_func=no"
5855 fi
5856 rm -f conftest*
5857 fi
5858
5859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5860   echo "$ac_t""yes" 1>&6
5861     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5862   cat >> confdefs.h <<EOF
5863 #define $ac_tr_func 1
5864 EOF
5865  
5866 else
5867   echo "$ac_t""no" 1>&6
5868 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5869 fi
5870 done
5871
5872
5873   fi
5874
5875   
5876
5877       
5878
5879       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5880 echo "configure:5881: checking for mbstate_t" >&5
5881   cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <wchar.h>
5885 int main() {
5886 mbstate_t teststate;
5887 ; return 0; }
5888 EOF
5889 if { (eval echo configure:5890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5890   rm -rf conftest*
5891   have_mbstate_t=yes
5892 else
5893   echo "configure: failed program was:" >&5
5894   cat conftest.$ac_ext >&5
5895   rm -rf conftest*
5896   have_mbstate_t=no
5897 fi
5898 rm -f conftest*
5899   echo "$ac_t""$have_mbstate_t" 1>&6
5900   if test x"$have_mbstate_t" = xyes; then
5901     cat >> confdefs.h <<\EOF
5902 #define HAVE_MBSTATE_T 1
5903 EOF
5904
5905   fi
5906
5907     for ac_hdr in wchar.h
5908 do
5909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5911 echo "configure:5912: checking for $ac_hdr" >&5
5912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5913   echo $ac_n "(cached) $ac_c" 1>&6
5914 else
5915   cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 #include <$ac_hdr>
5919 EOF
5920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5921 { (eval echo configure:5922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5923 if test -z "$ac_err"; then
5924   rm -rf conftest*
5925   eval "ac_cv_header_$ac_safe=yes"
5926 else
5927   echo "$ac_err" >&5
5928   echo "configure: failed program was:" >&5
5929   cat conftest.$ac_ext >&5
5930   rm -rf conftest*
5931   eval "ac_cv_header_$ac_safe=no"
5932 fi
5933 rm -f conftest*
5934 fi
5935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5936   echo "$ac_t""yes" 1>&6
5937     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5938   cat >> confdefs.h <<EOF
5939 #define $ac_tr_hdr 1
5940 EOF
5941  ac_has_wchar_h=yes
5942 else
5943   echo "$ac_t""no" 1>&6
5944 ac_has_wchar_h=no
5945 fi
5946 done
5947
5948   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5949 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5950 echo "configure:5951: checking for wctype.h" >&5
5951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5952   echo $ac_n "(cached) $ac_c" 1>&6
5953 else
5954   cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <wctype.h>
5958 EOF
5959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5960 { (eval echo configure:5961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5962 if test -z "$ac_err"; then
5963   rm -rf conftest*
5964   eval "ac_cv_header_$ac_safe=yes"
5965 else
5966   echo "$ac_err" >&5
5967   echo "configure: failed program was:" >&5
5968   cat conftest.$ac_ext >&5
5969   rm -rf conftest*
5970   eval "ac_cv_header_$ac_safe=no"
5971 fi
5972 rm -f conftest*
5973 fi
5974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5975   echo "$ac_t""yes" 1>&6
5976   ac_has_wctype_h=yes
5977 else
5978   echo "$ac_t""no" 1>&6
5979 ac_has_wctype_h=no
5980 fi
5981
5982   
5983     if test x"$ac_has_wchar_h" = xyes &&
5984      test x"$ac_has_wctype_h" = xyes &&
5985      test x"$enable_c_mbchar" != xno; then
5986       
5987             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5988 echo "configure:5989: checking for WCHAR_MIN and WCHAR_MAX" >&5
5989     cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <wchar.h>
5993 int main() {
5994 int i = WCHAR_MIN; int j = WCHAR_MAX;
5995 ; return 0; }
5996 EOF
5997 if { (eval echo configure:5998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5998   rm -rf conftest*
5999   has_wchar_minmax=yes
6000 else
6001   echo "configure: failed program was:" >&5
6002   cat conftest.$ac_ext >&5
6003   rm -rf conftest*
6004   has_wchar_minmax=no
6005 fi
6006 rm -f conftest*
6007     echo "$ac_t""$has_wchar_minmax" 1>&6
6008     
6009             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6010 echo "configure:6011: checking for WEOF" >&5
6011     cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014
6015       #include <wchar.h>
6016       #include <stddef.h>
6017 int main() {
6018 wint_t i = WEOF;
6019 ; return 0; }
6020 EOF
6021 if { (eval echo configure:6022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6022   rm -rf conftest*
6023   has_weof=yes
6024 else
6025   echo "configure: failed program was:" >&5
6026   cat conftest.$ac_ext >&5
6027   rm -rf conftest*
6028   has_weof=no
6029 fi
6030 rm -f conftest*
6031     echo "$ac_t""$has_weof" 1>&6
6032   
6033         ac_wfuncs=yes
6034     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6035 do
6036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_func" >&5
6038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6039   echo $ac_n "(cached) $ac_c" 1>&6
6040 else
6041   cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 /* System header to define __stub macros and hopefully few prototypes,
6045     which can conflict with char $ac_func(); below.  */
6046 #include <assert.h>
6047 /* Override any gcc2 internal prototype to avoid an error.  */
6048 /* We use char because int might match the return type of a gcc2
6049     builtin and then its argument prototype would still apply.  */
6050 char $ac_func();
6051
6052 int main() {
6053
6054 /* The GNU C library defines this for functions which it implements
6055     to always fail with ENOSYS.  Some functions are actually named
6056     something starting with __ and the normal name is an alias.  */
6057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6058 choke me
6059 #else
6060 $ac_func();
6061 #endif
6062
6063 ; return 0; }
6064 EOF
6065 if { (eval echo configure:6066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6066   rm -rf conftest*
6067   eval "ac_cv_func_$ac_func=yes"
6068 else
6069   echo "configure: failed program was:" >&5
6070   cat conftest.$ac_ext >&5
6071   rm -rf conftest*
6072   eval "ac_cv_func_$ac_func=no"
6073 fi
6074 rm -f conftest*
6075 fi
6076
6077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6078   echo "$ac_t""yes" 1>&6
6079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6080   cat >> confdefs.h <<EOF
6081 #define $ac_tr_func 1
6082 EOF
6083  
6084 else
6085   echo "$ac_t""no" 1>&6
6086 \
6087     ac_wfuncs=no
6088 fi
6089 done
6090
6091   
6092         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6093     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6094     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6095     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6096     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6097     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6098 do
6099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6100 echo "configure:6101: checking for $ac_func" >&5
6101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6102   echo $ac_n "(cached) $ac_c" 1>&6
6103 else
6104   cat > conftest.$ac_ext <<EOF
6105 #line 6106 "configure"
6106 #include "confdefs.h"
6107 /* System header to define __stub macros and hopefully few prototypes,
6108     which can conflict with char $ac_func(); below.  */
6109 #include <assert.h>
6110 /* Override any gcc2 internal prototype to avoid an error.  */
6111 /* We use char because int might match the return type of a gcc2
6112     builtin and then its argument prototype would still apply.  */
6113 char $ac_func();
6114
6115 int main() {
6116
6117 /* The GNU C library defines this for functions which it implements
6118     to always fail with ENOSYS.  Some functions are actually named
6119     something starting with __ and the normal name is an alias.  */
6120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6121 choke me
6122 #else
6123 $ac_func();
6124 #endif
6125
6126 ; return 0; }
6127 EOF
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6129   rm -rf conftest*
6130   eval "ac_cv_func_$ac_func=yes"
6131 else
6132   echo "configure: failed program was:" >&5
6133   cat conftest.$ac_ext >&5
6134   rm -rf conftest*
6135   eval "ac_cv_func_$ac_func=no"
6136 fi
6137 rm -f conftest*
6138 fi
6139
6140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6141   echo "$ac_t""yes" 1>&6
6142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6143   cat >> confdefs.h <<EOF
6144 #define $ac_tr_func 1
6145 EOF
6146  
6147 else
6148   echo "$ac_t""no" 1>&6
6149 \
6150     ac_wfuncs=no
6151 fi
6152 done
6153
6154
6155     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6156 echo "configure:6157: checking for ISO C99 wchar_t support" >&5
6157     if test x"$has_weof" = xyes &&
6158        test x"$has_wchar_minmax" = xyes &&
6159        test x"$ac_wfuncs" = xyes; then
6160       ac_isoC99_wchar_t=yes
6161     else
6162       ac_isoC99_wchar_t=no
6163     fi
6164     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6165   
6166             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6167 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6168 echo "configure:6169: checking for iconv.h" >&5
6169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6170   echo $ac_n "(cached) $ac_c" 1>&6
6171 else
6172   cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 #include <iconv.h>
6176 EOF
6177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6178 { (eval echo configure:6179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6180 if test -z "$ac_err"; then
6181   rm -rf conftest*
6182   eval "ac_cv_header_$ac_safe=yes"
6183 else
6184   echo "$ac_err" >&5
6185   echo "configure: failed program was:" >&5
6186   cat conftest.$ac_ext >&5
6187   rm -rf conftest*
6188   eval "ac_cv_header_$ac_safe=no"
6189 fi
6190 rm -f conftest*
6191 fi
6192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6193   echo "$ac_t""yes" 1>&6
6194   ac_has_iconv_h=yes
6195 else
6196   echo "$ac_t""no" 1>&6
6197 ac_has_iconv_h=no
6198 fi
6199
6200     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6201 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6202 echo "configure:6203: checking for langinfo.h" >&5
6203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6204   echo $ac_n "(cached) $ac_c" 1>&6
6205 else
6206   cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 #include <langinfo.h>
6210 EOF
6211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6212 { (eval echo configure:6213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6214 if test -z "$ac_err"; then
6215   rm -rf conftest*
6216   eval "ac_cv_header_$ac_safe=yes"
6217 else
6218   echo "$ac_err" >&5
6219   echo "configure: failed program was:" >&5
6220   cat conftest.$ac_ext >&5
6221   rm -rf conftest*
6222   eval "ac_cv_header_$ac_safe=no"
6223 fi
6224 rm -f conftest*
6225 fi
6226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6227   echo "$ac_t""yes" 1>&6
6228   ac_has_langinfo_h=yes
6229 else
6230   echo "$ac_t""no" 1>&6
6231 ac_has_langinfo_h=no
6232 fi
6233
6234
6235         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6236 echo "configure:6237: checking for iconv in -liconv" >&5
6237 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6239   echo $ac_n "(cached) $ac_c" 1>&6
6240 else
6241   ac_save_LIBS="$LIBS"
6242 LIBS="-liconv  $LIBS"
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6246 /* Override any gcc2 internal prototype to avoid an error.  */
6247 /* We use char because int might match the return type of a gcc2
6248     builtin and then its argument prototype would still apply.  */
6249 char iconv();
6250
6251 int main() {
6252 iconv()
6253 ; return 0; }
6254 EOF
6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6256   rm -rf conftest*
6257   eval "ac_cv_lib_$ac_lib_var=yes"
6258 else
6259   echo "configure: failed program was:" >&5
6260   cat conftest.$ac_ext >&5
6261   rm -rf conftest*
6262   eval "ac_cv_lib_$ac_lib_var=no"
6263 fi
6264 rm -f conftest*
6265 LIBS="$ac_save_LIBS"
6266
6267 fi
6268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6269   echo "$ac_t""yes" 1>&6
6270   libiconv="-liconv"
6271 else
6272   echo "$ac_t""no" 1>&6
6273 fi
6274
6275     ac_save_LIBS="$LIBS"
6276     LIBS="$LIBS $libiconv"
6277
6278     for ac_func in iconv_open iconv_close iconv nl_langinfo
6279 do
6280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6281 echo "configure:6282: checking for $ac_func" >&5
6282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6283   echo $ac_n "(cached) $ac_c" 1>&6
6284 else
6285   cat > conftest.$ac_ext <<EOF
6286 #line 6287 "configure"
6287 #include "confdefs.h"
6288 /* System header to define __stub macros and hopefully few prototypes,
6289     which can conflict with char $ac_func(); below.  */
6290 #include <assert.h>
6291 /* Override any gcc2 internal prototype to avoid an error.  */
6292 /* We use char because int might match the return type of a gcc2
6293     builtin and then its argument prototype would still apply.  */
6294 char $ac_func();
6295
6296 int main() {
6297
6298 /* The GNU C library defines this for functions which it implements
6299     to always fail with ENOSYS.  Some functions are actually named
6300     something starting with __ and the normal name is an alias.  */
6301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6302 choke me
6303 #else
6304 $ac_func();
6305 #endif
6306
6307 ; return 0; }
6308 EOF
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6310   rm -rf conftest*
6311   eval "ac_cv_func_$ac_func=yes"
6312 else
6313   echo "configure: failed program was:" >&5
6314   cat conftest.$ac_ext >&5
6315   rm -rf conftest*
6316   eval "ac_cv_func_$ac_func=no"
6317 fi
6318 rm -f conftest*
6319 fi
6320
6321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6322   echo "$ac_t""yes" 1>&6
6323     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6324   cat >> confdefs.h <<EOF
6325 #define $ac_tr_func 1
6326 EOF
6327  \
6328     ac_XPG2funcs=yes
6329 else
6330   echo "$ac_t""no" 1>&6
6331 ac_XPG2funcs=no
6332 fi
6333 done
6334
6335   
6336     LIBS="$ac_save_LIBS"
6337
6338     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6339 echo "configure:6340: checking for XPG2 wchar_t support" >&5
6340     if test x"$ac_has_iconv_h" = xyes &&
6341        test x"$ac_has_langinfo_h" = xyes &&
6342        test x"$ac_XPG2funcs" = xyes; then
6343       ac_XPG2_wchar_t=yes
6344     else
6345       ac_XPG2_wchar_t=no
6346     fi
6347     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6348   
6349             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6350 echo "configure:6351: checking for enabled wchar_t specializations" >&5
6351     if test x"$ac_isoC99_wchar_t" = xyes &&
6352        test x"$ac_XPG2_wchar_t" = xyes; then
6353       cat >> confdefs.h <<\EOF
6354 #define _GLIBCPP_USE_WCHAR_T 1
6355 EOF
6356
6357       echo "$ac_t"""yes"" 1>&6
6358     else
6359       echo "$ac_t"""no"" 1>&6
6360     fi
6361   else
6362         echo "configure: warning: wchar_t support disabled." 1>&2
6363   fi
6364
6365       os_include_dir="config/os/bsd/netbsd"
6366       cat >> confdefs.h <<\EOF
6367 #define HAVE_COPYSIGN 1
6368 EOF
6369
6370       cat >> confdefs.h <<\EOF
6371 #define HAVE_COPYSIGNF 1
6372 EOF
6373
6374       cat >> confdefs.h <<\EOF
6375 #define HAVE_FINITEF 1
6376 EOF
6377
6378       cat >> confdefs.h <<\EOF
6379 #define HAVE_FREXPF 1
6380 EOF
6381
6382       cat >> confdefs.h <<\EOF
6383 #define HAVE_HYPOTF 1
6384 EOF
6385
6386       ;;
6387     *)
6388       os_include_dir="config/os/newlib"
6389       cat >> confdefs.h <<\EOF
6390 #define HAVE_HYPOT 1
6391 EOF
6392
6393       ;;
6394   esac
6395
6396   # GLIBCPP_CHECK_STDLIB_SUPPORT
6397   cat >> confdefs.h <<\EOF
6398 #define HAVE_STRTOF 1
6399 EOF
6400         
6401   cat >> confdefs.h <<\EOF
6402 #define HAVE_STRTOLD 1
6403 EOF
6404         
6405   # AC_FUNC_MMAP
6406   cat >> confdefs.h <<\EOF
6407 #define HAVE_MMAP 1
6408 EOF
6409
6410
6411   cat >> confdefs.h <<\EOF
6412 #define HAVE_ACOSF 1
6413 EOF
6414
6415   cat >> confdefs.h <<\EOF
6416 #define HAVE_ASINF 1
6417 EOF
6418
6419   cat >> confdefs.h <<\EOF
6420 #define HAVE_ATAN2F 1
6421 EOF
6422
6423   cat >> confdefs.h <<\EOF
6424 #define HAVE_ATANF 1
6425 EOF
6426
6427   cat >> confdefs.h <<\EOF
6428 #define HAVE_CEILF 1
6429 EOF
6430
6431   cat >> confdefs.h <<\EOF
6432 #define HAVE_COPYSIGN 1
6433 EOF
6434
6435   cat >> confdefs.h <<\EOF
6436 #define HAVE_COPYSIGNF 1
6437 EOF
6438
6439   cat >> confdefs.h <<\EOF
6440 #define HAVE_COSF 1
6441 EOF
6442
6443   cat >> confdefs.h <<\EOF
6444 #define HAVE_COSHF 1
6445 EOF
6446
6447   cat >> confdefs.h <<\EOF
6448 #define HAVE_EXPF 1
6449 EOF
6450
6451   cat >> confdefs.h <<\EOF
6452 #define HAVE_FABSF 1
6453 EOF
6454
6455   cat >> confdefs.h <<\EOF
6456 #define HAVE_FINITE 1
6457 EOF
6458
6459   cat >> confdefs.h <<\EOF
6460 #define HAVE_FINITEF 1
6461 EOF
6462
6463   cat >> confdefs.h <<\EOF
6464 #define HAVE_FLOORF 1
6465 EOF
6466
6467   cat >> confdefs.h <<\EOF
6468 #define HAVE_FMODF 1
6469 EOF
6470
6471   cat >> confdefs.h <<\EOF
6472 #define HAVE_FREXPF 1
6473 EOF
6474
6475   cat >> confdefs.h <<\EOF
6476 #define HAVE_ISINF 1
6477 EOF
6478
6479   cat >> confdefs.h <<\EOF
6480 #define HAVE_ISINFF 1
6481 EOF
6482
6483   cat >> confdefs.h <<\EOF
6484 #define HAVE_ISNAN 1
6485 EOF
6486
6487   cat >> confdefs.h <<\EOF
6488 #define HAVE_ISNANF 1
6489 EOF
6490
6491   cat >> confdefs.h <<\EOF
6492 #define HAVE_LDEXPF 1
6493 EOF
6494
6495   cat >> confdefs.h <<\EOF
6496 #define HAVE_LOG10F 1
6497 EOF
6498
6499   cat >> confdefs.h <<\EOF
6500 #define HAVE_LOGF 1
6501 EOF
6502
6503   cat >> confdefs.h <<\EOF
6504 #define HAVE_MODFF 1
6505 EOF
6506
6507   cat >> confdefs.h <<\EOF
6508 #define HAVE_POWF 1
6509 EOF
6510
6511   cat >> confdefs.h <<\EOF
6512 #define HAVE_SINF 1
6513 EOF
6514
6515   cat >> confdefs.h <<\EOF
6516 #define HAVE_SINHF 1
6517 EOF
6518
6519   cat >> confdefs.h <<\EOF
6520 #define HAVE_SQRTF 1
6521 EOF
6522
6523   cat >> confdefs.h <<\EOF
6524 #define HAVE_TANF 1
6525 EOF
6526
6527   cat >> confdefs.h <<\EOF
6528 #define HAVE_TANHF 1
6529 EOF
6530
6531
6532   # At some point, we should differentiate between architectures
6533   # like x86, which have long double versions, and alpha/powerpc/etc.,
6534   # which don't. For the time being, punt.
6535   if test x"long_double_math_on_this_cpu" = x"yes"; then
6536     cat >> confdefs.h <<\EOF
6537 #define HAVE_ACOSL 1
6538 EOF
6539
6540     cat >> confdefs.h <<\EOF
6541 #define HAVE_ASINL 1
6542 EOF
6543
6544     cat >> confdefs.h <<\EOF
6545 #define HAVE_ATAN2L 1
6546 EOF
6547
6548     cat >> confdefs.h <<\EOF
6549 #define HAVE_ATANL 1
6550 EOF
6551
6552     cat >> confdefs.h <<\EOF
6553 #define HAVE_CEILL 1
6554 EOF
6555
6556     cat >> confdefs.h <<\EOF
6557 #define HAVE_COPYSIGNL 1
6558 EOF
6559
6560     cat >> confdefs.h <<\EOF
6561 #define HAVE_COSL 1
6562 EOF
6563
6564     cat >> confdefs.h <<\EOF
6565 #define HAVE_COSHL 1
6566 EOF
6567
6568     cat >> confdefs.h <<\EOF
6569 #define HAVE_EXPL 1
6570 EOF
6571
6572     cat >> confdefs.h <<\EOF
6573 #define HAVE_FABSL 1
6574 EOF
6575
6576     cat >> confdefs.h <<\EOF
6577 #define HAVE_FINITEL 1
6578 EOF
6579
6580     cat >> confdefs.h <<\EOF
6581 #define HAVE_FLOORL 1
6582 EOF
6583
6584     cat >> confdefs.h <<\EOF
6585 #define HAVE_FMODL 1
6586 EOF
6587
6588     cat >> confdefs.h <<\EOF
6589 #define HAVE_FREXPL 1
6590 EOF
6591
6592     cat >> confdefs.h <<\EOF
6593 #define HAVE_ISINFL 1
6594 EOF
6595
6596     cat >> confdefs.h <<\EOF
6597 #define HAVE_ISNANL 1
6598 EOF
6599
6600     cat >> confdefs.h <<\EOF
6601 #define HAVE_LDEXPL 1
6602 EOF
6603
6604     cat >> confdefs.h <<\EOF
6605 #define HAVE_LOG10L 1
6606 EOF
6607
6608     cat >> confdefs.h <<\EOF
6609 #define HAVE_LOGL 1
6610 EOF
6611
6612     cat >> confdefs.h <<\EOF
6613 #define HAVE_MODFL 1
6614 EOF
6615
6616     cat >> confdefs.h <<\EOF
6617 #define HAVE_POWL 1
6618 EOF
6619
6620     cat >> confdefs.h <<\EOF
6621 #define HAVE_SINCOSL 1
6622 EOF
6623
6624     cat >> confdefs.h <<\EOF
6625 #define HAVE_SINL 1
6626 EOF
6627
6628     cat >> confdefs.h <<\EOF
6629 #define HAVE_SINHL 1
6630 EOF
6631
6632     cat >> confdefs.h <<\EOF
6633 #define HAVE_SQRTL 1
6634 EOF
6635
6636     cat >> confdefs.h <<\EOF
6637 #define HAVE_TANL 1
6638 EOF
6639
6640     cat >> confdefs.h <<\EOF
6641 #define HAVE_TANHL 1
6642 EOF
6643
6644   fi
6645 else
6646
6647   # We are being configured natively. We can do more elaborate tests
6648   # that include AC_TRY_COMPILE now, as the linker is assumed to be
6649   # working.
6650   GLIBCPP_IS_CROSS_COMPILING=0
6651   CANADIAN=no
6652
6653   # Check for available headers.
6654   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
6655   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
6656 do
6657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_hdr" >&5
6660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6661   echo $ac_n "(cached) $ac_c" 1>&6
6662 else
6663   cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 #include <$ac_hdr>
6667 EOF
6668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6669 { (eval echo configure:6670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6671 if test -z "$ac_err"; then
6672   rm -rf conftest*
6673   eval "ac_cv_header_$ac_safe=yes"
6674 else
6675   echo "$ac_err" >&5
6676   echo "configure: failed program was:" >&5
6677   cat conftest.$ac_ext >&5
6678   rm -rf conftest*
6679   eval "ac_cv_header_$ac_safe=no"
6680 fi
6681 rm -f conftest*
6682 fi
6683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6684   echo "$ac_t""yes" 1>&6
6685     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6686   cat >> confdefs.h <<EOF
6687 #define $ac_tr_hdr 1
6688 EOF
6689  
6690 else
6691   echo "$ac_t""no" 1>&6
6692 fi
6693 done
6694
6695
6696   
6697   # All these tests are for C++; save the language and the compiler flags.
6698   # The CXXFLAGS thing is suspicious, but based on similar bits previously
6699   # found in GLIBCPP_CONFIGURE.
6700   
6701   ac_ext=C
6702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6706 cross_compiling=$ac_cv_prog_cxx_cross
6707
6708   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6709   ac_save_CXXFLAGS="$CXXFLAGS"
6710
6711   # Check for maintainer-mode bits.
6712   if test x"$USE_MAINTAINER_MODE" = xno; then
6713     WERROR=''
6714   else
6715     WERROR='-Werror'
6716   fi
6717
6718   # Check for -ffunction-sections -fdata-sections
6719   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
6720 echo "configure:6721: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
6721   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
6722   cat > conftest.$ac_ext <<EOF
6723 #line 6724 "configure"
6724 #include "confdefs.h"
6725
6726 int main() {
6727 int foo;
6728   
6729 ; return 0; }
6730 EOF
6731 if { (eval echo configure:6732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6732   rm -rf conftest*
6733   ac_fdsections=yes
6734 else
6735   echo "configure: failed program was:" >&5
6736   cat conftest.$ac_ext >&5
6737   rm -rf conftest*
6738   ac_fdsections=no
6739 fi
6740 rm -f conftest*
6741   if test "$ac_test_CXXFLAGS" = set; then
6742     CXXFLAGS="$ac_save_CXXFLAGS"
6743   else
6744     # this is the suspicious part
6745     CXXFLAGS=''
6746   fi
6747   if test x"$ac_fdsections" = x"yes" &&
6748      test x"$enable_debug" = x"no"; then
6749     SECTION_FLAGS='-ffunction-sections -fdata-sections'
6750   fi
6751   echo "$ac_t""$ac_fdsections" 1>&6
6752
6753   ac_ext=c
6754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6758 cross_compiling=$ac_cv_prog_cc_cross
6759
6760   
6761   
6762
6763   
6764   # If we're not using GNU ld, then there's no point in even trying these
6765   # tests.  Check for that first.  We should have already tested for gld
6766   # by now (in libtool), but require it now just to be safe...
6767   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6768   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6769   
6770
6771   # Set --gc-sections.
6772   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
6773     # GNU ld it is!  Joy and bunny rabbits!
6774
6775     # All these tests are for C++; save the language and the compiler flags.
6776     # Need to do this so that g++ won't try to link in libstdc++
6777     ac_test_CFLAGS="${CFLAGS+set}"
6778     ac_save_CFLAGS="$CFLAGS"
6779     CFLAGS='-x c++  -Wl,--gc-sections'
6780
6781     # Check for -Wl,--gc-sections
6782     # XXX This test is broken at the moment, as symbols required for
6783     # linking are now in libsupc++ (not built yet.....). In addition, 
6784     # this test has cored on solaris in the past. In addition,
6785     # --gc-sections doesn't really work at the moment (keeps on discarding
6786     # used sections, first .eh_frame and now some of the glibc sections for
6787     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6788     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6789 echo "configure:6790: checking for ld that supports -Wl,--gc-sections" >&5
6790     if test "$cross_compiling" = yes; then
6791   ac_sectionLDflags=yes
6792 else
6793   cat > conftest.$ac_ext <<EOF
6794 #line 6795 "configure"
6795 #include "confdefs.h"
6796
6797      int main(void) 
6798      {
6799        try { throw 1; }
6800        catch (...) { };
6801        return 0;
6802      }
6803     
6804 EOF
6805 if { (eval echo configure:6806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6806 then
6807   ac_sectionLDflags=yes
6808 else
6809   echo "configure: failed program was:" >&5
6810   cat conftest.$ac_ext >&5
6811   rm -fr conftest*
6812   ac_sectionLDflags=no
6813 fi
6814 rm -fr conftest*
6815 fi
6816
6817     if test "$ac_test_CFLAGS" = set; then
6818       CFLAGS="$ac_save_CFLAGS"
6819     else
6820       # this is the suspicious part
6821       CFLAGS=''
6822     fi
6823     if test "$ac_sectionLDflags" = "yes"; then
6824       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6825     fi
6826     echo "$ac_t""$ac_sectionLDflags" 1>&6
6827   fi
6828
6829   # Set linker optimization flags.
6830   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
6831      test x"$enable_debug" = x"no"; then
6832     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6833   fi
6834
6835   
6836   
6837
6838   
6839       
6840   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6841 echo "configure:6842: checking for __builtin_abs declaration" >&5
6842   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6843     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6844   echo $ac_n "(cached) $ac_c" 1>&6
6845 else
6846   
6847       
6848       ac_ext=C
6849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6850 ac_cpp='$CXXCPP $CPPFLAGS'
6851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6853 cross_compiling=$ac_cv_prog_cxx_cross
6854
6855       cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 #include <math.h>
6859 int main() {
6860  __builtin_abs(0);
6861 ; return 0; }
6862 EOF
6863 if { (eval echo configure:6864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6864   rm -rf conftest*
6865   glibcpp_cv_func___builtin_abs_use=yes
6866 else
6867   echo "configure: failed program was:" >&5
6868   cat conftest.$ac_ext >&5
6869   rm -rf conftest*
6870   glibcpp_cv_func___builtin_abs_use=no
6871 fi
6872 rm -f conftest*
6873       ac_ext=c
6874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6875 ac_cpp='$CPP $CPPFLAGS'
6876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6878 cross_compiling=$ac_cv_prog_cc_cross
6879
6880     
6881 fi
6882
6883   fi
6884   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
6885   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
6886     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
6887 echo "configure:6888: checking for __builtin_abs linkage" >&5
6888     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
6889       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
6890   echo $ac_n "(cached) $ac_c" 1>&6
6891 else
6892   
6893         cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 #include <math.h>
6897 int main() {
6898  __builtin_abs(0);
6899 ; return 0; }
6900 EOF
6901 if { (eval echo configure:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6902   rm -rf conftest*
6903   glibcpp_cv_func___builtin_abs_link=yes
6904 else
6905   echo "configure: failed program was:" >&5
6906   cat conftest.$ac_ext >&5
6907   rm -rf conftest*
6908   glibcpp_cv_func___builtin_abs_link=no
6909 fi
6910 rm -f conftest*
6911       
6912 fi
6913
6914     fi
6915     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
6916     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
6917       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6918       cat >> confdefs.h <<EOF
6919 #define ${ac_tr_func} 1
6920 EOF
6921
6922     fi
6923   fi
6924
6925   
6926   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
6927 echo "configure:6928: checking for __builtin_fabsf declaration" >&5
6928   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
6929     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
6930   echo $ac_n "(cached) $ac_c" 1>&6
6931 else
6932   
6933       
6934       ac_ext=C
6935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6939 cross_compiling=$ac_cv_prog_cxx_cross
6940
6941       cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 #include <math.h>
6945 int main() {
6946  __builtin_fabsf(0);
6947 ; return 0; }
6948 EOF
6949 if { (eval echo configure:6950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6950   rm -rf conftest*
6951   glibcpp_cv_func___builtin_fabsf_use=yes
6952 else
6953   echo "configure: failed program was:" >&5
6954   cat conftest.$ac_ext >&5
6955   rm -rf conftest*
6956   glibcpp_cv_func___builtin_fabsf_use=no
6957 fi
6958 rm -f conftest*
6959       ac_ext=c
6960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6961 ac_cpp='$CPP $CPPFLAGS'
6962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6964 cross_compiling=$ac_cv_prog_cc_cross
6965
6966     
6967 fi
6968
6969   fi
6970   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
6971   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
6972     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
6973 echo "configure:6974: checking for __builtin_fabsf linkage" >&5
6974     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
6975       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
6976   echo $ac_n "(cached) $ac_c" 1>&6
6977 else
6978   
6979         cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6982 #include <math.h>
6983 int main() {
6984  __builtin_fabsf(0);
6985 ; return 0; }
6986 EOF
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988   rm -rf conftest*
6989   glibcpp_cv_func___builtin_fabsf_link=yes
6990 else
6991   echo "configure: failed program was:" >&5
6992   cat conftest.$ac_ext >&5
6993   rm -rf conftest*
6994   glibcpp_cv_func___builtin_fabsf_link=no
6995 fi
6996 rm -f conftest*
6997       
6998 fi
6999
7000     fi
7001     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7002     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7003       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7004       cat >> confdefs.h <<EOF
7005 #define ${ac_tr_func} 1
7006 EOF
7007
7008     fi
7009   fi
7010
7011   
7012   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7013 echo "configure:7014: checking for __builtin_fabs declaration" >&5
7014   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7015     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7016   echo $ac_n "(cached) $ac_c" 1>&6
7017 else
7018   
7019       
7020       ac_ext=C
7021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7022 ac_cpp='$CXXCPP $CPPFLAGS'
7023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7025 cross_compiling=$ac_cv_prog_cxx_cross
7026
7027       cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 #include <math.h>
7031 int main() {
7032  __builtin_fabs(0);
7033 ; return 0; }
7034 EOF
7035 if { (eval echo configure:7036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036   rm -rf conftest*
7037   glibcpp_cv_func___builtin_fabs_use=yes
7038 else
7039   echo "configure: failed program was:" >&5
7040   cat conftest.$ac_ext >&5
7041   rm -rf conftest*
7042   glibcpp_cv_func___builtin_fabs_use=no
7043 fi
7044 rm -f conftest*
7045       ac_ext=c
7046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7047 ac_cpp='$CPP $CPPFLAGS'
7048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7050 cross_compiling=$ac_cv_prog_cc_cross
7051
7052     
7053 fi
7054
7055   fi
7056   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
7057   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
7058     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
7059 echo "configure:7060: checking for __builtin_fabs linkage" >&5
7060     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
7061       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
7062   echo $ac_n "(cached) $ac_c" 1>&6
7063 else
7064   
7065         cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7068 #include <math.h>
7069 int main() {
7070  __builtin_fabs(0);
7071 ; return 0; }
7072 EOF
7073 if { (eval echo configure:7074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7074   rm -rf conftest*
7075   glibcpp_cv_func___builtin_fabs_link=yes
7076 else
7077   echo "configure: failed program was:" >&5
7078   cat conftest.$ac_ext >&5
7079   rm -rf conftest*
7080   glibcpp_cv_func___builtin_fabs_link=no
7081 fi
7082 rm -f conftest*
7083       
7084 fi
7085
7086     fi
7087     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
7088     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
7089       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7090       cat >> confdefs.h <<EOF
7091 #define ${ac_tr_func} 1
7092 EOF
7093
7094     fi
7095   fi
7096
7097   
7098   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
7099 echo "configure:7100: checking for __builtin_fabsl declaration" >&5
7100   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
7101     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
7102   echo $ac_n "(cached) $ac_c" 1>&6
7103 else
7104   
7105       
7106       ac_ext=C
7107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7108 ac_cpp='$CXXCPP $CPPFLAGS'
7109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7111 cross_compiling=$ac_cv_prog_cxx_cross
7112
7113       cat > conftest.$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7116 #include <math.h>
7117 int main() {
7118  __builtin_fabsl(0);
7119 ; return 0; }
7120 EOF
7121 if { (eval echo configure:7122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7122   rm -rf conftest*
7123   glibcpp_cv_func___builtin_fabsl_use=yes
7124 else
7125   echo "configure: failed program was:" >&5
7126   cat conftest.$ac_ext >&5
7127   rm -rf conftest*
7128   glibcpp_cv_func___builtin_fabsl_use=no
7129 fi
7130 rm -f conftest*
7131       ac_ext=c
7132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7136 cross_compiling=$ac_cv_prog_cc_cross
7137
7138     
7139 fi
7140
7141   fi
7142   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
7143   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
7144     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
7145 echo "configure:7146: checking for __builtin_fabsl linkage" >&5
7146     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
7147       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
7148   echo $ac_n "(cached) $ac_c" 1>&6
7149 else
7150   
7151         cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154 #include <math.h>
7155 int main() {
7156  __builtin_fabsl(0);
7157 ; return 0; }
7158 EOF
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7160   rm -rf conftest*
7161   glibcpp_cv_func___builtin_fabsl_link=yes
7162 else
7163   echo "configure: failed program was:" >&5
7164   cat conftest.$ac_ext >&5
7165   rm -rf conftest*
7166   glibcpp_cv_func___builtin_fabsl_link=no
7167 fi
7168 rm -f conftest*
7169       
7170 fi
7171
7172     fi
7173     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
7174     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
7175       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7176       cat >> confdefs.h <<EOF
7177 #define ${ac_tr_func} 1
7178 EOF
7179
7180     fi
7181   fi
7182
7183   
7184   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
7185 echo "configure:7186: checking for __builtin_labs declaration" >&5
7186   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
7187     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
7188   echo $ac_n "(cached) $ac_c" 1>&6
7189 else
7190   
7191       
7192       ac_ext=C
7193 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7194 ac_cpp='$CXXCPP $CPPFLAGS'
7195 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7196 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7197 cross_compiling=$ac_cv_prog_cxx_cross
7198
7199       cat > conftest.$ac_ext <<EOF
7200 #line 7201 "configure"
7201 #include "confdefs.h"
7202 #include <math.h>
7203 int main() {
7204  __builtin_labs(0);
7205 ; return 0; }
7206 EOF
7207 if { (eval echo configure:7208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7208   rm -rf conftest*
7209   glibcpp_cv_func___builtin_labs_use=yes
7210 else
7211   echo "configure: failed program was:" >&5
7212   cat conftest.$ac_ext >&5
7213   rm -rf conftest*
7214   glibcpp_cv_func___builtin_labs_use=no
7215 fi
7216 rm -f conftest*
7217       ac_ext=c
7218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7219 ac_cpp='$CPP $CPPFLAGS'
7220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7222 cross_compiling=$ac_cv_prog_cc_cross
7223
7224     
7225 fi
7226
7227   fi
7228   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
7229   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
7230     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
7231 echo "configure:7232: checking for __builtin_labs linkage" >&5
7232     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
7233       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
7234   echo $ac_n "(cached) $ac_c" 1>&6
7235 else
7236   
7237         cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 #include <math.h>
7241 int main() {
7242  __builtin_labs(0);
7243 ; return 0; }
7244 EOF
7245 if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7246   rm -rf conftest*
7247   glibcpp_cv_func___builtin_labs_link=yes
7248 else
7249   echo "configure: failed program was:" >&5
7250   cat conftest.$ac_ext >&5
7251   rm -rf conftest*
7252   glibcpp_cv_func___builtin_labs_link=no
7253 fi
7254 rm -f conftest*
7255       
7256 fi
7257
7258     fi
7259     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
7260     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
7261       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7262       cat >> confdefs.h <<EOF
7263 #define ${ac_tr_func} 1
7264 EOF
7265
7266     fi
7267   fi
7268
7269
7270   
7271   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
7272 echo "configure:7273: checking for __builtin_sqrtf declaration" >&5
7273   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
7274     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
7275   echo $ac_n "(cached) $ac_c" 1>&6
7276 else
7277   
7278       
7279       ac_ext=C
7280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7281 ac_cpp='$CXXCPP $CPPFLAGS'
7282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7284 cross_compiling=$ac_cv_prog_cxx_cross
7285
7286       cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289 #include <math.h>
7290 int main() {
7291  __builtin_sqrtf(0);
7292 ; return 0; }
7293 EOF
7294 if { (eval echo configure:7295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7295   rm -rf conftest*
7296   glibcpp_cv_func___builtin_sqrtf_use=yes
7297 else
7298   echo "configure: failed program was:" >&5
7299   cat conftest.$ac_ext >&5
7300   rm -rf conftest*
7301   glibcpp_cv_func___builtin_sqrtf_use=no
7302 fi
7303 rm -f conftest*
7304       ac_ext=c
7305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7306 ac_cpp='$CPP $CPPFLAGS'
7307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7309 cross_compiling=$ac_cv_prog_cc_cross
7310
7311     
7312 fi
7313
7314   fi
7315   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
7316   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
7317     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
7318 echo "configure:7319: checking for __builtin_sqrtf linkage" >&5
7319     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
7320       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
7321   echo $ac_n "(cached) $ac_c" 1>&6
7322 else
7323   
7324         cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 #include <math.h>
7328 int main() {
7329  __builtin_sqrtf(0);
7330 ; return 0; }
7331 EOF
7332 if { (eval echo configure:7333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7333   rm -rf conftest*
7334   glibcpp_cv_func___builtin_sqrtf_link=yes
7335 else
7336   echo "configure: failed program was:" >&5
7337   cat conftest.$ac_ext >&5
7338   rm -rf conftest*
7339   glibcpp_cv_func___builtin_sqrtf_link=no
7340 fi
7341 rm -f conftest*
7342       
7343 fi
7344
7345     fi
7346     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
7347     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
7348       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7349       cat >> confdefs.h <<EOF
7350 #define ${ac_tr_func} 1
7351 EOF
7352
7353     fi
7354   fi
7355
7356   
7357   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
7358 echo "configure:7359: checking for __builtin_sqrt declaration" >&5
7359   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
7360     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
7361   echo $ac_n "(cached) $ac_c" 1>&6
7362 else
7363   
7364       
7365       ac_ext=C
7366 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7367 ac_cpp='$CXXCPP $CPPFLAGS'
7368 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7369 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7370 cross_compiling=$ac_cv_prog_cxx_cross
7371
7372       cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 #include <math.h>
7376 int main() {
7377  __builtin_sqrt(0);
7378 ; return 0; }
7379 EOF
7380 if { (eval echo configure:7381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7381   rm -rf conftest*
7382   glibcpp_cv_func___builtin_sqrt_use=yes
7383 else
7384   echo "configure: failed program was:" >&5
7385   cat conftest.$ac_ext >&5
7386   rm -rf conftest*
7387   glibcpp_cv_func___builtin_sqrt_use=no
7388 fi
7389 rm -f conftest*
7390       ac_ext=c
7391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7392 ac_cpp='$CPP $CPPFLAGS'
7393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7395 cross_compiling=$ac_cv_prog_cc_cross
7396
7397     
7398 fi
7399
7400   fi
7401   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
7402   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
7403     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
7404 echo "configure:7405: checking for __builtin_sqrt linkage" >&5
7405     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
7406       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
7407   echo $ac_n "(cached) $ac_c" 1>&6
7408 else
7409   
7410         cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7413 #include <math.h>
7414 int main() {
7415  __builtin_sqrt(0);
7416 ; return 0; }
7417 EOF
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7419   rm -rf conftest*
7420   glibcpp_cv_func___builtin_sqrt_link=yes
7421 else
7422   echo "configure: failed program was:" >&5
7423   cat conftest.$ac_ext >&5
7424   rm -rf conftest*
7425   glibcpp_cv_func___builtin_sqrt_link=no
7426 fi
7427 rm -f conftest*
7428       
7429 fi
7430
7431     fi
7432     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
7433     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
7434       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7435       cat >> confdefs.h <<EOF
7436 #define ${ac_tr_func} 1
7437 EOF
7438
7439     fi
7440   fi
7441
7442   
7443   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
7444 echo "configure:7445: checking for __builtin_sqrtl declaration" >&5
7445   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
7446     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
7447   echo $ac_n "(cached) $ac_c" 1>&6
7448 else
7449   
7450       
7451       ac_ext=C
7452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7453 ac_cpp='$CXXCPP $CPPFLAGS'
7454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7456 cross_compiling=$ac_cv_prog_cxx_cross
7457
7458       cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 #include <math.h>
7462 int main() {
7463  __builtin_sqrtl(0);
7464 ; return 0; }
7465 EOF
7466 if { (eval echo configure:7467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7467   rm -rf conftest*
7468   glibcpp_cv_func___builtin_sqrtl_use=yes
7469 else
7470   echo "configure: failed program was:" >&5
7471   cat conftest.$ac_ext >&5
7472   rm -rf conftest*
7473   glibcpp_cv_func___builtin_sqrtl_use=no
7474 fi
7475 rm -f conftest*
7476       ac_ext=c
7477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7481 cross_compiling=$ac_cv_prog_cc_cross
7482
7483     
7484 fi
7485
7486   fi
7487   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
7488   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
7489     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
7490 echo "configure:7491: checking for __builtin_sqrtl linkage" >&5
7491     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
7492       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
7493   echo $ac_n "(cached) $ac_c" 1>&6
7494 else
7495   
7496         cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 #include <math.h>
7500 int main() {
7501  __builtin_sqrtl(0);
7502 ; return 0; }
7503 EOF
7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7505   rm -rf conftest*
7506   glibcpp_cv_func___builtin_sqrtl_link=yes
7507 else
7508   echo "configure: failed program was:" >&5
7509   cat conftest.$ac_ext >&5
7510   rm -rf conftest*
7511   glibcpp_cv_func___builtin_sqrtl_link=no
7512 fi
7513 rm -f conftest*
7514       
7515 fi
7516
7517     fi
7518     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
7519     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
7520       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7521       cat >> confdefs.h <<EOF
7522 #define ${ac_tr_func} 1
7523 EOF
7524
7525     fi
7526   fi
7527
7528
7529   
7530   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
7531 echo "configure:7532: checking for __builtin_sinf declaration" >&5
7532   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
7533     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
7534   echo $ac_n "(cached) $ac_c" 1>&6
7535 else
7536   
7537       
7538       ac_ext=C
7539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7540 ac_cpp='$CXXCPP $CPPFLAGS'
7541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7543 cross_compiling=$ac_cv_prog_cxx_cross
7544
7545       cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 #include <math.h>
7549 int main() {
7550  __builtin_sinf(0);
7551 ; return 0; }
7552 EOF
7553 if { (eval echo configure:7554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7554   rm -rf conftest*
7555   glibcpp_cv_func___builtin_sinf_use=yes
7556 else
7557   echo "configure: failed program was:" >&5
7558   cat conftest.$ac_ext >&5
7559   rm -rf conftest*
7560   glibcpp_cv_func___builtin_sinf_use=no
7561 fi
7562 rm -f conftest*
7563       ac_ext=c
7564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7568 cross_compiling=$ac_cv_prog_cc_cross
7569
7570     
7571 fi
7572
7573   fi
7574   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
7575   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
7576     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
7577 echo "configure:7578: checking for __builtin_sinf linkage" >&5
7578     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
7579       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
7580   echo $ac_n "(cached) $ac_c" 1>&6
7581 else
7582   
7583         cat > conftest.$ac_ext <<EOF
7584 #line 7585 "configure"
7585 #include "confdefs.h"
7586 #include <math.h>
7587 int main() {
7588  __builtin_sinf(0);
7589 ; return 0; }
7590 EOF
7591 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7592   rm -rf conftest*
7593   glibcpp_cv_func___builtin_sinf_link=yes
7594 else
7595   echo "configure: failed program was:" >&5
7596   cat conftest.$ac_ext >&5
7597   rm -rf conftest*
7598   glibcpp_cv_func___builtin_sinf_link=no
7599 fi
7600 rm -f conftest*
7601       
7602 fi
7603
7604     fi
7605     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
7606     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
7607       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7608       cat >> confdefs.h <<EOF
7609 #define ${ac_tr_func} 1
7610 EOF
7611
7612     fi
7613   fi
7614
7615   
7616   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
7617 echo "configure:7618: checking for __builtin_sin declaration" >&5
7618   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
7619     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
7620   echo $ac_n "(cached) $ac_c" 1>&6
7621 else
7622   
7623       
7624       ac_ext=C
7625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7626 ac_cpp='$CXXCPP $CPPFLAGS'
7627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7629 cross_compiling=$ac_cv_prog_cxx_cross
7630
7631       cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 #include <math.h>
7635 int main() {
7636  __builtin_sin(0);
7637 ; return 0; }
7638 EOF
7639 if { (eval echo configure:7640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7640   rm -rf conftest*
7641   glibcpp_cv_func___builtin_sin_use=yes
7642 else
7643   echo "configure: failed program was:" >&5
7644   cat conftest.$ac_ext >&5
7645   rm -rf conftest*
7646   glibcpp_cv_func___builtin_sin_use=no
7647 fi
7648 rm -f conftest*
7649       ac_ext=c
7650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7654 cross_compiling=$ac_cv_prog_cc_cross
7655
7656     
7657 fi
7658
7659   fi
7660   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
7661   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
7662     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
7663 echo "configure:7664: checking for __builtin_sin linkage" >&5
7664     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
7665       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
7666   echo $ac_n "(cached) $ac_c" 1>&6
7667 else
7668   
7669         cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 #include <math.h>
7673 int main() {
7674  __builtin_sin(0);
7675 ; return 0; }
7676 EOF
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7678   rm -rf conftest*
7679   glibcpp_cv_func___builtin_sin_link=yes
7680 else
7681   echo "configure: failed program was:" >&5
7682   cat conftest.$ac_ext >&5
7683   rm -rf conftest*
7684   glibcpp_cv_func___builtin_sin_link=no
7685 fi
7686 rm -f conftest*
7687       
7688 fi
7689
7690     fi
7691     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
7692     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
7693       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7694       cat >> confdefs.h <<EOF
7695 #define ${ac_tr_func} 1
7696 EOF
7697
7698     fi
7699   fi
7700
7701   
7702   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
7703 echo "configure:7704: checking for __builtin_sinl declaration" >&5
7704   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
7705     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
7706   echo $ac_n "(cached) $ac_c" 1>&6
7707 else
7708   
7709       
7710       ac_ext=C
7711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7712 ac_cpp='$CXXCPP $CPPFLAGS'
7713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7715 cross_compiling=$ac_cv_prog_cxx_cross
7716
7717       cat > conftest.$ac_ext <<EOF
7718 #line 7719 "configure"
7719 #include "confdefs.h"
7720 #include <math.h>
7721 int main() {
7722  __builtin_sinl(0);
7723 ; return 0; }
7724 EOF
7725 if { (eval echo configure:7726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7726   rm -rf conftest*
7727   glibcpp_cv_func___builtin_sinl_use=yes
7728 else
7729   echo "configure: failed program was:" >&5
7730   cat conftest.$ac_ext >&5
7731   rm -rf conftest*
7732   glibcpp_cv_func___builtin_sinl_use=no
7733 fi
7734 rm -f conftest*
7735       ac_ext=c
7736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7737 ac_cpp='$CPP $CPPFLAGS'
7738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7740 cross_compiling=$ac_cv_prog_cc_cross
7741
7742     
7743 fi
7744
7745   fi
7746   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
7747   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
7748     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
7749 echo "configure:7750: checking for __builtin_sinl linkage" >&5
7750     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
7751       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
7752   echo $ac_n "(cached) $ac_c" 1>&6
7753 else
7754   
7755         cat > conftest.$ac_ext <<EOF
7756 #line 7757 "configure"
7757 #include "confdefs.h"
7758 #include <math.h>
7759 int main() {
7760  __builtin_sinl(0);
7761 ; return 0; }
7762 EOF
7763 if { (eval echo configure:7764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7764   rm -rf conftest*
7765   glibcpp_cv_func___builtin_sinl_link=yes
7766 else
7767   echo "configure: failed program was:" >&5
7768   cat conftest.$ac_ext >&5
7769   rm -rf conftest*
7770   glibcpp_cv_func___builtin_sinl_link=no
7771 fi
7772 rm -f conftest*
7773       
7774 fi
7775
7776     fi
7777     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
7778     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
7779       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7780       cat >> confdefs.h <<EOF
7781 #define ${ac_tr_func} 1
7782 EOF
7783
7784     fi
7785   fi
7786
7787
7788   
7789   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
7790 echo "configure:7791: checking for __builtin_cosf declaration" >&5
7791   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
7792     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
7793   echo $ac_n "(cached) $ac_c" 1>&6
7794 else
7795   
7796       
7797       ac_ext=C
7798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7799 ac_cpp='$CXXCPP $CPPFLAGS'
7800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7802 cross_compiling=$ac_cv_prog_cxx_cross
7803
7804       cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 #include <math.h>
7808 int main() {
7809  __builtin_cosf(0);
7810 ; return 0; }
7811 EOF
7812 if { (eval echo configure:7813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7813   rm -rf conftest*
7814   glibcpp_cv_func___builtin_cosf_use=yes
7815 else
7816   echo "configure: failed program was:" >&5
7817   cat conftest.$ac_ext >&5
7818   rm -rf conftest*
7819   glibcpp_cv_func___builtin_cosf_use=no
7820 fi
7821 rm -f conftest*
7822       ac_ext=c
7823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7827 cross_compiling=$ac_cv_prog_cc_cross
7828
7829     
7830 fi
7831
7832   fi
7833   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7834   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7835     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7836 echo "configure:7837: checking for __builtin_cosf linkage" >&5
7837     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7838       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7839   echo $ac_n "(cached) $ac_c" 1>&6
7840 else
7841   
7842         cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 #include <math.h>
7846 int main() {
7847  __builtin_cosf(0);
7848 ; return 0; }
7849 EOF
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851   rm -rf conftest*
7852   glibcpp_cv_func___builtin_cosf_link=yes
7853 else
7854   echo "configure: failed program was:" >&5
7855   cat conftest.$ac_ext >&5
7856   rm -rf conftest*
7857   glibcpp_cv_func___builtin_cosf_link=no
7858 fi
7859 rm -f conftest*
7860       
7861 fi
7862
7863     fi
7864     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
7865     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
7866       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7867       cat >> confdefs.h <<EOF
7868 #define ${ac_tr_func} 1
7869 EOF
7870
7871     fi
7872   fi
7873
7874   
7875   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
7876 echo "configure:7877: checking for __builtin_cos declaration" >&5
7877   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
7878     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
7879   echo $ac_n "(cached) $ac_c" 1>&6
7880 else
7881   
7882       
7883       ac_ext=C
7884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7885 ac_cpp='$CXXCPP $CPPFLAGS'
7886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7888 cross_compiling=$ac_cv_prog_cxx_cross
7889
7890       cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 #include <math.h>
7894 int main() {
7895  __builtin_cos(0);
7896 ; return 0; }
7897 EOF
7898 if { (eval echo configure:7899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7899   rm -rf conftest*
7900   glibcpp_cv_func___builtin_cos_use=yes
7901 else
7902   echo "configure: failed program was:" >&5
7903   cat conftest.$ac_ext >&5
7904   rm -rf conftest*
7905   glibcpp_cv_func___builtin_cos_use=no
7906 fi
7907 rm -f conftest*
7908       ac_ext=c
7909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7913 cross_compiling=$ac_cv_prog_cc_cross
7914
7915     
7916 fi
7917
7918   fi
7919   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
7920   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
7921     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
7922 echo "configure:7923: checking for __builtin_cos linkage" >&5
7923     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
7924       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
7925   echo $ac_n "(cached) $ac_c" 1>&6
7926 else
7927   
7928         cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 #include <math.h>
7932 int main() {
7933  __builtin_cos(0);
7934 ; return 0; }
7935 EOF
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937   rm -rf conftest*
7938   glibcpp_cv_func___builtin_cos_link=yes
7939 else
7940   echo "configure: failed program was:" >&5
7941   cat conftest.$ac_ext >&5
7942   rm -rf conftest*
7943   glibcpp_cv_func___builtin_cos_link=no
7944 fi
7945 rm -f conftest*
7946       
7947 fi
7948
7949     fi
7950     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
7951     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
7952       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7953       cat >> confdefs.h <<EOF
7954 #define ${ac_tr_func} 1
7955 EOF
7956
7957     fi
7958   fi
7959
7960   
7961   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
7962 echo "configure:7963: checking for __builtin_cosl declaration" >&5
7963   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
7964     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
7965   echo $ac_n "(cached) $ac_c" 1>&6
7966 else
7967   
7968       
7969       ac_ext=C
7970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7971 ac_cpp='$CXXCPP $CPPFLAGS'
7972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7974 cross_compiling=$ac_cv_prog_cxx_cross
7975
7976       cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 #include <math.h>
7980 int main() {
7981  __builtin_cosl(0);
7982 ; return 0; }
7983 EOF
7984 if { (eval echo configure:7985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7985   rm -rf conftest*
7986   glibcpp_cv_func___builtin_cosl_use=yes
7987 else
7988   echo "configure: failed program was:" >&5
7989   cat conftest.$ac_ext >&5
7990   rm -rf conftest*
7991   glibcpp_cv_func___builtin_cosl_use=no
7992 fi
7993 rm -f conftest*
7994       ac_ext=c
7995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7999 cross_compiling=$ac_cv_prog_cc_cross
8000
8001     
8002 fi
8003
8004   fi
8005   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8006   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8007     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8008 echo "configure:8009: checking for __builtin_cosl linkage" >&5
8009     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8010       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8011   echo $ac_n "(cached) $ac_c" 1>&6
8012 else
8013   
8014         cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 #include <math.h>
8018 int main() {
8019  __builtin_cosl(0);
8020 ; return 0; }
8021 EOF
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8023   rm -rf conftest*
8024   glibcpp_cv_func___builtin_cosl_link=yes
8025 else
8026   echo "configure: failed program was:" >&5
8027   cat conftest.$ac_ext >&5
8028   rm -rf conftest*
8029   glibcpp_cv_func___builtin_cosl_link=no
8030 fi
8031 rm -f conftest*
8032       
8033 fi
8034
8035     fi
8036     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
8037     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
8038       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8039       cat >> confdefs.h <<EOF
8040 #define ${ac_tr_func} 1
8041 EOF
8042
8043     fi
8044   fi
8045
8046
8047               dummyvar=no
8048   if test x$dummyvar = x"yes"; then
8049     cat >> confdefs.h <<\EOF
8050 #define HAVE___BUILTIN_ABS 1
8051 EOF
8052
8053     cat >> confdefs.h <<\EOF
8054 #define HAVE___BUILTIN_LABS 1
8055 EOF
8056
8057     cat >> confdefs.h <<\EOF
8058 #define HAVE___BUILTIN_COS 1
8059 EOF
8060
8061     cat >> confdefs.h <<\EOF
8062 #define HAVE___BUILTIN_COSF 1
8063 EOF
8064
8065     cat >> confdefs.h <<\EOF
8066 #define HAVE___BUILTIN_COSL 1
8067 EOF
8068
8069     cat >> confdefs.h <<\EOF
8070 #define HAVE___BUILTIN_FABS 1
8071 EOF
8072
8073     cat >> confdefs.h <<\EOF
8074 #define HAVE___BUILTIN_FABSF 1
8075 EOF
8076
8077     cat >> confdefs.h <<\EOF
8078 #define HAVE___BUILTIN_FABSL 1
8079 EOF
8080
8081     cat >> confdefs.h <<\EOF
8082 #define HAVE___BUILTIN_SIN 1
8083 EOF
8084
8085     cat >> confdefs.h <<\EOF
8086 #define HAVE___BUILTIN_SINF 1
8087 EOF
8088
8089     cat >> confdefs.h <<\EOF
8090 #define HAVE___BUILTIN_SINL 1
8091 EOF
8092
8093     cat >> confdefs.h <<\EOF
8094 #define HAVE___BUILTIN_SQRT 1
8095 EOF
8096
8097     cat >> confdefs.h <<\EOF
8098 #define HAVE___BUILTIN_SQRTF 1
8099 EOF
8100
8101     cat >> confdefs.h <<\EOF
8102 #define HAVE___BUILTIN_SQRTL 1
8103 EOF
8104
8105   fi
8106
8107   
8108   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8109   ac_save_CXXFLAGS="$CXXFLAGS"
8110   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
8111
8112     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
8113 echo "configure:8114: checking for sin in -lm" >&5
8114 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
8115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8116   echo $ac_n "(cached) $ac_c" 1>&6
8117 else
8118   ac_save_LIBS="$LIBS"
8119 LIBS="-lm  $LIBS"
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* Override any gcc2 internal prototype to avoid an error.  */
8124 /* We use char because int might match the return type of a gcc2
8125     builtin and then its argument prototype would still apply.  */
8126 char sin();
8127
8128 int main() {
8129 sin()
8130 ; return 0; }
8131 EOF
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8133   rm -rf conftest*
8134   eval "ac_cv_lib_$ac_lib_var=yes"
8135 else
8136   echo "configure: failed program was:" >&5
8137   cat conftest.$ac_ext >&5
8138   rm -rf conftest*
8139   eval "ac_cv_lib_$ac_lib_var=no"
8140 fi
8141 rm -f conftest*
8142 LIBS="$ac_save_LIBS"
8143
8144 fi
8145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8146   echo "$ac_t""yes" 1>&6
8147   libm="-lm"
8148 else
8149   echo "$ac_t""no" 1>&6
8150 fi
8151
8152   ac_save_LIBS="$LIBS"
8153   LIBS="$LIBS $libm"
8154
8155     
8156   
8157   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
8158 echo "configure:8159: checking for isinf declaration" >&5
8159   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
8160     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
8161   echo $ac_n "(cached) $ac_c" 1>&6
8162 else
8163   
8164       
8165       ac_ext=C
8166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8167 ac_cpp='$CXXCPP $CPPFLAGS'
8168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8170 cross_compiling=$ac_cv_prog_cxx_cross
8171
8172       cat > conftest.$ac_ext <<EOF
8173 #line 8174 "configure"
8174 #include "confdefs.h"
8175 #include <math.h>
8176                       #ifdef HAVE_IEEEFP_H
8177                       #include <ieeefp.h>
8178                       #endif
8179                      
8180 int main() {
8181  isinf(0);
8182 ; return 0; }
8183 EOF
8184 if { (eval echo configure:8185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8185   rm -rf conftest*
8186   glibcpp_cv_func_isinf_use=yes
8187 else
8188   echo "configure: failed program was:" >&5
8189   cat conftest.$ac_ext >&5
8190   rm -rf conftest*
8191   glibcpp_cv_func_isinf_use=no
8192 fi
8193 rm -f conftest*
8194       ac_ext=c
8195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8196 ac_cpp='$CPP $CPPFLAGS'
8197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8199 cross_compiling=$ac_cv_prog_cc_cross
8200
8201     
8202 fi
8203
8204   fi
8205   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
8206
8207   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
8208     for ac_func in isinf
8209 do
8210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8211 echo "configure:8212: checking for $ac_func" >&5
8212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8213   echo $ac_n "(cached) $ac_c" 1>&6
8214 else
8215   cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* System header to define __stub macros and hopefully few prototypes,
8219     which can conflict with char $ac_func(); below.  */
8220 #include <assert.h>
8221 /* Override any gcc2 internal prototype to avoid an error.  */
8222 /* We use char because int might match the return type of a gcc2
8223     builtin and then its argument prototype would still apply.  */
8224 char $ac_func();
8225
8226 int main() {
8227
8228 /* The GNU C library defines this for functions which it implements
8229     to always fail with ENOSYS.  Some functions are actually named
8230     something starting with __ and the normal name is an alias.  */
8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8232 choke me
8233 #else
8234 $ac_func();
8235 #endif
8236
8237 ; return 0; }
8238 EOF
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240   rm -rf conftest*
8241   eval "ac_cv_func_$ac_func=yes"
8242 else
8243   echo "configure: failed program was:" >&5
8244   cat conftest.$ac_ext >&5
8245   rm -rf conftest*
8246   eval "ac_cv_func_$ac_func=no"
8247 fi
8248 rm -f conftest*
8249 fi
8250
8251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8252   echo "$ac_t""yes" 1>&6
8253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8254   cat >> confdefs.h <<EOF
8255 #define $ac_tr_func 1
8256 EOF
8257  
8258 else
8259   echo "$ac_t""no" 1>&6
8260 fi
8261 done
8262     
8263   else
8264     
8265   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
8266 echo "configure:8267: checking for _isinf declaration" >&5
8267   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
8268     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
8269   echo $ac_n "(cached) $ac_c" 1>&6
8270 else
8271   
8272       
8273       ac_ext=C
8274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8275 ac_cpp='$CXXCPP $CPPFLAGS'
8276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8278 cross_compiling=$ac_cv_prog_cxx_cross
8279
8280       cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure"
8282 #include "confdefs.h"
8283 #include <math.h>
8284                       #ifdef HAVE_IEEEFP_H
8285                       #include <ieeefp.h>
8286                       #endif
8287                      
8288 int main() {
8289  _isinf(0);
8290 ; return 0; }
8291 EOF
8292 if { (eval echo configure:8293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8293   rm -rf conftest*
8294   glibcpp_cv_func__isinf_use=yes
8295 else
8296   echo "configure: failed program was:" >&5
8297   cat conftest.$ac_ext >&5
8298   rm -rf conftest*
8299   glibcpp_cv_func__isinf_use=no
8300 fi
8301 rm -f conftest*
8302       ac_ext=c
8303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8304 ac_cpp='$CPP $CPPFLAGS'
8305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8306 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8307 cross_compiling=$ac_cv_prog_cc_cross
8308
8309     
8310 fi
8311
8312   fi
8313   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
8314
8315     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
8316       for ac_func in _isinf
8317 do
8318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8319 echo "configure:8320: checking for $ac_func" >&5
8320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8321   echo $ac_n "(cached) $ac_c" 1>&6
8322 else
8323   cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* System header to define __stub macros and hopefully few prototypes,
8327     which can conflict with char $ac_func(); below.  */
8328 #include <assert.h>
8329 /* Override any gcc2 internal prototype to avoid an error.  */
8330 /* We use char because int might match the return type of a gcc2
8331     builtin and then its argument prototype would still apply.  */
8332 char $ac_func();
8333
8334 int main() {
8335
8336 /* The GNU C library defines this for functions which it implements
8337     to always fail with ENOSYS.  Some functions are actually named
8338     something starting with __ and the normal name is an alias.  */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8340 choke me
8341 #else
8342 $ac_func();
8343 #endif
8344
8345 ; return 0; }
8346 EOF
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8348   rm -rf conftest*
8349   eval "ac_cv_func_$ac_func=yes"
8350 else
8351   echo "configure: failed program was:" >&5
8352   cat conftest.$ac_ext >&5
8353   rm -rf conftest*
8354   eval "ac_cv_func_$ac_func=no"
8355 fi
8356 rm -f conftest*
8357 fi
8358
8359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8360   echo "$ac_t""yes" 1>&6
8361     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8362   cat >> confdefs.h <<EOF
8363 #define $ac_tr_func 1
8364 EOF
8365  
8366 else
8367   echo "$ac_t""no" 1>&6
8368 fi
8369 done
8370     
8371     fi
8372   fi
8373
8374   
8375   
8376   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
8377 echo "configure:8378: checking for isnan declaration" >&5
8378   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
8379     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
8380   echo $ac_n "(cached) $ac_c" 1>&6
8381 else
8382   
8383       
8384       ac_ext=C
8385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8386 ac_cpp='$CXXCPP $CPPFLAGS'
8387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8389 cross_compiling=$ac_cv_prog_cxx_cross
8390
8391       cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 #include <math.h>
8395                       #ifdef HAVE_IEEEFP_H
8396                       #include <ieeefp.h>
8397                       #endif
8398                      
8399 int main() {
8400  isnan(0);
8401 ; return 0; }
8402 EOF
8403 if { (eval echo configure:8404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8404   rm -rf conftest*
8405   glibcpp_cv_func_isnan_use=yes
8406 else
8407   echo "configure: failed program was:" >&5
8408   cat conftest.$ac_ext >&5
8409   rm -rf conftest*
8410   glibcpp_cv_func_isnan_use=no
8411 fi
8412 rm -f conftest*
8413       ac_ext=c
8414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8415 ac_cpp='$CPP $CPPFLAGS'
8416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8418 cross_compiling=$ac_cv_prog_cc_cross
8419
8420     
8421 fi
8422
8423   fi
8424   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
8425
8426   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
8427     for ac_func in isnan
8428 do
8429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8430 echo "configure:8431: checking for $ac_func" >&5
8431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8432   echo $ac_n "(cached) $ac_c" 1>&6
8433 else
8434   cat > conftest.$ac_ext <<EOF
8435 #line 8436 "configure"
8436 #include "confdefs.h"
8437 /* System header to define __stub macros and hopefully few prototypes,
8438     which can conflict with char $ac_func(); below.  */
8439 #include <assert.h>
8440 /* Override any gcc2 internal prototype to avoid an error.  */
8441 /* We use char because int might match the return type of a gcc2
8442     builtin and then its argument prototype would still apply.  */
8443 char $ac_func();
8444
8445 int main() {
8446
8447 /* The GNU C library defines this for functions which it implements
8448     to always fail with ENOSYS.  Some functions are actually named
8449     something starting with __ and the normal name is an alias.  */
8450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8451 choke me
8452 #else
8453 $ac_func();
8454 #endif
8455
8456 ; return 0; }
8457 EOF
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8459   rm -rf conftest*
8460   eval "ac_cv_func_$ac_func=yes"
8461 else
8462   echo "configure: failed program was:" >&5
8463   cat conftest.$ac_ext >&5
8464   rm -rf conftest*
8465   eval "ac_cv_func_$ac_func=no"
8466 fi
8467 rm -f conftest*
8468 fi
8469
8470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8471   echo "$ac_t""yes" 1>&6
8472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8473   cat >> confdefs.h <<EOF
8474 #define $ac_tr_func 1
8475 EOF
8476  
8477 else
8478   echo "$ac_t""no" 1>&6
8479 fi
8480 done
8481     
8482   else
8483     
8484   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
8485 echo "configure:8486: checking for _isnan declaration" >&5
8486   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
8487     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
8488   echo $ac_n "(cached) $ac_c" 1>&6
8489 else
8490   
8491       
8492       ac_ext=C
8493 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8494 ac_cpp='$CXXCPP $CPPFLAGS'
8495 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8496 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8497 cross_compiling=$ac_cv_prog_cxx_cross
8498
8499       cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure"
8501 #include "confdefs.h"
8502 #include <math.h>
8503                       #ifdef HAVE_IEEEFP_H
8504                       #include <ieeefp.h>
8505                       #endif
8506                      
8507 int main() {
8508  _isnan(0);
8509 ; return 0; }
8510 EOF
8511 if { (eval echo configure:8512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8512   rm -rf conftest*
8513   glibcpp_cv_func__isnan_use=yes
8514 else
8515   echo "configure: failed program was:" >&5
8516   cat conftest.$ac_ext >&5
8517   rm -rf conftest*
8518   glibcpp_cv_func__isnan_use=no
8519 fi
8520 rm -f conftest*
8521       ac_ext=c
8522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8526 cross_compiling=$ac_cv_prog_cc_cross
8527
8528     
8529 fi
8530
8531   fi
8532   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
8533
8534     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
8535       for ac_func in _isnan
8536 do
8537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8538 echo "configure:8539: checking for $ac_func" >&5
8539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8540   echo $ac_n "(cached) $ac_c" 1>&6
8541 else
8542   cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 /* System header to define __stub macros and hopefully few prototypes,
8546     which can conflict with char $ac_func(); below.  */
8547 #include <assert.h>
8548 /* Override any gcc2 internal prototype to avoid an error.  */
8549 /* We use char because int might match the return type of a gcc2
8550     builtin and then its argument prototype would still apply.  */
8551 char $ac_func();
8552
8553 int main() {
8554
8555 /* The GNU C library defines this for functions which it implements
8556     to always fail with ENOSYS.  Some functions are actually named
8557     something starting with __ and the normal name is an alias.  */
8558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8559 choke me
8560 #else
8561 $ac_func();
8562 #endif
8563
8564 ; return 0; }
8565 EOF
8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8567   rm -rf conftest*
8568   eval "ac_cv_func_$ac_func=yes"
8569 else
8570   echo "configure: failed program was:" >&5
8571   cat conftest.$ac_ext >&5
8572   rm -rf conftest*
8573   eval "ac_cv_func_$ac_func=no"
8574 fi
8575 rm -f conftest*
8576 fi
8577
8578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8579   echo "$ac_t""yes" 1>&6
8580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8581   cat >> confdefs.h <<EOF
8582 #define $ac_tr_func 1
8583 EOF
8584  
8585 else
8586   echo "$ac_t""no" 1>&6
8587 fi
8588 done
8589     
8590     fi
8591   fi
8592
8593   
8594   
8595   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
8596 echo "configure:8597: checking for finite declaration" >&5
8597   if test x${glibcpp_cv_func_finite_use+set} != xset; then
8598     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
8599   echo $ac_n "(cached) $ac_c" 1>&6
8600 else
8601   
8602       
8603       ac_ext=C
8604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8605 ac_cpp='$CXXCPP $CPPFLAGS'
8606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8608 cross_compiling=$ac_cv_prog_cxx_cross
8609
8610       cat > conftest.$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8613 #include <math.h>
8614                       #ifdef HAVE_IEEEFP_H
8615                       #include <ieeefp.h>
8616                       #endif
8617                      
8618 int main() {
8619  finite(0);
8620 ; return 0; }
8621 EOF
8622 if { (eval echo configure:8623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8623   rm -rf conftest*
8624   glibcpp_cv_func_finite_use=yes
8625 else
8626   echo "configure: failed program was:" >&5
8627   cat conftest.$ac_ext >&5
8628   rm -rf conftest*
8629   glibcpp_cv_func_finite_use=no
8630 fi
8631 rm -f conftest*
8632       ac_ext=c
8633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8634 ac_cpp='$CPP $CPPFLAGS'
8635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8637 cross_compiling=$ac_cv_prog_cc_cross
8638
8639     
8640 fi
8641
8642   fi
8643   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
8644
8645   if test x$glibcpp_cv_func_finite_use = x"yes"; then
8646     for ac_func in finite
8647 do
8648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8649 echo "configure:8650: checking for $ac_func" >&5
8650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8651   echo $ac_n "(cached) $ac_c" 1>&6
8652 else
8653   cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 /* System header to define __stub macros and hopefully few prototypes,
8657     which can conflict with char $ac_func(); below.  */
8658 #include <assert.h>
8659 /* Override any gcc2 internal prototype to avoid an error.  */
8660 /* We use char because int might match the return type of a gcc2
8661     builtin and then its argument prototype would still apply.  */
8662 char $ac_func();
8663
8664 int main() {
8665
8666 /* The GNU C library defines this for functions which it implements
8667     to always fail with ENOSYS.  Some functions are actually named
8668     something starting with __ and the normal name is an alias.  */
8669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8670 choke me
8671 #else
8672 $ac_func();
8673 #endif
8674
8675 ; return 0; }
8676 EOF
8677 if { (eval echo configure:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678   rm -rf conftest*
8679   eval "ac_cv_func_$ac_func=yes"
8680 else
8681   echo "configure: failed program was:" >&5
8682   cat conftest.$ac_ext >&5
8683   rm -rf conftest*
8684   eval "ac_cv_func_$ac_func=no"
8685 fi
8686 rm -f conftest*
8687 fi
8688
8689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8690   echo "$ac_t""yes" 1>&6
8691     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8692   cat >> confdefs.h <<EOF
8693 #define $ac_tr_func 1
8694 EOF
8695  
8696 else
8697   echo "$ac_t""no" 1>&6
8698 fi
8699 done
8700     
8701   else
8702     
8703   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
8704 echo "configure:8705: checking for _finite declaration" >&5
8705   if test x${glibcpp_cv_func__finite_use+set} != xset; then
8706     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
8707   echo $ac_n "(cached) $ac_c" 1>&6
8708 else
8709   
8710       
8711       ac_ext=C
8712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8713 ac_cpp='$CXXCPP $CPPFLAGS'
8714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8716 cross_compiling=$ac_cv_prog_cxx_cross
8717
8718       cat > conftest.$ac_ext <<EOF
8719 #line 8720 "configure"
8720 #include "confdefs.h"
8721 #include <math.h>
8722                       #ifdef HAVE_IEEEFP_H
8723                       #include <ieeefp.h>
8724                       #endif
8725                      
8726 int main() {
8727  _finite(0);
8728 ; return 0; }
8729 EOF
8730 if { (eval echo configure:8731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8731   rm -rf conftest*
8732   glibcpp_cv_func__finite_use=yes
8733 else
8734   echo "configure: failed program was:" >&5
8735   cat conftest.$ac_ext >&5
8736   rm -rf conftest*
8737   glibcpp_cv_func__finite_use=no
8738 fi
8739 rm -f conftest*
8740       ac_ext=c
8741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8742 ac_cpp='$CPP $CPPFLAGS'
8743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8745 cross_compiling=$ac_cv_prog_cc_cross
8746
8747     
8748 fi
8749
8750   fi
8751   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
8752
8753     if test x$glibcpp_cv_func__finite_use = x"yes"; then
8754       for ac_func in _finite
8755 do
8756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8757 echo "configure:8758: checking for $ac_func" >&5
8758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8759   echo $ac_n "(cached) $ac_c" 1>&6
8760 else
8761   cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 /* System header to define __stub macros and hopefully few prototypes,
8765     which can conflict with char $ac_func(); below.  */
8766 #include <assert.h>
8767 /* Override any gcc2 internal prototype to avoid an error.  */
8768 /* We use char because int might match the return type of a gcc2
8769     builtin and then its argument prototype would still apply.  */
8770 char $ac_func();
8771
8772 int main() {
8773
8774 /* The GNU C library defines this for functions which it implements
8775     to always fail with ENOSYS.  Some functions are actually named
8776     something starting with __ and the normal name is an alias.  */
8777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8778 choke me
8779 #else
8780 $ac_func();
8781 #endif
8782
8783 ; return 0; }
8784 EOF
8785 if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8786   rm -rf conftest*
8787   eval "ac_cv_func_$ac_func=yes"
8788 else
8789   echo "configure: failed program was:" >&5
8790   cat conftest.$ac_ext >&5
8791   rm -rf conftest*
8792   eval "ac_cv_func_$ac_func=no"
8793 fi
8794 rm -f conftest*
8795 fi
8796
8797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8798   echo "$ac_t""yes" 1>&6
8799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8800   cat >> confdefs.h <<EOF
8801 #define $ac_tr_func 1
8802 EOF
8803  
8804 else
8805   echo "$ac_t""no" 1>&6
8806 fi
8807 done
8808     
8809     fi
8810   fi
8811
8812   
8813   
8814   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
8815 echo "configure:8816: checking for copysign declaration" >&5
8816   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
8817     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8818   echo $ac_n "(cached) $ac_c" 1>&6
8819 else
8820   
8821       
8822       ac_ext=C
8823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8824 ac_cpp='$CXXCPP $CPPFLAGS'
8825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8827 cross_compiling=$ac_cv_prog_cxx_cross
8828
8829       cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 #include <math.h>
8833 int main() {
8834  copysign(0, 0);
8835 ; return 0; }
8836 EOF
8837 if { (eval echo configure:8838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8838   rm -rf conftest*
8839   glibcpp_cv_func_copysign_use=yes
8840 else
8841   echo "configure: failed program was:" >&5
8842   cat conftest.$ac_ext >&5
8843   rm -rf conftest*
8844   glibcpp_cv_func_copysign_use=no
8845 fi
8846 rm -f conftest*
8847       ac_ext=c
8848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8849 ac_cpp='$CPP $CPPFLAGS'
8850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8852 cross_compiling=$ac_cv_prog_cc_cross
8853
8854     
8855 fi
8856
8857   fi
8858   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
8859
8860   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
8861     for ac_func in copysign
8862 do
8863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8864 echo "configure:8865: checking for $ac_func" >&5
8865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8866   echo $ac_n "(cached) $ac_c" 1>&6
8867 else
8868   cat > conftest.$ac_ext <<EOF
8869 #line 8870 "configure"
8870 #include "confdefs.h"
8871 /* System header to define __stub macros and hopefully few prototypes,
8872     which can conflict with char $ac_func(); below.  */
8873 #include <assert.h>
8874 /* Override any gcc2 internal prototype to avoid an error.  */
8875 /* We use char because int might match the return type of a gcc2
8876     builtin and then its argument prototype would still apply.  */
8877 char $ac_func();
8878
8879 int main() {
8880
8881 /* The GNU C library defines this for functions which it implements
8882     to always fail with ENOSYS.  Some functions are actually named
8883     something starting with __ and the normal name is an alias.  */
8884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8885 choke me
8886 #else
8887 $ac_func();
8888 #endif
8889
8890 ; return 0; }
8891 EOF
8892 if { (eval echo configure:8893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8893   rm -rf conftest*
8894   eval "ac_cv_func_$ac_func=yes"
8895 else
8896   echo "configure: failed program was:" >&5
8897   cat conftest.$ac_ext >&5
8898   rm -rf conftest*
8899   eval "ac_cv_func_$ac_func=no"
8900 fi
8901 rm -f conftest*
8902 fi
8903
8904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8905   echo "$ac_t""yes" 1>&6
8906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8907   cat >> confdefs.h <<EOF
8908 #define $ac_tr_func 1
8909 EOF
8910  
8911 else
8912   echo "$ac_t""no" 1>&6
8913 fi
8914 done
8915     
8916   else
8917     
8918   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
8919 echo "configure:8920: checking for _copysign declaration" >&5
8920   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
8921     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
8922   echo $ac_n "(cached) $ac_c" 1>&6
8923 else
8924   
8925       
8926       ac_ext=C
8927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8928 ac_cpp='$CXXCPP $CPPFLAGS'
8929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8931 cross_compiling=$ac_cv_prog_cxx_cross
8932
8933       cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <math.h>
8937 int main() {
8938  _copysign(0, 0);
8939 ; return 0; }
8940 EOF
8941 if { (eval echo configure:8942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8942   rm -rf conftest*
8943   glibcpp_cv_func__copysign_use=yes
8944 else
8945   echo "configure: failed program was:" >&5
8946   cat conftest.$ac_ext >&5
8947   rm -rf conftest*
8948   glibcpp_cv_func__copysign_use=no
8949 fi
8950 rm -f conftest*
8951       ac_ext=c
8952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8953 ac_cpp='$CPP $CPPFLAGS'
8954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8956 cross_compiling=$ac_cv_prog_cc_cross
8957
8958     
8959 fi
8960
8961   fi
8962   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
8963
8964     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
8965       for ac_func in _copysign
8966 do
8967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8968 echo "configure:8969: checking for $ac_func" >&5
8969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8970   echo $ac_n "(cached) $ac_c" 1>&6
8971 else
8972   cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 /* System header to define __stub macros and hopefully few prototypes,
8976     which can conflict with char $ac_func(); below.  */
8977 #include <assert.h>
8978 /* Override any gcc2 internal prototype to avoid an error.  */
8979 /* We use char because int might match the return type of a gcc2
8980     builtin and then its argument prototype would still apply.  */
8981 char $ac_func();
8982
8983 int main() {
8984
8985 /* The GNU C library defines this for functions which it implements
8986     to always fail with ENOSYS.  Some functions are actually named
8987     something starting with __ and the normal name is an alias.  */
8988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8989 choke me
8990 #else
8991 $ac_func();
8992 #endif
8993
8994 ; return 0; }
8995 EOF
8996 if { (eval echo configure:8997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8997   rm -rf conftest*
8998   eval "ac_cv_func_$ac_func=yes"
8999 else
9000   echo "configure: failed program was:" >&5
9001   cat conftest.$ac_ext >&5
9002   rm -rf conftest*
9003   eval "ac_cv_func_$ac_func=no"
9004 fi
9005 rm -f conftest*
9006 fi
9007
9008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9009   echo "$ac_t""yes" 1>&6
9010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9011   cat >> confdefs.h <<EOF
9012 #define $ac_tr_func 1
9013 EOF
9014  
9015 else
9016   echo "$ac_t""no" 1>&6
9017 fi
9018 done
9019     
9020     fi
9021   fi
9022
9023   
9024   
9025   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
9026 echo "configure:9027: checking for sincos declaration" >&5
9027   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
9028     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
9029   echo $ac_n "(cached) $ac_c" 1>&6
9030 else
9031   
9032       
9033       ac_ext=C
9034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9035 ac_cpp='$CXXCPP $CPPFLAGS'
9036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9038 cross_compiling=$ac_cv_prog_cxx_cross
9039
9040       cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 #include <math.h>
9044 int main() {
9045  sincos(0, 0, 0);
9046 ; return 0; }
9047 EOF
9048 if { (eval echo configure:9049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9049   rm -rf conftest*
9050   glibcpp_cv_func_sincos_use=yes
9051 else
9052   echo "configure: failed program was:" >&5
9053   cat conftest.$ac_ext >&5
9054   rm -rf conftest*
9055   glibcpp_cv_func_sincos_use=no
9056 fi
9057 rm -f conftest*
9058       ac_ext=c
9059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9060 ac_cpp='$CPP $CPPFLAGS'
9061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9063 cross_compiling=$ac_cv_prog_cc_cross
9064
9065     
9066 fi
9067
9068   fi
9069   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
9070
9071   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
9072     for ac_func in sincos
9073 do
9074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9075 echo "configure:9076: checking for $ac_func" >&5
9076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9077   echo $ac_n "(cached) $ac_c" 1>&6
9078 else
9079   cat > conftest.$ac_ext <<EOF
9080 #line 9081 "configure"
9081 #include "confdefs.h"
9082 /* System header to define __stub macros and hopefully few prototypes,
9083     which can conflict with char $ac_func(); below.  */
9084 #include <assert.h>
9085 /* Override any gcc2 internal prototype to avoid an error.  */
9086 /* We use char because int might match the return type of a gcc2
9087     builtin and then its argument prototype would still apply.  */
9088 char $ac_func();
9089
9090 int main() {
9091
9092 /* The GNU C library defines this for functions which it implements
9093     to always fail with ENOSYS.  Some functions are actually named
9094     something starting with __ and the normal name is an alias.  */
9095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9096 choke me
9097 #else
9098 $ac_func();
9099 #endif
9100
9101 ; return 0; }
9102 EOF
9103 if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9104   rm -rf conftest*
9105   eval "ac_cv_func_$ac_func=yes"
9106 else
9107   echo "configure: failed program was:" >&5
9108   cat conftest.$ac_ext >&5
9109   rm -rf conftest*
9110   eval "ac_cv_func_$ac_func=no"
9111 fi
9112 rm -f conftest*
9113 fi
9114
9115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9116   echo "$ac_t""yes" 1>&6
9117     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9118   cat >> confdefs.h <<EOF
9119 #define $ac_tr_func 1
9120 EOF
9121  
9122 else
9123   echo "$ac_t""no" 1>&6
9124 fi
9125 done
9126     
9127   else
9128     
9129   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
9130 echo "configure:9131: checking for _sincos declaration" >&5
9131   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
9132     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
9133   echo $ac_n "(cached) $ac_c" 1>&6
9134 else
9135   
9136       
9137       ac_ext=C
9138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9139 ac_cpp='$CXXCPP $CPPFLAGS'
9140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9142 cross_compiling=$ac_cv_prog_cxx_cross
9143
9144       cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 #include <math.h>
9148 int main() {
9149  _sincos(0, 0, 0);
9150 ; return 0; }
9151 EOF
9152 if { (eval echo configure:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9153   rm -rf conftest*
9154   glibcpp_cv_func__sincos_use=yes
9155 else
9156   echo "configure: failed program was:" >&5
9157   cat conftest.$ac_ext >&5
9158   rm -rf conftest*
9159   glibcpp_cv_func__sincos_use=no
9160 fi
9161 rm -f conftest*
9162       ac_ext=c
9163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9164 ac_cpp='$CPP $CPPFLAGS'
9165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9167 cross_compiling=$ac_cv_prog_cc_cross
9168
9169     
9170 fi
9171
9172   fi
9173   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
9174
9175     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
9176       for ac_func in _sincos
9177 do
9178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9179 echo "configure:9180: checking for $ac_func" >&5
9180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9181   echo $ac_n "(cached) $ac_c" 1>&6
9182 else
9183   cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9186 /* System header to define __stub macros and hopefully few prototypes,
9187     which can conflict with char $ac_func(); below.  */
9188 #include <assert.h>
9189 /* Override any gcc2 internal prototype to avoid an error.  */
9190 /* We use char because int might match the return type of a gcc2
9191     builtin and then its argument prototype would still apply.  */
9192 char $ac_func();
9193
9194 int main() {
9195
9196 /* The GNU C library defines this for functions which it implements
9197     to always fail with ENOSYS.  Some functions are actually named
9198     something starting with __ and the normal name is an alias.  */
9199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9200 choke me
9201 #else
9202 $ac_func();
9203 #endif
9204
9205 ; return 0; }
9206 EOF
9207 if { (eval echo configure:9208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9208   rm -rf conftest*
9209   eval "ac_cv_func_$ac_func=yes"
9210 else
9211   echo "configure: failed program was:" >&5
9212   cat conftest.$ac_ext >&5
9213   rm -rf conftest*
9214   eval "ac_cv_func_$ac_func=no"
9215 fi
9216 rm -f conftest*
9217 fi
9218
9219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9220   echo "$ac_t""yes" 1>&6
9221     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9222   cat >> confdefs.h <<EOF
9223 #define $ac_tr_func 1
9224 EOF
9225  
9226 else
9227   echo "$ac_t""no" 1>&6
9228 fi
9229 done
9230     
9231     fi
9232   fi
9233
9234   
9235   
9236   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
9237 echo "configure:9238: checking for fpclass declaration" >&5
9238   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
9239     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
9240   echo $ac_n "(cached) $ac_c" 1>&6
9241 else
9242   
9243       
9244       ac_ext=C
9245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9246 ac_cpp='$CXXCPP $CPPFLAGS'
9247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9249 cross_compiling=$ac_cv_prog_cxx_cross
9250
9251       cat > conftest.$ac_ext <<EOF
9252 #line 9253 "configure"
9253 #include "confdefs.h"
9254 #include <math.h>
9255                       #ifdef HAVE_IEEEFP_H
9256                       #include <ieeefp.h>
9257                       #endif
9258                      
9259 int main() {
9260  fpclass(0);
9261 ; return 0; }
9262 EOF
9263 if { (eval echo configure:9264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9264   rm -rf conftest*
9265   glibcpp_cv_func_fpclass_use=yes
9266 else
9267   echo "configure: failed program was:" >&5
9268   cat conftest.$ac_ext >&5
9269   rm -rf conftest*
9270   glibcpp_cv_func_fpclass_use=no
9271 fi
9272 rm -f conftest*
9273       ac_ext=c
9274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9275 ac_cpp='$CPP $CPPFLAGS'
9276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9278 cross_compiling=$ac_cv_prog_cc_cross
9279
9280     
9281 fi
9282
9283   fi
9284   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
9285
9286   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
9287     for ac_func in fpclass
9288 do
9289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9290 echo "configure:9291: checking for $ac_func" >&5
9291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9292   echo $ac_n "(cached) $ac_c" 1>&6
9293 else
9294   cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9297 /* System header to define __stub macros and hopefully few prototypes,
9298     which can conflict with char $ac_func(); below.  */
9299 #include <assert.h>
9300 /* Override any gcc2 internal prototype to avoid an error.  */
9301 /* We use char because int might match the return type of a gcc2
9302     builtin and then its argument prototype would still apply.  */
9303 char $ac_func();
9304
9305 int main() {
9306
9307 /* The GNU C library defines this for functions which it implements
9308     to always fail with ENOSYS.  Some functions are actually named
9309     something starting with __ and the normal name is an alias.  */
9310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9311 choke me
9312 #else
9313 $ac_func();
9314 #endif
9315
9316 ; return 0; }
9317 EOF
9318 if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9319   rm -rf conftest*
9320   eval "ac_cv_func_$ac_func=yes"
9321 else
9322   echo "configure: failed program was:" >&5
9323   cat conftest.$ac_ext >&5
9324   rm -rf conftest*
9325   eval "ac_cv_func_$ac_func=no"
9326 fi
9327 rm -f conftest*
9328 fi
9329
9330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9331   echo "$ac_t""yes" 1>&6
9332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9333   cat >> confdefs.h <<EOF
9334 #define $ac_tr_func 1
9335 EOF
9336  
9337 else
9338   echo "$ac_t""no" 1>&6
9339 fi
9340 done
9341     
9342   else
9343     
9344   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
9345 echo "configure:9346: checking for _fpclass declaration" >&5
9346   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
9347     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
9348   echo $ac_n "(cached) $ac_c" 1>&6
9349 else
9350   
9351       
9352       ac_ext=C
9353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9354 ac_cpp='$CXXCPP $CPPFLAGS'
9355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9357 cross_compiling=$ac_cv_prog_cxx_cross
9358
9359       cat > conftest.$ac_ext <<EOF
9360 #line 9361 "configure"
9361 #include "confdefs.h"
9362 #include <math.h>
9363                       #ifdef HAVE_IEEEFP_H
9364                       #include <ieeefp.h>
9365                       #endif
9366                      
9367 int main() {
9368  _fpclass(0);
9369 ; return 0; }
9370 EOF
9371 if { (eval echo configure:9372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9372   rm -rf conftest*
9373   glibcpp_cv_func__fpclass_use=yes
9374 else
9375   echo "configure: failed program was:" >&5
9376   cat conftest.$ac_ext >&5
9377   rm -rf conftest*
9378   glibcpp_cv_func__fpclass_use=no
9379 fi
9380 rm -f conftest*
9381       ac_ext=c
9382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9383 ac_cpp='$CPP $CPPFLAGS'
9384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9386 cross_compiling=$ac_cv_prog_cc_cross
9387
9388     
9389 fi
9390
9391   fi
9392   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
9393
9394     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
9395       for ac_func in _fpclass
9396 do
9397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9398 echo "configure:9399: checking for $ac_func" >&5
9399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9400   echo $ac_n "(cached) $ac_c" 1>&6
9401 else
9402   cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 /* System header to define __stub macros and hopefully few prototypes,
9406     which can conflict with char $ac_func(); below.  */
9407 #include <assert.h>
9408 /* Override any gcc2 internal prototype to avoid an error.  */
9409 /* We use char because int might match the return type of a gcc2
9410     builtin and then its argument prototype would still apply.  */
9411 char $ac_func();
9412
9413 int main() {
9414
9415 /* The GNU C library defines this for functions which it implements
9416     to always fail with ENOSYS.  Some functions are actually named
9417     something starting with __ and the normal name is an alias.  */
9418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9419 choke me
9420 #else
9421 $ac_func();
9422 #endif
9423
9424 ; return 0; }
9425 EOF
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9427   rm -rf conftest*
9428   eval "ac_cv_func_$ac_func=yes"
9429 else
9430   echo "configure: failed program was:" >&5
9431   cat conftest.$ac_ext >&5
9432   rm -rf conftest*
9433   eval "ac_cv_func_$ac_func=no"
9434 fi
9435 rm -f conftest*
9436 fi
9437
9438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9439   echo "$ac_t""yes" 1>&6
9440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9441   cat >> confdefs.h <<EOF
9442 #define $ac_tr_func 1
9443 EOF
9444  
9445 else
9446   echo "$ac_t""no" 1>&6
9447 fi
9448 done
9449     
9450     fi
9451   fi
9452
9453   
9454   
9455   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
9456 echo "configure:9457: checking for qfpclass declaration" >&5
9457   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
9458     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
9459   echo $ac_n "(cached) $ac_c" 1>&6
9460 else
9461   
9462       
9463       ac_ext=C
9464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9465 ac_cpp='$CXXCPP $CPPFLAGS'
9466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9468 cross_compiling=$ac_cv_prog_cxx_cross
9469
9470       cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #include <math.h>
9474                       #ifdef HAVE_IEEEFP_H
9475                       #include <ieeefp.h>
9476                       #endif
9477                      
9478 int main() {
9479  qfpclass(0);
9480 ; return 0; }
9481 EOF
9482 if { (eval echo configure:9483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9483   rm -rf conftest*
9484   glibcpp_cv_func_qfpclass_use=yes
9485 else
9486   echo "configure: failed program was:" >&5
9487   cat conftest.$ac_ext >&5
9488   rm -rf conftest*
9489   glibcpp_cv_func_qfpclass_use=no
9490 fi
9491 rm -f conftest*
9492       ac_ext=c
9493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9494 ac_cpp='$CPP $CPPFLAGS'
9495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9497 cross_compiling=$ac_cv_prog_cc_cross
9498
9499     
9500 fi
9501
9502   fi
9503   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
9504
9505   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
9506     for ac_func in qfpclass
9507 do
9508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9509 echo "configure:9510: checking for $ac_func" >&5
9510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9511   echo $ac_n "(cached) $ac_c" 1>&6
9512 else
9513   cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 /* System header to define __stub macros and hopefully few prototypes,
9517     which can conflict with char $ac_func(); below.  */
9518 #include <assert.h>
9519 /* Override any gcc2 internal prototype to avoid an error.  */
9520 /* We use char because int might match the return type of a gcc2
9521     builtin and then its argument prototype would still apply.  */
9522 char $ac_func();
9523
9524 int main() {
9525
9526 /* The GNU C library defines this for functions which it implements
9527     to always fail with ENOSYS.  Some functions are actually named
9528     something starting with __ and the normal name is an alias.  */
9529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9530 choke me
9531 #else
9532 $ac_func();
9533 #endif
9534
9535 ; return 0; }
9536 EOF
9537 if { (eval echo configure:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9538   rm -rf conftest*
9539   eval "ac_cv_func_$ac_func=yes"
9540 else
9541   echo "configure: failed program was:" >&5
9542   cat conftest.$ac_ext >&5
9543   rm -rf conftest*
9544   eval "ac_cv_func_$ac_func=no"
9545 fi
9546 rm -f conftest*
9547 fi
9548
9549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9550   echo "$ac_t""yes" 1>&6
9551     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9552   cat >> confdefs.h <<EOF
9553 #define $ac_tr_func 1
9554 EOF
9555  
9556 else
9557   echo "$ac_t""no" 1>&6
9558 fi
9559 done
9560     
9561   else
9562     
9563   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
9564 echo "configure:9565: checking for _qfpclass declaration" >&5
9565   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
9566     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
9567   echo $ac_n "(cached) $ac_c" 1>&6
9568 else
9569   
9570       
9571       ac_ext=C
9572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9573 ac_cpp='$CXXCPP $CPPFLAGS'
9574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9576 cross_compiling=$ac_cv_prog_cxx_cross
9577
9578       cat > conftest.$ac_ext <<EOF
9579 #line 9580 "configure"
9580 #include "confdefs.h"
9581 #include <math.h>
9582                       #ifdef HAVE_IEEEFP_H
9583                       #include <ieeefp.h>
9584                       #endif
9585                      
9586 int main() {
9587  _qfpclass(0);
9588 ; return 0; }
9589 EOF
9590 if { (eval echo configure:9591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9591   rm -rf conftest*
9592   glibcpp_cv_func__qfpclass_use=yes
9593 else
9594   echo "configure: failed program was:" >&5
9595   cat conftest.$ac_ext >&5
9596   rm -rf conftest*
9597   glibcpp_cv_func__qfpclass_use=no
9598 fi
9599 rm -f conftest*
9600       ac_ext=c
9601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9602 ac_cpp='$CPP $CPPFLAGS'
9603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9605 cross_compiling=$ac_cv_prog_cc_cross
9606
9607     
9608 fi
9609
9610   fi
9611   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
9612
9613     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
9614       for ac_func in _qfpclass
9615 do
9616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9617 echo "configure:9618: checking for $ac_func" >&5
9618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9619   echo $ac_n "(cached) $ac_c" 1>&6
9620 else
9621   cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 /* System header to define __stub macros and hopefully few prototypes,
9625     which can conflict with char $ac_func(); below.  */
9626 #include <assert.h>
9627 /* Override any gcc2 internal prototype to avoid an error.  */
9628 /* We use char because int might match the return type of a gcc2
9629     builtin and then its argument prototype would still apply.  */
9630 char $ac_func();
9631
9632 int main() {
9633
9634 /* The GNU C library defines this for functions which it implements
9635     to always fail with ENOSYS.  Some functions are actually named
9636     something starting with __ and the normal name is an alias.  */
9637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638 choke me
9639 #else
9640 $ac_func();
9641 #endif
9642
9643 ; return 0; }
9644 EOF
9645 if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9646   rm -rf conftest*
9647   eval "ac_cv_func_$ac_func=yes"
9648 else
9649   echo "configure: failed program was:" >&5
9650   cat conftest.$ac_ext >&5
9651   rm -rf conftest*
9652   eval "ac_cv_func_$ac_func=no"
9653 fi
9654 rm -f conftest*
9655 fi
9656
9657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9658   echo "$ac_t""yes" 1>&6
9659     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9660   cat >> confdefs.h <<EOF
9661 #define $ac_tr_func 1
9662 EOF
9663  
9664 else
9665   echo "$ac_t""no" 1>&6
9666 fi
9667 done
9668     
9669     fi
9670   fi
9671
9672   
9673   
9674   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
9675 echo "configure:9676: checking for hypot declaration" >&5
9676   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
9677     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
9678   echo $ac_n "(cached) $ac_c" 1>&6
9679 else
9680   
9681       
9682       ac_ext=C
9683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9684 ac_cpp='$CXXCPP $CPPFLAGS'
9685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9687 cross_compiling=$ac_cv_prog_cxx_cross
9688
9689       cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 #include <math.h>
9693 int main() {
9694  hypot(0, 0);
9695 ; return 0; }
9696 EOF
9697 if { (eval echo configure:9698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9698   rm -rf conftest*
9699   glibcpp_cv_func_hypot_use=yes
9700 else
9701   echo "configure: failed program was:" >&5
9702   cat conftest.$ac_ext >&5
9703   rm -rf conftest*
9704   glibcpp_cv_func_hypot_use=no
9705 fi
9706 rm -f conftest*
9707       ac_ext=c
9708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9709 ac_cpp='$CPP $CPPFLAGS'
9710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9712 cross_compiling=$ac_cv_prog_cc_cross
9713
9714     
9715 fi
9716
9717   fi
9718   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
9719
9720   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
9721     for ac_func in hypot
9722 do
9723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9724 echo "configure:9725: checking for $ac_func" >&5
9725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9726   echo $ac_n "(cached) $ac_c" 1>&6
9727 else
9728   cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9731 /* System header to define __stub macros and hopefully few prototypes,
9732     which can conflict with char $ac_func(); below.  */
9733 #include <assert.h>
9734 /* Override any gcc2 internal prototype to avoid an error.  */
9735 /* We use char because int might match the return type of a gcc2
9736     builtin and then its argument prototype would still apply.  */
9737 char $ac_func();
9738
9739 int main() {
9740
9741 /* The GNU C library defines this for functions which it implements
9742     to always fail with ENOSYS.  Some functions are actually named
9743     something starting with __ and the normal name is an alias.  */
9744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9745 choke me
9746 #else
9747 $ac_func();
9748 #endif
9749
9750 ; return 0; }
9751 EOF
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9753   rm -rf conftest*
9754   eval "ac_cv_func_$ac_func=yes"
9755 else
9756   echo "configure: failed program was:" >&5
9757   cat conftest.$ac_ext >&5
9758   rm -rf conftest*
9759   eval "ac_cv_func_$ac_func=no"
9760 fi
9761 rm -f conftest*
9762 fi
9763
9764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9765   echo "$ac_t""yes" 1>&6
9766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9767   cat >> confdefs.h <<EOF
9768 #define $ac_tr_func 1
9769 EOF
9770  
9771 else
9772   echo "$ac_t""no" 1>&6
9773 fi
9774 done
9775     
9776   else
9777     
9778   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
9779 echo "configure:9780: checking for _hypot declaration" >&5
9780   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
9781     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
9782   echo $ac_n "(cached) $ac_c" 1>&6
9783 else
9784   
9785       
9786       ac_ext=C
9787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9788 ac_cpp='$CXXCPP $CPPFLAGS'
9789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9791 cross_compiling=$ac_cv_prog_cxx_cross
9792
9793       cat > conftest.$ac_ext <<EOF
9794 #line 9795 "configure"
9795 #include "confdefs.h"
9796 #include <math.h>
9797 int main() {
9798  _hypot(0, 0);
9799 ; return 0; }
9800 EOF
9801 if { (eval echo configure:9802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9802   rm -rf conftest*
9803   glibcpp_cv_func__hypot_use=yes
9804 else
9805   echo "configure: failed program was:" >&5
9806   cat conftest.$ac_ext >&5
9807   rm -rf conftest*
9808   glibcpp_cv_func__hypot_use=no
9809 fi
9810 rm -f conftest*
9811       ac_ext=c
9812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9813 ac_cpp='$CPP $CPPFLAGS'
9814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9816 cross_compiling=$ac_cv_prog_cc_cross
9817
9818     
9819 fi
9820
9821   fi
9822   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9823
9824     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9825       for ac_func in _hypot
9826 do
9827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9828 echo "configure:9829: checking for $ac_func" >&5
9829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9830   echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9832   cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 /* System header to define __stub macros and hopefully few prototypes,
9836     which can conflict with char $ac_func(); below.  */
9837 #include <assert.h>
9838 /* Override any gcc2 internal prototype to avoid an error.  */
9839 /* We use char because int might match the return type of a gcc2
9840     builtin and then its argument prototype would still apply.  */
9841 char $ac_func();
9842
9843 int main() {
9844
9845 /* The GNU C library defines this for functions which it implements
9846     to always fail with ENOSYS.  Some functions are actually named
9847     something starting with __ and the normal name is an alias.  */
9848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9849 choke me
9850 #else
9851 $ac_func();
9852 #endif
9853
9854 ; return 0; }
9855 EOF
9856 if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9857   rm -rf conftest*
9858   eval "ac_cv_func_$ac_func=yes"
9859 else
9860   echo "configure: failed program was:" >&5
9861   cat conftest.$ac_ext >&5
9862   rm -rf conftest*
9863   eval "ac_cv_func_$ac_func=no"
9864 fi
9865 rm -f conftest*
9866 fi
9867
9868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9869   echo "$ac_t""yes" 1>&6
9870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9871   cat >> confdefs.h <<EOF
9872 #define $ac_tr_func 1
9873 EOF
9874  
9875 else
9876   echo "$ac_t""no" 1>&6
9877 fi
9878 done
9879     
9880     fi
9881   fi
9882
9883
9884     
9885   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
9886 echo "configure:9887: checking for float trig functions" >&5
9887   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
9888   echo $ac_n "(cached) $ac_c" 1>&6
9889 else
9890   
9891     
9892     ac_ext=C
9893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9894 ac_cpp='$CXXCPP $CPPFLAGS'
9895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9897 cross_compiling=$ac_cv_prog_cxx_cross
9898
9899     cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <math.h>
9903 int main() {
9904  `for x in acosf asinf atanf \
9905                                           cosf sinf tanf \
9906                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
9907 ; return 0; }
9908 EOF
9909 if { (eval echo configure:9910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9910   rm -rf conftest*
9911   glibcpp_cv_func_float_trig_use=yes
9912 else
9913   echo "configure: failed program was:" >&5
9914   cat conftest.$ac_ext >&5
9915   rm -rf conftest*
9916   glibcpp_cv_func_float_trig_use=no
9917 fi
9918 rm -f conftest*
9919     ac_ext=c
9920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921 ac_cpp='$CPP $CPPFLAGS'
9922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924 cross_compiling=$ac_cv_prog_cc_cross
9925
9926 fi
9927
9928   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
9929   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
9930     for ac_func in acosf asinf atanf \
9931                                           cosf sinf tanf \
9932                                           coshf sinhf tanhf
9933 do
9934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9935 echo "configure:9936: checking for $ac_func" >&5
9936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9937   echo $ac_n "(cached) $ac_c" 1>&6
9938 else
9939   cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 /* System header to define __stub macros and hopefully few prototypes,
9943     which can conflict with char $ac_func(); below.  */
9944 #include <assert.h>
9945 /* Override any gcc2 internal prototype to avoid an error.  */
9946 /* We use char because int might match the return type of a gcc2
9947     builtin and then its argument prototype would still apply.  */
9948 char $ac_func();
9949
9950 int main() {
9951
9952 /* The GNU C library defines this for functions which it implements
9953     to always fail with ENOSYS.  Some functions are actually named
9954     something starting with __ and the normal name is an alias.  */
9955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9956 choke me
9957 #else
9958 $ac_func();
9959 #endif
9960
9961 ; return 0; }
9962 EOF
9963 if { (eval echo configure:9964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9964   rm -rf conftest*
9965   eval "ac_cv_func_$ac_func=yes"
9966 else
9967   echo "configure: failed program was:" >&5
9968   cat conftest.$ac_ext >&5
9969   rm -rf conftest*
9970   eval "ac_cv_func_$ac_func=no"
9971 fi
9972 rm -f conftest*
9973 fi
9974
9975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9976   echo "$ac_t""yes" 1>&6
9977     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9978   cat >> confdefs.h <<EOF
9979 #define $ac_tr_func 1
9980 EOF
9981  
9982 else
9983   echo "$ac_t""no" 1>&6
9984 fi
9985 done
9986
9987   fi
9988
9989   
9990   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
9991 echo "configure:9992: checking for float round functions" >&5
9992   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
9993   echo $ac_n "(cached) $ac_c" 1>&6
9994 else
9995   
9996     
9997     ac_ext=C
9998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9999 ac_cpp='$CXXCPP $CPPFLAGS'
10000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10002 cross_compiling=$ac_cv_prog_cxx_cross
10003
10004     cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 #include <math.h>
10008 int main() {
10009  `for x in ceilf floorf; do echo "$x (0);"; done` 
10010 ; return 0; }
10011 EOF
10012 if { (eval echo configure:10013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10013   rm -rf conftest*
10014   glibcpp_cv_func_float_round_use=yes
10015 else
10016   echo "configure: failed program was:" >&5
10017   cat conftest.$ac_ext >&5
10018   rm -rf conftest*
10019   glibcpp_cv_func_float_round_use=no
10020 fi
10021 rm -f conftest*
10022     ac_ext=c
10023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10024 ac_cpp='$CPP $CPPFLAGS'
10025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10027 cross_compiling=$ac_cv_prog_cc_cross
10028
10029 fi
10030
10031   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
10032   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
10033     for ac_func in ceilf floorf
10034 do
10035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10036 echo "configure:10037: checking for $ac_func" >&5
10037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10038   echo $ac_n "(cached) $ac_c" 1>&6
10039 else
10040   cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 /* System header to define __stub macros and hopefully few prototypes,
10044     which can conflict with char $ac_func(); below.  */
10045 #include <assert.h>
10046 /* Override any gcc2 internal prototype to avoid an error.  */
10047 /* We use char because int might match the return type of a gcc2
10048     builtin and then its argument prototype would still apply.  */
10049 char $ac_func();
10050
10051 int main() {
10052
10053 /* The GNU C library defines this for functions which it implements
10054     to always fail with ENOSYS.  Some functions are actually named
10055     something starting with __ and the normal name is an alias.  */
10056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10057 choke me
10058 #else
10059 $ac_func();
10060 #endif
10061
10062 ; return 0; }
10063 EOF
10064 if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10065   rm -rf conftest*
10066   eval "ac_cv_func_$ac_func=yes"
10067 else
10068   echo "configure: failed program was:" >&5
10069   cat conftest.$ac_ext >&5
10070   rm -rf conftest*
10071   eval "ac_cv_func_$ac_func=no"
10072 fi
10073 rm -f conftest*
10074 fi
10075
10076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10077   echo "$ac_t""yes" 1>&6
10078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10079   cat >> confdefs.h <<EOF
10080 #define $ac_tr_func 1
10081 EOF
10082  
10083 else
10084   echo "$ac_t""no" 1>&6
10085 fi
10086 done
10087
10088   fi
10089
10090   
10091   
10092   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
10093 echo "configure:10094: checking for isnanf declaration" >&5
10094   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
10095     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
10096   echo $ac_n "(cached) $ac_c" 1>&6
10097 else
10098   
10099       
10100       ac_ext=C
10101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10102 ac_cpp='$CXXCPP $CPPFLAGS'
10103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10105 cross_compiling=$ac_cv_prog_cxx_cross
10106
10107       cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 #include <math.h>
10111                       #ifdef HAVE_IEEEFP_H
10112                       #include <ieeefp.h>
10113                       #endif
10114                      
10115 int main() {
10116  isnanf(0);
10117 ; return 0; }
10118 EOF
10119 if { (eval echo configure:10120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10120   rm -rf conftest*
10121   glibcpp_cv_func_isnanf_use=yes
10122 else
10123   echo "configure: failed program was:" >&5
10124   cat conftest.$ac_ext >&5
10125   rm -rf conftest*
10126   glibcpp_cv_func_isnanf_use=no
10127 fi
10128 rm -f conftest*
10129       ac_ext=c
10130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10131 ac_cpp='$CPP $CPPFLAGS'
10132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10134 cross_compiling=$ac_cv_prog_cc_cross
10135
10136     
10137 fi
10138
10139   fi
10140   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
10141
10142   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
10143     for ac_func in isnanf
10144 do
10145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10146 echo "configure:10147: checking for $ac_func" >&5
10147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10148   echo $ac_n "(cached) $ac_c" 1>&6
10149 else
10150   cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 /* System header to define __stub macros and hopefully few prototypes,
10154     which can conflict with char $ac_func(); below.  */
10155 #include <assert.h>
10156 /* Override any gcc2 internal prototype to avoid an error.  */
10157 /* We use char because int might match the return type of a gcc2
10158     builtin and then its argument prototype would still apply.  */
10159 char $ac_func();
10160
10161 int main() {
10162
10163 /* The GNU C library defines this for functions which it implements
10164     to always fail with ENOSYS.  Some functions are actually named
10165     something starting with __ and the normal name is an alias.  */
10166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10167 choke me
10168 #else
10169 $ac_func();
10170 #endif
10171
10172 ; return 0; }
10173 EOF
10174 if { (eval echo configure:10175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10175   rm -rf conftest*
10176   eval "ac_cv_func_$ac_func=yes"
10177 else
10178   echo "configure: failed program was:" >&5
10179   cat conftest.$ac_ext >&5
10180   rm -rf conftest*
10181   eval "ac_cv_func_$ac_func=no"
10182 fi
10183 rm -f conftest*
10184 fi
10185
10186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10187   echo "$ac_t""yes" 1>&6
10188     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10189   cat >> confdefs.h <<EOF
10190 #define $ac_tr_func 1
10191 EOF
10192  
10193 else
10194   echo "$ac_t""no" 1>&6
10195 fi
10196 done
10197     
10198   else
10199     
10200   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
10201 echo "configure:10202: checking for _isnanf declaration" >&5
10202   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
10203     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
10204   echo $ac_n "(cached) $ac_c" 1>&6
10205 else
10206   
10207       
10208       ac_ext=C
10209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10210 ac_cpp='$CXXCPP $CPPFLAGS'
10211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10213 cross_compiling=$ac_cv_prog_cxx_cross
10214
10215       cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <math.h>
10219                       #ifdef HAVE_IEEEFP_H
10220                       #include <ieeefp.h>
10221                       #endif
10222                      
10223 int main() {
10224  _isnanf(0);
10225 ; return 0; }
10226 EOF
10227 if { (eval echo configure:10228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10228   rm -rf conftest*
10229   glibcpp_cv_func__isnanf_use=yes
10230 else
10231   echo "configure: failed program was:" >&5
10232   cat conftest.$ac_ext >&5
10233   rm -rf conftest*
10234   glibcpp_cv_func__isnanf_use=no
10235 fi
10236 rm -f conftest*
10237       ac_ext=c
10238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10239 ac_cpp='$CPP $CPPFLAGS'
10240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10242 cross_compiling=$ac_cv_prog_cc_cross
10243
10244     
10245 fi
10246
10247   fi
10248   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
10249
10250     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
10251       for ac_func in _isnanf
10252 do
10253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10254 echo "configure:10255: checking for $ac_func" >&5
10255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10256   echo $ac_n "(cached) $ac_c" 1>&6
10257 else
10258   cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 /* System header to define __stub macros and hopefully few prototypes,
10262     which can conflict with char $ac_func(); below.  */
10263 #include <assert.h>
10264 /* Override any gcc2 internal prototype to avoid an error.  */
10265 /* We use char because int might match the return type of a gcc2
10266     builtin and then its argument prototype would still apply.  */
10267 char $ac_func();
10268
10269 int main() {
10270
10271 /* The GNU C library defines this for functions which it implements
10272     to always fail with ENOSYS.  Some functions are actually named
10273     something starting with __ and the normal name is an alias.  */
10274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10275 choke me
10276 #else
10277 $ac_func();
10278 #endif
10279
10280 ; return 0; }
10281 EOF
10282 if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10283   rm -rf conftest*
10284   eval "ac_cv_func_$ac_func=yes"
10285 else
10286   echo "configure: failed program was:" >&5
10287   cat conftest.$ac_ext >&5
10288   rm -rf conftest*
10289   eval "ac_cv_func_$ac_func=no"
10290 fi
10291 rm -f conftest*
10292 fi
10293
10294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10295   echo "$ac_t""yes" 1>&6
10296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10297   cat >> confdefs.h <<EOF
10298 #define $ac_tr_func 1
10299 EOF
10300  
10301 else
10302   echo "$ac_t""no" 1>&6
10303 fi
10304 done
10305     
10306     fi
10307   fi
10308
10309   
10310   
10311   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
10312 echo "configure:10313: checking for isinff declaration" >&5
10313   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
10314     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
10315   echo $ac_n "(cached) $ac_c" 1>&6
10316 else
10317   
10318       
10319       ac_ext=C
10320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10321 ac_cpp='$CXXCPP $CPPFLAGS'
10322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10324 cross_compiling=$ac_cv_prog_cxx_cross
10325
10326       cat > conftest.$ac_ext <<EOF
10327 #line 10328 "configure"
10328 #include "confdefs.h"
10329 #include <math.h>
10330                       #ifdef HAVE_IEEEFP_H
10331                       #include <ieeefp.h>
10332                       #endif
10333                      
10334 int main() {
10335  isinff(0);
10336 ; return 0; }
10337 EOF
10338 if { (eval echo configure:10339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10339   rm -rf conftest*
10340   glibcpp_cv_func_isinff_use=yes
10341 else
10342   echo "configure: failed program was:" >&5
10343   cat conftest.$ac_ext >&5
10344   rm -rf conftest*
10345   glibcpp_cv_func_isinff_use=no
10346 fi
10347 rm -f conftest*
10348       ac_ext=c
10349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10350 ac_cpp='$CPP $CPPFLAGS'
10351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10353 cross_compiling=$ac_cv_prog_cc_cross
10354
10355     
10356 fi
10357
10358   fi
10359   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
10360
10361   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
10362     for ac_func in isinff
10363 do
10364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10365 echo "configure:10366: checking for $ac_func" >&5
10366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10367   echo $ac_n "(cached) $ac_c" 1>&6
10368 else
10369   cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 /* System header to define __stub macros and hopefully few prototypes,
10373     which can conflict with char $ac_func(); below.  */
10374 #include <assert.h>
10375 /* Override any gcc2 internal prototype to avoid an error.  */
10376 /* We use char because int might match the return type of a gcc2
10377     builtin and then its argument prototype would still apply.  */
10378 char $ac_func();
10379
10380 int main() {
10381
10382 /* The GNU C library defines this for functions which it implements
10383     to always fail with ENOSYS.  Some functions are actually named
10384     something starting with __ and the normal name is an alias.  */
10385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10386 choke me
10387 #else
10388 $ac_func();
10389 #endif
10390
10391 ; return 0; }
10392 EOF
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10394   rm -rf conftest*
10395   eval "ac_cv_func_$ac_func=yes"
10396 else
10397   echo "configure: failed program was:" >&5
10398   cat conftest.$ac_ext >&5
10399   rm -rf conftest*
10400   eval "ac_cv_func_$ac_func=no"
10401 fi
10402 rm -f conftest*
10403 fi
10404
10405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10406   echo "$ac_t""yes" 1>&6
10407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10408   cat >> confdefs.h <<EOF
10409 #define $ac_tr_func 1
10410 EOF
10411  
10412 else
10413   echo "$ac_t""no" 1>&6
10414 fi
10415 done
10416     
10417   else
10418     
10419   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
10420 echo "configure:10421: checking for _isinff declaration" >&5
10421   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
10422     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
10423   echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10425   
10426       
10427       ac_ext=C
10428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10429 ac_cpp='$CXXCPP $CPPFLAGS'
10430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10432 cross_compiling=$ac_cv_prog_cxx_cross
10433
10434       cat > conftest.$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 #include <math.h>
10438                       #ifdef HAVE_IEEEFP_H
10439                       #include <ieeefp.h>
10440                       #endif
10441                      
10442 int main() {
10443  _isinff(0);
10444 ; return 0; }
10445 EOF
10446 if { (eval echo configure:10447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10447   rm -rf conftest*
10448   glibcpp_cv_func__isinff_use=yes
10449 else
10450   echo "configure: failed program was:" >&5
10451   cat conftest.$ac_ext >&5
10452   rm -rf conftest*
10453   glibcpp_cv_func__isinff_use=no
10454 fi
10455 rm -f conftest*
10456       ac_ext=c
10457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10458 ac_cpp='$CPP $CPPFLAGS'
10459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10461 cross_compiling=$ac_cv_prog_cc_cross
10462
10463     
10464 fi
10465
10466   fi
10467   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
10468
10469     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
10470       for ac_func in _isinff
10471 do
10472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10473 echo "configure:10474: checking for $ac_func" >&5
10474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10475   echo $ac_n "(cached) $ac_c" 1>&6
10476 else
10477   cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10480 /* System header to define __stub macros and hopefully few prototypes,
10481     which can conflict with char $ac_func(); below.  */
10482 #include <assert.h>
10483 /* Override any gcc2 internal prototype to avoid an error.  */
10484 /* We use char because int might match the return type of a gcc2
10485     builtin and then its argument prototype would still apply.  */
10486 char $ac_func();
10487
10488 int main() {
10489
10490 /* The GNU C library defines this for functions which it implements
10491     to always fail with ENOSYS.  Some functions are actually named
10492     something starting with __ and the normal name is an alias.  */
10493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10494 choke me
10495 #else
10496 $ac_func();
10497 #endif
10498
10499 ; return 0; }
10500 EOF
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10502   rm -rf conftest*
10503   eval "ac_cv_func_$ac_func=yes"
10504 else
10505   echo "configure: failed program was:" >&5
10506   cat conftest.$ac_ext >&5
10507   rm -rf conftest*
10508   eval "ac_cv_func_$ac_func=no"
10509 fi
10510 rm -f conftest*
10511 fi
10512
10513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10514   echo "$ac_t""yes" 1>&6
10515     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10516   cat >> confdefs.h <<EOF
10517 #define $ac_tr_func 1
10518 EOF
10519  
10520 else
10521   echo "$ac_t""no" 1>&6
10522 fi
10523 done
10524     
10525     fi
10526   fi
10527
10528   
10529   
10530   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
10531 echo "configure:10532: checking for atan2f declaration" >&5
10532   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
10533     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
10534   echo $ac_n "(cached) $ac_c" 1>&6
10535 else
10536   
10537       
10538       ac_ext=C
10539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10540 ac_cpp='$CXXCPP $CPPFLAGS'
10541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10543 cross_compiling=$ac_cv_prog_cxx_cross
10544
10545       cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 #include <math.h>
10549 int main() {
10550  atan2f(0, 0);
10551 ; return 0; }
10552 EOF
10553 if { (eval echo configure:10554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10554   rm -rf conftest*
10555   glibcpp_cv_func_atan2f_use=yes
10556 else
10557   echo "configure: failed program was:" >&5
10558   cat conftest.$ac_ext >&5
10559   rm -rf conftest*
10560   glibcpp_cv_func_atan2f_use=no
10561 fi
10562 rm -f conftest*
10563       ac_ext=c
10564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10565 ac_cpp='$CPP $CPPFLAGS'
10566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10568 cross_compiling=$ac_cv_prog_cc_cross
10569
10570     
10571 fi
10572
10573   fi
10574   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
10575
10576   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
10577     for ac_func in atan2f
10578 do
10579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10580 echo "configure:10581: checking for $ac_func" >&5
10581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10582   echo $ac_n "(cached) $ac_c" 1>&6
10583 else
10584   cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 /* System header to define __stub macros and hopefully few prototypes,
10588     which can conflict with char $ac_func(); below.  */
10589 #include <assert.h>
10590 /* Override any gcc2 internal prototype to avoid an error.  */
10591 /* We use char because int might match the return type of a gcc2
10592     builtin and then its argument prototype would still apply.  */
10593 char $ac_func();
10594
10595 int main() {
10596
10597 /* The GNU C library defines this for functions which it implements
10598     to always fail with ENOSYS.  Some functions are actually named
10599     something starting with __ and the normal name is an alias.  */
10600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10601 choke me
10602 #else
10603 $ac_func();
10604 #endif
10605
10606 ; return 0; }
10607 EOF
10608 if { (eval echo configure:10609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10609   rm -rf conftest*
10610   eval "ac_cv_func_$ac_func=yes"
10611 else
10612   echo "configure: failed program was:" >&5
10613   cat conftest.$ac_ext >&5
10614   rm -rf conftest*
10615   eval "ac_cv_func_$ac_func=no"
10616 fi
10617 rm -f conftest*
10618 fi
10619
10620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10621   echo "$ac_t""yes" 1>&6
10622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10623   cat >> confdefs.h <<EOF
10624 #define $ac_tr_func 1
10625 EOF
10626  
10627 else
10628   echo "$ac_t""no" 1>&6
10629 fi
10630 done
10631     
10632   else
10633     
10634   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
10635 echo "configure:10636: checking for _atan2f declaration" >&5
10636   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
10637     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
10638   echo $ac_n "(cached) $ac_c" 1>&6
10639 else
10640   
10641       
10642       ac_ext=C
10643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10644 ac_cpp='$CXXCPP $CPPFLAGS'
10645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10647 cross_compiling=$ac_cv_prog_cxx_cross
10648
10649       cat > conftest.$ac_ext <<EOF
10650 #line 10651 "configure"
10651 #include "confdefs.h"
10652 #include <math.h>
10653 int main() {
10654  _atan2f(0, 0);
10655 ; return 0; }
10656 EOF
10657 if { (eval echo configure:10658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10658   rm -rf conftest*
10659   glibcpp_cv_func__atan2f_use=yes
10660 else
10661   echo "configure: failed program was:" >&5
10662   cat conftest.$ac_ext >&5
10663   rm -rf conftest*
10664   glibcpp_cv_func__atan2f_use=no
10665 fi
10666 rm -f conftest*
10667       ac_ext=c
10668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10669 ac_cpp='$CPP $CPPFLAGS'
10670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10672 cross_compiling=$ac_cv_prog_cc_cross
10673
10674     
10675 fi
10676
10677   fi
10678   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
10679
10680     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
10681       for ac_func in _atan2f
10682 do
10683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10684 echo "configure:10685: checking for $ac_func" >&5
10685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10686   echo $ac_n "(cached) $ac_c" 1>&6
10687 else
10688   cat > conftest.$ac_ext <<EOF
10689 #line 10690 "configure"
10690 #include "confdefs.h"
10691 /* System header to define __stub macros and hopefully few prototypes,
10692     which can conflict with char $ac_func(); below.  */
10693 #include <assert.h>
10694 /* Override any gcc2 internal prototype to avoid an error.  */
10695 /* We use char because int might match the return type of a gcc2
10696     builtin and then its argument prototype would still apply.  */
10697 char $ac_func();
10698
10699 int main() {
10700
10701 /* The GNU C library defines this for functions which it implements
10702     to always fail with ENOSYS.  Some functions are actually named
10703     something starting with __ and the normal name is an alias.  */
10704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10705 choke me
10706 #else
10707 $ac_func();
10708 #endif
10709
10710 ; return 0; }
10711 EOF
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10713   rm -rf conftest*
10714   eval "ac_cv_func_$ac_func=yes"
10715 else
10716   echo "configure: failed program was:" >&5
10717   cat conftest.$ac_ext >&5
10718   rm -rf conftest*
10719   eval "ac_cv_func_$ac_func=no"
10720 fi
10721 rm -f conftest*
10722 fi
10723
10724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10725   echo "$ac_t""yes" 1>&6
10726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10727   cat >> confdefs.h <<EOF
10728 #define $ac_tr_func 1
10729 EOF
10730  
10731 else
10732   echo "$ac_t""no" 1>&6
10733 fi
10734 done
10735     
10736     fi
10737   fi
10738
10739   
10740   
10741   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
10742 echo "configure:10743: checking for fabsf declaration" >&5
10743   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
10744     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
10745   echo $ac_n "(cached) $ac_c" 1>&6
10746 else
10747   
10748       
10749       ac_ext=C
10750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10751 ac_cpp='$CXXCPP $CPPFLAGS'
10752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10754 cross_compiling=$ac_cv_prog_cxx_cross
10755
10756       cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10759 #include <math.h>
10760                       #ifdef HAVE_IEEEFP_H
10761                       #include <ieeefp.h>
10762                       #endif
10763                      
10764 int main() {
10765  fabsf(0);
10766 ; return 0; }
10767 EOF
10768 if { (eval echo configure:10769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10769   rm -rf conftest*
10770   glibcpp_cv_func_fabsf_use=yes
10771 else
10772   echo "configure: failed program was:" >&5
10773   cat conftest.$ac_ext >&5
10774   rm -rf conftest*
10775   glibcpp_cv_func_fabsf_use=no
10776 fi
10777 rm -f conftest*
10778       ac_ext=c
10779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10780 ac_cpp='$CPP $CPPFLAGS'
10781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10783 cross_compiling=$ac_cv_prog_cc_cross
10784
10785     
10786 fi
10787
10788   fi
10789   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
10790
10791   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
10792     for ac_func in fabsf
10793 do
10794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10795 echo "configure:10796: checking for $ac_func" >&5
10796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10797   echo $ac_n "(cached) $ac_c" 1>&6
10798 else
10799   cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 /* System header to define __stub macros and hopefully few prototypes,
10803     which can conflict with char $ac_func(); below.  */
10804 #include <assert.h>
10805 /* Override any gcc2 internal prototype to avoid an error.  */
10806 /* We use char because int might match the return type of a gcc2
10807     builtin and then its argument prototype would still apply.  */
10808 char $ac_func();
10809
10810 int main() {
10811
10812 /* The GNU C library defines this for functions which it implements
10813     to always fail with ENOSYS.  Some functions are actually named
10814     something starting with __ and the normal name is an alias.  */
10815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10816 choke me
10817 #else
10818 $ac_func();
10819 #endif
10820
10821 ; return 0; }
10822 EOF
10823 if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10824   rm -rf conftest*
10825   eval "ac_cv_func_$ac_func=yes"
10826 else
10827   echo "configure: failed program was:" >&5
10828   cat conftest.$ac_ext >&5
10829   rm -rf conftest*
10830   eval "ac_cv_func_$ac_func=no"
10831 fi
10832 rm -f conftest*
10833 fi
10834
10835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10836   echo "$ac_t""yes" 1>&6
10837     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10838   cat >> confdefs.h <<EOF
10839 #define $ac_tr_func 1
10840 EOF
10841  
10842 else
10843   echo "$ac_t""no" 1>&6
10844 fi
10845 done
10846     
10847   else
10848     
10849   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
10850 echo "configure:10851: checking for _fabsf declaration" >&5
10851   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10852     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10853   echo $ac_n "(cached) $ac_c" 1>&6
10854 else
10855   
10856       
10857       ac_ext=C
10858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10859 ac_cpp='$CXXCPP $CPPFLAGS'
10860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10862 cross_compiling=$ac_cv_prog_cxx_cross
10863
10864       cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10867 #include <math.h>
10868                       #ifdef HAVE_IEEEFP_H
10869                       #include <ieeefp.h>
10870                       #endif
10871                      
10872 int main() {
10873  _fabsf(0);
10874 ; return 0; }
10875 EOF
10876 if { (eval echo configure:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10877   rm -rf conftest*
10878   glibcpp_cv_func__fabsf_use=yes
10879 else
10880   echo "configure: failed program was:" >&5
10881   cat conftest.$ac_ext >&5
10882   rm -rf conftest*
10883   glibcpp_cv_func__fabsf_use=no
10884 fi
10885 rm -f conftest*
10886       ac_ext=c
10887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10888 ac_cpp='$CPP $CPPFLAGS'
10889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10891 cross_compiling=$ac_cv_prog_cc_cross
10892
10893     
10894 fi
10895
10896   fi
10897   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
10898
10899     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
10900       for ac_func in _fabsf
10901 do
10902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10903 echo "configure:10904: checking for $ac_func" >&5
10904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10905   echo $ac_n "(cached) $ac_c" 1>&6
10906 else
10907   cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10910 /* System header to define __stub macros and hopefully few prototypes,
10911     which can conflict with char $ac_func(); below.  */
10912 #include <assert.h>
10913 /* Override any gcc2 internal prototype to avoid an error.  */
10914 /* We use char because int might match the return type of a gcc2
10915     builtin and then its argument prototype would still apply.  */
10916 char $ac_func();
10917
10918 int main() {
10919
10920 /* The GNU C library defines this for functions which it implements
10921     to always fail with ENOSYS.  Some functions are actually named
10922     something starting with __ and the normal name is an alias.  */
10923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10924 choke me
10925 #else
10926 $ac_func();
10927 #endif
10928
10929 ; return 0; }
10930 EOF
10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10932   rm -rf conftest*
10933   eval "ac_cv_func_$ac_func=yes"
10934 else
10935   echo "configure: failed program was:" >&5
10936   cat conftest.$ac_ext >&5
10937   rm -rf conftest*
10938   eval "ac_cv_func_$ac_func=no"
10939 fi
10940 rm -f conftest*
10941 fi
10942
10943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10944   echo "$ac_t""yes" 1>&6
10945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10946   cat >> confdefs.h <<EOF
10947 #define $ac_tr_func 1
10948 EOF
10949  
10950 else
10951   echo "$ac_t""no" 1>&6
10952 fi
10953 done
10954     
10955     fi
10956   fi
10957
10958   
10959   
10960   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
10961 echo "configure:10962: checking for fmodf declaration" >&5
10962   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
10963     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
10964   echo $ac_n "(cached) $ac_c" 1>&6
10965 else
10966   
10967       
10968       ac_ext=C
10969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10970 ac_cpp='$CXXCPP $CPPFLAGS'
10971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10973 cross_compiling=$ac_cv_prog_cxx_cross
10974
10975       cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10978 #include <math.h>
10979 int main() {
10980  fmodf(0, 0);
10981 ; return 0; }
10982 EOF
10983 if { (eval echo configure:10984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10984   rm -rf conftest*
10985   glibcpp_cv_func_fmodf_use=yes
10986 else
10987   echo "configure: failed program was:" >&5
10988   cat conftest.$ac_ext >&5
10989   rm -rf conftest*
10990   glibcpp_cv_func_fmodf_use=no
10991 fi
10992 rm -f conftest*
10993       ac_ext=c
10994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10998 cross_compiling=$ac_cv_prog_cc_cross
10999
11000     
11001 fi
11002
11003   fi
11004   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11005
11006   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11007     for ac_func in fmodf
11008 do
11009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11010 echo "configure:11011: checking for $ac_func" >&5
11011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11012   echo $ac_n "(cached) $ac_c" 1>&6
11013 else
11014   cat > conftest.$ac_ext <<EOF
11015 #line 11016 "configure"
11016 #include "confdefs.h"
11017 /* System header to define __stub macros and hopefully few prototypes,
11018     which can conflict with char $ac_func(); below.  */
11019 #include <assert.h>
11020 /* Override any gcc2 internal prototype to avoid an error.  */
11021 /* We use char because int might match the return type of a gcc2
11022     builtin and then its argument prototype would still apply.  */
11023 char $ac_func();
11024
11025 int main() {
11026
11027 /* The GNU C library defines this for functions which it implements
11028     to always fail with ENOSYS.  Some functions are actually named
11029     something starting with __ and the normal name is an alias.  */
11030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11031 choke me
11032 #else
11033 $ac_func();
11034 #endif
11035
11036 ; return 0; }
11037 EOF
11038 if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11039   rm -rf conftest*
11040   eval "ac_cv_func_$ac_func=yes"
11041 else
11042   echo "configure: failed program was:" >&5
11043   cat conftest.$ac_ext >&5
11044   rm -rf conftest*
11045   eval "ac_cv_func_$ac_func=no"
11046 fi
11047 rm -f conftest*
11048 fi
11049
11050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11051   echo "$ac_t""yes" 1>&6
11052     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11053   cat >> confdefs.h <<EOF
11054 #define $ac_tr_func 1
11055 EOF
11056  
11057 else
11058   echo "$ac_t""no" 1>&6
11059 fi
11060 done
11061     
11062   else
11063     
11064   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
11065 echo "configure:11066: checking for _fmodf declaration" >&5
11066   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
11067     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
11068   echo $ac_n "(cached) $ac_c" 1>&6
11069 else
11070   
11071       
11072       ac_ext=C
11073 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11074 ac_cpp='$CXXCPP $CPPFLAGS'
11075 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11076 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11077 cross_compiling=$ac_cv_prog_cxx_cross
11078
11079       cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 #include <math.h>
11083 int main() {
11084  _fmodf(0, 0);
11085 ; return 0; }
11086 EOF
11087 if { (eval echo configure:11088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11088   rm -rf conftest*
11089   glibcpp_cv_func__fmodf_use=yes
11090 else
11091   echo "configure: failed program was:" >&5
11092   cat conftest.$ac_ext >&5
11093   rm -rf conftest*
11094   glibcpp_cv_func__fmodf_use=no
11095 fi
11096 rm -f conftest*
11097       ac_ext=c
11098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11099 ac_cpp='$CPP $CPPFLAGS'
11100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11102 cross_compiling=$ac_cv_prog_cc_cross
11103
11104     
11105 fi
11106
11107   fi
11108   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
11109
11110     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
11111       for ac_func in _fmodf
11112 do
11113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11114 echo "configure:11115: checking for $ac_func" >&5
11115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11116   echo $ac_n "(cached) $ac_c" 1>&6
11117 else
11118   cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11121 /* System header to define __stub macros and hopefully few prototypes,
11122     which can conflict with char $ac_func(); below.  */
11123 #include <assert.h>
11124 /* Override any gcc2 internal prototype to avoid an error.  */
11125 /* We use char because int might match the return type of a gcc2
11126     builtin and then its argument prototype would still apply.  */
11127 char $ac_func();
11128
11129 int main() {
11130
11131 /* The GNU C library defines this for functions which it implements
11132     to always fail with ENOSYS.  Some functions are actually named
11133     something starting with __ and the normal name is an alias.  */
11134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11135 choke me
11136 #else
11137 $ac_func();
11138 #endif
11139
11140 ; return 0; }
11141 EOF
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143   rm -rf conftest*
11144   eval "ac_cv_func_$ac_func=yes"
11145 else
11146   echo "configure: failed program was:" >&5
11147   cat conftest.$ac_ext >&5
11148   rm -rf conftest*
11149   eval "ac_cv_func_$ac_func=no"
11150 fi
11151 rm -f conftest*
11152 fi
11153
11154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11155   echo "$ac_t""yes" 1>&6
11156     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11157   cat >> confdefs.h <<EOF
11158 #define $ac_tr_func 1
11159 EOF
11160  
11161 else
11162   echo "$ac_t""no" 1>&6
11163 fi
11164 done
11165     
11166     fi
11167   fi
11168
11169   
11170   
11171   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
11172 echo "configure:11173: checking for frexpf declaration" >&5
11173   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
11174     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
11175   echo $ac_n "(cached) $ac_c" 1>&6
11176 else
11177   
11178       
11179       ac_ext=C
11180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11181 ac_cpp='$CXXCPP $CPPFLAGS'
11182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11184 cross_compiling=$ac_cv_prog_cxx_cross
11185
11186       cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11189 #include <math.h>
11190 int main() {
11191  frexpf(0, 0);
11192 ; return 0; }
11193 EOF
11194 if { (eval echo configure:11195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11195   rm -rf conftest*
11196   glibcpp_cv_func_frexpf_use=yes
11197 else
11198   echo "configure: failed program was:" >&5
11199   cat conftest.$ac_ext >&5
11200   rm -rf conftest*
11201   glibcpp_cv_func_frexpf_use=no
11202 fi
11203 rm -f conftest*
11204       ac_ext=c
11205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11206 ac_cpp='$CPP $CPPFLAGS'
11207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11209 cross_compiling=$ac_cv_prog_cc_cross
11210
11211     
11212 fi
11213
11214   fi
11215   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
11216
11217   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
11218     for ac_func in frexpf
11219 do
11220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11221 echo "configure:11222: checking for $ac_func" >&5
11222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11223   echo $ac_n "(cached) $ac_c" 1>&6
11224 else
11225   cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11228 /* System header to define __stub macros and hopefully few prototypes,
11229     which can conflict with char $ac_func(); below.  */
11230 #include <assert.h>
11231 /* Override any gcc2 internal prototype to avoid an error.  */
11232 /* We use char because int might match the return type of a gcc2
11233     builtin and then its argument prototype would still apply.  */
11234 char $ac_func();
11235
11236 int main() {
11237
11238 /* The GNU C library defines this for functions which it implements
11239     to always fail with ENOSYS.  Some functions are actually named
11240     something starting with __ and the normal name is an alias.  */
11241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11242 choke me
11243 #else
11244 $ac_func();
11245 #endif
11246
11247 ; return 0; }
11248 EOF
11249 if { (eval echo configure:11250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11250   rm -rf conftest*
11251   eval "ac_cv_func_$ac_func=yes"
11252 else
11253   echo "configure: failed program was:" >&5
11254   cat conftest.$ac_ext >&5
11255   rm -rf conftest*
11256   eval "ac_cv_func_$ac_func=no"
11257 fi
11258 rm -f conftest*
11259 fi
11260
11261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11262   echo "$ac_t""yes" 1>&6
11263     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11264   cat >> confdefs.h <<EOF
11265 #define $ac_tr_func 1
11266 EOF
11267  
11268 else
11269   echo "$ac_t""no" 1>&6
11270 fi
11271 done
11272     
11273   else
11274     
11275   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
11276 echo "configure:11277: checking for _frexpf declaration" >&5
11277   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
11278     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
11279   echo $ac_n "(cached) $ac_c" 1>&6
11280 else
11281   
11282       
11283       ac_ext=C
11284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11285 ac_cpp='$CXXCPP $CPPFLAGS'
11286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11288 cross_compiling=$ac_cv_prog_cxx_cross
11289
11290       cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11293 #include <math.h>
11294 int main() {
11295  _frexpf(0, 0);
11296 ; return 0; }
11297 EOF
11298 if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11299   rm -rf conftest*
11300   glibcpp_cv_func__frexpf_use=yes
11301 else
11302   echo "configure: failed program was:" >&5
11303   cat conftest.$ac_ext >&5
11304   rm -rf conftest*
11305   glibcpp_cv_func__frexpf_use=no
11306 fi
11307 rm -f conftest*
11308       ac_ext=c
11309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11310 ac_cpp='$CPP $CPPFLAGS'
11311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11313 cross_compiling=$ac_cv_prog_cc_cross
11314
11315     
11316 fi
11317
11318   fi
11319   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
11320
11321     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
11322       for ac_func in _frexpf
11323 do
11324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11325 echo "configure:11326: checking for $ac_func" >&5
11326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11327   echo $ac_n "(cached) $ac_c" 1>&6
11328 else
11329   cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11332 /* System header to define __stub macros and hopefully few prototypes,
11333     which can conflict with char $ac_func(); below.  */
11334 #include <assert.h>
11335 /* Override any gcc2 internal prototype to avoid an error.  */
11336 /* We use char because int might match the return type of a gcc2
11337     builtin and then its argument prototype would still apply.  */
11338 char $ac_func();
11339
11340 int main() {
11341
11342 /* The GNU C library defines this for functions which it implements
11343     to always fail with ENOSYS.  Some functions are actually named
11344     something starting with __ and the normal name is an alias.  */
11345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11346 choke me
11347 #else
11348 $ac_func();
11349 #endif
11350
11351 ; return 0; }
11352 EOF
11353 if { (eval echo configure:11354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11354   rm -rf conftest*
11355   eval "ac_cv_func_$ac_func=yes"
11356 else
11357   echo "configure: failed program was:" >&5
11358   cat conftest.$ac_ext >&5
11359   rm -rf conftest*
11360   eval "ac_cv_func_$ac_func=no"
11361 fi
11362 rm -f conftest*
11363 fi
11364
11365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11366   echo "$ac_t""yes" 1>&6
11367     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11368   cat >> confdefs.h <<EOF
11369 #define $ac_tr_func 1
11370 EOF
11371  
11372 else
11373   echo "$ac_t""no" 1>&6
11374 fi
11375 done
11376     
11377     fi
11378   fi
11379
11380   
11381   
11382   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
11383 echo "configure:11384: checking for hypotf declaration" >&5
11384   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
11385     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
11386   echo $ac_n "(cached) $ac_c" 1>&6
11387 else
11388   
11389       
11390       ac_ext=C
11391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11392 ac_cpp='$CXXCPP $CPPFLAGS'
11393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11395 cross_compiling=$ac_cv_prog_cxx_cross
11396
11397       cat > conftest.$ac_ext <<EOF
11398 #line 11399 "configure"
11399 #include "confdefs.h"
11400 #include <math.h>
11401 int main() {
11402  hypotf(0, 0);
11403 ; return 0; }
11404 EOF
11405 if { (eval echo configure:11406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11406   rm -rf conftest*
11407   glibcpp_cv_func_hypotf_use=yes
11408 else
11409   echo "configure: failed program was:" >&5
11410   cat conftest.$ac_ext >&5
11411   rm -rf conftest*
11412   glibcpp_cv_func_hypotf_use=no
11413 fi
11414 rm -f conftest*
11415       ac_ext=c
11416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11417 ac_cpp='$CPP $CPPFLAGS'
11418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11420 cross_compiling=$ac_cv_prog_cc_cross
11421
11422     
11423 fi
11424
11425   fi
11426   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
11427
11428   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
11429     for ac_func in hypotf
11430 do
11431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11432 echo "configure:11433: checking for $ac_func" >&5
11433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11434   echo $ac_n "(cached) $ac_c" 1>&6
11435 else
11436   cat > conftest.$ac_ext <<EOF
11437 #line 11438 "configure"
11438 #include "confdefs.h"
11439 /* System header to define __stub macros and hopefully few prototypes,
11440     which can conflict with char $ac_func(); below.  */
11441 #include <assert.h>
11442 /* Override any gcc2 internal prototype to avoid an error.  */
11443 /* We use char because int might match the return type of a gcc2
11444     builtin and then its argument prototype would still apply.  */
11445 char $ac_func();
11446
11447 int main() {
11448
11449 /* The GNU C library defines this for functions which it implements
11450     to always fail with ENOSYS.  Some functions are actually named
11451     something starting with __ and the normal name is an alias.  */
11452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11453 choke me
11454 #else
11455 $ac_func();
11456 #endif
11457
11458 ; return 0; }
11459 EOF
11460 if { (eval echo configure:11461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11461   rm -rf conftest*
11462   eval "ac_cv_func_$ac_func=yes"
11463 else
11464   echo "configure: failed program was:" >&5
11465   cat conftest.$ac_ext >&5
11466   rm -rf conftest*
11467   eval "ac_cv_func_$ac_func=no"
11468 fi
11469 rm -f conftest*
11470 fi
11471
11472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11473   echo "$ac_t""yes" 1>&6
11474     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11475   cat >> confdefs.h <<EOF
11476 #define $ac_tr_func 1
11477 EOF
11478  
11479 else
11480   echo "$ac_t""no" 1>&6
11481 fi
11482 done
11483     
11484   else
11485     
11486   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
11487 echo "configure:11488: checking for _hypotf declaration" >&5
11488   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
11489     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
11490   echo $ac_n "(cached) $ac_c" 1>&6
11491 else
11492   
11493       
11494       ac_ext=C
11495 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11496 ac_cpp='$CXXCPP $CPPFLAGS'
11497 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11498 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11499 cross_compiling=$ac_cv_prog_cxx_cross
11500
11501       cat > conftest.$ac_ext <<EOF
11502 #line 11503 "configure"
11503 #include "confdefs.h"
11504 #include <math.h>
11505 int main() {
11506  _hypotf(0, 0);
11507 ; return 0; }
11508 EOF
11509 if { (eval echo configure:11510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11510   rm -rf conftest*
11511   glibcpp_cv_func__hypotf_use=yes
11512 else
11513   echo "configure: failed program was:" >&5
11514   cat conftest.$ac_ext >&5
11515   rm -rf conftest*
11516   glibcpp_cv_func__hypotf_use=no
11517 fi
11518 rm -f conftest*
11519       ac_ext=c
11520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11521 ac_cpp='$CPP $CPPFLAGS'
11522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11524 cross_compiling=$ac_cv_prog_cc_cross
11525
11526     
11527 fi
11528
11529   fi
11530   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
11531
11532     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
11533       for ac_func in _hypotf
11534 do
11535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11536 echo "configure:11537: checking for $ac_func" >&5
11537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11538   echo $ac_n "(cached) $ac_c" 1>&6
11539 else
11540   cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 /* System header to define __stub macros and hopefully few prototypes,
11544     which can conflict with char $ac_func(); below.  */
11545 #include <assert.h>
11546 /* Override any gcc2 internal prototype to avoid an error.  */
11547 /* We use char because int might match the return type of a gcc2
11548     builtin and then its argument prototype would still apply.  */
11549 char $ac_func();
11550
11551 int main() {
11552
11553 /* The GNU C library defines this for functions which it implements
11554     to always fail with ENOSYS.  Some functions are actually named
11555     something starting with __ and the normal name is an alias.  */
11556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11557 choke me
11558 #else
11559 $ac_func();
11560 #endif
11561
11562 ; return 0; }
11563 EOF
11564 if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11565   rm -rf conftest*
11566   eval "ac_cv_func_$ac_func=yes"
11567 else
11568   echo "configure: failed program was:" >&5
11569   cat conftest.$ac_ext >&5
11570   rm -rf conftest*
11571   eval "ac_cv_func_$ac_func=no"
11572 fi
11573 rm -f conftest*
11574 fi
11575
11576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11577   echo "$ac_t""yes" 1>&6
11578     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11579   cat >> confdefs.h <<EOF
11580 #define $ac_tr_func 1
11581 EOF
11582  
11583 else
11584   echo "$ac_t""no" 1>&6
11585 fi
11586 done
11587     
11588     fi
11589   fi
11590
11591   
11592   
11593   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
11594 echo "configure:11595: checking for ldexpf declaration" >&5
11595   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
11596     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
11597   echo $ac_n "(cached) $ac_c" 1>&6
11598 else
11599   
11600       
11601       ac_ext=C
11602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11603 ac_cpp='$CXXCPP $CPPFLAGS'
11604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11606 cross_compiling=$ac_cv_prog_cxx_cross
11607
11608       cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11611 #include <math.h>
11612 int main() {
11613  ldexpf(0, 0);
11614 ; return 0; }
11615 EOF
11616 if { (eval echo configure:11617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11617   rm -rf conftest*
11618   glibcpp_cv_func_ldexpf_use=yes
11619 else
11620   echo "configure: failed program was:" >&5
11621   cat conftest.$ac_ext >&5
11622   rm -rf conftest*
11623   glibcpp_cv_func_ldexpf_use=no
11624 fi
11625 rm -f conftest*
11626       ac_ext=c
11627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11631 cross_compiling=$ac_cv_prog_cc_cross
11632
11633     
11634 fi
11635
11636   fi
11637   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
11638
11639   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
11640     for ac_func in ldexpf
11641 do
11642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11643 echo "configure:11644: checking for $ac_func" >&5
11644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11645   echo $ac_n "(cached) $ac_c" 1>&6
11646 else
11647   cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 /* System header to define __stub macros and hopefully few prototypes,
11651     which can conflict with char $ac_func(); below.  */
11652 #include <assert.h>
11653 /* Override any gcc2 internal prototype to avoid an error.  */
11654 /* We use char because int might match the return type of a gcc2
11655     builtin and then its argument prototype would still apply.  */
11656 char $ac_func();
11657
11658 int main() {
11659
11660 /* The GNU C library defines this for functions which it implements
11661     to always fail with ENOSYS.  Some functions are actually named
11662     something starting with __ and the normal name is an alias.  */
11663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11664 choke me
11665 #else
11666 $ac_func();
11667 #endif
11668
11669 ; return 0; }
11670 EOF
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672   rm -rf conftest*
11673   eval "ac_cv_func_$ac_func=yes"
11674 else
11675   echo "configure: failed program was:" >&5
11676   cat conftest.$ac_ext >&5
11677   rm -rf conftest*
11678   eval "ac_cv_func_$ac_func=no"
11679 fi
11680 rm -f conftest*
11681 fi
11682
11683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11684   echo "$ac_t""yes" 1>&6
11685     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11686   cat >> confdefs.h <<EOF
11687 #define $ac_tr_func 1
11688 EOF
11689  
11690 else
11691   echo "$ac_t""no" 1>&6
11692 fi
11693 done
11694     
11695   else
11696     
11697   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
11698 echo "configure:11699: checking for _ldexpf declaration" >&5
11699   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
11700     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
11701   echo $ac_n "(cached) $ac_c" 1>&6
11702 else
11703   
11704       
11705       ac_ext=C
11706 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11707 ac_cpp='$CXXCPP $CPPFLAGS'
11708 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11709 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11710 cross_compiling=$ac_cv_prog_cxx_cross
11711
11712       cat > conftest.$ac_ext <<EOF
11713 #line 11714 "configure"
11714 #include "confdefs.h"
11715 #include <math.h>
11716 int main() {
11717  _ldexpf(0, 0);
11718 ; return 0; }
11719 EOF
11720 if { (eval echo configure:11721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11721   rm -rf conftest*
11722   glibcpp_cv_func__ldexpf_use=yes
11723 else
11724   echo "configure: failed program was:" >&5
11725   cat conftest.$ac_ext >&5
11726   rm -rf conftest*
11727   glibcpp_cv_func__ldexpf_use=no
11728 fi
11729 rm -f conftest*
11730       ac_ext=c
11731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11732 ac_cpp='$CPP $CPPFLAGS'
11733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11735 cross_compiling=$ac_cv_prog_cc_cross
11736
11737     
11738 fi
11739
11740   fi
11741   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
11742
11743     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
11744       for ac_func in _ldexpf
11745 do
11746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11747 echo "configure:11748: checking for $ac_func" >&5
11748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11749   echo $ac_n "(cached) $ac_c" 1>&6
11750 else
11751   cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 /* System header to define __stub macros and hopefully few prototypes,
11755     which can conflict with char $ac_func(); below.  */
11756 #include <assert.h>
11757 /* Override any gcc2 internal prototype to avoid an error.  */
11758 /* We use char because int might match the return type of a gcc2
11759     builtin and then its argument prototype would still apply.  */
11760 char $ac_func();
11761
11762 int main() {
11763
11764 /* The GNU C library defines this for functions which it implements
11765     to always fail with ENOSYS.  Some functions are actually named
11766     something starting with __ and the normal name is an alias.  */
11767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11768 choke me
11769 #else
11770 $ac_func();
11771 #endif
11772
11773 ; return 0; }
11774 EOF
11775 if { (eval echo configure:11776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11776   rm -rf conftest*
11777   eval "ac_cv_func_$ac_func=yes"
11778 else
11779   echo "configure: failed program was:" >&5
11780   cat conftest.$ac_ext >&5
11781   rm -rf conftest*
11782   eval "ac_cv_func_$ac_func=no"
11783 fi
11784 rm -f conftest*
11785 fi
11786
11787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11788   echo "$ac_t""yes" 1>&6
11789     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11790   cat >> confdefs.h <<EOF
11791 #define $ac_tr_func 1
11792 EOF
11793  
11794 else
11795   echo "$ac_t""no" 1>&6
11796 fi
11797 done
11798     
11799     fi
11800   fi
11801
11802   
11803   
11804   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
11805 echo "configure:11806: checking for logf declaration" >&5
11806   if test x${glibcpp_cv_func_logf_use+set} != xset; then
11807     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
11808   echo $ac_n "(cached) $ac_c" 1>&6
11809 else
11810   
11811       
11812       ac_ext=C
11813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11814 ac_cpp='$CXXCPP $CPPFLAGS'
11815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11817 cross_compiling=$ac_cv_prog_cxx_cross
11818
11819       cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure"
11821 #include "confdefs.h"
11822 #include <math.h>
11823                       #ifdef HAVE_IEEEFP_H
11824                       #include <ieeefp.h>
11825                       #endif
11826                      
11827 int main() {
11828  logf(0);
11829 ; return 0; }
11830 EOF
11831 if { (eval echo configure:11832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11832   rm -rf conftest*
11833   glibcpp_cv_func_logf_use=yes
11834 else
11835   echo "configure: failed program was:" >&5
11836   cat conftest.$ac_ext >&5
11837   rm -rf conftest*
11838   glibcpp_cv_func_logf_use=no
11839 fi
11840 rm -f conftest*
11841       ac_ext=c
11842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11843 ac_cpp='$CPP $CPPFLAGS'
11844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11846 cross_compiling=$ac_cv_prog_cc_cross
11847
11848     
11849 fi
11850
11851   fi
11852   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11853
11854   if test x$glibcpp_cv_func_logf_use = x"yes"; then
11855     for ac_func in logf
11856 do
11857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11858 echo "configure:11859: checking for $ac_func" >&5
11859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11860   echo $ac_n "(cached) $ac_c" 1>&6
11861 else
11862   cat > conftest.$ac_ext <<EOF
11863 #line 11864 "configure"
11864 #include "confdefs.h"
11865 /* System header to define __stub macros and hopefully few prototypes,
11866     which can conflict with char $ac_func(); below.  */
11867 #include <assert.h>
11868 /* Override any gcc2 internal prototype to avoid an error.  */
11869 /* We use char because int might match the return type of a gcc2
11870     builtin and then its argument prototype would still apply.  */
11871 char $ac_func();
11872
11873 int main() {
11874
11875 /* The GNU C library defines this for functions which it implements
11876     to always fail with ENOSYS.  Some functions are actually named
11877     something starting with __ and the normal name is an alias.  */
11878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11879 choke me
11880 #else
11881 $ac_func();
11882 #endif
11883
11884 ; return 0; }
11885 EOF
11886 if { (eval echo configure:11887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11887   rm -rf conftest*
11888   eval "ac_cv_func_$ac_func=yes"
11889 else
11890   echo "configure: failed program was:" >&5
11891   cat conftest.$ac_ext >&5
11892   rm -rf conftest*
11893   eval "ac_cv_func_$ac_func=no"
11894 fi
11895 rm -f conftest*
11896 fi
11897
11898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11899   echo "$ac_t""yes" 1>&6
11900     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11901   cat >> confdefs.h <<EOF
11902 #define $ac_tr_func 1
11903 EOF
11904  
11905 else
11906   echo "$ac_t""no" 1>&6
11907 fi
11908 done
11909     
11910   else
11911     
11912   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
11913 echo "configure:11914: checking for _logf declaration" >&5
11914   if test x${glibcpp_cv_func__logf_use+set} != xset; then
11915     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
11916   echo $ac_n "(cached) $ac_c" 1>&6
11917 else
11918   
11919       
11920       ac_ext=C
11921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11922 ac_cpp='$CXXCPP $CPPFLAGS'
11923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11925 cross_compiling=$ac_cv_prog_cxx_cross
11926
11927       cat > conftest.$ac_ext <<EOF
11928 #line 11929 "configure"
11929 #include "confdefs.h"
11930 #include <math.h>
11931                       #ifdef HAVE_IEEEFP_H
11932                       #include <ieeefp.h>
11933                       #endif
11934                      
11935 int main() {
11936  _logf(0);
11937 ; return 0; }
11938 EOF
11939 if { (eval echo configure:11940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11940   rm -rf conftest*
11941   glibcpp_cv_func__logf_use=yes
11942 else
11943   echo "configure: failed program was:" >&5
11944   cat conftest.$ac_ext >&5
11945   rm -rf conftest*
11946   glibcpp_cv_func__logf_use=no
11947 fi
11948 rm -f conftest*
11949       ac_ext=c
11950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11951 ac_cpp='$CPP $CPPFLAGS'
11952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11954 cross_compiling=$ac_cv_prog_cc_cross
11955
11956     
11957 fi
11958
11959   fi
11960   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
11961
11962     if test x$glibcpp_cv_func__logf_use = x"yes"; then
11963       for ac_func in _logf
11964 do
11965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11966 echo "configure:11967: checking for $ac_func" >&5
11967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11968   echo $ac_n "(cached) $ac_c" 1>&6
11969 else
11970   cat > conftest.$ac_ext <<EOF
11971 #line 11972 "configure"
11972 #include "confdefs.h"
11973 /* System header to define __stub macros and hopefully few prototypes,
11974     which can conflict with char $ac_func(); below.  */
11975 #include <assert.h>
11976 /* Override any gcc2 internal prototype to avoid an error.  */
11977 /* We use char because int might match the return type of a gcc2
11978     builtin and then its argument prototype would still apply.  */
11979 char $ac_func();
11980
11981 int main() {
11982
11983 /* The GNU C library defines this for functions which it implements
11984     to always fail with ENOSYS.  Some functions are actually named
11985     something starting with __ and the normal name is an alias.  */
11986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11987 choke me
11988 #else
11989 $ac_func();
11990 #endif
11991
11992 ; return 0; }
11993 EOF
11994 if { (eval echo configure:11995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11995   rm -rf conftest*
11996   eval "ac_cv_func_$ac_func=yes"
11997 else
11998   echo "configure: failed program was:" >&5
11999   cat conftest.$ac_ext >&5
12000   rm -rf conftest*
12001   eval "ac_cv_func_$ac_func=no"
12002 fi
12003 rm -f conftest*
12004 fi
12005
12006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12007   echo "$ac_t""yes" 1>&6
12008     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12009   cat >> confdefs.h <<EOF
12010 #define $ac_tr_func 1
12011 EOF
12012  
12013 else
12014   echo "$ac_t""no" 1>&6
12015 fi
12016 done
12017     
12018     fi
12019   fi
12020
12021   
12022   
12023   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
12024 echo "configure:12025: checking for log10f declaration" >&5
12025   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
12026     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
12027   echo $ac_n "(cached) $ac_c" 1>&6
12028 else
12029   
12030       
12031       ac_ext=C
12032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12033 ac_cpp='$CXXCPP $CPPFLAGS'
12034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12036 cross_compiling=$ac_cv_prog_cxx_cross
12037
12038       cat > conftest.$ac_ext <<EOF
12039 #line 12040 "configure"
12040 #include "confdefs.h"
12041 #include <math.h>
12042                       #ifdef HAVE_IEEEFP_H
12043                       #include <ieeefp.h>
12044                       #endif
12045                      
12046 int main() {
12047  log10f(0);
12048 ; return 0; }
12049 EOF
12050 if { (eval echo configure:12051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12051   rm -rf conftest*
12052   glibcpp_cv_func_log10f_use=yes
12053 else
12054   echo "configure: failed program was:" >&5
12055   cat conftest.$ac_ext >&5
12056   rm -rf conftest*
12057   glibcpp_cv_func_log10f_use=no
12058 fi
12059 rm -f conftest*
12060       ac_ext=c
12061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12062 ac_cpp='$CPP $CPPFLAGS'
12063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12065 cross_compiling=$ac_cv_prog_cc_cross
12066
12067     
12068 fi
12069
12070   fi
12071   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
12072
12073   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
12074     for ac_func in log10f
12075 do
12076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12077 echo "configure:12078: checking for $ac_func" >&5
12078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12079   echo $ac_n "(cached) $ac_c" 1>&6
12080 else
12081   cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure"
12083 #include "confdefs.h"
12084 /* System header to define __stub macros and hopefully few prototypes,
12085     which can conflict with char $ac_func(); below.  */
12086 #include <assert.h>
12087 /* Override any gcc2 internal prototype to avoid an error.  */
12088 /* We use char because int might match the return type of a gcc2
12089     builtin and then its argument prototype would still apply.  */
12090 char $ac_func();
12091
12092 int main() {
12093
12094 /* The GNU C library defines this for functions which it implements
12095     to always fail with ENOSYS.  Some functions are actually named
12096     something starting with __ and the normal name is an alias.  */
12097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12098 choke me
12099 #else
12100 $ac_func();
12101 #endif
12102
12103 ; return 0; }
12104 EOF
12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12106   rm -rf conftest*
12107   eval "ac_cv_func_$ac_func=yes"
12108 else
12109   echo "configure: failed program was:" >&5
12110   cat conftest.$ac_ext >&5
12111   rm -rf conftest*
12112   eval "ac_cv_func_$ac_func=no"
12113 fi
12114 rm -f conftest*
12115 fi
12116
12117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12118   echo "$ac_t""yes" 1>&6
12119     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12120   cat >> confdefs.h <<EOF
12121 #define $ac_tr_func 1
12122 EOF
12123  
12124 else
12125   echo "$ac_t""no" 1>&6
12126 fi
12127 done
12128     
12129   else
12130     
12131   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
12132 echo "configure:12133: checking for _log10f declaration" >&5
12133   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
12134     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
12135   echo $ac_n "(cached) $ac_c" 1>&6
12136 else
12137   
12138       
12139       ac_ext=C
12140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12141 ac_cpp='$CXXCPP $CPPFLAGS'
12142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12144 cross_compiling=$ac_cv_prog_cxx_cross
12145
12146       cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12149 #include <math.h>
12150                       #ifdef HAVE_IEEEFP_H
12151                       #include <ieeefp.h>
12152                       #endif
12153                      
12154 int main() {
12155  _log10f(0);
12156 ; return 0; }
12157 EOF
12158 if { (eval echo configure:12159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12159   rm -rf conftest*
12160   glibcpp_cv_func__log10f_use=yes
12161 else
12162   echo "configure: failed program was:" >&5
12163   cat conftest.$ac_ext >&5
12164   rm -rf conftest*
12165   glibcpp_cv_func__log10f_use=no
12166 fi
12167 rm -f conftest*
12168       ac_ext=c
12169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12170 ac_cpp='$CPP $CPPFLAGS'
12171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12173 cross_compiling=$ac_cv_prog_cc_cross
12174
12175     
12176 fi
12177
12178   fi
12179   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
12180
12181     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
12182       for ac_func in _log10f
12183 do
12184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12185 echo "configure:12186: checking for $ac_func" >&5
12186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12187   echo $ac_n "(cached) $ac_c" 1>&6
12188 else
12189   cat > conftest.$ac_ext <<EOF
12190 #line 12191 "configure"
12191 #include "confdefs.h"
12192 /* System header to define __stub macros and hopefully few prototypes,
12193     which can conflict with char $ac_func(); below.  */
12194 #include <assert.h>
12195 /* Override any gcc2 internal prototype to avoid an error.  */
12196 /* We use char because int might match the return type of a gcc2
12197     builtin and then its argument prototype would still apply.  */
12198 char $ac_func();
12199
12200 int main() {
12201
12202 /* The GNU C library defines this for functions which it implements
12203     to always fail with ENOSYS.  Some functions are actually named
12204     something starting with __ and the normal name is an alias.  */
12205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12206 choke me
12207 #else
12208 $ac_func();
12209 #endif
12210
12211 ; return 0; }
12212 EOF
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12214   rm -rf conftest*
12215   eval "ac_cv_func_$ac_func=yes"
12216 else
12217   echo "configure: failed program was:" >&5
12218   cat conftest.$ac_ext >&5
12219   rm -rf conftest*
12220   eval "ac_cv_func_$ac_func=no"
12221 fi
12222 rm -f conftest*
12223 fi
12224
12225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12226   echo "$ac_t""yes" 1>&6
12227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12228   cat >> confdefs.h <<EOF
12229 #define $ac_tr_func 1
12230 EOF
12231  
12232 else
12233   echo "$ac_t""no" 1>&6
12234 fi
12235 done
12236     
12237     fi
12238   fi
12239
12240   
12241   
12242   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
12243 echo "configure:12244: checking for modff declaration" >&5
12244   if test x${glibcpp_cv_func_modff_use+set} != xset; then
12245     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
12246   echo $ac_n "(cached) $ac_c" 1>&6
12247 else
12248   
12249       
12250       ac_ext=C
12251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12252 ac_cpp='$CXXCPP $CPPFLAGS'
12253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12255 cross_compiling=$ac_cv_prog_cxx_cross
12256
12257       cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 #include <math.h>
12261 int main() {
12262  modff(0, 0);
12263 ; return 0; }
12264 EOF
12265 if { (eval echo configure:12266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12266   rm -rf conftest*
12267   glibcpp_cv_func_modff_use=yes
12268 else
12269   echo "configure: failed program was:" >&5
12270   cat conftest.$ac_ext >&5
12271   rm -rf conftest*
12272   glibcpp_cv_func_modff_use=no
12273 fi
12274 rm -f conftest*
12275       ac_ext=c
12276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12277 ac_cpp='$CPP $CPPFLAGS'
12278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12280 cross_compiling=$ac_cv_prog_cc_cross
12281
12282     
12283 fi
12284
12285   fi
12286   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
12287
12288   if test x$glibcpp_cv_func_modff_use = x"yes"; then
12289     for ac_func in modff
12290 do
12291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12292 echo "configure:12293: checking for $ac_func" >&5
12293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12294   echo $ac_n "(cached) $ac_c" 1>&6
12295 else
12296   cat > conftest.$ac_ext <<EOF
12297 #line 12298 "configure"
12298 #include "confdefs.h"
12299 /* System header to define __stub macros and hopefully few prototypes,
12300     which can conflict with char $ac_func(); below.  */
12301 #include <assert.h>
12302 /* Override any gcc2 internal prototype to avoid an error.  */
12303 /* We use char because int might match the return type of a gcc2
12304     builtin and then its argument prototype would still apply.  */
12305 char $ac_func();
12306
12307 int main() {
12308
12309 /* The GNU C library defines this for functions which it implements
12310     to always fail with ENOSYS.  Some functions are actually named
12311     something starting with __ and the normal name is an alias.  */
12312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12313 choke me
12314 #else
12315 $ac_func();
12316 #endif
12317
12318 ; return 0; }
12319 EOF
12320 if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12321   rm -rf conftest*
12322   eval "ac_cv_func_$ac_func=yes"
12323 else
12324   echo "configure: failed program was:" >&5
12325   cat conftest.$ac_ext >&5
12326   rm -rf conftest*
12327   eval "ac_cv_func_$ac_func=no"
12328 fi
12329 rm -f conftest*
12330 fi
12331
12332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12333   echo "$ac_t""yes" 1>&6
12334     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12335   cat >> confdefs.h <<EOF
12336 #define $ac_tr_func 1
12337 EOF
12338  
12339 else
12340   echo "$ac_t""no" 1>&6
12341 fi
12342 done
12343     
12344   else
12345     
12346   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
12347 echo "configure:12348: checking for _modff declaration" >&5
12348   if test x${glibcpp_cv_func__modff_use+set} != xset; then
12349     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
12350   echo $ac_n "(cached) $ac_c" 1>&6
12351 else
12352   
12353       
12354       ac_ext=C
12355 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12356 ac_cpp='$CXXCPP $CPPFLAGS'
12357 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12358 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12359 cross_compiling=$ac_cv_prog_cxx_cross
12360
12361       cat > conftest.$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 #include <math.h>
12365 int main() {
12366  _modff(0, 0);
12367 ; return 0; }
12368 EOF
12369 if { (eval echo configure:12370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12370   rm -rf conftest*
12371   glibcpp_cv_func__modff_use=yes
12372 else
12373   echo "configure: failed program was:" >&5
12374   cat conftest.$ac_ext >&5
12375   rm -rf conftest*
12376   glibcpp_cv_func__modff_use=no
12377 fi
12378 rm -f conftest*
12379       ac_ext=c
12380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12381 ac_cpp='$CPP $CPPFLAGS'
12382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12384 cross_compiling=$ac_cv_prog_cc_cross
12385
12386     
12387 fi
12388
12389   fi
12390   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
12391
12392     if test x$glibcpp_cv_func__modff_use = x"yes"; then
12393       for ac_func in _modff
12394 do
12395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12396 echo "configure:12397: checking for $ac_func" >&5
12397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12398   echo $ac_n "(cached) $ac_c" 1>&6
12399 else
12400   cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 /* System header to define __stub macros and hopefully few prototypes,
12404     which can conflict with char $ac_func(); below.  */
12405 #include <assert.h>
12406 /* Override any gcc2 internal prototype to avoid an error.  */
12407 /* We use char because int might match the return type of a gcc2
12408     builtin and then its argument prototype would still apply.  */
12409 char $ac_func();
12410
12411 int main() {
12412
12413 /* The GNU C library defines this for functions which it implements
12414     to always fail with ENOSYS.  Some functions are actually named
12415     something starting with __ and the normal name is an alias.  */
12416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12417 choke me
12418 #else
12419 $ac_func();
12420 #endif
12421
12422 ; return 0; }
12423 EOF
12424 if { (eval echo configure:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12425   rm -rf conftest*
12426   eval "ac_cv_func_$ac_func=yes"
12427 else
12428   echo "configure: failed program was:" >&5
12429   cat conftest.$ac_ext >&5
12430   rm -rf conftest*
12431   eval "ac_cv_func_$ac_func=no"
12432 fi
12433 rm -f conftest*
12434 fi
12435
12436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12437   echo "$ac_t""yes" 1>&6
12438     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12439   cat >> confdefs.h <<EOF
12440 #define $ac_tr_func 1
12441 EOF
12442  
12443 else
12444   echo "$ac_t""no" 1>&6
12445 fi
12446 done
12447     
12448     fi
12449   fi
12450
12451   
12452   
12453   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
12454 echo "configure:12455: checking for powf declaration" >&5
12455   if test x${glibcpp_cv_func_powf_use+set} != xset; then
12456     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
12457   echo $ac_n "(cached) $ac_c" 1>&6
12458 else
12459   
12460       
12461       ac_ext=C
12462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12463 ac_cpp='$CXXCPP $CPPFLAGS'
12464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12466 cross_compiling=$ac_cv_prog_cxx_cross
12467
12468       cat > conftest.$ac_ext <<EOF
12469 #line 12470 "configure"
12470 #include "confdefs.h"
12471 #include <math.h>
12472 int main() {
12473  powf(0, 0);
12474 ; return 0; }
12475 EOF
12476 if { (eval echo configure:12477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12477   rm -rf conftest*
12478   glibcpp_cv_func_powf_use=yes
12479 else
12480   echo "configure: failed program was:" >&5
12481   cat conftest.$ac_ext >&5
12482   rm -rf conftest*
12483   glibcpp_cv_func_powf_use=no
12484 fi
12485 rm -f conftest*
12486       ac_ext=c
12487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12488 ac_cpp='$CPP $CPPFLAGS'
12489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12491 cross_compiling=$ac_cv_prog_cc_cross
12492
12493     
12494 fi
12495
12496   fi
12497   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
12498
12499   if test x$glibcpp_cv_func_powf_use = x"yes"; then
12500     for ac_func in powf
12501 do
12502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12503 echo "configure:12504: checking for $ac_func" >&5
12504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12505   echo $ac_n "(cached) $ac_c" 1>&6
12506 else
12507   cat > conftest.$ac_ext <<EOF
12508 #line 12509 "configure"
12509 #include "confdefs.h"
12510 /* System header to define __stub macros and hopefully few prototypes,
12511     which can conflict with char $ac_func(); below.  */
12512 #include <assert.h>
12513 /* Override any gcc2 internal prototype to avoid an error.  */
12514 /* We use char because int might match the return type of a gcc2
12515     builtin and then its argument prototype would still apply.  */
12516 char $ac_func();
12517
12518 int main() {
12519
12520 /* The GNU C library defines this for functions which it implements
12521     to always fail with ENOSYS.  Some functions are actually named
12522     something starting with __ and the normal name is an alias.  */
12523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12524 choke me
12525 #else
12526 $ac_func();
12527 #endif
12528
12529 ; return 0; }
12530 EOF
12531 if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12532   rm -rf conftest*
12533   eval "ac_cv_func_$ac_func=yes"
12534 else
12535   echo "configure: failed program was:" >&5
12536   cat conftest.$ac_ext >&5
12537   rm -rf conftest*
12538   eval "ac_cv_func_$ac_func=no"
12539 fi
12540 rm -f conftest*
12541 fi
12542
12543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12544   echo "$ac_t""yes" 1>&6
12545     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12546   cat >> confdefs.h <<EOF
12547 #define $ac_tr_func 1
12548 EOF
12549  
12550 else
12551   echo "$ac_t""no" 1>&6
12552 fi
12553 done
12554     
12555   else
12556     
12557   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
12558 echo "configure:12559: checking for _powf declaration" >&5
12559   if test x${glibcpp_cv_func__powf_use+set} != xset; then
12560     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
12561   echo $ac_n "(cached) $ac_c" 1>&6
12562 else
12563   
12564       
12565       ac_ext=C
12566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12567 ac_cpp='$CXXCPP $CPPFLAGS'
12568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12570 cross_compiling=$ac_cv_prog_cxx_cross
12571
12572       cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575 #include <math.h>
12576 int main() {
12577  _powf(0, 0);
12578 ; return 0; }
12579 EOF
12580 if { (eval echo configure:12581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12581   rm -rf conftest*
12582   glibcpp_cv_func__powf_use=yes
12583 else
12584   echo "configure: failed program was:" >&5
12585   cat conftest.$ac_ext >&5
12586   rm -rf conftest*
12587   glibcpp_cv_func__powf_use=no
12588 fi
12589 rm -f conftest*
12590       ac_ext=c
12591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12592 ac_cpp='$CPP $CPPFLAGS'
12593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12595 cross_compiling=$ac_cv_prog_cc_cross
12596
12597     
12598 fi
12599
12600   fi
12601   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
12602
12603     if test x$glibcpp_cv_func__powf_use = x"yes"; then
12604       for ac_func in _powf
12605 do
12606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12607 echo "configure:12608: checking for $ac_func" >&5
12608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12609   echo $ac_n "(cached) $ac_c" 1>&6
12610 else
12611   cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12614 /* System header to define __stub macros and hopefully few prototypes,
12615     which can conflict with char $ac_func(); below.  */
12616 #include <assert.h>
12617 /* Override any gcc2 internal prototype to avoid an error.  */
12618 /* We use char because int might match the return type of a gcc2
12619     builtin and then its argument prototype would still apply.  */
12620 char $ac_func();
12621
12622 int main() {
12623
12624 /* The GNU C library defines this for functions which it implements
12625     to always fail with ENOSYS.  Some functions are actually named
12626     something starting with __ and the normal name is an alias.  */
12627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12628 choke me
12629 #else
12630 $ac_func();
12631 #endif
12632
12633 ; return 0; }
12634 EOF
12635 if { (eval echo configure:12636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12636   rm -rf conftest*
12637   eval "ac_cv_func_$ac_func=yes"
12638 else
12639   echo "configure: failed program was:" >&5
12640   cat conftest.$ac_ext >&5
12641   rm -rf conftest*
12642   eval "ac_cv_func_$ac_func=no"
12643 fi
12644 rm -f conftest*
12645 fi
12646
12647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12648   echo "$ac_t""yes" 1>&6
12649     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12650   cat >> confdefs.h <<EOF
12651 #define $ac_tr_func 1
12652 EOF
12653  
12654 else
12655   echo "$ac_t""no" 1>&6
12656 fi
12657 done
12658     
12659     fi
12660   fi
12661
12662   
12663   
12664   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
12665 echo "configure:12666: checking for sqrtf declaration" >&5
12666   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
12667     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
12668   echo $ac_n "(cached) $ac_c" 1>&6
12669 else
12670   
12671       
12672       ac_ext=C
12673 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12674 ac_cpp='$CXXCPP $CPPFLAGS'
12675 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12676 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12677 cross_compiling=$ac_cv_prog_cxx_cross
12678
12679       cat > conftest.$ac_ext <<EOF
12680 #line 12681 "configure"
12681 #include "confdefs.h"
12682 #include <math.h>
12683                       #ifdef HAVE_IEEEFP_H
12684                       #include <ieeefp.h>
12685                       #endif
12686                      
12687 int main() {
12688  sqrtf(0);
12689 ; return 0; }
12690 EOF
12691 if { (eval echo configure:12692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12692   rm -rf conftest*
12693   glibcpp_cv_func_sqrtf_use=yes
12694 else
12695   echo "configure: failed program was:" >&5
12696   cat conftest.$ac_ext >&5
12697   rm -rf conftest*
12698   glibcpp_cv_func_sqrtf_use=no
12699 fi
12700 rm -f conftest*
12701       ac_ext=c
12702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12703 ac_cpp='$CPP $CPPFLAGS'
12704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12706 cross_compiling=$ac_cv_prog_cc_cross
12707
12708     
12709 fi
12710
12711   fi
12712   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
12713
12714   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
12715     for ac_func in sqrtf
12716 do
12717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12718 echo "configure:12719: checking for $ac_func" >&5
12719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12720   echo $ac_n "(cached) $ac_c" 1>&6
12721 else
12722   cat > conftest.$ac_ext <<EOF
12723 #line 12724 "configure"
12724 #include "confdefs.h"
12725 /* System header to define __stub macros and hopefully few prototypes,
12726     which can conflict with char $ac_func(); below.  */
12727 #include <assert.h>
12728 /* Override any gcc2 internal prototype to avoid an error.  */
12729 /* We use char because int might match the return type of a gcc2
12730     builtin and then its argument prototype would still apply.  */
12731 char $ac_func();
12732
12733 int main() {
12734
12735 /* The GNU C library defines this for functions which it implements
12736     to always fail with ENOSYS.  Some functions are actually named
12737     something starting with __ and the normal name is an alias.  */
12738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12739 choke me
12740 #else
12741 $ac_func();
12742 #endif
12743
12744 ; return 0; }
12745 EOF
12746 if { (eval echo configure:12747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12747   rm -rf conftest*
12748   eval "ac_cv_func_$ac_func=yes"
12749 else
12750   echo "configure: failed program was:" >&5
12751   cat conftest.$ac_ext >&5
12752   rm -rf conftest*
12753   eval "ac_cv_func_$ac_func=no"
12754 fi
12755 rm -f conftest*
12756 fi
12757
12758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12759   echo "$ac_t""yes" 1>&6
12760     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12761   cat >> confdefs.h <<EOF
12762 #define $ac_tr_func 1
12763 EOF
12764  
12765 else
12766   echo "$ac_t""no" 1>&6
12767 fi
12768 done
12769     
12770   else
12771     
12772   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
12773 echo "configure:12774: checking for _sqrtf declaration" >&5
12774   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
12775     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
12776   echo $ac_n "(cached) $ac_c" 1>&6
12777 else
12778   
12779       
12780       ac_ext=C
12781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12782 ac_cpp='$CXXCPP $CPPFLAGS'
12783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12785 cross_compiling=$ac_cv_prog_cxx_cross
12786
12787       cat > conftest.$ac_ext <<EOF
12788 #line 12789 "configure"
12789 #include "confdefs.h"
12790 #include <math.h>
12791                       #ifdef HAVE_IEEEFP_H
12792                       #include <ieeefp.h>
12793                       #endif
12794                      
12795 int main() {
12796  _sqrtf(0);
12797 ; return 0; }
12798 EOF
12799 if { (eval echo configure:12800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12800   rm -rf conftest*
12801   glibcpp_cv_func__sqrtf_use=yes
12802 else
12803   echo "configure: failed program was:" >&5
12804   cat conftest.$ac_ext >&5
12805   rm -rf conftest*
12806   glibcpp_cv_func__sqrtf_use=no
12807 fi
12808 rm -f conftest*
12809       ac_ext=c
12810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12811 ac_cpp='$CPP $CPPFLAGS'
12812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12814 cross_compiling=$ac_cv_prog_cc_cross
12815
12816     
12817 fi
12818
12819   fi
12820   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12821
12822     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12823       for ac_func in _sqrtf
12824 do
12825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12826 echo "configure:12827: checking for $ac_func" >&5
12827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12828   echo $ac_n "(cached) $ac_c" 1>&6
12829 else
12830   cat > conftest.$ac_ext <<EOF
12831 #line 12832 "configure"
12832 #include "confdefs.h"
12833 /* System header to define __stub macros and hopefully few prototypes,
12834     which can conflict with char $ac_func(); below.  */
12835 #include <assert.h>
12836 /* Override any gcc2 internal prototype to avoid an error.  */
12837 /* We use char because int might match the return type of a gcc2
12838     builtin and then its argument prototype would still apply.  */
12839 char $ac_func();
12840
12841 int main() {
12842
12843 /* The GNU C library defines this for functions which it implements
12844     to always fail with ENOSYS.  Some functions are actually named
12845     something starting with __ and the normal name is an alias.  */
12846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12847 choke me
12848 #else
12849 $ac_func();
12850 #endif
12851
12852 ; return 0; }
12853 EOF
12854 if { (eval echo configure:12855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12855   rm -rf conftest*
12856   eval "ac_cv_func_$ac_func=yes"
12857 else
12858   echo "configure: failed program was:" >&5
12859   cat conftest.$ac_ext >&5
12860   rm -rf conftest*
12861   eval "ac_cv_func_$ac_func=no"
12862 fi
12863 rm -f conftest*
12864 fi
12865
12866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12867   echo "$ac_t""yes" 1>&6
12868     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12869   cat >> confdefs.h <<EOF
12870 #define $ac_tr_func 1
12871 EOF
12872  
12873 else
12874   echo "$ac_t""no" 1>&6
12875 fi
12876 done
12877     
12878     fi
12879   fi
12880
12881   
12882   
12883   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
12884 echo "configure:12885: checking for sincosf declaration" >&5
12885   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
12886     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
12887   echo $ac_n "(cached) $ac_c" 1>&6
12888 else
12889   
12890       
12891       ac_ext=C
12892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12893 ac_cpp='$CXXCPP $CPPFLAGS'
12894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12896 cross_compiling=$ac_cv_prog_cxx_cross
12897
12898       cat > conftest.$ac_ext <<EOF
12899 #line 12900 "configure"
12900 #include "confdefs.h"
12901 #include <math.h>
12902 int main() {
12903  sincosf(0, 0, 0);
12904 ; return 0; }
12905 EOF
12906 if { (eval echo configure:12907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12907   rm -rf conftest*
12908   glibcpp_cv_func_sincosf_use=yes
12909 else
12910   echo "configure: failed program was:" >&5
12911   cat conftest.$ac_ext >&5
12912   rm -rf conftest*
12913   glibcpp_cv_func_sincosf_use=no
12914 fi
12915 rm -f conftest*
12916       ac_ext=c
12917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12918 ac_cpp='$CPP $CPPFLAGS'
12919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12921 cross_compiling=$ac_cv_prog_cc_cross
12922
12923     
12924 fi
12925
12926   fi
12927   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
12928
12929   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
12930     for ac_func in sincosf
12931 do
12932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12933 echo "configure:12934: checking for $ac_func" >&5
12934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12935   echo $ac_n "(cached) $ac_c" 1>&6
12936 else
12937   cat > conftest.$ac_ext <<EOF
12938 #line 12939 "configure"
12939 #include "confdefs.h"
12940 /* System header to define __stub macros and hopefully few prototypes,
12941     which can conflict with char $ac_func(); below.  */
12942 #include <assert.h>
12943 /* Override any gcc2 internal prototype to avoid an error.  */
12944 /* We use char because int might match the return type of a gcc2
12945     builtin and then its argument prototype would still apply.  */
12946 char $ac_func();
12947
12948 int main() {
12949
12950 /* The GNU C library defines this for functions which it implements
12951     to always fail with ENOSYS.  Some functions are actually named
12952     something starting with __ and the normal name is an alias.  */
12953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12954 choke me
12955 #else
12956 $ac_func();
12957 #endif
12958
12959 ; return 0; }
12960 EOF
12961 if { (eval echo configure:12962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12962   rm -rf conftest*
12963   eval "ac_cv_func_$ac_func=yes"
12964 else
12965   echo "configure: failed program was:" >&5
12966   cat conftest.$ac_ext >&5
12967   rm -rf conftest*
12968   eval "ac_cv_func_$ac_func=no"
12969 fi
12970 rm -f conftest*
12971 fi
12972
12973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12974   echo "$ac_t""yes" 1>&6
12975     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12976   cat >> confdefs.h <<EOF
12977 #define $ac_tr_func 1
12978 EOF
12979  
12980 else
12981   echo "$ac_t""no" 1>&6
12982 fi
12983 done
12984     
12985   else
12986     
12987   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
12988 echo "configure:12989: checking for _sincosf declaration" >&5
12989   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
12990     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
12991   echo $ac_n "(cached) $ac_c" 1>&6
12992 else
12993   
12994       
12995       ac_ext=C
12996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12997 ac_cpp='$CXXCPP $CPPFLAGS'
12998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13000 cross_compiling=$ac_cv_prog_cxx_cross
13001
13002       cat > conftest.$ac_ext <<EOF
13003 #line 13004 "configure"
13004 #include "confdefs.h"
13005 #include <math.h>
13006 int main() {
13007  _sincosf(0, 0, 0);
13008 ; return 0; }
13009 EOF
13010 if { (eval echo configure:13011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13011   rm -rf conftest*
13012   glibcpp_cv_func__sincosf_use=yes
13013 else
13014   echo "configure: failed program was:" >&5
13015   cat conftest.$ac_ext >&5
13016   rm -rf conftest*
13017   glibcpp_cv_func__sincosf_use=no
13018 fi
13019 rm -f conftest*
13020       ac_ext=c
13021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13022 ac_cpp='$CPP $CPPFLAGS'
13023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13025 cross_compiling=$ac_cv_prog_cc_cross
13026
13027     
13028 fi
13029
13030   fi
13031   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13032
13033     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
13034       for ac_func in _sincosf
13035 do
13036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13037 echo "configure:13038: checking for $ac_func" >&5
13038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13039   echo $ac_n "(cached) $ac_c" 1>&6
13040 else
13041   cat > conftest.$ac_ext <<EOF
13042 #line 13043 "configure"
13043 #include "confdefs.h"
13044 /* System header to define __stub macros and hopefully few prototypes,
13045     which can conflict with char $ac_func(); below.  */
13046 #include <assert.h>
13047 /* Override any gcc2 internal prototype to avoid an error.  */
13048 /* We use char because int might match the return type of a gcc2
13049     builtin and then its argument prototype would still apply.  */
13050 char $ac_func();
13051
13052 int main() {
13053
13054 /* The GNU C library defines this for functions which it implements
13055     to always fail with ENOSYS.  Some functions are actually named
13056     something starting with __ and the normal name is an alias.  */
13057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13058 choke me
13059 #else
13060 $ac_func();
13061 #endif
13062
13063 ; return 0; }
13064 EOF
13065 if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13066   rm -rf conftest*
13067   eval "ac_cv_func_$ac_func=yes"
13068 else
13069   echo "configure: failed program was:" >&5
13070   cat conftest.$ac_ext >&5
13071   rm -rf conftest*
13072   eval "ac_cv_func_$ac_func=no"
13073 fi
13074 rm -f conftest*
13075 fi
13076
13077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13078   echo "$ac_t""yes" 1>&6
13079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13080   cat >> confdefs.h <<EOF
13081 #define $ac_tr_func 1
13082 EOF
13083  
13084 else
13085   echo "$ac_t""no" 1>&6
13086 fi
13087 done
13088     
13089     fi
13090   fi
13091
13092   
13093   
13094   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
13095 echo "configure:13096: checking for finitef declaration" >&5
13096   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
13097     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
13098   echo $ac_n "(cached) $ac_c" 1>&6
13099 else
13100   
13101       
13102       ac_ext=C
13103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13104 ac_cpp='$CXXCPP $CPPFLAGS'
13105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13107 cross_compiling=$ac_cv_prog_cxx_cross
13108
13109       cat > conftest.$ac_ext <<EOF
13110 #line 13111 "configure"
13111 #include "confdefs.h"
13112 #include <math.h>
13113                       #ifdef HAVE_IEEEFP_H
13114                       #include <ieeefp.h>
13115                       #endif
13116                      
13117 int main() {
13118  finitef(0);
13119 ; return 0; }
13120 EOF
13121 if { (eval echo configure:13122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13122   rm -rf conftest*
13123   glibcpp_cv_func_finitef_use=yes
13124 else
13125   echo "configure: failed program was:" >&5
13126   cat conftest.$ac_ext >&5
13127   rm -rf conftest*
13128   glibcpp_cv_func_finitef_use=no
13129 fi
13130 rm -f conftest*
13131       ac_ext=c
13132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13136 cross_compiling=$ac_cv_prog_cc_cross
13137
13138     
13139 fi
13140
13141   fi
13142   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
13143
13144   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
13145     for ac_func in finitef
13146 do
13147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13148 echo "configure:13149: checking for $ac_func" >&5
13149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13150   echo $ac_n "(cached) $ac_c" 1>&6
13151 else
13152   cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 /* System header to define __stub macros and hopefully few prototypes,
13156     which can conflict with char $ac_func(); below.  */
13157 #include <assert.h>
13158 /* Override any gcc2 internal prototype to avoid an error.  */
13159 /* We use char because int might match the return type of a gcc2
13160     builtin and then its argument prototype would still apply.  */
13161 char $ac_func();
13162
13163 int main() {
13164
13165 /* The GNU C library defines this for functions which it implements
13166     to always fail with ENOSYS.  Some functions are actually named
13167     something starting with __ and the normal name is an alias.  */
13168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13169 choke me
13170 #else
13171 $ac_func();
13172 #endif
13173
13174 ; return 0; }
13175 EOF
13176 if { (eval echo configure:13177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177   rm -rf conftest*
13178   eval "ac_cv_func_$ac_func=yes"
13179 else
13180   echo "configure: failed program was:" >&5
13181   cat conftest.$ac_ext >&5
13182   rm -rf conftest*
13183   eval "ac_cv_func_$ac_func=no"
13184 fi
13185 rm -f conftest*
13186 fi
13187
13188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13189   echo "$ac_t""yes" 1>&6
13190     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13191   cat >> confdefs.h <<EOF
13192 #define $ac_tr_func 1
13193 EOF
13194  
13195 else
13196   echo "$ac_t""no" 1>&6
13197 fi
13198 done
13199     
13200   else
13201     
13202   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
13203 echo "configure:13204: checking for _finitef declaration" >&5
13204   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
13205     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
13206   echo $ac_n "(cached) $ac_c" 1>&6
13207 else
13208   
13209       
13210       ac_ext=C
13211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13212 ac_cpp='$CXXCPP $CPPFLAGS'
13213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13215 cross_compiling=$ac_cv_prog_cxx_cross
13216
13217       cat > conftest.$ac_ext <<EOF
13218 #line 13219 "configure"
13219 #include "confdefs.h"
13220 #include <math.h>
13221                       #ifdef HAVE_IEEEFP_H
13222                       #include <ieeefp.h>
13223                       #endif
13224                      
13225 int main() {
13226  _finitef(0);
13227 ; return 0; }
13228 EOF
13229 if { (eval echo configure:13230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13230   rm -rf conftest*
13231   glibcpp_cv_func__finitef_use=yes
13232 else
13233   echo "configure: failed program was:" >&5
13234   cat conftest.$ac_ext >&5
13235   rm -rf conftest*
13236   glibcpp_cv_func__finitef_use=no
13237 fi
13238 rm -f conftest*
13239       ac_ext=c
13240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13241 ac_cpp='$CPP $CPPFLAGS'
13242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13244 cross_compiling=$ac_cv_prog_cc_cross
13245
13246     
13247 fi
13248
13249   fi
13250   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
13251
13252     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
13253       for ac_func in _finitef
13254 do
13255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13256 echo "configure:13257: checking for $ac_func" >&5
13257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13258   echo $ac_n "(cached) $ac_c" 1>&6
13259 else
13260   cat > conftest.$ac_ext <<EOF
13261 #line 13262 "configure"
13262 #include "confdefs.h"
13263 /* System header to define __stub macros and hopefully few prototypes,
13264     which can conflict with char $ac_func(); below.  */
13265 #include <assert.h>
13266 /* Override any gcc2 internal prototype to avoid an error.  */
13267 /* We use char because int might match the return type of a gcc2
13268     builtin and then its argument prototype would still apply.  */
13269 char $ac_func();
13270
13271 int main() {
13272
13273 /* The GNU C library defines this for functions which it implements
13274     to always fail with ENOSYS.  Some functions are actually named
13275     something starting with __ and the normal name is an alias.  */
13276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13277 choke me
13278 #else
13279 $ac_func();
13280 #endif
13281
13282 ; return 0; }
13283 EOF
13284 if { (eval echo configure:13285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13285   rm -rf conftest*
13286   eval "ac_cv_func_$ac_func=yes"
13287 else
13288   echo "configure: failed program was:" >&5
13289   cat conftest.$ac_ext >&5
13290   rm -rf conftest*
13291   eval "ac_cv_func_$ac_func=no"
13292 fi
13293 rm -f conftest*
13294 fi
13295
13296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13297   echo "$ac_t""yes" 1>&6
13298     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13299   cat >> confdefs.h <<EOF
13300 #define $ac_tr_func 1
13301 EOF
13302  
13303 else
13304   echo "$ac_t""no" 1>&6
13305 fi
13306 done
13307     
13308     fi
13309   fi
13310
13311
13312     
13313   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
13314 echo "configure:13315: checking for long double trig functions" >&5
13315   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
13316   echo $ac_n "(cached) $ac_c" 1>&6
13317 else
13318   
13319     
13320     ac_ext=C
13321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CXXCPP $CPPFLAGS'
13323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cxx_cross
13326
13327     cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13330 #include <math.h>
13331 int main() {
13332  `for x in acosl asinl atanl \
13333                                           cosl sinl tanl \
13334                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
13335 ; return 0; }
13336 EOF
13337 if { (eval echo configure:13338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13338   rm -rf conftest*
13339   glibcpp_cv_func_long_double_trig_use=yes
13340 else
13341   echo "configure: failed program was:" >&5
13342   cat conftest.$ac_ext >&5
13343   rm -rf conftest*
13344   glibcpp_cv_func_long_double_trig_use=no
13345 fi
13346 rm -f conftest*
13347     ac_ext=c
13348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13349 ac_cpp='$CPP $CPPFLAGS'
13350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13352 cross_compiling=$ac_cv_prog_cc_cross
13353
13354 fi
13355
13356   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
13357   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
13358     for ac_func in acosl asinl atanl \
13359                                           cosl sinl tanl \
13360                                           coshl sinhl tanhl
13361 do
13362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13363 echo "configure:13364: checking for $ac_func" >&5
13364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13365   echo $ac_n "(cached) $ac_c" 1>&6
13366 else
13367   cat > conftest.$ac_ext <<EOF
13368 #line 13369 "configure"
13369 #include "confdefs.h"
13370 /* System header to define __stub macros and hopefully few prototypes,
13371     which can conflict with char $ac_func(); below.  */
13372 #include <assert.h>
13373 /* Override any gcc2 internal prototype to avoid an error.  */
13374 /* We use char because int might match the return type of a gcc2
13375     builtin and then its argument prototype would still apply.  */
13376 char $ac_func();
13377
13378 int main() {
13379
13380 /* The GNU C library defines this for functions which it implements
13381     to always fail with ENOSYS.  Some functions are actually named
13382     something starting with __ and the normal name is an alias.  */
13383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13384 choke me
13385 #else
13386 $ac_func();
13387 #endif
13388
13389 ; return 0; }
13390 EOF
13391 if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13392   rm -rf conftest*
13393   eval "ac_cv_func_$ac_func=yes"
13394 else
13395   echo "configure: failed program was:" >&5
13396   cat conftest.$ac_ext >&5
13397   rm -rf conftest*
13398   eval "ac_cv_func_$ac_func=no"
13399 fi
13400 rm -f conftest*
13401 fi
13402
13403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13404   echo "$ac_t""yes" 1>&6
13405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13406   cat >> confdefs.h <<EOF
13407 #define $ac_tr_func 1
13408 EOF
13409  
13410 else
13411   echo "$ac_t""no" 1>&6
13412 fi
13413 done
13414
13415   fi
13416
13417   
13418   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
13419 echo "configure:13420: checking for long double round functions" >&5
13420   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
13421   echo $ac_n "(cached) $ac_c" 1>&6
13422 else
13423   
13424     
13425     ac_ext=C
13426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13427 ac_cpp='$CXXCPP $CPPFLAGS'
13428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13430 cross_compiling=$ac_cv_prog_cxx_cross
13431
13432     cat > conftest.$ac_ext <<EOF
13433 #line 13434 "configure"
13434 #include "confdefs.h"
13435 #include <math.h>
13436 int main() {
13437  `for x in ceill floorl; do echo "$x (0);"; done` 
13438 ; return 0; }
13439 EOF
13440 if { (eval echo configure:13441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13441   rm -rf conftest*
13442   glibcpp_cv_func_long_double_round_use=yes
13443 else
13444   echo "configure: failed program was:" >&5
13445   cat conftest.$ac_ext >&5
13446   rm -rf conftest*
13447   glibcpp_cv_func_long_double_round_use=no
13448 fi
13449 rm -f conftest*
13450     ac_ext=c
13451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13452 ac_cpp='$CPP $CPPFLAGS'
13453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13455 cross_compiling=$ac_cv_prog_cc_cross
13456
13457 fi
13458
13459   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
13460   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
13461     for ac_func in ceill floorl
13462 do
13463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13464 echo "configure:13465: checking for $ac_func" >&5
13465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13466   echo $ac_n "(cached) $ac_c" 1>&6
13467 else
13468   cat > conftest.$ac_ext <<EOF
13469 #line 13470 "configure"
13470 #include "confdefs.h"
13471 /* System header to define __stub macros and hopefully few prototypes,
13472     which can conflict with char $ac_func(); below.  */
13473 #include <assert.h>
13474 /* Override any gcc2 internal prototype to avoid an error.  */
13475 /* We use char because int might match the return type of a gcc2
13476     builtin and then its argument prototype would still apply.  */
13477 char $ac_func();
13478
13479 int main() {
13480
13481 /* The GNU C library defines this for functions which it implements
13482     to always fail with ENOSYS.  Some functions are actually named
13483     something starting with __ and the normal name is an alias.  */
13484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13485 choke me
13486 #else
13487 $ac_func();
13488 #endif
13489
13490 ; return 0; }
13491 EOF
13492 if { (eval echo configure:13493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13493   rm -rf conftest*
13494   eval "ac_cv_func_$ac_func=yes"
13495 else
13496   echo "configure: failed program was:" >&5
13497   cat conftest.$ac_ext >&5
13498   rm -rf conftest*
13499   eval "ac_cv_func_$ac_func=no"
13500 fi
13501 rm -f conftest*
13502 fi
13503
13504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13505   echo "$ac_t""yes" 1>&6
13506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13507   cat >> confdefs.h <<EOF
13508 #define $ac_tr_func 1
13509 EOF
13510  
13511 else
13512   echo "$ac_t""no" 1>&6
13513 fi
13514 done
13515
13516   fi
13517
13518   
13519   
13520   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
13521 echo "configure:13522: checking for isnanl declaration" >&5
13522   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
13523     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
13524   echo $ac_n "(cached) $ac_c" 1>&6
13525 else
13526   
13527       
13528       ac_ext=C
13529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13530 ac_cpp='$CXXCPP $CPPFLAGS'
13531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13533 cross_compiling=$ac_cv_prog_cxx_cross
13534
13535       cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13538 #include <math.h>
13539                       #ifdef HAVE_IEEEFP_H
13540                       #include <ieeefp.h>
13541                       #endif
13542                      
13543 int main() {
13544  isnanl(0);
13545 ; return 0; }
13546 EOF
13547 if { (eval echo configure:13548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13548   rm -rf conftest*
13549   glibcpp_cv_func_isnanl_use=yes
13550 else
13551   echo "configure: failed program was:" >&5
13552   cat conftest.$ac_ext >&5
13553   rm -rf conftest*
13554   glibcpp_cv_func_isnanl_use=no
13555 fi
13556 rm -f conftest*
13557       ac_ext=c
13558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13559 ac_cpp='$CPP $CPPFLAGS'
13560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13562 cross_compiling=$ac_cv_prog_cc_cross
13563
13564     
13565 fi
13566
13567   fi
13568   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
13569
13570   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
13571     for ac_func in isnanl
13572 do
13573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13574 echo "configure:13575: checking for $ac_func" >&5
13575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13576   echo $ac_n "(cached) $ac_c" 1>&6
13577 else
13578   cat > conftest.$ac_ext <<EOF
13579 #line 13580 "configure"
13580 #include "confdefs.h"
13581 /* System header to define __stub macros and hopefully few prototypes,
13582     which can conflict with char $ac_func(); below.  */
13583 #include <assert.h>
13584 /* Override any gcc2 internal prototype to avoid an error.  */
13585 /* We use char because int might match the return type of a gcc2
13586     builtin and then its argument prototype would still apply.  */
13587 char $ac_func();
13588
13589 int main() {
13590
13591 /* The GNU C library defines this for functions which it implements
13592     to always fail with ENOSYS.  Some functions are actually named
13593     something starting with __ and the normal name is an alias.  */
13594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13595 choke me
13596 #else
13597 $ac_func();
13598 #endif
13599
13600 ; return 0; }
13601 EOF
13602 if { (eval echo configure:13603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13603   rm -rf conftest*
13604   eval "ac_cv_func_$ac_func=yes"
13605 else
13606   echo "configure: failed program was:" >&5
13607   cat conftest.$ac_ext >&5
13608   rm -rf conftest*
13609   eval "ac_cv_func_$ac_func=no"
13610 fi
13611 rm -f conftest*
13612 fi
13613
13614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13615   echo "$ac_t""yes" 1>&6
13616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13617   cat >> confdefs.h <<EOF
13618 #define $ac_tr_func 1
13619 EOF
13620  
13621 else
13622   echo "$ac_t""no" 1>&6
13623 fi
13624 done
13625     
13626   else
13627     
13628   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
13629 echo "configure:13630: checking for _isnanl declaration" >&5
13630   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
13631     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
13632   echo $ac_n "(cached) $ac_c" 1>&6
13633 else
13634   
13635       
13636       ac_ext=C
13637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13638 ac_cpp='$CXXCPP $CPPFLAGS'
13639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13641 cross_compiling=$ac_cv_prog_cxx_cross
13642
13643       cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13646 #include <math.h>
13647                       #ifdef HAVE_IEEEFP_H
13648                       #include <ieeefp.h>
13649                       #endif
13650                      
13651 int main() {
13652  _isnanl(0);
13653 ; return 0; }
13654 EOF
13655 if { (eval echo configure:13656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13656   rm -rf conftest*
13657   glibcpp_cv_func__isnanl_use=yes
13658 else
13659   echo "configure: failed program was:" >&5
13660   cat conftest.$ac_ext >&5
13661   rm -rf conftest*
13662   glibcpp_cv_func__isnanl_use=no
13663 fi
13664 rm -f conftest*
13665       ac_ext=c
13666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13667 ac_cpp='$CPP $CPPFLAGS'
13668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13670 cross_compiling=$ac_cv_prog_cc_cross
13671
13672     
13673 fi
13674
13675   fi
13676   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
13677
13678     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
13679       for ac_func in _isnanl
13680 do
13681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13682 echo "configure:13683: checking for $ac_func" >&5
13683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13684   echo $ac_n "(cached) $ac_c" 1>&6
13685 else
13686   cat > conftest.$ac_ext <<EOF
13687 #line 13688 "configure"
13688 #include "confdefs.h"
13689 /* System header to define __stub macros and hopefully few prototypes,
13690     which can conflict with char $ac_func(); below.  */
13691 #include <assert.h>
13692 /* Override any gcc2 internal prototype to avoid an error.  */
13693 /* We use char because int might match the return type of a gcc2
13694     builtin and then its argument prototype would still apply.  */
13695 char $ac_func();
13696
13697 int main() {
13698
13699 /* The GNU C library defines this for functions which it implements
13700     to always fail with ENOSYS.  Some functions are actually named
13701     something starting with __ and the normal name is an alias.  */
13702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13703 choke me
13704 #else
13705 $ac_func();
13706 #endif
13707
13708 ; return 0; }
13709 EOF
13710 if { (eval echo configure:13711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13711   rm -rf conftest*
13712   eval "ac_cv_func_$ac_func=yes"
13713 else
13714   echo "configure: failed program was:" >&5
13715   cat conftest.$ac_ext >&5
13716   rm -rf conftest*
13717   eval "ac_cv_func_$ac_func=no"
13718 fi
13719 rm -f conftest*
13720 fi
13721
13722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13723   echo "$ac_t""yes" 1>&6
13724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13725   cat >> confdefs.h <<EOF
13726 #define $ac_tr_func 1
13727 EOF
13728  
13729 else
13730   echo "$ac_t""no" 1>&6
13731 fi
13732 done
13733     
13734     fi
13735   fi
13736
13737   
13738   
13739   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
13740 echo "configure:13741: checking for isinfl declaration" >&5
13741   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
13742     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
13743   echo $ac_n "(cached) $ac_c" 1>&6
13744 else
13745   
13746       
13747       ac_ext=C
13748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13749 ac_cpp='$CXXCPP $CPPFLAGS'
13750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13752 cross_compiling=$ac_cv_prog_cxx_cross
13753
13754       cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 #include <math.h>
13758                       #ifdef HAVE_IEEEFP_H
13759                       #include <ieeefp.h>
13760                       #endif
13761                      
13762 int main() {
13763  isinfl(0);
13764 ; return 0; }
13765 EOF
13766 if { (eval echo configure:13767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13767   rm -rf conftest*
13768   glibcpp_cv_func_isinfl_use=yes
13769 else
13770   echo "configure: failed program was:" >&5
13771   cat conftest.$ac_ext >&5
13772   rm -rf conftest*
13773   glibcpp_cv_func_isinfl_use=no
13774 fi
13775 rm -f conftest*
13776       ac_ext=c
13777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13778 ac_cpp='$CPP $CPPFLAGS'
13779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13781 cross_compiling=$ac_cv_prog_cc_cross
13782
13783     
13784 fi
13785
13786   fi
13787   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
13788
13789   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
13790     for ac_func in isinfl
13791 do
13792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13793 echo "configure:13794: checking for $ac_func" >&5
13794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13795   echo $ac_n "(cached) $ac_c" 1>&6
13796 else
13797   cat > conftest.$ac_ext <<EOF
13798 #line 13799 "configure"
13799 #include "confdefs.h"
13800 /* System header to define __stub macros and hopefully few prototypes,
13801     which can conflict with char $ac_func(); below.  */
13802 #include <assert.h>
13803 /* Override any gcc2 internal prototype to avoid an error.  */
13804 /* We use char because int might match the return type of a gcc2
13805     builtin and then its argument prototype would still apply.  */
13806 char $ac_func();
13807
13808 int main() {
13809
13810 /* The GNU C library defines this for functions which it implements
13811     to always fail with ENOSYS.  Some functions are actually named
13812     something starting with __ and the normal name is an alias.  */
13813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13814 choke me
13815 #else
13816 $ac_func();
13817 #endif
13818
13819 ; return 0; }
13820 EOF
13821 if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13822   rm -rf conftest*
13823   eval "ac_cv_func_$ac_func=yes"
13824 else
13825   echo "configure: failed program was:" >&5
13826   cat conftest.$ac_ext >&5
13827   rm -rf conftest*
13828   eval "ac_cv_func_$ac_func=no"
13829 fi
13830 rm -f conftest*
13831 fi
13832
13833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13834   echo "$ac_t""yes" 1>&6
13835     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13836   cat >> confdefs.h <<EOF
13837 #define $ac_tr_func 1
13838 EOF
13839  
13840 else
13841   echo "$ac_t""no" 1>&6
13842 fi
13843 done
13844     
13845   else
13846     
13847   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13848 echo "configure:13849: checking for _isinfl declaration" >&5
13849   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
13850     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13851   echo $ac_n "(cached) $ac_c" 1>&6
13852 else
13853   
13854       
13855       ac_ext=C
13856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13857 ac_cpp='$CXXCPP $CPPFLAGS'
13858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13860 cross_compiling=$ac_cv_prog_cxx_cross
13861
13862       cat > conftest.$ac_ext <<EOF
13863 #line 13864 "configure"
13864 #include "confdefs.h"
13865 #include <math.h>
13866                       #ifdef HAVE_IEEEFP_H
13867                       #include <ieeefp.h>
13868                       #endif
13869                      
13870 int main() {
13871  _isinfl(0);
13872 ; return 0; }
13873 EOF
13874 if { (eval echo configure:13875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13875   rm -rf conftest*
13876   glibcpp_cv_func__isinfl_use=yes
13877 else
13878   echo "configure: failed program was:" >&5
13879   cat conftest.$ac_ext >&5
13880   rm -rf conftest*
13881   glibcpp_cv_func__isinfl_use=no
13882 fi
13883 rm -f conftest*
13884       ac_ext=c
13885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13886 ac_cpp='$CPP $CPPFLAGS'
13887 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13888 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13889 cross_compiling=$ac_cv_prog_cc_cross
13890
13891     
13892 fi
13893
13894   fi
13895   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13896
13897     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
13898       for ac_func in _isinfl
13899 do
13900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13901 echo "configure:13902: checking for $ac_func" >&5
13902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13903   echo $ac_n "(cached) $ac_c" 1>&6
13904 else
13905   cat > conftest.$ac_ext <<EOF
13906 #line 13907 "configure"
13907 #include "confdefs.h"
13908 /* System header to define __stub macros and hopefully few prototypes,
13909     which can conflict with char $ac_func(); below.  */
13910 #include <assert.h>
13911 /* Override any gcc2 internal prototype to avoid an error.  */
13912 /* We use char because int might match the return type of a gcc2
13913     builtin and then its argument prototype would still apply.  */
13914 char $ac_func();
13915
13916 int main() {
13917
13918 /* The GNU C library defines this for functions which it implements
13919     to always fail with ENOSYS.  Some functions are actually named
13920     something starting with __ and the normal name is an alias.  */
13921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13922 choke me
13923 #else
13924 $ac_func();
13925 #endif
13926
13927 ; return 0; }
13928 EOF
13929 if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13930   rm -rf conftest*
13931   eval "ac_cv_func_$ac_func=yes"
13932 else
13933   echo "configure: failed program was:" >&5
13934   cat conftest.$ac_ext >&5
13935   rm -rf conftest*
13936   eval "ac_cv_func_$ac_func=no"
13937 fi
13938 rm -f conftest*
13939 fi
13940
13941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13942   echo "$ac_t""yes" 1>&6
13943     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13944   cat >> confdefs.h <<EOF
13945 #define $ac_tr_func 1
13946 EOF
13947  
13948 else
13949   echo "$ac_t""no" 1>&6
13950 fi
13951 done
13952     
13953     fi
13954   fi
13955
13956   
13957   
13958   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
13959 echo "configure:13960: checking for copysignl declaration" >&5
13960   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
13961     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
13962   echo $ac_n "(cached) $ac_c" 1>&6
13963 else
13964   
13965       
13966       ac_ext=C
13967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13968 ac_cpp='$CXXCPP $CPPFLAGS'
13969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13971 cross_compiling=$ac_cv_prog_cxx_cross
13972
13973       cat > conftest.$ac_ext <<EOF
13974 #line 13975 "configure"
13975 #include "confdefs.h"
13976 #include <math.h>
13977 int main() {
13978  copysignl(0, 0);
13979 ; return 0; }
13980 EOF
13981 if { (eval echo configure:13982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13982   rm -rf conftest*
13983   glibcpp_cv_func_copysignl_use=yes
13984 else
13985   echo "configure: failed program was:" >&5
13986   cat conftest.$ac_ext >&5
13987   rm -rf conftest*
13988   glibcpp_cv_func_copysignl_use=no
13989 fi
13990 rm -f conftest*
13991       ac_ext=c
13992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13993 ac_cpp='$CPP $CPPFLAGS'
13994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13996 cross_compiling=$ac_cv_prog_cc_cross
13997
13998     
13999 fi
14000
14001   fi
14002   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14003
14004   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14005     for ac_func in copysignl
14006 do
14007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14008 echo "configure:14009: checking for $ac_func" >&5
14009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14010   echo $ac_n "(cached) $ac_c" 1>&6
14011 else
14012   cat > conftest.$ac_ext <<EOF
14013 #line 14014 "configure"
14014 #include "confdefs.h"
14015 /* System header to define __stub macros and hopefully few prototypes,
14016     which can conflict with char $ac_func(); below.  */
14017 #include <assert.h>
14018 /* Override any gcc2 internal prototype to avoid an error.  */
14019 /* We use char because int might match the return type of a gcc2
14020     builtin and then its argument prototype would still apply.  */
14021 char $ac_func();
14022
14023 int main() {
14024
14025 /* The GNU C library defines this for functions which it implements
14026     to always fail with ENOSYS.  Some functions are actually named
14027     something starting with __ and the normal name is an alias.  */
14028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14029 choke me
14030 #else
14031 $ac_func();
14032 #endif
14033
14034 ; return 0; }
14035 EOF
14036 if { (eval echo configure:14037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14037   rm -rf conftest*
14038   eval "ac_cv_func_$ac_func=yes"
14039 else
14040   echo "configure: failed program was:" >&5
14041   cat conftest.$ac_ext >&5
14042   rm -rf conftest*
14043   eval "ac_cv_func_$ac_func=no"
14044 fi
14045 rm -f conftest*
14046 fi
14047
14048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14049   echo "$ac_t""yes" 1>&6
14050     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14051   cat >> confdefs.h <<EOF
14052 #define $ac_tr_func 1
14053 EOF
14054  
14055 else
14056   echo "$ac_t""no" 1>&6
14057 fi
14058 done
14059     
14060   else
14061     
14062   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
14063 echo "configure:14064: checking for _copysignl declaration" >&5
14064   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
14065     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
14066   echo $ac_n "(cached) $ac_c" 1>&6
14067 else
14068   
14069       
14070       ac_ext=C
14071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14072 ac_cpp='$CXXCPP $CPPFLAGS'
14073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14075 cross_compiling=$ac_cv_prog_cxx_cross
14076
14077       cat > conftest.$ac_ext <<EOF
14078 #line 14079 "configure"
14079 #include "confdefs.h"
14080 #include <math.h>
14081 int main() {
14082  _copysignl(0, 0);
14083 ; return 0; }
14084 EOF
14085 if { (eval echo configure:14086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14086   rm -rf conftest*
14087   glibcpp_cv_func__copysignl_use=yes
14088 else
14089   echo "configure: failed program was:" >&5
14090   cat conftest.$ac_ext >&5
14091   rm -rf conftest*
14092   glibcpp_cv_func__copysignl_use=no
14093 fi
14094 rm -f conftest*
14095       ac_ext=c
14096 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14097 ac_cpp='$CPP $CPPFLAGS'
14098 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14099 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14100 cross_compiling=$ac_cv_prog_cc_cross
14101
14102     
14103 fi
14104
14105   fi
14106   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
14107
14108     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
14109       for ac_func in _copysignl
14110 do
14111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14112 echo "configure:14113: checking for $ac_func" >&5
14113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14114   echo $ac_n "(cached) $ac_c" 1>&6
14115 else
14116   cat > conftest.$ac_ext <<EOF
14117 #line 14118 "configure"
14118 #include "confdefs.h"
14119 /* System header to define __stub macros and hopefully few prototypes,
14120     which can conflict with char $ac_func(); below.  */
14121 #include <assert.h>
14122 /* Override any gcc2 internal prototype to avoid an error.  */
14123 /* We use char because int might match the return type of a gcc2
14124     builtin and then its argument prototype would still apply.  */
14125 char $ac_func();
14126
14127 int main() {
14128
14129 /* The GNU C library defines this for functions which it implements
14130     to always fail with ENOSYS.  Some functions are actually named
14131     something starting with __ and the normal name is an alias.  */
14132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14133 choke me
14134 #else
14135 $ac_func();
14136 #endif
14137
14138 ; return 0; }
14139 EOF
14140 if { (eval echo configure:14141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14141   rm -rf conftest*
14142   eval "ac_cv_func_$ac_func=yes"
14143 else
14144   echo "configure: failed program was:" >&5
14145   cat conftest.$ac_ext >&5
14146   rm -rf conftest*
14147   eval "ac_cv_func_$ac_func=no"
14148 fi
14149 rm -f conftest*
14150 fi
14151
14152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14153   echo "$ac_t""yes" 1>&6
14154     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14155   cat >> confdefs.h <<EOF
14156 #define $ac_tr_func 1
14157 EOF
14158  
14159 else
14160   echo "$ac_t""no" 1>&6
14161 fi
14162 done
14163     
14164     fi
14165   fi
14166
14167   
14168   
14169   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
14170 echo "configure:14171: checking for atan2l declaration" >&5
14171   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
14172     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
14173   echo $ac_n "(cached) $ac_c" 1>&6
14174 else
14175   
14176       
14177       ac_ext=C
14178 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14179 ac_cpp='$CXXCPP $CPPFLAGS'
14180 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14181 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14182 cross_compiling=$ac_cv_prog_cxx_cross
14183
14184       cat > conftest.$ac_ext <<EOF
14185 #line 14186 "configure"
14186 #include "confdefs.h"
14187 #include <math.h>
14188 int main() {
14189  atan2l(0, 0);
14190 ; return 0; }
14191 EOF
14192 if { (eval echo configure:14193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14193   rm -rf conftest*
14194   glibcpp_cv_func_atan2l_use=yes
14195 else
14196   echo "configure: failed program was:" >&5
14197   cat conftest.$ac_ext >&5
14198   rm -rf conftest*
14199   glibcpp_cv_func_atan2l_use=no
14200 fi
14201 rm -f conftest*
14202       ac_ext=c
14203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14204 ac_cpp='$CPP $CPPFLAGS'
14205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14207 cross_compiling=$ac_cv_prog_cc_cross
14208
14209     
14210 fi
14211
14212   fi
14213   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
14214
14215   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
14216     for ac_func in atan2l
14217 do
14218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14219 echo "configure:14220: checking for $ac_func" >&5
14220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14221   echo $ac_n "(cached) $ac_c" 1>&6
14222 else
14223   cat > conftest.$ac_ext <<EOF
14224 #line 14225 "configure"
14225 #include "confdefs.h"
14226 /* System header to define __stub macros and hopefully few prototypes,
14227     which can conflict with char $ac_func(); below.  */
14228 #include <assert.h>
14229 /* Override any gcc2 internal prototype to avoid an error.  */
14230 /* We use char because int might match the return type of a gcc2
14231     builtin and then its argument prototype would still apply.  */
14232 char $ac_func();
14233
14234 int main() {
14235
14236 /* The GNU C library defines this for functions which it implements
14237     to always fail with ENOSYS.  Some functions are actually named
14238     something starting with __ and the normal name is an alias.  */
14239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14240 choke me
14241 #else
14242 $ac_func();
14243 #endif
14244
14245 ; return 0; }
14246 EOF
14247 if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14248   rm -rf conftest*
14249   eval "ac_cv_func_$ac_func=yes"
14250 else
14251   echo "configure: failed program was:" >&5
14252   cat conftest.$ac_ext >&5
14253   rm -rf conftest*
14254   eval "ac_cv_func_$ac_func=no"
14255 fi
14256 rm -f conftest*
14257 fi
14258
14259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14260   echo "$ac_t""yes" 1>&6
14261     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14262   cat >> confdefs.h <<EOF
14263 #define $ac_tr_func 1
14264 EOF
14265  
14266 else
14267   echo "$ac_t""no" 1>&6
14268 fi
14269 done
14270     
14271   else
14272     
14273   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
14274 echo "configure:14275: checking for _atan2l declaration" >&5
14275   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
14276     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
14277   echo $ac_n "(cached) $ac_c" 1>&6
14278 else
14279   
14280       
14281       ac_ext=C
14282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14283 ac_cpp='$CXXCPP $CPPFLAGS'
14284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14286 cross_compiling=$ac_cv_prog_cxx_cross
14287
14288       cat > conftest.$ac_ext <<EOF
14289 #line 14290 "configure"
14290 #include "confdefs.h"
14291 #include <math.h>
14292 int main() {
14293  _atan2l(0, 0);
14294 ; return 0; }
14295 EOF
14296 if { (eval echo configure:14297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14297   rm -rf conftest*
14298   glibcpp_cv_func__atan2l_use=yes
14299 else
14300   echo "configure: failed program was:" >&5
14301   cat conftest.$ac_ext >&5
14302   rm -rf conftest*
14303   glibcpp_cv_func__atan2l_use=no
14304 fi
14305 rm -f conftest*
14306       ac_ext=c
14307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14308 ac_cpp='$CPP $CPPFLAGS'
14309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14311 cross_compiling=$ac_cv_prog_cc_cross
14312
14313     
14314 fi
14315
14316   fi
14317   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
14318
14319     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
14320       for ac_func in _atan2l
14321 do
14322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14323 echo "configure:14324: checking for $ac_func" >&5
14324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14325   echo $ac_n "(cached) $ac_c" 1>&6
14326 else
14327   cat > conftest.$ac_ext <<EOF
14328 #line 14329 "configure"
14329 #include "confdefs.h"
14330 /* System header to define __stub macros and hopefully few prototypes,
14331     which can conflict with char $ac_func(); below.  */
14332 #include <assert.h>
14333 /* Override any gcc2 internal prototype to avoid an error.  */
14334 /* We use char because int might match the return type of a gcc2
14335     builtin and then its argument prototype would still apply.  */
14336 char $ac_func();
14337
14338 int main() {
14339
14340 /* The GNU C library defines this for functions which it implements
14341     to always fail with ENOSYS.  Some functions are actually named
14342     something starting with __ and the normal name is an alias.  */
14343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14344 choke me
14345 #else
14346 $ac_func();
14347 #endif
14348
14349 ; return 0; }
14350 EOF
14351 if { (eval echo configure:14352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14352   rm -rf conftest*
14353   eval "ac_cv_func_$ac_func=yes"
14354 else
14355   echo "configure: failed program was:" >&5
14356   cat conftest.$ac_ext >&5
14357   rm -rf conftest*
14358   eval "ac_cv_func_$ac_func=no"
14359 fi
14360 rm -f conftest*
14361 fi
14362
14363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14364   echo "$ac_t""yes" 1>&6
14365     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14366   cat >> confdefs.h <<EOF
14367 #define $ac_tr_func 1
14368 EOF
14369  
14370 else
14371   echo "$ac_t""no" 1>&6
14372 fi
14373 done
14374     
14375     fi
14376   fi
14377
14378   
14379   
14380   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
14381 echo "configure:14382: checking for expl declaration" >&5
14382   if test x${glibcpp_cv_func_expl_use+set} != xset; then
14383     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
14384   echo $ac_n "(cached) $ac_c" 1>&6
14385 else
14386   
14387       
14388       ac_ext=C
14389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14390 ac_cpp='$CXXCPP $CPPFLAGS'
14391 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14392 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14393 cross_compiling=$ac_cv_prog_cxx_cross
14394
14395       cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure"
14397 #include "confdefs.h"
14398 #include <math.h>
14399                       #ifdef HAVE_IEEEFP_H
14400                       #include <ieeefp.h>
14401                       #endif
14402                      
14403 int main() {
14404  expl(0);
14405 ; return 0; }
14406 EOF
14407 if { (eval echo configure:14408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14408   rm -rf conftest*
14409   glibcpp_cv_func_expl_use=yes
14410 else
14411   echo "configure: failed program was:" >&5
14412   cat conftest.$ac_ext >&5
14413   rm -rf conftest*
14414   glibcpp_cv_func_expl_use=no
14415 fi
14416 rm -f conftest*
14417       ac_ext=c
14418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14419 ac_cpp='$CPP $CPPFLAGS'
14420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14422 cross_compiling=$ac_cv_prog_cc_cross
14423
14424     
14425 fi
14426
14427   fi
14428   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
14429
14430   if test x$glibcpp_cv_func_expl_use = x"yes"; then
14431     for ac_func in expl
14432 do
14433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14434 echo "configure:14435: checking for $ac_func" >&5
14435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14436   echo $ac_n "(cached) $ac_c" 1>&6
14437 else
14438   cat > conftest.$ac_ext <<EOF
14439 #line 14440 "configure"
14440 #include "confdefs.h"
14441 /* System header to define __stub macros and hopefully few prototypes,
14442     which can conflict with char $ac_func(); below.  */
14443 #include <assert.h>
14444 /* Override any gcc2 internal prototype to avoid an error.  */
14445 /* We use char because int might match the return type of a gcc2
14446     builtin and then its argument prototype would still apply.  */
14447 char $ac_func();
14448
14449 int main() {
14450
14451 /* The GNU C library defines this for functions which it implements
14452     to always fail with ENOSYS.  Some functions are actually named
14453     something starting with __ and the normal name is an alias.  */
14454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14455 choke me
14456 #else
14457 $ac_func();
14458 #endif
14459
14460 ; return 0; }
14461 EOF
14462 if { (eval echo configure:14463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14463   rm -rf conftest*
14464   eval "ac_cv_func_$ac_func=yes"
14465 else
14466   echo "configure: failed program was:" >&5
14467   cat conftest.$ac_ext >&5
14468   rm -rf conftest*
14469   eval "ac_cv_func_$ac_func=no"
14470 fi
14471 rm -f conftest*
14472 fi
14473
14474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14475   echo "$ac_t""yes" 1>&6
14476     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14477   cat >> confdefs.h <<EOF
14478 #define $ac_tr_func 1
14479 EOF
14480  
14481 else
14482   echo "$ac_t""no" 1>&6
14483 fi
14484 done
14485     
14486   else
14487     
14488   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
14489 echo "configure:14490: checking for _expl declaration" >&5
14490   if test x${glibcpp_cv_func__expl_use+set} != xset; then
14491     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
14492   echo $ac_n "(cached) $ac_c" 1>&6
14493 else
14494   
14495       
14496       ac_ext=C
14497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14498 ac_cpp='$CXXCPP $CPPFLAGS'
14499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14501 cross_compiling=$ac_cv_prog_cxx_cross
14502
14503       cat > conftest.$ac_ext <<EOF
14504 #line 14505 "configure"
14505 #include "confdefs.h"
14506 #include <math.h>
14507                       #ifdef HAVE_IEEEFP_H
14508                       #include <ieeefp.h>
14509                       #endif
14510                      
14511 int main() {
14512  _expl(0);
14513 ; return 0; }
14514 EOF
14515 if { (eval echo configure:14516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14516   rm -rf conftest*
14517   glibcpp_cv_func__expl_use=yes
14518 else
14519   echo "configure: failed program was:" >&5
14520   cat conftest.$ac_ext >&5
14521   rm -rf conftest*
14522   glibcpp_cv_func__expl_use=no
14523 fi
14524 rm -f conftest*
14525       ac_ext=c
14526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14527 ac_cpp='$CPP $CPPFLAGS'
14528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14530 cross_compiling=$ac_cv_prog_cc_cross
14531
14532     
14533 fi
14534
14535   fi
14536   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
14537
14538     if test x$glibcpp_cv_func__expl_use = x"yes"; then
14539       for ac_func in _expl
14540 do
14541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14542 echo "configure:14543: checking for $ac_func" >&5
14543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14544   echo $ac_n "(cached) $ac_c" 1>&6
14545 else
14546   cat > conftest.$ac_ext <<EOF
14547 #line 14548 "configure"
14548 #include "confdefs.h"
14549 /* System header to define __stub macros and hopefully few prototypes,
14550     which can conflict with char $ac_func(); below.  */
14551 #include <assert.h>
14552 /* Override any gcc2 internal prototype to avoid an error.  */
14553 /* We use char because int might match the return type of a gcc2
14554     builtin and then its argument prototype would still apply.  */
14555 char $ac_func();
14556
14557 int main() {
14558
14559 /* The GNU C library defines this for functions which it implements
14560     to always fail with ENOSYS.  Some functions are actually named
14561     something starting with __ and the normal name is an alias.  */
14562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14563 choke me
14564 #else
14565 $ac_func();
14566 #endif
14567
14568 ; return 0; }
14569 EOF
14570 if { (eval echo configure:14571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14571   rm -rf conftest*
14572   eval "ac_cv_func_$ac_func=yes"
14573 else
14574   echo "configure: failed program was:" >&5
14575   cat conftest.$ac_ext >&5
14576   rm -rf conftest*
14577   eval "ac_cv_func_$ac_func=no"
14578 fi
14579 rm -f conftest*
14580 fi
14581
14582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14583   echo "$ac_t""yes" 1>&6
14584     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14585   cat >> confdefs.h <<EOF
14586 #define $ac_tr_func 1
14587 EOF
14588  
14589 else
14590   echo "$ac_t""no" 1>&6
14591 fi
14592 done
14593     
14594     fi
14595   fi
14596
14597   
14598   
14599   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
14600 echo "configure:14601: checking for fabsl declaration" >&5
14601   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
14602     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
14603   echo $ac_n "(cached) $ac_c" 1>&6
14604 else
14605   
14606       
14607       ac_ext=C
14608 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14609 ac_cpp='$CXXCPP $CPPFLAGS'
14610 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14611 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14612 cross_compiling=$ac_cv_prog_cxx_cross
14613
14614       cat > conftest.$ac_ext <<EOF
14615 #line 14616 "configure"
14616 #include "confdefs.h"
14617 #include <math.h>
14618                       #ifdef HAVE_IEEEFP_H
14619                       #include <ieeefp.h>
14620                       #endif
14621                      
14622 int main() {
14623  fabsl(0);
14624 ; return 0; }
14625 EOF
14626 if { (eval echo configure:14627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14627   rm -rf conftest*
14628   glibcpp_cv_func_fabsl_use=yes
14629 else
14630   echo "configure: failed program was:" >&5
14631   cat conftest.$ac_ext >&5
14632   rm -rf conftest*
14633   glibcpp_cv_func_fabsl_use=no
14634 fi
14635 rm -f conftest*
14636       ac_ext=c
14637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14638 ac_cpp='$CPP $CPPFLAGS'
14639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14641 cross_compiling=$ac_cv_prog_cc_cross
14642
14643     
14644 fi
14645
14646   fi
14647   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
14648
14649   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
14650     for ac_func in fabsl
14651 do
14652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14653 echo "configure:14654: checking for $ac_func" >&5
14654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14655   echo $ac_n "(cached) $ac_c" 1>&6
14656 else
14657   cat > conftest.$ac_ext <<EOF
14658 #line 14659 "configure"
14659 #include "confdefs.h"
14660 /* System header to define __stub macros and hopefully few prototypes,
14661     which can conflict with char $ac_func(); below.  */
14662 #include <assert.h>
14663 /* Override any gcc2 internal prototype to avoid an error.  */
14664 /* We use char because int might match the return type of a gcc2
14665     builtin and then its argument prototype would still apply.  */
14666 char $ac_func();
14667
14668 int main() {
14669
14670 /* The GNU C library defines this for functions which it implements
14671     to always fail with ENOSYS.  Some functions are actually named
14672     something starting with __ and the normal name is an alias.  */
14673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14674 choke me
14675 #else
14676 $ac_func();
14677 #endif
14678
14679 ; return 0; }
14680 EOF
14681 if { (eval echo configure:14682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14682   rm -rf conftest*
14683   eval "ac_cv_func_$ac_func=yes"
14684 else
14685   echo "configure: failed program was:" >&5
14686   cat conftest.$ac_ext >&5
14687   rm -rf conftest*
14688   eval "ac_cv_func_$ac_func=no"
14689 fi
14690 rm -f conftest*
14691 fi
14692
14693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14694   echo "$ac_t""yes" 1>&6
14695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14696   cat >> confdefs.h <<EOF
14697 #define $ac_tr_func 1
14698 EOF
14699  
14700 else
14701   echo "$ac_t""no" 1>&6
14702 fi
14703 done
14704     
14705   else
14706     
14707   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
14708 echo "configure:14709: checking for _fabsl declaration" >&5
14709   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
14710     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
14711   echo $ac_n "(cached) $ac_c" 1>&6
14712 else
14713   
14714       
14715       ac_ext=C
14716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14717 ac_cpp='$CXXCPP $CPPFLAGS'
14718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14720 cross_compiling=$ac_cv_prog_cxx_cross
14721
14722       cat > conftest.$ac_ext <<EOF
14723 #line 14724 "configure"
14724 #include "confdefs.h"
14725 #include <math.h>
14726                       #ifdef HAVE_IEEEFP_H
14727                       #include <ieeefp.h>
14728                       #endif
14729                      
14730 int main() {
14731  _fabsl(0);
14732 ; return 0; }
14733 EOF
14734 if { (eval echo configure:14735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14735   rm -rf conftest*
14736   glibcpp_cv_func__fabsl_use=yes
14737 else
14738   echo "configure: failed program was:" >&5
14739   cat conftest.$ac_ext >&5
14740   rm -rf conftest*
14741   glibcpp_cv_func__fabsl_use=no
14742 fi
14743 rm -f conftest*
14744       ac_ext=c
14745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14746 ac_cpp='$CPP $CPPFLAGS'
14747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14749 cross_compiling=$ac_cv_prog_cc_cross
14750
14751     
14752 fi
14753
14754   fi
14755   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
14756
14757     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
14758       for ac_func in _fabsl
14759 do
14760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14761 echo "configure:14762: checking for $ac_func" >&5
14762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14763   echo $ac_n "(cached) $ac_c" 1>&6
14764 else
14765   cat > conftest.$ac_ext <<EOF
14766 #line 14767 "configure"
14767 #include "confdefs.h"
14768 /* System header to define __stub macros and hopefully few prototypes,
14769     which can conflict with char $ac_func(); below.  */
14770 #include <assert.h>
14771 /* Override any gcc2 internal prototype to avoid an error.  */
14772 /* We use char because int might match the return type of a gcc2
14773     builtin and then its argument prototype would still apply.  */
14774 char $ac_func();
14775
14776 int main() {
14777
14778 /* The GNU C library defines this for functions which it implements
14779     to always fail with ENOSYS.  Some functions are actually named
14780     something starting with __ and the normal name is an alias.  */
14781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14782 choke me
14783 #else
14784 $ac_func();
14785 #endif
14786
14787 ; return 0; }
14788 EOF
14789 if { (eval echo configure:14790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14790   rm -rf conftest*
14791   eval "ac_cv_func_$ac_func=yes"
14792 else
14793   echo "configure: failed program was:" >&5
14794   cat conftest.$ac_ext >&5
14795   rm -rf conftest*
14796   eval "ac_cv_func_$ac_func=no"
14797 fi
14798 rm -f conftest*
14799 fi
14800
14801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14802   echo "$ac_t""yes" 1>&6
14803     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14804   cat >> confdefs.h <<EOF
14805 #define $ac_tr_func 1
14806 EOF
14807  
14808 else
14809   echo "$ac_t""no" 1>&6
14810 fi
14811 done
14812     
14813     fi
14814   fi
14815
14816   
14817   
14818   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14819 echo "configure:14820: checking for fmodl declaration" >&5
14820   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14821     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14822   echo $ac_n "(cached) $ac_c" 1>&6
14823 else
14824   
14825       
14826       ac_ext=C
14827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14828 ac_cpp='$CXXCPP $CPPFLAGS'
14829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14831 cross_compiling=$ac_cv_prog_cxx_cross
14832
14833       cat > conftest.$ac_ext <<EOF
14834 #line 14835 "configure"
14835 #include "confdefs.h"
14836 #include <math.h>
14837 int main() {
14838  fmodl(0, 0);
14839 ; return 0; }
14840 EOF
14841 if { (eval echo configure:14842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14842   rm -rf conftest*
14843   glibcpp_cv_func_fmodl_use=yes
14844 else
14845   echo "configure: failed program was:" >&5
14846   cat conftest.$ac_ext >&5
14847   rm -rf conftest*
14848   glibcpp_cv_func_fmodl_use=no
14849 fi
14850 rm -f conftest*
14851       ac_ext=c
14852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14853 ac_cpp='$CPP $CPPFLAGS'
14854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14856 cross_compiling=$ac_cv_prog_cc_cross
14857
14858     
14859 fi
14860
14861   fi
14862   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
14863
14864   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
14865     for ac_func in fmodl
14866 do
14867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14868 echo "configure:14869: checking for $ac_func" >&5
14869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14870   echo $ac_n "(cached) $ac_c" 1>&6
14871 else
14872   cat > conftest.$ac_ext <<EOF
14873 #line 14874 "configure"
14874 #include "confdefs.h"
14875 /* System header to define __stub macros and hopefully few prototypes,
14876     which can conflict with char $ac_func(); below.  */
14877 #include <assert.h>
14878 /* Override any gcc2 internal prototype to avoid an error.  */
14879 /* We use char because int might match the return type of a gcc2
14880     builtin and then its argument prototype would still apply.  */
14881 char $ac_func();
14882
14883 int main() {
14884
14885 /* The GNU C library defines this for functions which it implements
14886     to always fail with ENOSYS.  Some functions are actually named
14887     something starting with __ and the normal name is an alias.  */
14888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14889 choke me
14890 #else
14891 $ac_func();
14892 #endif
14893
14894 ; return 0; }
14895 EOF
14896 if { (eval echo configure:14897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14897   rm -rf conftest*
14898   eval "ac_cv_func_$ac_func=yes"
14899 else
14900   echo "configure: failed program was:" >&5
14901   cat conftest.$ac_ext >&5
14902   rm -rf conftest*
14903   eval "ac_cv_func_$ac_func=no"
14904 fi
14905 rm -f conftest*
14906 fi
14907
14908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14909   echo "$ac_t""yes" 1>&6
14910     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14911   cat >> confdefs.h <<EOF
14912 #define $ac_tr_func 1
14913 EOF
14914  
14915 else
14916   echo "$ac_t""no" 1>&6
14917 fi
14918 done
14919     
14920   else
14921     
14922   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
14923 echo "configure:14924: checking for _fmodl declaration" >&5
14924   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
14925     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
14926   echo $ac_n "(cached) $ac_c" 1>&6
14927 else
14928   
14929       
14930       ac_ext=C
14931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14932 ac_cpp='$CXXCPP $CPPFLAGS'
14933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14935 cross_compiling=$ac_cv_prog_cxx_cross
14936
14937       cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 #include <math.h>
14941 int main() {
14942  _fmodl(0, 0);
14943 ; return 0; }
14944 EOF
14945 if { (eval echo configure:14946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14946   rm -rf conftest*
14947   glibcpp_cv_func__fmodl_use=yes
14948 else
14949   echo "configure: failed program was:" >&5
14950   cat conftest.$ac_ext >&5
14951   rm -rf conftest*
14952   glibcpp_cv_func__fmodl_use=no
14953 fi
14954 rm -f conftest*
14955       ac_ext=c
14956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14957 ac_cpp='$CPP $CPPFLAGS'
14958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14960 cross_compiling=$ac_cv_prog_cc_cross
14961
14962     
14963 fi
14964
14965   fi
14966   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
14967
14968     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
14969       for ac_func in _fmodl
14970 do
14971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14972 echo "configure:14973: checking for $ac_func" >&5
14973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14974   echo $ac_n "(cached) $ac_c" 1>&6
14975 else
14976   cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 /* System header to define __stub macros and hopefully few prototypes,
14980     which can conflict with char $ac_func(); below.  */
14981 #include <assert.h>
14982 /* Override any gcc2 internal prototype to avoid an error.  */
14983 /* We use char because int might match the return type of a gcc2
14984     builtin and then its argument prototype would still apply.  */
14985 char $ac_func();
14986
14987 int main() {
14988
14989 /* The GNU C library defines this for functions which it implements
14990     to always fail with ENOSYS.  Some functions are actually named
14991     something starting with __ and the normal name is an alias.  */
14992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14993 choke me
14994 #else
14995 $ac_func();
14996 #endif
14997
14998 ; return 0; }
14999 EOF
15000 if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15001   rm -rf conftest*
15002   eval "ac_cv_func_$ac_func=yes"
15003 else
15004   echo "configure: failed program was:" >&5
15005   cat conftest.$ac_ext >&5
15006   rm -rf conftest*
15007   eval "ac_cv_func_$ac_func=no"
15008 fi
15009 rm -f conftest*
15010 fi
15011
15012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15013   echo "$ac_t""yes" 1>&6
15014     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15015   cat >> confdefs.h <<EOF
15016 #define $ac_tr_func 1
15017 EOF
15018  
15019 else
15020   echo "$ac_t""no" 1>&6
15021 fi
15022 done
15023     
15024     fi
15025   fi
15026
15027   
15028   
15029   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
15030 echo "configure:15031: checking for frexpl declaration" >&5
15031   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
15032     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
15033   echo $ac_n "(cached) $ac_c" 1>&6
15034 else
15035   
15036       
15037       ac_ext=C
15038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15039 ac_cpp='$CXXCPP $CPPFLAGS'
15040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15042 cross_compiling=$ac_cv_prog_cxx_cross
15043
15044       cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 #include <math.h>
15048 int main() {
15049  frexpl(0, 0);
15050 ; return 0; }
15051 EOF
15052 if { (eval echo configure:15053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15053   rm -rf conftest*
15054   glibcpp_cv_func_frexpl_use=yes
15055 else
15056   echo "configure: failed program was:" >&5
15057   cat conftest.$ac_ext >&5
15058   rm -rf conftest*
15059   glibcpp_cv_func_frexpl_use=no
15060 fi
15061 rm -f conftest*
15062       ac_ext=c
15063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15064 ac_cpp='$CPP $CPPFLAGS'
15065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15067 cross_compiling=$ac_cv_prog_cc_cross
15068
15069     
15070 fi
15071
15072   fi
15073   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
15074
15075   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
15076     for ac_func in frexpl
15077 do
15078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15079 echo "configure:15080: checking for $ac_func" >&5
15080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15081   echo $ac_n "(cached) $ac_c" 1>&6
15082 else
15083   cat > conftest.$ac_ext <<EOF
15084 #line 15085 "configure"
15085 #include "confdefs.h"
15086 /* System header to define __stub macros and hopefully few prototypes,
15087     which can conflict with char $ac_func(); below.  */
15088 #include <assert.h>
15089 /* Override any gcc2 internal prototype to avoid an error.  */
15090 /* We use char because int might match the return type of a gcc2
15091     builtin and then its argument prototype would still apply.  */
15092 char $ac_func();
15093
15094 int main() {
15095
15096 /* The GNU C library defines this for functions which it implements
15097     to always fail with ENOSYS.  Some functions are actually named
15098     something starting with __ and the normal name is an alias.  */
15099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15100 choke me
15101 #else
15102 $ac_func();
15103 #endif
15104
15105 ; return 0; }
15106 EOF
15107 if { (eval echo configure:15108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15108   rm -rf conftest*
15109   eval "ac_cv_func_$ac_func=yes"
15110 else
15111   echo "configure: failed program was:" >&5
15112   cat conftest.$ac_ext >&5
15113   rm -rf conftest*
15114   eval "ac_cv_func_$ac_func=no"
15115 fi
15116 rm -f conftest*
15117 fi
15118
15119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15120   echo "$ac_t""yes" 1>&6
15121     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15122   cat >> confdefs.h <<EOF
15123 #define $ac_tr_func 1
15124 EOF
15125  
15126 else
15127   echo "$ac_t""no" 1>&6
15128 fi
15129 done
15130     
15131   else
15132     
15133   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
15134 echo "configure:15135: checking for _frexpl declaration" >&5
15135   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
15136     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
15137   echo $ac_n "(cached) $ac_c" 1>&6
15138 else
15139   
15140       
15141       ac_ext=C
15142 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15143 ac_cpp='$CXXCPP $CPPFLAGS'
15144 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15145 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15146 cross_compiling=$ac_cv_prog_cxx_cross
15147
15148       cat > conftest.$ac_ext <<EOF
15149 #line 15150 "configure"
15150 #include "confdefs.h"
15151 #include <math.h>
15152 int main() {
15153  _frexpl(0, 0);
15154 ; return 0; }
15155 EOF
15156 if { (eval echo configure:15157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15157   rm -rf conftest*
15158   glibcpp_cv_func__frexpl_use=yes
15159 else
15160   echo "configure: failed program was:" >&5
15161   cat conftest.$ac_ext >&5
15162   rm -rf conftest*
15163   glibcpp_cv_func__frexpl_use=no
15164 fi
15165 rm -f conftest*
15166       ac_ext=c
15167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15168 ac_cpp='$CPP $CPPFLAGS'
15169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15171 cross_compiling=$ac_cv_prog_cc_cross
15172
15173     
15174 fi
15175
15176   fi
15177   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
15178
15179     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
15180       for ac_func in _frexpl
15181 do
15182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15183 echo "configure:15184: checking for $ac_func" >&5
15184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15185   echo $ac_n "(cached) $ac_c" 1>&6
15186 else
15187   cat > conftest.$ac_ext <<EOF
15188 #line 15189 "configure"
15189 #include "confdefs.h"
15190 /* System header to define __stub macros and hopefully few prototypes,
15191     which can conflict with char $ac_func(); below.  */
15192 #include <assert.h>
15193 /* Override any gcc2 internal prototype to avoid an error.  */
15194 /* We use char because int might match the return type of a gcc2
15195     builtin and then its argument prototype would still apply.  */
15196 char $ac_func();
15197
15198 int main() {
15199
15200 /* The GNU C library defines this for functions which it implements
15201     to always fail with ENOSYS.  Some functions are actually named
15202     something starting with __ and the normal name is an alias.  */
15203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15204 choke me
15205 #else
15206 $ac_func();
15207 #endif
15208
15209 ; return 0; }
15210 EOF
15211 if { (eval echo configure:15212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15212   rm -rf conftest*
15213   eval "ac_cv_func_$ac_func=yes"
15214 else
15215   echo "configure: failed program was:" >&5
15216   cat conftest.$ac_ext >&5
15217   rm -rf conftest*
15218   eval "ac_cv_func_$ac_func=no"
15219 fi
15220 rm -f conftest*
15221 fi
15222
15223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15224   echo "$ac_t""yes" 1>&6
15225     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15226   cat >> confdefs.h <<EOF
15227 #define $ac_tr_func 1
15228 EOF
15229  
15230 else
15231   echo "$ac_t""no" 1>&6
15232 fi
15233 done
15234     
15235     fi
15236   fi
15237
15238   
15239   
15240   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
15241 echo "configure:15242: checking for hypotl declaration" >&5
15242   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
15243     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
15244   echo $ac_n "(cached) $ac_c" 1>&6
15245 else
15246   
15247       
15248       ac_ext=C
15249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15250 ac_cpp='$CXXCPP $CPPFLAGS'
15251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15253 cross_compiling=$ac_cv_prog_cxx_cross
15254
15255       cat > conftest.$ac_ext <<EOF
15256 #line 15257 "configure"
15257 #include "confdefs.h"
15258 #include <math.h>
15259 int main() {
15260  hypotl(0, 0);
15261 ; return 0; }
15262 EOF
15263 if { (eval echo configure:15264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15264   rm -rf conftest*
15265   glibcpp_cv_func_hypotl_use=yes
15266 else
15267   echo "configure: failed program was:" >&5
15268   cat conftest.$ac_ext >&5
15269   rm -rf conftest*
15270   glibcpp_cv_func_hypotl_use=no
15271 fi
15272 rm -f conftest*
15273       ac_ext=c
15274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15275 ac_cpp='$CPP $CPPFLAGS'
15276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15278 cross_compiling=$ac_cv_prog_cc_cross
15279
15280     
15281 fi
15282
15283   fi
15284   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
15285
15286   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
15287     for ac_func in hypotl
15288 do
15289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15290 echo "configure:15291: checking for $ac_func" >&5
15291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15292   echo $ac_n "(cached) $ac_c" 1>&6
15293 else
15294   cat > conftest.$ac_ext <<EOF
15295 #line 15296 "configure"
15296 #include "confdefs.h"
15297 /* System header to define __stub macros and hopefully few prototypes,
15298     which can conflict with char $ac_func(); below.  */
15299 #include <assert.h>
15300 /* Override any gcc2 internal prototype to avoid an error.  */
15301 /* We use char because int might match the return type of a gcc2
15302     builtin and then its argument prototype would still apply.  */
15303 char $ac_func();
15304
15305 int main() {
15306
15307 /* The GNU C library defines this for functions which it implements
15308     to always fail with ENOSYS.  Some functions are actually named
15309     something starting with __ and the normal name is an alias.  */
15310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15311 choke me
15312 #else
15313 $ac_func();
15314 #endif
15315
15316 ; return 0; }
15317 EOF
15318 if { (eval echo configure:15319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15319   rm -rf conftest*
15320   eval "ac_cv_func_$ac_func=yes"
15321 else
15322   echo "configure: failed program was:" >&5
15323   cat conftest.$ac_ext >&5
15324   rm -rf conftest*
15325   eval "ac_cv_func_$ac_func=no"
15326 fi
15327 rm -f conftest*
15328 fi
15329
15330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15331   echo "$ac_t""yes" 1>&6
15332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15333   cat >> confdefs.h <<EOF
15334 #define $ac_tr_func 1
15335 EOF
15336  
15337 else
15338   echo "$ac_t""no" 1>&6
15339 fi
15340 done
15341     
15342   else
15343     
15344   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
15345 echo "configure:15346: checking for _hypotl declaration" >&5
15346   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
15347     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
15348   echo $ac_n "(cached) $ac_c" 1>&6
15349 else
15350   
15351       
15352       ac_ext=C
15353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15354 ac_cpp='$CXXCPP $CPPFLAGS'
15355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15357 cross_compiling=$ac_cv_prog_cxx_cross
15358
15359       cat > conftest.$ac_ext <<EOF
15360 #line 15361 "configure"
15361 #include "confdefs.h"
15362 #include <math.h>
15363 int main() {
15364  _hypotl(0, 0);
15365 ; return 0; }
15366 EOF
15367 if { (eval echo configure:15368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15368   rm -rf conftest*
15369   glibcpp_cv_func__hypotl_use=yes
15370 else
15371   echo "configure: failed program was:" >&5
15372   cat conftest.$ac_ext >&5
15373   rm -rf conftest*
15374   glibcpp_cv_func__hypotl_use=no
15375 fi
15376 rm -f conftest*
15377       ac_ext=c
15378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15379 ac_cpp='$CPP $CPPFLAGS'
15380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15382 cross_compiling=$ac_cv_prog_cc_cross
15383
15384     
15385 fi
15386
15387   fi
15388   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
15389
15390     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
15391       for ac_func in _hypotl
15392 do
15393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15394 echo "configure:15395: checking for $ac_func" >&5
15395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15396   echo $ac_n "(cached) $ac_c" 1>&6
15397 else
15398   cat > conftest.$ac_ext <<EOF
15399 #line 15400 "configure"
15400 #include "confdefs.h"
15401 /* System header to define __stub macros and hopefully few prototypes,
15402     which can conflict with char $ac_func(); below.  */
15403 #include <assert.h>
15404 /* Override any gcc2 internal prototype to avoid an error.  */
15405 /* We use char because int might match the return type of a gcc2
15406     builtin and then its argument prototype would still apply.  */
15407 char $ac_func();
15408
15409 int main() {
15410
15411 /* The GNU C library defines this for functions which it implements
15412     to always fail with ENOSYS.  Some functions are actually named
15413     something starting with __ and the normal name is an alias.  */
15414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15415 choke me
15416 #else
15417 $ac_func();
15418 #endif
15419
15420 ; return 0; }
15421 EOF
15422 if { (eval echo configure:15423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15423   rm -rf conftest*
15424   eval "ac_cv_func_$ac_func=yes"
15425 else
15426   echo "configure: failed program was:" >&5
15427   cat conftest.$ac_ext >&5
15428   rm -rf conftest*
15429   eval "ac_cv_func_$ac_func=no"
15430 fi
15431 rm -f conftest*
15432 fi
15433
15434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15435   echo "$ac_t""yes" 1>&6
15436     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15437   cat >> confdefs.h <<EOF
15438 #define $ac_tr_func 1
15439 EOF
15440  
15441 else
15442   echo "$ac_t""no" 1>&6
15443 fi
15444 done
15445     
15446     fi
15447   fi
15448
15449   
15450   
15451   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
15452 echo "configure:15453: checking for ldexpl declaration" >&5
15453   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
15454     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
15455   echo $ac_n "(cached) $ac_c" 1>&6
15456 else
15457   
15458       
15459       ac_ext=C
15460 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15461 ac_cpp='$CXXCPP $CPPFLAGS'
15462 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15463 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15464 cross_compiling=$ac_cv_prog_cxx_cross
15465
15466       cat > conftest.$ac_ext <<EOF
15467 #line 15468 "configure"
15468 #include "confdefs.h"
15469 #include <math.h>
15470 int main() {
15471  ldexpl(0, 0);
15472 ; return 0; }
15473 EOF
15474 if { (eval echo configure:15475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15475   rm -rf conftest*
15476   glibcpp_cv_func_ldexpl_use=yes
15477 else
15478   echo "configure: failed program was:" >&5
15479   cat conftest.$ac_ext >&5
15480   rm -rf conftest*
15481   glibcpp_cv_func_ldexpl_use=no
15482 fi
15483 rm -f conftest*
15484       ac_ext=c
15485 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15486 ac_cpp='$CPP $CPPFLAGS'
15487 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15488 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15489 cross_compiling=$ac_cv_prog_cc_cross
15490
15491     
15492 fi
15493
15494   fi
15495   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
15496
15497   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
15498     for ac_func in ldexpl
15499 do
15500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15501 echo "configure:15502: checking for $ac_func" >&5
15502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15503   echo $ac_n "(cached) $ac_c" 1>&6
15504 else
15505   cat > conftest.$ac_ext <<EOF
15506 #line 15507 "configure"
15507 #include "confdefs.h"
15508 /* System header to define __stub macros and hopefully few prototypes,
15509     which can conflict with char $ac_func(); below.  */
15510 #include <assert.h>
15511 /* Override any gcc2 internal prototype to avoid an error.  */
15512 /* We use char because int might match the return type of a gcc2
15513     builtin and then its argument prototype would still apply.  */
15514 char $ac_func();
15515
15516 int main() {
15517
15518 /* The GNU C library defines this for functions which it implements
15519     to always fail with ENOSYS.  Some functions are actually named
15520     something starting with __ and the normal name is an alias.  */
15521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15522 choke me
15523 #else
15524 $ac_func();
15525 #endif
15526
15527 ; return 0; }
15528 EOF
15529 if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15530   rm -rf conftest*
15531   eval "ac_cv_func_$ac_func=yes"
15532 else
15533   echo "configure: failed program was:" >&5
15534   cat conftest.$ac_ext >&5
15535   rm -rf conftest*
15536   eval "ac_cv_func_$ac_func=no"
15537 fi
15538 rm -f conftest*
15539 fi
15540
15541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15542   echo "$ac_t""yes" 1>&6
15543     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15544   cat >> confdefs.h <<EOF
15545 #define $ac_tr_func 1
15546 EOF
15547  
15548 else
15549   echo "$ac_t""no" 1>&6
15550 fi
15551 done
15552     
15553   else
15554     
15555   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
15556 echo "configure:15557: checking for _ldexpl declaration" >&5
15557   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
15558     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
15559   echo $ac_n "(cached) $ac_c" 1>&6
15560 else
15561   
15562       
15563       ac_ext=C
15564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15565 ac_cpp='$CXXCPP $CPPFLAGS'
15566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15568 cross_compiling=$ac_cv_prog_cxx_cross
15569
15570       cat > conftest.$ac_ext <<EOF
15571 #line 15572 "configure"
15572 #include "confdefs.h"
15573 #include <math.h>
15574 int main() {
15575  _ldexpl(0, 0);
15576 ; return 0; }
15577 EOF
15578 if { (eval echo configure:15579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15579   rm -rf conftest*
15580   glibcpp_cv_func__ldexpl_use=yes
15581 else
15582   echo "configure: failed program was:" >&5
15583   cat conftest.$ac_ext >&5
15584   rm -rf conftest*
15585   glibcpp_cv_func__ldexpl_use=no
15586 fi
15587 rm -f conftest*
15588       ac_ext=c
15589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15590 ac_cpp='$CPP $CPPFLAGS'
15591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15593 cross_compiling=$ac_cv_prog_cc_cross
15594
15595     
15596 fi
15597
15598   fi
15599   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
15600
15601     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
15602       for ac_func in _ldexpl
15603 do
15604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15605 echo "configure:15606: checking for $ac_func" >&5
15606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15607   echo $ac_n "(cached) $ac_c" 1>&6
15608 else
15609   cat > conftest.$ac_ext <<EOF
15610 #line 15611 "configure"
15611 #include "confdefs.h"
15612 /* System header to define __stub macros and hopefully few prototypes,
15613     which can conflict with char $ac_func(); below.  */
15614 #include <assert.h>
15615 /* Override any gcc2 internal prototype to avoid an error.  */
15616 /* We use char because int might match the return type of a gcc2
15617     builtin and then its argument prototype would still apply.  */
15618 char $ac_func();
15619
15620 int main() {
15621
15622 /* The GNU C library defines this for functions which it implements
15623     to always fail with ENOSYS.  Some functions are actually named
15624     something starting with __ and the normal name is an alias.  */
15625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15626 choke me
15627 #else
15628 $ac_func();
15629 #endif
15630
15631 ; return 0; }
15632 EOF
15633 if { (eval echo configure:15634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15634   rm -rf conftest*
15635   eval "ac_cv_func_$ac_func=yes"
15636 else
15637   echo "configure: failed program was:" >&5
15638   cat conftest.$ac_ext >&5
15639   rm -rf conftest*
15640   eval "ac_cv_func_$ac_func=no"
15641 fi
15642 rm -f conftest*
15643 fi
15644
15645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15646   echo "$ac_t""yes" 1>&6
15647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15648   cat >> confdefs.h <<EOF
15649 #define $ac_tr_func 1
15650 EOF
15651  
15652 else
15653   echo "$ac_t""no" 1>&6
15654 fi
15655 done
15656     
15657     fi
15658   fi
15659
15660   
15661   
15662   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
15663 echo "configure:15664: checking for logl declaration" >&5
15664   if test x${glibcpp_cv_func_logl_use+set} != xset; then
15665     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
15666   echo $ac_n "(cached) $ac_c" 1>&6
15667 else
15668   
15669       
15670       ac_ext=C
15671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15672 ac_cpp='$CXXCPP $CPPFLAGS'
15673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15675 cross_compiling=$ac_cv_prog_cxx_cross
15676
15677       cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 #include <math.h>
15681                       #ifdef HAVE_IEEEFP_H
15682                       #include <ieeefp.h>
15683                       #endif
15684                      
15685 int main() {
15686  logl(0);
15687 ; return 0; }
15688 EOF
15689 if { (eval echo configure:15690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15690   rm -rf conftest*
15691   glibcpp_cv_func_logl_use=yes
15692 else
15693   echo "configure: failed program was:" >&5
15694   cat conftest.$ac_ext >&5
15695   rm -rf conftest*
15696   glibcpp_cv_func_logl_use=no
15697 fi
15698 rm -f conftest*
15699       ac_ext=c
15700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15701 ac_cpp='$CPP $CPPFLAGS'
15702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15704 cross_compiling=$ac_cv_prog_cc_cross
15705
15706     
15707 fi
15708
15709   fi
15710   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
15711
15712   if test x$glibcpp_cv_func_logl_use = x"yes"; then
15713     for ac_func in logl
15714 do
15715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15716 echo "configure:15717: checking for $ac_func" >&5
15717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15718   echo $ac_n "(cached) $ac_c" 1>&6
15719 else
15720   cat > conftest.$ac_ext <<EOF
15721 #line 15722 "configure"
15722 #include "confdefs.h"
15723 /* System header to define __stub macros and hopefully few prototypes,
15724     which can conflict with char $ac_func(); below.  */
15725 #include <assert.h>
15726 /* Override any gcc2 internal prototype to avoid an error.  */
15727 /* We use char because int might match the return type of a gcc2
15728     builtin and then its argument prototype would still apply.  */
15729 char $ac_func();
15730
15731 int main() {
15732
15733 /* The GNU C library defines this for functions which it implements
15734     to always fail with ENOSYS.  Some functions are actually named
15735     something starting with __ and the normal name is an alias.  */
15736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15737 choke me
15738 #else
15739 $ac_func();
15740 #endif
15741
15742 ; return 0; }
15743 EOF
15744 if { (eval echo configure:15745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15745   rm -rf conftest*
15746   eval "ac_cv_func_$ac_func=yes"
15747 else
15748   echo "configure: failed program was:" >&5
15749   cat conftest.$ac_ext >&5
15750   rm -rf conftest*
15751   eval "ac_cv_func_$ac_func=no"
15752 fi
15753 rm -f conftest*
15754 fi
15755
15756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15757   echo "$ac_t""yes" 1>&6
15758     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15759   cat >> confdefs.h <<EOF
15760 #define $ac_tr_func 1
15761 EOF
15762  
15763 else
15764   echo "$ac_t""no" 1>&6
15765 fi
15766 done
15767     
15768   else
15769     
15770   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
15771 echo "configure:15772: checking for _logl declaration" >&5
15772   if test x${glibcpp_cv_func__logl_use+set} != xset; then
15773     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
15774   echo $ac_n "(cached) $ac_c" 1>&6
15775 else
15776   
15777       
15778       ac_ext=C
15779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15780 ac_cpp='$CXXCPP $CPPFLAGS'
15781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15783 cross_compiling=$ac_cv_prog_cxx_cross
15784
15785       cat > conftest.$ac_ext <<EOF
15786 #line 15787 "configure"
15787 #include "confdefs.h"
15788 #include <math.h>
15789                       #ifdef HAVE_IEEEFP_H
15790                       #include <ieeefp.h>
15791                       #endif
15792                      
15793 int main() {
15794  _logl(0);
15795 ; return 0; }
15796 EOF
15797 if { (eval echo configure:15798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15798   rm -rf conftest*
15799   glibcpp_cv_func__logl_use=yes
15800 else
15801   echo "configure: failed program was:" >&5
15802   cat conftest.$ac_ext >&5
15803   rm -rf conftest*
15804   glibcpp_cv_func__logl_use=no
15805 fi
15806 rm -f conftest*
15807       ac_ext=c
15808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15809 ac_cpp='$CPP $CPPFLAGS'
15810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15812 cross_compiling=$ac_cv_prog_cc_cross
15813
15814     
15815 fi
15816
15817   fi
15818   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15819
15820     if test x$glibcpp_cv_func__logl_use = x"yes"; then
15821       for ac_func in _logl
15822 do
15823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15824 echo "configure:15825: checking for $ac_func" >&5
15825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15826   echo $ac_n "(cached) $ac_c" 1>&6
15827 else
15828   cat > conftest.$ac_ext <<EOF
15829 #line 15830 "configure"
15830 #include "confdefs.h"
15831 /* System header to define __stub macros and hopefully few prototypes,
15832     which can conflict with char $ac_func(); below.  */
15833 #include <assert.h>
15834 /* Override any gcc2 internal prototype to avoid an error.  */
15835 /* We use char because int might match the return type of a gcc2
15836     builtin and then its argument prototype would still apply.  */
15837 char $ac_func();
15838
15839 int main() {
15840
15841 /* The GNU C library defines this for functions which it implements
15842     to always fail with ENOSYS.  Some functions are actually named
15843     something starting with __ and the normal name is an alias.  */
15844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15845 choke me
15846 #else
15847 $ac_func();
15848 #endif
15849
15850 ; return 0; }
15851 EOF
15852 if { (eval echo configure:15853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15853   rm -rf conftest*
15854   eval "ac_cv_func_$ac_func=yes"
15855 else
15856   echo "configure: failed program was:" >&5
15857   cat conftest.$ac_ext >&5
15858   rm -rf conftest*
15859   eval "ac_cv_func_$ac_func=no"
15860 fi
15861 rm -f conftest*
15862 fi
15863
15864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15865   echo "$ac_t""yes" 1>&6
15866     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15867   cat >> confdefs.h <<EOF
15868 #define $ac_tr_func 1
15869 EOF
15870  
15871 else
15872   echo "$ac_t""no" 1>&6
15873 fi
15874 done
15875     
15876     fi
15877   fi
15878
15879   
15880   
15881   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
15882 echo "configure:15883: checking for log10l declaration" >&5
15883   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
15884     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
15885   echo $ac_n "(cached) $ac_c" 1>&6
15886 else
15887   
15888       
15889       ac_ext=C
15890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15891 ac_cpp='$CXXCPP $CPPFLAGS'
15892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15894 cross_compiling=$ac_cv_prog_cxx_cross
15895
15896       cat > conftest.$ac_ext <<EOF
15897 #line 15898 "configure"
15898 #include "confdefs.h"
15899 #include <math.h>
15900                       #ifdef HAVE_IEEEFP_H
15901                       #include <ieeefp.h>
15902                       #endif
15903                      
15904 int main() {
15905  log10l(0);
15906 ; return 0; }
15907 EOF
15908 if { (eval echo configure:15909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15909   rm -rf conftest*
15910   glibcpp_cv_func_log10l_use=yes
15911 else
15912   echo "configure: failed program was:" >&5
15913   cat conftest.$ac_ext >&5
15914   rm -rf conftest*
15915   glibcpp_cv_func_log10l_use=no
15916 fi
15917 rm -f conftest*
15918       ac_ext=c
15919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15920 ac_cpp='$CPP $CPPFLAGS'
15921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15923 cross_compiling=$ac_cv_prog_cc_cross
15924
15925     
15926 fi
15927
15928   fi
15929   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
15930
15931   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
15932     for ac_func in log10l
15933 do
15934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15935 echo "configure:15936: checking for $ac_func" >&5
15936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15937   echo $ac_n "(cached) $ac_c" 1>&6
15938 else
15939   cat > conftest.$ac_ext <<EOF
15940 #line 15941 "configure"
15941 #include "confdefs.h"
15942 /* System header to define __stub macros and hopefully few prototypes,
15943     which can conflict with char $ac_func(); below.  */
15944 #include <assert.h>
15945 /* Override any gcc2 internal prototype to avoid an error.  */
15946 /* We use char because int might match the return type of a gcc2
15947     builtin and then its argument prototype would still apply.  */
15948 char $ac_func();
15949
15950 int main() {
15951
15952 /* The GNU C library defines this for functions which it implements
15953     to always fail with ENOSYS.  Some functions are actually named
15954     something starting with __ and the normal name is an alias.  */
15955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15956 choke me
15957 #else
15958 $ac_func();
15959 #endif
15960
15961 ; return 0; }
15962 EOF
15963 if { (eval echo configure:15964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15964   rm -rf conftest*
15965   eval "ac_cv_func_$ac_func=yes"
15966 else
15967   echo "configure: failed program was:" >&5
15968   cat conftest.$ac_ext >&5
15969   rm -rf conftest*
15970   eval "ac_cv_func_$ac_func=no"
15971 fi
15972 rm -f conftest*
15973 fi
15974
15975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15976   echo "$ac_t""yes" 1>&6
15977     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15978   cat >> confdefs.h <<EOF
15979 #define $ac_tr_func 1
15980 EOF
15981  
15982 else
15983   echo "$ac_t""no" 1>&6
15984 fi
15985 done
15986     
15987   else
15988     
15989   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
15990 echo "configure:15991: checking for _log10l declaration" >&5
15991   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
15992     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
15993   echo $ac_n "(cached) $ac_c" 1>&6
15994 else
15995   
15996       
15997       ac_ext=C
15998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15999 ac_cpp='$CXXCPP $CPPFLAGS'
16000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16002 cross_compiling=$ac_cv_prog_cxx_cross
16003
16004       cat > conftest.$ac_ext <<EOF
16005 #line 16006 "configure"
16006 #include "confdefs.h"
16007 #include <math.h>
16008                       #ifdef HAVE_IEEEFP_H
16009                       #include <ieeefp.h>
16010                       #endif
16011                      
16012 int main() {
16013  _log10l(0);
16014 ; return 0; }
16015 EOF
16016 if { (eval echo configure:16017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16017   rm -rf conftest*
16018   glibcpp_cv_func__log10l_use=yes
16019 else
16020   echo "configure: failed program was:" >&5
16021   cat conftest.$ac_ext >&5
16022   rm -rf conftest*
16023   glibcpp_cv_func__log10l_use=no
16024 fi
16025 rm -f conftest*
16026       ac_ext=c
16027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16028 ac_cpp='$CPP $CPPFLAGS'
16029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16031 cross_compiling=$ac_cv_prog_cc_cross
16032
16033     
16034 fi
16035
16036   fi
16037   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
16038
16039     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
16040       for ac_func in _log10l
16041 do
16042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16043 echo "configure:16044: checking for $ac_func" >&5
16044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16045   echo $ac_n "(cached) $ac_c" 1>&6
16046 else
16047   cat > conftest.$ac_ext <<EOF
16048 #line 16049 "configure"
16049 #include "confdefs.h"
16050 /* System header to define __stub macros and hopefully few prototypes,
16051     which can conflict with char $ac_func(); below.  */
16052 #include <assert.h>
16053 /* Override any gcc2 internal prototype to avoid an error.  */
16054 /* We use char because int might match the return type of a gcc2
16055     builtin and then its argument prototype would still apply.  */
16056 char $ac_func();
16057
16058 int main() {
16059
16060 /* The GNU C library defines this for functions which it implements
16061     to always fail with ENOSYS.  Some functions are actually named
16062     something starting with __ and the normal name is an alias.  */
16063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16064 choke me
16065 #else
16066 $ac_func();
16067 #endif
16068
16069 ; return 0; }
16070 EOF
16071 if { (eval echo configure:16072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16072   rm -rf conftest*
16073   eval "ac_cv_func_$ac_func=yes"
16074 else
16075   echo "configure: failed program was:" >&5
16076   cat conftest.$ac_ext >&5
16077   rm -rf conftest*
16078   eval "ac_cv_func_$ac_func=no"
16079 fi
16080 rm -f conftest*
16081 fi
16082
16083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16084   echo "$ac_t""yes" 1>&6
16085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16086   cat >> confdefs.h <<EOF
16087 #define $ac_tr_func 1
16088 EOF
16089  
16090 else
16091   echo "$ac_t""no" 1>&6
16092 fi
16093 done
16094     
16095     fi
16096   fi
16097
16098   
16099   
16100   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
16101 echo "configure:16102: checking for modfl declaration" >&5
16102   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
16103     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
16104   echo $ac_n "(cached) $ac_c" 1>&6
16105 else
16106   
16107       
16108       ac_ext=C
16109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16110 ac_cpp='$CXXCPP $CPPFLAGS'
16111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16113 cross_compiling=$ac_cv_prog_cxx_cross
16114
16115       cat > conftest.$ac_ext <<EOF
16116 #line 16117 "configure"
16117 #include "confdefs.h"
16118 #include <math.h>
16119 int main() {
16120  modfl(0, 0);
16121 ; return 0; }
16122 EOF
16123 if { (eval echo configure:16124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16124   rm -rf conftest*
16125   glibcpp_cv_func_modfl_use=yes
16126 else
16127   echo "configure: failed program was:" >&5
16128   cat conftest.$ac_ext >&5
16129   rm -rf conftest*
16130   glibcpp_cv_func_modfl_use=no
16131 fi
16132 rm -f conftest*
16133       ac_ext=c
16134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16135 ac_cpp='$CPP $CPPFLAGS'
16136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16138 cross_compiling=$ac_cv_prog_cc_cross
16139
16140     
16141 fi
16142
16143   fi
16144   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
16145
16146   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
16147     for ac_func in modfl
16148 do
16149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16150 echo "configure:16151: checking for $ac_func" >&5
16151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16152   echo $ac_n "(cached) $ac_c" 1>&6
16153 else
16154   cat > conftest.$ac_ext <<EOF
16155 #line 16156 "configure"
16156 #include "confdefs.h"
16157 /* System header to define __stub macros and hopefully few prototypes,
16158     which can conflict with char $ac_func(); below.  */
16159 #include <assert.h>
16160 /* Override any gcc2 internal prototype to avoid an error.  */
16161 /* We use char because int might match the return type of a gcc2
16162     builtin and then its argument prototype would still apply.  */
16163 char $ac_func();
16164
16165 int main() {
16166
16167 /* The GNU C library defines this for functions which it implements
16168     to always fail with ENOSYS.  Some functions are actually named
16169     something starting with __ and the normal name is an alias.  */
16170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16171 choke me
16172 #else
16173 $ac_func();
16174 #endif
16175
16176 ; return 0; }
16177 EOF
16178 if { (eval echo configure:16179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16179   rm -rf conftest*
16180   eval "ac_cv_func_$ac_func=yes"
16181 else
16182   echo "configure: failed program was:" >&5
16183   cat conftest.$ac_ext >&5
16184   rm -rf conftest*
16185   eval "ac_cv_func_$ac_func=no"
16186 fi
16187 rm -f conftest*
16188 fi
16189
16190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16191   echo "$ac_t""yes" 1>&6
16192     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16193   cat >> confdefs.h <<EOF
16194 #define $ac_tr_func 1
16195 EOF
16196  
16197 else
16198   echo "$ac_t""no" 1>&6
16199 fi
16200 done
16201     
16202   else
16203     
16204   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
16205 echo "configure:16206: checking for _modfl declaration" >&5
16206   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
16207     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
16208   echo $ac_n "(cached) $ac_c" 1>&6
16209 else
16210   
16211       
16212       ac_ext=C
16213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16214 ac_cpp='$CXXCPP $CPPFLAGS'
16215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16217 cross_compiling=$ac_cv_prog_cxx_cross
16218
16219       cat > conftest.$ac_ext <<EOF
16220 #line 16221 "configure"
16221 #include "confdefs.h"
16222 #include <math.h>
16223 int main() {
16224  _modfl(0, 0);
16225 ; return 0; }
16226 EOF
16227 if { (eval echo configure:16228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16228   rm -rf conftest*
16229   glibcpp_cv_func__modfl_use=yes
16230 else
16231   echo "configure: failed program was:" >&5
16232   cat conftest.$ac_ext >&5
16233   rm -rf conftest*
16234   glibcpp_cv_func__modfl_use=no
16235 fi
16236 rm -f conftest*
16237       ac_ext=c
16238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16239 ac_cpp='$CPP $CPPFLAGS'
16240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16242 cross_compiling=$ac_cv_prog_cc_cross
16243
16244     
16245 fi
16246
16247   fi
16248   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
16249
16250     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
16251       for ac_func in _modfl
16252 do
16253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16254 echo "configure:16255: checking for $ac_func" >&5
16255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16256   echo $ac_n "(cached) $ac_c" 1>&6
16257 else
16258   cat > conftest.$ac_ext <<EOF
16259 #line 16260 "configure"
16260 #include "confdefs.h"
16261 /* System header to define __stub macros and hopefully few prototypes,
16262     which can conflict with char $ac_func(); below.  */
16263 #include <assert.h>
16264 /* Override any gcc2 internal prototype to avoid an error.  */
16265 /* We use char because int might match the return type of a gcc2
16266     builtin and then its argument prototype would still apply.  */
16267 char $ac_func();
16268
16269 int main() {
16270
16271 /* The GNU C library defines this for functions which it implements
16272     to always fail with ENOSYS.  Some functions are actually named
16273     something starting with __ and the normal name is an alias.  */
16274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16275 choke me
16276 #else
16277 $ac_func();
16278 #endif
16279
16280 ; return 0; }
16281 EOF
16282 if { (eval echo configure:16283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16283   rm -rf conftest*
16284   eval "ac_cv_func_$ac_func=yes"
16285 else
16286   echo "configure: failed program was:" >&5
16287   cat conftest.$ac_ext >&5
16288   rm -rf conftest*
16289   eval "ac_cv_func_$ac_func=no"
16290 fi
16291 rm -f conftest*
16292 fi
16293
16294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16295   echo "$ac_t""yes" 1>&6
16296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16297   cat >> confdefs.h <<EOF
16298 #define $ac_tr_func 1
16299 EOF
16300  
16301 else
16302   echo "$ac_t""no" 1>&6
16303 fi
16304 done
16305     
16306     fi
16307   fi
16308
16309   
16310   
16311   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
16312 echo "configure:16313: checking for powl declaration" >&5
16313   if test x${glibcpp_cv_func_powl_use+set} != xset; then
16314     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
16315   echo $ac_n "(cached) $ac_c" 1>&6
16316 else
16317   
16318       
16319       ac_ext=C
16320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16321 ac_cpp='$CXXCPP $CPPFLAGS'
16322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16324 cross_compiling=$ac_cv_prog_cxx_cross
16325
16326       cat > conftest.$ac_ext <<EOF
16327 #line 16328 "configure"
16328 #include "confdefs.h"
16329 #include <math.h>
16330 int main() {
16331  powl(0, 0);
16332 ; return 0; }
16333 EOF
16334 if { (eval echo configure:16335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16335   rm -rf conftest*
16336   glibcpp_cv_func_powl_use=yes
16337 else
16338   echo "configure: failed program was:" >&5
16339   cat conftest.$ac_ext >&5
16340   rm -rf conftest*
16341   glibcpp_cv_func_powl_use=no
16342 fi
16343 rm -f conftest*
16344       ac_ext=c
16345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16346 ac_cpp='$CPP $CPPFLAGS'
16347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16349 cross_compiling=$ac_cv_prog_cc_cross
16350
16351     
16352 fi
16353
16354   fi
16355   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
16356
16357   if test x$glibcpp_cv_func_powl_use = x"yes"; then
16358     for ac_func in powl
16359 do
16360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16361 echo "configure:16362: checking for $ac_func" >&5
16362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16363   echo $ac_n "(cached) $ac_c" 1>&6
16364 else
16365   cat > conftest.$ac_ext <<EOF
16366 #line 16367 "configure"
16367 #include "confdefs.h"
16368 /* System header to define __stub macros and hopefully few prototypes,
16369     which can conflict with char $ac_func(); below.  */
16370 #include <assert.h>
16371 /* Override any gcc2 internal prototype to avoid an error.  */
16372 /* We use char because int might match the return type of a gcc2
16373     builtin and then its argument prototype would still apply.  */
16374 char $ac_func();
16375
16376 int main() {
16377
16378 /* The GNU C library defines this for functions which it implements
16379     to always fail with ENOSYS.  Some functions are actually named
16380     something starting with __ and the normal name is an alias.  */
16381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16382 choke me
16383 #else
16384 $ac_func();
16385 #endif
16386
16387 ; return 0; }
16388 EOF
16389 if { (eval echo configure:16390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16390   rm -rf conftest*
16391   eval "ac_cv_func_$ac_func=yes"
16392 else
16393   echo "configure: failed program was:" >&5
16394   cat conftest.$ac_ext >&5
16395   rm -rf conftest*
16396   eval "ac_cv_func_$ac_func=no"
16397 fi
16398 rm -f conftest*
16399 fi
16400
16401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16402   echo "$ac_t""yes" 1>&6
16403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16404   cat >> confdefs.h <<EOF
16405 #define $ac_tr_func 1
16406 EOF
16407  
16408 else
16409   echo "$ac_t""no" 1>&6
16410 fi
16411 done
16412     
16413   else
16414     
16415   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
16416 echo "configure:16417: checking for _powl declaration" >&5
16417   if test x${glibcpp_cv_func__powl_use+set} != xset; then
16418     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
16419   echo $ac_n "(cached) $ac_c" 1>&6
16420 else
16421   
16422       
16423       ac_ext=C
16424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16425 ac_cpp='$CXXCPP $CPPFLAGS'
16426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16428 cross_compiling=$ac_cv_prog_cxx_cross
16429
16430       cat > conftest.$ac_ext <<EOF
16431 #line 16432 "configure"
16432 #include "confdefs.h"
16433 #include <math.h>
16434 int main() {
16435  _powl(0, 0);
16436 ; return 0; }
16437 EOF
16438 if { (eval echo configure:16439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16439   rm -rf conftest*
16440   glibcpp_cv_func__powl_use=yes
16441 else
16442   echo "configure: failed program was:" >&5
16443   cat conftest.$ac_ext >&5
16444   rm -rf conftest*
16445   glibcpp_cv_func__powl_use=no
16446 fi
16447 rm -f conftest*
16448       ac_ext=c
16449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16450 ac_cpp='$CPP $CPPFLAGS'
16451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16453 cross_compiling=$ac_cv_prog_cc_cross
16454
16455     
16456 fi
16457
16458   fi
16459   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
16460
16461     if test x$glibcpp_cv_func__powl_use = x"yes"; then
16462       for ac_func in _powl
16463 do
16464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16465 echo "configure:16466: checking for $ac_func" >&5
16466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16467   echo $ac_n "(cached) $ac_c" 1>&6
16468 else
16469   cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472 /* System header to define __stub macros and hopefully few prototypes,
16473     which can conflict with char $ac_func(); below.  */
16474 #include <assert.h>
16475 /* Override any gcc2 internal prototype to avoid an error.  */
16476 /* We use char because int might match the return type of a gcc2
16477     builtin and then its argument prototype would still apply.  */
16478 char $ac_func();
16479
16480 int main() {
16481
16482 /* The GNU C library defines this for functions which it implements
16483     to always fail with ENOSYS.  Some functions are actually named
16484     something starting with __ and the normal name is an alias.  */
16485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16486 choke me
16487 #else
16488 $ac_func();
16489 #endif
16490
16491 ; return 0; }
16492 EOF
16493 if { (eval echo configure:16494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16494   rm -rf conftest*
16495   eval "ac_cv_func_$ac_func=yes"
16496 else
16497   echo "configure: failed program was:" >&5
16498   cat conftest.$ac_ext >&5
16499   rm -rf conftest*
16500   eval "ac_cv_func_$ac_func=no"
16501 fi
16502 rm -f conftest*
16503 fi
16504
16505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16506   echo "$ac_t""yes" 1>&6
16507     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16508   cat >> confdefs.h <<EOF
16509 #define $ac_tr_func 1
16510 EOF
16511  
16512 else
16513   echo "$ac_t""no" 1>&6
16514 fi
16515 done
16516     
16517     fi
16518   fi
16519
16520   
16521   
16522   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
16523 echo "configure:16524: checking for sqrtl declaration" >&5
16524   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
16525     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
16526   echo $ac_n "(cached) $ac_c" 1>&6
16527 else
16528   
16529       
16530       ac_ext=C
16531 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16532 ac_cpp='$CXXCPP $CPPFLAGS'
16533 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16534 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16535 cross_compiling=$ac_cv_prog_cxx_cross
16536
16537       cat > conftest.$ac_ext <<EOF
16538 #line 16539 "configure"
16539 #include "confdefs.h"
16540 #include <math.h>
16541                       #ifdef HAVE_IEEEFP_H
16542                       #include <ieeefp.h>
16543                       #endif
16544                      
16545 int main() {
16546  sqrtl(0);
16547 ; return 0; }
16548 EOF
16549 if { (eval echo configure:16550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16550   rm -rf conftest*
16551   glibcpp_cv_func_sqrtl_use=yes
16552 else
16553   echo "configure: failed program was:" >&5
16554   cat conftest.$ac_ext >&5
16555   rm -rf conftest*
16556   glibcpp_cv_func_sqrtl_use=no
16557 fi
16558 rm -f conftest*
16559       ac_ext=c
16560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16561 ac_cpp='$CPP $CPPFLAGS'
16562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16564 cross_compiling=$ac_cv_prog_cc_cross
16565
16566     
16567 fi
16568
16569   fi
16570   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
16571
16572   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
16573     for ac_func in sqrtl
16574 do
16575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16576 echo "configure:16577: checking for $ac_func" >&5
16577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16578   echo $ac_n "(cached) $ac_c" 1>&6
16579 else
16580   cat > conftest.$ac_ext <<EOF
16581 #line 16582 "configure"
16582 #include "confdefs.h"
16583 /* System header to define __stub macros and hopefully few prototypes,
16584     which can conflict with char $ac_func(); below.  */
16585 #include <assert.h>
16586 /* Override any gcc2 internal prototype to avoid an error.  */
16587 /* We use char because int might match the return type of a gcc2
16588     builtin and then its argument prototype would still apply.  */
16589 char $ac_func();
16590
16591 int main() {
16592
16593 /* The GNU C library defines this for functions which it implements
16594     to always fail with ENOSYS.  Some functions are actually named
16595     something starting with __ and the normal name is an alias.  */
16596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16597 choke me
16598 #else
16599 $ac_func();
16600 #endif
16601
16602 ; return 0; }
16603 EOF
16604 if { (eval echo configure:16605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16605   rm -rf conftest*
16606   eval "ac_cv_func_$ac_func=yes"
16607 else
16608   echo "configure: failed program was:" >&5
16609   cat conftest.$ac_ext >&5
16610   rm -rf conftest*
16611   eval "ac_cv_func_$ac_func=no"
16612 fi
16613 rm -f conftest*
16614 fi
16615
16616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16617   echo "$ac_t""yes" 1>&6
16618     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16619   cat >> confdefs.h <<EOF
16620 #define $ac_tr_func 1
16621 EOF
16622  
16623 else
16624   echo "$ac_t""no" 1>&6
16625 fi
16626 done
16627     
16628   else
16629     
16630   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
16631 echo "configure:16632: checking for _sqrtl declaration" >&5
16632   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
16633     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
16634   echo $ac_n "(cached) $ac_c" 1>&6
16635 else
16636   
16637       
16638       ac_ext=C
16639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16640 ac_cpp='$CXXCPP $CPPFLAGS'
16641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16643 cross_compiling=$ac_cv_prog_cxx_cross
16644
16645       cat > conftest.$ac_ext <<EOF
16646 #line 16647 "configure"
16647 #include "confdefs.h"
16648 #include <math.h>
16649                       #ifdef HAVE_IEEEFP_H
16650                       #include <ieeefp.h>
16651                       #endif
16652                      
16653 int main() {
16654  _sqrtl(0);
16655 ; return 0; }
16656 EOF
16657 if { (eval echo configure:16658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16658   rm -rf conftest*
16659   glibcpp_cv_func__sqrtl_use=yes
16660 else
16661   echo "configure: failed program was:" >&5
16662   cat conftest.$ac_ext >&5
16663   rm -rf conftest*
16664   glibcpp_cv_func__sqrtl_use=no
16665 fi
16666 rm -f conftest*
16667       ac_ext=c
16668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16669 ac_cpp='$CPP $CPPFLAGS'
16670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16672 cross_compiling=$ac_cv_prog_cc_cross
16673
16674     
16675 fi
16676
16677   fi
16678   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
16679
16680     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
16681       for ac_func in _sqrtl
16682 do
16683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16684 echo "configure:16685: checking for $ac_func" >&5
16685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16686   echo $ac_n "(cached) $ac_c" 1>&6
16687 else
16688   cat > conftest.$ac_ext <<EOF
16689 #line 16690 "configure"
16690 #include "confdefs.h"
16691 /* System header to define __stub macros and hopefully few prototypes,
16692     which can conflict with char $ac_func(); below.  */
16693 #include <assert.h>
16694 /* Override any gcc2 internal prototype to avoid an error.  */
16695 /* We use char because int might match the return type of a gcc2
16696     builtin and then its argument prototype would still apply.  */
16697 char $ac_func();
16698
16699 int main() {
16700
16701 /* The GNU C library defines this for functions which it implements
16702     to always fail with ENOSYS.  Some functions are actually named
16703     something starting with __ and the normal name is an alias.  */
16704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16705 choke me
16706 #else
16707 $ac_func();
16708 #endif
16709
16710 ; return 0; }
16711 EOF
16712 if { (eval echo configure:16713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16713   rm -rf conftest*
16714   eval "ac_cv_func_$ac_func=yes"
16715 else
16716   echo "configure: failed program was:" >&5
16717   cat conftest.$ac_ext >&5
16718   rm -rf conftest*
16719   eval "ac_cv_func_$ac_func=no"
16720 fi
16721 rm -f conftest*
16722 fi
16723
16724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16725   echo "$ac_t""yes" 1>&6
16726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16727   cat >> confdefs.h <<EOF
16728 #define $ac_tr_func 1
16729 EOF
16730  
16731 else
16732   echo "$ac_t""no" 1>&6
16733 fi
16734 done
16735     
16736     fi
16737   fi
16738
16739   
16740   
16741   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
16742 echo "configure:16743: checking for sincosl declaration" >&5
16743   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
16744     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
16745   echo $ac_n "(cached) $ac_c" 1>&6
16746 else
16747   
16748       
16749       ac_ext=C
16750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16751 ac_cpp='$CXXCPP $CPPFLAGS'
16752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16754 cross_compiling=$ac_cv_prog_cxx_cross
16755
16756       cat > conftest.$ac_ext <<EOF
16757 #line 16758 "configure"
16758 #include "confdefs.h"
16759 #include <math.h>
16760 int main() {
16761  sincosl(0, 0, 0);
16762 ; return 0; }
16763 EOF
16764 if { (eval echo configure:16765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16765   rm -rf conftest*
16766   glibcpp_cv_func_sincosl_use=yes
16767 else
16768   echo "configure: failed program was:" >&5
16769   cat conftest.$ac_ext >&5
16770   rm -rf conftest*
16771   glibcpp_cv_func_sincosl_use=no
16772 fi
16773 rm -f conftest*
16774       ac_ext=c
16775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16776 ac_cpp='$CPP $CPPFLAGS'
16777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16779 cross_compiling=$ac_cv_prog_cc_cross
16780
16781     
16782 fi
16783
16784   fi
16785   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
16786
16787   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
16788     for ac_func in sincosl
16789 do
16790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16791 echo "configure:16792: checking for $ac_func" >&5
16792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16793   echo $ac_n "(cached) $ac_c" 1>&6
16794 else
16795   cat > conftest.$ac_ext <<EOF
16796 #line 16797 "configure"
16797 #include "confdefs.h"
16798 /* System header to define __stub macros and hopefully few prototypes,
16799     which can conflict with char $ac_func(); below.  */
16800 #include <assert.h>
16801 /* Override any gcc2 internal prototype to avoid an error.  */
16802 /* We use char because int might match the return type of a gcc2
16803     builtin and then its argument prototype would still apply.  */
16804 char $ac_func();
16805
16806 int main() {
16807
16808 /* The GNU C library defines this for functions which it implements
16809     to always fail with ENOSYS.  Some functions are actually named
16810     something starting with __ and the normal name is an alias.  */
16811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16812 choke me
16813 #else
16814 $ac_func();
16815 #endif
16816
16817 ; return 0; }
16818 EOF
16819 if { (eval echo configure:16820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16820   rm -rf conftest*
16821   eval "ac_cv_func_$ac_func=yes"
16822 else
16823   echo "configure: failed program was:" >&5
16824   cat conftest.$ac_ext >&5
16825   rm -rf conftest*
16826   eval "ac_cv_func_$ac_func=no"
16827 fi
16828 rm -f conftest*
16829 fi
16830
16831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16832   echo "$ac_t""yes" 1>&6
16833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16834   cat >> confdefs.h <<EOF
16835 #define $ac_tr_func 1
16836 EOF
16837  
16838 else
16839   echo "$ac_t""no" 1>&6
16840 fi
16841 done
16842     
16843   else
16844     
16845   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16846 echo "configure:16847: checking for _sincosl declaration" >&5
16847   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
16848     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16849   echo $ac_n "(cached) $ac_c" 1>&6
16850 else
16851   
16852       
16853       ac_ext=C
16854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16855 ac_cpp='$CXXCPP $CPPFLAGS'
16856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16858 cross_compiling=$ac_cv_prog_cxx_cross
16859
16860       cat > conftest.$ac_ext <<EOF
16861 #line 16862 "configure"
16862 #include "confdefs.h"
16863 #include <math.h>
16864 int main() {
16865  _sincosl(0, 0, 0);
16866 ; return 0; }
16867 EOF
16868 if { (eval echo configure:16869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16869   rm -rf conftest*
16870   glibcpp_cv_func__sincosl_use=yes
16871 else
16872   echo "configure: failed program was:" >&5
16873   cat conftest.$ac_ext >&5
16874   rm -rf conftest*
16875   glibcpp_cv_func__sincosl_use=no
16876 fi
16877 rm -f conftest*
16878       ac_ext=c
16879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16880 ac_cpp='$CPP $CPPFLAGS'
16881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16883 cross_compiling=$ac_cv_prog_cc_cross
16884
16885     
16886 fi
16887
16888   fi
16889   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16890
16891     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
16892       for ac_func in _sincosl
16893 do
16894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16895 echo "configure:16896: checking for $ac_func" >&5
16896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16897   echo $ac_n "(cached) $ac_c" 1>&6
16898 else
16899   cat > conftest.$ac_ext <<EOF
16900 #line 16901 "configure"
16901 #include "confdefs.h"
16902 /* System header to define __stub macros and hopefully few prototypes,
16903     which can conflict with char $ac_func(); below.  */
16904 #include <assert.h>
16905 /* Override any gcc2 internal prototype to avoid an error.  */
16906 /* We use char because int might match the return type of a gcc2
16907     builtin and then its argument prototype would still apply.  */
16908 char $ac_func();
16909
16910 int main() {
16911
16912 /* The GNU C library defines this for functions which it implements
16913     to always fail with ENOSYS.  Some functions are actually named
16914     something starting with __ and the normal name is an alias.  */
16915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16916 choke me
16917 #else
16918 $ac_func();
16919 #endif
16920
16921 ; return 0; }
16922 EOF
16923 if { (eval echo configure:16924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16924   rm -rf conftest*
16925   eval "ac_cv_func_$ac_func=yes"
16926 else
16927   echo "configure: failed program was:" >&5
16928   cat conftest.$ac_ext >&5
16929   rm -rf conftest*
16930   eval "ac_cv_func_$ac_func=no"
16931 fi
16932 rm -f conftest*
16933 fi
16934
16935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16936   echo "$ac_t""yes" 1>&6
16937     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16938   cat >> confdefs.h <<EOF
16939 #define $ac_tr_func 1
16940 EOF
16941  
16942 else
16943   echo "$ac_t""no" 1>&6
16944 fi
16945 done
16946     
16947     fi
16948   fi
16949
16950   
16951   
16952   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
16953 echo "configure:16954: checking for finitel declaration" >&5
16954   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
16955     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
16956   echo $ac_n "(cached) $ac_c" 1>&6
16957 else
16958   
16959       
16960       ac_ext=C
16961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16962 ac_cpp='$CXXCPP $CPPFLAGS'
16963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16965 cross_compiling=$ac_cv_prog_cxx_cross
16966
16967       cat > conftest.$ac_ext <<EOF
16968 #line 16969 "configure"
16969 #include "confdefs.h"
16970 #include <math.h>
16971                       #ifdef HAVE_IEEEFP_H
16972                       #include <ieeefp.h>
16973                       #endif
16974                      
16975 int main() {
16976  finitel(0);
16977 ; return 0; }
16978 EOF
16979 if { (eval echo configure:16980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16980   rm -rf conftest*
16981   glibcpp_cv_func_finitel_use=yes
16982 else
16983   echo "configure: failed program was:" >&5
16984   cat conftest.$ac_ext >&5
16985   rm -rf conftest*
16986   glibcpp_cv_func_finitel_use=no
16987 fi
16988 rm -f conftest*
16989       ac_ext=c
16990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16991 ac_cpp='$CPP $CPPFLAGS'
16992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16994 cross_compiling=$ac_cv_prog_cc_cross
16995
16996     
16997 fi
16998
16999   fi
17000   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17001
17002   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17003     for ac_func in finitel
17004 do
17005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17006 echo "configure:17007: checking for $ac_func" >&5
17007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17008   echo $ac_n "(cached) $ac_c" 1>&6
17009 else
17010   cat > conftest.$ac_ext <<EOF
17011 #line 17012 "configure"
17012 #include "confdefs.h"
17013 /* System header to define __stub macros and hopefully few prototypes,
17014     which can conflict with char $ac_func(); below.  */
17015 #include <assert.h>
17016 /* Override any gcc2 internal prototype to avoid an error.  */
17017 /* We use char because int might match the return type of a gcc2
17018     builtin and then its argument prototype would still apply.  */
17019 char $ac_func();
17020
17021 int main() {
17022
17023 /* The GNU C library defines this for functions which it implements
17024     to always fail with ENOSYS.  Some functions are actually named
17025     something starting with __ and the normal name is an alias.  */
17026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17027 choke me
17028 #else
17029 $ac_func();
17030 #endif
17031
17032 ; return 0; }
17033 EOF
17034 if { (eval echo configure:17035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17035   rm -rf conftest*
17036   eval "ac_cv_func_$ac_func=yes"
17037 else
17038   echo "configure: failed program was:" >&5
17039   cat conftest.$ac_ext >&5
17040   rm -rf conftest*
17041   eval "ac_cv_func_$ac_func=no"
17042 fi
17043 rm -f conftest*
17044 fi
17045
17046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17047   echo "$ac_t""yes" 1>&6
17048     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17049   cat >> confdefs.h <<EOF
17050 #define $ac_tr_func 1
17051 EOF
17052  
17053 else
17054   echo "$ac_t""no" 1>&6
17055 fi
17056 done
17057     
17058   else
17059     
17060   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
17061 echo "configure:17062: checking for _finitel declaration" >&5
17062   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
17063     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
17064   echo $ac_n "(cached) $ac_c" 1>&6
17065 else
17066   
17067       
17068       ac_ext=C
17069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17070 ac_cpp='$CXXCPP $CPPFLAGS'
17071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17073 cross_compiling=$ac_cv_prog_cxx_cross
17074
17075       cat > conftest.$ac_ext <<EOF
17076 #line 17077 "configure"
17077 #include "confdefs.h"
17078 #include <math.h>
17079                       #ifdef HAVE_IEEEFP_H
17080                       #include <ieeefp.h>
17081                       #endif
17082                      
17083 int main() {
17084  _finitel(0);
17085 ; return 0; }
17086 EOF
17087 if { (eval echo configure:17088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17088   rm -rf conftest*
17089   glibcpp_cv_func__finitel_use=yes
17090 else
17091   echo "configure: failed program was:" >&5
17092   cat conftest.$ac_ext >&5
17093   rm -rf conftest*
17094   glibcpp_cv_func__finitel_use=no
17095 fi
17096 rm -f conftest*
17097       ac_ext=c
17098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17099 ac_cpp='$CPP $CPPFLAGS'
17100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17102 cross_compiling=$ac_cv_prog_cc_cross
17103
17104     
17105 fi
17106
17107   fi
17108   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
17109
17110     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
17111       for ac_func in _finitel
17112 do
17113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17114 echo "configure:17115: checking for $ac_func" >&5
17115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17116   echo $ac_n "(cached) $ac_c" 1>&6
17117 else
17118   cat > conftest.$ac_ext <<EOF
17119 #line 17120 "configure"
17120 #include "confdefs.h"
17121 /* System header to define __stub macros and hopefully few prototypes,
17122     which can conflict with char $ac_func(); below.  */
17123 #include <assert.h>
17124 /* Override any gcc2 internal prototype to avoid an error.  */
17125 /* We use char because int might match the return type of a gcc2
17126     builtin and then its argument prototype would still apply.  */
17127 char $ac_func();
17128
17129 int main() {
17130
17131 /* The GNU C library defines this for functions which it implements
17132     to always fail with ENOSYS.  Some functions are actually named
17133     something starting with __ and the normal name is an alias.  */
17134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17135 choke me
17136 #else
17137 $ac_func();
17138 #endif
17139
17140 ; return 0; }
17141 EOF
17142 if { (eval echo configure:17143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17143   rm -rf conftest*
17144   eval "ac_cv_func_$ac_func=yes"
17145 else
17146   echo "configure: failed program was:" >&5
17147   cat conftest.$ac_ext >&5
17148   rm -rf conftest*
17149   eval "ac_cv_func_$ac_func=no"
17150 fi
17151 rm -f conftest*
17152 fi
17153
17154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17155   echo "$ac_t""yes" 1>&6
17156     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17157   cat >> confdefs.h <<EOF
17158 #define $ac_tr_func 1
17159 EOF
17160  
17161 else
17162   echo "$ac_t""no" 1>&6
17163 fi
17164 done
17165     
17166     fi
17167   fi
17168
17169
17170         
17171     
17172   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
17173 echo "configure:17174: checking for _float trig functions" >&5
17174   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
17175   echo $ac_n "(cached) $ac_c" 1>&6
17176 else
17177   
17178     
17179     ac_ext=C
17180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17181 ac_cpp='$CXXCPP $CPPFLAGS'
17182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17184 cross_compiling=$ac_cv_prog_cxx_cross
17185
17186     cat > conftest.$ac_ext <<EOF
17187 #line 17188 "configure"
17188 #include "confdefs.h"
17189 #include <math.h>
17190 int main() {
17191  `for x in _acosf _asinf _atanf \
17192                                           _cosf _sinf _tanf \
17193                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
17194 ; return 0; }
17195 EOF
17196 if { (eval echo configure:17197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17197   rm -rf conftest*
17198   glibcpp_cv_func__float_trig_use=yes
17199 else
17200   echo "configure: failed program was:" >&5
17201   cat conftest.$ac_ext >&5
17202   rm -rf conftest*
17203   glibcpp_cv_func__float_trig_use=no
17204 fi
17205 rm -f conftest*
17206     ac_ext=c
17207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17208 ac_cpp='$CPP $CPPFLAGS'
17209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17211 cross_compiling=$ac_cv_prog_cc_cross
17212
17213 fi
17214
17215   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
17216   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
17217     for ac_func in _acosf _asinf _atanf \
17218                                           _cosf _sinf _tanf \
17219                                           _coshf _sinhf _tanhf
17220 do
17221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17222 echo "configure:17223: checking for $ac_func" >&5
17223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17224   echo $ac_n "(cached) $ac_c" 1>&6
17225 else
17226   cat > conftest.$ac_ext <<EOF
17227 #line 17228 "configure"
17228 #include "confdefs.h"
17229 /* System header to define __stub macros and hopefully few prototypes,
17230     which can conflict with char $ac_func(); below.  */
17231 #include <assert.h>
17232 /* Override any gcc2 internal prototype to avoid an error.  */
17233 /* We use char because int might match the return type of a gcc2
17234     builtin and then its argument prototype would still apply.  */
17235 char $ac_func();
17236
17237 int main() {
17238
17239 /* The GNU C library defines this for functions which it implements
17240     to always fail with ENOSYS.  Some functions are actually named
17241     something starting with __ and the normal name is an alias.  */
17242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17243 choke me
17244 #else
17245 $ac_func();
17246 #endif
17247
17248 ; return 0; }
17249 EOF
17250 if { (eval echo configure:17251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17251   rm -rf conftest*
17252   eval "ac_cv_func_$ac_func=yes"
17253 else
17254   echo "configure: failed program was:" >&5
17255   cat conftest.$ac_ext >&5
17256   rm -rf conftest*
17257   eval "ac_cv_func_$ac_func=no"
17258 fi
17259 rm -f conftest*
17260 fi
17261
17262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17263   echo "$ac_t""yes" 1>&6
17264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17265   cat >> confdefs.h <<EOF
17266 #define $ac_tr_func 1
17267 EOF
17268  
17269 else
17270   echo "$ac_t""no" 1>&6
17271 fi
17272 done
17273
17274   fi
17275
17276   
17277   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
17278 echo "configure:17279: checking for _float round functions" >&5
17279   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
17280   echo $ac_n "(cached) $ac_c" 1>&6
17281 else
17282   
17283     
17284     ac_ext=C
17285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17286 ac_cpp='$CXXCPP $CPPFLAGS'
17287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17289 cross_compiling=$ac_cv_prog_cxx_cross
17290
17291     cat > conftest.$ac_ext <<EOF
17292 #line 17293 "configure"
17293 #include "confdefs.h"
17294 #include <math.h>
17295 int main() {
17296  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
17297 ; return 0; }
17298 EOF
17299 if { (eval echo configure:17300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17300   rm -rf conftest*
17301   glibcpp_cv_func__float_round_use=yes
17302 else
17303   echo "configure: failed program was:" >&5
17304   cat conftest.$ac_ext >&5
17305   rm -rf conftest*
17306   glibcpp_cv_func__float_round_use=no
17307 fi
17308 rm -f conftest*
17309     ac_ext=c
17310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17311 ac_cpp='$CPP $CPPFLAGS'
17312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17314 cross_compiling=$ac_cv_prog_cc_cross
17315
17316 fi
17317
17318   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
17319   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
17320     for ac_func in _ceilf _floorf
17321 do
17322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17323 echo "configure:17324: checking for $ac_func" >&5
17324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17325   echo $ac_n "(cached) $ac_c" 1>&6
17326 else
17327   cat > conftest.$ac_ext <<EOF
17328 #line 17329 "configure"
17329 #include "confdefs.h"
17330 /* System header to define __stub macros and hopefully few prototypes,
17331     which can conflict with char $ac_func(); below.  */
17332 #include <assert.h>
17333 /* Override any gcc2 internal prototype to avoid an error.  */
17334 /* We use char because int might match the return type of a gcc2
17335     builtin and then its argument prototype would still apply.  */
17336 char $ac_func();
17337
17338 int main() {
17339
17340 /* The GNU C library defines this for functions which it implements
17341     to always fail with ENOSYS.  Some functions are actually named
17342     something starting with __ and the normal name is an alias.  */
17343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17344 choke me
17345 #else
17346 $ac_func();
17347 #endif
17348
17349 ; return 0; }
17350 EOF
17351 if { (eval echo configure:17352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17352   rm -rf conftest*
17353   eval "ac_cv_func_$ac_func=yes"
17354 else
17355   echo "configure: failed program was:" >&5
17356   cat conftest.$ac_ext >&5
17357   rm -rf conftest*
17358   eval "ac_cv_func_$ac_func=no"
17359 fi
17360 rm -f conftest*
17361 fi
17362
17363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17364   echo "$ac_t""yes" 1>&6
17365     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17366   cat >> confdefs.h <<EOF
17367 #define $ac_tr_func 1
17368 EOF
17369  
17370 else
17371   echo "$ac_t""no" 1>&6
17372 fi
17373 done
17374
17375   fi
17376
17377
17378     
17379   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
17380 echo "configure:17381: checking for _long double trig functions" >&5
17381   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
17382   echo $ac_n "(cached) $ac_c" 1>&6
17383 else
17384   
17385     
17386     ac_ext=C
17387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17388 ac_cpp='$CXXCPP $CPPFLAGS'
17389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17391 cross_compiling=$ac_cv_prog_cxx_cross
17392
17393     cat > conftest.$ac_ext <<EOF
17394 #line 17395 "configure"
17395 #include "confdefs.h"
17396 #include <math.h>
17397 int main() {
17398  `for x in _acosl _asinl _atanl \
17399                                           _cosl _sinl _tanl \
17400                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
17401 ; return 0; }
17402 EOF
17403 if { (eval echo configure:17404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17404   rm -rf conftest*
17405   glibcpp_cv_func__long_double_trig_use=yes
17406 else
17407   echo "configure: failed program was:" >&5
17408   cat conftest.$ac_ext >&5
17409   rm -rf conftest*
17410   glibcpp_cv_func__long_double_trig_use=no
17411 fi
17412 rm -f conftest*
17413     ac_ext=c
17414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17415 ac_cpp='$CPP $CPPFLAGS'
17416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17418 cross_compiling=$ac_cv_prog_cc_cross
17419
17420 fi
17421
17422   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
17423   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
17424     for ac_func in _acosl _asinl _atanl \
17425                                           _cosl _sinl _tanl \
17426                                           _coshl _sinhl _tanhl
17427 do
17428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17429 echo "configure:17430: checking for $ac_func" >&5
17430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17431   echo $ac_n "(cached) $ac_c" 1>&6
17432 else
17433   cat > conftest.$ac_ext <<EOF
17434 #line 17435 "configure"
17435 #include "confdefs.h"
17436 /* System header to define __stub macros and hopefully few prototypes,
17437     which can conflict with char $ac_func(); below.  */
17438 #include <assert.h>
17439 /* Override any gcc2 internal prototype to avoid an error.  */
17440 /* We use char because int might match the return type of a gcc2
17441     builtin and then its argument prototype would still apply.  */
17442 char $ac_func();
17443
17444 int main() {
17445
17446 /* The GNU C library defines this for functions which it implements
17447     to always fail with ENOSYS.  Some functions are actually named
17448     something starting with __ and the normal name is an alias.  */
17449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17450 choke me
17451 #else
17452 $ac_func();
17453 #endif
17454
17455 ; return 0; }
17456 EOF
17457 if { (eval echo configure:17458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17458   rm -rf conftest*
17459   eval "ac_cv_func_$ac_func=yes"
17460 else
17461   echo "configure: failed program was:" >&5
17462   cat conftest.$ac_ext >&5
17463   rm -rf conftest*
17464   eval "ac_cv_func_$ac_func=no"
17465 fi
17466 rm -f conftest*
17467 fi
17468
17469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17470   echo "$ac_t""yes" 1>&6
17471     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17472   cat >> confdefs.h <<EOF
17473 #define $ac_tr_func 1
17474 EOF
17475  
17476 else
17477   echo "$ac_t""no" 1>&6
17478 fi
17479 done
17480
17481   fi
17482
17483   
17484   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
17485 echo "configure:17486: checking for _long double round functions" >&5
17486   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
17487   echo $ac_n "(cached) $ac_c" 1>&6
17488 else
17489   
17490     
17491     ac_ext=C
17492 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17493 ac_cpp='$CXXCPP $CPPFLAGS'
17494 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17495 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17496 cross_compiling=$ac_cv_prog_cxx_cross
17497
17498     cat > conftest.$ac_ext <<EOF
17499 #line 17500 "configure"
17500 #include "confdefs.h"
17501 #include <math.h>
17502 int main() {
17503  `for x in _ceill _floorl; do echo "$x (0);"; done` 
17504 ; return 0; }
17505 EOF
17506 if { (eval echo configure:17507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17507   rm -rf conftest*
17508   glibcpp_cv_func__long_double_round_use=yes
17509 else
17510   echo "configure: failed program was:" >&5
17511   cat conftest.$ac_ext >&5
17512   rm -rf conftest*
17513   glibcpp_cv_func__long_double_round_use=no
17514 fi
17515 rm -f conftest*
17516     ac_ext=c
17517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17518 ac_cpp='$CPP $CPPFLAGS'
17519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17521 cross_compiling=$ac_cv_prog_cc_cross
17522
17523 fi
17524
17525   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
17526   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
17527     for ac_func in _ceill _floorl
17528 do
17529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17530 echo "configure:17531: checking for $ac_func" >&5
17531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17532   echo $ac_n "(cached) $ac_c" 1>&6
17533 else
17534   cat > conftest.$ac_ext <<EOF
17535 #line 17536 "configure"
17536 #include "confdefs.h"
17537 /* System header to define __stub macros and hopefully few prototypes,
17538     which can conflict with char $ac_func(); below.  */
17539 #include <assert.h>
17540 /* Override any gcc2 internal prototype to avoid an error.  */
17541 /* We use char because int might match the return type of a gcc2
17542     builtin and then its argument prototype would still apply.  */
17543 char $ac_func();
17544
17545 int main() {
17546
17547 /* The GNU C library defines this for functions which it implements
17548     to always fail with ENOSYS.  Some functions are actually named
17549     something starting with __ and the normal name is an alias.  */
17550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17551 choke me
17552 #else
17553 $ac_func();
17554 #endif
17555
17556 ; return 0; }
17557 EOF
17558 if { (eval echo configure:17559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17559   rm -rf conftest*
17560   eval "ac_cv_func_$ac_func=yes"
17561 else
17562   echo "configure: failed program was:" >&5
17563   cat conftest.$ac_ext >&5
17564   rm -rf conftest*
17565   eval "ac_cv_func_$ac_func=no"
17566 fi
17567 rm -f conftest*
17568 fi
17569
17570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17571   echo "$ac_t""yes" 1>&6
17572     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17573   cat >> confdefs.h <<EOF
17574 #define $ac_tr_func 1
17575 EOF
17576  
17577 else
17578   echo "$ac_t""no" 1>&6
17579 fi
17580 done
17581
17582   fi
17583
17584
17585   LIBS="$ac_save_LIBS"
17586   CXXFLAGS="$ac_save_CXXFLAGS"
17587
17588   
17589     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
17590 echo "configure:17591: checking for main in -lm" >&5
17591 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
17592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17593   echo $ac_n "(cached) $ac_c" 1>&6
17594 else
17595   ac_save_LIBS="$LIBS"
17596 LIBS="-lm  $LIBS"
17597 cat > conftest.$ac_ext <<EOF
17598 #line 17599 "configure"
17599 #include "confdefs.h"
17600
17601 int main() {
17602 main()
17603 ; return 0; }
17604 EOF
17605 if { (eval echo configure:17606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17606   rm -rf conftest*
17607   eval "ac_cv_lib_$ac_lib_var=yes"
17608 else
17609   echo "configure: failed program was:" >&5
17610   cat conftest.$ac_ext >&5
17611   rm -rf conftest*
17612   eval "ac_cv_lib_$ac_lib_var=no"
17613 fi
17614 rm -f conftest*
17615 LIBS="$ac_save_LIBS"
17616
17617 fi
17618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17619   echo "$ac_t""yes" 1>&6
17620     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
17621     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17622   cat >> confdefs.h <<EOF
17623 #define $ac_tr_lib 1
17624 EOF
17625
17626   LIBS="-lm $LIBS"
17627
17628 else
17629   echo "$ac_t""no" 1>&6
17630 fi
17631
17632   for ac_func in nan copysignf
17633 do
17634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17635 echo "configure:17636: checking for $ac_func" >&5
17636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17637   echo $ac_n "(cached) $ac_c" 1>&6
17638 else
17639   cat > conftest.$ac_ext <<EOF
17640 #line 17641 "configure"
17641 #include "confdefs.h"
17642 /* System header to define __stub macros and hopefully few prototypes,
17643     which can conflict with char $ac_func(); below.  */
17644 #include <assert.h>
17645 /* Override any gcc2 internal prototype to avoid an error.  */
17646 /* We use char because int might match the return type of a gcc2
17647     builtin and then its argument prototype would still apply.  */
17648 char $ac_func();
17649
17650 int main() {
17651
17652 /* The GNU C library defines this for functions which it implements
17653     to always fail with ENOSYS.  Some functions are actually named
17654     something starting with __ and the normal name is an alias.  */
17655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17656 choke me
17657 #else
17658 $ac_func();
17659 #endif
17660
17661 ; return 0; }
17662 EOF
17663 if { (eval echo configure:17664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17664   rm -rf conftest*
17665   eval "ac_cv_func_$ac_func=yes"
17666 else
17667   echo "configure: failed program was:" >&5
17668   cat conftest.$ac_ext >&5
17669   rm -rf conftest*
17670   eval "ac_cv_func_$ac_func=no"
17671 fi
17672 rm -f conftest*
17673 fi
17674
17675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17676   echo "$ac_t""yes" 1>&6
17677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17678   cat >> confdefs.h <<EOF
17679 #define $ac_tr_func 1
17680 EOF
17681  
17682 else
17683   echo "$ac_t""no" 1>&6
17684 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17685 fi
17686 done
17687
17688
17689
17690           USE_COMPLEX_LONG_DOUBLE=no
17691   if test x$ac_cv_func_copysignl = x"yes"; then
17692     USE_COMPLEX_LONG_DOUBLE=yes
17693     for ac_func in signbitl
17694 do
17695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17696 echo "configure:17697: checking for $ac_func" >&5
17697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17698   echo $ac_n "(cached) $ac_c" 1>&6
17699 else
17700   cat > conftest.$ac_ext <<EOF
17701 #line 17702 "configure"
17702 #include "confdefs.h"
17703 /* System header to define __stub macros and hopefully few prototypes,
17704     which can conflict with char $ac_func(); below.  */
17705 #include <assert.h>
17706 /* Override any gcc2 internal prototype to avoid an error.  */
17707 /* We use char because int might match the return type of a gcc2
17708     builtin and then its argument prototype would still apply.  */
17709 char $ac_func();
17710
17711 int main() {
17712
17713 /* The GNU C library defines this for functions which it implements
17714     to always fail with ENOSYS.  Some functions are actually named
17715     something starting with __ and the normal name is an alias.  */
17716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17717 choke me
17718 #else
17719 $ac_func();
17720 #endif
17721
17722 ; return 0; }
17723 EOF
17724 if { (eval echo configure:17725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17725   rm -rf conftest*
17726   eval "ac_cv_func_$ac_func=yes"
17727 else
17728   echo "configure: failed program was:" >&5
17729   cat conftest.$ac_ext >&5
17730   rm -rf conftest*
17731   eval "ac_cv_func_$ac_func=no"
17732 fi
17733 rm -f conftest*
17734 fi
17735
17736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17737   echo "$ac_t""yes" 1>&6
17738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17739   cat >> confdefs.h <<EOF
17740 #define $ac_tr_func 1
17741 EOF
17742  
17743 else
17744   echo "$ac_t""no" 1>&6
17745 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17746 fi
17747 done
17748
17749
17750   fi
17751
17752   
17753
17754   
17755
17756       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
17757 echo "configure:17758: checking for mbstate_t" >&5
17758   cat > conftest.$ac_ext <<EOF
17759 #line 17760 "configure"
17760 #include "confdefs.h"
17761 #include <wchar.h>
17762 int main() {
17763 mbstate_t teststate;
17764 ; return 0; }
17765 EOF
17766 if { (eval echo configure:17767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17767   rm -rf conftest*
17768   have_mbstate_t=yes
17769 else
17770   echo "configure: failed program was:" >&5
17771   cat conftest.$ac_ext >&5
17772   rm -rf conftest*
17773   have_mbstate_t=no
17774 fi
17775 rm -f conftest*
17776   echo "$ac_t""$have_mbstate_t" 1>&6
17777   if test x"$have_mbstate_t" = xyes; then
17778     cat >> confdefs.h <<\EOF
17779 #define HAVE_MBSTATE_T 1
17780 EOF
17781
17782   fi
17783
17784     for ac_hdr in wchar.h
17785 do
17786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17788 echo "configure:17789: checking for $ac_hdr" >&5
17789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17790   echo $ac_n "(cached) $ac_c" 1>&6
17791 else
17792   cat > conftest.$ac_ext <<EOF
17793 #line 17794 "configure"
17794 #include "confdefs.h"
17795 #include <$ac_hdr>
17796 EOF
17797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17798 { (eval echo configure:17799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17800 if test -z "$ac_err"; then
17801   rm -rf conftest*
17802   eval "ac_cv_header_$ac_safe=yes"
17803 else
17804   echo "$ac_err" >&5
17805   echo "configure: failed program was:" >&5
17806   cat conftest.$ac_ext >&5
17807   rm -rf conftest*
17808   eval "ac_cv_header_$ac_safe=no"
17809 fi
17810 rm -f conftest*
17811 fi
17812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17813   echo "$ac_t""yes" 1>&6
17814     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17815   cat >> confdefs.h <<EOF
17816 #define $ac_tr_hdr 1
17817 EOF
17818  ac_has_wchar_h=yes
17819 else
17820   echo "$ac_t""no" 1>&6
17821 ac_has_wchar_h=no
17822 fi
17823 done
17824
17825   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17826 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17827 echo "configure:17828: checking for wctype.h" >&5
17828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17829   echo $ac_n "(cached) $ac_c" 1>&6
17830 else
17831   cat > conftest.$ac_ext <<EOF
17832 #line 17833 "configure"
17833 #include "confdefs.h"
17834 #include <wctype.h>
17835 EOF
17836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17837 { (eval echo configure:17838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17839 if test -z "$ac_err"; then
17840   rm -rf conftest*
17841   eval "ac_cv_header_$ac_safe=yes"
17842 else
17843   echo "$ac_err" >&5
17844   echo "configure: failed program was:" >&5
17845   cat conftest.$ac_ext >&5
17846   rm -rf conftest*
17847   eval "ac_cv_header_$ac_safe=no"
17848 fi
17849 rm -f conftest*
17850 fi
17851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17852   echo "$ac_t""yes" 1>&6
17853   ac_has_wctype_h=yes
17854 else
17855   echo "$ac_t""no" 1>&6
17856 ac_has_wctype_h=no
17857 fi
17858
17859   
17860     if test x"$ac_has_wchar_h" = xyes &&
17861      test x"$ac_has_wctype_h" = xyes &&
17862      test x"$enable_c_mbchar" != xno; then
17863       
17864             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
17865 echo "configure:17866: checking for WCHAR_MIN and WCHAR_MAX" >&5
17866     cat > conftest.$ac_ext <<EOF
17867 #line 17868 "configure"
17868 #include "confdefs.h"
17869 #include <wchar.h>
17870 int main() {
17871 int i = WCHAR_MIN; int j = WCHAR_MAX;
17872 ; return 0; }
17873 EOF
17874 if { (eval echo configure:17875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17875   rm -rf conftest*
17876   has_wchar_minmax=yes
17877 else
17878   echo "configure: failed program was:" >&5
17879   cat conftest.$ac_ext >&5
17880   rm -rf conftest*
17881   has_wchar_minmax=no
17882 fi
17883 rm -f conftest*
17884     echo "$ac_t""$has_wchar_minmax" 1>&6
17885     
17886             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
17887 echo "configure:17888: checking for WEOF" >&5
17888     cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17891
17892       #include <wchar.h>
17893       #include <stddef.h>
17894 int main() {
17895 wint_t i = WEOF;
17896 ; return 0; }
17897 EOF
17898 if { (eval echo configure:17899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17899   rm -rf conftest*
17900   has_weof=yes
17901 else
17902   echo "configure: failed program was:" >&5
17903   cat conftest.$ac_ext >&5
17904   rm -rf conftest*
17905   has_weof=no
17906 fi
17907 rm -f conftest*
17908     echo "$ac_t""$has_weof" 1>&6
17909   
17910         ac_wfuncs=yes
17911     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
17912 do
17913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17914 echo "configure:17915: checking for $ac_func" >&5
17915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17916   echo $ac_n "(cached) $ac_c" 1>&6
17917 else
17918   cat > conftest.$ac_ext <<EOF
17919 #line 17920 "configure"
17920 #include "confdefs.h"
17921 /* System header to define __stub macros and hopefully few prototypes,
17922     which can conflict with char $ac_func(); below.  */
17923 #include <assert.h>
17924 /* Override any gcc2 internal prototype to avoid an error.  */
17925 /* We use char because int might match the return type of a gcc2
17926     builtin and then its argument prototype would still apply.  */
17927 char $ac_func();
17928
17929 int main() {
17930
17931 /* The GNU C library defines this for functions which it implements
17932     to always fail with ENOSYS.  Some functions are actually named
17933     something starting with __ and the normal name is an alias.  */
17934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17935 choke me
17936 #else
17937 $ac_func();
17938 #endif
17939
17940 ; return 0; }
17941 EOF
17942 if { (eval echo configure:17943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17943   rm -rf conftest*
17944   eval "ac_cv_func_$ac_func=yes"
17945 else
17946   echo "configure: failed program was:" >&5
17947   cat conftest.$ac_ext >&5
17948   rm -rf conftest*
17949   eval "ac_cv_func_$ac_func=no"
17950 fi
17951 rm -f conftest*
17952 fi
17953
17954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17955   echo "$ac_t""yes" 1>&6
17956     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17957   cat >> confdefs.h <<EOF
17958 #define $ac_tr_func 1
17959 EOF
17960  
17961 else
17962   echo "$ac_t""no" 1>&6
17963 \
17964     ac_wfuncs=no
17965 fi
17966 done
17967
17968   
17969         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
17970     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
17971     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
17972     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
17973     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
17974     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
17975 do
17976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17977 echo "configure:17978: checking for $ac_func" >&5
17978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17979   echo $ac_n "(cached) $ac_c" 1>&6
17980 else
17981   cat > conftest.$ac_ext <<EOF
17982 #line 17983 "configure"
17983 #include "confdefs.h"
17984 /* System header to define __stub macros and hopefully few prototypes,
17985     which can conflict with char $ac_func(); below.  */
17986 #include <assert.h>
17987 /* Override any gcc2 internal prototype to avoid an error.  */
17988 /* We use char because int might match the return type of a gcc2
17989     builtin and then its argument prototype would still apply.  */
17990 char $ac_func();
17991
17992 int main() {
17993
17994 /* The GNU C library defines this for functions which it implements
17995     to always fail with ENOSYS.  Some functions are actually named
17996     something starting with __ and the normal name is an alias.  */
17997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17998 choke me
17999 #else
18000 $ac_func();
18001 #endif
18002
18003 ; return 0; }
18004 EOF
18005 if { (eval echo configure:18006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18006   rm -rf conftest*
18007   eval "ac_cv_func_$ac_func=yes"
18008 else
18009   echo "configure: failed program was:" >&5
18010   cat conftest.$ac_ext >&5
18011   rm -rf conftest*
18012   eval "ac_cv_func_$ac_func=no"
18013 fi
18014 rm -f conftest*
18015 fi
18016
18017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18018   echo "$ac_t""yes" 1>&6
18019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18020   cat >> confdefs.h <<EOF
18021 #define $ac_tr_func 1
18022 EOF
18023  
18024 else
18025   echo "$ac_t""no" 1>&6
18026 \
18027     ac_wfuncs=no
18028 fi
18029 done
18030
18031
18032     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
18033 echo "configure:18034: checking for ISO C99 wchar_t support" >&5
18034     if test x"$has_weof" = xyes &&
18035        test x"$has_wchar_minmax" = xyes &&
18036        test x"$ac_wfuncs" = xyes; then
18037       ac_isoC99_wchar_t=yes
18038     else
18039       ac_isoC99_wchar_t=no
18040     fi
18041     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
18042   
18043             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
18044 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
18045 echo "configure:18046: checking for iconv.h" >&5
18046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18047   echo $ac_n "(cached) $ac_c" 1>&6
18048 else
18049   cat > conftest.$ac_ext <<EOF
18050 #line 18051 "configure"
18051 #include "confdefs.h"
18052 #include <iconv.h>
18053 EOF
18054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18055 { (eval echo configure:18056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18057 if test -z "$ac_err"; then
18058   rm -rf conftest*
18059   eval "ac_cv_header_$ac_safe=yes"
18060 else
18061   echo "$ac_err" >&5
18062   echo "configure: failed program was:" >&5
18063   cat conftest.$ac_ext >&5
18064   rm -rf conftest*
18065   eval "ac_cv_header_$ac_safe=no"
18066 fi
18067 rm -f conftest*
18068 fi
18069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18070   echo "$ac_t""yes" 1>&6
18071   ac_has_iconv_h=yes
18072 else
18073   echo "$ac_t""no" 1>&6
18074 ac_has_iconv_h=no
18075 fi
18076
18077     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
18078 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
18079 echo "configure:18080: checking for langinfo.h" >&5
18080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18081   echo $ac_n "(cached) $ac_c" 1>&6
18082 else
18083   cat > conftest.$ac_ext <<EOF
18084 #line 18085 "configure"
18085 #include "confdefs.h"
18086 #include <langinfo.h>
18087 EOF
18088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18089 { (eval echo configure:18090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18091 if test -z "$ac_err"; then
18092   rm -rf conftest*
18093   eval "ac_cv_header_$ac_safe=yes"
18094 else
18095   echo "$ac_err" >&5
18096   echo "configure: failed program was:" >&5
18097   cat conftest.$ac_ext >&5
18098   rm -rf conftest*
18099   eval "ac_cv_header_$ac_safe=no"
18100 fi
18101 rm -f conftest*
18102 fi
18103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18104   echo "$ac_t""yes" 1>&6
18105   ac_has_langinfo_h=yes
18106 else
18107   echo "$ac_t""no" 1>&6
18108 ac_has_langinfo_h=no
18109 fi
18110
18111
18112         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
18113 echo "configure:18114: checking for iconv in -liconv" >&5
18114 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
18115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18116   echo $ac_n "(cached) $ac_c" 1>&6
18117 else
18118   ac_save_LIBS="$LIBS"
18119 LIBS="-liconv  $LIBS"
18120 cat > conftest.$ac_ext <<EOF
18121 #line 18122 "configure"
18122 #include "confdefs.h"
18123 /* Override any gcc2 internal prototype to avoid an error.  */
18124 /* We use char because int might match the return type of a gcc2
18125     builtin and then its argument prototype would still apply.  */
18126 char iconv();
18127
18128 int main() {
18129 iconv()
18130 ; return 0; }
18131 EOF
18132 if { (eval echo configure:18133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18133   rm -rf conftest*
18134   eval "ac_cv_lib_$ac_lib_var=yes"
18135 else
18136   echo "configure: failed program was:" >&5
18137   cat conftest.$ac_ext >&5
18138   rm -rf conftest*
18139   eval "ac_cv_lib_$ac_lib_var=no"
18140 fi
18141 rm -f conftest*
18142 LIBS="$ac_save_LIBS"
18143
18144 fi
18145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18146   echo "$ac_t""yes" 1>&6
18147   libiconv="-liconv"
18148 else
18149   echo "$ac_t""no" 1>&6
18150 fi
18151
18152     ac_save_LIBS="$LIBS"
18153     LIBS="$LIBS $libiconv"
18154
18155     for ac_func in iconv_open iconv_close iconv nl_langinfo
18156 do
18157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18158 echo "configure:18159: checking for $ac_func" >&5
18159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18160   echo $ac_n "(cached) $ac_c" 1>&6
18161 else
18162   cat > conftest.$ac_ext <<EOF
18163 #line 18164 "configure"
18164 #include "confdefs.h"
18165 /* System header to define __stub macros and hopefully few prototypes,
18166     which can conflict with char $ac_func(); below.  */
18167 #include <assert.h>
18168 /* Override any gcc2 internal prototype to avoid an error.  */
18169 /* We use char because int might match the return type of a gcc2
18170     builtin and then its argument prototype would still apply.  */
18171 char $ac_func();
18172
18173 int main() {
18174
18175 /* The GNU C library defines this for functions which it implements
18176     to always fail with ENOSYS.  Some functions are actually named
18177     something starting with __ and the normal name is an alias.  */
18178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18179 choke me
18180 #else
18181 $ac_func();
18182 #endif
18183
18184 ; return 0; }
18185 EOF
18186 if { (eval echo configure:18187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18187   rm -rf conftest*
18188   eval "ac_cv_func_$ac_func=yes"
18189 else
18190   echo "configure: failed program was:" >&5
18191   cat conftest.$ac_ext >&5
18192   rm -rf conftest*
18193   eval "ac_cv_func_$ac_func=no"
18194 fi
18195 rm -f conftest*
18196 fi
18197
18198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18199   echo "$ac_t""yes" 1>&6
18200     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18201   cat >> confdefs.h <<EOF
18202 #define $ac_tr_func 1
18203 EOF
18204  \
18205     ac_XPG2funcs=yes
18206 else
18207   echo "$ac_t""no" 1>&6
18208 ac_XPG2funcs=no
18209 fi
18210 done
18211
18212   
18213     LIBS="$ac_save_LIBS"
18214
18215     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
18216 echo "configure:18217: checking for XPG2 wchar_t support" >&5
18217     if test x"$ac_has_iconv_h" = xyes &&
18218        test x"$ac_has_langinfo_h" = xyes &&
18219        test x"$ac_XPG2funcs" = xyes; then
18220       ac_XPG2_wchar_t=yes
18221     else
18222       ac_XPG2_wchar_t=no
18223     fi
18224     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
18225   
18226             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
18227 echo "configure:18228: checking for enabled wchar_t specializations" >&5
18228     if test x"$ac_isoC99_wchar_t" = xyes &&
18229        test x"$ac_XPG2_wchar_t" = xyes; then
18230       cat >> confdefs.h <<\EOF
18231 #define _GLIBCPP_USE_WCHAR_T 1
18232 EOF
18233
18234       echo "$ac_t"""yes"" 1>&6
18235     else
18236       echo "$ac_t"""no"" 1>&6
18237     fi
18238   else
18239         echo "configure: warning: wchar_t support disabled." 1>&2
18240   fi
18241
18242   
18243   ac_test_CXXFLAGS="${CXXFLAGS+set}"
18244   ac_save_CXXFLAGS="$CXXFLAGS"
18245   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
18246
18247   
18248   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
18249 echo "configure:18250: checking for strtold declaration" >&5
18250   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
18251     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
18252   echo $ac_n "(cached) $ac_c" 1>&6
18253 else
18254   
18255       
18256       ac_ext=C
18257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18258 ac_cpp='$CXXCPP $CPPFLAGS'
18259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18261 cross_compiling=$ac_cv_prog_cxx_cross
18262
18263       cat > conftest.$ac_ext <<EOF
18264 #line 18265 "configure"
18265 #include "confdefs.h"
18266 #include <stdlib.h>
18267 int main() {
18268  strtold(0, 0);
18269 ; return 0; }
18270 EOF
18271 if { (eval echo configure:18272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18272   rm -rf conftest*
18273   glibcpp_cv_func_strtold_use=yes
18274 else
18275   echo "configure: failed program was:" >&5
18276   cat conftest.$ac_ext >&5
18277   rm -rf conftest*
18278   glibcpp_cv_func_strtold_use=no
18279 fi
18280 rm -f conftest*
18281       ac_ext=c
18282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18283 ac_cpp='$CPP $CPPFLAGS'
18284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18286 cross_compiling=$ac_cv_prog_cc_cross
18287
18288     
18289 fi
18290
18291   fi
18292   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
18293   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
18294     for ac_func in strtold
18295 do
18296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18297 echo "configure:18298: checking for $ac_func" >&5
18298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18299   echo $ac_n "(cached) $ac_c" 1>&6
18300 else
18301   cat > conftest.$ac_ext <<EOF
18302 #line 18303 "configure"
18303 #include "confdefs.h"
18304 /* System header to define __stub macros and hopefully few prototypes,
18305     which can conflict with char $ac_func(); below.  */
18306 #include <assert.h>
18307 /* Override any gcc2 internal prototype to avoid an error.  */
18308 /* We use char because int might match the return type of a gcc2
18309     builtin and then its argument prototype would still apply.  */
18310 char $ac_func();
18311
18312 int main() {
18313
18314 /* The GNU C library defines this for functions which it implements
18315     to always fail with ENOSYS.  Some functions are actually named
18316     something starting with __ and the normal name is an alias.  */
18317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18318 choke me
18319 #else
18320 $ac_func();
18321 #endif
18322
18323 ; return 0; }
18324 EOF
18325 if { (eval echo configure:18326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18326   rm -rf conftest*
18327   eval "ac_cv_func_$ac_func=yes"
18328 else
18329   echo "configure: failed program was:" >&5
18330   cat conftest.$ac_ext >&5
18331   rm -rf conftest*
18332   eval "ac_cv_func_$ac_func=no"
18333 fi
18334 rm -f conftest*
18335 fi
18336
18337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18338   echo "$ac_t""yes" 1>&6
18339     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18340   cat >> confdefs.h <<EOF
18341 #define $ac_tr_func 1
18342 EOF
18343  
18344 else
18345   echo "$ac_t""no" 1>&6
18346 fi
18347 done
18348     
18349   fi
18350
18351   
18352   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
18353 echo "configure:18354: checking for strtof declaration" >&5
18354   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
18355     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
18356   echo $ac_n "(cached) $ac_c" 1>&6
18357 else
18358   
18359       
18360       ac_ext=C
18361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18362 ac_cpp='$CXXCPP $CPPFLAGS'
18363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18365 cross_compiling=$ac_cv_prog_cxx_cross
18366
18367       cat > conftest.$ac_ext <<EOF
18368 #line 18369 "configure"
18369 #include "confdefs.h"
18370 #include <stdlib.h>
18371 int main() {
18372  strtof(0, 0);
18373 ; return 0; }
18374 EOF
18375 if { (eval echo configure:18376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18376   rm -rf conftest*
18377   glibcpp_cv_func_strtof_use=yes
18378 else
18379   echo "configure: failed program was:" >&5
18380   cat conftest.$ac_ext >&5
18381   rm -rf conftest*
18382   glibcpp_cv_func_strtof_use=no
18383 fi
18384 rm -f conftest*
18385       ac_ext=c
18386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18387 ac_cpp='$CPP $CPPFLAGS'
18388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18390 cross_compiling=$ac_cv_prog_cc_cross
18391
18392     
18393 fi
18394
18395   fi
18396   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
18397   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
18398     for ac_func in strtof
18399 do
18400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18401 echo "configure:18402: checking for $ac_func" >&5
18402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18403   echo $ac_n "(cached) $ac_c" 1>&6
18404 else
18405   cat > conftest.$ac_ext <<EOF
18406 #line 18407 "configure"
18407 #include "confdefs.h"
18408 /* System header to define __stub macros and hopefully few prototypes,
18409     which can conflict with char $ac_func(); below.  */
18410 #include <assert.h>
18411 /* Override any gcc2 internal prototype to avoid an error.  */
18412 /* We use char because int might match the return type of a gcc2
18413     builtin and then its argument prototype would still apply.  */
18414 char $ac_func();
18415
18416 int main() {
18417
18418 /* The GNU C library defines this for functions which it implements
18419     to always fail with ENOSYS.  Some functions are actually named
18420     something starting with __ and the normal name is an alias.  */
18421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18422 choke me
18423 #else
18424 $ac_func();
18425 #endif
18426
18427 ; return 0; }
18428 EOF
18429 if { (eval echo configure:18430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18430   rm -rf conftest*
18431   eval "ac_cv_func_$ac_func=yes"
18432 else
18433   echo "configure: failed program was:" >&5
18434   cat conftest.$ac_ext >&5
18435   rm -rf conftest*
18436   eval "ac_cv_func_$ac_func=no"
18437 fi
18438 rm -f conftest*
18439 fi
18440
18441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18442   echo "$ac_t""yes" 1>&6
18443     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18444   cat >> confdefs.h <<EOF
18445 #define $ac_tr_func 1
18446 EOF
18447  
18448 else
18449   echo "$ac_t""no" 1>&6
18450 fi
18451 done
18452     
18453   fi
18454
18455   for ac_func in drand48
18456 do
18457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18458 echo "configure:18459: checking for $ac_func" >&5
18459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18460   echo $ac_n "(cached) $ac_c" 1>&6
18461 else
18462   cat > conftest.$ac_ext <<EOF
18463 #line 18464 "configure"
18464 #include "confdefs.h"
18465 /* System header to define __stub macros and hopefully few prototypes,
18466     which can conflict with char $ac_func(); below.  */
18467 #include <assert.h>
18468 /* Override any gcc2 internal prototype to avoid an error.  */
18469 /* We use char because int might match the return type of a gcc2
18470     builtin and then its argument prototype would still apply.  */
18471 char $ac_func();
18472
18473 int main() {
18474
18475 /* The GNU C library defines this for functions which it implements
18476     to always fail with ENOSYS.  Some functions are actually named
18477     something starting with __ and the normal name is an alias.  */
18478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18479 choke me
18480 #else
18481 $ac_func();
18482 #endif
18483
18484 ; return 0; }
18485 EOF
18486 if { (eval echo configure:18487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18487   rm -rf conftest*
18488   eval "ac_cv_func_$ac_func=yes"
18489 else
18490   echo "configure: failed program was:" >&5
18491   cat conftest.$ac_ext >&5
18492   rm -rf conftest*
18493   eval "ac_cv_func_$ac_func=no"
18494 fi
18495 rm -f conftest*
18496 fi
18497
18498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18499   echo "$ac_t""yes" 1>&6
18500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18501   cat >> confdefs.h <<EOF
18502 #define $ac_tr_func 1
18503 EOF
18504  
18505 else
18506   echo "$ac_t""no" 1>&6
18507 fi
18508 done
18509
18510
18511   CXXFLAGS="$ac_save_CXXFLAGS"
18512
18513   
18514   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
18515 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
18516 echo "configure:18517: checking for locale.h" >&5
18517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18518   echo $ac_n "(cached) $ac_c" 1>&6
18519 else
18520   cat > conftest.$ac_ext <<EOF
18521 #line 18522 "configure"
18522 #include "confdefs.h"
18523 #include <locale.h>
18524 EOF
18525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18526 { (eval echo configure:18527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18528 if test -z "$ac_err"; then
18529   rm -rf conftest*
18530   eval "ac_cv_header_$ac_safe=yes"
18531 else
18532   echo "$ac_err" >&5
18533   echo "configure: failed program was:" >&5
18534   cat conftest.$ac_ext >&5
18535   rm -rf conftest*
18536   eval "ac_cv_header_$ac_safe=no"
18537 fi
18538 rm -f conftest*
18539 fi
18540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18541   echo "$ac_t""yes" 1>&6
18542   
18543     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
18544 echo "configure:18545: checking for LC_MESSAGES" >&5
18545 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
18546   echo $ac_n "(cached) $ac_c" 1>&6
18547 else
18548   cat > conftest.$ac_ext <<EOF
18549 #line 18550 "configure"
18550 #include "confdefs.h"
18551 #include <locale.h>
18552 int main() {
18553 return LC_MESSAGES
18554 ; return 0; }
18555 EOF
18556 if { (eval echo configure:18557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18557   rm -rf conftest*
18558   ac_cv_val_LC_MESSAGES=yes
18559 else
18560   echo "configure: failed program was:" >&5
18561   cat conftest.$ac_ext >&5
18562   rm -rf conftest*
18563   ac_cv_val_LC_MESSAGES=no
18564 fi
18565 rm -f conftest*
18566 fi
18567
18568 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
18569     if test $ac_cv_val_LC_MESSAGES = yes; then
18570       cat >> confdefs.h <<\EOF
18571 #define HAVE_LC_MESSAGES 1
18572 EOF
18573
18574     fi
18575   
18576 else
18577   echo "$ac_t""no" 1>&6
18578 fi
18579
18580
18581
18582   cat > conftest.$ac_ext <<EOF
18583 #line 18584 "configure"
18584 #include "confdefs.h"
18585
18586   #include <setjmp.h>
18587   
18588 int main() {
18589 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18590 ; return 0; }
18591 EOF
18592 if { (eval echo configure:18593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18593   rm -rf conftest*
18594   cat >> confdefs.h <<\EOF
18595 #define HAVE_SIGSETJMP 1
18596 EOF
18597
18598   
18599 else
18600   echo "configure: failed program was:" >&5
18601   cat conftest.$ac_ext >&5
18602 fi
18603 rm -f conftest*
18604
18605   for ac_hdr in unistd.h
18606 do
18607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18609 echo "configure:18610: checking for $ac_hdr" >&5
18610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18611   echo $ac_n "(cached) $ac_c" 1>&6
18612 else
18613   cat > conftest.$ac_ext <<EOF
18614 #line 18615 "configure"
18615 #include "confdefs.h"
18616 #include <$ac_hdr>
18617 EOF
18618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18619 { (eval echo configure:18620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18621 if test -z "$ac_err"; then
18622   rm -rf conftest*
18623   eval "ac_cv_header_$ac_safe=yes"
18624 else
18625   echo "$ac_err" >&5
18626   echo "configure: failed program was:" >&5
18627   cat conftest.$ac_ext >&5
18628   rm -rf conftest*
18629   eval "ac_cv_header_$ac_safe=no"
18630 fi
18631 rm -f conftest*
18632 fi
18633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18634   echo "$ac_t""yes" 1>&6
18635     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18636   cat >> confdefs.h <<EOF
18637 #define $ac_tr_hdr 1
18638 EOF
18639  
18640 else
18641   echo "$ac_t""no" 1>&6
18642 fi
18643 done
18644
18645 for ac_func in getpagesize
18646 do
18647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18648 echo "configure:18649: checking for $ac_func" >&5
18649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18650   echo $ac_n "(cached) $ac_c" 1>&6
18651 else
18652   cat > conftest.$ac_ext <<EOF
18653 #line 18654 "configure"
18654 #include "confdefs.h"
18655 /* System header to define __stub macros and hopefully few prototypes,
18656     which can conflict with char $ac_func(); below.  */
18657 #include <assert.h>
18658 /* Override any gcc2 internal prototype to avoid an error.  */
18659 /* We use char because int might match the return type of a gcc2
18660     builtin and then its argument prototype would still apply.  */
18661 char $ac_func();
18662
18663 int main() {
18664
18665 /* The GNU C library defines this for functions which it implements
18666     to always fail with ENOSYS.  Some functions are actually named
18667     something starting with __ and the normal name is an alias.  */
18668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18669 choke me
18670 #else
18671 $ac_func();
18672 #endif
18673
18674 ; return 0; }
18675 EOF
18676 if { (eval echo configure:18677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18677   rm -rf conftest*
18678   eval "ac_cv_func_$ac_func=yes"
18679 else
18680   echo "configure: failed program was:" >&5
18681   cat conftest.$ac_ext >&5
18682   rm -rf conftest*
18683   eval "ac_cv_func_$ac_func=no"
18684 fi
18685 rm -f conftest*
18686 fi
18687
18688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18689   echo "$ac_t""yes" 1>&6
18690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18691   cat >> confdefs.h <<EOF
18692 #define $ac_tr_func 1
18693 EOF
18694  
18695 else
18696   echo "$ac_t""no" 1>&6
18697 fi
18698 done
18699
18700 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
18701 echo "configure:18702: checking for working mmap" >&5
18702 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
18703   echo $ac_n "(cached) $ac_c" 1>&6
18704 else
18705   if test "$cross_compiling" = yes; then
18706   ac_cv_func_mmap_fixed_mapped=no
18707 else
18708   cat > conftest.$ac_ext <<EOF
18709 #line 18710 "configure"
18710 #include "confdefs.h"
18711
18712 /* Thanks to Mike Haertel and Jim Avera for this test.
18713    Here is a matrix of mmap possibilities:
18714         mmap private not fixed
18715         mmap private fixed at somewhere currently unmapped
18716         mmap private fixed at somewhere already mapped
18717         mmap shared not fixed
18718         mmap shared fixed at somewhere currently unmapped
18719         mmap shared fixed at somewhere already mapped
18720    For private mappings, we should verify that changes cannot be read()
18721    back from the file, nor mmap's back from the file at a different
18722    address.  (There have been systems where private was not correctly
18723    implemented like the infamous i386 svr4.0, and systems where the
18724    VM page cache was not coherent with the filesystem buffer cache
18725    like early versions of FreeBSD and possibly contemporary NetBSD.)
18726    For shared mappings, we should conversely verify that changes get
18727    propogated back to all the places they're supposed to be.
18728
18729    Grep wants private fixed already mapped.
18730    The main things grep needs to know about mmap are:
18731    * does it exist and is it safe to write into the mmap'd area
18732    * how to use it (BSD variants)  */
18733 #include <sys/types.h>
18734 #include <fcntl.h>
18735 #include <sys/mman.h>
18736
18737 /* This mess was copied from the GNU getpagesize.h.  */
18738 #ifndef HAVE_GETPAGESIZE
18739 # ifdef HAVE_UNISTD_H
18740 #  include <unistd.h>
18741 # endif
18742
18743 /* Assume that all systems that can run configure have sys/param.h.  */
18744 # ifndef HAVE_SYS_PARAM_H
18745 #  define HAVE_SYS_PARAM_H 1
18746 # endif
18747
18748 # ifdef _SC_PAGESIZE
18749 #  define getpagesize() sysconf(_SC_PAGESIZE)
18750 # else /* no _SC_PAGESIZE */
18751 #  ifdef HAVE_SYS_PARAM_H
18752 #   include <sys/param.h>
18753 #   ifdef EXEC_PAGESIZE
18754 #    define getpagesize() EXEC_PAGESIZE
18755 #   else /* no EXEC_PAGESIZE */
18756 #    ifdef NBPG
18757 #     define getpagesize() NBPG * CLSIZE
18758 #     ifndef CLSIZE
18759 #      define CLSIZE 1
18760 #     endif /* no CLSIZE */
18761 #    else /* no NBPG */
18762 #     ifdef NBPC
18763 #      define getpagesize() NBPC
18764 #     else /* no NBPC */
18765 #      ifdef PAGESIZE
18766 #       define getpagesize() PAGESIZE
18767 #      endif /* PAGESIZE */
18768 #     endif /* no NBPC */
18769 #    endif /* no NBPG */
18770 #   endif /* no EXEC_PAGESIZE */
18771 #  else /* no HAVE_SYS_PARAM_H */
18772 #   define getpagesize() 8192   /* punt totally */
18773 #  endif /* no HAVE_SYS_PARAM_H */
18774 # endif /* no _SC_PAGESIZE */
18775
18776 #endif /* no HAVE_GETPAGESIZE */
18777
18778 #ifdef __cplusplus
18779 extern "C" { void *malloc(unsigned); }
18780 #else
18781 char *malloc();
18782 #endif
18783
18784 int
18785 main()
18786 {
18787         char *data, *data2, *data3;
18788         int i, pagesize;
18789         int fd;
18790
18791         pagesize = getpagesize();
18792
18793         /*
18794          * First, make a file with some known garbage in it.
18795          */
18796         data = malloc(pagesize);
18797         if (!data)
18798                 exit(1);
18799         for (i = 0; i < pagesize; ++i)
18800                 *(data + i) = rand();
18801         umask(0);
18802         fd = creat("conftestmmap", 0600);
18803         if (fd < 0)
18804                 exit(1);
18805         if (write(fd, data, pagesize) != pagesize)
18806                 exit(1);
18807         close(fd);
18808
18809         /*
18810          * Next, try to mmap the file at a fixed address which
18811          * already has something else allocated at it.  If we can,
18812          * also make sure that we see the same garbage.
18813          */
18814         fd = open("conftestmmap", O_RDWR);
18815         if (fd < 0)
18816                 exit(1);
18817         data2 = malloc(2 * pagesize);
18818         if (!data2)
18819                 exit(1);
18820         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
18821         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
18822             MAP_PRIVATE | MAP_FIXED, fd, 0L))
18823                 exit(1);
18824         for (i = 0; i < pagesize; ++i)
18825                 if (*(data + i) != *(data2 + i))
18826                         exit(1);
18827
18828         /*
18829          * Finally, make sure that changes to the mapped area
18830          * do not percolate back to the file as seen by read().
18831          * (This is a bug on some variants of i386 svr4.0.)
18832          */
18833         for (i = 0; i < pagesize; ++i)
18834                 *(data2 + i) = *(data2 + i) + 1;
18835         data3 = malloc(pagesize);
18836         if (!data3)
18837                 exit(1);
18838         if (read(fd, data3, pagesize) != pagesize)
18839                 exit(1);
18840         for (i = 0; i < pagesize; ++i)
18841                 if (*(data + i) != *(data3 + i))
18842                         exit(1);
18843         close(fd);
18844         unlink("conftestmmap");
18845         exit(0);
18846 }
18847
18848 EOF
18849 if { (eval echo configure:18850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18850 then
18851   ac_cv_func_mmap_fixed_mapped=yes
18852 else
18853   echo "configure: failed program was:" >&5
18854   cat conftest.$ac_ext >&5
18855   rm -fr conftest*
18856   ac_cv_func_mmap_fixed_mapped=no
18857 fi
18858 rm -fr conftest*
18859 fi
18860
18861 fi
18862
18863 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
18864 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18865   cat >> confdefs.h <<\EOF
18866 #define HAVE_MMAP 1
18867 EOF
18868
18869 fi
18870
18871
18872   # Establish limits on memory usage during 'make check'
18873   
18874   
18875   setrlimit_have_headers=yes
18876   for ac_hdr in sys/resource.h unistd.h
18877 do
18878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18880 echo "configure:18881: checking for $ac_hdr" >&5
18881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18882   echo $ac_n "(cached) $ac_c" 1>&6
18883 else
18884   cat > conftest.$ac_ext <<EOF
18885 #line 18886 "configure"
18886 #include "confdefs.h"
18887 #include <$ac_hdr>
18888 EOF
18889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18890 { (eval echo configure:18891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18892 if test -z "$ac_err"; then
18893   rm -rf conftest*
18894   eval "ac_cv_header_$ac_safe=yes"
18895 else
18896   echo "$ac_err" >&5
18897   echo "configure: failed program was:" >&5
18898   cat conftest.$ac_ext >&5
18899   rm -rf conftest*
18900   eval "ac_cv_header_$ac_safe=no"
18901 fi
18902 rm -f conftest*
18903 fi
18904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18905   echo "$ac_t""yes" 1>&6
18906     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18907   cat >> confdefs.h <<EOF
18908 #define $ac_tr_hdr 1
18909 EOF
18910  
18911 else
18912   echo "$ac_t""no" 1>&6
18913 setrlimit_have_headers=no
18914 fi
18915 done
18916
18917   # If don't have the headers, then we can't run the tests now, and we
18918   # won't be seeing any of these during testsuite compilation.
18919   if test $setrlimit_have_headers = yes; then
18920     # Can't do these in a loop, else the resulting syntax is wrong.
18921     
18922   cat > conftest.$ac_ext <<EOF
18923 #line 18924 "configure"
18924 #include "confdefs.h"
18925 #include <sys/resource.h>
18926                   #include <unistd.h>
18927                  
18928 int main() {
18929  int f = RLIMIT_DATA ; 
18930 ; return 0; }
18931 EOF
18932 if { (eval echo configure:18933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18933   rm -rf conftest*
18934   glibcpp_mresult=1
18935 else
18936   echo "configure: failed program was:" >&5
18937   cat conftest.$ac_ext >&5
18938   rm -rf conftest*
18939   glibcpp_mresult=0
18940 fi
18941 rm -f conftest*
18942   cat >> confdefs.h <<EOF
18943 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
18944 EOF
18945
18946
18947     
18948   cat > conftest.$ac_ext <<EOF
18949 #line 18950 "configure"
18950 #include "confdefs.h"
18951 #include <sys/resource.h>
18952                   #include <unistd.h>
18953                  
18954 int main() {
18955  int f = RLIMIT_RSS ; 
18956 ; return 0; }
18957 EOF
18958 if { (eval echo configure:18959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18959   rm -rf conftest*
18960   glibcpp_mresult=1
18961 else
18962   echo "configure: failed program was:" >&5
18963   cat conftest.$ac_ext >&5
18964   rm -rf conftest*
18965   glibcpp_mresult=0
18966 fi
18967 rm -f conftest*
18968   cat >> confdefs.h <<EOF
18969 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
18970 EOF
18971
18972
18973     
18974   cat > conftest.$ac_ext <<EOF
18975 #line 18976 "configure"
18976 #include "confdefs.h"
18977 #include <sys/resource.h>
18978                   #include <unistd.h>
18979                  
18980 int main() {
18981  int f = RLIMIT_VMEM ; 
18982 ; return 0; }
18983 EOF
18984 if { (eval echo configure:18985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18985   rm -rf conftest*
18986   glibcpp_mresult=1
18987 else
18988   echo "configure: failed program was:" >&5
18989   cat conftest.$ac_ext >&5
18990   rm -rf conftest*
18991   glibcpp_mresult=0
18992 fi
18993 rm -f conftest*
18994   cat >> confdefs.h <<EOF
18995 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
18996 EOF
18997
18998
18999     
19000   cat > conftest.$ac_ext <<EOF
19001 #line 19002 "configure"
19002 #include "confdefs.h"
19003 #include <sys/resource.h>
19004                   #include <unistd.h>
19005                  
19006 int main() {
19007  int f = RLIMIT_AS ; 
19008 ; return 0; }
19009 EOF
19010 if { (eval echo configure:19011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19011   rm -rf conftest*
19012   glibcpp_mresult=1
19013 else
19014   echo "configure: failed program was:" >&5
19015   cat conftest.$ac_ext >&5
19016   rm -rf conftest*
19017   glibcpp_mresult=0
19018 fi
19019 rm -f conftest*
19020   cat >> confdefs.h <<EOF
19021 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
19022 EOF
19023
19024
19025
19026     # Check for rlimit, setrlimit.
19027     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
19028   echo $ac_n "(cached) $ac_c" 1>&6
19029 else
19030   
19031       cat > conftest.$ac_ext <<EOF
19032 #line 19033 "configure"
19033 #include "confdefs.h"
19034 #include <sys/resource.h>
19035                       #include <unistd.h>
19036                      
19037 int main() {
19038  struct rlimit r; setrlimit(0, &r);
19039 ; return 0; }
19040 EOF
19041 if { (eval echo configure:19042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19042   rm -rf conftest*
19043   ac_setrlimit=yes
19044 else
19045   echo "configure: failed program was:" >&5
19046   cat conftest.$ac_ext >&5
19047   rm -rf conftest*
19048   ac_setrlimit=no
19049 fi
19050 rm -f conftest*
19051     
19052 fi
19053
19054   fi
19055
19056   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
19057 echo "configure:19058: checking for testsuite memory limit support" >&5
19058   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
19059     ac_mem_limits=yes
19060     cat >> confdefs.h <<\EOF
19061 #define _GLIBCPP_MEM_LIMITS 1
19062 EOF
19063
19064   else
19065     ac_mem_limits=no
19066   fi
19067   echo "$ac_t""$ac_mem_limits" 1>&6
19068
19069
19070   # Look for setenv, so that extended locale tests can be performed.
19071   for ac_func in setenv
19072 do
19073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19074 echo "configure:19075: checking for $ac_func" >&5
19075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19076   echo $ac_n "(cached) $ac_c" 1>&6
19077 else
19078   cat > conftest.$ac_ext <<EOF
19079 #line 19080 "configure"
19080 #include "confdefs.h"
19081 /* System header to define __stub macros and hopefully few prototypes,
19082     which can conflict with char $ac_func(); below.  */
19083 #include <assert.h>
19084 /* Override any gcc2 internal prototype to avoid an error.  */
19085 /* We use char because int might match the return type of a gcc2
19086     builtin and then its argument prototype would still apply.  */
19087 char $ac_func();
19088
19089 int main() {
19090
19091 /* The GNU C library defines this for functions which it implements
19092     to always fail with ENOSYS.  Some functions are actually named
19093     something starting with __ and the normal name is an alias.  */
19094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19095 choke me
19096 #else
19097 $ac_func();
19098 #endif
19099
19100 ; return 0; }
19101 EOF
19102 if { (eval echo configure:19103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19103   rm -rf conftest*
19104   eval "ac_cv_func_$ac_func=yes"
19105 else
19106   echo "configure: failed program was:" >&5
19107   cat conftest.$ac_ext >&5
19108   rm -rf conftest*
19109   eval "ac_cv_func_$ac_func=no"
19110 fi
19111 rm -f conftest*
19112 fi
19113
19114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19115   echo "$ac_t""yes" 1>&6
19116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19117   cat >> confdefs.h <<EOF
19118 #define $ac_tr_func 1
19119 EOF
19120  
19121 else
19122   echo "$ac_t""no" 1>&6
19123 fi
19124 done
19125
19126
19127 fi
19128
19129
19130 # Propagate the target-specific source directories through the build chain.
19131 OS_INC_SRCDIR=$os_include_dir/bits
19132 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
19133 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
19134
19135
19136
19137
19138 # Set up cross-compile flags
19139
19140
19141
19142 if test "$CANADIAN" = yes; then
19143   CANADIAN_TRUE=
19144   CANADIAN_FALSE='#'
19145 else
19146   CANADIAN_TRUE='#'
19147   CANADIAN_FALSE=
19148 fi
19149  
19150 cat > confcache <<\EOF
19151 # This file is a shell script that caches the results of configure
19152 # tests run on this system so they can be shared between configure
19153 # scripts and configure runs.  It is not useful on other systems.
19154 # If it contains results you don't want to keep, you may remove or edit it.
19155 #
19156 # By default, configure uses ./config.cache as the cache file,
19157 # creating it if it does not exist already.  You can give configure
19158 # the --cache-file=FILE option to use a different cache file; that is
19159 # what configure does when it calls configure scripts in
19160 # subdirectories, so they share the cache.
19161 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19162 # config.status only pays attention to the cache file if you give it the
19163 # --recheck option to rerun configure.
19164 #
19165 EOF
19166 # The following way of writing the cache mishandles newlines in values,
19167 # but we know of no workaround that is simple, portable, and efficient.
19168 # So, don't put newlines in cache variables' values.
19169 # Ultrix sh set writes to stderr and can't be redirected directly,
19170 # and sets the high bit in the cache file unless we assign to the vars.
19171 (set) 2>&1 |
19172   case `(ac_space=' '; set | grep ac_space) 2>&1` in
19173   *ac_space=\ *)
19174     # `set' does not quote correctly, so add quotes (double-quote substitution
19175     # turns \\\\ into \\, and sed turns \\ into \).
19176     sed -n \
19177       -e "s/'/'\\\\''/g" \
19178       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19179     ;;
19180   *)
19181     # `set' quotes correctly as required by POSIX, so do not add quotes.
19182     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19183     ;;
19184   esac >> confcache
19185 if cmp -s $cache_file confcache; then
19186   :
19187 else
19188   if test -w $cache_file; then
19189     echo "updating cache $cache_file"
19190     cat confcache > $cache_file
19191   else
19192     echo "not updating unwritable cache $cache_file"
19193   fi
19194 fi
19195 rm -f confcache
19196
19197
19198 if test "${multilib}" = "yes"; then
19199   multilib_arg="--enable-multilib"
19200 else
19201   multilib_arg=
19202 fi
19203
19204 # Needed so that g++ can find the correct include subdir automatically.
19205 INTERFACE=v3
19206
19207 # Export all the install information
19208
19209 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
19210 # exported correctly in GLIBCPP_CONFIGURE.
19211 glibcpp_toolexecdir=no
19212 glibcpp_toolexeclibdir=no
19213 glibcpp_prefixdir=${prefix}
19214
19215 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
19216 echo "configure:19217: checking for interface version number" >&5
19217 libstdcxx_interface=$INTERFACE
19218 echo "$ac_t""$libstdcxx_interface" 1>&6
19219
19220 # Process the option --with-gxx-include-dir=<path to include-files directory>
19221 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
19222 echo "configure:19223: checking for --with-gxx-include-dir" >&5
19223 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
19224 if test "${with_gxx_include_dir+set}" = set; then
19225   withval="$with_gxx_include_dir"
19226   case "${withval}" in
19227   yes)
19228     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
19229     gxx_include_dir=no
19230     ;;
19231   no)
19232     gxx_include_dir=no
19233     ;;
19234   *)
19235     gxx_include_dir=${withval}
19236     ;;
19237 esac
19238 else
19239   gxx_include_dir=no
19240 fi
19241
19242 echo "$ac_t""$gxx_include_dir" 1>&6
19243
19244 # Process the option "--enable-version-specific-runtime-libs"
19245 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
19246 echo "configure:19247: checking for --enable-version-specific-runtime-libs" >&5
19247 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
19248 if test "${enable_version_specific_runtime_libs+set}" = set; then
19249   enableval="$enable_version_specific_runtime_libs"
19250   case "$enableval" in
19251  yes) version_specific_libs=yes ;;
19252  no)  version_specific_libs=no ;;
19253  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
19254  esac
19255 else
19256   version_specific_libs=no
19257 fi
19258 # Option set, now we can test it.
19259 echo "$ac_t""$version_specific_libs" 1>&6
19260
19261 if test $version_specific_libs = yes; then
19262   # Need the gcc compiler version to know where to install libraries
19263   # and header files if --enable-version-specific-runtime-libs option
19264   # is selected.
19265     gcc_version_trigger=${srcdir}/../gcc/version.c
19266   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
19267   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
19268   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
19269   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19270   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
19271   fi
19272
19273 # Default case for install directory for include files.
19274 if test $version_specific_libs = no &&
19275    test $gxx_include_dir = no; then
19276   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
19277 fi
19278
19279 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
19280 # Install a library built with a cross compiler in tooldir, not libdir.
19281 if test x"$glibcpp_toolexecdir" = x"no"; then 
19282   if test -n "$with_cross_host" &&
19283      test x"$with_cross_host" != x"no"; then
19284     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
19285     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
19286   else
19287     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19288     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
19289   fi
19290 fi
19291
19292 echo $ac_n "checking for install location""... $ac_c" 1>&6
19293 echo "configure:19294: checking for install location" >&5
19294 echo "$ac_t""$gxx_include_dir" 1>&6
19295
19296
19297
19298
19299
19300
19301
19302 # Export all the include and flag information to makefiles.
19303
19304   # Root level of the build directory include sources.
19305   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
19306
19307   # Passed down for canadian crosses.
19308   if test x"$CANADIAN" = xyes; then
19309     TOPLEVEL_INCLUDES='-I$(includedir)'
19310   fi
19311
19312   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
19313
19314   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
19315
19316   if test x"$need_libio" = xyes; then
19317     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
19318     
19319   fi
19320
19321   # Now, export this to all the little Makefiles....
19322   
19323   
19324   
19325   
19326
19327
19328   # Optimization flags that are probably a good idea for thrill-seekers. Just
19329   # uncomment the lines below and make, everything else is ready to go... 
19330   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
19331   OPTIMIZE_CXXFLAGS=
19332   
19333
19334   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
19335   
19336
19337
19338 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
19339    grep "enable shared" > /dev/null; then
19340   LIBSUPCXX_PICFLAGS=-prefer-pic
19341 else
19342   LIBSUPCXX_PICFLAGS=
19343 fi
19344
19345
19346 # Generate the various Makefiles, include files, and scripts.
19347 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
19348 # and libsupc++/Makefile.am so that multilib installs will end up
19349 # installed in the correct place. To work around this not being passed
19350 # down from config-ml.in -> top_srcdir/Makefile.am ->
19351 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
19352 trap '' 1 2 15
19353 cat > confcache <<\EOF
19354 # This file is a shell script that caches the results of configure
19355 # tests run on this system so they can be shared between configure
19356 # scripts and configure runs.  It is not useful on other systems.
19357 # If it contains results you don't want to keep, you may remove or edit it.
19358 #
19359 # By default, configure uses ./config.cache as the cache file,
19360 # creating it if it does not exist already.  You can give configure
19361 # the --cache-file=FILE option to use a different cache file; that is
19362 # what configure does when it calls configure scripts in
19363 # subdirectories, so they share the cache.
19364 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19365 # config.status only pays attention to the cache file if you give it the
19366 # --recheck option to rerun configure.
19367 #
19368 EOF
19369 # The following way of writing the cache mishandles newlines in values,
19370 # but we know of no workaround that is simple, portable, and efficient.
19371 # So, don't put newlines in cache variables' values.
19372 # Ultrix sh set writes to stderr and can't be redirected directly,
19373 # and sets the high bit in the cache file unless we assign to the vars.
19374 (set) 2>&1 |
19375   case `(ac_space=' '; set | grep ac_space) 2>&1` in
19376   *ac_space=\ *)
19377     # `set' does not quote correctly, so add quotes (double-quote substitution
19378     # turns \\\\ into \\, and sed turns \\ into \).
19379     sed -n \
19380       -e "s/'/'\\\\''/g" \
19381       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19382     ;;
19383   *)
19384     # `set' quotes correctly as required by POSIX, so do not add quotes.
19385     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19386     ;;
19387   esac >> confcache
19388 if cmp -s $cache_file confcache; then
19389   :
19390 else
19391   if test -w $cache_file; then
19392     echo "updating cache $cache_file"
19393     cat confcache > $cache_file
19394   else
19395     echo "not updating unwritable cache $cache_file"
19396   fi
19397 fi
19398 rm -f confcache
19399
19400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19401
19402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19403 # Let make expand exec_prefix.
19404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19405
19406 # Any assignment to VPATH causes Sun make to only execute
19407 # the first set of double-colon rules, so remove it if not needed.
19408 # If there is a colon in the path, we need to keep it.
19409 if test "x$srcdir" = x.; then
19410   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
19411 fi
19412
19413 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19414
19415 DEFS=-DHAVE_CONFIG_H
19416
19417 # Without the "./", some shells look in PATH for config.status.
19418 : ${CONFIG_STATUS=./config.status}
19419
19420 echo creating $CONFIG_STATUS
19421 rm -f $CONFIG_STATUS
19422 cat > $CONFIG_STATUS <<EOF
19423 #! /bin/sh
19424 # Generated automatically by configure.
19425 # Run this file to recreate the current configuration.
19426 # This directory was configured as follows,
19427 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19428 #
19429 # $0 $ac_configure_args
19430 #
19431 # Compiler output produced by configure, useful for debugging
19432 # configure, is in ./config.log if it exists.
19433
19434 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19435 for ac_option
19436 do
19437   case "\$ac_option" in
19438   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19439     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19440     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19441   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19442     echo "$CONFIG_STATUS generated by autoconf version 2.13"
19443     exit 0 ;;
19444   -help | --help | --hel | --he | --h)
19445     echo "\$ac_cs_usage"; exit 0 ;;
19446   *) echo "\$ac_cs_usage"; exit 1 ;;
19447   esac
19448 done
19449
19450 ac_given_srcdir=$srcdir
19451 ac_given_INSTALL="$INSTALL"
19452
19453 trap 'rm -fr `echo "Makefile \
19454     include/Makefile src/Makefile \
19455     libmath/Makefile libio/Makefile libsupc++/Makefile \
19456     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19457 EOF
19458 cat >> $CONFIG_STATUS <<EOF
19459
19460 # Protect against being on the right side of a sed subst in config.status.
19461 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19462  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19463 $ac_vpsub
19464 $extrasub
19465 s%@SHELL@%$SHELL%g
19466 s%@CFLAGS@%$CFLAGS%g
19467 s%@CPPFLAGS@%$CPPFLAGS%g
19468 s%@CXXFLAGS@%$CXXFLAGS%g
19469 s%@FFLAGS@%$FFLAGS%g
19470 s%@DEFS@%$DEFS%g
19471 s%@LDFLAGS@%$LDFLAGS%g
19472 s%@LIBS@%$LIBS%g
19473 s%@exec_prefix@%$exec_prefix%g
19474 s%@prefix@%$prefix%g
19475 s%@program_transform_name@%$program_transform_name%g
19476 s%@bindir@%$bindir%g
19477 s%@sbindir@%$sbindir%g
19478 s%@libexecdir@%$libexecdir%g
19479 s%@datadir@%$datadir%g
19480 s%@sysconfdir@%$sysconfdir%g
19481 s%@sharedstatedir@%$sharedstatedir%g
19482 s%@localstatedir@%$localstatedir%g
19483 s%@libdir@%$libdir%g
19484 s%@includedir@%$includedir%g
19485 s%@oldincludedir@%$oldincludedir%g
19486 s%@infodir@%$infodir%g
19487 s%@mandir@%$mandir%g
19488 s%@PACKAGE@%$PACKAGE%g
19489 s%@release_VERSION@%$release_VERSION%g
19490 s%@libtool_VERSION@%$libtool_VERSION%g
19491 s%@host@%$host%g
19492 s%@host_alias@%$host_alias%g
19493 s%@host_cpu@%$host_cpu%g
19494 s%@host_vendor@%$host_vendor%g
19495 s%@host_os@%$host_os%g
19496 s%@target@%$target%g
19497 s%@target_alias@%$target_alias%g
19498 s%@target_cpu@%$target_cpu%g
19499 s%@target_vendor@%$target_vendor%g
19500 s%@target_os@%$target_os%g
19501 s%@build@%$build%g
19502 s%@build_alias@%$build_alias%g
19503 s%@build_cpu@%$build_cpu%g
19504 s%@build_vendor@%$build_vendor%g
19505 s%@build_os@%$build_os%g
19506 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19507 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19508 s%@INSTALL_DATA@%$INSTALL_DATA%g
19509 s%@VERSION@%$VERSION%g
19510 s%@ACLOCAL@%$ACLOCAL%g
19511 s%@AUTOCONF@%$AUTOCONF%g
19512 s%@AUTOMAKE@%$AUTOMAKE%g
19513 s%@AUTOHEADER@%$AUTOHEADER%g
19514 s%@MAKEINFO@%$MAKEINFO%g
19515 s%@SET_MAKE@%$SET_MAKE%g
19516 s%@toplevel_srcdir@%$toplevel_srcdir%g
19517 s%@glibcpp_builddir@%$glibcpp_builddir%g
19518 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
19519 s%@LN_S@%$LN_S%g
19520 s%@glibcpp_basedir@%$glibcpp_basedir%g
19521 s%@CC@%$CC%g
19522 s%@glibcpp_CXX@%$glibcpp_CXX%g
19523 s%@AS@%$AS%g
19524 s%@AR@%$AR%g
19525 s%@RANLIB@%$RANLIB%g
19526 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
19527 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
19528 s%@MAINT@%$MAINT%g
19529 s%@EXEEXT@%$EXEEXT%g
19530 s%@OBJEXT@%$OBJEXT%g
19531 s%@STRIP@%$STRIP%g
19532 s%@LIBTOOL@%$LIBTOOL%g
19533 s%@CXXCPP@%$CXXCPP%g
19534 s%@enable_shared@%$enable_shared%g
19535 s%@enable_static@%$enable_static%g
19536 s%@ifGNUmake@%$ifGNUmake%g
19537 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
19538 s%@CPP@%$CPP%g
19539 s%@CSTDIO_H@%$CSTDIO_H%g
19540 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
19541 s%@CCODECVT_C@%$CCODECVT_C%g
19542 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
19543 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
19544 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
19545 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
19546 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
19547 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
19548 s%@libio_la@%$libio_la%g
19549 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
19550 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
19551 s%@glibcpp_localedir@%$glibcpp_localedir%g
19552 s%@USE_NLS@%$USE_NLS%g
19553 s%@CLOCALE_H@%$CLOCALE_H%g
19554 s%@CCODECVT_H@%$CCODECVT_H%g
19555 s%@CMESSAGES_H@%$CMESSAGES_H%g
19556 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
19557 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
19558 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
19559 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
19560 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
19561 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
19562 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
19563 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
19564 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
19565 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
19566 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
19567 s%@WERROR@%$WERROR%g
19568 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
19569 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
19570 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
19571 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
19572 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
19573 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
19574 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
19575 s%@gxx_include_dir@%$gxx_include_dir%g
19576 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
19577 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
19578 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
19579 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
19580 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
19581 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
19582 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
19583 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
19584 s%@WARN_FLAGS@%$WARN_FLAGS%g
19585 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
19586
19587 CEOF
19588 EOF
19589
19590 cat >> $CONFIG_STATUS <<\EOF
19591
19592 # Split the substitutions into bite-sized pieces for seds with
19593 # small command number limits, like on Digital OSF/1 and HP-UX.
19594 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19595 ac_file=1 # Number of current file.
19596 ac_beg=1 # First line for current file.
19597 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19598 ac_more_lines=:
19599 ac_sed_cmds=""
19600 while $ac_more_lines; do
19601   if test $ac_beg -gt 1; then
19602     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19603   else
19604     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19605   fi
19606   if test ! -s conftest.s$ac_file; then
19607     ac_more_lines=false
19608     rm -f conftest.s$ac_file
19609   else
19610     if test -z "$ac_sed_cmds"; then
19611       ac_sed_cmds="sed -f conftest.s$ac_file"
19612     else
19613       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19614     fi
19615     ac_file=`expr $ac_file + 1`
19616     ac_beg=$ac_end
19617     ac_end=`expr $ac_end + $ac_max_sed_cmds`
19618   fi
19619 done
19620 if test -z "$ac_sed_cmds"; then
19621   ac_sed_cmds=cat
19622 fi
19623 EOF
19624
19625 cat >> $CONFIG_STATUS <<EOF
19626
19627 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
19628     include/Makefile src/Makefile \
19629     libmath/Makefile libio/Makefile libsupc++/Makefile \
19630     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
19631 EOF
19632 cat >> $CONFIG_STATUS <<\EOF
19633 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19634   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19635   case "$ac_file" in
19636   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19637        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19638   *) ac_file_in="${ac_file}.in" ;;
19639   esac
19640
19641   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19642
19643   # Remove last slash and all that follows it.  Not all systems have dirname.
19644   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19645   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19646     # The file is in a subdirectory.
19647     test ! -d "$ac_dir" && mkdir "$ac_dir"
19648     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19649     # A "../" for each directory in $ac_dir_suffix.
19650     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19651   else
19652     ac_dir_suffix= ac_dots=
19653   fi
19654
19655   case "$ac_given_srcdir" in
19656   .)  srcdir=.
19657       if test -z "$ac_dots"; then top_srcdir=.
19658       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19659   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19660   *) # Relative path.
19661     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19662     top_srcdir="$ac_dots$ac_given_srcdir" ;;
19663   esac
19664
19665   case "$ac_given_INSTALL" in
19666   [/$]*) INSTALL="$ac_given_INSTALL" ;;
19667   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19668   esac
19669
19670   echo creating "$ac_file"
19671   rm -f "$ac_file"
19672   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19673   case "$ac_file" in
19674   *Makefile*) ac_comsub="1i\\
19675 # $configure_input" ;;
19676   *) ac_comsub= ;;
19677   esac
19678
19679   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19680   sed -e "$ac_comsub
19681 s%@configure_input@%$configure_input%g
19682 s%@srcdir@%$srcdir%g
19683 s%@top_srcdir@%$top_srcdir%g
19684 s%@INSTALL@%$INSTALL%g
19685 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19686 fi; done
19687 rm -f conftest.s*
19688
19689 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19690 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19691 #
19692 # ac_d sets the value in "#define NAME VALUE" lines.
19693 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19694 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
19695 ac_dC='\3'
19696 ac_dD='%g'
19697 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19698 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19699 ac_uB='\([      ]\)%\1#\2define\3'
19700 ac_uC=' '
19701 ac_uD='\4%g'
19702 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19703 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19704 ac_eB='$%\1#\2define\3'
19705 ac_eC=' '
19706 ac_eD='%g'
19707
19708 if test "${CONFIG_HEADERS+set}" != set; then
19709 EOF
19710 cat >> $CONFIG_STATUS <<EOF
19711   CONFIG_HEADERS="config.h"
19712 EOF
19713 cat >> $CONFIG_STATUS <<\EOF
19714 fi
19715 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19716   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19717   case "$ac_file" in
19718   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19719        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19720   *) ac_file_in="${ac_file}.in" ;;
19721   esac
19722
19723   echo creating $ac_file
19724
19725   rm -f conftest.frag conftest.in conftest.out
19726   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19727   cat $ac_file_inputs > conftest.in
19728
19729 EOF
19730
19731 # Transform confdefs.h into a sed script conftest.vals that substitutes
19732 # the proper values into config.h.in to produce config.h.  And first:
19733 # Protect against being on the right side of a sed subst in config.status.
19734 # Protect against being in an unquoted here document in config.status.
19735 rm -f conftest.vals
19736 cat > conftest.hdr <<\EOF
19737 s/[\\&%]/\\&/g
19738 s%[\\$`]%\\&%g
19739 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19740 s%ac_d%ac_u%gp
19741 s%ac_u%ac_e%gp
19742 EOF
19743 sed -n -f conftest.hdr confdefs.h > conftest.vals
19744 rm -f conftest.hdr
19745
19746 # This sed command replaces #undef with comments.  This is necessary, for
19747 # example, in the case of _POSIX_SOURCE, which is predefined and required
19748 # on some systems where configure will not decide to define it.
19749 cat >> conftest.vals <<\EOF
19750 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19751 EOF
19752
19753 # Break up conftest.vals because some shells have a limit on
19754 # the size of here documents, and old seds have small limits too.
19755
19756 rm -f conftest.tail
19757 while :
19758 do
19759   ac_lines=`grep -c . conftest.vals`
19760   # grep -c gives empty output for an empty file on some AIX systems.
19761   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19762   # Write a limited-size here document to conftest.frag.
19763   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19764   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19765   echo 'CEOF
19766   sed -f conftest.frag conftest.in > conftest.out
19767   rm -f conftest.in
19768   mv conftest.out conftest.in
19769 ' >> $CONFIG_STATUS
19770   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19771   rm -f conftest.vals
19772   mv conftest.tail conftest.vals
19773 done
19774 rm -f conftest.vals
19775
19776 cat >> $CONFIG_STATUS <<\EOF
19777   rm -f conftest.frag conftest.h
19778   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
19779   cat conftest.in >> conftest.h
19780   rm -f conftest.in
19781   if cmp -s $ac_file conftest.h 2>/dev/null; then
19782     echo "$ac_file is unchanged"
19783     rm -f conftest.h
19784   else
19785     # Remove last slash and all that follows it.  Not all systems have dirname.
19786       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19787       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19788       # The file is in a subdirectory.
19789       test ! -d "$ac_dir" && mkdir "$ac_dir"
19790     fi
19791     rm -f $ac_file
19792     mv conftest.h $ac_file
19793   fi
19794 fi; done
19795
19796 EOF
19797
19798 cat >> $CONFIG_STATUS <<EOF
19799 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
19800 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
19801 EOF
19802
19803 cat >> $CONFIG_STATUS <<\EOF
19804 srcdir=$ac_given_srcdir
19805 while test -n "$ac_sources"; do
19806   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
19807   set $ac_sources; ac_source=$1; shift; ac_sources=$*
19808
19809   echo "linking $srcdir/$ac_source to $ac_dest"
19810
19811   if test ! -r $srcdir/$ac_source; then
19812     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
19813   fi
19814   rm -f $ac_dest
19815
19816   # Make relative symlinks.
19817   # Remove last slash and all that follows it.  Not all systems have dirname.
19818   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
19819   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
19820     # The dest file is in a subdirectory.
19821     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
19822     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
19823     # A "../" for each directory in $ac_dest_dir_suffix.
19824     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
19825   else
19826     ac_dest_dir_suffix= ac_dots=
19827   fi
19828
19829   case "$srcdir" in
19830   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
19831   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
19832   esac
19833
19834   # Make a symlink if possible; otherwise try a hard link.
19835   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19836     ln $srcdir/$ac_source $ac_dest; then :
19837   else
19838     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
19839   fi
19840 done
19841 EOF
19842 cat >> $CONFIG_STATUS <<EOF
19843
19844 srcdir=${srcdir}
19845 host=${host}
19846 target=${target}
19847 with_multisubdir=${with_multisubdir}
19848 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19849 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19850 glibcpp_basedir=${glibcpp_basedir}
19851 CC="${CC}"
19852 CXX="${CXX}"
19853
19854 EOF
19855 cat >> $CONFIG_STATUS <<\EOF
19856 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
19857 if test -n "$CONFIG_FILES"; then
19858   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
19859   grep '^MULTISUBDIR =' Makefile >> src/Makefile
19860   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
19861 fi
19862 chmod +x mkcheck
19863 chmod +x testsuite_flags
19864
19865 exit 0
19866 EOF
19867 chmod +x $CONFIG_STATUS
19868 rm -fr confdefs* $ac_clean_files
19869 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19870
19871
19872
19873 # Sanity checking & User-visible messages.
19874 # Checks down here, otherwise they get scrolled off before
19875 # the user will notice.
19876
19877 # Trying to get more people to read documentation.  Possibly remove
19878 # check and warn all the time. There is no "informational" AC_MSG_
19879 # macro, so these are going to be printed even when --quiet/--silent
19880 # is given.
19881 if test ! -f stamp-sanity-warned; then
19882   touch stamp-sanity-warned
19883   echo ""
19884   echo "Please make certain that you read the installation information here:"
19885   echo "  faster => ${srcdir}/docs/install.html"
19886   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
19887   echo ""
19888   echo "and the configuration information here:"
19889   echo "  faster => ${srcdir}/docs/configopts.html"
19890   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
19891   echo ""
19892   echo "before proceeding with ${_cv_gnu_make_command}."
19893   echo ""
19894 fi