OSDN Git Service

2001-06-26 Phil Edwards <pme@sources.redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
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   --with-gxx-include-dir  the installation directory for include files"
61 ac_help="$ac_help
62   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
63
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 sitefile=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
98
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
105
106 ac_prev=
107 for ac_option
108 do
109
110   # If the previous option needs an argument, assign it.
111   if test -n "$ac_prev"; then
112     eval "$ac_prev=\$ac_option"
113     ac_prev=
114     continue
115   fi
116
117   case "$ac_option" in
118   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119   *) ac_optarg= ;;
120   esac
121
122   # Accept the important Cygnus configure options, so we can diagnose typos.
123
124   case "$ac_option" in
125
126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
127     ac_prev=bindir ;;
128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129     bindir="$ac_optarg" ;;
130
131   -build | --build | --buil | --bui | --bu)
132     ac_prev=build ;;
133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134     build="$ac_optarg" ;;
135
136   -cache-file | --cache-file | --cache-fil | --cache-fi \
137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138     ac_prev=cache_file ;;
139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141     cache_file="$ac_optarg" ;;
142
143   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144     ac_prev=datadir ;;
145   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146   | --da=*)
147     datadir="$ac_optarg" ;;
148
149   -disable-* | --disable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     eval "enable_${ac_feature}=no" ;;
157
158   -enable-* | --enable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     case "$ac_option" in
166       *=*) ;;
167       *) ac_optarg=yes ;;
168     esac
169     eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173   | --exec | --exe | --ex)
174     ac_prev=exec_prefix ;;
175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177   | --exec=* | --exe=* | --ex=*)
178     exec_prefix="$ac_optarg" ;;
179
180   -gas | --gas | --ga | --g)
181     # Obsolete; use --with-gas.
182     with_gas=yes ;;
183
184   -help | --help | --hel | --he)
185     # Omit some internal or obsolete options to make the list less imposing.
186     # This message is too long to be a string in the A/UX 3.1 sh.
187     cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191   --cache-file=FILE       cache test results in FILE
192   --help                  print this message
193   --no-create             do not create output files
194   --quiet, --silent       do not print \`checking...' messages
195   --site-file=FILE        use FILE as the site file
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   -site-file | --site-file | --site-fil | --site-fi | --site-f)
367     ac_prev=sitefile ;;
368   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
369     sitefile="$ac_optarg" ;;
370
371   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
372     ac_prev=srcdir ;;
373   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374     srcdir="$ac_optarg" ;;
375
376   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377   | --syscon | --sysco | --sysc | --sys | --sy)
378     ac_prev=sysconfdir ;;
379   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381     sysconfdir="$ac_optarg" ;;
382
383   -target | --target | --targe | --targ | --tar | --ta | --t)
384     ac_prev=target ;;
385   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386     target="$ac_optarg" ;;
387
388   -v | -verbose | --verbose | --verbos | --verbo | --verb)
389     verbose=yes ;;
390
391   -version | --version | --versio | --versi | --vers)
392     echo "configure generated by autoconf version 2.13"
393     exit 0 ;;
394
395   -with-* | --with-*)
396     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397     # Reject names that are not valid shell variable names.
398     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400     fi
401     ac_package=`echo $ac_package| sed 's/-/_/g'`
402     case "$ac_option" in
403       *=*) ;;
404       *) ac_optarg=yes ;;
405     esac
406     eval "with_${ac_package}='$ac_optarg'" ;;
407
408   -without-* | --without-*)
409     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410     # Reject names that are not valid shell variable names.
411     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413     fi
414     ac_package=`echo $ac_package| sed 's/-/_/g'`
415     eval "with_${ac_package}=no" ;;
416
417   --x)
418     # Obsolete; use --with-x.
419     with_x=yes ;;
420
421   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422   | --x-incl | --x-inc | --x-in | --x-i)
423     ac_prev=x_includes ;;
424   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426     x_includes="$ac_optarg" ;;
427
428   -x-libraries | --x-libraries | --x-librarie | --x-librari \
429   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430     ac_prev=x_libraries ;;
431   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433     x_libraries="$ac_optarg" ;;
434
435   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436     ;;
437
438   *)
439     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440       echo "configure: warning: $ac_option: invalid host type" 1>&2
441     fi
442     if test "x$nonopt" != xNONE; then
443       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444     fi
445     nonopt="$ac_option"
446     ;;
447
448   esac
449 done
450
451 if test -n "$ac_prev"; then
452   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 fi
454
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456
457 # File descriptor usage:
458 # 0 standard input
459 # 1 file creation
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
466   exec 6>/dev/null
467 else
468   exec 6>&1
469 fi
470 exec 5>./config.log
471
472 echo "\
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
475 " 1>&5
476
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
479 ac_configure_args=
480 for ac_arg
481 do
482   case "$ac_arg" in
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c) ;;
485   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490   esac
491 done
492
493 # NLS nuisances.
494 # Only set these to C if already set.  These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
502
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 echo > confdefs.h
507
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=src/ios.cc
511
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514   ac_srcdir_defaulted=yes
515   # Try the directory containing this script, then its parent.
516   ac_prog=$0
517   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
519   srcdir=$ac_confdir
520   if test ! -r $srcdir/$ac_unique_file; then
521     srcdir=..
522   fi
523 else
524   ac_srcdir_defaulted=no
525 fi
526 if test ! -r $srcdir/$ac_unique_file; then
527   if test "$ac_srcdir_defaulted" = yes; then
528     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529   else
530     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531   fi
532 fi
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$sitefile"; then
537   if test -z "$CONFIG_SITE"; then
538     if test "x$prefix" != xNONE; then
539       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540     else
541       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542     fi
543   fi
544 else
545   CONFIG_SITE="$sitefile"
546 fi
547 for ac_site_file in $CONFIG_SITE; do
548   if test -r "$ac_site_file"; then
549     echo "loading site script $ac_site_file"
550     . "$ac_site_file"
551   fi
552 done
553
554 if test -r "$cache_file"; then
555   echo "loading cache $cache_file"
556   . $cache_file
557 else
558   echo "creating cache $cache_file"
559   > $cache_file
560 fi
561
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
568
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585 # When building with srcdir == objdir, links to the source files will
586 # be created in directories within the target_subdir.  We have to
587 # adjust toplevel_srcdir accordingly, so that configure finds
588 # install-sh and other auxiliary files that live in the top-level
589 # source directory.
590 if test "${srcdir}" = "."; then
591   if test -z "${with_target_subdir}"; then
592     toprel=".."
593   else
594     if test "${with_target_subdir}" != "."; then
595       toprel="${with_multisrctop}../.."
596     else
597       toprel="${with_multisrctop}.."
598     fi
599   fi
600 else
601   toprel=".."
602 fi
603 ac_aux_dir=
604 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
605   if test -f $ac_dir/install-sh; then
606     ac_aux_dir=$ac_dir
607     ac_install_sh="$ac_aux_dir/install-sh -c"
608     break
609   elif test -f $ac_dir/install.sh; then
610     ac_aux_dir=$ac_dir
611     ac_install_sh="$ac_aux_dir/install.sh -c"
612     break
613   fi
614 done
615 if test -z "$ac_aux_dir"; then
616   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
617 fi
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621
622 toplevel_srcdir=\${top_srcdir}/$toprel
623
624
625
626
627 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
628 # AC 2.50 sets target_alias iff the user specified --target, but we use it
629 # everywhere, so we set it here just to be sure.
630
631 # Do some error checking and defaulting for the host and target type.
632 # The inputs are:
633 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
634 #
635 # The rules are:
636 # 1. You are not allowed to specify --host, --target, and nonopt at the
637 #    same time.
638 # 2. Host defaults to nonopt.
639 # 3. If nonopt is not specified, then host defaults to the current host,
640 #    as determined by config.guess.
641 # 4. Target and build default to nonopt.
642 # 5. If nonopt is not specified, then target and build default to host.
643
644 # The aliases save the names the user supplied, while $host etc.
645 # will get canonicalized.
646 case $host---$target---$nonopt in
647 NONE---*---* | *---NONE---* | *---*---NONE) ;;
648 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
649 esac
650
651
652 # Make sure we can run config.sub.
653 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
655 fi
656
657 echo $ac_n "checking host system type""... $ac_c" 1>&6
658 echo "configure:659: checking host system type" >&5
659
660 host_alias=$host
661 case "$host_alias" in
662 NONE)
663   case $nonopt in
664   NONE)
665     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
666     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
667     fi ;;
668   *) host_alias=$nonopt ;;
669   esac ;;
670 esac
671
672 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
673 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
674 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
675 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo "$ac_t""$host" 1>&6
677
678 echo $ac_n "checking target system type""... $ac_c" 1>&6
679 echo "configure:680: checking target system type" >&5
680
681 target_alias=$target
682 case "$target_alias" in
683 NONE)
684   case $nonopt in
685   NONE) target_alias=$host_alias ;;
686   *) target_alias=$nonopt ;;
687   esac ;;
688 esac
689
690 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
691 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$target" 1>&6
695
696 echo $ac_n "checking build system type""... $ac_c" 1>&6
697 echo "configure:698: checking build system type" >&5
698
699 build_alias=$build
700 case "$build_alias" in
701 NONE)
702   case $nonopt in
703   NONE) build_alias=$host_alias ;;
704   *) build_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
709 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$build" 1>&6
713
714 test "$host_alias" != "$target_alias" &&
715   test "$program_prefix$program_suffix$program_transform_name" = \
716     NONENONEs,x,x, &&
717   program_prefix=${target_alias}-
718
719 target_alias=${target_alias-$target}
720
721
722 # We use these options to decide which functions to include.
723 # Check whether --with-target-subdir or --without-target-subdir was given.
724 if test "${with_target_subdir+set}" = set; then
725   withval="$with_target_subdir"
726   :
727 fi
728
729 # Check whether --with-cross-host or --without-cross-host was given.
730 if test "${with_cross_host+set}" = set; then
731   withval="$with_cross_host"
732   :
733 fi
734
735
736 # Runs configure.host and configure.target. Have to run this before
737 # the GLIBCPP_ENABLE_* macros below.
738 # Find a good install program.  We prefer a C program (faster),
739 # so one script is as good as another.  But avoid the broken or
740 # incompatible versions:
741 # SysV /etc/install, /usr/sbin/install
742 # SunOS /usr/etc/install
743 # IRIX /sbin/install
744 # AIX /bin/install
745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
748 # ./install, which can be erroneously created by make from ./install.sh.
749 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
750 echo "configure:751: checking for a BSD compatible install" >&5
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753   echo $ac_n "(cached) $ac_c" 1>&6
754 else
755     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
756   for ac_dir in $PATH; do
757     # Account for people who put trailing slashes in PATH elements.
758     case "$ac_dir/" in
759     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
760     *)
761       # OSF1 and SCO ODT 3.0 have their own names for install.
762       # Don't use installbsd from OSF since it installs stuff as root
763       # by default.
764       for ac_prog in ginstall scoinst install; do
765         if test -f $ac_dir/$ac_prog; then
766           if test $ac_prog = install &&
767             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
768             # AIX install.  It has an incompatible calling convention.
769             :
770           else
771             ac_cv_path_install="$ac_dir/$ac_prog -c"
772             break 2
773           fi
774         fi
775       done
776       ;;
777     esac
778   done
779   IFS="$ac_save_IFS"
780
781 fi
782   if test "${ac_cv_path_install+set}" = set; then
783     INSTALL="$ac_cv_path_install"
784   else
785     # As a last resort, use the slow shell script.  We don't cache a
786     # path for INSTALL within a source directory, because that will
787     # break other packages using the cache if that directory is
788     # removed, or if the path is relative.
789     INSTALL="$ac_install_sh"
790   fi
791 fi
792 echo "$ac_t""$INSTALL" 1>&6
793
794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
795 # It thinks the first close brace ends the variable substitution.
796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797
798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
799
800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801
802 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
803 echo "configure:804: checking whether build environment is sane" >&5
804 # Just in case
805 sleep 1
806 echo timestamp > conftestfile
807 # Do `set' in a subshell so we don't clobber the current shell's
808 # arguments.  Must try -L first in case configure is actually a
809 # symlink; some systems play weird games with the mod time of symlinks
810 # (eg FreeBSD returns the mod time of the symlink's containing
811 # directory).
812 if (
813    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
814    if test "$*" = "X"; then
815       # -L didn't work.
816       set X `ls -t $srcdir/configure conftestfile`
817    fi
818    if test "$*" != "X $srcdir/configure conftestfile" \
819       && test "$*" != "X conftestfile $srcdir/configure"; then
820
821       # If neither matched, then we have a broken ls.  This can happen
822       # if, for instance, CONFIG_SHELL is bash and it inherits a
823       # broken ls alias from the environment.  This has actually
824       # happened.  Such a system could not be considered "sane".
825       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
826 alias in your environment" 1>&2; exit 1; }
827    fi
828
829    test "$2" = conftestfile
830    )
831 then
832    # Ok.
833    :
834 else
835    { echo "configure: error: newly created file is older than distributed files!
836 Check your system clock" 1>&2; exit 1; }
837 fi
838 rm -f conftest*
839 echo "$ac_t""yes" 1>&6
840 if test "$program_transform_name" = s,x,x,; then
841   program_transform_name=
842 else
843   # Double any \ or $.  echo might interpret backslashes.
844   cat <<\EOF_SED > conftestsed
845 s,\\,\\\\,g; s,\$,$$,g
846 EOF_SED
847   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
848   rm -f conftestsed
849 fi
850 test "$program_prefix" != NONE &&
851   program_transform_name="s,^,${program_prefix},; $program_transform_name"
852 # Use a double $ so make ignores it.
853 test "$program_suffix" != NONE &&
854   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
855
856 # sed with no file args requires a program.
857 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
858
859 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
860 echo "configure:861: checking whether ${MAKE-make} sets \${MAKE}" >&5
861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
862 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
863   echo $ac_n "(cached) $ac_c" 1>&6
864 else
865   cat > conftestmake <<\EOF
866 all:
867         @echo 'ac_maketemp="${MAKE}"'
868 EOF
869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
870 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
871 if test -n "$ac_maketemp"; then
872   eval ac_cv_prog_make_${ac_make}_set=yes
873 else
874   eval ac_cv_prog_make_${ac_make}_set=no
875 fi
876 rm -f conftestmake
877 fi
878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
879   echo "$ac_t""yes" 1>&6
880   SET_MAKE=
881 else
882   echo "$ac_t""no" 1>&6
883   SET_MAKE="MAKE=${MAKE-make}"
884 fi
885
886 if test $host != $build; then
887   ac_tool_prefix=${host_alias}-
888 else
889   ac_tool_prefix=
890 fi
891
892 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
893 echo "configure:894: checking for Cygwin environment" >&5
894 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
895   echo $ac_n "(cached) $ac_c" 1>&6
896 else
897   cat > conftest.$ac_ext <<EOF
898 #line 899 "configure"
899 #include "confdefs.h"
900
901 int main() {
902
903 #ifndef __CYGWIN__
904 #define __CYGWIN__ __CYGWIN32__
905 #endif
906 return __CYGWIN__;
907 ; return 0; }
908 EOF
909 if { (eval echo configure:910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
910   rm -rf conftest*
911   ac_cv_cygwin=yes
912 else
913   echo "configure: failed program was:" >&5
914   cat conftest.$ac_ext >&5
915   rm -rf conftest*
916   ac_cv_cygwin=no
917 fi
918 rm -f conftest*
919 rm -f conftest*
920 fi
921
922 echo "$ac_t""$ac_cv_cygwin" 1>&6
923 CYGWIN=
924 test "$ac_cv_cygwin" = yes && CYGWIN=yes
925 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
926 echo "configure:927: checking for mingw32 environment" >&5
927 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
928   echo $ac_n "(cached) $ac_c" 1>&6
929 else
930   cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
933
934 int main() {
935 return __MINGW32__;
936 ; return 0; }
937 EOF
938 if { (eval echo configure:939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
939   rm -rf conftest*
940   ac_cv_mingw32=yes
941 else
942   echo "configure: failed program was:" >&5
943   cat conftest.$ac_ext >&5
944   rm -rf conftest*
945   ac_cv_mingw32=no
946 fi
947 rm -f conftest*
948 rm -f conftest*
949 fi
950
951 echo "$ac_t""$ac_cv_mingw32" 1>&6
952 MINGW32=
953 test "$ac_cv_mingw32" = yes && MINGW32=yes
954
955     # Check whether --enable-multilib or --disable-multilib was given.
956 if test "${enable_multilib+set}" = set; then
957   enableval="$enable_multilib"
958   case "${enableval}" in
959     yes) multilib=yes ;;
960     no)  multilib=no ;;
961     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
962    esac
963 else
964   multilib=yes
965 fi
966
967   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
968   
969
970   
971 PACKAGE=libstdc++
972
973 VERSION=3.0.0
974
975 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
976   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
977 fi
978 cat >> confdefs.h <<EOF
979 #define PACKAGE "$PACKAGE"
980 EOF
981
982 cat >> confdefs.h <<EOF
983 #define VERSION "$VERSION"
984 EOF
985
986
987
988 missing_dir=`cd $ac_aux_dir && pwd`
989 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
990 echo "configure:991: checking for working aclocal" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf.  Sigh.
994 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
995    ACLOCAL=aclocal
996    echo "$ac_t""found" 1>&6
997 else
998    ACLOCAL="$missing_dir/missing aclocal"
999    echo "$ac_t""missing" 1>&6
1000 fi
1001
1002 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working autoconf" >&5
1004 # Run test in a subshell; some versions of sh will print an error if
1005 # an executable is not found, even if stderr is redirected.
1006 # Redirect stdin to placate older versions of autoconf.  Sigh.
1007 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1008    AUTOCONF=autoconf
1009    echo "$ac_t""found" 1>&6
1010 else
1011    AUTOCONF="$missing_dir/missing autoconf"
1012    echo "$ac_t""missing" 1>&6
1013 fi
1014
1015 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working automake" >&5
1017 # Run test in a subshell; some versions of sh will print an error if
1018 # an executable is not found, even if stderr is redirected.
1019 # Redirect stdin to placate older versions of autoconf.  Sigh.
1020 if (automake --version) < /dev/null > /dev/null 2>&1; then
1021    AUTOMAKE=automake
1022    echo "$ac_t""found" 1>&6
1023 else
1024    AUTOMAKE="$missing_dir/missing automake"
1025    echo "$ac_t""missing" 1>&6
1026 fi
1027
1028 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working autoheader" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf.  Sigh.
1033 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1034    AUTOHEADER=autoheader
1035    echo "$ac_t""found" 1>&6
1036 else
1037    AUTOHEADER="$missing_dir/missing autoheader"
1038    echo "$ac_t""missing" 1>&6
1039 fi
1040
1041 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working makeinfo" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf.  Sigh.
1046 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1047    MAKEINFO=makeinfo
1048    echo "$ac_t""found" 1>&6
1049 else
1050    MAKEINFO="$missing_dir/missing makeinfo"
1051    echo "$ac_t""missing" 1>&6
1052 fi
1053
1054
1055
1056   # Never versions of autoconf add an underscore to these functions.
1057   # Prevent future problems ...
1058   
1059   
1060   
1061   
1062
1063 #  AC_PROG_CC
1064
1065 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1066 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1067 # are probably using a cross compiler, which will not be able to fully
1068 # link an executable.  This should really be fixed in autoconf
1069 # itself.
1070
1071
1072
1073
1074 # Extract the first word of "gcc", so it can be a program name with args.
1075 set dummy gcc; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079   echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081   if test -n "$CC"; then
1082   ac_cv_prog_CC="$CC" # Let the user override the test.
1083 else
1084   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1085   ac_dummy="$PATH"
1086   for ac_dir in $ac_dummy; do
1087     test -z "$ac_dir" && ac_dir=.
1088     if test -f $ac_dir/$ac_word; then
1089       ac_cv_prog_CC="gcc"
1090       break
1091     fi
1092   done
1093   IFS="$ac_save_ifs"
1094 fi
1095 fi
1096 CC="$ac_cv_prog_CC"
1097 if test -n "$CC"; then
1098   echo "$ac_t""$CC" 1>&6
1099 else
1100   echo "$ac_t""no" 1>&6
1101 fi
1102
1103 if test -z "$CC"; then
1104   # Extract the first word of "cc", so it can be a program name with args.
1105 set dummy cc; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109   echo $ac_n "(cached) $ac_c" 1>&6
1110 else
1111   if test -n "$CC"; then
1112   ac_cv_prog_CC="$CC" # Let the user override the test.
1113 else
1114   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1115   ac_prog_rejected=no
1116   ac_dummy="$PATH"
1117   for ac_dir in $ac_dummy; do
1118     test -z "$ac_dir" && ac_dir=.
1119     if test -f $ac_dir/$ac_word; then
1120       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1121         ac_prog_rejected=yes
1122         continue
1123       fi
1124       ac_cv_prog_CC="cc"
1125       break
1126     fi
1127   done
1128   IFS="$ac_save_ifs"
1129 if test $ac_prog_rejected = yes; then
1130   # We found a bogon in the path, so make sure we never use it.
1131   set dummy $ac_cv_prog_CC
1132   shift
1133   if test $# -gt 0; then
1134     # We chose a different compiler from the bogus one.
1135     # However, it has the same basename, so the bogon will be chosen
1136     # first if we set CC to just the basename; use the full file name.
1137     shift
1138     set dummy "$ac_dir/$ac_word" "$@"
1139     shift
1140     ac_cv_prog_CC="$@"
1141   fi
1142 fi
1143 fi
1144 fi
1145 CC="$ac_cv_prog_CC"
1146 if test -n "$CC"; then
1147   echo "$ac_t""$CC" 1>&6
1148 else
1149   echo "$ac_t""no" 1>&6
1150 fi
1151
1152   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 fi
1154
1155 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1156 echo "configure:1157: checking whether we are using GNU C" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1158   echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160   cat > conftest.c <<EOF
1161 #ifdef __GNUC__
1162   yes;
1163 #endif
1164 EOF
1165 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1166   ac_cv_prog_gcc=yes
1167 else
1168   ac_cv_prog_gcc=no
1169 fi
1170 fi
1171
1172 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1173
1174 if test $ac_cv_prog_gcc = yes; then
1175   GCC=yes
1176   ac_test_CFLAGS="${CFLAGS+set}"
1177   ac_save_CFLAGS="$CFLAGS"
1178   CFLAGS=
1179   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether ${CC-cc} accepts -g" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1182   echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184   echo 'void f(){}' > conftest.c
1185 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1186   ac_cv_prog_cc_g=yes
1187 else
1188   ac_cv_prog_cc_g=no
1189 fi
1190 rm -f conftest*
1191
1192 fi
1193
1194 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1195   if test "$ac_test_CFLAGS" = set; then
1196     CFLAGS="$ac_save_CFLAGS"
1197   elif test $ac_cv_prog_cc_g = yes; then
1198     CFLAGS="-g -O2"
1199   else
1200     CFLAGS="-O2"
1201   fi
1202 else
1203   GCC=
1204   test "${CFLAGS+set}" = set || CFLAGS="-g"
1205 fi
1206
1207
1208 # Can't just call these here as g++ requires libstc++ to be built....
1209 #  AC_PROG_CXX
1210
1211 # Likewise for AC_PROG_CXX.
1212
1213
1214
1215 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1216 # flags that come in CXX while configuring libstdc++.  They're different
1217 # from those used for all other target libraries.  If CXX is set in
1218 # the environment, respect that here.
1219 glibcpp_CXX=$CXX
1220 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1221 do
1222 # Extract the first word of "$ac_prog", so it can be a program name with args.
1223 set dummy $ac_prog; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   if test -n "$glibcpp_CXX"; then
1230   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1231 else
1232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1233   ac_dummy="$PATH"
1234   for ac_dir in $ac_dummy; do
1235     test -z "$ac_dir" && ac_dir=.
1236     if test -f $ac_dir/$ac_word; then
1237       ac_cv_prog_glibcpp_CXX="$ac_prog"
1238       break
1239     fi
1240   done
1241   IFS="$ac_save_ifs"
1242 fi
1243 fi
1244 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1245 if test -n "$glibcpp_CXX"; then
1246   echo "$ac_t""$glibcpp_CXX" 1>&6
1247 else
1248   echo "$ac_t""no" 1>&6
1249 fi
1250
1251 test -n "$glibcpp_CXX" && break
1252 done
1253 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1254
1255
1256 CXX=$glibcpp_CXX
1257 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1258
1259 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether we are using GNU C++" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1262   echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264   cat > conftest.C <<EOF
1265 #ifdef __GNUC__
1266   yes;
1267 #endif
1268 EOF
1269 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1270   ac_cv_prog_gxx=yes
1271 else
1272   ac_cv_prog_gxx=no
1273 fi
1274 fi
1275
1276 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1277
1278 if test $ac_cv_prog_gxx = yes; then
1279   GXX=yes
1280   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1281   ac_save_CXXFLAGS="$CXXFLAGS"
1282   CXXFLAGS=
1283   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether ${CXX-g++} accepts -g" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1286   echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288   echo 'void f(){}' > conftest.cc
1289 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1290   ac_cv_prog_cxx_g=yes
1291 else
1292   ac_cv_prog_cxx_g=no
1293 fi
1294 rm -f conftest*
1295
1296 fi
1297
1298 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1299   if test "$ac_test_CXXFLAGS" = set; then
1300     CXXFLAGS="$ac_save_CXXFLAGS"
1301   elif test $ac_cv_prog_cxx_g = yes; then
1302     CXXFLAGS="-g -O2"
1303   else
1304     CXXFLAGS="-O2"
1305   fi
1306 else
1307   GXX=
1308   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1309 fi
1310
1311
1312   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1313 set dummy ${ac_tool_prefix}as; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1317   echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319   if test -n "$AS"; then
1320   ac_cv_prog_AS="$AS" # Let the user override the test.
1321 else
1322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1323   ac_dummy="$PATH"
1324   for ac_dir in $ac_dummy; do
1325     test -z "$ac_dir" && ac_dir=.
1326     if test -f $ac_dir/$ac_word; then
1327       ac_cv_prog_AS="${ac_tool_prefix}as"
1328       break
1329     fi
1330   done
1331   IFS="$ac_save_ifs"
1332   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1333 fi
1334 fi
1335 AS="$ac_cv_prog_AS"
1336 if test -n "$AS"; then
1337   echo "$ac_t""$AS" 1>&6
1338 else
1339   echo "$ac_t""no" 1>&6
1340 fi
1341
1342
1343
1344   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1345 set dummy ${ac_tool_prefix}ar; ac_word=$2
1346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1347 echo "configure:1348: checking for $ac_word" >&5
1348 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1349   echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351   if test -n "$AR"; then
1352   ac_cv_prog_AR="$AR" # Let the user override the test.
1353 else
1354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1355   ac_dummy="$PATH"
1356   for ac_dir in $ac_dummy; do
1357     test -z "$ac_dir" && ac_dir=.
1358     if test -f $ac_dir/$ac_word; then
1359       ac_cv_prog_AR="${ac_tool_prefix}ar"
1360       break
1361     fi
1362   done
1363   IFS="$ac_save_ifs"
1364   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1365 fi
1366 fi
1367 AR="$ac_cv_prog_AR"
1368 if test -n "$AR"; then
1369   echo "$ac_t""$AR" 1>&6
1370 else
1371   echo "$ac_t""no" 1>&6
1372 fi
1373
1374
1375
1376   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1381   echo $ac_n "(cached) $ac_c" 1>&6
1382 else
1383   if test -n "$RANLIB"; then
1384   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1385 else
1386   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1387   ac_dummy="$PATH"
1388   for ac_dir in $ac_dummy; do
1389     test -z "$ac_dir" && ac_dir=.
1390     if test -f $ac_dir/$ac_word; then
1391       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1392       break
1393     fi
1394   done
1395   IFS="$ac_save_ifs"
1396 fi
1397 fi
1398 RANLIB="$ac_cv_prog_RANLIB"
1399 if test -n "$RANLIB"; then
1400   echo "$ac_t""$RANLIB" 1>&6
1401 else
1402   echo "$ac_t""no" 1>&6
1403 fi
1404
1405
1406 if test -z "$ac_cv_prog_RANLIB"; then
1407 if test -n "$ac_tool_prefix"; then
1408   # Extract the first word of "ranlib", so it can be a program name with args.
1409 set dummy ranlib; ac_word=$2
1410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1411 echo "configure:1412: checking for $ac_word" >&5
1412 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1413   echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415   if test -n "$RANLIB"; then
1416   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1417 else
1418   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1419   ac_dummy="$PATH"
1420   for ac_dir in $ac_dummy; do
1421     test -z "$ac_dir" && ac_dir=.
1422     if test -f $ac_dir/$ac_word; then
1423       ac_cv_prog_RANLIB="ranlib"
1424       break
1425     fi
1426   done
1427   IFS="$ac_save_ifs"
1428   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1429 fi
1430 fi
1431 RANLIB="$ac_cv_prog_RANLIB"
1432 if test -n "$RANLIB"; then
1433   echo "$ac_t""$RANLIB" 1>&6
1434 else
1435   echo "$ac_t""no" 1>&6
1436 fi
1437
1438 else
1439   RANLIB="ranlib-not-found-in-path-error"
1440 fi
1441 fi
1442
1443   # Find a good install program.  We prefer a C program (faster),
1444 # so one script is as good as another.  But avoid the broken or
1445 # incompatible versions:
1446 # SysV /etc/install, /usr/sbin/install
1447 # SunOS /usr/etc/install
1448 # IRIX /sbin/install
1449 # AIX /bin/install
1450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1453 # ./install, which can be erroneously created by make from ./install.sh.
1454 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1455 echo "configure:1456: checking for a BSD compatible install" >&5
1456 if test -z "$INSTALL"; then
1457 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1458   echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1461   for ac_dir in $PATH; do
1462     # Account for people who put trailing slashes in PATH elements.
1463     case "$ac_dir/" in
1464     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1465     *)
1466       # OSF1 and SCO ODT 3.0 have their own names for install.
1467       # Don't use installbsd from OSF since it installs stuff as root
1468       # by default.
1469       for ac_prog in ginstall scoinst install; do
1470         if test -f $ac_dir/$ac_prog; then
1471           if test $ac_prog = install &&
1472             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1473             # AIX install.  It has an incompatible calling convention.
1474             :
1475           else
1476             ac_cv_path_install="$ac_dir/$ac_prog -c"
1477             break 2
1478           fi
1479         fi
1480       done
1481       ;;
1482     esac
1483   done
1484   IFS="$ac_save_IFS"
1485
1486 fi
1487   if test "${ac_cv_path_install+set}" = set; then
1488     INSTALL="$ac_cv_path_install"
1489   else
1490     # As a last resort, use the slow shell script.  We don't cache a
1491     # path for INSTALL within a source directory, because that will
1492     # break other packages using the cache if that directory is
1493     # removed, or if the path is relative.
1494     INSTALL="$ac_install_sh"
1495   fi
1496 fi
1497 echo "$ac_t""$INSTALL" 1>&6
1498
1499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1500 # It thinks the first close brace ends the variable substitution.
1501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1502
1503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1504
1505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1506
1507
1508   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1509 echo "configure:1510: checking whether to enable maintainer-specific portions of Makefiles" >&5
1510     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1511 if test "${enable_maintainer_mode+set}" = set; then
1512   enableval="$enable_maintainer_mode"
1513   USE_MAINTAINER_MODE=$enableval
1514 else
1515   USE_MAINTAINER_MODE=no
1516 fi
1517
1518   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1519   
1520
1521 if test $USE_MAINTAINER_MODE = yes; then
1522   MAINTAINER_MODE_TRUE=
1523   MAINTAINER_MODE_FALSE='#'
1524 else
1525   MAINTAINER_MODE_TRUE='#'
1526   MAINTAINER_MODE_FALSE=
1527 fi
1528   MAINT=$MAINTAINER_MODE_TRUE
1529   
1530
1531
1532   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1533   # at least currently, we never actually build a program, so we never
1534   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1535   # fails, because we are probably configuring with a cross compiler
1536   # which cant create executables.  So we include AC_EXEEXT to keep
1537   # automake happy, but we dont execute it, since we dont care about
1538   # the result.
1539   if false; then
1540     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1541     # to nothing, so nothing would remain between `then' and `fi' if it
1542     # were not for the `:' below.
1543     :
1544     
1545
1546 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1547 echo "configure:1548: checking for executable suffix" >&5
1548 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1549   echo $ac_n "(cached) $ac_c" 1>&6
1550 else
1551   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1552   ac_cv_exeext=.exe
1553 else
1554   rm -f conftest*
1555   echo 'int main () { return 0; }' > conftest.$ac_ext
1556   ac_cv_exeext=
1557   if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1558     for file in conftest.*; do
1559       case $file in
1560       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1561       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1562       esac
1563     done
1564   else
1565     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1566   fi
1567   rm -f conftest*
1568   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1569 fi
1570 fi
1571
1572 EXEEXT=""
1573 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1574 echo "$ac_t""${ac_cv_exeext}" 1>&6
1575 ac_exeext=$EXEEXT
1576
1577   fi
1578
1579   . ${glibcpp_basedir}/configure.host
1580
1581   case ${glibcpp_basedir} in
1582     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1583     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1584   esac
1585
1586   # This does for the target what configure.host does for the host.  In
1587   # addition to possibly modifying the same flags, it also sets up symlinks.
1588   
1589     . ${glibcpp_basedir}/configure.target
1590     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1591     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1592     
1593
1594
1595
1596
1597 # Check whether --enable-shared or --disable-shared was given.
1598 if test "${enable_shared+set}" = set; then
1599   enableval="$enable_shared"
1600   p=${PACKAGE-default}
1601 case $enableval in
1602 yes) enable_shared=yes ;;
1603 no) enable_shared=no ;;
1604 *)
1605   enable_shared=no
1606   # Look at the argument we got.  We use all the common list separators.
1607   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1608   for pkg in $enableval; do
1609     if test "X$pkg" = "X$p"; then
1610       enable_shared=yes
1611     fi
1612   done
1613   IFS="$ac_save_ifs"
1614   ;;
1615 esac
1616 else
1617   enable_shared=yes
1618 fi
1619
1620 # Check whether --enable-static or --disable-static was given.
1621 if test "${enable_static+set}" = set; then
1622   enableval="$enable_static"
1623   p=${PACKAGE-default}
1624 case $enableval in
1625 yes) enable_static=yes ;;
1626 no) enable_static=no ;;
1627 *)
1628   enable_static=no
1629   # Look at the argument we got.  We use all the common list separators.
1630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1631   for pkg in $enableval; do
1632     if test "X$pkg" = "X$p"; then
1633       enable_static=yes
1634     fi
1635   done
1636   IFS="$ac_save_ifs"
1637   ;;
1638 esac
1639 else
1640   enable_static=yes
1641 fi
1642
1643 # Check whether --enable-fast-install or --disable-fast-install was given.
1644 if test "${enable_fast_install+set}" = set; then
1645   enableval="$enable_fast_install"
1646   p=${PACKAGE-default}
1647 case $enableval in
1648 yes) enable_fast_install=yes ;;
1649 no) enable_fast_install=no ;;
1650 *)
1651   enable_fast_install=no
1652   # Look at the argument we got.  We use all the common list separators.
1653   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1654   for pkg in $enableval; do
1655     if test "X$pkg" = "X$p"; then
1656       enable_fast_install=yes
1657     fi
1658   done
1659   IFS="$ac_save_ifs"
1660   ;;
1661 esac
1662 else
1663   enable_fast_install=yes
1664 fi
1665
1666 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1667 if test "${with_gnu_ld+set}" = set; then
1668   withval="$with_gnu_ld"
1669   test "$withval" = no || with_gnu_ld=yes
1670 else
1671   with_gnu_ld=no
1672 fi
1673
1674 ac_prog=ld
1675 if test "$GCC" = yes; then
1676   # Check if gcc -print-prog-name=ld gives a path.
1677   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1678 echo "configure:1679: checking for ld used by GCC" >&5
1679   case $host in
1680   *-*-mingw*)
1681     # gcc leaves a trailing carriage return which upsets mingw
1682     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1683   *)
1684     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1685   esac
1686   case $ac_prog in
1687     # Accept absolute paths.
1688     [\\/]* | [A-Za-z]:[\\/]*)
1689       re_direlt='/[^/][^/]*/\.\./'
1690       # Canonicalize the path of ld
1691       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1692       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1693         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1694       done
1695       test -z "$LD" && LD="$ac_prog"
1696       ;;
1697   "")
1698     # If it fails, then pretend we aren't using GCC.
1699     ac_prog=ld
1700     ;;
1701   *)
1702     # If it is relative, then search for the first ld in PATH.
1703     with_gnu_ld=unknown
1704     ;;
1705   esac
1706 elif test "$with_gnu_ld" = yes; then
1707   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1708 echo "configure:1709: checking for GNU ld" >&5
1709 else
1710   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1711 echo "configure:1712: checking for non-GNU ld" >&5
1712 fi
1713 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1714   echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716   if test -z "$LD"; then
1717   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1718   for ac_dir in $PATH; do
1719     test -z "$ac_dir" && ac_dir=.
1720     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1721       lt_cv_path_LD="$ac_dir/$ac_prog"
1722       # Check to see if the program is GNU ld.  I'd rather use --version,
1723       # but apparently some GNU ld's only accept -v.
1724       # Break only if it was the GNU/non-GNU ld that we prefer.
1725       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1726         test "$with_gnu_ld" != no && break
1727       else
1728         test "$with_gnu_ld" != yes && break
1729       fi
1730     fi
1731   done
1732   IFS="$ac_save_ifs"
1733 else
1734   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1735 fi
1736 fi
1737
1738 LD="$lt_cv_path_LD"
1739 if test -n "$LD"; then
1740   echo "$ac_t""$LD" 1>&6
1741 else
1742   echo "$ac_t""no" 1>&6
1743 fi
1744 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1745 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1746 echo "configure:1747: checking if the linker ($LD) is GNU ld" >&5
1747 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1748   echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1751 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1752   lt_cv_prog_gnu_ld=yes
1753 else
1754   lt_cv_prog_gnu_ld=no
1755 fi
1756 fi
1757
1758 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1759 with_gnu_ld=$lt_cv_prog_gnu_ld
1760
1761
1762 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1763 echo "configure:1764: checking for $LD option to reload object files" >&5
1764 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1765   echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767   lt_cv_ld_reload_flag='-r'
1768 fi
1769
1770 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1771 reload_flag=$lt_cv_ld_reload_flag
1772 test -n "$reload_flag" && reload_flag=" $reload_flag"
1773
1774 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1775 echo "configure:1776: checking for BSD-compatible nm" >&5
1776 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1777   echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779   if test -n "$NM"; then
1780   # Let the user override the test.
1781   lt_cv_path_NM="$NM"
1782 else
1783   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1784   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1785     test -z "$ac_dir" && ac_dir=.
1786     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1787     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1788       # Check to see if the nm accepts a BSD-compat flag.
1789       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1790       #   nm: unknown option "B" ignored
1791       # Tru64's nm complains that /dev/null is an invalid object file
1792       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1793         lt_cv_path_NM="$tmp_nm -B"
1794         break
1795       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1796         lt_cv_path_NM="$tmp_nm -p"
1797         break
1798       else
1799         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1800         continue # so that we can try to find one that supports BSD flags
1801       fi
1802     fi
1803   done
1804   IFS="$ac_save_ifs"
1805   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1806 fi
1807 fi
1808
1809 NM="$lt_cv_path_NM"
1810 echo "$ac_t""$NM" 1>&6
1811
1812 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether ln -s works" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1815   echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817   rm -f conftestdata
1818 if ln -s X conftestdata 2>/dev/null
1819 then
1820   rm -f conftestdata
1821   ac_cv_prog_LN_S="ln -s"
1822 else
1823   ac_cv_prog_LN_S=ln
1824 fi
1825 fi
1826 LN_S="$ac_cv_prog_LN_S"
1827 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1828   echo "$ac_t""yes" 1>&6
1829 else
1830   echo "$ac_t""no" 1>&6
1831 fi
1832
1833 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1834 echo "configure:1835: checking how to recognise dependant libraries" >&5
1835 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1836   echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838   lt_cv_file_magic_cmd='$MAGIC_CMD'
1839 lt_cv_file_magic_test_file=
1840 lt_cv_deplibs_check_method='unknown'
1841 # Need to set the preceding variable on all platforms that support
1842 # interlibrary dependencies.
1843 # 'none' -- dependencies not supported.
1844 # `unknown' -- same as none, but documents that we really don't know.
1845 # 'pass_all' -- all dependencies passed with no checks.
1846 # 'test_compile' -- check by making test program.
1847 # 'file_magic [regex]' -- check by looking for files in library path
1848 # which responds to the $file_magic_cmd with a given egrep regex.
1849 # If you have `file' or equivalent on your system and you're not sure
1850 # whether `pass_all' will *always* work, you probably want this one.
1851
1852 case $host_os in
1853 aix*)
1854   lt_cv_deplibs_check_method=pass_all
1855   ;;
1856
1857 beos*)
1858   lt_cv_deplibs_check_method=pass_all
1859   ;;
1860
1861 bsdi4*)
1862   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1863   lt_cv_file_magic_cmd='/usr/bin/file -L'
1864   lt_cv_file_magic_test_file=/shlib/libc.so
1865   ;;
1866
1867 cygwin* | mingw* |pw32*)
1868   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1869   lt_cv_file_magic_cmd='$OBJDUMP -f'
1870   ;;
1871
1872 darwin* | rhapsody*)
1873   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1874   lt_cv_file_magic_cmd='/usr/bin/file -L'
1875   case "$host_os" in
1876   rhapsody* | darwin1.012)
1877     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1878     ;;
1879   *) # Darwin 1.3 on
1880     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1881     ;;
1882   esac
1883   ;;
1884
1885 freebsd* )
1886   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1887     case $host_cpu in
1888     i*86 )
1889       # Not sure whether the presence of OpenBSD here was a mistake.
1890       # Let's accept both of them until this is cleared up.
1891       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1892       lt_cv_file_magic_cmd=/usr/bin/file
1893       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1894       ;;
1895     esac
1896   else
1897     lt_cv_deplibs_check_method=pass_all
1898   fi
1899   ;;
1900
1901 gnu*)
1902   lt_cv_deplibs_check_method=pass_all
1903   ;;
1904
1905 hpux10.20*|hpux11*)
1906   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1907   lt_cv_file_magic_cmd=/usr/bin/file
1908   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1909   ;;
1910
1911 irix5* | irix6*)
1912   case $host_os in
1913   irix5*)
1914     # this will be overridden with pass_all, but let us keep it just in case
1915     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1916     ;;
1917   *)
1918     case $LD in
1919     *-32|*"-32 ") libmagic=32-bit;;
1920     *-n32|*"-n32 ") libmagic=N32;;
1921     *-64|*"-64 ") libmagic=64-bit;;
1922     *) libmagic=never-match;;
1923     esac
1924     # this will be overridden with pass_all, but let us keep it just in case
1925     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1926     ;;
1927   esac
1928   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1929   lt_cv_deplibs_check_method=pass_all
1930   ;;
1931
1932 # This must be Linux ELF.
1933 linux-gnu*)
1934   case $host_cpu in
1935   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1936     lt_cv_deplibs_check_method=pass_all ;;
1937   *)
1938     # glibc up to 2.1.1 does not perform some relocations on ARM
1939     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1940   esac
1941   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1942   ;;
1943
1944 netbsd*)
1945   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1946     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1947   else
1948     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1949   fi
1950   ;;
1951
1952 newsos6)
1953   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1954   lt_cv_file_magic_cmd=/usr/bin/file
1955   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1956   ;;
1957
1958 osf3* | osf4* | osf5*)
1959   # this will be overridden with pass_all, but let us keep it just in case
1960   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1961   lt_cv_file_magic_test_file=/shlib/libc.so
1962   lt_cv_deplibs_check_method=pass_all
1963   ;;
1964
1965 sco3.2v5*)
1966   lt_cv_deplibs_check_method=pass_all
1967   ;;
1968
1969 solaris*)
1970   lt_cv_deplibs_check_method=pass_all
1971   lt_cv_file_magic_test_file=/lib/libc.so
1972   ;;
1973
1974 sysv5uw[78]* | sysv4*uw2*)
1975   lt_cv_deplibs_check_method=pass_all
1976   ;;
1977
1978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1979   case $host_vendor in
1980   ncr)
1981     lt_cv_deplibs_check_method=pass_all
1982     ;;
1983   motorola)
1984     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]'
1985     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1986     ;;
1987   esac
1988   ;;
1989 esac
1990
1991 fi
1992
1993 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1994 file_magic_cmd=$lt_cv_file_magic_cmd
1995 deplibs_check_method=$lt_cv_deplibs_check_method
1996
1997 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1998 echo "configure:1999: checking for object suffix" >&5
1999 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2000   echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002   rm -f conftest*
2003 echo 'int i = 1;' > conftest.$ac_ext
2004 if { (eval echo configure:2005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2005   for ac_file in conftest.*; do
2006     case $ac_file in
2007     *.c) ;;
2008     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2009     esac
2010   done
2011 else
2012   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2013 fi
2014 rm -f conftest*
2015 fi
2016
2017 echo "$ac_t""$ac_cv_objext" 1>&6
2018 OBJEXT=$ac_cv_objext
2019 ac_objext=$ac_cv_objext
2020
2021 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2022
2023 # Only perform the check for file, if the check method requires it
2024 case $deplibs_check_method in
2025 file_magic*)
2026   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2027     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2028 echo "configure:2029: checking for ${ac_tool_prefix}file" >&5
2029 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2030   echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032   case $MAGIC_CMD in
2033   /*)
2034   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2035   ;;
2036   ?:/*)
2037   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2038   ;;
2039   *)
2040   ac_save_MAGIC_CMD="$MAGIC_CMD"
2041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2042   ac_dummy="/usr/bin:$PATH"
2043   for ac_dir in $ac_dummy; do
2044     test -z "$ac_dir" && ac_dir=.
2045     if test -f $ac_dir/${ac_tool_prefix}file; then
2046       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2047       if test -n "$file_magic_test_file"; then
2048         case $deplibs_check_method in
2049         "file_magic "*)
2050           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2051           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2052           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2053             egrep "$file_magic_regex" > /dev/null; then
2054             :
2055           else
2056             cat <<EOF 1>&2
2057
2058 *** Warning: the command libtool uses to detect shared libraries,
2059 *** $file_magic_cmd, produces output that libtool cannot recognize.
2060 *** The result is that libtool may fail to recognize shared libraries
2061 *** as such.  This will affect the creation of libtool libraries that
2062 *** depend on shared libraries, but programs linked with such libtool
2063 *** libraries will work regardless of this problem.  Nevertheless, you
2064 *** may want to report the problem to your system manager and/or to
2065 *** bug-libtool@gnu.org
2066
2067 EOF
2068           fi ;;
2069         esac
2070       fi
2071       break
2072     fi
2073   done
2074   IFS="$ac_save_ifs"
2075   MAGIC_CMD="$ac_save_MAGIC_CMD"
2076   ;;
2077 esac
2078 fi
2079
2080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2081 if test -n "$MAGIC_CMD"; then
2082   echo "$ac_t""$MAGIC_CMD" 1>&6
2083 else
2084   echo "$ac_t""no" 1>&6
2085 fi
2086
2087 if test -z "$lt_cv_path_MAGIC_CMD"; then
2088   if test -n "$ac_tool_prefix"; then
2089     echo $ac_n "checking for file""... $ac_c" 1>&6
2090 echo "configure:2091: checking for file" >&5
2091 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2092   echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094   case $MAGIC_CMD in
2095   /*)
2096   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2097   ;;
2098   ?:/*)
2099   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2100   ;;
2101   *)
2102   ac_save_MAGIC_CMD="$MAGIC_CMD"
2103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2104   ac_dummy="/usr/bin:$PATH"
2105   for ac_dir in $ac_dummy; do
2106     test -z "$ac_dir" && ac_dir=.
2107     if test -f $ac_dir/file; then
2108       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2109       if test -n "$file_magic_test_file"; then
2110         case $deplibs_check_method in
2111         "file_magic "*)
2112           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2113           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2114           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2115             egrep "$file_magic_regex" > /dev/null; then
2116             :
2117           else
2118             cat <<EOF 1>&2
2119
2120 *** Warning: the command libtool uses to detect shared libraries,
2121 *** $file_magic_cmd, produces output that libtool cannot recognize.
2122 *** The result is that libtool may fail to recognize shared libraries
2123 *** as such.  This will affect the creation of libtool libraries that
2124 *** depend on shared libraries, but programs linked with such libtool
2125 *** libraries will work regardless of this problem.  Nevertheless, you
2126 *** may want to report the problem to your system manager and/or to
2127 *** bug-libtool@gnu.org
2128
2129 EOF
2130           fi ;;
2131         esac
2132       fi
2133       break
2134     fi
2135   done
2136   IFS="$ac_save_ifs"
2137   MAGIC_CMD="$ac_save_MAGIC_CMD"
2138   ;;
2139 esac
2140 fi
2141
2142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2143 if test -n "$MAGIC_CMD"; then
2144   echo "$ac_t""$MAGIC_CMD" 1>&6
2145 else
2146   echo "$ac_t""no" 1>&6
2147 fi
2148
2149   else
2150     MAGIC_CMD=:
2151   fi
2152 fi
2153
2154   fi
2155   ;;
2156 esac
2157
2158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_word" >&5
2162 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2163   echo $ac_n "(cached) $ac_c" 1>&6
2164 else
2165   if test -n "$RANLIB"; then
2166   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2167 else
2168   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2169   ac_dummy="$PATH"
2170   for ac_dir in $ac_dummy; do
2171     test -z "$ac_dir" && ac_dir=.
2172     if test -f $ac_dir/$ac_word; then
2173       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2174       break
2175     fi
2176   done
2177   IFS="$ac_save_ifs"
2178 fi
2179 fi
2180 RANLIB="$ac_cv_prog_RANLIB"
2181 if test -n "$RANLIB"; then
2182   echo "$ac_t""$RANLIB" 1>&6
2183 else
2184   echo "$ac_t""no" 1>&6
2185 fi
2186
2187
2188 if test -z "$ac_cv_prog_RANLIB"; then
2189 if test -n "$ac_tool_prefix"; then
2190   # Extract the first word of "ranlib", so it can be a program name with args.
2191 set dummy ranlib; ac_word=$2
2192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_word" >&5
2194 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2195   echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197   if test -n "$RANLIB"; then
2198   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2199 else
2200   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2201   ac_dummy="$PATH"
2202   for ac_dir in $ac_dummy; do
2203     test -z "$ac_dir" && ac_dir=.
2204     if test -f $ac_dir/$ac_word; then
2205       ac_cv_prog_RANLIB="ranlib"
2206       break
2207     fi
2208   done
2209   IFS="$ac_save_ifs"
2210   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2211 fi
2212 fi
2213 RANLIB="$ac_cv_prog_RANLIB"
2214 if test -n "$RANLIB"; then
2215   echo "$ac_t""$RANLIB" 1>&6
2216 else
2217   echo "$ac_t""no" 1>&6
2218 fi
2219
2220 else
2221   RANLIB=":"
2222 fi
2223 fi
2224
2225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2226 set dummy ${ac_tool_prefix}strip; ac_word=$2
2227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_word" >&5
2229 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2230   echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232   if test -n "$STRIP"; then
2233   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2234 else
2235   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2236   ac_dummy="$PATH"
2237   for ac_dir in $ac_dummy; do
2238     test -z "$ac_dir" && ac_dir=.
2239     if test -f $ac_dir/$ac_word; then
2240       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2241       break
2242     fi
2243   done
2244   IFS="$ac_save_ifs"
2245 fi
2246 fi
2247 STRIP="$ac_cv_prog_STRIP"
2248 if test -n "$STRIP"; then
2249   echo "$ac_t""$STRIP" 1>&6
2250 else
2251   echo "$ac_t""no" 1>&6
2252 fi
2253
2254
2255 if test -z "$ac_cv_prog_STRIP"; then
2256 if test -n "$ac_tool_prefix"; then
2257   # Extract the first word of "strip", so it can be a program name with args.
2258 set dummy strip; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2262   echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264   if test -n "$STRIP"; then
2265   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2266 else
2267   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2268   ac_dummy="$PATH"
2269   for ac_dir in $ac_dummy; do
2270     test -z "$ac_dir" && ac_dir=.
2271     if test -f $ac_dir/$ac_word; then
2272       ac_cv_prog_STRIP="strip"
2273       break
2274     fi
2275   done
2276   IFS="$ac_save_ifs"
2277   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2278 fi
2279 fi
2280 STRIP="$ac_cv_prog_STRIP"
2281 if test -n "$STRIP"; then
2282   echo "$ac_t""$STRIP" 1>&6
2283 else
2284   echo "$ac_t""no" 1>&6
2285 fi
2286
2287 else
2288   STRIP=":"
2289 fi
2290 fi
2291
2292
2293 # Check for any special flags to pass to ltconfig.
2294 libtool_flags="--cache-file=$cache_file"
2295 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2296 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2297 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2298 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2299 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2300 libtool_flags="$libtool_flags --enable-dlopen"
2301
2302 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2303 if test "${enable_libtool_lock+set}" = set; then
2304   enableval="$enable_libtool_lock"
2305   :
2306 fi
2307
2308 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2309 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2310
2311 # Check whether --with-pic or --without-pic was given.
2312 if test "${with_pic+set}" = set; then
2313   withval="$with_pic"
2314   pic_mode="$withval"
2315 else
2316   pic_mode=default
2317 fi
2318
2319 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2320 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2321
2322 # Some flags need to be propagated to the compiler or linker for good
2323 # libtool support.
2324 case $host in
2325 *-*-irix6*)
2326   # Find out which ABI we are using.
2327   echo '#line 2328 "configure"' > conftest.$ac_ext
2328   if { (eval echo configure:2329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2329     case `/usr/bin/file conftest.$ac_objext` in
2330     *32-bit*)
2331       LD="${LD-ld} -32"
2332       ;;
2333     *N32*)
2334       LD="${LD-ld} -n32"
2335       ;;
2336     *64-bit*)
2337       LD="${LD-ld} -64"
2338       ;;
2339     esac
2340   fi
2341   rm -rf conftest*
2342   ;;
2343
2344 *-*-sco3.2v5*)
2345   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2346   SAVE_CFLAGS="$CFLAGS"
2347   CFLAGS="$CFLAGS -belf"
2348   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2349 echo "configure:2350: checking whether the C compiler needs -belf" >&5
2350 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   
2354      ac_ext=c
2355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2359 cross_compiling=$ac_cv_prog_cc_cross
2360
2361      cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364
2365 int main() {
2366
2367 ; return 0; }
2368 EOF
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2370   rm -rf conftest*
2371   lt_cv_cc_needs_belf=yes
2372 else
2373   echo "configure: failed program was:" >&5
2374   cat conftest.$ac_ext >&5
2375   rm -rf conftest*
2376   lt_cv_cc_needs_belf=no
2377 fi
2378 rm -f conftest*
2379      ac_ext=c
2380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2384 cross_compiling=$ac_cv_prog_cc_cross
2385
2386 fi
2387
2388 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2389   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2390     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2391     CFLAGS="$SAVE_CFLAGS"
2392   fi
2393   ;;
2394
2395
2396 esac
2397
2398 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2399 echo "configure:2400: checking how to run the C++ preprocessor" >&5
2400 if test -z "$CXXCPP"; then
2401 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2402   echo $ac_n "(cached) $ac_c" 1>&6
2403 else
2404   ac_ext=C
2405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2406 ac_cpp='$CXXCPP $CPPFLAGS'
2407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2409 cross_compiling=$ac_cv_prog_cxx_cross
2410   CXXCPP="${CXX-g++} -E"
2411   cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <stdlib.h>
2415 EOF
2416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2417 { (eval echo configure:2418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2419 if test -z "$ac_err"; then
2420   :
2421 else
2422   echo "$ac_err" >&5
2423   echo "configure: failed program was:" >&5
2424   cat conftest.$ac_ext >&5
2425   rm -rf conftest*
2426   CXXCPP=/lib/cpp
2427 fi
2428 rm -f conftest*
2429   ac_cv_prog_CXXCPP="$CXXCPP"
2430 ac_ext=c
2431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2435 cross_compiling=$ac_cv_prog_cc_cross
2436 fi
2437 fi
2438 CXXCPP="$ac_cv_prog_CXXCPP"
2439 echo "$ac_t""$CXXCPP" 1>&6
2440
2441
2442 # Save cache, so that ltconfig can load it
2443 cat > confcache <<\EOF
2444 # This file is a shell script that caches the results of configure
2445 # tests run on this system so they can be shared between configure
2446 # scripts and configure runs.  It is not useful on other systems.
2447 # If it contains results you don't want to keep, you may remove or edit it.
2448 #
2449 # By default, configure uses ./config.cache as the cache file,
2450 # creating it if it does not exist already.  You can give configure
2451 # the --cache-file=FILE option to use a different cache file; that is
2452 # what configure does when it calls configure scripts in
2453 # subdirectories, so they share the cache.
2454 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2455 # config.status only pays attention to the cache file if you give it the
2456 # --recheck option to rerun configure.
2457 #
2458 EOF
2459 # The following way of writing the cache mishandles newlines in values,
2460 # but we know of no workaround that is simple, portable, and efficient.
2461 # So, don't put newlines in cache variables' values.
2462 # Ultrix sh set writes to stderr and can't be redirected directly,
2463 # and sets the high bit in the cache file unless we assign to the vars.
2464 (set) 2>&1 |
2465   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2466   *ac_space=\ *)
2467     # `set' does not quote correctly, so add quotes (double-quote substitution
2468     # turns \\\\ into \\, and sed turns \\ into \).
2469     sed -n \
2470       -e "s/'/'\\\\''/g" \
2471       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2472     ;;
2473   *)
2474     # `set' quotes correctly as required by POSIX, so do not add quotes.
2475     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2476     ;;
2477   esac >> confcache
2478 if cmp -s $cache_file confcache; then
2479   :
2480 else
2481   if test -w $cache_file; then
2482     echo "updating cache $cache_file"
2483     cat confcache > $cache_file
2484   else
2485     echo "not updating unwritable cache $cache_file"
2486   fi
2487 fi
2488 rm -f confcache
2489
2490
2491 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2492 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2493 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2494 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2495 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2496 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2497 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2498 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2499 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2500 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2501
2502 # Reload cache, that may have been modified by ltconfig
2503 if test -r "$cache_file"; then
2504   echo "loading cache $cache_file"
2505   . $cache_file
2506 else
2507   echo "creating cache $cache_file"
2508   > $cache_file
2509 fi
2510
2511
2512 # This can be used to rebuild libtool when needed
2513 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2514
2515 # Always use our own libtool.
2516 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2517
2518 # Redirect the config.log output again, so that the ltconfig log is not
2519 # clobbered by the next message.
2520 exec 5>>./config.log
2521
2522
2523
2524 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2525 lt_save_CC="$CC"
2526 lt_save_CFLAGS="$CFLAGS"
2527 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2528 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2529 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2530 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2531 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2532 deplibs_check_method="$deplibs_check_method" \
2533 file_magic_cmd="$file_magic_cmd" \
2534 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2535 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2536 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2537 CC="$lt_save_CC"
2538 CFLAGS="$lt_save_CFLAGS"
2539
2540 # Redirect the config.log output again, so that the ltconfig log is not
2541 # clobbered by the next message.
2542 exec 5>>./config.log
2543
2544   
2545
2546   
2547          
2548          
2549
2550
2551 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2552 echo "configure:2553: checking for GNU make" >&5
2553 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2554   echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556   _cv_gnu_make_command='' ;
2557           for a in "${MAKE-make}" make gmake gnumake ; do
2558                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2559                   then
2560                           _cv_gnu_make_command=$a ;
2561                           break;
2562                   fi
2563           done ;
2564   
2565 fi
2566
2567 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2568   if test  "x$_cv_gnu_make_command" != "x"  ; then
2569           ifGNUmake='' ;
2570   else
2571           ifGNUmake='#' ;
2572   fi
2573   
2574
2575
2576
2577
2578
2579
2580
2581
2582 # Check for c++ or library specific bits that don't require linking.
2583
2584 if test ! -f stamp-sanity-compiler; then
2585   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2586 echo "configure:2587: checking for g++ that will successfully compile libstdc++-v3" >&5
2587   
2588   ac_ext=C
2589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2590 ac_cpp='$CXXCPP $CPPFLAGS'
2591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2593 cross_compiling=$ac_cv_prog_cxx_cross
2594
2595   cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598
2599 int main() {
2600
2601   #if __GNUC__ < 3
2602     not_ok
2603   #endif
2604   
2605 ; return 0; }
2606 EOF
2607 if { (eval echo configure:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608   rm -rf conftest*
2609   gpp_satisfactory=yes
2610 else
2611   echo "configure: failed program was:" >&5
2612   cat conftest.$ac_ext >&5
2613   rm -rf conftest*
2614   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2615 fi
2616 rm -f conftest*
2617   ac_ext=c
2618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2622 cross_compiling=$ac_cv_prog_cc_cross
2623
2624   echo "$ac_t""$gpp_satisfactory" 1>&6
2625   touch stamp-sanity-compiler
2626 fi
2627
2628
2629 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2630 # Check whether --enable-debug or --disable-debug was given.
2631 if test "${enable_debug+set}" = set; then
2632   enableval="$enable_debug"
2633   case "${enableval}" in
2634  yes) enable_debug=yes ;;
2635  no)  enable_debug=no ;;
2636  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2637  esac
2638 else
2639   enable_debug=no
2640 fi
2641
2642 case "${enable_debug}" in
2643     yes) 
2644         DEBUG_FLAGS='-O0 -ggdb3'                        
2645         ;; 
2646     no)   
2647         DEBUG_FLAGS='-g'
2648         ;;
2649 esac
2650
2651
2652 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2653 echo "configure:2654: checking how to run the C preprocessor" >&5
2654 # On Suns, sometimes $CPP names a directory.
2655 if test -n "$CPP" && test -d "$CPP"; then
2656   CPP=
2657 fi
2658 if test -z "$CPP"; then
2659 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2660   echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662     # This must be in double quotes, not single quotes, because CPP may get
2663   # substituted into the Makefile and "${CC-cc}" will confuse make.
2664   CPP="${CC-cc} -E"
2665   # On the NeXT, cc -E runs the code through the compiler's parser,
2666   # not just through cpp.
2667   cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <assert.h>
2671 Syntax Error
2672 EOF
2673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2674 { (eval echo configure:2675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2676 if test -z "$ac_err"; then
2677   :
2678 else
2679   echo "$ac_err" >&5
2680   echo "configure: failed program was:" >&5
2681   cat conftest.$ac_ext >&5
2682   rm -rf conftest*
2683   CPP="${CC-cc} -E -traditional-cpp"
2684   cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 #include <assert.h>
2688 Syntax Error
2689 EOF
2690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2691 { (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2693 if test -z "$ac_err"; then
2694   :
2695 else
2696   echo "$ac_err" >&5
2697   echo "configure: failed program was:" >&5
2698   cat conftest.$ac_ext >&5
2699   rm -rf conftest*
2700   CPP="${CC-cc} -nologo -E"
2701   cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 #include <assert.h>
2705 Syntax Error
2706 EOF
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2711   :
2712 else
2713   echo "$ac_err" >&5
2714   echo "configure: failed program was:" >&5
2715   cat conftest.$ac_ext >&5
2716   rm -rf conftest*
2717   CPP=/lib/cpp
2718 fi
2719 rm -f conftest*
2720 fi
2721 rm -f conftest*
2722 fi
2723 rm -f conftest*
2724   ac_cv_prog_CPP="$CPP"
2725 fi
2726   CPP="$ac_cv_prog_CPP"
2727 else
2728   ac_cv_prog_CPP="$CPP"
2729 fi
2730 echo "$ac_t""$CPP" 1>&6
2731
2732
2733   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2734 echo "configure:2735: checking for cstdio to use" >&5
2735   # Check whether --enable-cstdio or --disable-cstdio was given.
2736 if test "${enable_cstdio+set}" = set; then
2737   enableval="$enable_cstdio"
2738   if test x$enable_cstdio = xno; then
2739      enable_cstdio=stdio
2740   fi
2741 else
2742   enable_cstdio=stdio
2743 fi
2744
2745
2746   enable_cstdio_flag=$enable_cstdio
2747
2748     case x${enable_cstdio_flag} in
2749     xlibio)
2750       CSTDIO_H=config/c_io_libio.h
2751       BASIC_FILE_H=config/basic_file_libio.h
2752       BASIC_FILE_CC=config/basic_file_libio.cc
2753       echo "$ac_t""libio" 1>&6
2754
2755       # see if we are on a system with libio native (ie, linux)
2756       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2758 echo "configure:2759: checking for libio.h" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760   echo $ac_n "(cached) $ac_c" 1>&6
2761 else
2762   cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 #include <libio.h>
2766 EOF
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2771   rm -rf conftest*
2772   eval "ac_cv_header_$ac_safe=yes"
2773 else
2774   echo "$ac_err" >&5
2775   echo "configure: failed program was:" >&5
2776   cat conftest.$ac_ext >&5
2777   rm -rf conftest*
2778   eval "ac_cv_header_$ac_safe=no"
2779 fi
2780 rm -f conftest*
2781 fi
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783   echo "$ac_t""yes" 1>&6
2784   has_libio=yes
2785 else
2786   echo "$ac_t""no" 1>&6
2787 has_libio=no
2788 fi
2789
2790
2791       # Need to check and see what version of glibc is being used. If
2792       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2793       # compile most of libio for linux systems.
2794       if test x$has_libio = x"yes"; then
2795         case "$target" in
2796           *-*-linux*)
2797               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2798 echo "configure:2799: checking for glibc version >= 2.2" >&5
2799               cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802
2803             #include <features.h>
2804               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2805                     ok
2806               #endif
2807               
2808 EOF
2809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810   egrep "ok" >/dev/null 2>&1; then
2811   rm -rf conftest*
2812   glibc_satisfactory=yes
2813 else
2814   rm -rf conftest*
2815   glibc_satisfactory=no
2816 fi
2817 rm -f conftest*
2818
2819               echo "$ac_t""$glibc_satisfactory" 1>&6
2820             ;;
2821         esac
2822
2823         # XXX at the moment, admit defeat and force the recompilation
2824         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2825         glibc_satisfactory=no        
2826
2827         if test x$glibc_satisfactory = x"yes"; then
2828            need_libio=no
2829            need_wlibio=no        
2830         else
2831            need_libio=yes
2832            # bkoz XXX need to add checks to enable this
2833            # pme XXX here's a first pass at such a check
2834            if test x$enable_c_mbchar != xno; then
2835               need_wlibio=yes
2836            else
2837               need_wlibio=no
2838            fi
2839         fi
2840
2841       else
2842          # Using libio, but <libio.h> doesn't exist on the target system. . .
2843          need_libio=yes
2844          # bkoz XXX need to add checks to enable this
2845          # pme XXX here's a first pass at such a check
2846          if test x$enable_c_mbchar != xno; then
2847              need_wlibio=yes
2848          else
2849              need_wlibio=no
2850          fi
2851       fi
2852       ;;
2853     xstdio | x | xno | xnone | xyes)
2854       # default
2855       CSTDIO_H=config/c_io_stdio.h
2856       BASIC_FILE_H=config/basic_file_stdio.h
2857       BASIC_FILE_CC=config/basic_file_stdio.cc
2858       echo "$ac_t""stdio" 1>&6
2859
2860       # We're not using stdio.
2861       need_libio=no
2862       need_wlibio=no
2863       ;;
2864     *)
2865       echo "$enable_cstdio is an unknown io package" 1>&2
2866       exit 1
2867       ;;
2868   esac
2869   
2870   
2871   
2872
2873   # 2000-08-04 bkoz hack
2874   CCODECVT_C=config/c_io_libio_codecvt.c
2875   
2876   # 2000-08-04 bkoz hack
2877
2878   
2879
2880 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2881   GLIBCPP_BUILD_LIBIO_TRUE=
2882   GLIBCPP_BUILD_LIBIO_FALSE='#'
2883 else
2884   GLIBCPP_BUILD_LIBIO_TRUE='#'
2885   GLIBCPP_BUILD_LIBIO_FALSE=
2886 fi
2887   
2888
2889 if test "$need_libio" = yes; then
2890   GLIBCPP_NEED_LIBIO_TRUE=
2891   GLIBCPP_NEED_LIBIO_FALSE='#'
2892 else
2893   GLIBCPP_NEED_LIBIO_TRUE='#'
2894   GLIBCPP_NEED_LIBIO_FALSE=
2895 fi
2896   
2897
2898 if test "$need_wlibio" = yes; then
2899   GLIBCPP_NEED_WLIBIO_TRUE=
2900   GLIBCPP_NEED_WLIBIO_FALSE='#'
2901 else
2902   GLIBCPP_NEED_WLIBIO_TRUE='#'
2903   GLIBCPP_NEED_WLIBIO_FALSE=
2904 fi
2905   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2906     libio_la=../libio/libio.la
2907   else
2908     libio_la=
2909   fi
2910   
2911
2912
2913   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2914 echo "configure:2915: checking for clocale to use" >&5
2915   # Check whether --enable-clocale or --disable-clocale was given.
2916 if test "${enable_clocale+set}" = set; then
2917   enableval="$enable_clocale"
2918   if test x$enable_clocale = xno; then
2919      enable_clocale=generic
2920   fi
2921 else
2922   enable_clocale=generic
2923 fi
2924
2925
2926   enable_clocale_flag=$enable_clocale
2927
2928     case x${enable_clocale_flag} in
2929     xgnu)
2930       CLOCALE_H=config/c_locale_gnu.h
2931       CLOCALE_CC=config/c_locale_gnu.cc
2932       echo "$ac_t""gnu" 1>&6
2933       ;;
2934     xgeneric)
2935       CLOCALE_H=config/c_locale_generic.h
2936       CLOCALE_CC=config/c_locale_generic.cc
2937       echo "$ac_t""generic" 1>&6
2938       ;;
2939     *)
2940       echo "$enable_clocale is an unknown locale package" 1>&2
2941       exit 1
2942       ;;
2943   esac
2944
2945   
2946   
2947
2948 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2949 if test "${enable_c_mbchar+set}" = set; then
2950   enableval="$enable_c_mbchar"
2951   case "$enableval" in
2952  yes) enable_c_mbchar=yes ;;
2953  no)  enable_c_mbchar=no ;;
2954  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2955  esac
2956 else
2957   enable_c_mbchar=yes
2958 fi
2959
2960   
2961   # Check whether --enable-c99 or --disable-c99 was given.
2962 if test "${enable_c99+set}" = set; then
2963   enableval="$enable_c99"
2964     case "$enableval" in
2965    yes) enable_c99=yes ;;
2966    no)  enable_c99=no ;;
2967    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2968    esac
2969 else
2970   enable_c99=yes
2971 fi
2972  
2973   
2974   ac_ext=C
2975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2976 ac_cpp='$CXXCPP $CPPFLAGS'
2977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2979 cross_compiling=$ac_cv_prog_cxx_cross
2980
2981
2982   # Check for the existence of <math.h> functions used if C99 is enabled.
2983   ac_c99_math=yes;
2984   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2985 echo "configure:2986: checking for ISO C99 support in <math.h>" >&5
2986   cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <math.h>
2990 int main() {
2991 fpclassify(0.0);
2992 ; return 0; }
2993 EOF
2994 if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2995   :
2996 else
2997   echo "configure: failed program was:" >&5
2998   cat conftest.$ac_ext >&5
2999   rm -rf conftest*
3000   ac_c99_math=no
3001 fi
3002 rm -f conftest*
3003   cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <math.h>
3007 int main() {
3008 isfinite(0.0);
3009 ; return 0; }
3010 EOF
3011 if { (eval echo configure:3012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3012   :
3013 else
3014   echo "configure: failed program was:" >&5
3015   cat conftest.$ac_ext >&5
3016   rm -rf conftest*
3017   ac_c99_math=no
3018 fi
3019 rm -f conftest*
3020   cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <math.h>
3024 int main() {
3025 isinf(0.0);
3026 ; return 0; }
3027 EOF
3028 if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029   :
3030 else
3031   echo "configure: failed program was:" >&5
3032   cat conftest.$ac_ext >&5
3033   rm -rf conftest*
3034   ac_c99_math=no
3035 fi
3036 rm -f conftest*
3037   cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <math.h>
3041 int main() {
3042 isnan(0.0);
3043 ; return 0; }
3044 EOF
3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3046   :
3047 else
3048   echo "configure: failed program was:" >&5
3049   cat conftest.$ac_ext >&5
3050   rm -rf conftest*
3051   ac_c99_math=no
3052 fi
3053 rm -f conftest*
3054   cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 #include <math.h>
3058 int main() {
3059 isnormal(0.0);
3060 ; return 0; }
3061 EOF
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063   :
3064 else
3065   echo "configure: failed program was:" >&5
3066   cat conftest.$ac_ext >&5
3067   rm -rf conftest*
3068   ac_c99_math=no
3069 fi
3070 rm -f conftest*
3071   cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 #include <math.h>
3075 int main() {
3076 signbit(0.0);
3077 ; return 0; }
3078 EOF
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3080   :
3081 else
3082   echo "configure: failed program was:" >&5
3083   cat conftest.$ac_ext >&5
3084   rm -rf conftest*
3085   ac_c99_math=no
3086 fi
3087 rm -f conftest*
3088   cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 #include <math.h>
3092 int main() {
3093 isgreater(0.0,0.0);
3094 ; return 0; }
3095 EOF
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3097   :
3098 else
3099   echo "configure: failed program was:" >&5
3100   cat conftest.$ac_ext >&5
3101   rm -rf conftest*
3102   ac_c99_math=no
3103 fi
3104 rm -f conftest*
3105   cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 #include <math.h>
3109 int main() {
3110 isgreaterequal(0.0,0.0);
3111 ; return 0; }
3112 EOF
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3114   :
3115 else
3116   echo "configure: failed program was:" >&5
3117   cat conftest.$ac_ext >&5
3118   rm -rf conftest*
3119   ac_c99_math=no
3120 fi
3121 rm -f conftest*
3122   cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <math.h>
3126 int main() {
3127 isless(0.0,0.0);
3128 ; return 0; }
3129 EOF
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131   :
3132 else
3133   echo "configure: failed program was:" >&5
3134   cat conftest.$ac_ext >&5
3135   rm -rf conftest*
3136   ac_c99_math=no
3137 fi
3138 rm -f conftest*
3139   cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3142 #include <math.h>
3143 int main() {
3144 islessequal(0.0,0.0);
3145 ; return 0; }
3146 EOF
3147 if { (eval echo configure:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3148   :
3149 else
3150   echo "configure: failed program was:" >&5
3151   cat conftest.$ac_ext >&5
3152   rm -rf conftest*
3153   ac_c99_math=no
3154 fi
3155 rm -f conftest*
3156   cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <math.h>
3160 int main() {
3161 islessgreater(0.0,0.0);
3162 ; return 0; }
3163 EOF
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165   :
3166 else
3167   echo "configure: failed program was:" >&5
3168   cat conftest.$ac_ext >&5
3169   rm -rf conftest*
3170   ac_c99_math=no
3171 fi
3172 rm -f conftest*
3173   cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #include <math.h>
3177 int main() {
3178 isunordered(0.0,0.0);
3179 ; return 0; }
3180 EOF
3181 if { (eval echo configure:3182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3182   :
3183 else
3184   echo "configure: failed program was:" >&5
3185   cat conftest.$ac_ext >&5
3186   rm -rf conftest*
3187   ac_c99_math=no
3188 fi
3189 rm -f conftest*
3190   echo "$ac_t""$ac_c99_math" 1>&6
3191
3192   # Check for the existence in <stdio.h> of vscanf, et. al.
3193   ac_c99_stdio=yes;
3194   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3195 echo "configure:3196: checking for ISO C99 support in <stdio.h>" >&5
3196   cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <stdio.h>
3200 int main() {
3201 snprintf("12", 0, "%i");
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205   :
3206 else
3207   echo "configure: failed program was:" >&5
3208   cat conftest.$ac_ext >&5
3209   rm -rf conftest*
3210   ac_c99_stdio=no
3211 fi
3212 rm -f conftest*
3213   cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <stdio.h>
3217                   #include <stdarg.h>
3218                   void foo(char* fmt, ...)
3219                   {va_list args; va_start(args, fmt);
3220                   vfscanf(stderr, "%i", args);}
3221 int main() {
3222
3223 ; return 0; }
3224 EOF
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3226   :
3227 else
3228   echo "configure: failed program was:" >&5
3229   cat conftest.$ac_ext >&5
3230   rm -rf conftest*
3231   ac_c99_stdio=no
3232 fi
3233 rm -f conftest*
3234   cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <stdio.h>
3238                   #include <stdarg.h>
3239                   void foo(char* fmt, ...)
3240                   {va_list args; va_start(args, fmt);
3241                   vscanf("%i", args);}
3242 int main() {
3243
3244 ; return 0; }
3245 EOF
3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247   :
3248 else
3249   echo "configure: failed program was:" >&5
3250   cat conftest.$ac_ext >&5
3251   rm -rf conftest*
3252   ac_c99_stdio=no
3253 fi
3254 rm -f conftest*
3255   cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 #include <stdio.h>
3259                   #include <stdarg.h>
3260                   void foo(char* fmt, ...)
3261                   {va_list args; va_start(args, fmt);
3262                   vsnprintf(fmt, 0, "%i", args);}
3263 int main() {
3264
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_stdio=no
3274 fi
3275 rm -f conftest*
3276   cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <stdio.h>
3280                   #include <stdarg.h>
3281                   void foo(char* fmt, ...)
3282                   {va_list args; va_start(args, fmt);
3283                   vsscanf(fmt, "%i", args);}
3284 int main() {
3285
3286 ; return 0; }
3287 EOF
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289   :
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_c99_stdio=no
3295 fi
3296 rm -f conftest*
3297   echo "$ac_t""$ac_c99_stdio" 1>&6
3298
3299   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3300   ac_c99_stdlib=yes;
3301   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3302 echo "configure:3303: checking for lldiv_t declaration" >&5
3303   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3304   echo $ac_n "(cached) $ac_c" 1>&6
3305 else
3306   
3307   cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <stdlib.h>
3311 int main() {
3312  lldiv_t mydivt;
3313 ; return 0; }
3314 EOF
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316   rm -rf conftest*
3317   ac_c99_lldiv_t=yes
3318 else
3319   echo "configure: failed program was:" >&5
3320   cat conftest.$ac_ext >&5
3321   rm -rf conftest*
3322   ac_c99_lldiv_t=no
3323 fi
3324 rm -f conftest*
3325   
3326 fi
3327
3328   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3329
3330   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3331 echo "configure:3332: checking for ISO C99 support in <stdlib.h>" >&5
3332   cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <stdlib.h>
3336 int main() {
3337 char* tmp; strtof("gnu", &tmp);
3338 ; return 0; }
3339 EOF
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341   :
3342 else
3343   echo "configure: failed program was:" >&5
3344   cat conftest.$ac_ext >&5
3345   rm -rf conftest*
3346   ac_c99_stdlib=no
3347 fi
3348 rm -f conftest*
3349   cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <stdlib.h>
3353 int main() {
3354 char* tmp; strtold("gnu", &tmp);
3355 ; return 0; }
3356 EOF
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358   :
3359 else
3360   echo "configure: failed program was:" >&5
3361   cat conftest.$ac_ext >&5
3362   rm -rf conftest*
3363   ac_c99_stdlib=no
3364 fi
3365 rm -f conftest*
3366   cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <stdlib.h>
3370 int main() {
3371 char* tmp; strtoll("gnu", &tmp, 10);
3372 ; return 0; }
3373 EOF
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375   :
3376 else
3377   echo "configure: failed program was:" >&5
3378   cat conftest.$ac_ext >&5
3379   rm -rf conftest*
3380   ac_c99_stdlib=no
3381 fi
3382 rm -f conftest*
3383   cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <stdlib.h>
3387 int main() {
3388 char* tmp; strtoull("gnu", &tmp, 10);
3389 ; return 0; }
3390 EOF
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392   :
3393 else
3394   echo "configure: failed program was:" >&5
3395   cat conftest.$ac_ext >&5
3396   rm -rf conftest*
3397   ac_c99_stdlib=no
3398 fi
3399 rm -f conftest*
3400   cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <stdlib.h>
3404 int main() {
3405 llabs(10);
3406 ; return 0; }
3407 EOF
3408 if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3409   :
3410 else
3411   echo "configure: failed program was:" >&5
3412   cat conftest.$ac_ext >&5
3413   rm -rf conftest*
3414   ac_c99_stdlib=no
3415 fi
3416 rm -f conftest*
3417   cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 #include <stdlib.h>
3421 int main() {
3422 lldiv(10,1);
3423 ; return 0; }
3424 EOF
3425 if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3426   :
3427 else
3428   echo "configure: failed program was:" >&5
3429   cat conftest.$ac_ext >&5
3430   rm -rf conftest*
3431   ac_c99_stdlib=no
3432 fi
3433 rm -f conftest*
3434   cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 #include <stdlib.h>
3438 int main() {
3439 atoll("10");
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_stdlib=no
3449 fi
3450 rm -f conftest*
3451   cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <stdlib.h>
3455 int main() {
3456 _Exit(0);
3457 ; return 0; }
3458 EOF
3459 if { (eval echo configure:3460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3460   :
3461 else
3462   echo "configure: failed program was:" >&5
3463   cat conftest.$ac_ext >&5
3464   rm -rf conftest*
3465   ac_c99_stdlib=no
3466 fi
3467 rm -f conftest*
3468   if test x"$ac_c99_lldiv_t" = x"no"; then
3469     ac_c99_stdlib=no; 
3470   fi; 
3471   echo "$ac_t""$ac_c99_stdlib" 1>&6
3472
3473   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3474   # XXX the wchar.h checks should be rolled into the general C99 bits.
3475   ac_c99_wchar=yes;
3476   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3477 echo "configure:3478: checking for additional ISO C99 support in <wchar.h>" >&5
3478   cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 #include <wchar.h>
3482 int main() {
3483 wcstold(L"10.0", NULL);
3484 ; return 0; }
3485 EOF
3486 if { (eval echo configure:3487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3487   :
3488 else
3489   echo "configure: failed program was:" >&5
3490   cat conftest.$ac_ext >&5
3491   rm -rf conftest*
3492   ac_c99_wchar=no
3493 fi
3494 rm -f conftest*
3495   cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 #include <wchar.h>
3499 int main() {
3500 wcstoll(L"10", NULL, 10);
3501 ; return 0; }
3502 EOF
3503 if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3504   :
3505 else
3506   echo "configure: failed program was:" >&5
3507   cat conftest.$ac_ext >&5
3508   rm -rf conftest*
3509   ac_c99_wchar=no
3510 fi
3511 rm -f conftest*
3512   cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #include <wchar.h>
3516 int main() {
3517 wcstoull(L"10", NULL, 10);
3518 ; return 0; }
3519 EOF
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3521   :
3522 else
3523   echo "configure: failed program was:" >&5
3524   cat conftest.$ac_ext >&5
3525   rm -rf conftest*
3526   ac_c99_wchar=no
3527 fi
3528 rm -f conftest*
3529   echo "$ac_t""$ac_c99_wchar" 1>&6
3530
3531   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3532 echo "configure:3533: checking for enabled ISO C99 support" >&5
3533   if test x"$ac_c99_math" = x"no" ||
3534      test x"$ac_c99_stdio" = x"no" ||
3535      test x"$ac_c99_stdlib" = x"no" ||
3536      test x"$ac_c99_wchar" = x"no"; then
3537     enable_c99=no; 
3538   fi; 
3539   echo "$ac_t""$enable_c99" 1>&6
3540
3541   # Option parsed, now set things appropriately
3542   if test x"$enable_c99" = x"yes"; then
3543     cat >> confdefs.h <<\EOF
3544 #define _GLIBCPP_USE_C99 1
3545 EOF
3546
3547   fi
3548
3549   ac_ext=c
3550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3554 cross_compiling=$ac_cv_prog_cc_cross
3555
3556
3557   
3558   # Check whether --enable-long-long or --disable-long-long was given.
3559 if test "${enable_long_long+set}" = set; then
3560   enableval="$enable_long_long"
3561     case "$enableval" in
3562    yes) enable_long_long=yes ;;
3563    no)  enable_long_long=no ;;
3564    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3565    esac
3566 else
3567   enable_long_long=yes
3568 fi
3569
3570   # iostreams require strtoll, strtoull to compile. If the
3571   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3572   # go ahead and allow long long to be used.
3573   if test x"$enable_c99" = x"no"; then
3574     enable_long_long=no; 
3575   fi
3576
3577   # Option parsed, now set things appropriately
3578   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3579 echo "configure:3580: checking for enabled long long support" >&5
3580   if test x"$enable_long_long" = xyes; then
3581     cat >> confdefs.h <<\EOF
3582 #define _GLIBCPP_USE_LONG_LONG 1
3583 EOF
3584
3585   fi
3586   echo "$ac_t""$enable_long_long" 1>&6
3587
3588 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3589 echo "configure:3590: checking for c header strategy to use" >&5
3590 # Check whether --enable-cheaders or --disable-cheaders was given.
3591 if test "${enable_cheaders+set}" = set; then
3592   enableval="$enable_cheaders"
3593   
3594   case "$enableval" in
3595    c) 
3596         enable_cheaders=c 
3597         ;;
3598    c_std)  
3599         enable_cheaders=c_std 
3600         ;;
3601    c_shadow)  
3602         enable_cheaders=c_shadow 
3603         ;;
3604    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3605         ;;
3606   esac
3607 else
3608   enable_cheaders=c_std
3609 fi
3610
3611   echo "$ac_t""$enable_cheaders" 1>&6
3612
3613     case "$enable_cheaders" in
3614     c_shadow) 
3615         CSHADOW_FLAGS="-fno-builtin"
3616         C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3617         cat >> confdefs.h <<\EOF
3618 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3619 EOF
3620
3621         ;;
3622     c_std)   
3623         CSHADOW_FLAGS=""
3624         C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3625         ;;
3626     c)   
3627         CSHADOW_FLAGS=""
3628         C_INCLUDE_DIR='${top_srcdir}/include/c'
3629         ;;
3630   esac
3631
3632   
3633   
3634   
3635
3636 if test "$enable_cheaders" = c_shadow; then
3637   GLIBCPP_USE_CSHADOW_TRUE=
3638   GLIBCPP_USE_CSHADOW_FALSE='#'
3639 else
3640   GLIBCPP_USE_CSHADOW_TRUE='#'
3641   GLIBCPP_USE_CSHADOW_FALSE=
3642 fi
3643
3644
3645   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3646 echo "configure:3647: checking for thread model used by GCC" >&5
3647   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3648   echo "$ac_t""$target_thread_file" 1>&6
3649
3650   
3651   
3652   
3653   if test $target_thread_file != single; then
3654     cat >> confdefs.h <<\EOF
3655 #define HAVE_GTHR_DEFAULT 1
3656 EOF
3657
3658     cat >> confdefs.h <<\EOF
3659 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3660 EOF
3661
3662   fi
3663   
3664
3665 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3666 if test "${enable_cxx_flags+set}" = set; then
3667   enableval="$enable_cxx_flags"
3668   case "x$enableval" in
3669  xyes)   
3670         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3671  xno|x)  
3672         enable_cxx_flags='' ;;
3673  *)      
3674         enable_cxx_flags="$enableval" ;;
3675  esac
3676 else
3677   enable_cxx_flags='none'
3678 fi
3679
3680
3681 if test "$enable_cxx_flags" = "none"; then 
3682   enable_cxx_flags=''; 
3683 fi
3684
3685 if test -n "$enable_cxx_flags"; then
3686     for f in $enable_cxx_flags; do
3687         case "$f" in
3688             -fhonor-std)  ;;
3689             -*)  ;;
3690             *)   # and we're trying to pass /what/ exactly?
3691                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3692         esac
3693     done
3694 fi
3695 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3696
3697
3698
3699   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3700 echo "configure:3701: checking for exception model to use" >&5
3701   
3702   ac_ext=C
3703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3704 ac_cpp='$CXXCPP $CPPFLAGS'
3705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3707 cross_compiling=$ac_cv_prog_cxx_cross
3708
3709   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3710 if test "${enable_sjlj_exceptions+set}" = set; then
3711   enableval="$enable_sjlj_exceptions"
3712   :
3713 else
3714                        cat > conftest.$ac_ext << EOF
3715 #line 3716 "configure"
3716 struct S { ~S(); };
3717 void bar();
3718 void foo()
3719 {
3720   S s;
3721   bar();
3722 }
3723 EOF
3724    old_CXXFLAGS="$CXXFLAGS"  
3725    CXXFLAGS=-S
3726    if { (eval echo configure:3727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3728        enable_sjlj_exceptions=yes
3729      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3730        enable_sjlj_exceptions=no
3731      fi
3732    fi
3733    CXXFLAGS="$old_CXXFLAGS"
3734    rm -f conftest*
3735 fi
3736
3737    if test x$enable_sjlj_exceptions = xyes; then
3738      cat >> confdefs.h <<\EOF
3739 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3740 EOF
3741
3742      ac_exception_model_name=sjlj
3743    elif test x$enable_sjlj_exceptions = xno; then
3744      ac_exception_model_name="call frame"
3745    else
3746      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3747    fi
3748    ac_ext=c
3749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3753 cross_compiling=$ac_cv_prog_cc_cross
3754
3755    echo "$ac_t""$ac_exception_model_name" 1>&6
3756
3757
3758 if test -n "$with_cross_host"; then
3759
3760   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
3761   # may not work correctly, because the compiler may not be able to
3762   # link executables.
3763   xcompiling=1
3764   NATIVE=no
3765
3766   # If Canadian cross, then don't pick up tools from the build
3767   # directory.
3768   if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3769     CANADIAN=yes
3770     NULL_TARGET=yes
3771   else
3772     CANADIAN=no
3773     NULL_TARGET=no
3774   fi
3775
3776   case "$target_alias" in
3777     *-linux*)
3778         # Construct linux crosses by hand, eliminating bits that need ld...
3779         # Check for available headers.
3780         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3781         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3782         float.h inttypes.h
3783 do
3784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3786 echo "configure:3787: checking for $ac_hdr" >&5
3787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3788   echo $ac_n "(cached) $ac_c" 1>&6
3789 else
3790   cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 #include <$ac_hdr>
3794 EOF
3795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3796 { (eval echo configure:3797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3798 if test -z "$ac_err"; then
3799   rm -rf conftest*
3800   eval "ac_cv_header_$ac_safe=yes"
3801 else
3802   echo "$ac_err" >&5
3803   echo "configure: failed program was:" >&5
3804   cat conftest.$ac_ext >&5
3805   rm -rf conftest*
3806   eval "ac_cv_header_$ac_safe=no"
3807 fi
3808 rm -f conftest*
3809 fi
3810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3811   echo "$ac_t""yes" 1>&6
3812     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3813   cat >> confdefs.h <<EOF
3814 #define $ac_tr_hdr 1
3815 EOF
3816  
3817 else
3818   echo "$ac_t""no" 1>&6
3819 fi
3820 done
3821
3822
3823         # GLIBCPP_CHECK_COMPILER_FEATURES
3824         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3825         
3826         
3827   # If we're not using GNU ld, then there's no point in even trying these
3828   # tests.  Check for that first.  We should have already tested for gld
3829   # by now (in libtool), but require it now just to be safe...
3830   SECTION_LDFLAGS=''
3831   OPT_LDFLAGS=''
3832   
3833
3834   # Set --gc-sections.
3835   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3836     # GNU ld it is!  Joy and bunny rabbits!
3837
3838     # All these tests are for C++; save the language and the compiler flags.
3839     # Need to do this so that g++ won't try to link in libstdc++
3840     ac_test_CFLAGS="${CFLAGS+set}"
3841     ac_save_CFLAGS="$CFLAGS"
3842     CFLAGS='-x c++  -Wl,--gc-sections'
3843
3844     # Check for -Wl,--gc-sections
3845     # XXX This test is broken at the moment, as symbols required for
3846     # linking are now in libsupc++ (not built yet.....). In addition, 
3847     # this test has cored on solaris in the past. In addition,
3848     # --gc-sections doesn't really work at the moment (keeps on discarding
3849     # used sections, first .eh_frame and now some of the glibc sections for
3850     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3851     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3852 echo "configure:3853: checking for ld that supports -Wl,--gc-sections" >&5
3853     if test "$cross_compiling" = yes; then
3854   ac_sectionLDflags=yes
3855 else
3856   cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3859
3860      int main(void) 
3861      {
3862        try { throw 1; }
3863        catch (...) { };
3864        return 0;
3865      }
3866     
3867 EOF
3868 if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3869 then
3870   ac_sectionLDflags=yes
3871 else
3872   echo "configure: failed program was:" >&5
3873   cat conftest.$ac_ext >&5
3874   rm -fr conftest*
3875   ac_sectionLFflags=no
3876 fi
3877 rm -fr conftest*
3878 fi
3879
3880     if test "$ac_test_CFLAGS" = set; then
3881       CFLAGS="$ac_save_CFLAGS"
3882     else
3883       # this is the suspicious part
3884       CFLAGS=''
3885     fi
3886     if test "$ac_sectionLDflags" = "yes"; then
3887       SECTION_LDFLAGS='-Wl,--gc-sections'
3888     fi
3889     echo "$ac_t""$ac_sectionLDflags" 1>&6
3890   fi
3891
3892   # Set linker optimization flags.
3893   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3894      test x"$enable_debug" = x"no"; then
3895     OPT_LDFLAGS='-Wl,-O1'
3896   fi
3897
3898   
3899   
3900
3901         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3902         # GLIBCPP_CHECK_MATH_SUPPORT
3903         cat >> confdefs.h <<\EOF
3904 #define HAVE_ACOSF 1
3905 EOF
3906
3907         cat >> confdefs.h <<\EOF
3908 #define HAVE_ASINF 1
3909 EOF
3910
3911         cat >> confdefs.h <<\EOF
3912 #define HAVE_ATAN2F 1
3913 EOF
3914
3915         cat >> confdefs.h <<\EOF
3916 #define HAVE_ATANF 1
3917 EOF
3918
3919         cat >> confdefs.h <<\EOF
3920 #define HAVE_CEILF 1
3921 EOF
3922
3923         cat >> confdefs.h <<\EOF
3924 #define HAVE_COPYSIGN 1
3925 EOF
3926
3927         cat >> confdefs.h <<\EOF
3928 #define HAVE_COPYSIGNF 1
3929 EOF
3930
3931         cat >> confdefs.h <<\EOF
3932 #define HAVE_COSF 1
3933 EOF
3934
3935         cat >> confdefs.h <<\EOF
3936 #define HAVE_COSHF 1
3937 EOF
3938
3939         cat >> confdefs.h <<\EOF
3940 #define HAVE_EXPF 1
3941 EOF
3942
3943         cat >> confdefs.h <<\EOF
3944 #define HAVE_FABSF 1
3945 EOF
3946
3947         cat >> confdefs.h <<\EOF
3948 #define HAVE_FINITE 1
3949 EOF
3950
3951         cat >> confdefs.h <<\EOF
3952 #define HAVE_FINITEF 1
3953 EOF
3954
3955         cat >> confdefs.h <<\EOF
3956 #define HAVE_FLOORF 1
3957 EOF
3958
3959         cat >> confdefs.h <<\EOF
3960 #define HAVE_FMODF 1
3961 EOF
3962
3963         cat >> confdefs.h <<\EOF
3964 #define HAVE_FREXPF 1
3965 EOF
3966
3967         cat >> confdefs.h <<\EOF
3968 #define HAVE_ISINF 1
3969 EOF
3970
3971         cat >> confdefs.h <<\EOF
3972 #define HAVE_ISINFF 1
3973 EOF
3974
3975         cat >> confdefs.h <<\EOF
3976 #define HAVE_ISNAN 1
3977 EOF
3978
3979         cat >> confdefs.h <<\EOF
3980 #define HAVE_ISNANF 1
3981 EOF
3982
3983         cat >> confdefs.h <<\EOF
3984 #define HAVE_LDEXPF 1
3985 EOF
3986
3987         cat >> confdefs.h <<\EOF
3988 #define HAVE_LOG10F 1
3989 EOF
3990
3991         cat >> confdefs.h <<\EOF
3992 #define HAVE_LOGF 1
3993 EOF
3994
3995         cat >> confdefs.h <<\EOF
3996 #define HAVE_MODFF 1
3997 EOF
3998
3999         cat >> confdefs.h <<\EOF
4000 #define HAVE_POWF 1
4001 EOF
4002
4003         cat >> confdefs.h <<\EOF
4004 #define HAVE_SINCOS 1
4005 EOF
4006
4007         cat >> confdefs.h <<\EOF
4008 #define HAVE_SINCOSF 1
4009 EOF
4010
4011         cat >> confdefs.h <<\EOF
4012 #define HAVE_SINF 1
4013 EOF
4014
4015         cat >> confdefs.h <<\EOF
4016 #define HAVE_SINHF 1
4017 EOF
4018
4019         cat >> confdefs.h <<\EOF
4020 #define HAVE_SQRTF 1
4021 EOF
4022
4023         cat >> confdefs.h <<\EOF
4024 #define HAVE_TANF 1
4025 EOF
4026
4027         cat >> confdefs.h <<\EOF
4028 #define HAVE_TANHF 1
4029 EOF
4030
4031
4032         # At some point, we should differentiate between architectures
4033         # like x86, which have long double versions, and alpha/powerpc/etc.,
4034         # which don't. For the time being, punt.
4035         if test x"long_double_math_on_this_cpu" = x"yes"; then
4036           cat >> confdefs.h <<\EOF
4037 #define HAVE_ACOSL 1
4038 EOF
4039
4040           cat >> confdefs.h <<\EOF
4041 #define HAVE_ASINL 1
4042 EOF
4043
4044           cat >> confdefs.h <<\EOF
4045 #define HAVE_ATAN2L 1
4046 EOF
4047
4048           cat >> confdefs.h <<\EOF
4049 #define HAVE_ATANL 1
4050 EOF
4051
4052           cat >> confdefs.h <<\EOF
4053 #define HAVE_CEILL 1
4054 EOF
4055
4056           cat >> confdefs.h <<\EOF
4057 #define HAVE_COPYSIGNL 1
4058 EOF
4059
4060           cat >> confdefs.h <<\EOF
4061 #define HAVE_COSL 1
4062 EOF
4063
4064           cat >> confdefs.h <<\EOF
4065 #define HAVE_COSHL 1
4066 EOF
4067
4068           cat >> confdefs.h <<\EOF
4069 #define HAVE_EXPL 1
4070 EOF
4071
4072           cat >> confdefs.h <<\EOF
4073 #define HAVE_FABSL 1
4074 EOF
4075
4076           cat >> confdefs.h <<\EOF
4077 #define HAVE_FINITEL 1
4078 EOF
4079
4080           cat >> confdefs.h <<\EOF
4081 #define HAVE_FLOORL 1
4082 EOF
4083
4084           cat >> confdefs.h <<\EOF
4085 #define HAVE_FMODL 1
4086 EOF
4087
4088           cat >> confdefs.h <<\EOF
4089 #define HAVE_FREXPL 1
4090 EOF
4091
4092           cat >> confdefs.h <<\EOF
4093 #define HAVE_ISINFL 1
4094 EOF
4095
4096           cat >> confdefs.h <<\EOF
4097 #define HAVE_ISNANL 1
4098 EOF
4099
4100           cat >> confdefs.h <<\EOF
4101 #define HAVE_LDEXPL 1
4102 EOF
4103
4104           cat >> confdefs.h <<\EOF
4105 #define HAVE_LOG10L 1
4106 EOF
4107
4108           cat >> confdefs.h <<\EOF
4109 #define HAVE_LOGL 1
4110 EOF
4111
4112           cat >> confdefs.h <<\EOF
4113 #define HAVE_MODFL 1
4114 EOF
4115
4116           cat >> confdefs.h <<\EOF
4117 #define HAVE_POWL 1
4118 EOF
4119
4120           cat >> confdefs.h <<\EOF
4121 #define HAVE_SINCOSL 1
4122 EOF
4123
4124           cat >> confdefs.h <<\EOF
4125 #define HAVE_SINL 1
4126 EOF
4127
4128           cat >> confdefs.h <<\EOF
4129 #define HAVE_SINHL 1
4130 EOF
4131
4132           cat >> confdefs.h <<\EOF
4133 #define HAVE_SQRTL 1
4134 EOF
4135
4136           cat >> confdefs.h <<\EOF
4137 #define HAVE_TANL 1
4138 EOF
4139
4140           cat >> confdefs.h <<\EOF
4141 #define HAVE_TANHL 1
4142 EOF
4143
4144         fi
4145         
4146     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4147 echo "configure:4148: checking for main in -lm" >&5
4148 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4150   echo $ac_n "(cached) $ac_c" 1>&6
4151 else
4152   ac_save_LIBS="$LIBS"
4153 LIBS="-lm  $LIBS"
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157
4158 int main() {
4159 main()
4160 ; return 0; }
4161 EOF
4162 if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4163   rm -rf conftest*
4164   eval "ac_cv_lib_$ac_lib_var=yes"
4165 else
4166   echo "configure: failed program was:" >&5
4167   cat conftest.$ac_ext >&5
4168   rm -rf conftest*
4169   eval "ac_cv_lib_$ac_lib_var=no"
4170 fi
4171 rm -f conftest*
4172 LIBS="$ac_save_LIBS"
4173
4174 fi
4175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4176   echo "$ac_t""yes" 1>&6
4177     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4178     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4179   cat >> confdefs.h <<EOF
4180 #define $ac_tr_lib 1
4181 EOF
4182
4183   LIBS="-lm $LIBS"
4184
4185 else
4186   echo "$ac_t""no" 1>&6
4187 fi
4188
4189   for ac_func in nan hypot hypotf atan2f expf copysignf
4190 do
4191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4192 echo "configure:4193: checking for $ac_func" >&5
4193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4194   echo $ac_n "(cached) $ac_c" 1>&6
4195 else
4196   cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4199 /* System header to define __stub macros and hopefully few prototypes,
4200     which can conflict with char $ac_func(); below.  */
4201 #include <assert.h>
4202 /* Override any gcc2 internal prototype to avoid an error.  */
4203 /* We use char because int might match the return type of a gcc2
4204     builtin and then its argument prototype would still apply.  */
4205 char $ac_func();
4206
4207 int main() {
4208
4209 /* The GNU C library defines this for functions which it implements
4210     to always fail with ENOSYS.  Some functions are actually named
4211     something starting with __ and the normal name is an alias.  */
4212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4213 choke me
4214 #else
4215 $ac_func();
4216 #endif
4217
4218 ; return 0; }
4219 EOF
4220 if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221   rm -rf conftest*
4222   eval "ac_cv_func_$ac_func=yes"
4223 else
4224   echo "configure: failed program was:" >&5
4225   cat conftest.$ac_ext >&5
4226   rm -rf conftest*
4227   eval "ac_cv_func_$ac_func=no"
4228 fi
4229 rm -f conftest*
4230 fi
4231
4232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4233   echo "$ac_t""yes" 1>&6
4234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4235   cat >> confdefs.h <<EOF
4236 #define $ac_tr_func 1
4237 EOF
4238  
4239 else
4240   echo "$ac_t""no" 1>&6
4241 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4242 fi
4243 done
4244
4245
4246
4247           USE_COMPLEX_LONG_DOUBLE=no
4248   if test x$ac_cv_func_atan2l = x"yes" &&
4249      test x$ac_cv_func_copysignl = x"yes"; then
4250     USE_COMPLEX_LONG_DOUBLE=yes
4251     for ac_func in hypotl signbitl
4252 do
4253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_func" >&5
4255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4256   echo $ac_n "(cached) $ac_c" 1>&6
4257 else
4258   cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* System header to define __stub macros and hopefully few prototypes,
4262     which can conflict with char $ac_func(); below.  */
4263 #include <assert.h>
4264 /* Override any gcc2 internal prototype to avoid an error.  */
4265 /* We use char because int might match the return type of a gcc2
4266     builtin and then its argument prototype would still apply.  */
4267 char $ac_func();
4268
4269 int main() {
4270
4271 /* The GNU C library defines this for functions which it implements
4272     to always fail with ENOSYS.  Some functions are actually named
4273     something starting with __ and the normal name is an alias.  */
4274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4275 choke me
4276 #else
4277 $ac_func();
4278 #endif
4279
4280 ; return 0; }
4281 EOF
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4283   rm -rf conftest*
4284   eval "ac_cv_func_$ac_func=yes"
4285 else
4286   echo "configure: failed program was:" >&5
4287   cat conftest.$ac_ext >&5
4288   rm -rf conftest*
4289   eval "ac_cv_func_$ac_func=no"
4290 fi
4291 rm -f conftest*
4292 fi
4293
4294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4295   echo "$ac_t""yes" 1>&6
4296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4297   cat >> confdefs.h <<EOF
4298 #define $ac_tr_func 1
4299 EOF
4300  
4301 else
4302   echo "$ac_t""no" 1>&6
4303 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4304 fi
4305 done
4306
4307
4308   fi
4309
4310   
4311
4312         
4313
4314       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4315 echo "configure:4316: checking for mbstate_t" >&5
4316   cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 #include <wchar.h>
4320 int main() {
4321 mbstate_t teststate;
4322 ; return 0; }
4323 EOF
4324 if { (eval echo configure:4325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325   rm -rf conftest*
4326   have_mbstate_t=yes
4327 else
4328   echo "configure: failed program was:" >&5
4329   cat conftest.$ac_ext >&5
4330   rm -rf conftest*
4331   have_mbstate_t=no
4332 fi
4333 rm -f conftest*
4334   echo "$ac_t""$have_mbstate_t" 1>&6
4335   if test x"$have_mbstate_t" = xyes; then
4336     cat >> confdefs.h <<\EOF
4337 #define HAVE_MBSTATE_T 1
4338 EOF
4339
4340   fi
4341
4342     for ac_hdr in wchar.h
4343 do
4344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_hdr" >&5
4347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4348   echo $ac_n "(cached) $ac_c" 1>&6
4349 else
4350   cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 #include <$ac_hdr>
4354 EOF
4355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4356 { (eval echo configure:4357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4358 if test -z "$ac_err"; then
4359   rm -rf conftest*
4360   eval "ac_cv_header_$ac_safe=yes"
4361 else
4362   echo "$ac_err" >&5
4363   echo "configure: failed program was:" >&5
4364   cat conftest.$ac_ext >&5
4365   rm -rf conftest*
4366   eval "ac_cv_header_$ac_safe=no"
4367 fi
4368 rm -f conftest*
4369 fi
4370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4371   echo "$ac_t""yes" 1>&6
4372     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4373   cat >> confdefs.h <<EOF
4374 #define $ac_tr_hdr 1
4375 EOF
4376  ac_has_wchar_h=yes
4377 else
4378   echo "$ac_t""no" 1>&6
4379 ac_has_wchar_h=no
4380 fi
4381 done
4382
4383   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4384 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4385 echo "configure:4386: checking for wctype.h" >&5
4386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4387   echo $ac_n "(cached) $ac_c" 1>&6
4388 else
4389   cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 #include <wctype.h>
4393 EOF
4394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4395 { (eval echo configure:4396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4397 if test -z "$ac_err"; then
4398   rm -rf conftest*
4399   eval "ac_cv_header_$ac_safe=yes"
4400 else
4401   echo "$ac_err" >&5
4402   echo "configure: failed program was:" >&5
4403   cat conftest.$ac_ext >&5
4404   rm -rf conftest*
4405   eval "ac_cv_header_$ac_safe=no"
4406 fi
4407 rm -f conftest*
4408 fi
4409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4410   echo "$ac_t""yes" 1>&6
4411   ac_has_wctype_h=yes
4412 else
4413   echo "$ac_t""no" 1>&6
4414 ac_has_wctype_h=no
4415 fi
4416
4417   
4418     if test x"$ac_has_wchar_h" = xyes &&
4419      test x"$ac_has_wctype_h" = xyes &&
4420      test x"$enable_c_mbchar" != xno; then
4421       
4422             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4423 echo "configure:4424: checking for WCHAR_MIN and WCHAR_MAX" >&5
4424     cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #include <wchar.h>
4428 int main() {
4429 int i = WCHAR_MIN; int j = WCHAR_MAX;
4430 ; return 0; }
4431 EOF
4432 if { (eval echo configure:4433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4433   rm -rf conftest*
4434   has_wchar_minmax=yes
4435 else
4436   echo "configure: failed program was:" >&5
4437   cat conftest.$ac_ext >&5
4438   rm -rf conftest*
4439   has_wchar_minmax=no
4440 fi
4441 rm -f conftest*
4442     echo "$ac_t""$has_wchar_minmax" 1>&6
4443     
4444             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4445 echo "configure:4446: checking for WEOF" >&5
4446     cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449
4450       #include <wchar.h>
4451       #include <stddef.h>
4452 int main() {
4453 wint_t i = WEOF;
4454 ; return 0; }
4455 EOF
4456 if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4457   rm -rf conftest*
4458   has_weof=yes
4459 else
4460   echo "configure: failed program was:" >&5
4461   cat conftest.$ac_ext >&5
4462   rm -rf conftest*
4463   has_weof=no
4464 fi
4465 rm -f conftest*
4466     echo "$ac_t""$has_weof" 1>&6
4467   
4468         ac_wfuncs=yes
4469     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4470 do
4471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_func" >&5
4473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4474   echo $ac_n "(cached) $ac_c" 1>&6
4475 else
4476   cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 /* System header to define __stub macros and hopefully few prototypes,
4480     which can conflict with char $ac_func(); below.  */
4481 #include <assert.h>
4482 /* Override any gcc2 internal prototype to avoid an error.  */
4483 /* We use char because int might match the return type of a gcc2
4484     builtin and then its argument prototype would still apply.  */
4485 char $ac_func();
4486
4487 int main() {
4488
4489 /* The GNU C library defines this for functions which it implements
4490     to always fail with ENOSYS.  Some functions are actually named
4491     something starting with __ and the normal name is an alias.  */
4492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4493 choke me
4494 #else
4495 $ac_func();
4496 #endif
4497
4498 ; return 0; }
4499 EOF
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501   rm -rf conftest*
4502   eval "ac_cv_func_$ac_func=yes"
4503 else
4504   echo "configure: failed program was:" >&5
4505   cat conftest.$ac_ext >&5
4506   rm -rf conftest*
4507   eval "ac_cv_func_$ac_func=no"
4508 fi
4509 rm -f conftest*
4510 fi
4511
4512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4513   echo "$ac_t""yes" 1>&6
4514     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4515   cat >> confdefs.h <<EOF
4516 #define $ac_tr_func 1
4517 EOF
4518  
4519 else
4520   echo "$ac_t""no" 1>&6
4521 \
4522     ac_wfuncs=no
4523 fi
4524 done
4525
4526   
4527         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4528     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4529     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4530     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4531     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4532     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4533 do
4534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4535 echo "configure:4536: checking for $ac_func" >&5
4536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4537   echo $ac_n "(cached) $ac_c" 1>&6
4538 else
4539   cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4542 /* System header to define __stub macros and hopefully few prototypes,
4543     which can conflict with char $ac_func(); below.  */
4544 #include <assert.h>
4545 /* Override any gcc2 internal prototype to avoid an error.  */
4546 /* We use char because int might match the return type of a gcc2
4547     builtin and then its argument prototype would still apply.  */
4548 char $ac_func();
4549
4550 int main() {
4551
4552 /* The GNU C library defines this for functions which it implements
4553     to always fail with ENOSYS.  Some functions are actually named
4554     something starting with __ and the normal name is an alias.  */
4555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4556 choke me
4557 #else
4558 $ac_func();
4559 #endif
4560
4561 ; return 0; }
4562 EOF
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564   rm -rf conftest*
4565   eval "ac_cv_func_$ac_func=yes"
4566 else
4567   echo "configure: failed program was:" >&5
4568   cat conftest.$ac_ext >&5
4569   rm -rf conftest*
4570   eval "ac_cv_func_$ac_func=no"
4571 fi
4572 rm -f conftest*
4573 fi
4574
4575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4576   echo "$ac_t""yes" 1>&6
4577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4578   cat >> confdefs.h <<EOF
4579 #define $ac_tr_func 1
4580 EOF
4581  
4582 else
4583   echo "$ac_t""no" 1>&6
4584 \
4585     ac_wfuncs=no
4586 fi
4587 done
4588
4589
4590     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4591 echo "configure:4592: checking for ISO C99 wchar_t support" >&5
4592     if test x"$has_weof" = xyes &&
4593        test x"$has_wchar_minmax" = xyes &&
4594        test x"$ac_wfuncs" = xyes; then
4595       ac_isoC99_wchar_t=yes
4596     else
4597       ac_isoC99_wchar_t=no
4598     fi
4599     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4600   
4601             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4602 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4603 echo "configure:4604: checking for iconv.h" >&5
4604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4605   echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4607   cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 #include <iconv.h>
4611 EOF
4612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4613 { (eval echo configure:4614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4615 if test -z "$ac_err"; then
4616   rm -rf conftest*
4617   eval "ac_cv_header_$ac_safe=yes"
4618 else
4619   echo "$ac_err" >&5
4620   echo "configure: failed program was:" >&5
4621   cat conftest.$ac_ext >&5
4622   rm -rf conftest*
4623   eval "ac_cv_header_$ac_safe=no"
4624 fi
4625 rm -f conftest*
4626 fi
4627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4628   echo "$ac_t""yes" 1>&6
4629   ac_has_iconv_h=yes
4630 else
4631   echo "$ac_t""no" 1>&6
4632 ac_has_iconv_h=no
4633 fi
4634
4635     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4636 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4637 echo "configure:4638: checking for langinfo.h" >&5
4638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4639   echo $ac_n "(cached) $ac_c" 1>&6
4640 else
4641   cat > conftest.$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4644 #include <langinfo.h>
4645 EOF
4646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4647 { (eval echo configure:4648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4649 if test -z "$ac_err"; then
4650   rm -rf conftest*
4651   eval "ac_cv_header_$ac_safe=yes"
4652 else
4653   echo "$ac_err" >&5
4654   echo "configure: failed program was:" >&5
4655   cat conftest.$ac_ext >&5
4656   rm -rf conftest*
4657   eval "ac_cv_header_$ac_safe=no"
4658 fi
4659 rm -f conftest*
4660 fi
4661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4662   echo "$ac_t""yes" 1>&6
4663   ac_has_langinfo_h=yes
4664 else
4665   echo "$ac_t""no" 1>&6
4666 ac_has_langinfo_h=no
4667 fi
4668
4669
4670         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4671 echo "configure:4672: checking for iconv in -liconv" >&5
4672 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4674   echo $ac_n "(cached) $ac_c" 1>&6
4675 else
4676   ac_save_LIBS="$LIBS"
4677 LIBS="-liconv  $LIBS"
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* Override any gcc2 internal prototype to avoid an error.  */
4682 /* We use char because int might match the return type of a gcc2
4683     builtin and then its argument prototype would still apply.  */
4684 char iconv();
4685
4686 int main() {
4687 iconv()
4688 ; return 0; }
4689 EOF
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4691   rm -rf conftest*
4692   eval "ac_cv_lib_$ac_lib_var=yes"
4693 else
4694   echo "configure: failed program was:" >&5
4695   cat conftest.$ac_ext >&5
4696   rm -rf conftest*
4697   eval "ac_cv_lib_$ac_lib_var=no"
4698 fi
4699 rm -f conftest*
4700 LIBS="$ac_save_LIBS"
4701
4702 fi
4703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4704   echo "$ac_t""yes" 1>&6
4705   libiconv="-liconv"
4706 else
4707   echo "$ac_t""no" 1>&6
4708 fi
4709
4710     ac_save_LIBS="$LIBS"
4711     LIBS="$LIBS $libiconv"
4712
4713     for ac_func in iconv_open iconv_close iconv nl_langinfo
4714 do
4715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_func" >&5
4717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4718   echo $ac_n "(cached) $ac_c" 1>&6
4719 else
4720   cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724     which can conflict with char $ac_func(); below.  */
4725 #include <assert.h>
4726 /* Override any gcc2 internal prototype to avoid an error.  */
4727 /* We use char because int might match the return type of a gcc2
4728     builtin and then its argument prototype would still apply.  */
4729 char $ac_func();
4730
4731 int main() {
4732
4733 /* The GNU C library defines this for functions which it implements
4734     to always fail with ENOSYS.  Some functions are actually named
4735     something starting with __ and the normal name is an alias.  */
4736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4737 choke me
4738 #else
4739 $ac_func();
4740 #endif
4741
4742 ; return 0; }
4743 EOF
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745   rm -rf conftest*
4746   eval "ac_cv_func_$ac_func=yes"
4747 else
4748   echo "configure: failed program was:" >&5
4749   cat conftest.$ac_ext >&5
4750   rm -rf conftest*
4751   eval "ac_cv_func_$ac_func=no"
4752 fi
4753 rm -f conftest*
4754 fi
4755
4756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4757   echo "$ac_t""yes" 1>&6
4758     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4759   cat >> confdefs.h <<EOF
4760 #define $ac_tr_func 1
4761 EOF
4762  \
4763     ac_XPG2funcs=yes
4764 else
4765   echo "$ac_t""no" 1>&6
4766 ac_XPG2funcs=no
4767 fi
4768 done
4769
4770   
4771     LIBS="$ac_save_LIBS"
4772
4773     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4774 echo "configure:4775: checking for XPG2 wchar_t support" >&5
4775     if test x"$ac_has_iconv_h" = xyes &&
4776        test x"$ac_has_langinfo_h" = xyes &&
4777        test x"$ac_XPG2funcs" = xyes; then
4778       ac_XPG2_wchar_t=yes
4779     else
4780       ac_XPG2_wchar_t=no
4781     fi
4782     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4783   
4784             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4785 echo "configure:4786: checking for enabled wchar_t specializations" >&5
4786     if test x"$ac_isoC99_wchar_t" = xyes &&
4787        test x"$ac_XPG2_wchar_t" = xyes; then
4788       cat >> confdefs.h <<\EOF
4789 #define _GLIBCPP_USE_WCHAR_T 1
4790 EOF
4791
4792       echo "$ac_t"""yes"" 1>&6
4793     else
4794       echo "$ac_t"""no"" 1>&6
4795     fi
4796   else
4797         echo "configure: warning: wchar_t support disabled." 1>&2
4798   fi
4799
4800         os_include_dir="config/os/gnu-linux"
4801         # GLIBCPP_CHECK_STDLIB_SUPPORT
4802         cat >> confdefs.h <<\EOF
4803 #define HAVE_STRTOF 1
4804 EOF
4805         
4806         cat >> confdefs.h <<\EOF
4807 #define HAVE_STRTOLD 1
4808 EOF
4809         
4810         # AC_FUNC_MMAP
4811         cat >> confdefs.h <<\EOF
4812 #define HAVE_MMAP 1
4813 EOF
4814
4815         ;;
4816     *)
4817         # We assume newlib.  This lets us hard-code the functions we know
4818         # we'll have.
4819         cat >> confdefs.h <<\EOF
4820 #define HAVE_FINITE 1
4821 EOF
4822
4823         cat >> confdefs.h <<\EOF
4824 #define HAVE_ISNAN 1
4825 EOF
4826
4827         cat >> confdefs.h <<\EOF
4828 #define HAVE_ISNANF 1
4829 EOF
4830
4831         cat >> confdefs.h <<\EOF
4832 #define HAVE_ISINF 1
4833 EOF
4834
4835         cat >> confdefs.h <<\EOF
4836 #define HAVE_ISINFF 1
4837 EOF
4838
4839
4840         os_include_dir="config/os/newlib"
4841
4842         # need to check for faster f versions of math functions, ie sinf?
4843         ;;
4844   esac
4845 else
4846
4847   # We are being configured natively. We can do more elaborate tests
4848   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4849   # working.
4850   xcompiling=0
4851   NATIVE=yes
4852   CANADIAN=no
4853   NULL_TARGET=no
4854
4855   # Check for available headers.
4856   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4857   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4858 do
4859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4861 echo "configure:4862: checking for $ac_hdr" >&5
4862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4863   echo $ac_n "(cached) $ac_c" 1>&6
4864 else
4865   cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 #include <$ac_hdr>
4869 EOF
4870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4871 { (eval echo configure:4872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4873 if test -z "$ac_err"; then
4874   rm -rf conftest*
4875   eval "ac_cv_header_$ac_safe=yes"
4876 else
4877   echo "$ac_err" >&5
4878   echo "configure: failed program was:" >&5
4879   cat conftest.$ac_ext >&5
4880   rm -rf conftest*
4881   eval "ac_cv_header_$ac_safe=no"
4882 fi
4883 rm -f conftest*
4884 fi
4885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4886   echo "$ac_t""yes" 1>&6
4887     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4888   cat >> confdefs.h <<EOF
4889 #define $ac_tr_hdr 1
4890 EOF
4891  
4892 else
4893   echo "$ac_t""no" 1>&6
4894 fi
4895 done
4896
4897
4898   
4899   # All these tests are for C++; save the language and the compiler flags.
4900   # The CXXFLAGS thing is suspicious, but based on similar bits previously
4901   # found in GLIBCPP_CONFIGURE.
4902   
4903   ac_ext=C
4904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4905 ac_cpp='$CXXCPP $CPPFLAGS'
4906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4908 cross_compiling=$ac_cv_prog_cxx_cross
4909
4910   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4911   ac_save_CXXFLAGS="$CXXFLAGS"
4912
4913   # Check for maintainer-mode bits.
4914   if test x"$USE_MAINTAINER_MODE" = xno; then
4915     WERROR=''
4916   else
4917     WERROR='-Werror'
4918   fi
4919
4920   # Check for -ffunction-sections -fdata-sections
4921   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4922 echo "configure:4923: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4923   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4924   cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927
4928 int main() {
4929 int foo;
4930   
4931 ; return 0; }
4932 EOF
4933 if { (eval echo configure:4934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4934   rm -rf conftest*
4935   ac_fdsections=yes
4936 else
4937   echo "configure: failed program was:" >&5
4938   cat conftest.$ac_ext >&5
4939   rm -rf conftest*
4940   ac_fdsections=no
4941 fi
4942 rm -f conftest*
4943   if test "$ac_test_CXXFLAGS" = set; then
4944     CXXFLAGS="$ac_save_CXXFLAGS"
4945   else
4946     # this is the suspicious part
4947     CXXFLAGS=''
4948   fi
4949   if test x"$ac_fdsections" = x"yes" &&
4950      test x"$enable_debug" = x"no"; then
4951     SECTION_FLAGS='-ffunction-sections -fdata-sections'
4952   fi
4953   echo "$ac_t""$ac_fdsections" 1>&6
4954
4955   ac_ext=c
4956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4960 cross_compiling=$ac_cv_prog_cc_cross
4961
4962   
4963   
4964
4965   
4966   # If we're not using GNU ld, then there's no point in even trying these
4967   # tests.  Check for that first.  We should have already tested for gld
4968   # by now (in libtool), but require it now just to be safe...
4969   SECTION_LDFLAGS=''
4970   OPT_LDFLAGS=''
4971   
4972
4973   # Set --gc-sections.
4974   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4975     # GNU ld it is!  Joy and bunny rabbits!
4976
4977     # All these tests are for C++; save the language and the compiler flags.
4978     # Need to do this so that g++ won't try to link in libstdc++
4979     ac_test_CFLAGS="${CFLAGS+set}"
4980     ac_save_CFLAGS="$CFLAGS"
4981     CFLAGS='-x c++  -Wl,--gc-sections'
4982
4983     # Check for -Wl,--gc-sections
4984     # XXX This test is broken at the moment, as symbols required for
4985     # linking are now in libsupc++ (not built yet.....). In addition, 
4986     # this test has cored on solaris in the past. In addition,
4987     # --gc-sections doesn't really work at the moment (keeps on discarding
4988     # used sections, first .eh_frame and now some of the glibc sections for
4989     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4990     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4991 echo "configure:4992: checking for ld that supports -Wl,--gc-sections" >&5
4992     if test "$cross_compiling" = yes; then
4993   ac_sectionLDflags=yes
4994 else
4995   cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998
4999      int main(void) 
5000      {
5001        try { throw 1; }
5002        catch (...) { };
5003        return 0;
5004      }
5005     
5006 EOF
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5008 then
5009   ac_sectionLDflags=yes
5010 else
5011   echo "configure: failed program was:" >&5
5012   cat conftest.$ac_ext >&5
5013   rm -fr conftest*
5014   ac_sectionLFflags=no
5015 fi
5016 rm -fr conftest*
5017 fi
5018
5019     if test "$ac_test_CFLAGS" = set; then
5020       CFLAGS="$ac_save_CFLAGS"
5021     else
5022       # this is the suspicious part
5023       CFLAGS=''
5024     fi
5025     if test "$ac_sectionLDflags" = "yes"; then
5026       SECTION_LDFLAGS='-Wl,--gc-sections'
5027     fi
5028     echo "$ac_t""$ac_sectionLDflags" 1>&6
5029   fi
5030
5031   # Set linker optimization flags.
5032   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5033      test x"$enable_debug" = x"no"; then
5034     OPT_LDFLAGS='-Wl,-O1'
5035   fi
5036
5037   
5038   
5039
5040   
5041       
5042   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5043 echo "configure:5044: checking for __builtin_abs declaration" >&5
5044   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5045     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5046   echo $ac_n "(cached) $ac_c" 1>&6
5047 else
5048   
5049       
5050       ac_ext=C
5051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5052 ac_cpp='$CXXCPP $CPPFLAGS'
5053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5055 cross_compiling=$ac_cv_prog_cxx_cross
5056
5057       cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 #include <math.h>
5061 int main() {
5062  __builtin_abs(0);
5063 ; return 0; }
5064 EOF
5065 if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5066   rm -rf conftest*
5067   glibcpp_cv_func___builtin_abs_use=yes
5068 else
5069   echo "configure: failed program was:" >&5
5070   cat conftest.$ac_ext >&5
5071   rm -rf conftest*
5072   glibcpp_cv_func___builtin_abs_use=no
5073 fi
5074 rm -f conftest*
5075       ac_ext=c
5076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5080 cross_compiling=$ac_cv_prog_cc_cross
5081
5082     
5083 fi
5084
5085   fi
5086   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5087   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5088     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5089 echo "configure:5090: checking for __builtin_abs linkage" >&5
5090     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5091       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5092   echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094   
5095         cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 #include <math.h>
5099 int main() {
5100  __builtin_abs(0);
5101 ; return 0; }
5102 EOF
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104   rm -rf conftest*
5105   glibcpp_cv_func___builtin_abs_link=yes
5106 else
5107   echo "configure: failed program was:" >&5
5108   cat conftest.$ac_ext >&5
5109   rm -rf conftest*
5110   glibcpp_cv_func___builtin_abs_link=no
5111 fi
5112 rm -f conftest*
5113       
5114 fi
5115
5116     fi
5117     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5118     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5119       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5120       cat >> confdefs.h <<EOF
5121 #define ${ac_tr_func} 1
5122 EOF
5123
5124     fi
5125   fi
5126
5127   
5128   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5129 echo "configure:5130: checking for __builtin_fabsf declaration" >&5
5130   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5131     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5132   echo $ac_n "(cached) $ac_c" 1>&6
5133 else
5134   
5135       
5136       ac_ext=C
5137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5138 ac_cpp='$CXXCPP $CPPFLAGS'
5139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5141 cross_compiling=$ac_cv_prog_cxx_cross
5142
5143       cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 #include <math.h>
5147 int main() {
5148  __builtin_fabsf(0);
5149 ; return 0; }
5150 EOF
5151 if { (eval echo configure:5152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5152   rm -rf conftest*
5153   glibcpp_cv_func___builtin_fabsf_use=yes
5154 else
5155   echo "configure: failed program was:" >&5
5156   cat conftest.$ac_ext >&5
5157   rm -rf conftest*
5158   glibcpp_cv_func___builtin_fabsf_use=no
5159 fi
5160 rm -f conftest*
5161       ac_ext=c
5162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5166 cross_compiling=$ac_cv_prog_cc_cross
5167
5168     
5169 fi
5170
5171   fi
5172   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5173   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5174     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5175 echo "configure:5176: checking for __builtin_fabsf linkage" >&5
5176     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5177       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5178   echo $ac_n "(cached) $ac_c" 1>&6
5179 else
5180   
5181         cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 #include <math.h>
5185 int main() {
5186  __builtin_fabsf(0);
5187 ; return 0; }
5188 EOF
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190   rm -rf conftest*
5191   glibcpp_cv_func___builtin_fabsf_link=yes
5192 else
5193   echo "configure: failed program was:" >&5
5194   cat conftest.$ac_ext >&5
5195   rm -rf conftest*
5196   glibcpp_cv_func___builtin_fabsf_link=no
5197 fi
5198 rm -f conftest*
5199       
5200 fi
5201
5202     fi
5203     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5204     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5205       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5206       cat >> confdefs.h <<EOF
5207 #define ${ac_tr_func} 1
5208 EOF
5209
5210     fi
5211   fi
5212
5213   
5214   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5215 echo "configure:5216: checking for __builtin_fabs declaration" >&5
5216   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5217     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5218   echo $ac_n "(cached) $ac_c" 1>&6
5219 else
5220   
5221       
5222       ac_ext=C
5223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5224 ac_cpp='$CXXCPP $CPPFLAGS'
5225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5227 cross_compiling=$ac_cv_prog_cxx_cross
5228
5229       cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 #include <math.h>
5233 int main() {
5234  __builtin_fabs(0);
5235 ; return 0; }
5236 EOF
5237 if { (eval echo configure:5238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238   rm -rf conftest*
5239   glibcpp_cv_func___builtin_fabs_use=yes
5240 else
5241   echo "configure: failed program was:" >&5
5242   cat conftest.$ac_ext >&5
5243   rm -rf conftest*
5244   glibcpp_cv_func___builtin_fabs_use=no
5245 fi
5246 rm -f conftest*
5247       ac_ext=c
5248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5252 cross_compiling=$ac_cv_prog_cc_cross
5253
5254     
5255 fi
5256
5257   fi
5258   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5259   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5260     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5261 echo "configure:5262: checking for __builtin_fabs linkage" >&5
5262     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5263       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5264   echo $ac_n "(cached) $ac_c" 1>&6
5265 else
5266   
5267         cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270 #include <math.h>
5271 int main() {
5272  __builtin_fabs(0);
5273 ; return 0; }
5274 EOF
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5276   rm -rf conftest*
5277   glibcpp_cv_func___builtin_fabs_link=yes
5278 else
5279   echo "configure: failed program was:" >&5
5280   cat conftest.$ac_ext >&5
5281   rm -rf conftest*
5282   glibcpp_cv_func___builtin_fabs_link=no
5283 fi
5284 rm -f conftest*
5285       
5286 fi
5287
5288     fi
5289     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5290     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5291       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5292       cat >> confdefs.h <<EOF
5293 #define ${ac_tr_func} 1
5294 EOF
5295
5296     fi
5297   fi
5298
5299   
5300   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5301 echo "configure:5302: checking for __builtin_fabsl declaration" >&5
5302   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5303     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5304   echo $ac_n "(cached) $ac_c" 1>&6
5305 else
5306   
5307       
5308       ac_ext=C
5309 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5310 ac_cpp='$CXXCPP $CPPFLAGS'
5311 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5312 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5313 cross_compiling=$ac_cv_prog_cxx_cross
5314
5315       cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 #include <math.h>
5319 int main() {
5320  __builtin_fabsl(0);
5321 ; return 0; }
5322 EOF
5323 if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5324   rm -rf conftest*
5325   glibcpp_cv_func___builtin_fabsl_use=yes
5326 else
5327   echo "configure: failed program was:" >&5
5328   cat conftest.$ac_ext >&5
5329   rm -rf conftest*
5330   glibcpp_cv_func___builtin_fabsl_use=no
5331 fi
5332 rm -f conftest*
5333       ac_ext=c
5334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5335 ac_cpp='$CPP $CPPFLAGS'
5336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5338 cross_compiling=$ac_cv_prog_cc_cross
5339
5340     
5341 fi
5342
5343   fi
5344   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5345   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5346     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5347 echo "configure:5348: checking for __builtin_fabsl linkage" >&5
5348     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5349       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5350   echo $ac_n "(cached) $ac_c" 1>&6
5351 else
5352   
5353         cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 #include <math.h>
5357 int main() {
5358  __builtin_fabsl(0);
5359 ; return 0; }
5360 EOF
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362   rm -rf conftest*
5363   glibcpp_cv_func___builtin_fabsl_link=yes
5364 else
5365   echo "configure: failed program was:" >&5
5366   cat conftest.$ac_ext >&5
5367   rm -rf conftest*
5368   glibcpp_cv_func___builtin_fabsl_link=no
5369 fi
5370 rm -f conftest*
5371       
5372 fi
5373
5374     fi
5375     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5376     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5377       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5378       cat >> confdefs.h <<EOF
5379 #define ${ac_tr_func} 1
5380 EOF
5381
5382     fi
5383   fi
5384
5385   
5386   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5387 echo "configure:5388: checking for __builtin_labs declaration" >&5
5388   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5389     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5390   echo $ac_n "(cached) $ac_c" 1>&6
5391 else
5392   
5393       
5394       ac_ext=C
5395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5396 ac_cpp='$CXXCPP $CPPFLAGS'
5397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5399 cross_compiling=$ac_cv_prog_cxx_cross
5400
5401       cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 #include <math.h>
5405 int main() {
5406  __builtin_labs(0);
5407 ; return 0; }
5408 EOF
5409 if { (eval echo configure:5410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5410   rm -rf conftest*
5411   glibcpp_cv_func___builtin_labs_use=yes
5412 else
5413   echo "configure: failed program was:" >&5
5414   cat conftest.$ac_ext >&5
5415   rm -rf conftest*
5416   glibcpp_cv_func___builtin_labs_use=no
5417 fi
5418 rm -f conftest*
5419       ac_ext=c
5420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5424 cross_compiling=$ac_cv_prog_cc_cross
5425
5426     
5427 fi
5428
5429   fi
5430   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5431   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5432     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5433 echo "configure:5434: checking for __builtin_labs linkage" >&5
5434     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5435       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5436   echo $ac_n "(cached) $ac_c" 1>&6
5437 else
5438   
5439         cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5442 #include <math.h>
5443 int main() {
5444  __builtin_labs(0);
5445 ; return 0; }
5446 EOF
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5448   rm -rf conftest*
5449   glibcpp_cv_func___builtin_labs_link=yes
5450 else
5451   echo "configure: failed program was:" >&5
5452   cat conftest.$ac_ext >&5
5453   rm -rf conftest*
5454   glibcpp_cv_func___builtin_labs_link=no
5455 fi
5456 rm -f conftest*
5457       
5458 fi
5459
5460     fi
5461     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5462     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5463       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5464       cat >> confdefs.h <<EOF
5465 #define ${ac_tr_func} 1
5466 EOF
5467
5468     fi
5469   fi
5470
5471
5472   
5473   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5474 echo "configure:5475: checking for __builtin_sqrtf declaration" >&5
5475   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5476     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5477   echo $ac_n "(cached) $ac_c" 1>&6
5478 else
5479   
5480       
5481       ac_ext=C
5482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5483 ac_cpp='$CXXCPP $CPPFLAGS'
5484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5486 cross_compiling=$ac_cv_prog_cxx_cross
5487
5488       cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <math.h>
5492 int main() {
5493  __builtin_sqrtf(0);
5494 ; return 0; }
5495 EOF
5496 if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497   rm -rf conftest*
5498   glibcpp_cv_func___builtin_sqrtf_use=yes
5499 else
5500   echo "configure: failed program was:" >&5
5501   cat conftest.$ac_ext >&5
5502   rm -rf conftest*
5503   glibcpp_cv_func___builtin_sqrtf_use=no
5504 fi
5505 rm -f conftest*
5506       ac_ext=c
5507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5508 ac_cpp='$CPP $CPPFLAGS'
5509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5511 cross_compiling=$ac_cv_prog_cc_cross
5512
5513     
5514 fi
5515
5516   fi
5517   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5518   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5519     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5520 echo "configure:5521: checking for __builtin_sqrtf linkage" >&5
5521     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5522       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5523   echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5525   
5526         cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 #include <math.h>
5530 int main() {
5531  __builtin_sqrtf(0);
5532 ; return 0; }
5533 EOF
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5535   rm -rf conftest*
5536   glibcpp_cv_func___builtin_sqrtf_link=yes
5537 else
5538   echo "configure: failed program was:" >&5
5539   cat conftest.$ac_ext >&5
5540   rm -rf conftest*
5541   glibcpp_cv_func___builtin_sqrtf_link=no
5542 fi
5543 rm -f conftest*
5544       
5545 fi
5546
5547     fi
5548     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5549     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5550       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5551       cat >> confdefs.h <<EOF
5552 #define ${ac_tr_func} 1
5553 EOF
5554
5555     fi
5556   fi
5557
5558   
5559   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5560 echo "configure:5561: checking for __builtin_fsqrt declaration" >&5
5561   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5562     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5563   echo $ac_n "(cached) $ac_c" 1>&6
5564 else
5565   
5566       
5567       ac_ext=C
5568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5569 ac_cpp='$CXXCPP $CPPFLAGS'
5570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5572 cross_compiling=$ac_cv_prog_cxx_cross
5573
5574       cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 #include <math.h>
5578 int main() {
5579  __builtin_fsqrt(0);
5580 ; return 0; }
5581 EOF
5582 if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5583   rm -rf conftest*
5584   glibcpp_cv_func___builtin_fsqrt_use=yes
5585 else
5586   echo "configure: failed program was:" >&5
5587   cat conftest.$ac_ext >&5
5588   rm -rf conftest*
5589   glibcpp_cv_func___builtin_fsqrt_use=no
5590 fi
5591 rm -f conftest*
5592       ac_ext=c
5593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5594 ac_cpp='$CPP $CPPFLAGS'
5595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5597 cross_compiling=$ac_cv_prog_cc_cross
5598
5599     
5600 fi
5601
5602   fi
5603   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5604   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5605     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5606 echo "configure:5607: checking for __builtin_fsqrt linkage" >&5
5607     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5608       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5609   echo $ac_n "(cached) $ac_c" 1>&6
5610 else
5611   
5612         cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <math.h>
5616 int main() {
5617  __builtin_fsqrt(0);
5618 ; return 0; }
5619 EOF
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621   rm -rf conftest*
5622   glibcpp_cv_func___builtin_fsqrt_link=yes
5623 else
5624   echo "configure: failed program was:" >&5
5625   cat conftest.$ac_ext >&5
5626   rm -rf conftest*
5627   glibcpp_cv_func___builtin_fsqrt_link=no
5628 fi
5629 rm -f conftest*
5630       
5631 fi
5632
5633     fi
5634     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5635     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5636       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637       cat >> confdefs.h <<EOF
5638 #define ${ac_tr_func} 1
5639 EOF
5640
5641     fi
5642   fi
5643
5644   
5645   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5646 echo "configure:5647: checking for __builtin_sqrtl declaration" >&5
5647   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5648     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5649   echo $ac_n "(cached) $ac_c" 1>&6
5650 else
5651   
5652       
5653       ac_ext=C
5654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5655 ac_cpp='$CXXCPP $CPPFLAGS'
5656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5658 cross_compiling=$ac_cv_prog_cxx_cross
5659
5660       cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 #include <math.h>
5664 int main() {
5665  __builtin_sqrtl(0);
5666 ; return 0; }
5667 EOF
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5669   rm -rf conftest*
5670   glibcpp_cv_func___builtin_sqrtl_use=yes
5671 else
5672   echo "configure: failed program was:" >&5
5673   cat conftest.$ac_ext >&5
5674   rm -rf conftest*
5675   glibcpp_cv_func___builtin_sqrtl_use=no
5676 fi
5677 rm -f conftest*
5678       ac_ext=c
5679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5682 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5683 cross_compiling=$ac_cv_prog_cc_cross
5684
5685     
5686 fi
5687
5688   fi
5689   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5690   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5691     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5692 echo "configure:5693: checking for __builtin_sqrtl linkage" >&5
5693     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5694       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5695   echo $ac_n "(cached) $ac_c" 1>&6
5696 else
5697   
5698         cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701 #include <math.h>
5702 int main() {
5703  __builtin_sqrtl(0);
5704 ; return 0; }
5705 EOF
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707   rm -rf conftest*
5708   glibcpp_cv_func___builtin_sqrtl_link=yes
5709 else
5710   echo "configure: failed program was:" >&5
5711   cat conftest.$ac_ext >&5
5712   rm -rf conftest*
5713   glibcpp_cv_func___builtin_sqrtl_link=no
5714 fi
5715 rm -f conftest*
5716       
5717 fi
5718
5719     fi
5720     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5721     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5722       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5723       cat >> confdefs.h <<EOF
5724 #define ${ac_tr_func} 1
5725 EOF
5726
5727     fi
5728   fi
5729
5730
5731   
5732   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5733 echo "configure:5734: checking for __builtin_sinf declaration" >&5
5734   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5735     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5736   echo $ac_n "(cached) $ac_c" 1>&6
5737 else
5738   
5739       
5740       ac_ext=C
5741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5742 ac_cpp='$CXXCPP $CPPFLAGS'
5743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5745 cross_compiling=$ac_cv_prog_cxx_cross
5746
5747       cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 #include <math.h>
5751 int main() {
5752  __builtin_sinf(0);
5753 ; return 0; }
5754 EOF
5755 if { (eval echo configure:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5756   rm -rf conftest*
5757   glibcpp_cv_func___builtin_sinf_use=yes
5758 else
5759   echo "configure: failed program was:" >&5
5760   cat conftest.$ac_ext >&5
5761   rm -rf conftest*
5762   glibcpp_cv_func___builtin_sinf_use=no
5763 fi
5764 rm -f conftest*
5765       ac_ext=c
5766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5767 ac_cpp='$CPP $CPPFLAGS'
5768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5770 cross_compiling=$ac_cv_prog_cc_cross
5771
5772     
5773 fi
5774
5775   fi
5776   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5777   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5778     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5779 echo "configure:5780: checking for __builtin_sinf linkage" >&5
5780     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5781       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5782   echo $ac_n "(cached) $ac_c" 1>&6
5783 else
5784   
5785         cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 #include <math.h>
5789 int main() {
5790  __builtin_sinf(0);
5791 ; return 0; }
5792 EOF
5793 if { (eval echo configure:5794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5794   rm -rf conftest*
5795   glibcpp_cv_func___builtin_sinf_link=yes
5796 else
5797   echo "configure: failed program was:" >&5
5798   cat conftest.$ac_ext >&5
5799   rm -rf conftest*
5800   glibcpp_cv_func___builtin_sinf_link=no
5801 fi
5802 rm -f conftest*
5803       
5804 fi
5805
5806     fi
5807     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5808     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5809       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5810       cat >> confdefs.h <<EOF
5811 #define ${ac_tr_func} 1
5812 EOF
5813
5814     fi
5815   fi
5816
5817   
5818   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5819 echo "configure:5820: checking for __builtin_sin declaration" >&5
5820   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5821     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5822   echo $ac_n "(cached) $ac_c" 1>&6
5823 else
5824   
5825       
5826       ac_ext=C
5827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5828 ac_cpp='$CXXCPP $CPPFLAGS'
5829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5831 cross_compiling=$ac_cv_prog_cxx_cross
5832
5833       cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 #include <math.h>
5837 int main() {
5838  __builtin_sin(0);
5839 ; return 0; }
5840 EOF
5841 if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5842   rm -rf conftest*
5843   glibcpp_cv_func___builtin_sin_use=yes
5844 else
5845   echo "configure: failed program was:" >&5
5846   cat conftest.$ac_ext >&5
5847   rm -rf conftest*
5848   glibcpp_cv_func___builtin_sin_use=no
5849 fi
5850 rm -f conftest*
5851       ac_ext=c
5852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5856 cross_compiling=$ac_cv_prog_cc_cross
5857
5858     
5859 fi
5860
5861   fi
5862   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5863   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5864     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5865 echo "configure:5866: checking for __builtin_sin linkage" >&5
5866     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5867       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5868   echo $ac_n "(cached) $ac_c" 1>&6
5869 else
5870   
5871         cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 #include <math.h>
5875 int main() {
5876  __builtin_sin(0);
5877 ; return 0; }
5878 EOF
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880   rm -rf conftest*
5881   glibcpp_cv_func___builtin_sin_link=yes
5882 else
5883   echo "configure: failed program was:" >&5
5884   cat conftest.$ac_ext >&5
5885   rm -rf conftest*
5886   glibcpp_cv_func___builtin_sin_link=no
5887 fi
5888 rm -f conftest*
5889       
5890 fi
5891
5892     fi
5893     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5894     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5895       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5896       cat >> confdefs.h <<EOF
5897 #define ${ac_tr_func} 1
5898 EOF
5899
5900     fi
5901   fi
5902
5903   
5904   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5905 echo "configure:5906: checking for __builtin_sinl declaration" >&5
5906   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5907     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5908   echo $ac_n "(cached) $ac_c" 1>&6
5909 else
5910   
5911       
5912       ac_ext=C
5913 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5914 ac_cpp='$CXXCPP $CPPFLAGS'
5915 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5916 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5917 cross_compiling=$ac_cv_prog_cxx_cross
5918
5919       cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 #include <math.h>
5923 int main() {
5924  __builtin_sinl(0);
5925 ; return 0; }
5926 EOF
5927 if { (eval echo configure:5928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5928   rm -rf conftest*
5929   glibcpp_cv_func___builtin_sinl_use=yes
5930 else
5931   echo "configure: failed program was:" >&5
5932   cat conftest.$ac_ext >&5
5933   rm -rf conftest*
5934   glibcpp_cv_func___builtin_sinl_use=no
5935 fi
5936 rm -f conftest*
5937       ac_ext=c
5938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5939 ac_cpp='$CPP $CPPFLAGS'
5940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5942 cross_compiling=$ac_cv_prog_cc_cross
5943
5944     
5945 fi
5946
5947   fi
5948   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5949   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5950     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5951 echo "configure:5952: checking for __builtin_sinl linkage" >&5
5952     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5953       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5954   echo $ac_n "(cached) $ac_c" 1>&6
5955 else
5956   
5957         cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 #include <math.h>
5961 int main() {
5962  __builtin_sinl(0);
5963 ; return 0; }
5964 EOF
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5966   rm -rf conftest*
5967   glibcpp_cv_func___builtin_sinl_link=yes
5968 else
5969   echo "configure: failed program was:" >&5
5970   cat conftest.$ac_ext >&5
5971   rm -rf conftest*
5972   glibcpp_cv_func___builtin_sinl_link=no
5973 fi
5974 rm -f conftest*
5975       
5976 fi
5977
5978     fi
5979     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5980     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5981       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5982       cat >> confdefs.h <<EOF
5983 #define ${ac_tr_func} 1
5984 EOF
5985
5986     fi
5987   fi
5988
5989
5990   
5991   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5992 echo "configure:5993: checking for __builtin_cosf declaration" >&5
5993   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5994     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5995   echo $ac_n "(cached) $ac_c" 1>&6
5996 else
5997   
5998       
5999       ac_ext=C
6000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6001 ac_cpp='$CXXCPP $CPPFLAGS'
6002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6004 cross_compiling=$ac_cv_prog_cxx_cross
6005
6006       cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 #include <math.h>
6010 int main() {
6011  __builtin_cosf(0);
6012 ; return 0; }
6013 EOF
6014 if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6015   rm -rf conftest*
6016   glibcpp_cv_func___builtin_cosf_use=yes
6017 else
6018   echo "configure: failed program was:" >&5
6019   cat conftest.$ac_ext >&5
6020   rm -rf conftest*
6021   glibcpp_cv_func___builtin_cosf_use=no
6022 fi
6023 rm -f conftest*
6024       ac_ext=c
6025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6029 cross_compiling=$ac_cv_prog_cc_cross
6030
6031     
6032 fi
6033
6034   fi
6035   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6036   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6037     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6038 echo "configure:6039: checking for __builtin_cosf linkage" >&5
6039     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6040       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6041   echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6043   
6044         cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <math.h>
6048 int main() {
6049  __builtin_cosf(0);
6050 ; return 0; }
6051 EOF
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6053   rm -rf conftest*
6054   glibcpp_cv_func___builtin_cosf_link=yes
6055 else
6056   echo "configure: failed program was:" >&5
6057   cat conftest.$ac_ext >&5
6058   rm -rf conftest*
6059   glibcpp_cv_func___builtin_cosf_link=no
6060 fi
6061 rm -f conftest*
6062       
6063 fi
6064
6065     fi
6066     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6067     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6068       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069       cat >> confdefs.h <<EOF
6070 #define ${ac_tr_func} 1
6071 EOF
6072
6073     fi
6074   fi
6075
6076   
6077   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6078 echo "configure:6079: checking for __builtin_cos declaration" >&5
6079   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6080     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6081   echo $ac_n "(cached) $ac_c" 1>&6
6082 else
6083   
6084       
6085       ac_ext=C
6086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6087 ac_cpp='$CXXCPP $CPPFLAGS'
6088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6090 cross_compiling=$ac_cv_prog_cxx_cross
6091
6092       cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 #include <math.h>
6096 int main() {
6097  __builtin_cos(0);
6098 ; return 0; }
6099 EOF
6100 if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6101   rm -rf conftest*
6102   glibcpp_cv_func___builtin_cos_use=yes
6103 else
6104   echo "configure: failed program was:" >&5
6105   cat conftest.$ac_ext >&5
6106   rm -rf conftest*
6107   glibcpp_cv_func___builtin_cos_use=no
6108 fi
6109 rm -f conftest*
6110       ac_ext=c
6111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6112 ac_cpp='$CPP $CPPFLAGS'
6113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6115 cross_compiling=$ac_cv_prog_cc_cross
6116
6117     
6118 fi
6119
6120   fi
6121   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6122   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6123     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6124 echo "configure:6125: checking for __builtin_cos linkage" >&5
6125     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6126       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6127   echo $ac_n "(cached) $ac_c" 1>&6
6128 else
6129   
6130         cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 #include <math.h>
6134 int main() {
6135  __builtin_cos(0);
6136 ; return 0; }
6137 EOF
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139   rm -rf conftest*
6140   glibcpp_cv_func___builtin_cos_link=yes
6141 else
6142   echo "configure: failed program was:" >&5
6143   cat conftest.$ac_ext >&5
6144   rm -rf conftest*
6145   glibcpp_cv_func___builtin_cos_link=no
6146 fi
6147 rm -f conftest*
6148       
6149 fi
6150
6151     fi
6152     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6153     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6154       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6155       cat >> confdefs.h <<EOF
6156 #define ${ac_tr_func} 1
6157 EOF
6158
6159     fi
6160   fi
6161
6162   
6163   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6164 echo "configure:6165: checking for __builtin_cosl declaration" >&5
6165   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6166     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6167   echo $ac_n "(cached) $ac_c" 1>&6
6168 else
6169   
6170       
6171       ac_ext=C
6172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6173 ac_cpp='$CXXCPP $CPPFLAGS'
6174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6176 cross_compiling=$ac_cv_prog_cxx_cross
6177
6178       cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 #include <math.h>
6182 int main() {
6183  __builtin_cosl(0);
6184 ; return 0; }
6185 EOF
6186 if { (eval echo configure:6187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6187   rm -rf conftest*
6188   glibcpp_cv_func___builtin_cosl_use=yes
6189 else
6190   echo "configure: failed program was:" >&5
6191   cat conftest.$ac_ext >&5
6192   rm -rf conftest*
6193   glibcpp_cv_func___builtin_cosl_use=no
6194 fi
6195 rm -f conftest*
6196       ac_ext=c
6197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6198 ac_cpp='$CPP $CPPFLAGS'
6199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6201 cross_compiling=$ac_cv_prog_cc_cross
6202
6203     
6204 fi
6205
6206   fi
6207   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6208   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6209     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6210 echo "configure:6211: checking for __builtin_cosl linkage" >&5
6211     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6212       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6213   echo $ac_n "(cached) $ac_c" 1>&6
6214 else
6215   
6216         cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 #include <math.h>
6220 int main() {
6221  __builtin_cosl(0);
6222 ; return 0; }
6223 EOF
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6225   rm -rf conftest*
6226   glibcpp_cv_func___builtin_cosl_link=yes
6227 else
6228   echo "configure: failed program was:" >&5
6229   cat conftest.$ac_ext >&5
6230   rm -rf conftest*
6231   glibcpp_cv_func___builtin_cosl_link=no
6232 fi
6233 rm -f conftest*
6234       
6235 fi
6236
6237     fi
6238     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6239     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6240       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6241       cat >> confdefs.h <<EOF
6242 #define ${ac_tr_func} 1
6243 EOF
6244
6245     fi
6246   fi
6247
6248
6249               dummyvar=no
6250   if test x$dummyvar = x"yes"; then
6251     cat >> confdefs.h <<\EOF
6252 #define HAVE___BUILTIN_ABS 1
6253 EOF
6254
6255     cat >> confdefs.h <<\EOF
6256 #define HAVE___BUILTIN_LABS 1
6257 EOF
6258
6259     cat >> confdefs.h <<\EOF
6260 #define HAVE___BUILTIN_COS 1
6261 EOF
6262
6263     cat >> confdefs.h <<\EOF
6264 #define HAVE___BUILTIN_COSF 1
6265 EOF
6266
6267     cat >> confdefs.h <<\EOF
6268 #define HAVE___BUILTIN_COSL 1
6269 EOF
6270
6271     cat >> confdefs.h <<\EOF
6272 #define HAVE___BUILTIN_FABS 1
6273 EOF
6274
6275     cat >> confdefs.h <<\EOF
6276 #define HAVE___BUILTIN_FABSF 1
6277 EOF
6278
6279     cat >> confdefs.h <<\EOF
6280 #define HAVE___BUILTIN_FABSL 1
6281 EOF
6282
6283     cat >> confdefs.h <<\EOF
6284 #define HAVE___BUILTIN_SIN 1
6285 EOF
6286
6287     cat >> confdefs.h <<\EOF
6288 #define HAVE___BUILTIN_SINF 1
6289 EOF
6290
6291     cat >> confdefs.h <<\EOF
6292 #define HAVE___BUILTIN_SINL 1
6293 EOF
6294
6295     cat >> confdefs.h <<\EOF
6296 #define HAVE___BUILTIN_FSQRT 1
6297 EOF
6298
6299     cat >> confdefs.h <<\EOF
6300 #define HAVE___BUILTIN_SQRTF 1
6301 EOF
6302
6303     cat >> confdefs.h <<\EOF
6304 #define HAVE___BUILTIN_SQRTL 1
6305 EOF
6306
6307   fi
6308
6309   
6310   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6311   ac_save_CXXFLAGS="$CXXFLAGS"
6312   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6313
6314     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6315 echo "configure:6316: checking for sin in -lm" >&5
6316 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6318   echo $ac_n "(cached) $ac_c" 1>&6
6319 else
6320   ac_save_LIBS="$LIBS"
6321 LIBS="-lm  $LIBS"
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 /* Override any gcc2 internal prototype to avoid an error.  */
6326 /* We use char because int might match the return type of a gcc2
6327     builtin and then its argument prototype would still apply.  */
6328 char sin();
6329
6330 int main() {
6331 sin()
6332 ; return 0; }
6333 EOF
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335   rm -rf conftest*
6336   eval "ac_cv_lib_$ac_lib_var=yes"
6337 else
6338   echo "configure: failed program was:" >&5
6339   cat conftest.$ac_ext >&5
6340   rm -rf conftest*
6341   eval "ac_cv_lib_$ac_lib_var=no"
6342 fi
6343 rm -f conftest*
6344 LIBS="$ac_save_LIBS"
6345
6346 fi
6347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6348   echo "$ac_t""yes" 1>&6
6349   libm="-lm"
6350 else
6351   echo "$ac_t""no" 1>&6
6352 fi
6353
6354   ac_save_LIBS="$LIBS"
6355   LIBS="$LIBS $libm"
6356
6357     
6358   
6359   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6360 echo "configure:6361: checking for isinf declaration" >&5
6361   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6362     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6363   echo $ac_n "(cached) $ac_c" 1>&6
6364 else
6365   
6366       
6367       ac_ext=C
6368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6369 ac_cpp='$CXXCPP $CPPFLAGS'
6370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6372 cross_compiling=$ac_cv_prog_cxx_cross
6373
6374       cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 #include <math.h>
6378                       #ifdef HAVE_IEEEFP_H
6379                       #include <ieeefp.h>
6380                       #endif
6381                      
6382 int main() {
6383  isinf(0);
6384 ; return 0; }
6385 EOF
6386 if { (eval echo configure:6387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6387   rm -rf conftest*
6388   glibcpp_cv_func_isinf_use=yes
6389 else
6390   echo "configure: failed program was:" >&5
6391   cat conftest.$ac_ext >&5
6392   rm -rf conftest*
6393   glibcpp_cv_func_isinf_use=no
6394 fi
6395 rm -f conftest*
6396       ac_ext=c
6397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6401 cross_compiling=$ac_cv_prog_cc_cross
6402
6403     
6404 fi
6405
6406   fi
6407   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6408
6409   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6410     for ac_func in isinf
6411 do
6412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6413 echo "configure:6414: checking for $ac_func" >&5
6414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6415   echo $ac_n "(cached) $ac_c" 1>&6
6416 else
6417   cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 /* System header to define __stub macros and hopefully few prototypes,
6421     which can conflict with char $ac_func(); below.  */
6422 #include <assert.h>
6423 /* Override any gcc2 internal prototype to avoid an error.  */
6424 /* We use char because int might match the return type of a gcc2
6425     builtin and then its argument prototype would still apply.  */
6426 char $ac_func();
6427
6428 int main() {
6429
6430 /* The GNU C library defines this for functions which it implements
6431     to always fail with ENOSYS.  Some functions are actually named
6432     something starting with __ and the normal name is an alias.  */
6433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6434 choke me
6435 #else
6436 $ac_func();
6437 #endif
6438
6439 ; return 0; }
6440 EOF
6441 if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6442   rm -rf conftest*
6443   eval "ac_cv_func_$ac_func=yes"
6444 else
6445   echo "configure: failed program was:" >&5
6446   cat conftest.$ac_ext >&5
6447   rm -rf conftest*
6448   eval "ac_cv_func_$ac_func=no"
6449 fi
6450 rm -f conftest*
6451 fi
6452
6453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6454   echo "$ac_t""yes" 1>&6
6455     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6456   cat >> confdefs.h <<EOF
6457 #define $ac_tr_func 1
6458 EOF
6459  
6460 else
6461   echo "$ac_t""no" 1>&6
6462 fi
6463 done
6464     
6465   else
6466     
6467   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6468 echo "configure:6469: checking for _isinf declaration" >&5
6469   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6470     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6471   echo $ac_n "(cached) $ac_c" 1>&6
6472 else
6473   
6474       
6475       ac_ext=C
6476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6477 ac_cpp='$CXXCPP $CPPFLAGS'
6478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6480 cross_compiling=$ac_cv_prog_cxx_cross
6481
6482       cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 #include <math.h>
6486                       #ifdef HAVE_IEEEFP_H
6487                       #include <ieeefp.h>
6488                       #endif
6489                      
6490 int main() {
6491  _isinf(0);
6492 ; return 0; }
6493 EOF
6494 if { (eval echo configure:6495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6495   rm -rf conftest*
6496   glibcpp_cv_func__isinf_use=yes
6497 else
6498   echo "configure: failed program was:" >&5
6499   cat conftest.$ac_ext >&5
6500   rm -rf conftest*
6501   glibcpp_cv_func__isinf_use=no
6502 fi
6503 rm -f conftest*
6504       ac_ext=c
6505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6509 cross_compiling=$ac_cv_prog_cc_cross
6510
6511     
6512 fi
6513
6514   fi
6515   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6516
6517     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6518       for ac_func in _isinf
6519 do
6520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_func" >&5
6522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6523   echo $ac_n "(cached) $ac_c" 1>&6
6524 else
6525   cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529     which can conflict with char $ac_func(); below.  */
6530 #include <assert.h>
6531 /* Override any gcc2 internal prototype to avoid an error.  */
6532 /* We use char because int might match the return type of a gcc2
6533     builtin and then its argument prototype would still apply.  */
6534 char $ac_func();
6535
6536 int main() {
6537
6538 /* The GNU C library defines this for functions which it implements
6539     to always fail with ENOSYS.  Some functions are actually named
6540     something starting with __ and the normal name is an alias.  */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 choke me
6543 #else
6544 $ac_func();
6545 #endif
6546
6547 ; return 0; }
6548 EOF
6549 if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550   rm -rf conftest*
6551   eval "ac_cv_func_$ac_func=yes"
6552 else
6553   echo "configure: failed program was:" >&5
6554   cat conftest.$ac_ext >&5
6555   rm -rf conftest*
6556   eval "ac_cv_func_$ac_func=no"
6557 fi
6558 rm -f conftest*
6559 fi
6560
6561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6562   echo "$ac_t""yes" 1>&6
6563     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6564   cat >> confdefs.h <<EOF
6565 #define $ac_tr_func 1
6566 EOF
6567  
6568 else
6569   echo "$ac_t""no" 1>&6
6570 fi
6571 done
6572     
6573     fi
6574   fi
6575
6576   
6577   
6578   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6579 echo "configure:6580: checking for isnan declaration" >&5
6580   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6581     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6582   echo $ac_n "(cached) $ac_c" 1>&6
6583 else
6584   
6585       
6586       ac_ext=C
6587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6588 ac_cpp='$CXXCPP $CPPFLAGS'
6589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6591 cross_compiling=$ac_cv_prog_cxx_cross
6592
6593       cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 #include <math.h>
6597                       #ifdef HAVE_IEEEFP_H
6598                       #include <ieeefp.h>
6599                       #endif
6600                      
6601 int main() {
6602  isnan(0);
6603 ; return 0; }
6604 EOF
6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6606   rm -rf conftest*
6607   glibcpp_cv_func_isnan_use=yes
6608 else
6609   echo "configure: failed program was:" >&5
6610   cat conftest.$ac_ext >&5
6611   rm -rf conftest*
6612   glibcpp_cv_func_isnan_use=no
6613 fi
6614 rm -f conftest*
6615       ac_ext=c
6616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6617 ac_cpp='$CPP $CPPFLAGS'
6618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6620 cross_compiling=$ac_cv_prog_cc_cross
6621
6622     
6623 fi
6624
6625   fi
6626   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6627
6628   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6629     for ac_func in isnan
6630 do
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634   echo $ac_n "(cached) $ac_c" 1>&6
6635 else
6636   cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640     which can conflict with char $ac_func(); below.  */
6641 #include <assert.h>
6642 /* Override any gcc2 internal prototype to avoid an error.  */
6643 /* We use char because int might match the return type of a gcc2
6644     builtin and then its argument prototype would still apply.  */
6645 char $ac_func();
6646
6647 int main() {
6648
6649 /* The GNU C library defines this for functions which it implements
6650     to always fail with ENOSYS.  Some functions are actually named
6651     something starting with __ and the normal name is an alias.  */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653 choke me
6654 #else
6655 $ac_func();
6656 #endif
6657
6658 ; return 0; }
6659 EOF
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661   rm -rf conftest*
6662   eval "ac_cv_func_$ac_func=yes"
6663 else
6664   echo "configure: failed program was:" >&5
6665   cat conftest.$ac_ext >&5
6666   rm -rf conftest*
6667   eval "ac_cv_func_$ac_func=no"
6668 fi
6669 rm -f conftest*
6670 fi
6671
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673   echo "$ac_t""yes" 1>&6
6674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675   cat >> confdefs.h <<EOF
6676 #define $ac_tr_func 1
6677 EOF
6678  
6679 else
6680   echo "$ac_t""no" 1>&6
6681 fi
6682 done
6683     
6684   else
6685     
6686   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6687 echo "configure:6688: checking for _isnan declaration" >&5
6688   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6689     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6690   echo $ac_n "(cached) $ac_c" 1>&6
6691 else
6692   
6693       
6694       ac_ext=C
6695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6696 ac_cpp='$CXXCPP $CPPFLAGS'
6697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6699 cross_compiling=$ac_cv_prog_cxx_cross
6700
6701       cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 #include <math.h>
6705                       #ifdef HAVE_IEEEFP_H
6706                       #include <ieeefp.h>
6707                       #endif
6708                      
6709 int main() {
6710  _isnan(0);
6711 ; return 0; }
6712 EOF
6713 if { (eval echo configure:6714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6714   rm -rf conftest*
6715   glibcpp_cv_func__isnan_use=yes
6716 else
6717   echo "configure: failed program was:" >&5
6718   cat conftest.$ac_ext >&5
6719   rm -rf conftest*
6720   glibcpp_cv_func__isnan_use=no
6721 fi
6722 rm -f conftest*
6723       ac_ext=c
6724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6725 ac_cpp='$CPP $CPPFLAGS'
6726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6728 cross_compiling=$ac_cv_prog_cc_cross
6729
6730     
6731 fi
6732
6733   fi
6734   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6735
6736     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6737       for ac_func in _isnan
6738 do
6739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_func" >&5
6741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6742   echo $ac_n "(cached) $ac_c" 1>&6
6743 else
6744   cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748     which can conflict with char $ac_func(); below.  */
6749 #include <assert.h>
6750 /* Override any gcc2 internal prototype to avoid an error.  */
6751 /* We use char because int might match the return type of a gcc2
6752     builtin and then its argument prototype would still apply.  */
6753 char $ac_func();
6754
6755 int main() {
6756
6757 /* The GNU C library defines this for functions which it implements
6758     to always fail with ENOSYS.  Some functions are actually named
6759     something starting with __ and the normal name is an alias.  */
6760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6761 choke me
6762 #else
6763 $ac_func();
6764 #endif
6765
6766 ; return 0; }
6767 EOF
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769   rm -rf conftest*
6770   eval "ac_cv_func_$ac_func=yes"
6771 else
6772   echo "configure: failed program was:" >&5
6773   cat conftest.$ac_ext >&5
6774   rm -rf conftest*
6775   eval "ac_cv_func_$ac_func=no"
6776 fi
6777 rm -f conftest*
6778 fi
6779
6780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6781   echo "$ac_t""yes" 1>&6
6782     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6783   cat >> confdefs.h <<EOF
6784 #define $ac_tr_func 1
6785 EOF
6786  
6787 else
6788   echo "$ac_t""no" 1>&6
6789 fi
6790 done
6791     
6792     fi
6793   fi
6794
6795   
6796   
6797   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6798 echo "configure:6799: checking for finite declaration" >&5
6799   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6800     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6801   echo $ac_n "(cached) $ac_c" 1>&6
6802 else
6803   
6804       
6805       ac_ext=C
6806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6807 ac_cpp='$CXXCPP $CPPFLAGS'
6808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6810 cross_compiling=$ac_cv_prog_cxx_cross
6811
6812       cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 #include <math.h>
6816                       #ifdef HAVE_IEEEFP_H
6817                       #include <ieeefp.h>
6818                       #endif
6819                      
6820 int main() {
6821  finite(0);
6822 ; return 0; }
6823 EOF
6824 if { (eval echo configure:6825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6825   rm -rf conftest*
6826   glibcpp_cv_func_finite_use=yes
6827 else
6828   echo "configure: failed program was:" >&5
6829   cat conftest.$ac_ext >&5
6830   rm -rf conftest*
6831   glibcpp_cv_func_finite_use=no
6832 fi
6833 rm -f conftest*
6834       ac_ext=c
6835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6839 cross_compiling=$ac_cv_prog_cc_cross
6840
6841     
6842 fi
6843
6844   fi
6845   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6846
6847   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6848     for ac_func in finite
6849 do
6850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_func" >&5
6852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6853   echo $ac_n "(cached) $ac_c" 1>&6
6854 else
6855   cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 /* System header to define __stub macros and hopefully few prototypes,
6859     which can conflict with char $ac_func(); below.  */
6860 #include <assert.h>
6861 /* Override any gcc2 internal prototype to avoid an error.  */
6862 /* We use char because int might match the return type of a gcc2
6863     builtin and then its argument prototype would still apply.  */
6864 char $ac_func();
6865
6866 int main() {
6867
6868 /* The GNU C library defines this for functions which it implements
6869     to always fail with ENOSYS.  Some functions are actually named
6870     something starting with __ and the normal name is an alias.  */
6871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6872 choke me
6873 #else
6874 $ac_func();
6875 #endif
6876
6877 ; return 0; }
6878 EOF
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880   rm -rf conftest*
6881   eval "ac_cv_func_$ac_func=yes"
6882 else
6883   echo "configure: failed program was:" >&5
6884   cat conftest.$ac_ext >&5
6885   rm -rf conftest*
6886   eval "ac_cv_func_$ac_func=no"
6887 fi
6888 rm -f conftest*
6889 fi
6890
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892   echo "$ac_t""yes" 1>&6
6893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894   cat >> confdefs.h <<EOF
6895 #define $ac_tr_func 1
6896 EOF
6897  
6898 else
6899   echo "$ac_t""no" 1>&6
6900 fi
6901 done
6902     
6903   else
6904     
6905   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6906 echo "configure:6907: checking for _finite declaration" >&5
6907   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6908     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6909   echo $ac_n "(cached) $ac_c" 1>&6
6910 else
6911   
6912       
6913       ac_ext=C
6914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6915 ac_cpp='$CXXCPP $CPPFLAGS'
6916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6918 cross_compiling=$ac_cv_prog_cxx_cross
6919
6920       cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 #include <math.h>
6924                       #ifdef HAVE_IEEEFP_H
6925                       #include <ieeefp.h>
6926                       #endif
6927                      
6928 int main() {
6929  _finite(0);
6930 ; return 0; }
6931 EOF
6932 if { (eval echo configure:6933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6933   rm -rf conftest*
6934   glibcpp_cv_func__finite_use=yes
6935 else
6936   echo "configure: failed program was:" >&5
6937   cat conftest.$ac_ext >&5
6938   rm -rf conftest*
6939   glibcpp_cv_func__finite_use=no
6940 fi
6941 rm -f conftest*
6942       ac_ext=c
6943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6944 ac_cpp='$CPP $CPPFLAGS'
6945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6947 cross_compiling=$ac_cv_prog_cc_cross
6948
6949     
6950 fi
6951
6952   fi
6953   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6954
6955     if test x$glibcpp_cv_func__finite_use = x"yes"; then
6956       for ac_func in _finite
6957 do
6958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6959 echo "configure:6960: checking for $ac_func" >&5
6960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6961   echo $ac_n "(cached) $ac_c" 1>&6
6962 else
6963   cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 /* System header to define __stub macros and hopefully few prototypes,
6967     which can conflict with char $ac_func(); below.  */
6968 #include <assert.h>
6969 /* Override any gcc2 internal prototype to avoid an error.  */
6970 /* We use char because int might match the return type of a gcc2
6971     builtin and then its argument prototype would still apply.  */
6972 char $ac_func();
6973
6974 int main() {
6975
6976 /* The GNU C library defines this for functions which it implements
6977     to always fail with ENOSYS.  Some functions are actually named
6978     something starting with __ and the normal name is an alias.  */
6979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6980 choke me
6981 #else
6982 $ac_func();
6983 #endif
6984
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   eval "ac_cv_func_$ac_func=yes"
6990 else
6991   echo "configure: failed program was:" >&5
6992   cat conftest.$ac_ext >&5
6993   rm -rf conftest*
6994   eval "ac_cv_func_$ac_func=no"
6995 fi
6996 rm -f conftest*
6997 fi
6998
6999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7000   echo "$ac_t""yes" 1>&6
7001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7002   cat >> confdefs.h <<EOF
7003 #define $ac_tr_func 1
7004 EOF
7005  
7006 else
7007   echo "$ac_t""no" 1>&6
7008 fi
7009 done
7010     
7011     fi
7012   fi
7013
7014   
7015   
7016   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7017 echo "configure:7018: checking for copysign declaration" >&5
7018   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7019     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7020   echo $ac_n "(cached) $ac_c" 1>&6
7021 else
7022   
7023       
7024       ac_ext=C
7025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7026 ac_cpp='$CXXCPP $CPPFLAGS'
7027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7029 cross_compiling=$ac_cv_prog_cxx_cross
7030
7031       cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 #include <math.h>
7035 int main() {
7036  copysign(0, 0);
7037 ; return 0; }
7038 EOF
7039 if { (eval echo configure:7040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7040   rm -rf conftest*
7041   glibcpp_cv_func_copysign_use=yes
7042 else
7043   echo "configure: failed program was:" >&5
7044   cat conftest.$ac_ext >&5
7045   rm -rf conftest*
7046   glibcpp_cv_func_copysign_use=no
7047 fi
7048 rm -f conftest*
7049       ac_ext=c
7050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7051 ac_cpp='$CPP $CPPFLAGS'
7052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7054 cross_compiling=$ac_cv_prog_cc_cross
7055
7056     
7057 fi
7058
7059   fi
7060   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7061
7062   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7063     for ac_func in copysign
7064 do
7065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7066 echo "configure:7067: checking for $ac_func" >&5
7067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7068   echo $ac_n "(cached) $ac_c" 1>&6
7069 else
7070   cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure"
7072 #include "confdefs.h"
7073 /* System header to define __stub macros and hopefully few prototypes,
7074     which can conflict with char $ac_func(); below.  */
7075 #include <assert.h>
7076 /* Override any gcc2 internal prototype to avoid an error.  */
7077 /* We use char because int might match the return type of a gcc2
7078     builtin and then its argument prototype would still apply.  */
7079 char $ac_func();
7080
7081 int main() {
7082
7083 /* The GNU C library defines this for functions which it implements
7084     to always fail with ENOSYS.  Some functions are actually named
7085     something starting with __ and the normal name is an alias.  */
7086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7087 choke me
7088 #else
7089 $ac_func();
7090 #endif
7091
7092 ; return 0; }
7093 EOF
7094 if { (eval echo configure:7095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7095   rm -rf conftest*
7096   eval "ac_cv_func_$ac_func=yes"
7097 else
7098   echo "configure: failed program was:" >&5
7099   cat conftest.$ac_ext >&5
7100   rm -rf conftest*
7101   eval "ac_cv_func_$ac_func=no"
7102 fi
7103 rm -f conftest*
7104 fi
7105
7106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7107   echo "$ac_t""yes" 1>&6
7108     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7109   cat >> confdefs.h <<EOF
7110 #define $ac_tr_func 1
7111 EOF
7112  
7113 else
7114   echo "$ac_t""no" 1>&6
7115 fi
7116 done
7117     
7118   else
7119     
7120   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7121 echo "configure:7122: checking for _copysign declaration" >&5
7122   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7123     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7124   echo $ac_n "(cached) $ac_c" 1>&6
7125 else
7126   
7127       
7128       ac_ext=C
7129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7130 ac_cpp='$CXXCPP $CPPFLAGS'
7131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7133 cross_compiling=$ac_cv_prog_cxx_cross
7134
7135       cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 #include <math.h>
7139 int main() {
7140  _copysign(0, 0);
7141 ; return 0; }
7142 EOF
7143 if { (eval echo configure:7144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7144   rm -rf conftest*
7145   glibcpp_cv_func__copysign_use=yes
7146 else
7147   echo "configure: failed program was:" >&5
7148   cat conftest.$ac_ext >&5
7149   rm -rf conftest*
7150   glibcpp_cv_func__copysign_use=no
7151 fi
7152 rm -f conftest*
7153       ac_ext=c
7154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7158 cross_compiling=$ac_cv_prog_cc_cross
7159
7160     
7161 fi
7162
7163   fi
7164   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7165
7166     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7167       for ac_func in _copysign
7168 do
7169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7170 echo "configure:7171: checking for $ac_func" >&5
7171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7172   echo $ac_n "(cached) $ac_c" 1>&6
7173 else
7174   cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7177 /* System header to define __stub macros and hopefully few prototypes,
7178     which can conflict with char $ac_func(); below.  */
7179 #include <assert.h>
7180 /* Override any gcc2 internal prototype to avoid an error.  */
7181 /* We use char because int might match the return type of a gcc2
7182     builtin and then its argument prototype would still apply.  */
7183 char $ac_func();
7184
7185 int main() {
7186
7187 /* The GNU C library defines this for functions which it implements
7188     to always fail with ENOSYS.  Some functions are actually named
7189     something starting with __ and the normal name is an alias.  */
7190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7191 choke me
7192 #else
7193 $ac_func();
7194 #endif
7195
7196 ; return 0; }
7197 EOF
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199   rm -rf conftest*
7200   eval "ac_cv_func_$ac_func=yes"
7201 else
7202   echo "configure: failed program was:" >&5
7203   cat conftest.$ac_ext >&5
7204   rm -rf conftest*
7205   eval "ac_cv_func_$ac_func=no"
7206 fi
7207 rm -f conftest*
7208 fi
7209
7210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7211   echo "$ac_t""yes" 1>&6
7212     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7213   cat >> confdefs.h <<EOF
7214 #define $ac_tr_func 1
7215 EOF
7216  
7217 else
7218   echo "$ac_t""no" 1>&6
7219 fi
7220 done
7221     
7222     fi
7223   fi
7224
7225   
7226   
7227   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7228 echo "configure:7229: checking for sincos declaration" >&5
7229   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7230     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7231   echo $ac_n "(cached) $ac_c" 1>&6
7232 else
7233   
7234       
7235       ac_ext=C
7236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7237 ac_cpp='$CXXCPP $CPPFLAGS'
7238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7240 cross_compiling=$ac_cv_prog_cxx_cross
7241
7242       cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 #include <math.h>
7246 int main() {
7247  sincos(0, 0, 0);
7248 ; return 0; }
7249 EOF
7250 if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7251   rm -rf conftest*
7252   glibcpp_cv_func_sincos_use=yes
7253 else
7254   echo "configure: failed program was:" >&5
7255   cat conftest.$ac_ext >&5
7256   rm -rf conftest*
7257   glibcpp_cv_func_sincos_use=no
7258 fi
7259 rm -f conftest*
7260       ac_ext=c
7261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7265 cross_compiling=$ac_cv_prog_cc_cross
7266
7267     
7268 fi
7269
7270   fi
7271   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7272
7273   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7274     for ac_func in sincos
7275 do
7276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7277 echo "configure:7278: checking for $ac_func" >&5
7278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7279   echo $ac_n "(cached) $ac_c" 1>&6
7280 else
7281   cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 /* System header to define __stub macros and hopefully few prototypes,
7285     which can conflict with char $ac_func(); below.  */
7286 #include <assert.h>
7287 /* Override any gcc2 internal prototype to avoid an error.  */
7288 /* We use char because int might match the return type of a gcc2
7289     builtin and then its argument prototype would still apply.  */
7290 char $ac_func();
7291
7292 int main() {
7293
7294 /* The GNU C library defines this for functions which it implements
7295     to always fail with ENOSYS.  Some functions are actually named
7296     something starting with __ and the normal name is an alias.  */
7297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7298 choke me
7299 #else
7300 $ac_func();
7301 #endif
7302
7303 ; return 0; }
7304 EOF
7305 if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306   rm -rf conftest*
7307   eval "ac_cv_func_$ac_func=yes"
7308 else
7309   echo "configure: failed program was:" >&5
7310   cat conftest.$ac_ext >&5
7311   rm -rf conftest*
7312   eval "ac_cv_func_$ac_func=no"
7313 fi
7314 rm -f conftest*
7315 fi
7316
7317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7318   echo "$ac_t""yes" 1>&6
7319     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7320   cat >> confdefs.h <<EOF
7321 #define $ac_tr_func 1
7322 EOF
7323  
7324 else
7325   echo "$ac_t""no" 1>&6
7326 fi
7327 done
7328     
7329   else
7330     
7331   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7332 echo "configure:7333: checking for _sincos declaration" >&5
7333   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7334     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7335   echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7337   
7338       
7339       ac_ext=C
7340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7341 ac_cpp='$CXXCPP $CPPFLAGS'
7342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7344 cross_compiling=$ac_cv_prog_cxx_cross
7345
7346       cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 #include <math.h>
7350 int main() {
7351  _sincos(0, 0, 0);
7352 ; return 0; }
7353 EOF
7354 if { (eval echo configure:7355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7355   rm -rf conftest*
7356   glibcpp_cv_func__sincos_use=yes
7357 else
7358   echo "configure: failed program was:" >&5
7359   cat conftest.$ac_ext >&5
7360   rm -rf conftest*
7361   glibcpp_cv_func__sincos_use=no
7362 fi
7363 rm -f conftest*
7364       ac_ext=c
7365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7369 cross_compiling=$ac_cv_prog_cc_cross
7370
7371     
7372 fi
7373
7374   fi
7375   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7376
7377     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7378       for ac_func in _sincos
7379 do
7380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7381 echo "configure:7382: checking for $ac_func" >&5
7382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7383   echo $ac_n "(cached) $ac_c" 1>&6
7384 else
7385   cat > conftest.$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7388 /* System header to define __stub macros and hopefully few prototypes,
7389     which can conflict with char $ac_func(); below.  */
7390 #include <assert.h>
7391 /* Override any gcc2 internal prototype to avoid an error.  */
7392 /* We use char because int might match the return type of a gcc2
7393     builtin and then its argument prototype would still apply.  */
7394 char $ac_func();
7395
7396 int main() {
7397
7398 /* The GNU C library defines this for functions which it implements
7399     to always fail with ENOSYS.  Some functions are actually named
7400     something starting with __ and the normal name is an alias.  */
7401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7402 choke me
7403 #else
7404 $ac_func();
7405 #endif
7406
7407 ; return 0; }
7408 EOF
7409 if { (eval echo configure:7410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7410   rm -rf conftest*
7411   eval "ac_cv_func_$ac_func=yes"
7412 else
7413   echo "configure: failed program was:" >&5
7414   cat conftest.$ac_ext >&5
7415   rm -rf conftest*
7416   eval "ac_cv_func_$ac_func=no"
7417 fi
7418 rm -f conftest*
7419 fi
7420
7421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7422   echo "$ac_t""yes" 1>&6
7423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7424   cat >> confdefs.h <<EOF
7425 #define $ac_tr_func 1
7426 EOF
7427  
7428 else
7429   echo "$ac_t""no" 1>&6
7430 fi
7431 done
7432     
7433     fi
7434   fi
7435
7436   
7437   
7438   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7439 echo "configure:7440: checking for fpclass declaration" >&5
7440   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7441     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7442   echo $ac_n "(cached) $ac_c" 1>&6
7443 else
7444   
7445       
7446       ac_ext=C
7447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7448 ac_cpp='$CXXCPP $CPPFLAGS'
7449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7451 cross_compiling=$ac_cv_prog_cxx_cross
7452
7453       cat > conftest.$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 #include <math.h>
7457                       #ifdef HAVE_IEEEFP_H
7458                       #include <ieeefp.h>
7459                       #endif
7460                      
7461 int main() {
7462  fpclass(0);
7463 ; return 0; }
7464 EOF
7465 if { (eval echo configure:7466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7466   rm -rf conftest*
7467   glibcpp_cv_func_fpclass_use=yes
7468 else
7469   echo "configure: failed program was:" >&5
7470   cat conftest.$ac_ext >&5
7471   rm -rf conftest*
7472   glibcpp_cv_func_fpclass_use=no
7473 fi
7474 rm -f conftest*
7475       ac_ext=c
7476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7480 cross_compiling=$ac_cv_prog_cc_cross
7481
7482     
7483 fi
7484
7485   fi
7486   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7487
7488   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7489     for ac_func in fpclass
7490 do
7491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7492 echo "configure:7493: checking for $ac_func" >&5
7493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7494   echo $ac_n "(cached) $ac_c" 1>&6
7495 else
7496   cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 /* System header to define __stub macros and hopefully few prototypes,
7500     which can conflict with char $ac_func(); below.  */
7501 #include <assert.h>
7502 /* Override any gcc2 internal prototype to avoid an error.  */
7503 /* We use char because int might match the return type of a gcc2
7504     builtin and then its argument prototype would still apply.  */
7505 char $ac_func();
7506
7507 int main() {
7508
7509 /* The GNU C library defines this for functions which it implements
7510     to always fail with ENOSYS.  Some functions are actually named
7511     something starting with __ and the normal name is an alias.  */
7512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7513 choke me
7514 #else
7515 $ac_func();
7516 #endif
7517
7518 ; return 0; }
7519 EOF
7520 if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7521   rm -rf conftest*
7522   eval "ac_cv_func_$ac_func=yes"
7523 else
7524   echo "configure: failed program was:" >&5
7525   cat conftest.$ac_ext >&5
7526   rm -rf conftest*
7527   eval "ac_cv_func_$ac_func=no"
7528 fi
7529 rm -f conftest*
7530 fi
7531
7532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7533   echo "$ac_t""yes" 1>&6
7534     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7535   cat >> confdefs.h <<EOF
7536 #define $ac_tr_func 1
7537 EOF
7538  
7539 else
7540   echo "$ac_t""no" 1>&6
7541 fi
7542 done
7543     
7544   else
7545     
7546   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7547 echo "configure:7548: checking for _fpclass declaration" >&5
7548   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7549     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7550   echo $ac_n "(cached) $ac_c" 1>&6
7551 else
7552   
7553       
7554       ac_ext=C
7555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7556 ac_cpp='$CXXCPP $CPPFLAGS'
7557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7559 cross_compiling=$ac_cv_prog_cxx_cross
7560
7561       cat > conftest.$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 #include <math.h>
7565                       #ifdef HAVE_IEEEFP_H
7566                       #include <ieeefp.h>
7567                       #endif
7568                      
7569 int main() {
7570  _fpclass(0);
7571 ; return 0; }
7572 EOF
7573 if { (eval echo configure:7574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7574   rm -rf conftest*
7575   glibcpp_cv_func__fpclass_use=yes
7576 else
7577   echo "configure: failed program was:" >&5
7578   cat conftest.$ac_ext >&5
7579   rm -rf conftest*
7580   glibcpp_cv_func__fpclass_use=no
7581 fi
7582 rm -f conftest*
7583       ac_ext=c
7584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7585 ac_cpp='$CPP $CPPFLAGS'
7586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7588 cross_compiling=$ac_cv_prog_cc_cross
7589
7590     
7591 fi
7592
7593   fi
7594   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7595
7596     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7597       for ac_func in _fpclass
7598 do
7599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7600 echo "configure:7601: checking for $ac_func" >&5
7601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7602   echo $ac_n "(cached) $ac_c" 1>&6
7603 else
7604   cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7607 /* System header to define __stub macros and hopefully few prototypes,
7608     which can conflict with char $ac_func(); below.  */
7609 #include <assert.h>
7610 /* Override any gcc2 internal prototype to avoid an error.  */
7611 /* We use char because int might match the return type of a gcc2
7612     builtin and then its argument prototype would still apply.  */
7613 char $ac_func();
7614
7615 int main() {
7616
7617 /* The GNU C library defines this for functions which it implements
7618     to always fail with ENOSYS.  Some functions are actually named
7619     something starting with __ and the normal name is an alias.  */
7620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7621 choke me
7622 #else
7623 $ac_func();
7624 #endif
7625
7626 ; return 0; }
7627 EOF
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7629   rm -rf conftest*
7630   eval "ac_cv_func_$ac_func=yes"
7631 else
7632   echo "configure: failed program was:" >&5
7633   cat conftest.$ac_ext >&5
7634   rm -rf conftest*
7635   eval "ac_cv_func_$ac_func=no"
7636 fi
7637 rm -f conftest*
7638 fi
7639
7640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7641   echo "$ac_t""yes" 1>&6
7642     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7643   cat >> confdefs.h <<EOF
7644 #define $ac_tr_func 1
7645 EOF
7646  
7647 else
7648   echo "$ac_t""no" 1>&6
7649 fi
7650 done
7651     
7652     fi
7653   fi
7654
7655   
7656   
7657   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7658 echo "configure:7659: checking for qfpclass declaration" >&5
7659   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7660     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7661   echo $ac_n "(cached) $ac_c" 1>&6
7662 else
7663   
7664       
7665       ac_ext=C
7666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7667 ac_cpp='$CXXCPP $CPPFLAGS'
7668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7670 cross_compiling=$ac_cv_prog_cxx_cross
7671
7672       cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 #include <math.h>
7676                       #ifdef HAVE_IEEEFP_H
7677                       #include <ieeefp.h>
7678                       #endif
7679                      
7680 int main() {
7681  qfpclass(0);
7682 ; return 0; }
7683 EOF
7684 if { (eval echo configure:7685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7685   rm -rf conftest*
7686   glibcpp_cv_func_qfpclass_use=yes
7687 else
7688   echo "configure: failed program was:" >&5
7689   cat conftest.$ac_ext >&5
7690   rm -rf conftest*
7691   glibcpp_cv_func_qfpclass_use=no
7692 fi
7693 rm -f conftest*
7694       ac_ext=c
7695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7699 cross_compiling=$ac_cv_prog_cc_cross
7700
7701     
7702 fi
7703
7704   fi
7705   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7706
7707   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7708     for ac_func in qfpclass
7709 do
7710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7711 echo "configure:7712: checking for $ac_func" >&5
7712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7713   echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7715   cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* System header to define __stub macros and hopefully few prototypes,
7719     which can conflict with char $ac_func(); below.  */
7720 #include <assert.h>
7721 /* Override any gcc2 internal prototype to avoid an error.  */
7722 /* We use char because int might match the return type of a gcc2
7723     builtin and then its argument prototype would still apply.  */
7724 char $ac_func();
7725
7726 int main() {
7727
7728 /* The GNU C library defines this for functions which it implements
7729     to always fail with ENOSYS.  Some functions are actually named
7730     something starting with __ and the normal name is an alias.  */
7731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7732 choke me
7733 #else
7734 $ac_func();
7735 #endif
7736
7737 ; return 0; }
7738 EOF
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7740   rm -rf conftest*
7741   eval "ac_cv_func_$ac_func=yes"
7742 else
7743   echo "configure: failed program was:" >&5
7744   cat conftest.$ac_ext >&5
7745   rm -rf conftest*
7746   eval "ac_cv_func_$ac_func=no"
7747 fi
7748 rm -f conftest*
7749 fi
7750
7751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7752   echo "$ac_t""yes" 1>&6
7753     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7754   cat >> confdefs.h <<EOF
7755 #define $ac_tr_func 1
7756 EOF
7757  
7758 else
7759   echo "$ac_t""no" 1>&6
7760 fi
7761 done
7762     
7763   else
7764     
7765   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7766 echo "configure:7767: checking for _qfpclass declaration" >&5
7767   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7768     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7769   echo $ac_n "(cached) $ac_c" 1>&6
7770 else
7771   
7772       
7773       ac_ext=C
7774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7775 ac_cpp='$CXXCPP $CPPFLAGS'
7776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7778 cross_compiling=$ac_cv_prog_cxx_cross
7779
7780       cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 #include <math.h>
7784                       #ifdef HAVE_IEEEFP_H
7785                       #include <ieeefp.h>
7786                       #endif
7787                      
7788 int main() {
7789  _qfpclass(0);
7790 ; return 0; }
7791 EOF
7792 if { (eval echo configure:7793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7793   rm -rf conftest*
7794   glibcpp_cv_func__qfpclass_use=yes
7795 else
7796   echo "configure: failed program was:" >&5
7797   cat conftest.$ac_ext >&5
7798   rm -rf conftest*
7799   glibcpp_cv_func__qfpclass_use=no
7800 fi
7801 rm -f conftest*
7802       ac_ext=c
7803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7807 cross_compiling=$ac_cv_prog_cc_cross
7808
7809     
7810 fi
7811
7812   fi
7813   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7814
7815     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7816       for ac_func in _qfpclass
7817 do
7818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_func" >&5
7820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7821   echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7823   cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 /* System header to define __stub macros and hopefully few prototypes,
7827     which can conflict with char $ac_func(); below.  */
7828 #include <assert.h>
7829 /* Override any gcc2 internal prototype to avoid an error.  */
7830 /* We use char because int might match the return type of a gcc2
7831     builtin and then its argument prototype would still apply.  */
7832 char $ac_func();
7833
7834 int main() {
7835
7836 /* The GNU C library defines this for functions which it implements
7837     to always fail with ENOSYS.  Some functions are actually named
7838     something starting with __ and the normal name is an alias.  */
7839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7840 choke me
7841 #else
7842 $ac_func();
7843 #endif
7844
7845 ; return 0; }
7846 EOF
7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848   rm -rf conftest*
7849   eval "ac_cv_func_$ac_func=yes"
7850 else
7851   echo "configure: failed program was:" >&5
7852   cat conftest.$ac_ext >&5
7853   rm -rf conftest*
7854   eval "ac_cv_func_$ac_func=no"
7855 fi
7856 rm -f conftest*
7857 fi
7858
7859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7860   echo "$ac_t""yes" 1>&6
7861     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7862   cat >> confdefs.h <<EOF
7863 #define $ac_tr_func 1
7864 EOF
7865  
7866 else
7867   echo "$ac_t""no" 1>&6
7868 fi
7869 done
7870     
7871     fi
7872   fi
7873
7874
7875     
7876   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7877 echo "configure:7878: checking for float trig functions" >&5
7878   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_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  `for x in acosf asinf atanf \
7896                                           cosf sinf tanf \
7897                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
7898 ; return 0; }
7899 EOF
7900 if { (eval echo configure:7901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7901   rm -rf conftest*
7902   glibcpp_cv_func_float_trig_use=yes
7903 else
7904   echo "configure: failed program was:" >&5
7905   cat conftest.$ac_ext >&5
7906   rm -rf conftest*
7907   glibcpp_cv_func_float_trig_use=no
7908 fi
7909 rm -f conftest*
7910     ac_ext=c
7911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7915 cross_compiling=$ac_cv_prog_cc_cross
7916
7917 fi
7918
7919   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7920   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7921     for ac_func in acosf asinf atanf \
7922                                           cosf sinf tanf \
7923                                           coshf sinhf tanhf
7924 do
7925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7926 echo "configure:7927: checking for $ac_func" >&5
7927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7928   echo $ac_n "(cached) $ac_c" 1>&6
7929 else
7930   cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* System header to define __stub macros and hopefully few prototypes,
7934     which can conflict with char $ac_func(); below.  */
7935 #include <assert.h>
7936 /* Override any gcc2 internal prototype to avoid an error.  */
7937 /* We use char because int might match the return type of a gcc2
7938     builtin and then its argument prototype would still apply.  */
7939 char $ac_func();
7940
7941 int main() {
7942
7943 /* The GNU C library defines this for functions which it implements
7944     to always fail with ENOSYS.  Some functions are actually named
7945     something starting with __ and the normal name is an alias.  */
7946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7947 choke me
7948 #else
7949 $ac_func();
7950 #endif
7951
7952 ; return 0; }
7953 EOF
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955   rm -rf conftest*
7956   eval "ac_cv_func_$ac_func=yes"
7957 else
7958   echo "configure: failed program was:" >&5
7959   cat conftest.$ac_ext >&5
7960   rm -rf conftest*
7961   eval "ac_cv_func_$ac_func=no"
7962 fi
7963 rm -f conftest*
7964 fi
7965
7966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7967   echo "$ac_t""yes" 1>&6
7968     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7969   cat >> confdefs.h <<EOF
7970 #define $ac_tr_func 1
7971 EOF
7972  
7973 else
7974   echo "$ac_t""no" 1>&6
7975 fi
7976 done
7977
7978   fi
7979
7980   
7981   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7982 echo "configure:7983: checking for float round functions" >&5
7983   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7984   echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986   
7987     
7988     ac_ext=C
7989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7990 ac_cpp='$CXXCPP $CPPFLAGS'
7991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7993 cross_compiling=$ac_cv_prog_cxx_cross
7994
7995     cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 #include <math.h>
7999 int main() {
8000  `for x in ceilf floorf; do echo "$x (0);"; done` 
8001 ; return 0; }
8002 EOF
8003 if { (eval echo configure:8004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8004   rm -rf conftest*
8005   glibcpp_cv_func_float_round_use=yes
8006 else
8007   echo "configure: failed program was:" >&5
8008   cat conftest.$ac_ext >&5
8009   rm -rf conftest*
8010   glibcpp_cv_func_float_round_use=no
8011 fi
8012 rm -f conftest*
8013     ac_ext=c
8014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8018 cross_compiling=$ac_cv_prog_cc_cross
8019
8020 fi
8021
8022   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8023   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8024     for ac_func in ceilf floorf
8025 do
8026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_func" >&5
8028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8029   echo $ac_n "(cached) $ac_c" 1>&6
8030 else
8031   cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8034 /* System header to define __stub macros and hopefully few prototypes,
8035     which can conflict with char $ac_func(); below.  */
8036 #include <assert.h>
8037 /* Override any gcc2 internal prototype to avoid an error.  */
8038 /* We use char because int might match the return type of a gcc2
8039     builtin and then its argument prototype would still apply.  */
8040 char $ac_func();
8041
8042 int main() {
8043
8044 /* The GNU C library defines this for functions which it implements
8045     to always fail with ENOSYS.  Some functions are actually named
8046     something starting with __ and the normal name is an alias.  */
8047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8048 choke me
8049 #else
8050 $ac_func();
8051 #endif
8052
8053 ; return 0; }
8054 EOF
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8056   rm -rf conftest*
8057   eval "ac_cv_func_$ac_func=yes"
8058 else
8059   echo "configure: failed program was:" >&5
8060   cat conftest.$ac_ext >&5
8061   rm -rf conftest*
8062   eval "ac_cv_func_$ac_func=no"
8063 fi
8064 rm -f conftest*
8065 fi
8066
8067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8068   echo "$ac_t""yes" 1>&6
8069     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8070   cat >> confdefs.h <<EOF
8071 #define $ac_tr_func 1
8072 EOF
8073  
8074 else
8075   echo "$ac_t""no" 1>&6
8076 fi
8077 done
8078
8079   fi
8080
8081   
8082   
8083   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8084 echo "configure:8085: checking for isnanf declaration" >&5
8085   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8086     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8087   echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8089   
8090       
8091       ac_ext=C
8092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8093 ac_cpp='$CXXCPP $CPPFLAGS'
8094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8096 cross_compiling=$ac_cv_prog_cxx_cross
8097
8098       cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 #include <math.h>
8102                       #ifdef HAVE_IEEEFP_H
8103                       #include <ieeefp.h>
8104                       #endif
8105                      
8106 int main() {
8107  isnanf(0);
8108 ; return 0; }
8109 EOF
8110 if { (eval echo configure:8111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8111   rm -rf conftest*
8112   glibcpp_cv_func_isnanf_use=yes
8113 else
8114   echo "configure: failed program was:" >&5
8115   cat conftest.$ac_ext >&5
8116   rm -rf conftest*
8117   glibcpp_cv_func_isnanf_use=no
8118 fi
8119 rm -f conftest*
8120       ac_ext=c
8121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8125 cross_compiling=$ac_cv_prog_cc_cross
8126
8127     
8128 fi
8129
8130   fi
8131   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8132
8133   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8134     for ac_func in isnanf
8135 do
8136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_func" >&5
8138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8139   echo $ac_n "(cached) $ac_c" 1>&6
8140 else
8141   cat > conftest.$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8144 /* System header to define __stub macros and hopefully few prototypes,
8145     which can conflict with char $ac_func(); below.  */
8146 #include <assert.h>
8147 /* Override any gcc2 internal prototype to avoid an error.  */
8148 /* We use char because int might match the return type of a gcc2
8149     builtin and then its argument prototype would still apply.  */
8150 char $ac_func();
8151
8152 int main() {
8153
8154 /* The GNU C library defines this for functions which it implements
8155     to always fail with ENOSYS.  Some functions are actually named
8156     something starting with __ and the normal name is an alias.  */
8157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8158 choke me
8159 #else
8160 $ac_func();
8161 #endif
8162
8163 ; return 0; }
8164 EOF
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166   rm -rf conftest*
8167   eval "ac_cv_func_$ac_func=yes"
8168 else
8169   echo "configure: failed program was:" >&5
8170   cat conftest.$ac_ext >&5
8171   rm -rf conftest*
8172   eval "ac_cv_func_$ac_func=no"
8173 fi
8174 rm -f conftest*
8175 fi
8176
8177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8178   echo "$ac_t""yes" 1>&6
8179     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8180   cat >> confdefs.h <<EOF
8181 #define $ac_tr_func 1
8182 EOF
8183  
8184 else
8185   echo "$ac_t""no" 1>&6
8186 fi
8187 done
8188     
8189   else
8190     
8191   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8192 echo "configure:8193: checking for _isnanf declaration" >&5
8193   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8194     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8195   echo $ac_n "(cached) $ac_c" 1>&6
8196 else
8197   
8198       
8199       ac_ext=C
8200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8201 ac_cpp='$CXXCPP $CPPFLAGS'
8202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8204 cross_compiling=$ac_cv_prog_cxx_cross
8205
8206       cat > conftest.$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8209 #include <math.h>
8210                       #ifdef HAVE_IEEEFP_H
8211                       #include <ieeefp.h>
8212                       #endif
8213                      
8214 int main() {
8215  _isnanf(0);
8216 ; return 0; }
8217 EOF
8218 if { (eval echo configure:8219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8219   rm -rf conftest*
8220   glibcpp_cv_func__isnanf_use=yes
8221 else
8222   echo "configure: failed program was:" >&5
8223   cat conftest.$ac_ext >&5
8224   rm -rf conftest*
8225   glibcpp_cv_func__isnanf_use=no
8226 fi
8227 rm -f conftest*
8228       ac_ext=c
8229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8233 cross_compiling=$ac_cv_prog_cc_cross
8234
8235     
8236 fi
8237
8238   fi
8239   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8240
8241     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8242       for ac_func in _isnanf
8243 do
8244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8245 echo "configure:8246: checking for $ac_func" >&5
8246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8247   echo $ac_n "(cached) $ac_c" 1>&6
8248 else
8249   cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8252 /* System header to define __stub macros and hopefully few prototypes,
8253     which can conflict with char $ac_func(); below.  */
8254 #include <assert.h>
8255 /* Override any gcc2 internal prototype to avoid an error.  */
8256 /* We use char because int might match the return type of a gcc2
8257     builtin and then its argument prototype would still apply.  */
8258 char $ac_func();
8259
8260 int main() {
8261
8262 /* The GNU C library defines this for functions which it implements
8263     to always fail with ENOSYS.  Some functions are actually named
8264     something starting with __ and the normal name is an alias.  */
8265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8266 choke me
8267 #else
8268 $ac_func();
8269 #endif
8270
8271 ; return 0; }
8272 EOF
8273 if { (eval echo configure:8274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8274   rm -rf conftest*
8275   eval "ac_cv_func_$ac_func=yes"
8276 else
8277   echo "configure: failed program was:" >&5
8278   cat conftest.$ac_ext >&5
8279   rm -rf conftest*
8280   eval "ac_cv_func_$ac_func=no"
8281 fi
8282 rm -f conftest*
8283 fi
8284
8285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8286   echo "$ac_t""yes" 1>&6
8287     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8288   cat >> confdefs.h <<EOF
8289 #define $ac_tr_func 1
8290 EOF
8291  
8292 else
8293   echo "$ac_t""no" 1>&6
8294 fi
8295 done
8296     
8297     fi
8298   fi
8299
8300   
8301   
8302   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8303 echo "configure:8304: checking for isinff declaration" >&5
8304   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8305     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8306   echo $ac_n "(cached) $ac_c" 1>&6
8307 else
8308   
8309       
8310       ac_ext=C
8311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8312 ac_cpp='$CXXCPP $CPPFLAGS'
8313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8315 cross_compiling=$ac_cv_prog_cxx_cross
8316
8317       cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 #include <math.h>
8321                       #ifdef HAVE_IEEEFP_H
8322                       #include <ieeefp.h>
8323                       #endif
8324                      
8325 int main() {
8326  isinff(0);
8327 ; return 0; }
8328 EOF
8329 if { (eval echo configure:8330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8330   rm -rf conftest*
8331   glibcpp_cv_func_isinff_use=yes
8332 else
8333   echo "configure: failed program was:" >&5
8334   cat conftest.$ac_ext >&5
8335   rm -rf conftest*
8336   glibcpp_cv_func_isinff_use=no
8337 fi
8338 rm -f conftest*
8339       ac_ext=c
8340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8341 ac_cpp='$CPP $CPPFLAGS'
8342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8344 cross_compiling=$ac_cv_prog_cc_cross
8345
8346     
8347 fi
8348
8349   fi
8350   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8351
8352   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8353     for ac_func in isinff
8354 do
8355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8356 echo "configure:8357: checking for $ac_func" >&5
8357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8358   echo $ac_n "(cached) $ac_c" 1>&6
8359 else
8360   cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364     which can conflict with char $ac_func(); below.  */
8365 #include <assert.h>
8366 /* Override any gcc2 internal prototype to avoid an error.  */
8367 /* We use char because int might match the return type of a gcc2
8368     builtin and then its argument prototype would still apply.  */
8369 char $ac_func();
8370
8371 int main() {
8372
8373 /* The GNU C library defines this for functions which it implements
8374     to always fail with ENOSYS.  Some functions are actually named
8375     something starting with __ and the normal name is an alias.  */
8376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8377 choke me
8378 #else
8379 $ac_func();
8380 #endif
8381
8382 ; return 0; }
8383 EOF
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8385   rm -rf conftest*
8386   eval "ac_cv_func_$ac_func=yes"
8387 else
8388   echo "configure: failed program was:" >&5
8389   cat conftest.$ac_ext >&5
8390   rm -rf conftest*
8391   eval "ac_cv_func_$ac_func=no"
8392 fi
8393 rm -f conftest*
8394 fi
8395
8396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8397   echo "$ac_t""yes" 1>&6
8398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8399   cat >> confdefs.h <<EOF
8400 #define $ac_tr_func 1
8401 EOF
8402  
8403 else
8404   echo "$ac_t""no" 1>&6
8405 fi
8406 done
8407     
8408   else
8409     
8410   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8411 echo "configure:8412: checking for _isinff declaration" >&5
8412   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8413     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8414   echo $ac_n "(cached) $ac_c" 1>&6
8415 else
8416   
8417       
8418       ac_ext=C
8419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8420 ac_cpp='$CXXCPP $CPPFLAGS'
8421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8423 cross_compiling=$ac_cv_prog_cxx_cross
8424
8425       cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 #include <math.h>
8429                       #ifdef HAVE_IEEEFP_H
8430                       #include <ieeefp.h>
8431                       #endif
8432                      
8433 int main() {
8434  _isinff(0);
8435 ; return 0; }
8436 EOF
8437 if { (eval echo configure:8438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8438   rm -rf conftest*
8439   glibcpp_cv_func__isinff_use=yes
8440 else
8441   echo "configure: failed program was:" >&5
8442   cat conftest.$ac_ext >&5
8443   rm -rf conftest*
8444   glibcpp_cv_func__isinff_use=no
8445 fi
8446 rm -f conftest*
8447       ac_ext=c
8448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8452 cross_compiling=$ac_cv_prog_cc_cross
8453
8454     
8455 fi
8456
8457   fi
8458   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8459
8460     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8461       for ac_func in _isinff
8462 do
8463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_func" >&5
8465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8466   echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8468   cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 /* System header to define __stub macros and hopefully few prototypes,
8472     which can conflict with char $ac_func(); below.  */
8473 #include <assert.h>
8474 /* Override any gcc2 internal prototype to avoid an error.  */
8475 /* We use char because int might match the return type of a gcc2
8476     builtin and then its argument prototype would still apply.  */
8477 char $ac_func();
8478
8479 int main() {
8480
8481 /* The GNU C library defines this for functions which it implements
8482     to always fail with ENOSYS.  Some functions are actually named
8483     something starting with __ and the normal name is an alias.  */
8484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8485 choke me
8486 #else
8487 $ac_func();
8488 #endif
8489
8490 ; return 0; }
8491 EOF
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8493   rm -rf conftest*
8494   eval "ac_cv_func_$ac_func=yes"
8495 else
8496   echo "configure: failed program was:" >&5
8497   cat conftest.$ac_ext >&5
8498   rm -rf conftest*
8499   eval "ac_cv_func_$ac_func=no"
8500 fi
8501 rm -f conftest*
8502 fi
8503
8504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8505   echo "$ac_t""yes" 1>&6
8506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8507   cat >> confdefs.h <<EOF
8508 #define $ac_tr_func 1
8509 EOF
8510  
8511 else
8512   echo "$ac_t""no" 1>&6
8513 fi
8514 done
8515     
8516     fi
8517   fi
8518
8519   
8520   
8521   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8522 echo "configure:8523: checking for fabsf declaration" >&5
8523   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8524     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8525   echo $ac_n "(cached) $ac_c" 1>&6
8526 else
8527   
8528       
8529       ac_ext=C
8530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8531 ac_cpp='$CXXCPP $CPPFLAGS'
8532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8534 cross_compiling=$ac_cv_prog_cxx_cross
8535
8536       cat > conftest.$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8539 #include <math.h>
8540                       #ifdef HAVE_IEEEFP_H
8541                       #include <ieeefp.h>
8542                       #endif
8543                      
8544 int main() {
8545  fabsf(0);
8546 ; return 0; }
8547 EOF
8548 if { (eval echo configure:8549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8549   rm -rf conftest*
8550   glibcpp_cv_func_fabsf_use=yes
8551 else
8552   echo "configure: failed program was:" >&5
8553   cat conftest.$ac_ext >&5
8554   rm -rf conftest*
8555   glibcpp_cv_func_fabsf_use=no
8556 fi
8557 rm -f conftest*
8558       ac_ext=c
8559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8563 cross_compiling=$ac_cv_prog_cc_cross
8564
8565     
8566 fi
8567
8568   fi
8569   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8570
8571   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8572     for ac_func in fabsf
8573 do
8574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8575 echo "configure:8576: checking for $ac_func" >&5
8576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8577   echo $ac_n "(cached) $ac_c" 1>&6
8578 else
8579   cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* System header to define __stub macros and hopefully few prototypes,
8583     which can conflict with char $ac_func(); below.  */
8584 #include <assert.h>
8585 /* Override any gcc2 internal prototype to avoid an error.  */
8586 /* We use char because int might match the return type of a gcc2
8587     builtin and then its argument prototype would still apply.  */
8588 char $ac_func();
8589
8590 int main() {
8591
8592 /* The GNU C library defines this for functions which it implements
8593     to always fail with ENOSYS.  Some functions are actually named
8594     something starting with __ and the normal name is an alias.  */
8595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8596 choke me
8597 #else
8598 $ac_func();
8599 #endif
8600
8601 ; return 0; }
8602 EOF
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8604   rm -rf conftest*
8605   eval "ac_cv_func_$ac_func=yes"
8606 else
8607   echo "configure: failed program was:" >&5
8608   cat conftest.$ac_ext >&5
8609   rm -rf conftest*
8610   eval "ac_cv_func_$ac_func=no"
8611 fi
8612 rm -f conftest*
8613 fi
8614
8615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8616   echo "$ac_t""yes" 1>&6
8617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8618   cat >> confdefs.h <<EOF
8619 #define $ac_tr_func 1
8620 EOF
8621  
8622 else
8623   echo "$ac_t""no" 1>&6
8624 fi
8625 done
8626     
8627   else
8628     
8629   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8630 echo "configure:8631: checking for _fabsf declaration" >&5
8631   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8632     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8633   echo $ac_n "(cached) $ac_c" 1>&6
8634 else
8635   
8636       
8637       ac_ext=C
8638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8639 ac_cpp='$CXXCPP $CPPFLAGS'
8640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8642 cross_compiling=$ac_cv_prog_cxx_cross
8643
8644       cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 #include <math.h>
8648                       #ifdef HAVE_IEEEFP_H
8649                       #include <ieeefp.h>
8650                       #endif
8651                      
8652 int main() {
8653  _fabsf(0);
8654 ; return 0; }
8655 EOF
8656 if { (eval echo configure:8657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8657   rm -rf conftest*
8658   glibcpp_cv_func__fabsf_use=yes
8659 else
8660   echo "configure: failed program was:" >&5
8661   cat conftest.$ac_ext >&5
8662   rm -rf conftest*
8663   glibcpp_cv_func__fabsf_use=no
8664 fi
8665 rm -f conftest*
8666       ac_ext=c
8667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8668 ac_cpp='$CPP $CPPFLAGS'
8669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8671 cross_compiling=$ac_cv_prog_cc_cross
8672
8673     
8674 fi
8675
8676   fi
8677   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8678
8679     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8680       for ac_func in _fabsf
8681 do
8682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8683 echo "configure:8684: checking for $ac_func" >&5
8684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8685   echo $ac_n "(cached) $ac_c" 1>&6
8686 else
8687   cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 /* System header to define __stub macros and hopefully few prototypes,
8691     which can conflict with char $ac_func(); below.  */
8692 #include <assert.h>
8693 /* Override any gcc2 internal prototype to avoid an error.  */
8694 /* We use char because int might match the return type of a gcc2
8695     builtin and then its argument prototype would still apply.  */
8696 char $ac_func();
8697
8698 int main() {
8699
8700 /* The GNU C library defines this for functions which it implements
8701     to always fail with ENOSYS.  Some functions are actually named
8702     something starting with __ and the normal name is an alias.  */
8703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704 choke me
8705 #else
8706 $ac_func();
8707 #endif
8708
8709 ; return 0; }
8710 EOF
8711 if { (eval echo configure:8712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8712   rm -rf conftest*
8713   eval "ac_cv_func_$ac_func=yes"
8714 else
8715   echo "configure: failed program was:" >&5
8716   cat conftest.$ac_ext >&5
8717   rm -rf conftest*
8718   eval "ac_cv_func_$ac_func=no"
8719 fi
8720 rm -f conftest*
8721 fi
8722
8723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8724   echo "$ac_t""yes" 1>&6
8725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8726   cat >> confdefs.h <<EOF
8727 #define $ac_tr_func 1
8728 EOF
8729  
8730 else
8731   echo "$ac_t""no" 1>&6
8732 fi
8733 done
8734     
8735     fi
8736   fi
8737
8738   
8739   
8740   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8741 echo "configure:8742: checking for fmodf declaration" >&5
8742   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8743     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8744   echo $ac_n "(cached) $ac_c" 1>&6
8745 else
8746   
8747       
8748       ac_ext=C
8749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8750 ac_cpp='$CXXCPP $CPPFLAGS'
8751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8753 cross_compiling=$ac_cv_prog_cxx_cross
8754
8755       cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8758 #include <math.h>
8759 int main() {
8760  fmodf(0, 0);
8761 ; return 0; }
8762 EOF
8763 if { (eval echo configure:8764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8764   rm -rf conftest*
8765   glibcpp_cv_func_fmodf_use=yes
8766 else
8767   echo "configure: failed program was:" >&5
8768   cat conftest.$ac_ext >&5
8769   rm -rf conftest*
8770   glibcpp_cv_func_fmodf_use=no
8771 fi
8772 rm -f conftest*
8773       ac_ext=c
8774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8775 ac_cpp='$CPP $CPPFLAGS'
8776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8778 cross_compiling=$ac_cv_prog_cc_cross
8779
8780     
8781 fi
8782
8783   fi
8784   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8785
8786   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8787     for ac_func in fmodf
8788 do
8789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8790 echo "configure:8791: checking for $ac_func" >&5
8791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8792   echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794   cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8797 /* System header to define __stub macros and hopefully few prototypes,
8798     which can conflict with char $ac_func(); below.  */
8799 #include <assert.h>
8800 /* Override any gcc2 internal prototype to avoid an error.  */
8801 /* We use char because int might match the return type of a gcc2
8802     builtin and then its argument prototype would still apply.  */
8803 char $ac_func();
8804
8805 int main() {
8806
8807 /* The GNU C library defines this for functions which it implements
8808     to always fail with ENOSYS.  Some functions are actually named
8809     something starting with __ and the normal name is an alias.  */
8810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8811 choke me
8812 #else
8813 $ac_func();
8814 #endif
8815
8816 ; return 0; }
8817 EOF
8818 if { (eval echo configure:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8819   rm -rf conftest*
8820   eval "ac_cv_func_$ac_func=yes"
8821 else
8822   echo "configure: failed program was:" >&5
8823   cat conftest.$ac_ext >&5
8824   rm -rf conftest*
8825   eval "ac_cv_func_$ac_func=no"
8826 fi
8827 rm -f conftest*
8828 fi
8829
8830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8831   echo "$ac_t""yes" 1>&6
8832     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8833   cat >> confdefs.h <<EOF
8834 #define $ac_tr_func 1
8835 EOF
8836  
8837 else
8838   echo "$ac_t""no" 1>&6
8839 fi
8840 done
8841     
8842   else
8843     
8844   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8845 echo "configure:8846: checking for _fmodf declaration" >&5
8846   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8847     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8848   echo $ac_n "(cached) $ac_c" 1>&6
8849 else
8850   
8851       
8852       ac_ext=C
8853 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8854 ac_cpp='$CXXCPP $CPPFLAGS'
8855 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8856 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8857 cross_compiling=$ac_cv_prog_cxx_cross
8858
8859       cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 #include <math.h>
8863 int main() {
8864  _fmodf(0, 0);
8865 ; return 0; }
8866 EOF
8867 if { (eval echo configure:8868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8868   rm -rf conftest*
8869   glibcpp_cv_func__fmodf_use=yes
8870 else
8871   echo "configure: failed program was:" >&5
8872   cat conftest.$ac_ext >&5
8873   rm -rf conftest*
8874   glibcpp_cv_func__fmodf_use=no
8875 fi
8876 rm -f conftest*
8877       ac_ext=c
8878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8879 ac_cpp='$CPP $CPPFLAGS'
8880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8882 cross_compiling=$ac_cv_prog_cc_cross
8883
8884     
8885 fi
8886
8887   fi
8888   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8889
8890     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8891       for ac_func in _fmodf
8892 do
8893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8894 echo "configure:8895: checking for $ac_func" >&5
8895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8896   echo $ac_n "(cached) $ac_c" 1>&6
8897 else
8898   cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* System header to define __stub macros and hopefully few prototypes,
8902     which can conflict with char $ac_func(); below.  */
8903 #include <assert.h>
8904 /* Override any gcc2 internal prototype to avoid an error.  */
8905 /* We use char because int might match the return type of a gcc2
8906     builtin and then its argument prototype would still apply.  */
8907 char $ac_func();
8908
8909 int main() {
8910
8911 /* The GNU C library defines this for functions which it implements
8912     to always fail with ENOSYS.  Some functions are actually named
8913     something starting with __ and the normal name is an alias.  */
8914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8915 choke me
8916 #else
8917 $ac_func();
8918 #endif
8919
8920 ; return 0; }
8921 EOF
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923   rm -rf conftest*
8924   eval "ac_cv_func_$ac_func=yes"
8925 else
8926   echo "configure: failed program was:" >&5
8927   cat conftest.$ac_ext >&5
8928   rm -rf conftest*
8929   eval "ac_cv_func_$ac_func=no"
8930 fi
8931 rm -f conftest*
8932 fi
8933
8934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8935   echo "$ac_t""yes" 1>&6
8936     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8937   cat >> confdefs.h <<EOF
8938 #define $ac_tr_func 1
8939 EOF
8940  
8941 else
8942   echo "$ac_t""no" 1>&6
8943 fi
8944 done
8945     
8946     fi
8947   fi
8948
8949   
8950   
8951   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8952 echo "configure:8953: checking for frexpf declaration" >&5
8953   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8954     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8955   echo $ac_n "(cached) $ac_c" 1>&6
8956 else
8957   
8958       
8959       ac_ext=C
8960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8961 ac_cpp='$CXXCPP $CPPFLAGS'
8962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8964 cross_compiling=$ac_cv_prog_cxx_cross
8965
8966       cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969 #include <math.h>
8970 int main() {
8971  frexpf(0, 0);
8972 ; return 0; }
8973 EOF
8974 if { (eval echo configure:8975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8975   rm -rf conftest*
8976   glibcpp_cv_func_frexpf_use=yes
8977 else
8978   echo "configure: failed program was:" >&5
8979   cat conftest.$ac_ext >&5
8980   rm -rf conftest*
8981   glibcpp_cv_func_frexpf_use=no
8982 fi
8983 rm -f conftest*
8984       ac_ext=c
8985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8986 ac_cpp='$CPP $CPPFLAGS'
8987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8989 cross_compiling=$ac_cv_prog_cc_cross
8990
8991     
8992 fi
8993
8994   fi
8995   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8996
8997   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8998     for ac_func in frexpf
8999 do
9000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9001 echo "configure:9002: checking for $ac_func" >&5
9002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9003   echo $ac_n "(cached) $ac_c" 1>&6
9004 else
9005   cat > conftest.$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008 /* System header to define __stub macros and hopefully few prototypes,
9009     which can conflict with char $ac_func(); below.  */
9010 #include <assert.h>
9011 /* Override any gcc2 internal prototype to avoid an error.  */
9012 /* We use char because int might match the return type of a gcc2
9013     builtin and then its argument prototype would still apply.  */
9014 char $ac_func();
9015
9016 int main() {
9017
9018 /* The GNU C library defines this for functions which it implements
9019     to always fail with ENOSYS.  Some functions are actually named
9020     something starting with __ and the normal name is an alias.  */
9021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9022 choke me
9023 #else
9024 $ac_func();
9025 #endif
9026
9027 ; return 0; }
9028 EOF
9029 if { (eval echo configure:9030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9030   rm -rf conftest*
9031   eval "ac_cv_func_$ac_func=yes"
9032 else
9033   echo "configure: failed program was:" >&5
9034   cat conftest.$ac_ext >&5
9035   rm -rf conftest*
9036   eval "ac_cv_func_$ac_func=no"
9037 fi
9038 rm -f conftest*
9039 fi
9040
9041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9042   echo "$ac_t""yes" 1>&6
9043     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9044   cat >> confdefs.h <<EOF
9045 #define $ac_tr_func 1
9046 EOF
9047  
9048 else
9049   echo "$ac_t""no" 1>&6
9050 fi
9051 done
9052     
9053   else
9054     
9055   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9056 echo "configure:9057: checking for _frexpf declaration" >&5
9057   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9058     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9059   echo $ac_n "(cached) $ac_c" 1>&6
9060 else
9061   
9062       
9063       ac_ext=C
9064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9065 ac_cpp='$CXXCPP $CPPFLAGS'
9066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9068 cross_compiling=$ac_cv_prog_cxx_cross
9069
9070       cat > conftest.$ac_ext <<EOF
9071 #line 9072 "configure"
9072 #include "confdefs.h"
9073 #include <math.h>
9074 int main() {
9075  _frexpf(0, 0);
9076 ; return 0; }
9077 EOF
9078 if { (eval echo configure:9079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9079   rm -rf conftest*
9080   glibcpp_cv_func__frexpf_use=yes
9081 else
9082   echo "configure: failed program was:" >&5
9083   cat conftest.$ac_ext >&5
9084   rm -rf conftest*
9085   glibcpp_cv_func__frexpf_use=no
9086 fi
9087 rm -f conftest*
9088       ac_ext=c
9089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9090 ac_cpp='$CPP $CPPFLAGS'
9091 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9092 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9093 cross_compiling=$ac_cv_prog_cc_cross
9094
9095     
9096 fi
9097
9098   fi
9099   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9100
9101     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9102       for ac_func in _frexpf
9103 do
9104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9105 echo "configure:9106: checking for $ac_func" >&5
9106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9107   echo $ac_n "(cached) $ac_c" 1>&6
9108 else
9109   cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9112 /* System header to define __stub macros and hopefully few prototypes,
9113     which can conflict with char $ac_func(); below.  */
9114 #include <assert.h>
9115 /* Override any gcc2 internal prototype to avoid an error.  */
9116 /* We use char because int might match the return type of a gcc2
9117     builtin and then its argument prototype would still apply.  */
9118 char $ac_func();
9119
9120 int main() {
9121
9122 /* The GNU C library defines this for functions which it implements
9123     to always fail with ENOSYS.  Some functions are actually named
9124     something starting with __ and the normal name is an alias.  */
9125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9126 choke me
9127 #else
9128 $ac_func();
9129 #endif
9130
9131 ; return 0; }
9132 EOF
9133 if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134   rm -rf conftest*
9135   eval "ac_cv_func_$ac_func=yes"
9136 else
9137   echo "configure: failed program was:" >&5
9138   cat conftest.$ac_ext >&5
9139   rm -rf conftest*
9140   eval "ac_cv_func_$ac_func=no"
9141 fi
9142 rm -f conftest*
9143 fi
9144
9145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9146   echo "$ac_t""yes" 1>&6
9147     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9148   cat >> confdefs.h <<EOF
9149 #define $ac_tr_func 1
9150 EOF
9151  
9152 else
9153   echo "$ac_t""no" 1>&6
9154 fi
9155 done
9156     
9157     fi
9158   fi
9159
9160   
9161   
9162   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9163 echo "configure:9164: checking for ldexpf declaration" >&5
9164   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9165     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9166   echo $ac_n "(cached) $ac_c" 1>&6
9167 else
9168   
9169       
9170       ac_ext=C
9171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9172 ac_cpp='$CXXCPP $CPPFLAGS'
9173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9175 cross_compiling=$ac_cv_prog_cxx_cross
9176
9177       cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180 #include <math.h>
9181 int main() {
9182  ldexpf(0, 0);
9183 ; return 0; }
9184 EOF
9185 if { (eval echo configure:9186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9186   rm -rf conftest*
9187   glibcpp_cv_func_ldexpf_use=yes
9188 else
9189   echo "configure: failed program was:" >&5
9190   cat conftest.$ac_ext >&5
9191   rm -rf conftest*
9192   glibcpp_cv_func_ldexpf_use=no
9193 fi
9194 rm -f conftest*
9195       ac_ext=c
9196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9197 ac_cpp='$CPP $CPPFLAGS'
9198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9200 cross_compiling=$ac_cv_prog_cc_cross
9201
9202     
9203 fi
9204
9205   fi
9206   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9207
9208   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9209     for ac_func in ldexpf
9210 do
9211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9212 echo "configure:9213: checking for $ac_func" >&5
9213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9214   echo $ac_n "(cached) $ac_c" 1>&6
9215 else
9216   cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure"
9218 #include "confdefs.h"
9219 /* System header to define __stub macros and hopefully few prototypes,
9220     which can conflict with char $ac_func(); below.  */
9221 #include <assert.h>
9222 /* Override any gcc2 internal prototype to avoid an error.  */
9223 /* We use char because int might match the return type of a gcc2
9224     builtin and then its argument prototype would still apply.  */
9225 char $ac_func();
9226
9227 int main() {
9228
9229 /* The GNU C library defines this for functions which it implements
9230     to always fail with ENOSYS.  Some functions are actually named
9231     something starting with __ and the normal name is an alias.  */
9232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9233 choke me
9234 #else
9235 $ac_func();
9236 #endif
9237
9238 ; return 0; }
9239 EOF
9240 if { (eval echo configure:9241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9241   rm -rf conftest*
9242   eval "ac_cv_func_$ac_func=yes"
9243 else
9244   echo "configure: failed program was:" >&5
9245   cat conftest.$ac_ext >&5
9246   rm -rf conftest*
9247   eval "ac_cv_func_$ac_func=no"
9248 fi
9249 rm -f conftest*
9250 fi
9251
9252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9253   echo "$ac_t""yes" 1>&6
9254     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9255   cat >> confdefs.h <<EOF
9256 #define $ac_tr_func 1
9257 EOF
9258  
9259 else
9260   echo "$ac_t""no" 1>&6
9261 fi
9262 done
9263     
9264   else
9265     
9266   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9267 echo "configure:9268: checking for _ldexpf declaration" >&5
9268   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9269     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9270   echo $ac_n "(cached) $ac_c" 1>&6
9271 else
9272   
9273       
9274       ac_ext=C
9275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9276 ac_cpp='$CXXCPP $CPPFLAGS'
9277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9279 cross_compiling=$ac_cv_prog_cxx_cross
9280
9281       cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284 #include <math.h>
9285 int main() {
9286  _ldexpf(0, 0);
9287 ; return 0; }
9288 EOF
9289 if { (eval echo configure:9290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9290   rm -rf conftest*
9291   glibcpp_cv_func__ldexpf_use=yes
9292 else
9293   echo "configure: failed program was:" >&5
9294   cat conftest.$ac_ext >&5
9295   rm -rf conftest*
9296   glibcpp_cv_func__ldexpf_use=no
9297 fi
9298 rm -f conftest*
9299       ac_ext=c
9300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9301 ac_cpp='$CPP $CPPFLAGS'
9302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9304 cross_compiling=$ac_cv_prog_cc_cross
9305
9306     
9307 fi
9308
9309   fi
9310   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9311
9312     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9313       for ac_func in _ldexpf
9314 do
9315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9316 echo "configure:9317: checking for $ac_func" >&5
9317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9318   echo $ac_n "(cached) $ac_c" 1>&6
9319 else
9320   cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9323 /* System header to define __stub macros and hopefully few prototypes,
9324     which can conflict with char $ac_func(); below.  */
9325 #include <assert.h>
9326 /* Override any gcc2 internal prototype to avoid an error.  */
9327 /* We use char because int might match the return type of a gcc2
9328     builtin and then its argument prototype would still apply.  */
9329 char $ac_func();
9330
9331 int main() {
9332
9333 /* The GNU C library defines this for functions which it implements
9334     to always fail with ENOSYS.  Some functions are actually named
9335     something starting with __ and the normal name is an alias.  */
9336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9337 choke me
9338 #else
9339 $ac_func();
9340 #endif
9341
9342 ; return 0; }
9343 EOF
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9345   rm -rf conftest*
9346   eval "ac_cv_func_$ac_func=yes"
9347 else
9348   echo "configure: failed program was:" >&5
9349   cat conftest.$ac_ext >&5
9350   rm -rf conftest*
9351   eval "ac_cv_func_$ac_func=no"
9352 fi
9353 rm -f conftest*
9354 fi
9355
9356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9357   echo "$ac_t""yes" 1>&6
9358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9359   cat >> confdefs.h <<EOF
9360 #define $ac_tr_func 1
9361 EOF
9362  
9363 else
9364   echo "$ac_t""no" 1>&6
9365 fi
9366 done
9367     
9368     fi
9369   fi
9370
9371   
9372   
9373   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9374 echo "configure:9375: checking for logf declaration" >&5
9375   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9376     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9377   echo $ac_n "(cached) $ac_c" 1>&6
9378 else
9379   
9380       
9381       ac_ext=C
9382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9383 ac_cpp='$CXXCPP $CPPFLAGS'
9384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9386 cross_compiling=$ac_cv_prog_cxx_cross
9387
9388       cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include <math.h>
9392                       #ifdef HAVE_IEEEFP_H
9393                       #include <ieeefp.h>
9394                       #endif
9395                      
9396 int main() {
9397  logf(0);
9398 ; return 0; }
9399 EOF
9400 if { (eval echo configure:9401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9401   rm -rf conftest*
9402   glibcpp_cv_func_logf_use=yes
9403 else
9404   echo "configure: failed program was:" >&5
9405   cat conftest.$ac_ext >&5
9406   rm -rf conftest*
9407   glibcpp_cv_func_logf_use=no
9408 fi
9409 rm -f conftest*
9410       ac_ext=c
9411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9412 ac_cpp='$CPP $CPPFLAGS'
9413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9415 cross_compiling=$ac_cv_prog_cc_cross
9416
9417     
9418 fi
9419
9420   fi
9421   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9422
9423   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9424     for ac_func in logf
9425 do
9426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9427 echo "configure:9428: checking for $ac_func" >&5
9428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9429   echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9431   cat > conftest.$ac_ext <<EOF
9432 #line 9433 "configure"
9433 #include "confdefs.h"
9434 /* System header to define __stub macros and hopefully few prototypes,
9435     which can conflict with char $ac_func(); below.  */
9436 #include <assert.h>
9437 /* Override any gcc2 internal prototype to avoid an error.  */
9438 /* We use char because int might match the return type of a gcc2
9439     builtin and then its argument prototype would still apply.  */
9440 char $ac_func();
9441
9442 int main() {
9443
9444 /* The GNU C library defines this for functions which it implements
9445     to always fail with ENOSYS.  Some functions are actually named
9446     something starting with __ and the normal name is an alias.  */
9447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448 choke me
9449 #else
9450 $ac_func();
9451 #endif
9452
9453 ; return 0; }
9454 EOF
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456   rm -rf conftest*
9457   eval "ac_cv_func_$ac_func=yes"
9458 else
9459   echo "configure: failed program was:" >&5
9460   cat conftest.$ac_ext >&5
9461   rm -rf conftest*
9462   eval "ac_cv_func_$ac_func=no"
9463 fi
9464 rm -f conftest*
9465 fi
9466
9467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9468   echo "$ac_t""yes" 1>&6
9469     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9470   cat >> confdefs.h <<EOF
9471 #define $ac_tr_func 1
9472 EOF
9473  
9474 else
9475   echo "$ac_t""no" 1>&6
9476 fi
9477 done
9478     
9479   else
9480     
9481   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9482 echo "configure:9483: checking for _logf declaration" >&5
9483   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9484     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9485   echo $ac_n "(cached) $ac_c" 1>&6
9486 else
9487   
9488       
9489       ac_ext=C
9490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9491 ac_cpp='$CXXCPP $CPPFLAGS'
9492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9494 cross_compiling=$ac_cv_prog_cxx_cross
9495
9496       cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 #include <math.h>
9500                       #ifdef HAVE_IEEEFP_H
9501                       #include <ieeefp.h>
9502                       #endif
9503                      
9504 int main() {
9505  _logf(0);
9506 ; return 0; }
9507 EOF
9508 if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509   rm -rf conftest*
9510   glibcpp_cv_func__logf_use=yes
9511 else
9512   echo "configure: failed program was:" >&5
9513   cat conftest.$ac_ext >&5
9514   rm -rf conftest*
9515   glibcpp_cv_func__logf_use=no
9516 fi
9517 rm -f conftest*
9518       ac_ext=c
9519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9520 ac_cpp='$CPP $CPPFLAGS'
9521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9523 cross_compiling=$ac_cv_prog_cc_cross
9524
9525     
9526 fi
9527
9528   fi
9529   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9530
9531     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9532       for ac_func in _logf
9533 do
9534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9535 echo "configure:9536: checking for $ac_func" >&5
9536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9537   echo $ac_n "(cached) $ac_c" 1>&6
9538 else
9539   cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 /* System header to define __stub macros and hopefully few prototypes,
9543     which can conflict with char $ac_func(); below.  */
9544 #include <assert.h>
9545 /* Override any gcc2 internal prototype to avoid an error.  */
9546 /* We use char because int might match the return type of a gcc2
9547     builtin and then its argument prototype would still apply.  */
9548 char $ac_func();
9549
9550 int main() {
9551
9552 /* The GNU C library defines this for functions which it implements
9553     to always fail with ENOSYS.  Some functions are actually named
9554     something starting with __ and the normal name is an alias.  */
9555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9556 choke me
9557 #else
9558 $ac_func();
9559 #endif
9560
9561 ; return 0; }
9562 EOF
9563 if { (eval echo configure:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9564   rm -rf conftest*
9565   eval "ac_cv_func_$ac_func=yes"
9566 else
9567   echo "configure: failed program was:" >&5
9568   cat conftest.$ac_ext >&5
9569   rm -rf conftest*
9570   eval "ac_cv_func_$ac_func=no"
9571 fi
9572 rm -f conftest*
9573 fi
9574
9575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9576   echo "$ac_t""yes" 1>&6
9577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9578   cat >> confdefs.h <<EOF
9579 #define $ac_tr_func 1
9580 EOF
9581  
9582 else
9583   echo "$ac_t""no" 1>&6
9584 fi
9585 done
9586     
9587     fi
9588   fi
9589
9590   
9591   
9592   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9593 echo "configure:9594: checking for log10f declaration" >&5
9594   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9595     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9596   echo $ac_n "(cached) $ac_c" 1>&6
9597 else
9598   
9599       
9600       ac_ext=C
9601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9602 ac_cpp='$CXXCPP $CPPFLAGS'
9603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9605 cross_compiling=$ac_cv_prog_cxx_cross
9606
9607       cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 #include <math.h>
9611                       #ifdef HAVE_IEEEFP_H
9612                       #include <ieeefp.h>
9613                       #endif
9614                      
9615 int main() {
9616  log10f(0);
9617 ; return 0; }
9618 EOF
9619 if { (eval echo configure:9620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9620   rm -rf conftest*
9621   glibcpp_cv_func_log10f_use=yes
9622 else
9623   echo "configure: failed program was:" >&5
9624   cat conftest.$ac_ext >&5
9625   rm -rf conftest*
9626   glibcpp_cv_func_log10f_use=no
9627 fi
9628 rm -f conftest*
9629       ac_ext=c
9630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9631 ac_cpp='$CPP $CPPFLAGS'
9632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9634 cross_compiling=$ac_cv_prog_cc_cross
9635
9636     
9637 fi
9638
9639   fi
9640   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9641
9642   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9643     for ac_func in log10f
9644 do
9645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9646 echo "configure:9647: checking for $ac_func" >&5
9647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9648   echo $ac_n "(cached) $ac_c" 1>&6
9649 else
9650   cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9653 /* System header to define __stub macros and hopefully few prototypes,
9654     which can conflict with char $ac_func(); below.  */
9655 #include <assert.h>
9656 /* Override any gcc2 internal prototype to avoid an error.  */
9657 /* We use char because int might match the return type of a gcc2
9658     builtin and then its argument prototype would still apply.  */
9659 char $ac_func();
9660
9661 int main() {
9662
9663 /* The GNU C library defines this for functions which it implements
9664     to always fail with ENOSYS.  Some functions are actually named
9665     something starting with __ and the normal name is an alias.  */
9666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9667 choke me
9668 #else
9669 $ac_func();
9670 #endif
9671
9672 ; return 0; }
9673 EOF
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9675   rm -rf conftest*
9676   eval "ac_cv_func_$ac_func=yes"
9677 else
9678   echo "configure: failed program was:" >&5
9679   cat conftest.$ac_ext >&5
9680   rm -rf conftest*
9681   eval "ac_cv_func_$ac_func=no"
9682 fi
9683 rm -f conftest*
9684 fi
9685
9686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9687   echo "$ac_t""yes" 1>&6
9688     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9689   cat >> confdefs.h <<EOF
9690 #define $ac_tr_func 1
9691 EOF
9692  
9693 else
9694   echo "$ac_t""no" 1>&6
9695 fi
9696 done
9697     
9698   else
9699     
9700   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9701 echo "configure:9702: checking for _log10f declaration" >&5
9702   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9703     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9704   echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9706   
9707       
9708       ac_ext=C
9709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9710 ac_cpp='$CXXCPP $CPPFLAGS'
9711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9713 cross_compiling=$ac_cv_prog_cxx_cross
9714
9715       cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 #include <math.h>
9719                       #ifdef HAVE_IEEEFP_H
9720                       #include <ieeefp.h>
9721                       #endif
9722                      
9723 int main() {
9724  _log10f(0);
9725 ; return 0; }
9726 EOF
9727 if { (eval echo configure:9728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9728   rm -rf conftest*
9729   glibcpp_cv_func__log10f_use=yes
9730 else
9731   echo "configure: failed program was:" >&5
9732   cat conftest.$ac_ext >&5
9733   rm -rf conftest*
9734   glibcpp_cv_func__log10f_use=no
9735 fi
9736 rm -f conftest*
9737       ac_ext=c
9738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9739 ac_cpp='$CPP $CPPFLAGS'
9740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9742 cross_compiling=$ac_cv_prog_cc_cross
9743
9744     
9745 fi
9746
9747   fi
9748   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9749
9750     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9751       for ac_func in _log10f
9752 do
9753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9754 echo "configure:9755: checking for $ac_func" >&5
9755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9756   echo $ac_n "(cached) $ac_c" 1>&6
9757 else
9758   cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 /* System header to define __stub macros and hopefully few prototypes,
9762     which can conflict with char $ac_func(); below.  */
9763 #include <assert.h>
9764 /* Override any gcc2 internal prototype to avoid an error.  */
9765 /* We use char because int might match the return type of a gcc2
9766     builtin and then its argument prototype would still apply.  */
9767 char $ac_func();
9768
9769 int main() {
9770
9771 /* The GNU C library defines this for functions which it implements
9772     to always fail with ENOSYS.  Some functions are actually named
9773     something starting with __ and the normal name is an alias.  */
9774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9775 choke me
9776 #else
9777 $ac_func();
9778 #endif
9779
9780 ; return 0; }
9781 EOF
9782 if { (eval echo configure:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9783   rm -rf conftest*
9784   eval "ac_cv_func_$ac_func=yes"
9785 else
9786   echo "configure: failed program was:" >&5
9787   cat conftest.$ac_ext >&5
9788   rm -rf conftest*
9789   eval "ac_cv_func_$ac_func=no"
9790 fi
9791 rm -f conftest*
9792 fi
9793
9794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9795   echo "$ac_t""yes" 1>&6
9796     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9797   cat >> confdefs.h <<EOF
9798 #define $ac_tr_func 1
9799 EOF
9800  
9801 else
9802   echo "$ac_t""no" 1>&6
9803 fi
9804 done
9805     
9806     fi
9807   fi
9808
9809   
9810   
9811   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9812 echo "configure:9813: checking for modff declaration" >&5
9813   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9814     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9815   echo $ac_n "(cached) $ac_c" 1>&6
9816 else
9817   
9818       
9819       ac_ext=C
9820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9821 ac_cpp='$CXXCPP $CPPFLAGS'
9822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9824 cross_compiling=$ac_cv_prog_cxx_cross
9825
9826       cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 #include <math.h>
9830 int main() {
9831  modff(0, 0);
9832 ; return 0; }
9833 EOF
9834 if { (eval echo configure:9835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9835   rm -rf conftest*
9836   glibcpp_cv_func_modff_use=yes
9837 else
9838   echo "configure: failed program was:" >&5
9839   cat conftest.$ac_ext >&5
9840   rm -rf conftest*
9841   glibcpp_cv_func_modff_use=no
9842 fi
9843 rm -f conftest*
9844       ac_ext=c
9845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9846 ac_cpp='$CPP $CPPFLAGS'
9847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9849 cross_compiling=$ac_cv_prog_cc_cross
9850
9851     
9852 fi
9853
9854   fi
9855   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9856
9857   if test x$glibcpp_cv_func_modff_use = x"yes"; then
9858     for ac_func in modff
9859 do
9860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9861 echo "configure:9862: checking for $ac_func" >&5
9862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9863   echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9865   cat > conftest.$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9868 /* System header to define __stub macros and hopefully few prototypes,
9869     which can conflict with char $ac_func(); below.  */
9870 #include <assert.h>
9871 /* Override any gcc2 internal prototype to avoid an error.  */
9872 /* We use char because int might match the return type of a gcc2
9873     builtin and then its argument prototype would still apply.  */
9874 char $ac_func();
9875
9876 int main() {
9877
9878 /* The GNU C library defines this for functions which it implements
9879     to always fail with ENOSYS.  Some functions are actually named
9880     something starting with __ and the normal name is an alias.  */
9881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9882 choke me
9883 #else
9884 $ac_func();
9885 #endif
9886
9887 ; return 0; }
9888 EOF
9889 if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9890   rm -rf conftest*
9891   eval "ac_cv_func_$ac_func=yes"
9892 else
9893   echo "configure: failed program was:" >&5
9894   cat conftest.$ac_ext >&5
9895   rm -rf conftest*
9896   eval "ac_cv_func_$ac_func=no"
9897 fi
9898 rm -f conftest*
9899 fi
9900
9901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9902   echo "$ac_t""yes" 1>&6
9903     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9904   cat >> confdefs.h <<EOF
9905 #define $ac_tr_func 1
9906 EOF
9907  
9908 else
9909   echo "$ac_t""no" 1>&6
9910 fi
9911 done
9912     
9913   else
9914     
9915   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9916 echo "configure:9917: checking for _modff declaration" >&5
9917   if test x${glibcpp_cv_func__modff_use+set} != xset; then
9918     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9919   echo $ac_n "(cached) $ac_c" 1>&6
9920 else
9921   
9922       
9923       ac_ext=C
9924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9925 ac_cpp='$CXXCPP $CPPFLAGS'
9926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9928 cross_compiling=$ac_cv_prog_cxx_cross
9929
9930       cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure"
9932 #include "confdefs.h"
9933 #include <math.h>
9934 int main() {
9935  _modff(0, 0);
9936 ; return 0; }
9937 EOF
9938 if { (eval echo configure:9939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9939   rm -rf conftest*
9940   glibcpp_cv_func__modff_use=yes
9941 else
9942   echo "configure: failed program was:" >&5
9943   cat conftest.$ac_ext >&5
9944   rm -rf conftest*
9945   glibcpp_cv_func__modff_use=no
9946 fi
9947 rm -f conftest*
9948       ac_ext=c
9949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9950 ac_cpp='$CPP $CPPFLAGS'
9951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9953 cross_compiling=$ac_cv_prog_cc_cross
9954
9955     
9956 fi
9957
9958   fi
9959   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9960
9961     if test x$glibcpp_cv_func__modff_use = x"yes"; then
9962       for ac_func in _modff
9963 do
9964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9965 echo "configure:9966: checking for $ac_func" >&5
9966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9967   echo $ac_n "(cached) $ac_c" 1>&6
9968 else
9969   cat > conftest.$ac_ext <<EOF
9970 #line 9971 "configure"
9971 #include "confdefs.h"
9972 /* System header to define __stub macros and hopefully few prototypes,
9973     which can conflict with char $ac_func(); below.  */
9974 #include <assert.h>
9975 /* Override any gcc2 internal prototype to avoid an error.  */
9976 /* We use char because int might match the return type of a gcc2
9977     builtin and then its argument prototype would still apply.  */
9978 char $ac_func();
9979
9980 int main() {
9981
9982 /* The GNU C library defines this for functions which it implements
9983     to always fail with ENOSYS.  Some functions are actually named
9984     something starting with __ and the normal name is an alias.  */
9985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9986 choke me
9987 #else
9988 $ac_func();
9989 #endif
9990
9991 ; return 0; }
9992 EOF
9993 if { (eval echo configure:9994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9994   rm -rf conftest*
9995   eval "ac_cv_func_$ac_func=yes"
9996 else
9997   echo "configure: failed program was:" >&5
9998   cat conftest.$ac_ext >&5
9999   rm -rf conftest*
10000   eval "ac_cv_func_$ac_func=no"
10001 fi
10002 rm -f conftest*
10003 fi
10004
10005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10006   echo "$ac_t""yes" 1>&6
10007     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10008   cat >> confdefs.h <<EOF
10009 #define $ac_tr_func 1
10010 EOF
10011  
10012 else
10013   echo "$ac_t""no" 1>&6
10014 fi
10015 done
10016     
10017     fi
10018   fi
10019
10020   
10021   
10022   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10023 echo "configure:10024: checking for powf declaration" >&5
10024   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10025     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10026   echo $ac_n "(cached) $ac_c" 1>&6
10027 else
10028   
10029       
10030       ac_ext=C
10031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10032 ac_cpp='$CXXCPP $CPPFLAGS'
10033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10035 cross_compiling=$ac_cv_prog_cxx_cross
10036
10037       cat > conftest.$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 #include <math.h>
10041 int main() {
10042  powf(0, 0);
10043 ; return 0; }
10044 EOF
10045 if { (eval echo configure:10046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10046   rm -rf conftest*
10047   glibcpp_cv_func_powf_use=yes
10048 else
10049   echo "configure: failed program was:" >&5
10050   cat conftest.$ac_ext >&5
10051   rm -rf conftest*
10052   glibcpp_cv_func_powf_use=no
10053 fi
10054 rm -f conftest*
10055       ac_ext=c
10056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10057 ac_cpp='$CPP $CPPFLAGS'
10058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10060 cross_compiling=$ac_cv_prog_cc_cross
10061
10062     
10063 fi
10064
10065   fi
10066   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10067
10068   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10069     for ac_func in powf
10070 do
10071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10072 echo "configure:10073: checking for $ac_func" >&5
10073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10074   echo $ac_n "(cached) $ac_c" 1>&6
10075 else
10076   cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 /* System header to define __stub macros and hopefully few prototypes,
10080     which can conflict with char $ac_func(); below.  */
10081 #include <assert.h>
10082 /* Override any gcc2 internal prototype to avoid an error.  */
10083 /* We use char because int might match the return type of a gcc2
10084     builtin and then its argument prototype would still apply.  */
10085 char $ac_func();
10086
10087 int main() {
10088
10089 /* The GNU C library defines this for functions which it implements
10090     to always fail with ENOSYS.  Some functions are actually named
10091     something starting with __ and the normal name is an alias.  */
10092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10093 choke me
10094 #else
10095 $ac_func();
10096 #endif
10097
10098 ; return 0; }
10099 EOF
10100 if { (eval echo configure:10101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10101   rm -rf conftest*
10102   eval "ac_cv_func_$ac_func=yes"
10103 else
10104   echo "configure: failed program was:" >&5
10105   cat conftest.$ac_ext >&5
10106   rm -rf conftest*
10107   eval "ac_cv_func_$ac_func=no"
10108 fi
10109 rm -f conftest*
10110 fi
10111
10112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10113   echo "$ac_t""yes" 1>&6
10114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10115   cat >> confdefs.h <<EOF
10116 #define $ac_tr_func 1
10117 EOF
10118  
10119 else
10120   echo "$ac_t""no" 1>&6
10121 fi
10122 done
10123     
10124   else
10125     
10126   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10127 echo "configure:10128: checking for _powf declaration" >&5
10128   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10129     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10130   echo $ac_n "(cached) $ac_c" 1>&6
10131 else
10132   
10133       
10134       ac_ext=C
10135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10136 ac_cpp='$CXXCPP $CPPFLAGS'
10137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10139 cross_compiling=$ac_cv_prog_cxx_cross
10140
10141       cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 #include <math.h>
10145 int main() {
10146  _powf(0, 0);
10147 ; return 0; }
10148 EOF
10149 if { (eval echo configure:10150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10150   rm -rf conftest*
10151   glibcpp_cv_func__powf_use=yes
10152 else
10153   echo "configure: failed program was:" >&5
10154   cat conftest.$ac_ext >&5
10155   rm -rf conftest*
10156   glibcpp_cv_func__powf_use=no
10157 fi
10158 rm -f conftest*
10159       ac_ext=c
10160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10161 ac_cpp='$CPP $CPPFLAGS'
10162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10164 cross_compiling=$ac_cv_prog_cc_cross
10165
10166     
10167 fi
10168
10169   fi
10170   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10171
10172     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10173       for ac_func in _powf
10174 do
10175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10176 echo "configure:10177: checking for $ac_func" >&5
10177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10178   echo $ac_n "(cached) $ac_c" 1>&6
10179 else
10180   cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 /* System header to define __stub macros and hopefully few prototypes,
10184     which can conflict with char $ac_func(); below.  */
10185 #include <assert.h>
10186 /* Override any gcc2 internal prototype to avoid an error.  */
10187 /* We use char because int might match the return type of a gcc2
10188     builtin and then its argument prototype would still apply.  */
10189 char $ac_func();
10190
10191 int main() {
10192
10193 /* The GNU C library defines this for functions which it implements
10194     to always fail with ENOSYS.  Some functions are actually named
10195     something starting with __ and the normal name is an alias.  */
10196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10197 choke me
10198 #else
10199 $ac_func();
10200 #endif
10201
10202 ; return 0; }
10203 EOF
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10205   rm -rf conftest*
10206   eval "ac_cv_func_$ac_func=yes"
10207 else
10208   echo "configure: failed program was:" >&5
10209   cat conftest.$ac_ext >&5
10210   rm -rf conftest*
10211   eval "ac_cv_func_$ac_func=no"
10212 fi
10213 rm -f conftest*
10214 fi
10215
10216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10217   echo "$ac_t""yes" 1>&6
10218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10219   cat >> confdefs.h <<EOF
10220 #define $ac_tr_func 1
10221 EOF
10222  
10223 else
10224   echo "$ac_t""no" 1>&6
10225 fi
10226 done
10227     
10228     fi
10229   fi
10230
10231   
10232   
10233   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10234 echo "configure:10235: checking for sqrtf declaration" >&5
10235   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10236     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10237   echo $ac_n "(cached) $ac_c" 1>&6
10238 else
10239   
10240       
10241       ac_ext=C
10242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10243 ac_cpp='$CXXCPP $CPPFLAGS'
10244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10246 cross_compiling=$ac_cv_prog_cxx_cross
10247
10248       cat > conftest.$ac_ext <<EOF
10249 #line 10250 "configure"
10250 #include "confdefs.h"
10251 #include <math.h>
10252                       #ifdef HAVE_IEEEFP_H
10253                       #include <ieeefp.h>
10254                       #endif
10255                      
10256 int main() {
10257  sqrtf(0);
10258 ; return 0; }
10259 EOF
10260 if { (eval echo configure:10261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10261   rm -rf conftest*
10262   glibcpp_cv_func_sqrtf_use=yes
10263 else
10264   echo "configure: failed program was:" >&5
10265   cat conftest.$ac_ext >&5
10266   rm -rf conftest*
10267   glibcpp_cv_func_sqrtf_use=no
10268 fi
10269 rm -f conftest*
10270       ac_ext=c
10271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10272 ac_cpp='$CPP $CPPFLAGS'
10273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10275 cross_compiling=$ac_cv_prog_cc_cross
10276
10277     
10278 fi
10279
10280   fi
10281   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10282
10283   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10284     for ac_func in sqrtf
10285 do
10286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10287 echo "configure:10288: checking for $ac_func" >&5
10288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10289   echo $ac_n "(cached) $ac_c" 1>&6
10290 else
10291   cat > conftest.$ac_ext <<EOF
10292 #line 10293 "configure"
10293 #include "confdefs.h"
10294 /* System header to define __stub macros and hopefully few prototypes,
10295     which can conflict with char $ac_func(); below.  */
10296 #include <assert.h>
10297 /* Override any gcc2 internal prototype to avoid an error.  */
10298 /* We use char because int might match the return type of a gcc2
10299     builtin and then its argument prototype would still apply.  */
10300 char $ac_func();
10301
10302 int main() {
10303
10304 /* The GNU C library defines this for functions which it implements
10305     to always fail with ENOSYS.  Some functions are actually named
10306     something starting with __ and the normal name is an alias.  */
10307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10308 choke me
10309 #else
10310 $ac_func();
10311 #endif
10312
10313 ; return 0; }
10314 EOF
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10316   rm -rf conftest*
10317   eval "ac_cv_func_$ac_func=yes"
10318 else
10319   echo "configure: failed program was:" >&5
10320   cat conftest.$ac_ext >&5
10321   rm -rf conftest*
10322   eval "ac_cv_func_$ac_func=no"
10323 fi
10324 rm -f conftest*
10325 fi
10326
10327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10328   echo "$ac_t""yes" 1>&6
10329     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10330   cat >> confdefs.h <<EOF
10331 #define $ac_tr_func 1
10332 EOF
10333  
10334 else
10335   echo "$ac_t""no" 1>&6
10336 fi
10337 done
10338     
10339   else
10340     
10341   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10342 echo "configure:10343: checking for _sqrtf declaration" >&5
10343   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10344     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10345   echo $ac_n "(cached) $ac_c" 1>&6
10346 else
10347   
10348       
10349       ac_ext=C
10350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10351 ac_cpp='$CXXCPP $CPPFLAGS'
10352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10354 cross_compiling=$ac_cv_prog_cxx_cross
10355
10356       cat > conftest.$ac_ext <<EOF
10357 #line 10358 "configure"
10358 #include "confdefs.h"
10359 #include <math.h>
10360                       #ifdef HAVE_IEEEFP_H
10361                       #include <ieeefp.h>
10362                       #endif
10363                      
10364 int main() {
10365  _sqrtf(0);
10366 ; return 0; }
10367 EOF
10368 if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10369   rm -rf conftest*
10370   glibcpp_cv_func__sqrtf_use=yes
10371 else
10372   echo "configure: failed program was:" >&5
10373   cat conftest.$ac_ext >&5
10374   rm -rf conftest*
10375   glibcpp_cv_func__sqrtf_use=no
10376 fi
10377 rm -f conftest*
10378       ac_ext=c
10379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10380 ac_cpp='$CPP $CPPFLAGS'
10381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10383 cross_compiling=$ac_cv_prog_cc_cross
10384
10385     
10386 fi
10387
10388   fi
10389   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10390
10391     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10392       for ac_func in _sqrtf
10393 do
10394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10395 echo "configure:10396: checking for $ac_func" >&5
10396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10397   echo $ac_n "(cached) $ac_c" 1>&6
10398 else
10399   cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10402 /* System header to define __stub macros and hopefully few prototypes,
10403     which can conflict with char $ac_func(); below.  */
10404 #include <assert.h>
10405 /* Override any gcc2 internal prototype to avoid an error.  */
10406 /* We use char because int might match the return type of a gcc2
10407     builtin and then its argument prototype would still apply.  */
10408 char $ac_func();
10409
10410 int main() {
10411
10412 /* The GNU C library defines this for functions which it implements
10413     to always fail with ENOSYS.  Some functions are actually named
10414     something starting with __ and the normal name is an alias.  */
10415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10416 choke me
10417 #else
10418 $ac_func();
10419 #endif
10420
10421 ; return 0; }
10422 EOF
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10424   rm -rf conftest*
10425   eval "ac_cv_func_$ac_func=yes"
10426 else
10427   echo "configure: failed program was:" >&5
10428   cat conftest.$ac_ext >&5
10429   rm -rf conftest*
10430   eval "ac_cv_func_$ac_func=no"
10431 fi
10432 rm -f conftest*
10433 fi
10434
10435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10436   echo "$ac_t""yes" 1>&6
10437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10438   cat >> confdefs.h <<EOF
10439 #define $ac_tr_func 1
10440 EOF
10441  
10442 else
10443   echo "$ac_t""no" 1>&6
10444 fi
10445 done
10446     
10447     fi
10448   fi
10449
10450   
10451   
10452   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10453 echo "configure:10454: checking for sincosf declaration" >&5
10454   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10455     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10456   echo $ac_n "(cached) $ac_c" 1>&6
10457 else
10458   
10459       
10460       ac_ext=C
10461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10462 ac_cpp='$CXXCPP $CPPFLAGS'
10463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10465 cross_compiling=$ac_cv_prog_cxx_cross
10466
10467       cat > conftest.$ac_ext <<EOF
10468 #line 10469 "configure"
10469 #include "confdefs.h"
10470 #include <math.h>
10471 int main() {
10472  sincosf(0, 0, 0);
10473 ; return 0; }
10474 EOF
10475 if { (eval echo configure:10476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10476   rm -rf conftest*
10477   glibcpp_cv_func_sincosf_use=yes
10478 else
10479   echo "configure: failed program was:" >&5
10480   cat conftest.$ac_ext >&5
10481   rm -rf conftest*
10482   glibcpp_cv_func_sincosf_use=no
10483 fi
10484 rm -f conftest*
10485       ac_ext=c
10486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10487 ac_cpp='$CPP $CPPFLAGS'
10488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10490 cross_compiling=$ac_cv_prog_cc_cross
10491
10492     
10493 fi
10494
10495   fi
10496   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10497
10498   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10499     for ac_func in sincosf
10500 do
10501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10502 echo "configure:10503: checking for $ac_func" >&5
10503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10504   echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10506   cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 /* System header to define __stub macros and hopefully few prototypes,
10510     which can conflict with char $ac_func(); below.  */
10511 #include <assert.h>
10512 /* Override any gcc2 internal prototype to avoid an error.  */
10513 /* We use char because int might match the return type of a gcc2
10514     builtin and then its argument prototype would still apply.  */
10515 char $ac_func();
10516
10517 int main() {
10518
10519 /* The GNU C library defines this for functions which it implements
10520     to always fail with ENOSYS.  Some functions are actually named
10521     something starting with __ and the normal name is an alias.  */
10522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10523 choke me
10524 #else
10525 $ac_func();
10526 #endif
10527
10528 ; return 0; }
10529 EOF
10530 if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10531   rm -rf conftest*
10532   eval "ac_cv_func_$ac_func=yes"
10533 else
10534   echo "configure: failed program was:" >&5
10535   cat conftest.$ac_ext >&5
10536   rm -rf conftest*
10537   eval "ac_cv_func_$ac_func=no"
10538 fi
10539 rm -f conftest*
10540 fi
10541
10542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10543   echo "$ac_t""yes" 1>&6
10544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10545   cat >> confdefs.h <<EOF
10546 #define $ac_tr_func 1
10547 EOF
10548  
10549 else
10550   echo "$ac_t""no" 1>&6
10551 fi
10552 done
10553     
10554   else
10555     
10556   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10557 echo "configure:10558: checking for _sincosf declaration" >&5
10558   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10559     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10560   echo $ac_n "(cached) $ac_c" 1>&6
10561 else
10562   
10563       
10564       ac_ext=C
10565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10566 ac_cpp='$CXXCPP $CPPFLAGS'
10567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10569 cross_compiling=$ac_cv_prog_cxx_cross
10570
10571       cat > conftest.$ac_ext <<EOF
10572 #line 10573 "configure"
10573 #include "confdefs.h"
10574 #include <math.h>
10575 int main() {
10576  _sincosf(0, 0, 0);
10577 ; return 0; }
10578 EOF
10579 if { (eval echo configure:10580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10580   rm -rf conftest*
10581   glibcpp_cv_func__sincosf_use=yes
10582 else
10583   echo "configure: failed program was:" >&5
10584   cat conftest.$ac_ext >&5
10585   rm -rf conftest*
10586   glibcpp_cv_func__sincosf_use=no
10587 fi
10588 rm -f conftest*
10589       ac_ext=c
10590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10591 ac_cpp='$CPP $CPPFLAGS'
10592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10594 cross_compiling=$ac_cv_prog_cc_cross
10595
10596     
10597 fi
10598
10599   fi
10600   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10601
10602     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10603       for ac_func in _sincosf
10604 do
10605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10606 echo "configure:10607: checking for $ac_func" >&5
10607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10608   echo $ac_n "(cached) $ac_c" 1>&6
10609 else
10610   cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10613 /* System header to define __stub macros and hopefully few prototypes,
10614     which can conflict with char $ac_func(); below.  */
10615 #include <assert.h>
10616 /* Override any gcc2 internal prototype to avoid an error.  */
10617 /* We use char because int might match the return type of a gcc2
10618     builtin and then its argument prototype would still apply.  */
10619 char $ac_func();
10620
10621 int main() {
10622
10623 /* The GNU C library defines this for functions which it implements
10624     to always fail with ENOSYS.  Some functions are actually named
10625     something starting with __ and the normal name is an alias.  */
10626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10627 choke me
10628 #else
10629 $ac_func();
10630 #endif
10631
10632 ; return 0; }
10633 EOF
10634 if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10635   rm -rf conftest*
10636   eval "ac_cv_func_$ac_func=yes"
10637 else
10638   echo "configure: failed program was:" >&5
10639   cat conftest.$ac_ext >&5
10640   rm -rf conftest*
10641   eval "ac_cv_func_$ac_func=no"
10642 fi
10643 rm -f conftest*
10644 fi
10645
10646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10647   echo "$ac_t""yes" 1>&6
10648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10649   cat >> confdefs.h <<EOF
10650 #define $ac_tr_func 1
10651 EOF
10652  
10653 else
10654   echo "$ac_t""no" 1>&6
10655 fi
10656 done
10657     
10658     fi
10659   fi
10660
10661   
10662   
10663   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10664 echo "configure:10665: checking for finitef declaration" >&5
10665   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10666     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10667   echo $ac_n "(cached) $ac_c" 1>&6
10668 else
10669   
10670       
10671       ac_ext=C
10672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10673 ac_cpp='$CXXCPP $CPPFLAGS'
10674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10676 cross_compiling=$ac_cv_prog_cxx_cross
10677
10678       cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10681 #include <math.h>
10682                       #ifdef HAVE_IEEEFP_H
10683                       #include <ieeefp.h>
10684                       #endif
10685                      
10686 int main() {
10687  finitef(0);
10688 ; return 0; }
10689 EOF
10690 if { (eval echo configure:10691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10691   rm -rf conftest*
10692   glibcpp_cv_func_finitef_use=yes
10693 else
10694   echo "configure: failed program was:" >&5
10695   cat conftest.$ac_ext >&5
10696   rm -rf conftest*
10697   glibcpp_cv_func_finitef_use=no
10698 fi
10699 rm -f conftest*
10700       ac_ext=c
10701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10702 ac_cpp='$CPP $CPPFLAGS'
10703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10705 cross_compiling=$ac_cv_prog_cc_cross
10706
10707     
10708 fi
10709
10710   fi
10711   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10712
10713   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10714     for ac_func in finitef
10715 do
10716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10717 echo "configure:10718: checking for $ac_func" >&5
10718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10719   echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10721   cat > conftest.$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10724 /* System header to define __stub macros and hopefully few prototypes,
10725     which can conflict with char $ac_func(); below.  */
10726 #include <assert.h>
10727 /* Override any gcc2 internal prototype to avoid an error.  */
10728 /* We use char because int might match the return type of a gcc2
10729     builtin and then its argument prototype would still apply.  */
10730 char $ac_func();
10731
10732 int main() {
10733
10734 /* The GNU C library defines this for functions which it implements
10735     to always fail with ENOSYS.  Some functions are actually named
10736     something starting with __ and the normal name is an alias.  */
10737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10738 choke me
10739 #else
10740 $ac_func();
10741 #endif
10742
10743 ; return 0; }
10744 EOF
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10746   rm -rf conftest*
10747   eval "ac_cv_func_$ac_func=yes"
10748 else
10749   echo "configure: failed program was:" >&5
10750   cat conftest.$ac_ext >&5
10751   rm -rf conftest*
10752   eval "ac_cv_func_$ac_func=no"
10753 fi
10754 rm -f conftest*
10755 fi
10756
10757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10758   echo "$ac_t""yes" 1>&6
10759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10760   cat >> confdefs.h <<EOF
10761 #define $ac_tr_func 1
10762 EOF
10763  
10764 else
10765   echo "$ac_t""no" 1>&6
10766 fi
10767 done
10768     
10769   else
10770     
10771   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10772 echo "configure:10773: checking for _finitef declaration" >&5
10773   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10774     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10775   echo $ac_n "(cached) $ac_c" 1>&6
10776 else
10777   
10778       
10779       ac_ext=C
10780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10781 ac_cpp='$CXXCPP $CPPFLAGS'
10782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10784 cross_compiling=$ac_cv_prog_cxx_cross
10785
10786       cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <math.h>
10790                       #ifdef HAVE_IEEEFP_H
10791                       #include <ieeefp.h>
10792                       #endif
10793                      
10794 int main() {
10795  _finitef(0);
10796 ; return 0; }
10797 EOF
10798 if { (eval echo configure:10799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10799   rm -rf conftest*
10800   glibcpp_cv_func__finitef_use=yes
10801 else
10802   echo "configure: failed program was:" >&5
10803   cat conftest.$ac_ext >&5
10804   rm -rf conftest*
10805   glibcpp_cv_func__finitef_use=no
10806 fi
10807 rm -f conftest*
10808       ac_ext=c
10809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10810 ac_cpp='$CPP $CPPFLAGS'
10811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10813 cross_compiling=$ac_cv_prog_cc_cross
10814
10815     
10816 fi
10817
10818   fi
10819   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10820
10821     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10822       for ac_func in _finitef
10823 do
10824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10825 echo "configure:10826: checking for $ac_func" >&5
10826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10827   echo $ac_n "(cached) $ac_c" 1>&6
10828 else
10829   cat > conftest.$ac_ext <<EOF
10830 #line 10831 "configure"
10831 #include "confdefs.h"
10832 /* System header to define __stub macros and hopefully few prototypes,
10833     which can conflict with char $ac_func(); below.  */
10834 #include <assert.h>
10835 /* Override any gcc2 internal prototype to avoid an error.  */
10836 /* We use char because int might match the return type of a gcc2
10837     builtin and then its argument prototype would still apply.  */
10838 char $ac_func();
10839
10840 int main() {
10841
10842 /* The GNU C library defines this for functions which it implements
10843     to always fail with ENOSYS.  Some functions are actually named
10844     something starting with __ and the normal name is an alias.  */
10845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10846 choke me
10847 #else
10848 $ac_func();
10849 #endif
10850
10851 ; return 0; }
10852 EOF
10853 if { (eval echo configure:10854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10854   rm -rf conftest*
10855   eval "ac_cv_func_$ac_func=yes"
10856 else
10857   echo "configure: failed program was:" >&5
10858   cat conftest.$ac_ext >&5
10859   rm -rf conftest*
10860   eval "ac_cv_func_$ac_func=no"
10861 fi
10862 rm -f conftest*
10863 fi
10864
10865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10866   echo "$ac_t""yes" 1>&6
10867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10868   cat >> confdefs.h <<EOF
10869 #define $ac_tr_func 1
10870 EOF
10871  
10872 else
10873   echo "$ac_t""no" 1>&6
10874 fi
10875 done
10876     
10877     fi
10878   fi
10879
10880
10881     
10882   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10883 echo "configure:10884: checking for long double trig functions" >&5
10884   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10885   echo $ac_n "(cached) $ac_c" 1>&6
10886 else
10887   
10888     
10889     ac_ext=C
10890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10891 ac_cpp='$CXXCPP $CPPFLAGS'
10892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10894 cross_compiling=$ac_cv_prog_cxx_cross
10895
10896     cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure"
10898 #include "confdefs.h"
10899 #include <math.h>
10900 int main() {
10901  `for x in acosl asinl atanl \
10902                                           cosl sinl tanl \
10903                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
10904 ; return 0; }
10905 EOF
10906 if { (eval echo configure:10907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10907   rm -rf conftest*
10908   glibcpp_cv_func_long_double_trig_use=yes
10909 else
10910   echo "configure: failed program was:" >&5
10911   cat conftest.$ac_ext >&5
10912   rm -rf conftest*
10913   glibcpp_cv_func_long_double_trig_use=no
10914 fi
10915 rm -f conftest*
10916     ac_ext=c
10917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10918 ac_cpp='$CPP $CPPFLAGS'
10919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10921 cross_compiling=$ac_cv_prog_cc_cross
10922
10923 fi
10924
10925   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10926   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10927     for ac_func in acosl asinl atanl \
10928                                           cosl sinl tanl \
10929                                           coshl sinhl tanhl
10930 do
10931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10932 echo "configure:10933: checking for $ac_func" >&5
10933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10934   echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10936   cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10939 /* System header to define __stub macros and hopefully few prototypes,
10940     which can conflict with char $ac_func(); below.  */
10941 #include <assert.h>
10942 /* Override any gcc2 internal prototype to avoid an error.  */
10943 /* We use char because int might match the return type of a gcc2
10944     builtin and then its argument prototype would still apply.  */
10945 char $ac_func();
10946
10947 int main() {
10948
10949 /* The GNU C library defines this for functions which it implements
10950     to always fail with ENOSYS.  Some functions are actually named
10951     something starting with __ and the normal name is an alias.  */
10952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10953 choke me
10954 #else
10955 $ac_func();
10956 #endif
10957
10958 ; return 0; }
10959 EOF
10960 if { (eval echo configure:10961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10961   rm -rf conftest*
10962   eval "ac_cv_func_$ac_func=yes"
10963 else
10964   echo "configure: failed program was:" >&5
10965   cat conftest.$ac_ext >&5
10966   rm -rf conftest*
10967   eval "ac_cv_func_$ac_func=no"
10968 fi
10969 rm -f conftest*
10970 fi
10971
10972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10973   echo "$ac_t""yes" 1>&6
10974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10975   cat >> confdefs.h <<EOF
10976 #define $ac_tr_func 1
10977 EOF
10978  
10979 else
10980   echo "$ac_t""no" 1>&6
10981 fi
10982 done
10983
10984   fi
10985
10986   
10987   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10988 echo "configure:10989: checking for long double round functions" >&5
10989   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10990   echo $ac_n "(cached) $ac_c" 1>&6
10991 else
10992   
10993     
10994     ac_ext=C
10995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10996 ac_cpp='$CXXCPP $CPPFLAGS'
10997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10999 cross_compiling=$ac_cv_prog_cxx_cross
11000
11001     cat > conftest.$ac_ext <<EOF
11002 #line 11003 "configure"
11003 #include "confdefs.h"
11004 #include <math.h>
11005 int main() {
11006  `for x in ceill floorl; do echo "$x (0);"; done` 
11007 ; return 0; }
11008 EOF
11009 if { (eval echo configure:11010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11010   rm -rf conftest*
11011   glibcpp_cv_func_long_double_round_use=yes
11012 else
11013   echo "configure: failed program was:" >&5
11014   cat conftest.$ac_ext >&5
11015   rm -rf conftest*
11016   glibcpp_cv_func_long_double_round_use=no
11017 fi
11018 rm -f conftest*
11019     ac_ext=c
11020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11021 ac_cpp='$CPP $CPPFLAGS'
11022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11024 cross_compiling=$ac_cv_prog_cc_cross
11025
11026 fi
11027
11028   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11029   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11030     for ac_func in ceill floorl
11031 do
11032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11033 echo "configure:11034: checking for $ac_func" >&5
11034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11035   echo $ac_n "(cached) $ac_c" 1>&6
11036 else
11037   cat > conftest.$ac_ext <<EOF
11038 #line 11039 "configure"
11039 #include "confdefs.h"
11040 /* System header to define __stub macros and hopefully few prototypes,
11041     which can conflict with char $ac_func(); below.  */
11042 #include <assert.h>
11043 /* Override any gcc2 internal prototype to avoid an error.  */
11044 /* We use char because int might match the return type of a gcc2
11045     builtin and then its argument prototype would still apply.  */
11046 char $ac_func();
11047
11048 int main() {
11049
11050 /* The GNU C library defines this for functions which it implements
11051     to always fail with ENOSYS.  Some functions are actually named
11052     something starting with __ and the normal name is an alias.  */
11053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11054 choke me
11055 #else
11056 $ac_func();
11057 #endif
11058
11059 ; return 0; }
11060 EOF
11061 if { (eval echo configure:11062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11062   rm -rf conftest*
11063   eval "ac_cv_func_$ac_func=yes"
11064 else
11065   echo "configure: failed program was:" >&5
11066   cat conftest.$ac_ext >&5
11067   rm -rf conftest*
11068   eval "ac_cv_func_$ac_func=no"
11069 fi
11070 rm -f conftest*
11071 fi
11072
11073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11074   echo "$ac_t""yes" 1>&6
11075     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11076   cat >> confdefs.h <<EOF
11077 #define $ac_tr_func 1
11078 EOF
11079  
11080 else
11081   echo "$ac_t""no" 1>&6
11082 fi
11083 done
11084
11085   fi
11086
11087   
11088   
11089   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11090 echo "configure:11091: checking for isnanl declaration" >&5
11091   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11092     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11093   echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11095   
11096       
11097       ac_ext=C
11098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11099 ac_cpp='$CXXCPP $CPPFLAGS'
11100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11102 cross_compiling=$ac_cv_prog_cxx_cross
11103
11104       cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 #include <math.h>
11108                       #ifdef HAVE_IEEEFP_H
11109                       #include <ieeefp.h>
11110                       #endif
11111                      
11112 int main() {
11113  isnanl(0);
11114 ; return 0; }
11115 EOF
11116 if { (eval echo configure:11117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11117   rm -rf conftest*
11118   glibcpp_cv_func_isnanl_use=yes
11119 else
11120   echo "configure: failed program was:" >&5
11121   cat conftest.$ac_ext >&5
11122   rm -rf conftest*
11123   glibcpp_cv_func_isnanl_use=no
11124 fi
11125 rm -f conftest*
11126       ac_ext=c
11127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11131 cross_compiling=$ac_cv_prog_cc_cross
11132
11133     
11134 fi
11135
11136   fi
11137   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11138
11139   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11140     for ac_func in isnanl
11141 do
11142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11143 echo "configure:11144: checking for $ac_func" >&5
11144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11145   echo $ac_n "(cached) $ac_c" 1>&6
11146 else
11147   cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 /* System header to define __stub macros and hopefully few prototypes,
11151     which can conflict with char $ac_func(); below.  */
11152 #include <assert.h>
11153 /* Override any gcc2 internal prototype to avoid an error.  */
11154 /* We use char because int might match the return type of a gcc2
11155     builtin and then its argument prototype would still apply.  */
11156 char $ac_func();
11157
11158 int main() {
11159
11160 /* The GNU C library defines this for functions which it implements
11161     to always fail with ENOSYS.  Some functions are actually named
11162     something starting with __ and the normal name is an alias.  */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 choke me
11165 #else
11166 $ac_func();
11167 #endif
11168
11169 ; return 0; }
11170 EOF
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11172   rm -rf conftest*
11173   eval "ac_cv_func_$ac_func=yes"
11174 else
11175   echo "configure: failed program was:" >&5
11176   cat conftest.$ac_ext >&5
11177   rm -rf conftest*
11178   eval "ac_cv_func_$ac_func=no"
11179 fi
11180 rm -f conftest*
11181 fi
11182
11183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11184   echo "$ac_t""yes" 1>&6
11185     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11186   cat >> confdefs.h <<EOF
11187 #define $ac_tr_func 1
11188 EOF
11189  
11190 else
11191   echo "$ac_t""no" 1>&6
11192 fi
11193 done
11194     
11195   else
11196     
11197   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11198 echo "configure:11199: checking for _isnanl declaration" >&5
11199   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11200     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11201   echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11203   
11204       
11205       ac_ext=C
11206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11210 cross_compiling=$ac_cv_prog_cxx_cross
11211
11212       cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 #include <math.h>
11216                       #ifdef HAVE_IEEEFP_H
11217                       #include <ieeefp.h>
11218                       #endif
11219                      
11220 int main() {
11221  _isnanl(0);
11222 ; return 0; }
11223 EOF
11224 if { (eval echo configure:11225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11225   rm -rf conftest*
11226   glibcpp_cv_func__isnanl_use=yes
11227 else
11228   echo "configure: failed program was:" >&5
11229   cat conftest.$ac_ext >&5
11230   rm -rf conftest*
11231   glibcpp_cv_func__isnanl_use=no
11232 fi
11233 rm -f conftest*
11234       ac_ext=c
11235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11236 ac_cpp='$CPP $CPPFLAGS'
11237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11239 cross_compiling=$ac_cv_prog_cc_cross
11240
11241     
11242 fi
11243
11244   fi
11245   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11246
11247     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11248       for ac_func in _isnanl
11249 do
11250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_func" >&5
11252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11253   echo $ac_n "(cached) $ac_c" 1>&6
11254 else
11255   cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 /* System header to define __stub macros and hopefully few prototypes,
11259     which can conflict with char $ac_func(); below.  */
11260 #include <assert.h>
11261 /* Override any gcc2 internal prototype to avoid an error.  */
11262 /* We use char because int might match the return type of a gcc2
11263     builtin and then its argument prototype would still apply.  */
11264 char $ac_func();
11265
11266 int main() {
11267
11268 /* The GNU C library defines this for functions which it implements
11269     to always fail with ENOSYS.  Some functions are actually named
11270     something starting with __ and the normal name is an alias.  */
11271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11272 choke me
11273 #else
11274 $ac_func();
11275 #endif
11276
11277 ; return 0; }
11278 EOF
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280   rm -rf conftest*
11281   eval "ac_cv_func_$ac_func=yes"
11282 else
11283   echo "configure: failed program was:" >&5
11284   cat conftest.$ac_ext >&5
11285   rm -rf conftest*
11286   eval "ac_cv_func_$ac_func=no"
11287 fi
11288 rm -f conftest*
11289 fi
11290
11291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11292   echo "$ac_t""yes" 1>&6
11293     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11294   cat >> confdefs.h <<EOF
11295 #define $ac_tr_func 1
11296 EOF
11297  
11298 else
11299   echo "$ac_t""no" 1>&6
11300 fi
11301 done
11302     
11303     fi
11304   fi
11305
11306   
11307   
11308   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11309 echo "configure:11310: checking for isinfl declaration" >&5
11310   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11311     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11312   echo $ac_n "(cached) $ac_c" 1>&6
11313 else
11314   
11315       
11316       ac_ext=C
11317 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11318 ac_cpp='$CXXCPP $CPPFLAGS'
11319 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11320 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11321 cross_compiling=$ac_cv_prog_cxx_cross
11322
11323       cat > conftest.$ac_ext <<EOF
11324 #line 11325 "configure"
11325 #include "confdefs.h"
11326 #include <math.h>
11327                       #ifdef HAVE_IEEEFP_H
11328                       #include <ieeefp.h>
11329                       #endif
11330                      
11331 int main() {
11332  isinfl(0);
11333 ; return 0; }
11334 EOF
11335 if { (eval echo configure:11336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11336   rm -rf conftest*
11337   glibcpp_cv_func_isinfl_use=yes
11338 else
11339   echo "configure: failed program was:" >&5
11340   cat conftest.$ac_ext >&5
11341   rm -rf conftest*
11342   glibcpp_cv_func_isinfl_use=no
11343 fi
11344 rm -f conftest*
11345       ac_ext=c
11346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11347 ac_cpp='$CPP $CPPFLAGS'
11348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11350 cross_compiling=$ac_cv_prog_cc_cross
11351
11352     
11353 fi
11354
11355   fi
11356   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11357
11358   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11359     for ac_func in isinfl
11360 do
11361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11362 echo "configure:11363: checking for $ac_func" >&5
11363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11364   echo $ac_n "(cached) $ac_c" 1>&6
11365 else
11366   cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11369 /* System header to define __stub macros and hopefully few prototypes,
11370     which can conflict with char $ac_func(); below.  */
11371 #include <assert.h>
11372 /* Override any gcc2 internal prototype to avoid an error.  */
11373 /* We use char because int might match the return type of a gcc2
11374     builtin and then its argument prototype would still apply.  */
11375 char $ac_func();
11376
11377 int main() {
11378
11379 /* The GNU C library defines this for functions which it implements
11380     to always fail with ENOSYS.  Some functions are actually named
11381     something starting with __ and the normal name is an alias.  */
11382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11383 choke me
11384 #else
11385 $ac_func();
11386 #endif
11387
11388 ; return 0; }
11389 EOF
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11391   rm -rf conftest*
11392   eval "ac_cv_func_$ac_func=yes"
11393 else
11394   echo "configure: failed program was:" >&5
11395   cat conftest.$ac_ext >&5
11396   rm -rf conftest*
11397   eval "ac_cv_func_$ac_func=no"
11398 fi
11399 rm -f conftest*
11400 fi
11401
11402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11403   echo "$ac_t""yes" 1>&6
11404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11405   cat >> confdefs.h <<EOF
11406 #define $ac_tr_func 1
11407 EOF
11408  
11409 else
11410   echo "$ac_t""no" 1>&6
11411 fi
11412 done
11413     
11414   else
11415     
11416   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11417 echo "configure:11418: checking for _isinfl declaration" >&5
11418   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11419     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11420   echo $ac_n "(cached) $ac_c" 1>&6
11421 else
11422   
11423       
11424       ac_ext=C
11425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11426 ac_cpp='$CXXCPP $CPPFLAGS'
11427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11429 cross_compiling=$ac_cv_prog_cxx_cross
11430
11431       cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <math.h>
11435                       #ifdef HAVE_IEEEFP_H
11436                       #include <ieeefp.h>
11437                       #endif
11438                      
11439 int main() {
11440  _isinfl(0);
11441 ; return 0; }
11442 EOF
11443 if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444   rm -rf conftest*
11445   glibcpp_cv_func__isinfl_use=yes
11446 else
11447   echo "configure: failed program was:" >&5
11448   cat conftest.$ac_ext >&5
11449   rm -rf conftest*
11450   glibcpp_cv_func__isinfl_use=no
11451 fi
11452 rm -f conftest*
11453       ac_ext=c
11454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11458 cross_compiling=$ac_cv_prog_cc_cross
11459
11460     
11461 fi
11462
11463   fi
11464   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11465
11466     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11467       for ac_func in _isinfl
11468 do
11469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11470 echo "configure:11471: checking for $ac_func" >&5
11471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11472   echo $ac_n "(cached) $ac_c" 1>&6
11473 else
11474   cat > conftest.$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11477 /* System header to define __stub macros and hopefully few prototypes,
11478     which can conflict with char $ac_func(); below.  */
11479 #include <assert.h>
11480 /* Override any gcc2 internal prototype to avoid an error.  */
11481 /* We use char because int might match the return type of a gcc2
11482     builtin and then its argument prototype would still apply.  */
11483 char $ac_func();
11484
11485 int main() {
11486
11487 /* The GNU C library defines this for functions which it implements
11488     to always fail with ENOSYS.  Some functions are actually named
11489     something starting with __ and the normal name is an alias.  */
11490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11491 choke me
11492 #else
11493 $ac_func();
11494 #endif
11495
11496 ; return 0; }
11497 EOF
11498 if { (eval echo configure:11499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11499   rm -rf conftest*
11500   eval "ac_cv_func_$ac_func=yes"
11501 else
11502   echo "configure: failed program was:" >&5
11503   cat conftest.$ac_ext >&5
11504   rm -rf conftest*
11505   eval "ac_cv_func_$ac_func=no"
11506 fi
11507 rm -f conftest*
11508 fi
11509
11510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11511   echo "$ac_t""yes" 1>&6
11512     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11513   cat >> confdefs.h <<EOF
11514 #define $ac_tr_func 1
11515 EOF
11516  
11517 else
11518   echo "$ac_t""no" 1>&6
11519 fi
11520 done
11521     
11522     fi
11523   fi
11524
11525   
11526   
11527   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11528 echo "configure:11529: checking for copysignl declaration" >&5
11529   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11530     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11531   echo $ac_n "(cached) $ac_c" 1>&6
11532 else
11533   
11534       
11535       ac_ext=C
11536 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11537 ac_cpp='$CXXCPP $CPPFLAGS'
11538 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11539 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11540 cross_compiling=$ac_cv_prog_cxx_cross
11541
11542       cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11545 #include <math.h>
11546 int main() {
11547  copysignl(0, 0);
11548 ; return 0; }
11549 EOF
11550 if { (eval echo configure:11551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11551   rm -rf conftest*
11552   glibcpp_cv_func_copysignl_use=yes
11553 else
11554   echo "configure: failed program was:" >&5
11555   cat conftest.$ac_ext >&5
11556   rm -rf conftest*
11557   glibcpp_cv_func_copysignl_use=no
11558 fi
11559 rm -f conftest*
11560       ac_ext=c
11561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11562 ac_cpp='$CPP $CPPFLAGS'
11563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11565 cross_compiling=$ac_cv_prog_cc_cross
11566
11567     
11568 fi
11569
11570   fi
11571   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11572
11573   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11574     for ac_func in copysignl
11575 do
11576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11577 echo "configure:11578: checking for $ac_func" >&5
11578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11579   echo $ac_n "(cached) $ac_c" 1>&6
11580 else
11581   cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 /* System header to define __stub macros and hopefully few prototypes,
11585     which can conflict with char $ac_func(); below.  */
11586 #include <assert.h>
11587 /* Override any gcc2 internal prototype to avoid an error.  */
11588 /* We use char because int might match the return type of a gcc2
11589     builtin and then its argument prototype would still apply.  */
11590 char $ac_func();
11591
11592 int main() {
11593
11594 /* The GNU C library defines this for functions which it implements
11595     to always fail with ENOSYS.  Some functions are actually named
11596     something starting with __ and the normal name is an alias.  */
11597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11598 choke me
11599 #else
11600 $ac_func();
11601 #endif
11602
11603 ; return 0; }
11604 EOF
11605 if { (eval echo configure:11606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11606   rm -rf conftest*
11607   eval "ac_cv_func_$ac_func=yes"
11608 else
11609   echo "configure: failed program was:" >&5
11610   cat conftest.$ac_ext >&5
11611   rm -rf conftest*
11612   eval "ac_cv_func_$ac_func=no"
11613 fi
11614 rm -f conftest*
11615 fi
11616
11617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11618   echo "$ac_t""yes" 1>&6
11619     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11620   cat >> confdefs.h <<EOF
11621 #define $ac_tr_func 1
11622 EOF
11623  
11624 else
11625   echo "$ac_t""no" 1>&6
11626 fi
11627 done
11628     
11629   else
11630     
11631   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11632 echo "configure:11633: checking for _copysignl declaration" >&5
11633   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11634     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11635   echo $ac_n "(cached) $ac_c" 1>&6
11636 else
11637   
11638       
11639       ac_ext=C
11640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11641 ac_cpp='$CXXCPP $CPPFLAGS'
11642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11644 cross_compiling=$ac_cv_prog_cxx_cross
11645
11646       cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 #include <math.h>
11650 int main() {
11651  _copysignl(0, 0);
11652 ; return 0; }
11653 EOF
11654 if { (eval echo configure:11655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11655   rm -rf conftest*
11656   glibcpp_cv_func__copysignl_use=yes
11657 else
11658   echo "configure: failed program was:" >&5
11659   cat conftest.$ac_ext >&5
11660   rm -rf conftest*
11661   glibcpp_cv_func__copysignl_use=no
11662 fi
11663 rm -f conftest*
11664       ac_ext=c
11665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11666 ac_cpp='$CPP $CPPFLAGS'
11667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11669 cross_compiling=$ac_cv_prog_cc_cross
11670
11671     
11672 fi
11673
11674   fi
11675   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11676
11677     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11678       for ac_func in _copysignl
11679 do
11680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11681 echo "configure:11682: checking for $ac_func" >&5
11682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11683   echo $ac_n "(cached) $ac_c" 1>&6
11684 else
11685   cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11688 /* System header to define __stub macros and hopefully few prototypes,
11689     which can conflict with char $ac_func(); below.  */
11690 #include <assert.h>
11691 /* Override any gcc2 internal prototype to avoid an error.  */
11692 /* We use char because int might match the return type of a gcc2
11693     builtin and then its argument prototype would still apply.  */
11694 char $ac_func();
11695
11696 int main() {
11697
11698 /* The GNU C library defines this for functions which it implements
11699     to always fail with ENOSYS.  Some functions are actually named
11700     something starting with __ and the normal name is an alias.  */
11701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11702 choke me
11703 #else
11704 $ac_func();
11705 #endif
11706
11707 ; return 0; }
11708 EOF
11709 if { (eval echo configure:11710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11710   rm -rf conftest*
11711   eval "ac_cv_func_$ac_func=yes"
11712 else
11713   echo "configure: failed program was:" >&5
11714   cat conftest.$ac_ext >&5
11715   rm -rf conftest*
11716   eval "ac_cv_func_$ac_func=no"
11717 fi
11718 rm -f conftest*
11719 fi
11720
11721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11722   echo "$ac_t""yes" 1>&6
11723     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11724   cat >> confdefs.h <<EOF
11725 #define $ac_tr_func 1
11726 EOF
11727  
11728 else
11729   echo "$ac_t""no" 1>&6
11730 fi
11731 done
11732     
11733     fi
11734   fi
11735
11736   
11737   
11738   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11739 echo "configure:11740: checking for atan2l declaration" >&5
11740   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11741     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11742   echo $ac_n "(cached) $ac_c" 1>&6
11743 else
11744   
11745       
11746       ac_ext=C
11747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11748 ac_cpp='$CXXCPP $CPPFLAGS'
11749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11751 cross_compiling=$ac_cv_prog_cxx_cross
11752
11753       cat > conftest.$ac_ext <<EOF
11754 #line 11755 "configure"
11755 #include "confdefs.h"
11756 #include <math.h>
11757 int main() {
11758  atan2l(0, 0);
11759 ; return 0; }
11760 EOF
11761 if { (eval echo configure:11762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11762   rm -rf conftest*
11763   glibcpp_cv_func_atan2l_use=yes
11764 else
11765   echo "configure: failed program was:" >&5
11766   cat conftest.$ac_ext >&5
11767   rm -rf conftest*
11768   glibcpp_cv_func_atan2l_use=no
11769 fi
11770 rm -f conftest*
11771       ac_ext=c
11772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11773 ac_cpp='$CPP $CPPFLAGS'
11774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11776 cross_compiling=$ac_cv_prog_cc_cross
11777
11778     
11779 fi
11780
11781   fi
11782   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11783
11784   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11785     for ac_func in atan2l
11786 do
11787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11788 echo "configure:11789: checking for $ac_func" >&5
11789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11790   echo $ac_n "(cached) $ac_c" 1>&6
11791 else
11792   cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11795 /* System header to define __stub macros and hopefully few prototypes,
11796     which can conflict with char $ac_func(); below.  */
11797 #include <assert.h>
11798 /* Override any gcc2 internal prototype to avoid an error.  */
11799 /* We use char because int might match the return type of a gcc2
11800     builtin and then its argument prototype would still apply.  */
11801 char $ac_func();
11802
11803 int main() {
11804
11805 /* The GNU C library defines this for functions which it implements
11806     to always fail with ENOSYS.  Some functions are actually named
11807     something starting with __ and the normal name is an alias.  */
11808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11809 choke me
11810 #else
11811 $ac_func();
11812 #endif
11813
11814 ; return 0; }
11815 EOF
11816 if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11817   rm -rf conftest*
11818   eval "ac_cv_func_$ac_func=yes"
11819 else
11820   echo "configure: failed program was:" >&5
11821   cat conftest.$ac_ext >&5
11822   rm -rf conftest*
11823   eval "ac_cv_func_$ac_func=no"
11824 fi
11825 rm -f conftest*
11826 fi
11827
11828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11829   echo "$ac_t""yes" 1>&6
11830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11831   cat >> confdefs.h <<EOF
11832 #define $ac_tr_func 1
11833 EOF
11834  
11835 else
11836   echo "$ac_t""no" 1>&6
11837 fi
11838 done
11839     
11840   else
11841     
11842   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11843 echo "configure:11844: checking for _atan2l declaration" >&5
11844   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11845     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11846   echo $ac_n "(cached) $ac_c" 1>&6
11847 else
11848   
11849       
11850       ac_ext=C
11851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11852 ac_cpp='$CXXCPP $CPPFLAGS'
11853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11855 cross_compiling=$ac_cv_prog_cxx_cross
11856
11857       cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 #include <math.h>
11861 int main() {
11862  _atan2l(0, 0);
11863 ; return 0; }
11864 EOF
11865 if { (eval echo configure:11866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11866   rm -rf conftest*
11867   glibcpp_cv_func__atan2l_use=yes
11868 else
11869   echo "configure: failed program was:" >&5
11870   cat conftest.$ac_ext >&5
11871   rm -rf conftest*
11872   glibcpp_cv_func__atan2l_use=no
11873 fi
11874 rm -f conftest*
11875       ac_ext=c
11876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11877 ac_cpp='$CPP $CPPFLAGS'
11878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11880 cross_compiling=$ac_cv_prog_cc_cross
11881
11882     
11883 fi
11884
11885   fi
11886   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11887
11888     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11889       for ac_func in _atan2l
11890 do
11891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11892 echo "configure:11893: checking for $ac_func" >&5
11893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11894   echo $ac_n "(cached) $ac_c" 1>&6
11895 else
11896   cat > conftest.$ac_ext <<EOF
11897 #line 11898 "configure"
11898 #include "confdefs.h"
11899 /* System header to define __stub macros and hopefully few prototypes,
11900     which can conflict with char $ac_func(); below.  */
11901 #include <assert.h>
11902 /* Override any gcc2 internal prototype to avoid an error.  */
11903 /* We use char because int might match the return type of a gcc2
11904     builtin and then its argument prototype would still apply.  */
11905 char $ac_func();
11906
11907 int main() {
11908
11909 /* The GNU C library defines this for functions which it implements
11910     to always fail with ENOSYS.  Some functions are actually named
11911     something starting with __ and the normal name is an alias.  */
11912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11913 choke me
11914 #else
11915 $ac_func();
11916 #endif
11917
11918 ; return 0; }
11919 EOF
11920 if { (eval echo configure:11921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11921   rm -rf conftest*
11922   eval "ac_cv_func_$ac_func=yes"
11923 else
11924   echo "configure: failed program was:" >&5
11925   cat conftest.$ac_ext >&5
11926   rm -rf conftest*
11927   eval "ac_cv_func_$ac_func=no"
11928 fi
11929 rm -f conftest*
11930 fi
11931
11932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11933   echo "$ac_t""yes" 1>&6
11934     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11935   cat >> confdefs.h <<EOF
11936 #define $ac_tr_func 1
11937 EOF
11938  
11939 else
11940   echo "$ac_t""no" 1>&6
11941 fi
11942 done
11943     
11944     fi
11945   fi
11946
11947   
11948   
11949   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11950 echo "configure:11951: checking for expl declaration" >&5
11951   if test x${glibcpp_cv_func_expl_use+set} != xset; then
11952     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11953   echo $ac_n "(cached) $ac_c" 1>&6
11954 else
11955   
11956       
11957       ac_ext=C
11958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11959 ac_cpp='$CXXCPP $CPPFLAGS'
11960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11962 cross_compiling=$ac_cv_prog_cxx_cross
11963
11964       cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 #include <math.h>
11968                       #ifdef HAVE_IEEEFP_H
11969                       #include <ieeefp.h>
11970                       #endif
11971                      
11972 int main() {
11973  expl(0);
11974 ; return 0; }
11975 EOF
11976 if { (eval echo configure:11977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11977   rm -rf conftest*
11978   glibcpp_cv_func_expl_use=yes
11979 else
11980   echo "configure: failed program was:" >&5
11981   cat conftest.$ac_ext >&5
11982   rm -rf conftest*
11983   glibcpp_cv_func_expl_use=no
11984 fi
11985 rm -f conftest*
11986       ac_ext=c
11987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11988 ac_cpp='$CPP $CPPFLAGS'
11989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11991 cross_compiling=$ac_cv_prog_cc_cross
11992
11993     
11994 fi
11995
11996   fi
11997   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11998
11999   if test x$glibcpp_cv_func_expl_use = x"yes"; then
12000     for ac_func in expl
12001 do
12002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12003 echo "configure:12004: checking for $ac_func" >&5
12004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12005   echo $ac_n "(cached) $ac_c" 1>&6
12006 else
12007   cat > conftest.$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 /* System header to define __stub macros and hopefully few prototypes,
12011     which can conflict with char $ac_func(); below.  */
12012 #include <assert.h>
12013 /* Override any gcc2 internal prototype to avoid an error.  */
12014 /* We use char because int might match the return type of a gcc2
12015     builtin and then its argument prototype would still apply.  */
12016 char $ac_func();
12017
12018 int main() {
12019
12020 /* The GNU C library defines this for functions which it implements
12021     to always fail with ENOSYS.  Some functions are actually named
12022     something starting with __ and the normal name is an alias.  */
12023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12024 choke me
12025 #else
12026 $ac_func();
12027 #endif
12028
12029 ; return 0; }
12030 EOF
12031 if { (eval echo configure:12032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12032   rm -rf conftest*
12033   eval "ac_cv_func_$ac_func=yes"
12034 else
12035   echo "configure: failed program was:" >&5
12036   cat conftest.$ac_ext >&5
12037   rm -rf conftest*
12038   eval "ac_cv_func_$ac_func=no"
12039 fi
12040 rm -f conftest*
12041 fi
12042
12043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12044   echo "$ac_t""yes" 1>&6
12045     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12046   cat >> confdefs.h <<EOF
12047 #define $ac_tr_func 1
12048 EOF
12049  
12050 else
12051   echo "$ac_t""no" 1>&6
12052 fi
12053 done
12054     
12055   else
12056     
12057   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12058 echo "configure:12059: checking for _expl declaration" >&5
12059   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12060     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12061   echo $ac_n "(cached) $ac_c" 1>&6
12062 else
12063   
12064       
12065       ac_ext=C
12066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12067 ac_cpp='$CXXCPP $CPPFLAGS'
12068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12070 cross_compiling=$ac_cv_prog_cxx_cross
12071
12072       cat > conftest.$ac_ext <<EOF
12073 #line 12074 "configure"
12074 #include "confdefs.h"
12075 #include <math.h>
12076                       #ifdef HAVE_IEEEFP_H
12077                       #include <ieeefp.h>
12078                       #endif
12079                      
12080 int main() {
12081  _expl(0);
12082 ; return 0; }
12083 EOF
12084 if { (eval echo configure:12085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12085   rm -rf conftest*
12086   glibcpp_cv_func__expl_use=yes
12087 else
12088   echo "configure: failed program was:" >&5
12089   cat conftest.$ac_ext >&5
12090   rm -rf conftest*
12091   glibcpp_cv_func__expl_use=no
12092 fi
12093 rm -f conftest*
12094       ac_ext=c
12095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12096 ac_cpp='$CPP $CPPFLAGS'
12097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12099 cross_compiling=$ac_cv_prog_cc_cross
12100
12101     
12102 fi
12103
12104   fi
12105   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12106
12107     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12108       for ac_func in _expl
12109 do
12110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12111 echo "configure:12112: checking for $ac_func" >&5
12112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12113   echo $ac_n "(cached) $ac_c" 1>&6
12114 else
12115   cat > conftest.$ac_ext <<EOF
12116 #line 12117 "configure"
12117 #include "confdefs.h"
12118 /* System header to define __stub macros and hopefully few prototypes,
12119     which can conflict with char $ac_func(); below.  */
12120 #include <assert.h>
12121 /* Override any gcc2 internal prototype to avoid an error.  */
12122 /* We use char because int might match the return type of a gcc2
12123     builtin and then its argument prototype would still apply.  */
12124 char $ac_func();
12125
12126 int main() {
12127
12128 /* The GNU C library defines this for functions which it implements
12129     to always fail with ENOSYS.  Some functions are actually named
12130     something starting with __ and the normal name is an alias.  */
12131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12132 choke me
12133 #else
12134 $ac_func();
12135 #endif
12136
12137 ; return 0; }
12138 EOF
12139 if { (eval echo configure:12140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12140   rm -rf conftest*
12141   eval "ac_cv_func_$ac_func=yes"
12142 else
12143   echo "configure: failed program was:" >&5
12144   cat conftest.$ac_ext >&5
12145   rm -rf conftest*
12146   eval "ac_cv_func_$ac_func=no"
12147 fi
12148 rm -f conftest*
12149 fi
12150
12151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12152   echo "$ac_t""yes" 1>&6
12153     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12154   cat >> confdefs.h <<EOF
12155 #define $ac_tr_func 1
12156 EOF
12157  
12158 else
12159   echo "$ac_t""no" 1>&6
12160 fi
12161 done
12162     
12163     fi
12164   fi
12165
12166   
12167   
12168   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12169 echo "configure:12170: checking for fabsl declaration" >&5
12170   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12171     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12172   echo $ac_n "(cached) $ac_c" 1>&6
12173 else
12174   
12175       
12176       ac_ext=C
12177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12178 ac_cpp='$CXXCPP $CPPFLAGS'
12179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12181 cross_compiling=$ac_cv_prog_cxx_cross
12182
12183       cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12186 #include <math.h>
12187                       #ifdef HAVE_IEEEFP_H
12188                       #include <ieeefp.h>
12189                       #endif
12190                      
12191 int main() {
12192  fabsl(0);
12193 ; return 0; }
12194 EOF
12195 if { (eval echo configure:12196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12196   rm -rf conftest*
12197   glibcpp_cv_func_fabsl_use=yes
12198 else
12199   echo "configure: failed program was:" >&5
12200   cat conftest.$ac_ext >&5
12201   rm -rf conftest*
12202   glibcpp_cv_func_fabsl_use=no
12203 fi
12204 rm -f conftest*
12205       ac_ext=c
12206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12207 ac_cpp='$CPP $CPPFLAGS'
12208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12210 cross_compiling=$ac_cv_prog_cc_cross
12211
12212     
12213 fi
12214
12215   fi
12216   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12217
12218   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12219     for ac_func in fabsl
12220 do
12221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12222 echo "configure:12223: checking for $ac_func" >&5
12223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12224   echo $ac_n "(cached) $ac_c" 1>&6
12225 else
12226   cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12229 /* System header to define __stub macros and hopefully few prototypes,
12230     which can conflict with char $ac_func(); below.  */
12231 #include <assert.h>
12232 /* Override any gcc2 internal prototype to avoid an error.  */
12233 /* We use char because int might match the return type of a gcc2
12234     builtin and then its argument prototype would still apply.  */
12235 char $ac_func();
12236
12237 int main() {
12238
12239 /* The GNU C library defines this for functions which it implements
12240     to always fail with ENOSYS.  Some functions are actually named
12241     something starting with __ and the normal name is an alias.  */
12242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12243 choke me
12244 #else
12245 $ac_func();
12246 #endif
12247
12248 ; return 0; }
12249 EOF
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12251   rm -rf conftest*
12252   eval "ac_cv_func_$ac_func=yes"
12253 else
12254   echo "configure: failed program was:" >&5
12255   cat conftest.$ac_ext >&5
12256   rm -rf conftest*
12257   eval "ac_cv_func_$ac_func=no"
12258 fi
12259 rm -f conftest*
12260 fi
12261
12262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12263   echo "$ac_t""yes" 1>&6
12264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12265   cat >> confdefs.h <<EOF
12266 #define $ac_tr_func 1
12267 EOF
12268  
12269 else
12270   echo "$ac_t""no" 1>&6
12271 fi
12272 done
12273     
12274   else
12275     
12276   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12277 echo "configure:12278: checking for _fabsl declaration" >&5
12278   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12279     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12280   echo $ac_n "(cached) $ac_c" 1>&6
12281 else
12282   
12283       
12284       ac_ext=C
12285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12286 ac_cpp='$CXXCPP $CPPFLAGS'
12287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12289 cross_compiling=$ac_cv_prog_cxx_cross
12290
12291       cat > conftest.$ac_ext <<EOF
12292 #line 12293 "configure"
12293 #include "confdefs.h"
12294 #include <math.h>
12295                       #ifdef HAVE_IEEEFP_H
12296                       #include <ieeefp.h>
12297                       #endif
12298                      
12299 int main() {
12300  _fabsl(0);
12301 ; return 0; }
12302 EOF
12303 if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12304   rm -rf conftest*
12305   glibcpp_cv_func__fabsl_use=yes
12306 else
12307   echo "configure: failed program was:" >&5
12308   cat conftest.$ac_ext >&5
12309   rm -rf conftest*
12310   glibcpp_cv_func__fabsl_use=no
12311 fi
12312 rm -f conftest*
12313       ac_ext=c
12314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12315 ac_cpp='$CPP $CPPFLAGS'
12316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12318 cross_compiling=$ac_cv_prog_cc_cross
12319
12320     
12321 fi
12322
12323   fi
12324   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12325
12326     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12327       for ac_func in _fabsl
12328 do
12329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12330 echo "configure:12331: checking for $ac_func" >&5
12331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12332   echo $ac_n "(cached) $ac_c" 1>&6
12333 else
12334   cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12337 /* System header to define __stub macros and hopefully few prototypes,
12338     which can conflict with char $ac_func(); below.  */
12339 #include <assert.h>
12340 /* Override any gcc2 internal prototype to avoid an error.  */
12341 /* We use char because int might match the return type of a gcc2
12342     builtin and then its argument prototype would still apply.  */
12343 char $ac_func();
12344
12345 int main() {
12346
12347 /* The GNU C library defines this for functions which it implements
12348     to always fail with ENOSYS.  Some functions are actually named
12349     something starting with __ and the normal name is an alias.  */
12350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12351 choke me
12352 #else
12353 $ac_func();
12354 #endif
12355
12356 ; return 0; }
12357 EOF
12358 if { (eval echo configure:12359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12359   rm -rf conftest*
12360   eval "ac_cv_func_$ac_func=yes"
12361 else
12362   echo "configure: failed program was:" >&5
12363   cat conftest.$ac_ext >&5
12364   rm -rf conftest*
12365   eval "ac_cv_func_$ac_func=no"
12366 fi
12367 rm -f conftest*
12368 fi
12369
12370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12371   echo "$ac_t""yes" 1>&6
12372     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12373   cat >> confdefs.h <<EOF
12374 #define $ac_tr_func 1
12375 EOF
12376  
12377 else
12378   echo "$ac_t""no" 1>&6
12379 fi
12380 done
12381     
12382     fi
12383   fi
12384
12385   
12386   
12387   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12388 echo "configure:12389: checking for fmodl declaration" >&5
12389   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12390     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12391   echo $ac_n "(cached) $ac_c" 1>&6
12392 else
12393   
12394       
12395       ac_ext=C
12396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12397 ac_cpp='$CXXCPP $CPPFLAGS'
12398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12400 cross_compiling=$ac_cv_prog_cxx_cross
12401
12402       cat > conftest.$ac_ext <<EOF
12403 #line 12404 "configure"
12404 #include "confdefs.h"
12405 #include <math.h>
12406 int main() {
12407  fmodl(0, 0);
12408 ; return 0; }
12409 EOF
12410 if { (eval echo configure:12411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12411   rm -rf conftest*
12412   glibcpp_cv_func_fmodl_use=yes
12413 else
12414   echo "configure: failed program was:" >&5
12415   cat conftest.$ac_ext >&5
12416   rm -rf conftest*
12417   glibcpp_cv_func_fmodl_use=no
12418 fi
12419 rm -f conftest*
12420       ac_ext=c
12421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12422 ac_cpp='$CPP $CPPFLAGS'
12423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12425 cross_compiling=$ac_cv_prog_cc_cross
12426
12427     
12428 fi
12429
12430   fi
12431   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12432
12433   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12434     for ac_func in fmodl
12435 do
12436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12437 echo "configure:12438: checking for $ac_func" >&5
12438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12439   echo $ac_n "(cached) $ac_c" 1>&6
12440 else
12441   cat > conftest.$ac_ext <<EOF
12442 #line 12443 "configure"
12443 #include "confdefs.h"
12444 /* System header to define __stub macros and hopefully few prototypes,
12445     which can conflict with char $ac_func(); below.  */
12446 #include <assert.h>
12447 /* Override any gcc2 internal prototype to avoid an error.  */
12448 /* We use char because int might match the return type of a gcc2
12449     builtin and then its argument prototype would still apply.  */
12450 char $ac_func();
12451
12452 int main() {
12453
12454 /* The GNU C library defines this for functions which it implements
12455     to always fail with ENOSYS.  Some functions are actually named
12456     something starting with __ and the normal name is an alias.  */
12457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12458 choke me
12459 #else
12460 $ac_func();
12461 #endif
12462
12463 ; return 0; }
12464 EOF
12465 if { (eval echo configure:12466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12466   rm -rf conftest*
12467   eval "ac_cv_func_$ac_func=yes"
12468 else
12469   echo "configure: failed program was:" >&5
12470   cat conftest.$ac_ext >&5
12471   rm -rf conftest*
12472   eval "ac_cv_func_$ac_func=no"
12473 fi
12474 rm -f conftest*
12475 fi
12476
12477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12478   echo "$ac_t""yes" 1>&6
12479     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12480   cat >> confdefs.h <<EOF
12481 #define $ac_tr_func 1
12482 EOF
12483  
12484 else
12485   echo "$ac_t""no" 1>&6
12486 fi
12487 done
12488     
12489   else
12490     
12491   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12492 echo "configure:12493: checking for _fmodl declaration" >&5
12493   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12494     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12495   echo $ac_n "(cached) $ac_c" 1>&6
12496 else
12497   
12498       
12499       ac_ext=C
12500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12501 ac_cpp='$CXXCPP $CPPFLAGS'
12502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12504 cross_compiling=$ac_cv_prog_cxx_cross
12505
12506       cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <math.h>
12510 int main() {
12511  _fmodl(0, 0);
12512 ; return 0; }
12513 EOF
12514 if { (eval echo configure:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12515   rm -rf conftest*
12516   glibcpp_cv_func__fmodl_use=yes
12517 else
12518   echo "configure: failed program was:" >&5
12519   cat conftest.$ac_ext >&5
12520   rm -rf conftest*
12521   glibcpp_cv_func__fmodl_use=no
12522 fi
12523 rm -f conftest*
12524       ac_ext=c
12525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12526 ac_cpp='$CPP $CPPFLAGS'
12527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12529 cross_compiling=$ac_cv_prog_cc_cross
12530
12531     
12532 fi
12533
12534   fi
12535   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12536
12537     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12538       for ac_func in _fmodl
12539 do
12540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12541 echo "configure:12542: checking for $ac_func" >&5
12542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12543   echo $ac_n "(cached) $ac_c" 1>&6
12544 else
12545   cat > conftest.$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12548 /* System header to define __stub macros and hopefully few prototypes,
12549     which can conflict with char $ac_func(); below.  */
12550 #include <assert.h>
12551 /* Override any gcc2 internal prototype to avoid an error.  */
12552 /* We use char because int might match the return type of a gcc2
12553     builtin and then its argument prototype would still apply.  */
12554 char $ac_func();
12555
12556 int main() {
12557
12558 /* The GNU C library defines this for functions which it implements
12559     to always fail with ENOSYS.  Some functions are actually named
12560     something starting with __ and the normal name is an alias.  */
12561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12562 choke me
12563 #else
12564 $ac_func();
12565 #endif
12566
12567 ; return 0; }
12568 EOF
12569 if { (eval echo configure:12570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12570   rm -rf conftest*
12571   eval "ac_cv_func_$ac_func=yes"
12572 else
12573   echo "configure: failed program was:" >&5
12574   cat conftest.$ac_ext >&5
12575   rm -rf conftest*
12576   eval "ac_cv_func_$ac_func=no"
12577 fi
12578 rm -f conftest*
12579 fi
12580
12581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12582   echo "$ac_t""yes" 1>&6
12583     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12584   cat >> confdefs.h <<EOF
12585 #define $ac_tr_func 1
12586 EOF
12587  
12588 else
12589   echo "$ac_t""no" 1>&6
12590 fi
12591 done
12592     
12593     fi
12594   fi
12595
12596   
12597   
12598   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12599 echo "configure:12600: checking for frexpl declaration" >&5
12600   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12601     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12602   echo $ac_n "(cached) $ac_c" 1>&6
12603 else
12604   
12605       
12606       ac_ext=C
12607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12608 ac_cpp='$CXXCPP $CPPFLAGS'
12609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12611 cross_compiling=$ac_cv_prog_cxx_cross
12612
12613       cat > conftest.$ac_ext <<EOF
12614 #line 12615 "configure"
12615 #include "confdefs.h"
12616 #include <math.h>
12617 int main() {
12618  frexpl(0, 0);
12619 ; return 0; }
12620 EOF
12621 if { (eval echo configure:12622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12622   rm -rf conftest*
12623   glibcpp_cv_func_frexpl_use=yes
12624 else
12625   echo "configure: failed program was:" >&5
12626   cat conftest.$ac_ext >&5
12627   rm -rf conftest*
12628   glibcpp_cv_func_frexpl_use=no
12629 fi
12630 rm -f conftest*
12631       ac_ext=c
12632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12633 ac_cpp='$CPP $CPPFLAGS'
12634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12636 cross_compiling=$ac_cv_prog_cc_cross
12637
12638     
12639 fi
12640
12641   fi
12642   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12643
12644   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12645     for ac_func in frexpl
12646 do
12647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12648 echo "configure:12649: checking for $ac_func" >&5
12649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12650   echo $ac_n "(cached) $ac_c" 1>&6
12651 else
12652   cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655 /* System header to define __stub macros and hopefully few prototypes,
12656     which can conflict with char $ac_func(); below.  */
12657 #include <assert.h>
12658 /* Override any gcc2 internal prototype to avoid an error.  */
12659 /* We use char because int might match the return type of a gcc2
12660     builtin and then its argument prototype would still apply.  */
12661 char $ac_func();
12662
12663 int main() {
12664
12665 /* The GNU C library defines this for functions which it implements
12666     to always fail with ENOSYS.  Some functions are actually named
12667     something starting with __ and the normal name is an alias.  */
12668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12669 choke me
12670 #else
12671 $ac_func();
12672 #endif
12673
12674 ; return 0; }
12675 EOF
12676 if { (eval echo configure:12677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12677   rm -rf conftest*
12678   eval "ac_cv_func_$ac_func=yes"
12679 else
12680   echo "configure: failed program was:" >&5
12681   cat conftest.$ac_ext >&5
12682   rm -rf conftest*
12683   eval "ac_cv_func_$ac_func=no"
12684 fi
12685 rm -f conftest*
12686 fi
12687
12688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12689   echo "$ac_t""yes" 1>&6
12690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12691   cat >> confdefs.h <<EOF
12692 #define $ac_tr_func 1
12693 EOF
12694  
12695 else
12696   echo "$ac_t""no" 1>&6
12697 fi
12698 done
12699     
12700   else
12701     
12702   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12703 echo "configure:12704: checking for _frexpl declaration" >&5
12704   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12705     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12706   echo $ac_n "(cached) $ac_c" 1>&6
12707 else
12708   
12709       
12710       ac_ext=C
12711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12712 ac_cpp='$CXXCPP $CPPFLAGS'
12713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12715 cross_compiling=$ac_cv_prog_cxx_cross
12716
12717       cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <math.h>
12721 int main() {
12722  _frexpl(0, 0);
12723 ; return 0; }
12724 EOF
12725 if { (eval echo configure:12726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12726   rm -rf conftest*
12727   glibcpp_cv_func__frexpl_use=yes
12728 else
12729   echo "configure: failed program was:" >&5
12730   cat conftest.$ac_ext >&5
12731   rm -rf conftest*
12732   glibcpp_cv_func__frexpl_use=no
12733 fi
12734 rm -f conftest*
12735       ac_ext=c
12736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12737 ac_cpp='$CPP $CPPFLAGS'
12738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12740 cross_compiling=$ac_cv_prog_cc_cross
12741
12742     
12743 fi
12744
12745   fi
12746   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12747
12748     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12749       for ac_func in _frexpl
12750 do
12751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12752 echo "configure:12753: checking for $ac_func" >&5
12753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12754   echo $ac_n "(cached) $ac_c" 1>&6
12755 else
12756   cat > conftest.$ac_ext <<EOF
12757 #line 12758 "configure"
12758 #include "confdefs.h"
12759 /* System header to define __stub macros and hopefully few prototypes,
12760     which can conflict with char $ac_func(); below.  */
12761 #include <assert.h>
12762 /* Override any gcc2 internal prototype to avoid an error.  */
12763 /* We use char because int might match the return type of a gcc2
12764     builtin and then its argument prototype would still apply.  */
12765 char $ac_func();
12766
12767 int main() {
12768
12769 /* The GNU C library defines this for functions which it implements
12770     to always fail with ENOSYS.  Some functions are actually named
12771     something starting with __ and the normal name is an alias.  */
12772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12773 choke me
12774 #else
12775 $ac_func();
12776 #endif
12777
12778 ; return 0; }
12779 EOF
12780 if { (eval echo configure:12781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12781   rm -rf conftest*
12782   eval "ac_cv_func_$ac_func=yes"
12783 else
12784   echo "configure: failed program was:" >&5
12785   cat conftest.$ac_ext >&5
12786   rm -rf conftest*
12787   eval "ac_cv_func_$ac_func=no"
12788 fi
12789 rm -f conftest*
12790 fi
12791
12792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12793   echo "$ac_t""yes" 1>&6
12794     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12795   cat >> confdefs.h <<EOF
12796 #define $ac_tr_func 1
12797 EOF
12798  
12799 else
12800   echo "$ac_t""no" 1>&6
12801 fi
12802 done
12803     
12804     fi
12805   fi
12806
12807   
12808   
12809   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12810 echo "configure:12811: checking for ldexpl declaration" >&5
12811   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12812     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12813   echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12815   
12816       
12817       ac_ext=C
12818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12819 ac_cpp='$CXXCPP $CPPFLAGS'
12820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12822 cross_compiling=$ac_cv_prog_cxx_cross
12823
12824       cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12827 #include <math.h>
12828 int main() {
12829  ldexpl(0, 0);
12830 ; return 0; }
12831 EOF
12832 if { (eval echo configure:12833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12833   rm -rf conftest*
12834   glibcpp_cv_func_ldexpl_use=yes
12835 else
12836   echo "configure: failed program was:" >&5
12837   cat conftest.$ac_ext >&5
12838   rm -rf conftest*
12839   glibcpp_cv_func_ldexpl_use=no
12840 fi
12841 rm -f conftest*
12842       ac_ext=c
12843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12844 ac_cpp='$CPP $CPPFLAGS'
12845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12847 cross_compiling=$ac_cv_prog_cc_cross
12848
12849     
12850 fi
12851
12852   fi
12853   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12854
12855   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12856     for ac_func in ldexpl
12857 do
12858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12859 echo "configure:12860: checking for $ac_func" >&5
12860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12861   echo $ac_n "(cached) $ac_c" 1>&6
12862 else
12863   cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 /* System header to define __stub macros and hopefully few prototypes,
12867     which can conflict with char $ac_func(); below.  */
12868 #include <assert.h>
12869 /* Override any gcc2 internal prototype to avoid an error.  */
12870 /* We use char because int might match the return type of a gcc2
12871     builtin and then its argument prototype would still apply.  */
12872 char $ac_func();
12873
12874 int main() {
12875
12876 /* The GNU C library defines this for functions which it implements
12877     to always fail with ENOSYS.  Some functions are actually named
12878     something starting with __ and the normal name is an alias.  */
12879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12880 choke me
12881 #else
12882 $ac_func();
12883 #endif
12884
12885 ; return 0; }
12886 EOF
12887 if { (eval echo configure:12888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12888   rm -rf conftest*
12889   eval "ac_cv_func_$ac_func=yes"
12890 else
12891   echo "configure: failed program was:" >&5
12892   cat conftest.$ac_ext >&5
12893   rm -rf conftest*
12894   eval "ac_cv_func_$ac_func=no"
12895 fi
12896 rm -f conftest*
12897 fi
12898
12899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12900   echo "$ac_t""yes" 1>&6
12901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12902   cat >> confdefs.h <<EOF
12903 #define $ac_tr_func 1
12904 EOF
12905  
12906 else
12907   echo "$ac_t""no" 1>&6
12908 fi
12909 done
12910     
12911   else
12912     
12913   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12914 echo "configure:12915: checking for _ldexpl declaration" >&5
12915   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12916     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12917   echo $ac_n "(cached) $ac_c" 1>&6
12918 else
12919   
12920       
12921       ac_ext=C
12922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12923 ac_cpp='$CXXCPP $CPPFLAGS'
12924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12926 cross_compiling=$ac_cv_prog_cxx_cross
12927
12928       cat > conftest.$ac_ext <<EOF
12929 #line 12930 "configure"
12930 #include "confdefs.h"
12931 #include <math.h>
12932 int main() {
12933  _ldexpl(0, 0);
12934 ; return 0; }
12935 EOF
12936 if { (eval echo configure:12937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12937   rm -rf conftest*
12938   glibcpp_cv_func__ldexpl_use=yes
12939 else
12940   echo "configure: failed program was:" >&5
12941   cat conftest.$ac_ext >&5
12942   rm -rf conftest*
12943   glibcpp_cv_func__ldexpl_use=no
12944 fi
12945 rm -f conftest*
12946       ac_ext=c
12947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12948 ac_cpp='$CPP $CPPFLAGS'
12949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12951 cross_compiling=$ac_cv_prog_cc_cross
12952
12953     
12954 fi
12955
12956   fi
12957   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12958
12959     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12960       for ac_func in _ldexpl
12961 do
12962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12963 echo "configure:12964: checking for $ac_func" >&5
12964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12965   echo $ac_n "(cached) $ac_c" 1>&6
12966 else
12967   cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure"
12969 #include "confdefs.h"
12970 /* System header to define __stub macros and hopefully few prototypes,
12971     which can conflict with char $ac_func(); below.  */
12972 #include <assert.h>
12973 /* Override any gcc2 internal prototype to avoid an error.  */
12974 /* We use char because int might match the return type of a gcc2
12975     builtin and then its argument prototype would still apply.  */
12976 char $ac_func();
12977
12978 int main() {
12979
12980 /* The GNU C library defines this for functions which it implements
12981     to always fail with ENOSYS.  Some functions are actually named
12982     something starting with __ and the normal name is an alias.  */
12983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12984 choke me
12985 #else
12986 $ac_func();
12987 #endif
12988
12989 ; return 0; }
12990 EOF
12991 if { (eval echo configure:12992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12992   rm -rf conftest*
12993   eval "ac_cv_func_$ac_func=yes"
12994 else
12995   echo "configure: failed program was:" >&5
12996   cat conftest.$ac_ext >&5
12997   rm -rf conftest*
12998   eval "ac_cv_func_$ac_func=no"
12999 fi
13000 rm -f conftest*
13001 fi
13002
13003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13004   echo "$ac_t""yes" 1>&6
13005     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13006   cat >> confdefs.h <<EOF
13007 #define $ac_tr_func 1
13008 EOF
13009  
13010 else
13011   echo "$ac_t""no" 1>&6
13012 fi
13013 done
13014     
13015     fi
13016   fi
13017
13018   
13019   
13020   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13021 echo "configure:13022: checking for logl declaration" >&5
13022   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13023     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13024   echo $ac_n "(cached) $ac_c" 1>&6
13025 else
13026   
13027       
13028       ac_ext=C
13029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13030 ac_cpp='$CXXCPP $CPPFLAGS'
13031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13033 cross_compiling=$ac_cv_prog_cxx_cross
13034
13035       cat > conftest.$ac_ext <<EOF
13036 #line 13037 "configure"
13037 #include "confdefs.h"
13038 #include <math.h>
13039                       #ifdef HAVE_IEEEFP_H
13040                       #include <ieeefp.h>
13041                       #endif
13042                      
13043 int main() {
13044  logl(0);
13045 ; return 0; }
13046 EOF
13047 if { (eval echo configure:13048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13048   rm -rf conftest*
13049   glibcpp_cv_func_logl_use=yes
13050 else
13051   echo "configure: failed program was:" >&5
13052   cat conftest.$ac_ext >&5
13053   rm -rf conftest*
13054   glibcpp_cv_func_logl_use=no
13055 fi
13056 rm -f conftest*
13057       ac_ext=c
13058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13059 ac_cpp='$CPP $CPPFLAGS'
13060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13062 cross_compiling=$ac_cv_prog_cc_cross
13063
13064     
13065 fi
13066
13067   fi
13068   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13069
13070   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13071     for ac_func in logl
13072 do
13073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13074 echo "configure:13075: checking for $ac_func" >&5
13075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13076   echo $ac_n "(cached) $ac_c" 1>&6
13077 else
13078   cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 /* System header to define __stub macros and hopefully few prototypes,
13082     which can conflict with char $ac_func(); below.  */
13083 #include <assert.h>
13084 /* Override any gcc2 internal prototype to avoid an error.  */
13085 /* We use char because int might match the return type of a gcc2
13086     builtin and then its argument prototype would still apply.  */
13087 char $ac_func();
13088
13089 int main() {
13090
13091 /* The GNU C library defines this for functions which it implements
13092     to always fail with ENOSYS.  Some functions are actually named
13093     something starting with __ and the normal name is an alias.  */
13094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13095 choke me
13096 #else
13097 $ac_func();
13098 #endif
13099
13100 ; return 0; }
13101 EOF
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13103   rm -rf conftest*
13104   eval "ac_cv_func_$ac_func=yes"
13105 else
13106   echo "configure: failed program was:" >&5
13107   cat conftest.$ac_ext >&5
13108   rm -rf conftest*
13109   eval "ac_cv_func_$ac_func=no"
13110 fi
13111 rm -f conftest*
13112 fi
13113
13114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13115   echo "$ac_t""yes" 1>&6
13116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13117   cat >> confdefs.h <<EOF
13118 #define $ac_tr_func 1
13119 EOF
13120  
13121 else
13122   echo "$ac_t""no" 1>&6
13123 fi
13124 done
13125     
13126   else
13127     
13128   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13129 echo "configure:13130: checking for _logl declaration" >&5
13130   if test x${glibcpp_cv_func__logl_use+set} != xset; then
13131     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13132   echo $ac_n "(cached) $ac_c" 1>&6
13133 else
13134   
13135       
13136       ac_ext=C
13137 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13138 ac_cpp='$CXXCPP $CPPFLAGS'
13139 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13140 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13141 cross_compiling=$ac_cv_prog_cxx_cross
13142
13143       cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13146 #include <math.h>
13147                       #ifdef HAVE_IEEEFP_H
13148                       #include <ieeefp.h>
13149                       #endif
13150                      
13151 int main() {
13152  _logl(0);
13153 ; return 0; }
13154 EOF
13155 if { (eval echo configure:13156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13156   rm -rf conftest*
13157   glibcpp_cv_func__logl_use=yes
13158 else
13159   echo "configure: failed program was:" >&5
13160   cat conftest.$ac_ext >&5
13161   rm -rf conftest*
13162   glibcpp_cv_func__logl_use=no
13163 fi
13164 rm -f conftest*
13165       ac_ext=c
13166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13167 ac_cpp='$CPP $CPPFLAGS'
13168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13170 cross_compiling=$ac_cv_prog_cc_cross
13171
13172     
13173 fi
13174
13175   fi
13176   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13177
13178     if test x$glibcpp_cv_func__logl_use = x"yes"; then
13179       for ac_func in _logl
13180 do
13181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13182 echo "configure:13183: checking for $ac_func" >&5
13183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13184   echo $ac_n "(cached) $ac_c" 1>&6
13185 else
13186   cat > conftest.$ac_ext <<EOF
13187 #line 13188 "configure"
13188 #include "confdefs.h"
13189 /* System header to define __stub macros and hopefully few prototypes,
13190     which can conflict with char $ac_func(); below.  */
13191 #include <assert.h>
13192 /* Override any gcc2 internal prototype to avoid an error.  */
13193 /* We use char because int might match the return type of a gcc2
13194     builtin and then its argument prototype would still apply.  */
13195 char $ac_func();
13196
13197 int main() {
13198
13199 /* The GNU C library defines this for functions which it implements
13200     to always fail with ENOSYS.  Some functions are actually named
13201     something starting with __ and the normal name is an alias.  */
13202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13203 choke me
13204 #else
13205 $ac_func();
13206 #endif
13207
13208 ; return 0; }
13209 EOF
13210 if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13211   rm -rf conftest*
13212   eval "ac_cv_func_$ac_func=yes"
13213 else
13214   echo "configure: failed program was:" >&5
13215   cat conftest.$ac_ext >&5
13216   rm -rf conftest*
13217   eval "ac_cv_func_$ac_func=no"
13218 fi
13219 rm -f conftest*
13220 fi
13221
13222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13223   echo "$ac_t""yes" 1>&6
13224     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13225   cat >> confdefs.h <<EOF
13226 #define $ac_tr_func 1
13227 EOF
13228  
13229 else
13230   echo "$ac_t""no" 1>&6
13231 fi
13232 done
13233     
13234     fi
13235   fi
13236
13237   
13238   
13239   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13240 echo "configure:13241: checking for log10l declaration" >&5
13241   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13242     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13243   echo $ac_n "(cached) $ac_c" 1>&6
13244 else
13245   
13246       
13247       ac_ext=C
13248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13249 ac_cpp='$CXXCPP $CPPFLAGS'
13250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13252 cross_compiling=$ac_cv_prog_cxx_cross
13253
13254       cat > conftest.$ac_ext <<EOF
13255 #line 13256 "configure"
13256 #include "confdefs.h"
13257 #include <math.h>
13258                       #ifdef HAVE_IEEEFP_H
13259                       #include <ieeefp.h>
13260                       #endif
13261                      
13262 int main() {
13263  log10l(0);
13264 ; return 0; }
13265 EOF
13266 if { (eval echo configure:13267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13267   rm -rf conftest*
13268   glibcpp_cv_func_log10l_use=yes
13269 else
13270   echo "configure: failed program was:" >&5
13271   cat conftest.$ac_ext >&5
13272   rm -rf conftest*
13273   glibcpp_cv_func_log10l_use=no
13274 fi
13275 rm -f conftest*
13276       ac_ext=c
13277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13278 ac_cpp='$CPP $CPPFLAGS'
13279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13281 cross_compiling=$ac_cv_prog_cc_cross
13282
13283     
13284 fi
13285
13286   fi
13287   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13288
13289   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13290     for ac_func in log10l
13291 do
13292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13293 echo "configure:13294: checking for $ac_func" >&5
13294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13295   echo $ac_n "(cached) $ac_c" 1>&6
13296 else
13297   cat > conftest.$ac_ext <<EOF
13298 #line 13299 "configure"
13299 #include "confdefs.h"
13300 /* System header to define __stub macros and hopefully few prototypes,
13301     which can conflict with char $ac_func(); below.  */
13302 #include <assert.h>
13303 /* Override any gcc2 internal prototype to avoid an error.  */
13304 /* We use char because int might match the return type of a gcc2
13305     builtin and then its argument prototype would still apply.  */
13306 char $ac_func();
13307
13308 int main() {
13309
13310 /* The GNU C library defines this for functions which it implements
13311     to always fail with ENOSYS.  Some functions are actually named
13312     something starting with __ and the normal name is an alias.  */
13313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13314 choke me
13315 #else
13316 $ac_func();
13317 #endif
13318
13319 ; return 0; }
13320 EOF
13321 if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13322   rm -rf conftest*
13323   eval "ac_cv_func_$ac_func=yes"
13324 else
13325   echo "configure: failed program was:" >&5
13326   cat conftest.$ac_ext >&5
13327   rm -rf conftest*
13328   eval "ac_cv_func_$ac_func=no"
13329 fi
13330 rm -f conftest*
13331 fi
13332
13333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13334   echo "$ac_t""yes" 1>&6
13335     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13336   cat >> confdefs.h <<EOF
13337 #define $ac_tr_func 1
13338 EOF
13339  
13340 else
13341   echo "$ac_t""no" 1>&6
13342 fi
13343 done
13344     
13345   else
13346     
13347   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13348 echo "configure:13349: checking for _log10l declaration" >&5
13349   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13350     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13351   echo $ac_n "(cached) $ac_c" 1>&6
13352 else
13353   
13354       
13355       ac_ext=C
13356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13357 ac_cpp='$CXXCPP $CPPFLAGS'
13358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13360 cross_compiling=$ac_cv_prog_cxx_cross
13361
13362       cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 #include <math.h>
13366                       #ifdef HAVE_IEEEFP_H
13367                       #include <ieeefp.h>
13368                       #endif
13369                      
13370 int main() {
13371  _log10l(0);
13372 ; return 0; }
13373 EOF
13374 if { (eval echo configure:13375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13375   rm -rf conftest*
13376   glibcpp_cv_func__log10l_use=yes
13377 else
13378   echo "configure: failed program was:" >&5
13379   cat conftest.$ac_ext >&5
13380   rm -rf conftest*
13381   glibcpp_cv_func__log10l_use=no
13382 fi
13383 rm -f conftest*
13384       ac_ext=c
13385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13386 ac_cpp='$CPP $CPPFLAGS'
13387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13389 cross_compiling=$ac_cv_prog_cc_cross
13390
13391     
13392 fi
13393
13394   fi
13395   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13396
13397     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13398       for ac_func in _log10l
13399 do
13400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13401 echo "configure:13402: checking for $ac_func" >&5
13402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13403   echo $ac_n "(cached) $ac_c" 1>&6
13404 else
13405   cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 /* System header to define __stub macros and hopefully few prototypes,
13409     which can conflict with char $ac_func(); below.  */
13410 #include <assert.h>
13411 /* Override any gcc2 internal prototype to avoid an error.  */
13412 /* We use char because int might match the return type of a gcc2
13413     builtin and then its argument prototype would still apply.  */
13414 char $ac_func();
13415
13416 int main() {
13417
13418 /* The GNU C library defines this for functions which it implements
13419     to always fail with ENOSYS.  Some functions are actually named
13420     something starting with __ and the normal name is an alias.  */
13421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13422 choke me
13423 #else
13424 $ac_func();
13425 #endif
13426
13427 ; return 0; }
13428 EOF
13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13430   rm -rf conftest*
13431   eval "ac_cv_func_$ac_func=yes"
13432 else
13433   echo "configure: failed program was:" >&5
13434   cat conftest.$ac_ext >&5
13435   rm -rf conftest*
13436   eval "ac_cv_func_$ac_func=no"
13437 fi
13438 rm -f conftest*
13439 fi
13440
13441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13442   echo "$ac_t""yes" 1>&6
13443     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13444   cat >> confdefs.h <<EOF
13445 #define $ac_tr_func 1
13446 EOF
13447  
13448 else
13449   echo "$ac_t""no" 1>&6
13450 fi
13451 done
13452     
13453     fi
13454   fi
13455
13456   
13457   
13458   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13459 echo "configure:13460: checking for modfl declaration" >&5
13460   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13461     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13462   echo $ac_n "(cached) $ac_c" 1>&6
13463 else
13464   
13465       
13466       ac_ext=C
13467 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13468 ac_cpp='$CXXCPP $CPPFLAGS'
13469 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13470 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13471 cross_compiling=$ac_cv_prog_cxx_cross
13472
13473       cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13476 #include <math.h>
13477 int main() {
13478  modfl(0, 0);
13479 ; return 0; }
13480 EOF
13481 if { (eval echo configure:13482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13482   rm -rf conftest*
13483   glibcpp_cv_func_modfl_use=yes
13484 else
13485   echo "configure: failed program was:" >&5
13486   cat conftest.$ac_ext >&5
13487   rm -rf conftest*
13488   glibcpp_cv_func_modfl_use=no
13489 fi
13490 rm -f conftest*
13491       ac_ext=c
13492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13493 ac_cpp='$CPP $CPPFLAGS'
13494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13496 cross_compiling=$ac_cv_prog_cc_cross
13497
13498     
13499 fi
13500
13501   fi
13502   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13503
13504   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13505     for ac_func in modfl
13506 do
13507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13508 echo "configure:13509: checking for $ac_func" >&5
13509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13510   echo $ac_n "(cached) $ac_c" 1>&6
13511 else
13512   cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 /* System header to define __stub macros and hopefully few prototypes,
13516     which can conflict with char $ac_func(); below.  */
13517 #include <assert.h>
13518 /* Override any gcc2 internal prototype to avoid an error.  */
13519 /* We use char because int might match the return type of a gcc2
13520     builtin and then its argument prototype would still apply.  */
13521 char $ac_func();
13522
13523 int main() {
13524
13525 /* The GNU C library defines this for functions which it implements
13526     to always fail with ENOSYS.  Some functions are actually named
13527     something starting with __ and the normal name is an alias.  */
13528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13529 choke me
13530 #else
13531 $ac_func();
13532 #endif
13533
13534 ; return 0; }
13535 EOF
13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13537   rm -rf conftest*
13538   eval "ac_cv_func_$ac_func=yes"
13539 else
13540   echo "configure: failed program was:" >&5
13541   cat conftest.$ac_ext >&5
13542   rm -rf conftest*
13543   eval "ac_cv_func_$ac_func=no"
13544 fi
13545 rm -f conftest*
13546 fi
13547
13548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13549   echo "$ac_t""yes" 1>&6
13550     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13551   cat >> confdefs.h <<EOF
13552 #define $ac_tr_func 1
13553 EOF
13554  
13555 else
13556   echo "$ac_t""no" 1>&6
13557 fi
13558 done
13559     
13560   else
13561     
13562   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13563 echo "configure:13564: checking for _modfl declaration" >&5
13564   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13565     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13566   echo $ac_n "(cached) $ac_c" 1>&6
13567 else
13568   
13569       
13570       ac_ext=C
13571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13572 ac_cpp='$CXXCPP $CPPFLAGS'
13573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13575 cross_compiling=$ac_cv_prog_cxx_cross
13576
13577       cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13580 #include <math.h>
13581 int main() {
13582  _modfl(0, 0);
13583 ; return 0; }
13584 EOF
13585 if { (eval echo configure:13586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13586   rm -rf conftest*
13587   glibcpp_cv_func__modfl_use=yes
13588 else
13589   echo "configure: failed program was:" >&5
13590   cat conftest.$ac_ext >&5
13591   rm -rf conftest*
13592   glibcpp_cv_func__modfl_use=no
13593 fi
13594 rm -f conftest*
13595       ac_ext=c
13596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13597 ac_cpp='$CPP $CPPFLAGS'
13598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13600 cross_compiling=$ac_cv_prog_cc_cross
13601
13602     
13603 fi
13604
13605   fi
13606   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13607
13608     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13609       for ac_func in _modfl
13610 do
13611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13612 echo "configure:13613: checking for $ac_func" >&5
13613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13614   echo $ac_n "(cached) $ac_c" 1>&6
13615 else
13616   cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure"
13618 #include "confdefs.h"
13619 /* System header to define __stub macros and hopefully few prototypes,
13620     which can conflict with char $ac_func(); below.  */
13621 #include <assert.h>
13622 /* Override any gcc2 internal prototype to avoid an error.  */
13623 /* We use char because int might match the return type of a gcc2
13624     builtin and then its argument prototype would still apply.  */
13625 char $ac_func();
13626
13627 int main() {
13628
13629 /* The GNU C library defines this for functions which it implements
13630     to always fail with ENOSYS.  Some functions are actually named
13631     something starting with __ and the normal name is an alias.  */
13632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13633 choke me
13634 #else
13635 $ac_func();
13636 #endif
13637
13638 ; return 0; }
13639 EOF
13640 if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13641   rm -rf conftest*
13642   eval "ac_cv_func_$ac_func=yes"
13643 else
13644   echo "configure: failed program was:" >&5
13645   cat conftest.$ac_ext >&5
13646   rm -rf conftest*
13647   eval "ac_cv_func_$ac_func=no"
13648 fi
13649 rm -f conftest*
13650 fi
13651
13652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13653   echo "$ac_t""yes" 1>&6
13654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13655   cat >> confdefs.h <<EOF
13656 #define $ac_tr_func 1
13657 EOF
13658  
13659 else
13660   echo "$ac_t""no" 1>&6
13661 fi
13662 done
13663     
13664     fi
13665   fi
13666
13667   
13668   
13669   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13670 echo "configure:13671: checking for powl declaration" >&5
13671   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13672     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13673   echo $ac_n "(cached) $ac_c" 1>&6
13674 else
13675   
13676       
13677       ac_ext=C
13678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13679 ac_cpp='$CXXCPP $CPPFLAGS'
13680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13682 cross_compiling=$ac_cv_prog_cxx_cross
13683
13684       cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 #include <math.h>
13688 int main() {
13689  powl(0, 0);
13690 ; return 0; }
13691 EOF
13692 if { (eval echo configure:13693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13693   rm -rf conftest*
13694   glibcpp_cv_func_powl_use=yes
13695 else
13696   echo "configure: failed program was:" >&5
13697   cat conftest.$ac_ext >&5
13698   rm -rf conftest*
13699   glibcpp_cv_func_powl_use=no
13700 fi
13701 rm -f conftest*
13702       ac_ext=c
13703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13704 ac_cpp='$CPP $CPPFLAGS'
13705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13707 cross_compiling=$ac_cv_prog_cc_cross
13708
13709     
13710 fi
13711
13712   fi
13713   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13714
13715   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13716     for ac_func in powl
13717 do
13718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13719 echo "configure:13720: checking for $ac_func" >&5
13720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13721   echo $ac_n "(cached) $ac_c" 1>&6
13722 else
13723   cat > conftest.$ac_ext <<EOF
13724 #line 13725 "configure"
13725 #include "confdefs.h"
13726 /* System header to define __stub macros and hopefully few prototypes,
13727     which can conflict with char $ac_func(); below.  */
13728 #include <assert.h>
13729 /* Override any gcc2 internal prototype to avoid an error.  */
13730 /* We use char because int might match the return type of a gcc2
13731     builtin and then its argument prototype would still apply.  */
13732 char $ac_func();
13733
13734 int main() {
13735
13736 /* The GNU C library defines this for functions which it implements
13737     to always fail with ENOSYS.  Some functions are actually named
13738     something starting with __ and the normal name is an alias.  */
13739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13740 choke me
13741 #else
13742 $ac_func();
13743 #endif
13744
13745 ; return 0; }
13746 EOF
13747 if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748   rm -rf conftest*
13749   eval "ac_cv_func_$ac_func=yes"
13750 else
13751   echo "configure: failed program was:" >&5
13752   cat conftest.$ac_ext >&5
13753   rm -rf conftest*
13754   eval "ac_cv_func_$ac_func=no"
13755 fi
13756 rm -f conftest*
13757 fi
13758
13759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13760   echo "$ac_t""yes" 1>&6
13761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13762   cat >> confdefs.h <<EOF
13763 #define $ac_tr_func 1
13764 EOF
13765  
13766 else
13767   echo "$ac_t""no" 1>&6
13768 fi
13769 done
13770     
13771   else
13772     
13773   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13774 echo "configure:13775: checking for _powl declaration" >&5
13775   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13776     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13777   echo $ac_n "(cached) $ac_c" 1>&6
13778 else
13779   
13780       
13781       ac_ext=C
13782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13783 ac_cpp='$CXXCPP $CPPFLAGS'
13784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13786 cross_compiling=$ac_cv_prog_cxx_cross
13787
13788       cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13791 #include <math.h>
13792 int main() {
13793  _powl(0, 0);
13794 ; return 0; }
13795 EOF
13796 if { (eval echo configure:13797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13797   rm -rf conftest*
13798   glibcpp_cv_func__powl_use=yes
13799 else
13800   echo "configure: failed program was:" >&5
13801   cat conftest.$ac_ext >&5
13802   rm -rf conftest*
13803   glibcpp_cv_func__powl_use=no
13804 fi
13805 rm -f conftest*
13806       ac_ext=c
13807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13808 ac_cpp='$CPP $CPPFLAGS'
13809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13811 cross_compiling=$ac_cv_prog_cc_cross
13812
13813     
13814 fi
13815
13816   fi
13817   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13818
13819     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13820       for ac_func in _powl
13821 do
13822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13823 echo "configure:13824: checking for $ac_func" >&5
13824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13825   echo $ac_n "(cached) $ac_c" 1>&6
13826 else
13827   cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 /* System header to define __stub macros and hopefully few prototypes,
13831     which can conflict with char $ac_func(); below.  */
13832 #include <assert.h>
13833 /* Override any gcc2 internal prototype to avoid an error.  */
13834 /* We use char because int might match the return type of a gcc2
13835     builtin and then its argument prototype would still apply.  */
13836 char $ac_func();
13837
13838 int main() {
13839
13840 /* The GNU C library defines this for functions which it implements
13841     to always fail with ENOSYS.  Some functions are actually named
13842     something starting with __ and the normal name is an alias.  */
13843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13844 choke me
13845 #else
13846 $ac_func();
13847 #endif
13848
13849 ; return 0; }
13850 EOF
13851 if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852   rm -rf conftest*
13853   eval "ac_cv_func_$ac_func=yes"
13854 else
13855   echo "configure: failed program was:" >&5
13856   cat conftest.$ac_ext >&5
13857   rm -rf conftest*
13858   eval "ac_cv_func_$ac_func=no"
13859 fi
13860 rm -f conftest*
13861 fi
13862
13863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13864   echo "$ac_t""yes" 1>&6
13865     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13866   cat >> confdefs.h <<EOF
13867 #define $ac_tr_func 1
13868 EOF
13869  
13870 else
13871   echo "$ac_t""no" 1>&6
13872 fi
13873 done
13874     
13875     fi
13876   fi
13877
13878   
13879   
13880   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13881 echo "configure:13882: checking for sqrtl declaration" >&5
13882   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13883     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13884   echo $ac_n "(cached) $ac_c" 1>&6
13885 else
13886   
13887       
13888       ac_ext=C
13889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13890 ac_cpp='$CXXCPP $CPPFLAGS'
13891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13893 cross_compiling=$ac_cv_prog_cxx_cross
13894
13895       cat > conftest.$ac_ext <<EOF
13896 #line 13897 "configure"
13897 #include "confdefs.h"
13898 #include <math.h>
13899                       #ifdef HAVE_IEEEFP_H
13900                       #include <ieeefp.h>
13901                       #endif
13902                      
13903 int main() {
13904  sqrtl(0);
13905 ; return 0; }
13906 EOF
13907 if { (eval echo configure:13908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13908   rm -rf conftest*
13909   glibcpp_cv_func_sqrtl_use=yes
13910 else
13911   echo "configure: failed program was:" >&5
13912   cat conftest.$ac_ext >&5
13913   rm -rf conftest*
13914   glibcpp_cv_func_sqrtl_use=no
13915 fi
13916 rm -f conftest*
13917       ac_ext=c
13918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13919 ac_cpp='$CPP $CPPFLAGS'
13920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13922 cross_compiling=$ac_cv_prog_cc_cross
13923
13924     
13925 fi
13926
13927   fi
13928   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13929
13930   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13931     for ac_func in sqrtl
13932 do
13933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13934 echo "configure:13935: checking for $ac_func" >&5
13935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13936   echo $ac_n "(cached) $ac_c" 1>&6
13937 else
13938   cat > conftest.$ac_ext <<EOF
13939 #line 13940 "configure"
13940 #include "confdefs.h"
13941 /* System header to define __stub macros and hopefully few prototypes,
13942     which can conflict with char $ac_func(); below.  */
13943 #include <assert.h>
13944 /* Override any gcc2 internal prototype to avoid an error.  */
13945 /* We use char because int might match the return type of a gcc2
13946     builtin and then its argument prototype would still apply.  */
13947 char $ac_func();
13948
13949 int main() {
13950
13951 /* The GNU C library defines this for functions which it implements
13952     to always fail with ENOSYS.  Some functions are actually named
13953     something starting with __ and the normal name is an alias.  */
13954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13955 choke me
13956 #else
13957 $ac_func();
13958 #endif
13959
13960 ; return 0; }
13961 EOF
13962 if { (eval echo configure:13963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13963   rm -rf conftest*
13964   eval "ac_cv_func_$ac_func=yes"
13965 else
13966   echo "configure: failed program was:" >&5
13967   cat conftest.$ac_ext >&5
13968   rm -rf conftest*
13969   eval "ac_cv_func_$ac_func=no"
13970 fi
13971 rm -f conftest*
13972 fi
13973
13974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13975   echo "$ac_t""yes" 1>&6
13976     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13977   cat >> confdefs.h <<EOF
13978 #define $ac_tr_func 1
13979 EOF
13980  
13981 else
13982   echo "$ac_t""no" 1>&6
13983 fi
13984 done
13985     
13986   else
13987     
13988   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13989 echo "configure:13990: checking for _sqrtl declaration" >&5
13990   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13991     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13992   echo $ac_n "(cached) $ac_c" 1>&6
13993 else
13994   
13995       
13996       ac_ext=C
13997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13998 ac_cpp='$CXXCPP $CPPFLAGS'
13999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14001 cross_compiling=$ac_cv_prog_cxx_cross
14002
14003       cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 #include <math.h>
14007                       #ifdef HAVE_IEEEFP_H
14008                       #include <ieeefp.h>
14009                       #endif
14010                      
14011 int main() {
14012  _sqrtl(0);
14013 ; return 0; }
14014 EOF
14015 if { (eval echo configure:14016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14016   rm -rf conftest*
14017   glibcpp_cv_func__sqrtl_use=yes
14018 else
14019   echo "configure: failed program was:" >&5
14020   cat conftest.$ac_ext >&5
14021   rm -rf conftest*
14022   glibcpp_cv_func__sqrtl_use=no
14023 fi
14024 rm -f conftest*
14025       ac_ext=c
14026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14027 ac_cpp='$CPP $CPPFLAGS'
14028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14030 cross_compiling=$ac_cv_prog_cc_cross
14031
14032     
14033 fi
14034
14035   fi
14036   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14037
14038     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14039       for ac_func in _sqrtl
14040 do
14041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14042 echo "configure:14043: checking for $ac_func" >&5
14043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14044   echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14046   cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 /* System header to define __stub macros and hopefully few prototypes,
14050     which can conflict with char $ac_func(); below.  */
14051 #include <assert.h>
14052 /* Override any gcc2 internal prototype to avoid an error.  */
14053 /* We use char because int might match the return type of a gcc2
14054     builtin and then its argument prototype would still apply.  */
14055 char $ac_func();
14056
14057 int main() {
14058
14059 /* The GNU C library defines this for functions which it implements
14060     to always fail with ENOSYS.  Some functions are actually named
14061     something starting with __ and the normal name is an alias.  */
14062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14063 choke me
14064 #else
14065 $ac_func();
14066 #endif
14067
14068 ; return 0; }
14069 EOF
14070 if { (eval echo configure:14071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14071   rm -rf conftest*
14072   eval "ac_cv_func_$ac_func=yes"
14073 else
14074   echo "configure: failed program was:" >&5
14075   cat conftest.$ac_ext >&5
14076   rm -rf conftest*
14077   eval "ac_cv_func_$ac_func=no"
14078 fi
14079 rm -f conftest*
14080 fi
14081
14082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14083   echo "$ac_t""yes" 1>&6
14084     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14085   cat >> confdefs.h <<EOF
14086 #define $ac_tr_func 1
14087 EOF
14088  
14089 else
14090   echo "$ac_t""no" 1>&6
14091 fi
14092 done
14093     
14094     fi
14095   fi
14096
14097   
14098   
14099   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14100 echo "configure:14101: checking for sincosl declaration" >&5
14101   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14102     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14103   echo $ac_n "(cached) $ac_c" 1>&6
14104 else
14105   
14106       
14107       ac_ext=C
14108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14109 ac_cpp='$CXXCPP $CPPFLAGS'
14110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14112 cross_compiling=$ac_cv_prog_cxx_cross
14113
14114       cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117 #include <math.h>
14118 int main() {
14119  sincosl(0, 0, 0);
14120 ; return 0; }
14121 EOF
14122 if { (eval echo configure:14123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14123   rm -rf conftest*
14124   glibcpp_cv_func_sincosl_use=yes
14125 else
14126   echo "configure: failed program was:" >&5
14127   cat conftest.$ac_ext >&5
14128   rm -rf conftest*
14129   glibcpp_cv_func_sincosl_use=no
14130 fi
14131 rm -f conftest*
14132       ac_ext=c
14133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14134 ac_cpp='$CPP $CPPFLAGS'
14135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14137 cross_compiling=$ac_cv_prog_cc_cross
14138
14139     
14140 fi
14141
14142   fi
14143   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14144
14145   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14146     for ac_func in sincosl
14147 do
14148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14149 echo "configure:14150: checking for $ac_func" >&5
14150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14151   echo $ac_n "(cached) $ac_c" 1>&6
14152 else
14153   cat > conftest.$ac_ext <<EOF
14154 #line 14155 "configure"
14155 #include "confdefs.h"
14156 /* System header to define __stub macros and hopefully few prototypes,
14157     which can conflict with char $ac_func(); below.  */
14158 #include <assert.h>
14159 /* Override any gcc2 internal prototype to avoid an error.  */
14160 /* We use char because int might match the return type of a gcc2
14161     builtin and then its argument prototype would still apply.  */
14162 char $ac_func();
14163
14164 int main() {
14165
14166 /* The GNU C library defines this for functions which it implements
14167     to always fail with ENOSYS.  Some functions are actually named
14168     something starting with __ and the normal name is an alias.  */
14169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14170 choke me
14171 #else
14172 $ac_func();
14173 #endif
14174
14175 ; return 0; }
14176 EOF
14177 if { (eval echo configure:14178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14178   rm -rf conftest*
14179   eval "ac_cv_func_$ac_func=yes"
14180 else
14181   echo "configure: failed program was:" >&5
14182   cat conftest.$ac_ext >&5
14183   rm -rf conftest*
14184   eval "ac_cv_func_$ac_func=no"
14185 fi
14186 rm -f conftest*
14187 fi
14188
14189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14190   echo "$ac_t""yes" 1>&6
14191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14192   cat >> confdefs.h <<EOF
14193 #define $ac_tr_func 1
14194 EOF
14195  
14196 else
14197   echo "$ac_t""no" 1>&6
14198 fi
14199 done
14200     
14201   else
14202     
14203   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14204 echo "configure:14205: checking for _sincosl declaration" >&5
14205   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14206     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14207   echo $ac_n "(cached) $ac_c" 1>&6
14208 else
14209   
14210       
14211       ac_ext=C
14212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14213 ac_cpp='$CXXCPP $CPPFLAGS'
14214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14216 cross_compiling=$ac_cv_prog_cxx_cross
14217
14218       cat > conftest.$ac_ext <<EOF
14219 #line 14220 "configure"
14220 #include "confdefs.h"
14221 #include <math.h>
14222 int main() {
14223  _sincosl(0, 0, 0);
14224 ; return 0; }
14225 EOF
14226 if { (eval echo configure:14227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14227   rm -rf conftest*
14228   glibcpp_cv_func__sincosl_use=yes
14229 else
14230   echo "configure: failed program was:" >&5
14231   cat conftest.$ac_ext >&5
14232   rm -rf conftest*
14233   glibcpp_cv_func__sincosl_use=no
14234 fi
14235 rm -f conftest*
14236       ac_ext=c
14237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14238 ac_cpp='$CPP $CPPFLAGS'
14239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14241 cross_compiling=$ac_cv_prog_cc_cross
14242
14243     
14244 fi
14245
14246   fi
14247   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14248
14249     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14250       for ac_func in _sincosl
14251 do
14252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14253 echo "configure:14254: checking for $ac_func" >&5
14254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14255   echo $ac_n "(cached) $ac_c" 1>&6
14256 else
14257   cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 /* System header to define __stub macros and hopefully few prototypes,
14261     which can conflict with char $ac_func(); below.  */
14262 #include <assert.h>
14263 /* Override any gcc2 internal prototype to avoid an error.  */
14264 /* We use char because int might match the return type of a gcc2
14265     builtin and then its argument prototype would still apply.  */
14266 char $ac_func();
14267
14268 int main() {
14269
14270 /* The GNU C library defines this for functions which it implements
14271     to always fail with ENOSYS.  Some functions are actually named
14272     something starting with __ and the normal name is an alias.  */
14273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14274 choke me
14275 #else
14276 $ac_func();
14277 #endif
14278
14279 ; return 0; }
14280 EOF
14281 if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14282   rm -rf conftest*
14283   eval "ac_cv_func_$ac_func=yes"
14284 else
14285   echo "configure: failed program was:" >&5
14286   cat conftest.$ac_ext >&5
14287   rm -rf conftest*
14288   eval "ac_cv_func_$ac_func=no"
14289 fi
14290 rm -f conftest*
14291 fi
14292
14293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14294   echo "$ac_t""yes" 1>&6
14295     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14296   cat >> confdefs.h <<EOF
14297 #define $ac_tr_func 1
14298 EOF
14299  
14300 else
14301   echo "$ac_t""no" 1>&6
14302 fi
14303 done
14304     
14305     fi
14306   fi
14307
14308   
14309   
14310   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14311 echo "configure:14312: checking for finitel declaration" >&5
14312   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14313     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14314   echo $ac_n "(cached) $ac_c" 1>&6
14315 else
14316   
14317       
14318       ac_ext=C
14319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14320 ac_cpp='$CXXCPP $CPPFLAGS'
14321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14323 cross_compiling=$ac_cv_prog_cxx_cross
14324
14325       cat > conftest.$ac_ext <<EOF
14326 #line 14327 "configure"
14327 #include "confdefs.h"
14328 #include <math.h>
14329                       #ifdef HAVE_IEEEFP_H
14330                       #include <ieeefp.h>
14331                       #endif
14332                      
14333 int main() {
14334  finitel(0);
14335 ; return 0; }
14336 EOF
14337 if { (eval echo configure:14338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14338   rm -rf conftest*
14339   glibcpp_cv_func_finitel_use=yes
14340 else
14341   echo "configure: failed program was:" >&5
14342   cat conftest.$ac_ext >&5
14343   rm -rf conftest*
14344   glibcpp_cv_func_finitel_use=no
14345 fi
14346 rm -f conftest*
14347       ac_ext=c
14348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14349 ac_cpp='$CPP $CPPFLAGS'
14350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14352 cross_compiling=$ac_cv_prog_cc_cross
14353
14354     
14355 fi
14356
14357   fi
14358   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14359
14360   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14361     for ac_func in finitel
14362 do
14363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14364 echo "configure:14365: checking for $ac_func" >&5
14365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14366   echo $ac_n "(cached) $ac_c" 1>&6
14367 else
14368   cat > conftest.$ac_ext <<EOF
14369 #line 14370 "configure"
14370 #include "confdefs.h"
14371 /* System header to define __stub macros and hopefully few prototypes,
14372     which can conflict with char $ac_func(); below.  */
14373 #include <assert.h>
14374 /* Override any gcc2 internal prototype to avoid an error.  */
14375 /* We use char because int might match the return type of a gcc2
14376     builtin and then its argument prototype would still apply.  */
14377 char $ac_func();
14378
14379 int main() {
14380
14381 /* The GNU C library defines this for functions which it implements
14382     to always fail with ENOSYS.  Some functions are actually named
14383     something starting with __ and the normal name is an alias.  */
14384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14385 choke me
14386 #else
14387 $ac_func();
14388 #endif
14389
14390 ; return 0; }
14391 EOF
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14393   rm -rf conftest*
14394   eval "ac_cv_func_$ac_func=yes"
14395 else
14396   echo "configure: failed program was:" >&5
14397   cat conftest.$ac_ext >&5
14398   rm -rf conftest*
14399   eval "ac_cv_func_$ac_func=no"
14400 fi
14401 rm -f conftest*
14402 fi
14403
14404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14405   echo "$ac_t""yes" 1>&6
14406     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14407   cat >> confdefs.h <<EOF
14408 #define $ac_tr_func 1
14409 EOF
14410  
14411 else
14412   echo "$ac_t""no" 1>&6
14413 fi
14414 done
14415     
14416   else
14417     
14418   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14419 echo "configure:14420: checking for _finitel declaration" >&5
14420   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14421     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14422   echo $ac_n "(cached) $ac_c" 1>&6
14423 else
14424   
14425       
14426       ac_ext=C
14427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14428 ac_cpp='$CXXCPP $CPPFLAGS'
14429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14431 cross_compiling=$ac_cv_prog_cxx_cross
14432
14433       cat > conftest.$ac_ext <<EOF
14434 #line 14435 "configure"
14435 #include "confdefs.h"
14436 #include <math.h>
14437                       #ifdef HAVE_IEEEFP_H
14438                       #include <ieeefp.h>
14439                       #endif
14440                      
14441 int main() {
14442  _finitel(0);
14443 ; return 0; }
14444 EOF
14445 if { (eval echo configure:14446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14446   rm -rf conftest*
14447   glibcpp_cv_func__finitel_use=yes
14448 else
14449   echo "configure: failed program was:" >&5
14450   cat conftest.$ac_ext >&5
14451   rm -rf conftest*
14452   glibcpp_cv_func__finitel_use=no
14453 fi
14454 rm -f conftest*
14455       ac_ext=c
14456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14457 ac_cpp='$CPP $CPPFLAGS'
14458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14460 cross_compiling=$ac_cv_prog_cc_cross
14461
14462     
14463 fi
14464
14465   fi
14466   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14467
14468     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14469       for ac_func in _finitel
14470 do
14471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14472 echo "configure:14473: checking for $ac_func" >&5
14473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14474   echo $ac_n "(cached) $ac_c" 1>&6
14475 else
14476   cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 /* System header to define __stub macros and hopefully few prototypes,
14480     which can conflict with char $ac_func(); below.  */
14481 #include <assert.h>
14482 /* Override any gcc2 internal prototype to avoid an error.  */
14483 /* We use char because int might match the return type of a gcc2
14484     builtin and then its argument prototype would still apply.  */
14485 char $ac_func();
14486
14487 int main() {
14488
14489 /* The GNU C library defines this for functions which it implements
14490     to always fail with ENOSYS.  Some functions are actually named
14491     something starting with __ and the normal name is an alias.  */
14492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14493 choke me
14494 #else
14495 $ac_func();
14496 #endif
14497
14498 ; return 0; }
14499 EOF
14500 if { (eval echo configure:14501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14501   rm -rf conftest*
14502   eval "ac_cv_func_$ac_func=yes"
14503 else
14504   echo "configure: failed program was:" >&5
14505   cat conftest.$ac_ext >&5
14506   rm -rf conftest*
14507   eval "ac_cv_func_$ac_func=no"
14508 fi
14509 rm -f conftest*
14510 fi
14511
14512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14513   echo "$ac_t""yes" 1>&6
14514     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14515   cat >> confdefs.h <<EOF
14516 #define $ac_tr_func 1
14517 EOF
14518  
14519 else
14520   echo "$ac_t""no" 1>&6
14521 fi
14522 done
14523     
14524     fi
14525   fi
14526
14527
14528         
14529     
14530   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14531 echo "configure:14532: checking for _float trig functions" >&5
14532   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14533   echo $ac_n "(cached) $ac_c" 1>&6
14534 else
14535   
14536     
14537     ac_ext=C
14538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14539 ac_cpp='$CXXCPP $CPPFLAGS'
14540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14541 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14542 cross_compiling=$ac_cv_prog_cxx_cross
14543
14544     cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547 #include <math.h>
14548 int main() {
14549  `for x in _acosf _asinf _atanf \
14550                                           _cosf _sinf _tanf \
14551                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14552 ; return 0; }
14553 EOF
14554 if { (eval echo configure:14555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14555   rm -rf conftest*
14556   glibcpp_cv_func__float_trig_use=yes
14557 else
14558   echo "configure: failed program was:" >&5
14559   cat conftest.$ac_ext >&5
14560   rm -rf conftest*
14561   glibcpp_cv_func__float_trig_use=no
14562 fi
14563 rm -f conftest*
14564     ac_ext=c
14565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14566 ac_cpp='$CPP $CPPFLAGS'
14567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14569 cross_compiling=$ac_cv_prog_cc_cross
14570
14571 fi
14572
14573   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14574   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14575     for ac_func in _acosf _asinf _atanf \
14576                                           _cosf _sinf _tanf \
14577                                           _coshf _sinhf _tanhf
14578 do
14579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14580 echo "configure:14581: checking for $ac_func" >&5
14581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14582   echo $ac_n "(cached) $ac_c" 1>&6
14583 else
14584   cat > conftest.$ac_ext <<EOF
14585 #line 14586 "configure"
14586 #include "confdefs.h"
14587 /* System header to define __stub macros and hopefully few prototypes,
14588     which can conflict with char $ac_func(); below.  */
14589 #include <assert.h>
14590 /* Override any gcc2 internal prototype to avoid an error.  */
14591 /* We use char because int might match the return type of a gcc2
14592     builtin and then its argument prototype would still apply.  */
14593 char $ac_func();
14594
14595 int main() {
14596
14597 /* The GNU C library defines this for functions which it implements
14598     to always fail with ENOSYS.  Some functions are actually named
14599     something starting with __ and the normal name is an alias.  */
14600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14601 choke me
14602 #else
14603 $ac_func();
14604 #endif
14605
14606 ; return 0; }
14607 EOF
14608 if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14609   rm -rf conftest*
14610   eval "ac_cv_func_$ac_func=yes"
14611 else
14612   echo "configure: failed program was:" >&5
14613   cat conftest.$ac_ext >&5
14614   rm -rf conftest*
14615   eval "ac_cv_func_$ac_func=no"
14616 fi
14617 rm -f conftest*
14618 fi
14619
14620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14621   echo "$ac_t""yes" 1>&6
14622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14623   cat >> confdefs.h <<EOF
14624 #define $ac_tr_func 1
14625 EOF
14626  
14627 else
14628   echo "$ac_t""no" 1>&6
14629 fi
14630 done
14631
14632   fi
14633
14634   
14635   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14636 echo "configure:14637: checking for _float round functions" >&5
14637   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14638   echo $ac_n "(cached) $ac_c" 1>&6
14639 else
14640   
14641     
14642     ac_ext=C
14643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14644 ac_cpp='$CXXCPP $CPPFLAGS'
14645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14647 cross_compiling=$ac_cv_prog_cxx_cross
14648
14649     cat > conftest.$ac_ext <<EOF
14650 #line 14651 "configure"
14651 #include "confdefs.h"
14652 #include <math.h>
14653 int main() {
14654  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14655 ; return 0; }
14656 EOF
14657 if { (eval echo configure:14658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14658   rm -rf conftest*
14659   glibcpp_cv_func__float_round_use=yes
14660 else
14661   echo "configure: failed program was:" >&5
14662   cat conftest.$ac_ext >&5
14663   rm -rf conftest*
14664   glibcpp_cv_func__float_round_use=no
14665 fi
14666 rm -f conftest*
14667     ac_ext=c
14668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14669 ac_cpp='$CPP $CPPFLAGS'
14670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14672 cross_compiling=$ac_cv_prog_cc_cross
14673
14674 fi
14675
14676   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14677   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14678     for ac_func in _ceilf _floorf
14679 do
14680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14681 echo "configure:14682: checking for $ac_func" >&5
14682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14683   echo $ac_n "(cached) $ac_c" 1>&6
14684 else
14685   cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688 /* System header to define __stub macros and hopefully few prototypes,
14689     which can conflict with char $ac_func(); below.  */
14690 #include <assert.h>
14691 /* Override any gcc2 internal prototype to avoid an error.  */
14692 /* We use char because int might match the return type of a gcc2
14693     builtin and then its argument prototype would still apply.  */
14694 char $ac_func();
14695
14696 int main() {
14697
14698 /* The GNU C library defines this for functions which it implements
14699     to always fail with ENOSYS.  Some functions are actually named
14700     something starting with __ and the normal name is an alias.  */
14701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14702 choke me
14703 #else
14704 $ac_func();
14705 #endif
14706
14707 ; return 0; }
14708 EOF
14709 if { (eval echo configure:14710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14710   rm -rf conftest*
14711   eval "ac_cv_func_$ac_func=yes"
14712 else
14713   echo "configure: failed program was:" >&5
14714   cat conftest.$ac_ext >&5
14715   rm -rf conftest*
14716   eval "ac_cv_func_$ac_func=no"
14717 fi
14718 rm -f conftest*
14719 fi
14720
14721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14722   echo "$ac_t""yes" 1>&6
14723     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14724   cat >> confdefs.h <<EOF
14725 #define $ac_tr_func 1
14726 EOF
14727  
14728 else
14729   echo "$ac_t""no" 1>&6
14730 fi
14731 done
14732
14733   fi
14734
14735
14736     
14737   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14738 echo "configure:14739: checking for _long double trig functions" >&5
14739   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14740   echo $ac_n "(cached) $ac_c" 1>&6
14741 else
14742   
14743     
14744     ac_ext=C
14745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14746 ac_cpp='$CXXCPP $CPPFLAGS'
14747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14749 cross_compiling=$ac_cv_prog_cxx_cross
14750
14751     cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 #include <math.h>
14755 int main() {
14756  `for x in _acosl _asinl _atanl \
14757                                           _cosl _sinl _tanl \
14758                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14759 ; return 0; }
14760 EOF
14761 if { (eval echo configure:14762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14762   rm -rf conftest*
14763   glibcpp_cv_func__long_double_trig_use=yes
14764 else
14765   echo "configure: failed program was:" >&5
14766   cat conftest.$ac_ext >&5
14767   rm -rf conftest*
14768   glibcpp_cv_func__long_double_trig_use=no
14769 fi
14770 rm -f conftest*
14771     ac_ext=c
14772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14773 ac_cpp='$CPP $CPPFLAGS'
14774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14776 cross_compiling=$ac_cv_prog_cc_cross
14777
14778 fi
14779
14780   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14781   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14782     for ac_func in _acosl _asinl _atanl \
14783                                           _cosl _sinl _tanl \
14784                                           _coshl _sinhl _tanhl
14785 do
14786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14787 echo "configure:14788: checking for $ac_func" >&5
14788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14789   echo $ac_n "(cached) $ac_c" 1>&6
14790 else
14791   cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14794 /* System header to define __stub macros and hopefully few prototypes,
14795     which can conflict with char $ac_func(); below.  */
14796 #include <assert.h>
14797 /* Override any gcc2 internal prototype to avoid an error.  */
14798 /* We use char because int might match the return type of a gcc2
14799     builtin and then its argument prototype would still apply.  */
14800 char $ac_func();
14801
14802 int main() {
14803
14804 /* The GNU C library defines this for functions which it implements
14805     to always fail with ENOSYS.  Some functions are actually named
14806     something starting with __ and the normal name is an alias.  */
14807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14808 choke me
14809 #else
14810 $ac_func();
14811 #endif
14812
14813 ; return 0; }
14814 EOF
14815 if { (eval echo configure:14816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14816   rm -rf conftest*
14817   eval "ac_cv_func_$ac_func=yes"
14818 else
14819   echo "configure: failed program was:" >&5
14820   cat conftest.$ac_ext >&5
14821   rm -rf conftest*
14822   eval "ac_cv_func_$ac_func=no"
14823 fi
14824 rm -f conftest*
14825 fi
14826
14827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14828   echo "$ac_t""yes" 1>&6
14829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14830   cat >> confdefs.h <<EOF
14831 #define $ac_tr_func 1
14832 EOF
14833  
14834 else
14835   echo "$ac_t""no" 1>&6
14836 fi
14837 done
14838
14839   fi
14840
14841   
14842   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14843 echo "configure:14844: checking for _long double round functions" >&5
14844   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14845   echo $ac_n "(cached) $ac_c" 1>&6
14846 else
14847   
14848     
14849     ac_ext=C
14850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14851 ac_cpp='$CXXCPP $CPPFLAGS'
14852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14854 cross_compiling=$ac_cv_prog_cxx_cross
14855
14856     cat > conftest.$ac_ext <<EOF
14857 #line 14858 "configure"
14858 #include "confdefs.h"
14859 #include <math.h>
14860 int main() {
14861  `for x in _ceill _floorl; do echo "$x (0);"; done` 
14862 ; return 0; }
14863 EOF
14864 if { (eval echo configure:14865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14865   rm -rf conftest*
14866   glibcpp_cv_func__long_double_round_use=yes
14867 else
14868   echo "configure: failed program was:" >&5
14869   cat conftest.$ac_ext >&5
14870   rm -rf conftest*
14871   glibcpp_cv_func__long_double_round_use=no
14872 fi
14873 rm -f conftest*
14874     ac_ext=c
14875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14876 ac_cpp='$CPP $CPPFLAGS'
14877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14879 cross_compiling=$ac_cv_prog_cc_cross
14880
14881 fi
14882
14883   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14884   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14885     for ac_func in _ceill _floorl
14886 do
14887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14888 echo "configure:14889: checking for $ac_func" >&5
14889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14890   echo $ac_n "(cached) $ac_c" 1>&6
14891 else
14892   cat > conftest.$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14895 /* System header to define __stub macros and hopefully few prototypes,
14896     which can conflict with char $ac_func(); below.  */
14897 #include <assert.h>
14898 /* Override any gcc2 internal prototype to avoid an error.  */
14899 /* We use char because int might match the return type of a gcc2
14900     builtin and then its argument prototype would still apply.  */
14901 char $ac_func();
14902
14903 int main() {
14904
14905 /* The GNU C library defines this for functions which it implements
14906     to always fail with ENOSYS.  Some functions are actually named
14907     something starting with __ and the normal name is an alias.  */
14908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14909 choke me
14910 #else
14911 $ac_func();
14912 #endif
14913
14914 ; return 0; }
14915 EOF
14916 if { (eval echo configure:14917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14917   rm -rf conftest*
14918   eval "ac_cv_func_$ac_func=yes"
14919 else
14920   echo "configure: failed program was:" >&5
14921   cat conftest.$ac_ext >&5
14922   rm -rf conftest*
14923   eval "ac_cv_func_$ac_func=no"
14924 fi
14925 rm -f conftest*
14926 fi
14927
14928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14929   echo "$ac_t""yes" 1>&6
14930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14931   cat >> confdefs.h <<EOF
14932 #define $ac_tr_func 1
14933 EOF
14934  
14935 else
14936   echo "$ac_t""no" 1>&6
14937 fi
14938 done
14939
14940   fi
14941
14942
14943   LIBS="$ac_save_LIBS"
14944   CXXFLAGS="$ac_save_CXXFLAGS"
14945
14946   
14947     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14948 echo "configure:14949: checking for main in -lm" >&5
14949 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14951   echo $ac_n "(cached) $ac_c" 1>&6
14952 else
14953   ac_save_LIBS="$LIBS"
14954 LIBS="-lm  $LIBS"
14955 cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958
14959 int main() {
14960 main()
14961 ; return 0; }
14962 EOF
14963 if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14964   rm -rf conftest*
14965   eval "ac_cv_lib_$ac_lib_var=yes"
14966 else
14967   echo "configure: failed program was:" >&5
14968   cat conftest.$ac_ext >&5
14969   rm -rf conftest*
14970   eval "ac_cv_lib_$ac_lib_var=no"
14971 fi
14972 rm -f conftest*
14973 LIBS="$ac_save_LIBS"
14974
14975 fi
14976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14977   echo "$ac_t""yes" 1>&6
14978     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14979     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14980   cat >> confdefs.h <<EOF
14981 #define $ac_tr_lib 1
14982 EOF
14983
14984   LIBS="-lm $LIBS"
14985
14986 else
14987   echo "$ac_t""no" 1>&6
14988 fi
14989
14990   for ac_func in nan hypot hypotf atan2f expf copysignf
14991 do
14992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14993 echo "configure:14994: checking for $ac_func" >&5
14994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14995   echo $ac_n "(cached) $ac_c" 1>&6
14996 else
14997   cat > conftest.$ac_ext <<EOF
14998 #line 14999 "configure"
14999 #include "confdefs.h"
15000 /* System header to define __stub macros and hopefully few prototypes,
15001     which can conflict with char $ac_func(); below.  */
15002 #include <assert.h>
15003 /* Override any gcc2 internal prototype to avoid an error.  */
15004 /* We use char because int might match the return type of a gcc2
15005     builtin and then its argument prototype would still apply.  */
15006 char $ac_func();
15007
15008 int main() {
15009
15010 /* The GNU C library defines this for functions which it implements
15011     to always fail with ENOSYS.  Some functions are actually named
15012     something starting with __ and the normal name is an alias.  */
15013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15014 choke me
15015 #else
15016 $ac_func();
15017 #endif
15018
15019 ; return 0; }
15020 EOF
15021 if { (eval echo configure:15022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15022   rm -rf conftest*
15023   eval "ac_cv_func_$ac_func=yes"
15024 else
15025   echo "configure: failed program was:" >&5
15026   cat conftest.$ac_ext >&5
15027   rm -rf conftest*
15028   eval "ac_cv_func_$ac_func=no"
15029 fi
15030 rm -f conftest*
15031 fi
15032
15033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15034   echo "$ac_t""yes" 1>&6
15035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15036   cat >> confdefs.h <<EOF
15037 #define $ac_tr_func 1
15038 EOF
15039  
15040 else
15041   echo "$ac_t""no" 1>&6
15042 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15043 fi
15044 done
15045
15046
15047
15048           USE_COMPLEX_LONG_DOUBLE=no
15049   if test x$ac_cv_func_atan2l = x"yes" &&
15050      test x$ac_cv_func_copysignl = x"yes"; then
15051     USE_COMPLEX_LONG_DOUBLE=yes
15052     for ac_func in hypotl signbitl
15053 do
15054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15055 echo "configure:15056: checking for $ac_func" >&5
15056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15057   echo $ac_n "(cached) $ac_c" 1>&6
15058 else
15059   cat > conftest.$ac_ext <<EOF
15060 #line 15061 "configure"
15061 #include "confdefs.h"
15062 /* System header to define __stub macros and hopefully few prototypes,
15063     which can conflict with char $ac_func(); below.  */
15064 #include <assert.h>
15065 /* Override any gcc2 internal prototype to avoid an error.  */
15066 /* We use char because int might match the return type of a gcc2
15067     builtin and then its argument prototype would still apply.  */
15068 char $ac_func();
15069
15070 int main() {
15071
15072 /* The GNU C library defines this for functions which it implements
15073     to always fail with ENOSYS.  Some functions are actually named
15074     something starting with __ and the normal name is an alias.  */
15075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15076 choke me
15077 #else
15078 $ac_func();
15079 #endif
15080
15081 ; return 0; }
15082 EOF
15083 if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15084   rm -rf conftest*
15085   eval "ac_cv_func_$ac_func=yes"
15086 else
15087   echo "configure: failed program was:" >&5
15088   cat conftest.$ac_ext >&5
15089   rm -rf conftest*
15090   eval "ac_cv_func_$ac_func=no"
15091 fi
15092 rm -f conftest*
15093 fi
15094
15095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15096   echo "$ac_t""yes" 1>&6
15097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15098   cat >> confdefs.h <<EOF
15099 #define $ac_tr_func 1
15100 EOF
15101  
15102 else
15103   echo "$ac_t""no" 1>&6
15104 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15105 fi
15106 done
15107
15108
15109   fi
15110
15111   
15112
15113   
15114
15115       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15116 echo "configure:15117: checking for mbstate_t" >&5
15117   cat > conftest.$ac_ext <<EOF
15118 #line 15119 "configure"
15119 #include "confdefs.h"
15120 #include <wchar.h>
15121 int main() {
15122 mbstate_t teststate;
15123 ; return 0; }
15124 EOF
15125 if { (eval echo configure:15126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15126   rm -rf conftest*
15127   have_mbstate_t=yes
15128 else
15129   echo "configure: failed program was:" >&5
15130   cat conftest.$ac_ext >&5
15131   rm -rf conftest*
15132   have_mbstate_t=no
15133 fi
15134 rm -f conftest*
15135   echo "$ac_t""$have_mbstate_t" 1>&6
15136   if test x"$have_mbstate_t" = xyes; then
15137     cat >> confdefs.h <<\EOF
15138 #define HAVE_MBSTATE_T 1
15139 EOF
15140
15141   fi
15142
15143     for ac_hdr in wchar.h
15144 do
15145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15147 echo "configure:15148: checking for $ac_hdr" >&5
15148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15149   echo $ac_n "(cached) $ac_c" 1>&6
15150 else
15151   cat > conftest.$ac_ext <<EOF
15152 #line 15153 "configure"
15153 #include "confdefs.h"
15154 #include <$ac_hdr>
15155 EOF
15156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15157 { (eval echo configure:15158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15159 if test -z "$ac_err"; then
15160   rm -rf conftest*
15161   eval "ac_cv_header_$ac_safe=yes"
15162 else
15163   echo "$ac_err" >&5
15164   echo "configure: failed program was:" >&5
15165   cat conftest.$ac_ext >&5
15166   rm -rf conftest*
15167   eval "ac_cv_header_$ac_safe=no"
15168 fi
15169 rm -f conftest*
15170 fi
15171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15172   echo "$ac_t""yes" 1>&6
15173     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15174   cat >> confdefs.h <<EOF
15175 #define $ac_tr_hdr 1
15176 EOF
15177  ac_has_wchar_h=yes
15178 else
15179   echo "$ac_t""no" 1>&6
15180 ac_has_wchar_h=no
15181 fi
15182 done
15183
15184   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15185 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15186 echo "configure:15187: checking for wctype.h" >&5
15187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15188   echo $ac_n "(cached) $ac_c" 1>&6
15189 else
15190   cat > conftest.$ac_ext <<EOF
15191 #line 15192 "configure"
15192 #include "confdefs.h"
15193 #include <wctype.h>
15194 EOF
15195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15196 { (eval echo configure:15197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15198 if test -z "$ac_err"; then
15199   rm -rf conftest*
15200   eval "ac_cv_header_$ac_safe=yes"
15201 else
15202   echo "$ac_err" >&5
15203   echo "configure: failed program was:" >&5
15204   cat conftest.$ac_ext >&5
15205   rm -rf conftest*
15206   eval "ac_cv_header_$ac_safe=no"
15207 fi
15208 rm -f conftest*
15209 fi
15210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15211   echo "$ac_t""yes" 1>&6
15212   ac_has_wctype_h=yes
15213 else
15214   echo "$ac_t""no" 1>&6
15215 ac_has_wctype_h=no
15216 fi
15217
15218   
15219     if test x"$ac_has_wchar_h" = xyes &&
15220      test x"$ac_has_wctype_h" = xyes &&
15221      test x"$enable_c_mbchar" != xno; then
15222       
15223             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15224 echo "configure:15225: checking for WCHAR_MIN and WCHAR_MAX" >&5
15225     cat > conftest.$ac_ext <<EOF
15226 #line 15227 "configure"
15227 #include "confdefs.h"
15228 #include <wchar.h>
15229 int main() {
15230 int i = WCHAR_MIN; int j = WCHAR_MAX;
15231 ; return 0; }
15232 EOF
15233 if { (eval echo configure:15234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15234   rm -rf conftest*
15235   has_wchar_minmax=yes
15236 else
15237   echo "configure: failed program was:" >&5
15238   cat conftest.$ac_ext >&5
15239   rm -rf conftest*
15240   has_wchar_minmax=no
15241 fi
15242 rm -f conftest*
15243     echo "$ac_t""$has_wchar_minmax" 1>&6
15244     
15245             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15246 echo "configure:15247: checking for WEOF" >&5
15247     cat > conftest.$ac_ext <<EOF
15248 #line 15249 "configure"
15249 #include "confdefs.h"
15250
15251       #include <wchar.h>
15252       #include <stddef.h>
15253 int main() {
15254 wint_t i = WEOF;
15255 ; return 0; }
15256 EOF
15257 if { (eval echo configure:15258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15258   rm -rf conftest*
15259   has_weof=yes
15260 else
15261   echo "configure: failed program was:" >&5
15262   cat conftest.$ac_ext >&5
15263   rm -rf conftest*
15264   has_weof=no
15265 fi
15266 rm -f conftest*
15267     echo "$ac_t""$has_weof" 1>&6
15268   
15269         ac_wfuncs=yes
15270     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
15271 do
15272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15273 echo "configure:15274: checking for $ac_func" >&5
15274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15275   echo $ac_n "(cached) $ac_c" 1>&6
15276 else
15277   cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280 /* System header to define __stub macros and hopefully few prototypes,
15281     which can conflict with char $ac_func(); below.  */
15282 #include <assert.h>
15283 /* Override any gcc2 internal prototype to avoid an error.  */
15284 /* We use char because int might match the return type of a gcc2
15285     builtin and then its argument prototype would still apply.  */
15286 char $ac_func();
15287
15288 int main() {
15289
15290 /* The GNU C library defines this for functions which it implements
15291     to always fail with ENOSYS.  Some functions are actually named
15292     something starting with __ and the normal name is an alias.  */
15293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15294 choke me
15295 #else
15296 $ac_func();
15297 #endif
15298
15299 ; return 0; }
15300 EOF
15301 if { (eval echo configure:15302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15302   rm -rf conftest*
15303   eval "ac_cv_func_$ac_func=yes"
15304 else
15305   echo "configure: failed program was:" >&5
15306   cat conftest.$ac_ext >&5
15307   rm -rf conftest*
15308   eval "ac_cv_func_$ac_func=no"
15309 fi
15310 rm -f conftest*
15311 fi
15312
15313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15314   echo "$ac_t""yes" 1>&6
15315     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15316   cat >> confdefs.h <<EOF
15317 #define $ac_tr_func 1
15318 EOF
15319  
15320 else
15321   echo "$ac_t""no" 1>&6
15322 \
15323     ac_wfuncs=no
15324 fi
15325 done
15326
15327   
15328         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
15329     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
15330     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
15331     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
15332     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
15333     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
15334 do
15335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15336 echo "configure:15337: checking for $ac_func" >&5
15337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15338   echo $ac_n "(cached) $ac_c" 1>&6
15339 else
15340   cat > conftest.$ac_ext <<EOF
15341 #line 15342 "configure"
15342 #include "confdefs.h"
15343 /* System header to define __stub macros and hopefully few prototypes,
15344     which can conflict with char $ac_func(); below.  */
15345 #include <assert.h>
15346 /* Override any gcc2 internal prototype to avoid an error.  */
15347 /* We use char because int might match the return type of a gcc2
15348     builtin and then its argument prototype would still apply.  */
15349 char $ac_func();
15350
15351 int main() {
15352
15353 /* The GNU C library defines this for functions which it implements
15354     to always fail with ENOSYS.  Some functions are actually named
15355     something starting with __ and the normal name is an alias.  */
15356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15357 choke me
15358 #else
15359 $ac_func();
15360 #endif
15361
15362 ; return 0; }
15363 EOF
15364 if { (eval echo configure:15365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15365   rm -rf conftest*
15366   eval "ac_cv_func_$ac_func=yes"
15367 else
15368   echo "configure: failed program was:" >&5
15369   cat conftest.$ac_ext >&5
15370   rm -rf conftest*
15371   eval "ac_cv_func_$ac_func=no"
15372 fi
15373 rm -f conftest*
15374 fi
15375
15376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15377   echo "$ac_t""yes" 1>&6
15378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15379   cat >> confdefs.h <<EOF
15380 #define $ac_tr_func 1
15381 EOF
15382  
15383 else
15384   echo "$ac_t""no" 1>&6
15385 \
15386     ac_wfuncs=no
15387 fi
15388 done
15389
15390
15391     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15392 echo "configure:15393: checking for ISO C99 wchar_t support" >&5
15393     if test x"$has_weof" = xyes &&
15394        test x"$has_wchar_minmax" = xyes &&
15395        test x"$ac_wfuncs" = xyes; then
15396       ac_isoC99_wchar_t=yes
15397     else
15398       ac_isoC99_wchar_t=no
15399     fi
15400     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15401   
15402             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15403 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15404 echo "configure:15405: checking for iconv.h" >&5
15405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15406   echo $ac_n "(cached) $ac_c" 1>&6
15407 else
15408   cat > conftest.$ac_ext <<EOF
15409 #line 15410 "configure"
15410 #include "confdefs.h"
15411 #include <iconv.h>
15412 EOF
15413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15414 { (eval echo configure:15415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15416 if test -z "$ac_err"; then
15417   rm -rf conftest*
15418   eval "ac_cv_header_$ac_safe=yes"
15419 else
15420   echo "$ac_err" >&5
15421   echo "configure: failed program was:" >&5
15422   cat conftest.$ac_ext >&5
15423   rm -rf conftest*
15424   eval "ac_cv_header_$ac_safe=no"
15425 fi
15426 rm -f conftest*
15427 fi
15428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15429   echo "$ac_t""yes" 1>&6
15430   ac_has_iconv_h=yes
15431 else
15432   echo "$ac_t""no" 1>&6
15433 ac_has_iconv_h=no
15434 fi
15435
15436     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15437 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15438 echo "configure:15439: checking for langinfo.h" >&5
15439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15440   echo $ac_n "(cached) $ac_c" 1>&6
15441 else
15442   cat > conftest.$ac_ext <<EOF
15443 #line 15444 "configure"
15444 #include "confdefs.h"
15445 #include <langinfo.h>
15446 EOF
15447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15448 { (eval echo configure:15449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15450 if test -z "$ac_err"; then
15451   rm -rf conftest*
15452   eval "ac_cv_header_$ac_safe=yes"
15453 else
15454   echo "$ac_err" >&5
15455   echo "configure: failed program was:" >&5
15456   cat conftest.$ac_ext >&5
15457   rm -rf conftest*
15458   eval "ac_cv_header_$ac_safe=no"
15459 fi
15460 rm -f conftest*
15461 fi
15462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15463   echo "$ac_t""yes" 1>&6
15464   ac_has_langinfo_h=yes
15465 else
15466   echo "$ac_t""no" 1>&6
15467 ac_has_langinfo_h=no
15468 fi
15469
15470
15471         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15472 echo "configure:15473: checking for iconv in -liconv" >&5
15473 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15475   echo $ac_n "(cached) $ac_c" 1>&6
15476 else
15477   ac_save_LIBS="$LIBS"
15478 LIBS="-liconv  $LIBS"
15479 cat > conftest.$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15482 /* Override any gcc2 internal prototype to avoid an error.  */
15483 /* We use char because int might match the return type of a gcc2
15484     builtin and then its argument prototype would still apply.  */
15485 char iconv();
15486
15487 int main() {
15488 iconv()
15489 ; return 0; }
15490 EOF
15491 if { (eval echo configure:15492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15492   rm -rf conftest*
15493   eval "ac_cv_lib_$ac_lib_var=yes"
15494 else
15495   echo "configure: failed program was:" >&5
15496   cat conftest.$ac_ext >&5
15497   rm -rf conftest*
15498   eval "ac_cv_lib_$ac_lib_var=no"
15499 fi
15500 rm -f conftest*
15501 LIBS="$ac_save_LIBS"
15502
15503 fi
15504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15505   echo "$ac_t""yes" 1>&6
15506   libiconv="-liconv"
15507 else
15508   echo "$ac_t""no" 1>&6
15509 fi
15510
15511     ac_save_LIBS="$LIBS"
15512     LIBS="$LIBS $libiconv"
15513
15514     for ac_func in iconv_open iconv_close iconv nl_langinfo
15515 do
15516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15517 echo "configure:15518: checking for $ac_func" >&5
15518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15519   echo $ac_n "(cached) $ac_c" 1>&6
15520 else
15521   cat > conftest.$ac_ext <<EOF
15522 #line 15523 "configure"
15523 #include "confdefs.h"
15524 /* System header to define __stub macros and hopefully few prototypes,
15525     which can conflict with char $ac_func(); below.  */
15526 #include <assert.h>
15527 /* Override any gcc2 internal prototype to avoid an error.  */
15528 /* We use char because int might match the return type of a gcc2
15529     builtin and then its argument prototype would still apply.  */
15530 char $ac_func();
15531
15532 int main() {
15533
15534 /* The GNU C library defines this for functions which it implements
15535     to always fail with ENOSYS.  Some functions are actually named
15536     something starting with __ and the normal name is an alias.  */
15537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15538 choke me
15539 #else
15540 $ac_func();
15541 #endif
15542
15543 ; return 0; }
15544 EOF
15545 if { (eval echo configure:15546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15546   rm -rf conftest*
15547   eval "ac_cv_func_$ac_func=yes"
15548 else
15549   echo "configure: failed program was:" >&5
15550   cat conftest.$ac_ext >&5
15551   rm -rf conftest*
15552   eval "ac_cv_func_$ac_func=no"
15553 fi
15554 rm -f conftest*
15555 fi
15556
15557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15558   echo "$ac_t""yes" 1>&6
15559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15560   cat >> confdefs.h <<EOF
15561 #define $ac_tr_func 1
15562 EOF
15563  \
15564     ac_XPG2funcs=yes
15565 else
15566   echo "$ac_t""no" 1>&6
15567 ac_XPG2funcs=no
15568 fi
15569 done
15570
15571   
15572     LIBS="$ac_save_LIBS"
15573
15574     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15575 echo "configure:15576: checking for XPG2 wchar_t support" >&5
15576     if test x"$ac_has_iconv_h" = xyes &&
15577        test x"$ac_has_langinfo_h" = xyes &&
15578        test x"$ac_XPG2funcs" = xyes; then
15579       ac_XPG2_wchar_t=yes
15580     else
15581       ac_XPG2_wchar_t=no
15582     fi
15583     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15584   
15585             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15586 echo "configure:15587: checking for enabled wchar_t specializations" >&5
15587     if test x"$ac_isoC99_wchar_t" = xyes &&
15588        test x"$ac_XPG2_wchar_t" = xyes; then
15589       cat >> confdefs.h <<\EOF
15590 #define _GLIBCPP_USE_WCHAR_T 1
15591 EOF
15592
15593       echo "$ac_t"""yes"" 1>&6
15594     else
15595       echo "$ac_t"""no"" 1>&6
15596     fi
15597   else
15598         echo "configure: warning: wchar_t support disabled." 1>&2
15599   fi
15600
15601   
15602   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15603   ac_save_CXXFLAGS="$CXXFLAGS"
15604   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15605
15606   
15607   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15608 echo "configure:15609: checking for strtold declaration" >&5
15609   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15610     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15611   echo $ac_n "(cached) $ac_c" 1>&6
15612 else
15613   
15614       
15615       ac_ext=C
15616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15617 ac_cpp='$CXXCPP $CPPFLAGS'
15618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15620 cross_compiling=$ac_cv_prog_cxx_cross
15621
15622       cat > conftest.$ac_ext <<EOF
15623 #line 15624 "configure"
15624 #include "confdefs.h"
15625 #include <stdlib.h>
15626 int main() {
15627  strtold(0, 0);
15628 ; return 0; }
15629 EOF
15630 if { (eval echo configure:15631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15631   rm -rf conftest*
15632   glibcpp_cv_func_strtold_use=yes
15633 else
15634   echo "configure: failed program was:" >&5
15635   cat conftest.$ac_ext >&5
15636   rm -rf conftest*
15637   glibcpp_cv_func_strtold_use=no
15638 fi
15639 rm -f conftest*
15640       ac_ext=c
15641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15642 ac_cpp='$CPP $CPPFLAGS'
15643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15645 cross_compiling=$ac_cv_prog_cc_cross
15646
15647     
15648 fi
15649
15650   fi
15651   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15652   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15653     for ac_func in strtold
15654 do
15655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15656 echo "configure:15657: checking for $ac_func" >&5
15657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15658   echo $ac_n "(cached) $ac_c" 1>&6
15659 else
15660   cat > conftest.$ac_ext <<EOF
15661 #line 15662 "configure"
15662 #include "confdefs.h"
15663 /* System header to define __stub macros and hopefully few prototypes,
15664     which can conflict with char $ac_func(); below.  */
15665 #include <assert.h>
15666 /* Override any gcc2 internal prototype to avoid an error.  */
15667 /* We use char because int might match the return type of a gcc2
15668     builtin and then its argument prototype would still apply.  */
15669 char $ac_func();
15670
15671 int main() {
15672
15673 /* The GNU C library defines this for functions which it implements
15674     to always fail with ENOSYS.  Some functions are actually named
15675     something starting with __ and the normal name is an alias.  */
15676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15677 choke me
15678 #else
15679 $ac_func();
15680 #endif
15681
15682 ; return 0; }
15683 EOF
15684 if { (eval echo configure:15685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15685   rm -rf conftest*
15686   eval "ac_cv_func_$ac_func=yes"
15687 else
15688   echo "configure: failed program was:" >&5
15689   cat conftest.$ac_ext >&5
15690   rm -rf conftest*
15691   eval "ac_cv_func_$ac_func=no"
15692 fi
15693 rm -f conftest*
15694 fi
15695
15696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15697   echo "$ac_t""yes" 1>&6
15698     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15699   cat >> confdefs.h <<EOF
15700 #define $ac_tr_func 1
15701 EOF
15702  
15703 else
15704   echo "$ac_t""no" 1>&6
15705 fi
15706 done
15707     
15708   fi
15709
15710   for ac_func in drand48
15711 do
15712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15713 echo "configure:15714: checking for $ac_func" >&5
15714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15715   echo $ac_n "(cached) $ac_c" 1>&6
15716 else
15717   cat > conftest.$ac_ext <<EOF
15718 #line 15719 "configure"
15719 #include "confdefs.h"
15720 /* System header to define __stub macros and hopefully few prototypes,
15721     which can conflict with char $ac_func(); below.  */
15722 #include <assert.h>
15723 /* Override any gcc2 internal prototype to avoid an error.  */
15724 /* We use char because int might match the return type of a gcc2
15725     builtin and then its argument prototype would still apply.  */
15726 char $ac_func();
15727
15728 int main() {
15729
15730 /* The GNU C library defines this for functions which it implements
15731     to always fail with ENOSYS.  Some functions are actually named
15732     something starting with __ and the normal name is an alias.  */
15733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15734 choke me
15735 #else
15736 $ac_func();
15737 #endif
15738
15739 ; return 0; }
15740 EOF
15741 if { (eval echo configure:15742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15742   rm -rf conftest*
15743   eval "ac_cv_func_$ac_func=yes"
15744 else
15745   echo "configure: failed program was:" >&5
15746   cat conftest.$ac_ext >&5
15747   rm -rf conftest*
15748   eval "ac_cv_func_$ac_func=no"
15749 fi
15750 rm -f conftest*
15751 fi
15752
15753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15754   echo "$ac_t""yes" 1>&6
15755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15756   cat >> confdefs.h <<EOF
15757 #define $ac_tr_func 1
15758 EOF
15759  
15760 else
15761   echo "$ac_t""no" 1>&6
15762 fi
15763 done
15764
15765
15766   CXXFLAGS="$ac_save_CXXFLAGS"
15767
15768
15769   cat > conftest.$ac_ext <<EOF
15770 #line 15771 "configure"
15771 #include "confdefs.h"
15772
15773 #include <setjmp.h>
15774
15775 int main() {
15776 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15777 ; return 0; }
15778 EOF
15779 if { (eval echo configure:15780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15780   rm -rf conftest*
15781   cat >> confdefs.h <<\EOF
15782 #define HAVE_SIGSETJMP 1
15783 EOF
15784
15785 else
15786   echo "configure: failed program was:" >&5
15787   cat conftest.$ac_ext >&5
15788 fi
15789 rm -f conftest*
15790
15791   for ac_hdr in unistd.h
15792 do
15793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15795 echo "configure:15796: checking for $ac_hdr" >&5
15796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15797   echo $ac_n "(cached) $ac_c" 1>&6
15798 else
15799   cat > conftest.$ac_ext <<EOF
15800 #line 15801 "configure"
15801 #include "confdefs.h"
15802 #include <$ac_hdr>
15803 EOF
15804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15805 { (eval echo configure:15806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15807 if test -z "$ac_err"; then
15808   rm -rf conftest*
15809   eval "ac_cv_header_$ac_safe=yes"
15810 else
15811   echo "$ac_err" >&5
15812   echo "configure: failed program was:" >&5
15813   cat conftest.$ac_ext >&5
15814   rm -rf conftest*
15815   eval "ac_cv_header_$ac_safe=no"
15816 fi
15817 rm -f conftest*
15818 fi
15819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15820   echo "$ac_t""yes" 1>&6
15821     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15822   cat >> confdefs.h <<EOF
15823 #define $ac_tr_hdr 1
15824 EOF
15825  
15826 else
15827   echo "$ac_t""no" 1>&6
15828 fi
15829 done
15830
15831 for ac_func in getpagesize
15832 do
15833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15834 echo "configure:15835: checking for $ac_func" >&5
15835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15836   echo $ac_n "(cached) $ac_c" 1>&6
15837 else
15838   cat > conftest.$ac_ext <<EOF
15839 #line 15840 "configure"
15840 #include "confdefs.h"
15841 /* System header to define __stub macros and hopefully few prototypes,
15842     which can conflict with char $ac_func(); below.  */
15843 #include <assert.h>
15844 /* Override any gcc2 internal prototype to avoid an error.  */
15845 /* We use char because int might match the return type of a gcc2
15846     builtin and then its argument prototype would still apply.  */
15847 char $ac_func();
15848
15849 int main() {
15850
15851 /* The GNU C library defines this for functions which it implements
15852     to always fail with ENOSYS.  Some functions are actually named
15853     something starting with __ and the normal name is an alias.  */
15854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855 choke me
15856 #else
15857 $ac_func();
15858 #endif
15859
15860 ; return 0; }
15861 EOF
15862 if { (eval echo configure:15863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15863   rm -rf conftest*
15864   eval "ac_cv_func_$ac_func=yes"
15865 else
15866   echo "configure: failed program was:" >&5
15867   cat conftest.$ac_ext >&5
15868   rm -rf conftest*
15869   eval "ac_cv_func_$ac_func=no"
15870 fi
15871 rm -f conftest*
15872 fi
15873
15874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15875   echo "$ac_t""yes" 1>&6
15876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15877   cat >> confdefs.h <<EOF
15878 #define $ac_tr_func 1
15879 EOF
15880  
15881 else
15882   echo "$ac_t""no" 1>&6
15883 fi
15884 done
15885
15886 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15887 echo "configure:15888: checking for working mmap" >&5
15888 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15889   echo $ac_n "(cached) $ac_c" 1>&6
15890 else
15891   if test "$cross_compiling" = yes; then
15892   ac_cv_func_mmap_fixed_mapped=no
15893 else
15894   cat > conftest.$ac_ext <<EOF
15895 #line 15896 "configure"
15896 #include "confdefs.h"
15897
15898 /* Thanks to Mike Haertel and Jim Avera for this test.
15899    Here is a matrix of mmap possibilities:
15900         mmap private not fixed
15901         mmap private fixed at somewhere currently unmapped
15902         mmap private fixed at somewhere already mapped
15903         mmap shared not fixed
15904         mmap shared fixed at somewhere currently unmapped
15905         mmap shared fixed at somewhere already mapped
15906    For private mappings, we should verify that changes cannot be read()
15907    back from the file, nor mmap's back from the file at a different
15908    address.  (There have been systems where private was not correctly
15909    implemented like the infamous i386 svr4.0, and systems where the
15910    VM page cache was not coherent with the filesystem buffer cache
15911    like early versions of FreeBSD and possibly contemporary NetBSD.)
15912    For shared mappings, we should conversely verify that changes get
15913    propogated back to all the places they're supposed to be.
15914
15915    Grep wants private fixed already mapped.
15916    The main things grep needs to know about mmap are:
15917    * does it exist and is it safe to write into the mmap'd area
15918    * how to use it (BSD variants)  */
15919 #include <sys/types.h>
15920 #include <fcntl.h>
15921 #include <sys/mman.h>
15922
15923 /* This mess was copied from the GNU getpagesize.h.  */
15924 #ifndef HAVE_GETPAGESIZE
15925 # ifdef HAVE_UNISTD_H
15926 #  include <unistd.h>
15927 # endif
15928
15929 /* Assume that all systems that can run configure have sys/param.h.  */
15930 # ifndef HAVE_SYS_PARAM_H
15931 #  define HAVE_SYS_PARAM_H 1
15932 # endif
15933
15934 # ifdef _SC_PAGESIZE
15935 #  define getpagesize() sysconf(_SC_PAGESIZE)
15936 # else /* no _SC_PAGESIZE */
15937 #  ifdef HAVE_SYS_PARAM_H
15938 #   include <sys/param.h>
15939 #   ifdef EXEC_PAGESIZE
15940 #    define getpagesize() EXEC_PAGESIZE
15941 #   else /* no EXEC_PAGESIZE */
15942 #    ifdef NBPG
15943 #     define getpagesize() NBPG * CLSIZE
15944 #     ifndef CLSIZE
15945 #      define CLSIZE 1
15946 #     endif /* no CLSIZE */
15947 #    else /* no NBPG */
15948 #     ifdef NBPC
15949 #      define getpagesize() NBPC
15950 #     else /* no NBPC */
15951 #      ifdef PAGESIZE
15952 #       define getpagesize() PAGESIZE
15953 #      endif /* PAGESIZE */
15954 #     endif /* no NBPC */
15955 #    endif /* no NBPG */
15956 #   endif /* no EXEC_PAGESIZE */
15957 #  else /* no HAVE_SYS_PARAM_H */
15958 #   define getpagesize() 8192   /* punt totally */
15959 #  endif /* no HAVE_SYS_PARAM_H */
15960 # endif /* no _SC_PAGESIZE */
15961
15962 #endif /* no HAVE_GETPAGESIZE */
15963
15964 #ifdef __cplusplus
15965 extern "C" { void *malloc(unsigned); }
15966 #else
15967 char *malloc();
15968 #endif
15969
15970 int
15971 main()
15972 {
15973         char *data, *data2, *data3;
15974         int i, pagesize;
15975         int fd;
15976
15977         pagesize = getpagesize();
15978
15979         /*
15980          * First, make a file with some known garbage in it.
15981          */
15982         data = malloc(pagesize);
15983         if (!data)
15984                 exit(1);
15985         for (i = 0; i < pagesize; ++i)
15986                 *(data + i) = rand();
15987         umask(0);
15988         fd = creat("conftestmmap", 0600);
15989         if (fd < 0)
15990                 exit(1);
15991         if (write(fd, data, pagesize) != pagesize)
15992                 exit(1);
15993         close(fd);
15994
15995         /*
15996          * Next, try to mmap the file at a fixed address which
15997          * already has something else allocated at it.  If we can,
15998          * also make sure that we see the same garbage.
15999          */
16000         fd = open("conftestmmap", O_RDWR);
16001         if (fd < 0)
16002                 exit(1);
16003         data2 = malloc(2 * pagesize);
16004         if (!data2)
16005                 exit(1);
16006         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16007         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16008             MAP_PRIVATE | MAP_FIXED, fd, 0L))
16009                 exit(1);
16010         for (i = 0; i < pagesize; ++i)
16011                 if (*(data + i) != *(data2 + i))
16012                         exit(1);
16013
16014         /*
16015          * Finally, make sure that changes to the mapped area
16016          * do not percolate back to the file as seen by read().
16017          * (This is a bug on some variants of i386 svr4.0.)
16018          */
16019         for (i = 0; i < pagesize; ++i)
16020                 *(data2 + i) = *(data2 + i) + 1;
16021         data3 = malloc(pagesize);
16022         if (!data3)
16023                 exit(1);
16024         if (read(fd, data3, pagesize) != pagesize)
16025                 exit(1);
16026         for (i = 0; i < pagesize; ++i)
16027                 if (*(data + i) != *(data3 + i))
16028                         exit(1);
16029         close(fd);
16030         unlink("conftestmmap");
16031         exit(0);
16032 }
16033
16034 EOF
16035 if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16036 then
16037   ac_cv_func_mmap_fixed_mapped=yes
16038 else
16039   echo "configure: failed program was:" >&5
16040   cat conftest.$ac_ext >&5
16041   rm -fr conftest*
16042   ac_cv_func_mmap_fixed_mapped=no
16043 fi
16044 rm -fr conftest*
16045 fi
16046
16047 fi
16048
16049 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16051   cat >> confdefs.h <<\EOF
16052 #define HAVE_MMAP 1
16053 EOF
16054
16055 fi
16056
16057 fi
16058
16059 # Now that ctype is determined for all possible targets, we can do this...
16060
16061
16062
16063
16064
16065
16066
16067 if test "$NULL_TARGET" = yes; then
16068   NULL_TARGET_TRUE=
16069   NULL_TARGET_FALSE='#'
16070 else
16071   NULL_TARGET_TRUE='#'
16072   NULL_TARGET_FALSE=
16073 fi
16074
16075
16076 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16077   NATIVE_TRUE=
16078   NATIVE_FALSE='#'
16079 else
16080   NATIVE_TRUE='#'
16081   NATIVE_FALSE=
16082 fi
16083
16084
16085 if test "$CANADIAN" = yes; then
16086   CANADIAN_TRUE=
16087   CANADIAN_FALSE='#'
16088 else
16089   CANADIAN_TRUE='#'
16090   CANADIAN_FALSE=
16091 fi
16092  
16093 cat > confcache <<\EOF
16094 # This file is a shell script that caches the results of configure
16095 # tests run on this system so they can be shared between configure
16096 # scripts and configure runs.  It is not useful on other systems.
16097 # If it contains results you don't want to keep, you may remove or edit it.
16098 #
16099 # By default, configure uses ./config.cache as the cache file,
16100 # creating it if it does not exist already.  You can give configure
16101 # the --cache-file=FILE option to use a different cache file; that is
16102 # what configure does when it calls configure scripts in
16103 # subdirectories, so they share the cache.
16104 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16105 # config.status only pays attention to the cache file if you give it the
16106 # --recheck option to rerun configure.
16107 #
16108 EOF
16109 # The following way of writing the cache mishandles newlines in values,
16110 # but we know of no workaround that is simple, portable, and efficient.
16111 # So, don't put newlines in cache variables' values.
16112 # Ultrix sh set writes to stderr and can't be redirected directly,
16113 # and sets the high bit in the cache file unless we assign to the vars.
16114 (set) 2>&1 |
16115   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16116   *ac_space=\ *)
16117     # `set' does not quote correctly, so add quotes (double-quote substitution
16118     # turns \\\\ into \\, and sed turns \\ into \).
16119     sed -n \
16120       -e "s/'/'\\\\''/g" \
16121       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16122     ;;
16123   *)
16124     # `set' quotes correctly as required by POSIX, so do not add quotes.
16125     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16126     ;;
16127   esac >> confcache
16128 if cmp -s $cache_file confcache; then
16129   :
16130 else
16131   if test -w $cache_file; then
16132     echo "updating cache $cache_file"
16133     cat confcache > $cache_file
16134   else
16135     echo "not updating unwritable cache $cache_file"
16136   fi
16137 fi
16138 rm -f confcache
16139
16140
16141   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16142 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16143 echo "configure:16144: checking for locale.h" >&5
16144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16145   echo $ac_n "(cached) $ac_c" 1>&6
16146 else
16147   cat > conftest.$ac_ext <<EOF
16148 #line 16149 "configure"
16149 #include "confdefs.h"
16150 #include <locale.h>
16151 EOF
16152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16153 { (eval echo configure:16154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16155 if test -z "$ac_err"; then
16156   rm -rf conftest*
16157   eval "ac_cv_header_$ac_safe=yes"
16158 else
16159   echo "$ac_err" >&5
16160   echo "configure: failed program was:" >&5
16161   cat conftest.$ac_ext >&5
16162   rm -rf conftest*
16163   eval "ac_cv_header_$ac_safe=no"
16164 fi
16165 rm -f conftest*
16166 fi
16167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16168   echo "$ac_t""yes" 1>&6
16169   
16170     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16171 echo "configure:16172: checking for LC_MESSAGES" >&5
16172 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16173   echo $ac_n "(cached) $ac_c" 1>&6
16174 else
16175   cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16178 #include <locale.h>
16179 int main() {
16180 return LC_MESSAGES
16181 ; return 0; }
16182 EOF
16183 if { (eval echo configure:16184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16184   rm -rf conftest*
16185   ac_cv_val_LC_MESSAGES=yes
16186 else
16187   echo "configure: failed program was:" >&5
16188   cat conftest.$ac_ext >&5
16189   rm -rf conftest*
16190   ac_cv_val_LC_MESSAGES=no
16191 fi
16192 rm -f conftest*
16193 fi
16194
16195 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16196     if test $ac_cv_val_LC_MESSAGES = yes; then
16197       cat >> confdefs.h <<\EOF
16198 #define HAVE_LC_MESSAGES 1
16199 EOF
16200
16201     fi
16202   
16203 else
16204   echo "$ac_t""no" 1>&6
16205 fi
16206
16207
16208
16209 if test "${multilib}" = "yes"; then
16210   multilib_arg="--enable-multilib"
16211 else
16212   multilib_arg=
16213 fi
16214
16215
16216 # Generate the various Makefiles, include files, and scripts.
16217
16218 # Needed so that g++ can find the correct include subdir automatically.
16219 INTERFACE=v3
16220
16221 # Export all the install information
16222
16223
16224 glibcpp_toolexecdir=no
16225 glibcpp_toolexeclibdir=no
16226
16227 # Export build and source directories.
16228 # These need to be absolute paths, yet at the same time need to
16229 # canonicalize only relative paths, because then amd will not unmount
16230 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16231 glibcpp_builddir=`pwd`
16232 case $srcdir in
16233 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
16234 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16235 esac
16236 glibcpp_prefixdir=${prefix}
16237
16238 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16239 echo "configure:16240: checking for interface version number" >&5
16240 libstdcxx_interface=$INTERFACE
16241 echo "$ac_t""$libstdcxx_interface" 1>&6
16242
16243 # Process the option --with-gxx-include-dir=<path to include-files directory>
16244 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16245 echo "configure:16246: checking for --with-gxx-include-dir" >&5
16246 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16247 if test "${with_gxx_include_dir+set}" = set; then
16248   withval="$with_gxx_include_dir"
16249   case "${withval}" in
16250   yes)
16251     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16252     gxx_include_dir=no
16253     ;;
16254   no)
16255     gxx_include_dir=no
16256     ;;
16257   *)
16258     gxx_include_dir=${withval}
16259     ;;
16260 esac
16261 else
16262   gxx_include_dir=no
16263 fi
16264
16265 echo "$ac_t""$gxx_include_dir" 1>&6
16266
16267 # Process the option "--enable-version-specific-runtime-libs"
16268 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16269 echo "configure:16270: checking for --enable-version-specific-runtime-libs" >&5
16270 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16271 if test "${enable_version_specific_runtime_libs+set}" = set; then
16272   enableval="$enable_version_specific_runtime_libs"
16273     version_specific_libs=yes
16274 # Need the gcc compiler version to know where to install libraries
16275 # and header files if --enable-version-specific-runtime-libs option
16276 # is selected.
16277 gcc_version_trigger=${srcdir}/../gcc/version.c
16278 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16279 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16280 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16281 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16282 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16283
16284 else
16285   version_specific_libs=no
16286 fi
16287
16288 echo "$ac_t""$version_specific_libs" 1>&6
16289
16290 # Default case for install directory for include files.
16291 if test x"$version_specific_libs" = x"no" \
16292    && test x"$gxx_include_dir" = x"no"; then
16293   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16294 fi
16295
16296 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16297 # Install a library built with a cross compiler in tooldir, not libdir.
16298 if test x"$glibcpp_toolexecdir" = x"no"; then 
16299   if test -n "$with_cross_host" &&
16300      test x"$with_cross_host" != x"no"; then
16301     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16302     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16303   else
16304     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16305     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16306   fi
16307 fi
16308
16309 echo $ac_n "checking for install location""... $ac_c" 1>&6
16310 echo "configure:16311: checking for install location" >&5
16311 echo "$ac_t""$gxx_include_dir" 1>&6
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321 # Export all the include and flag information to makefiles.
16322
16323   # Root level of the include sources.
16324   GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16325
16326   # Can either use include/c or include/c_std to grab "C" headers. This
16327   # variable is set to the include directory currently in use.
16328   # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16329    
16330   # Passed down for canadian crosses.
16331   if  test x"$CANADIAN" = xyes; then
16332     TOPLEVEL_INCLUDES='-I$(includedir)'
16333   fi
16334
16335   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16336
16337   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16338
16339   #if GLIBCPP_NEED_LIBIO
16340   LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16341   #else
16342   #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16343   #endif
16344
16345   #if GLIBCPP_USE_CSHADOW
16346   #  CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16347   #                   -I$(top_blddir)/cshadow'
16348   #else
16349   CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16350   #endif
16351
16352   # Now, export this to all the little Makefiles....
16353   
16354   
16355   
16356   
16357   
16358   
16359
16360
16361   # Optimization flags that are probably a good idea for thrill-seekers. Just
16362   # uncomment the lines below and make, everything else is ready to go... 
16363   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16364   OPTIMIZE_CXXFLAGS=
16365   
16366
16367   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16368   
16369
16370
16371 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16372    grep "enable shared" > /dev/null; then
16373   LIBSUPCXX_PICFLAGS=-prefer-pic
16374 else
16375   LIBSUPCXX_PICFLAGS=
16376 fi
16377
16378
16379 # This should be done by mkincludedir, but hack around it now.
16380 blddir=`pwd`
16381 echo "checking for $blddir/include"
16382
16383 if test ! -d "$blddir/include"; then
16384   mkdir "$blddir/include"
16385 fi
16386
16387 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16388 # and libsupc++/Makefile.am so that multilib installs will end up
16389 # installed in the correct place. To work around this not being passed
16390 # down from config-ml.in -> top_srcdir/Makefile.am ->
16391 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16392 trap '' 1 2 15
16393 cat > confcache <<\EOF
16394 # This file is a shell script that caches the results of configure
16395 # tests run on this system so they can be shared between configure
16396 # scripts and configure runs.  It is not useful on other systems.
16397 # If it contains results you don't want to keep, you may remove or edit it.
16398 #
16399 # By default, configure uses ./config.cache as the cache file,
16400 # creating it if it does not exist already.  You can give configure
16401 # the --cache-file=FILE option to use a different cache file; that is
16402 # what configure does when it calls configure scripts in
16403 # subdirectories, so they share the cache.
16404 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16405 # config.status only pays attention to the cache file if you give it the
16406 # --recheck option to rerun configure.
16407 #
16408 EOF
16409 # The following way of writing the cache mishandles newlines in values,
16410 # but we know of no workaround that is simple, portable, and efficient.
16411 # So, don't put newlines in cache variables' values.
16412 # Ultrix sh set writes to stderr and can't be redirected directly,
16413 # and sets the high bit in the cache file unless we assign to the vars.
16414 (set) 2>&1 |
16415   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16416   *ac_space=\ *)
16417     # `set' does not quote correctly, so add quotes (double-quote substitution
16418     # turns \\\\ into \\, and sed turns \\ into \).
16419     sed -n \
16420       -e "s/'/'\\\\''/g" \
16421       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16422     ;;
16423   *)
16424     # `set' quotes correctly as required by POSIX, so do not add quotes.
16425     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16426     ;;
16427   esac >> confcache
16428 if cmp -s $cache_file confcache; then
16429   :
16430 else
16431   if test -w $cache_file; then
16432     echo "updating cache $cache_file"
16433     cat confcache > $cache_file
16434   else
16435     echo "not updating unwritable cache $cache_file"
16436   fi
16437 fi
16438 rm -f confcache
16439
16440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16441
16442 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16443 # Let make expand exec_prefix.
16444 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16445
16446 # Any assignment to VPATH causes Sun make to only execute
16447 # the first set of double-colon rules, so remove it if not needed.
16448 # If there is a colon in the path, we need to keep it.
16449 if test "x$srcdir" = x.; then
16450   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16451 fi
16452
16453 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16454
16455 DEFS=-DHAVE_CONFIG_H
16456
16457 # Without the "./", some shells look in PATH for config.status.
16458 : ${CONFIG_STATUS=./config.status}
16459
16460 echo creating $CONFIG_STATUS
16461 rm -f $CONFIG_STATUS
16462 cat > $CONFIG_STATUS <<EOF
16463 #! /bin/sh
16464 # Generated automatically by configure.
16465 # Run this file to recreate the current configuration.
16466 # This directory was configured as follows,
16467 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16468 #
16469 # $0 $ac_configure_args
16470 #
16471 # Compiler output produced by configure, useful for debugging
16472 # configure, is in ./config.log if it exists.
16473
16474 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16475 for ac_option
16476 do
16477   case "\$ac_option" in
16478   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16479     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16480     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16481   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16482     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16483     exit 0 ;;
16484   -help | --help | --hel | --he | --h)
16485     echo "\$ac_cs_usage"; exit 0 ;;
16486   *) echo "\$ac_cs_usage"; exit 1 ;;
16487   esac
16488 done
16489
16490 ac_given_srcdir=$srcdir
16491 ac_given_INSTALL="$INSTALL"
16492
16493 trap 'rm -fr `echo "Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16494 EOF
16495 cat >> $CONFIG_STATUS <<EOF
16496
16497 # Protect against being on the right side of a sed subst in config.status.
16498 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16499  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16500 $ac_vpsub
16501 $extrasub
16502 s%@SHELL@%$SHELL%g
16503 s%@CFLAGS@%$CFLAGS%g
16504 s%@CPPFLAGS@%$CPPFLAGS%g
16505 s%@CXXFLAGS@%$CXXFLAGS%g
16506 s%@FFLAGS@%$FFLAGS%g
16507 s%@DEFS@%$DEFS%g
16508 s%@LDFLAGS@%$LDFLAGS%g
16509 s%@LIBS@%$LIBS%g
16510 s%@exec_prefix@%$exec_prefix%g
16511 s%@prefix@%$prefix%g
16512 s%@program_transform_name@%$program_transform_name%g
16513 s%@bindir@%$bindir%g
16514 s%@sbindir@%$sbindir%g
16515 s%@libexecdir@%$libexecdir%g
16516 s%@datadir@%$datadir%g
16517 s%@sysconfdir@%$sysconfdir%g
16518 s%@sharedstatedir@%$sharedstatedir%g
16519 s%@localstatedir@%$localstatedir%g
16520 s%@libdir@%$libdir%g
16521 s%@includedir@%$includedir%g
16522 s%@oldincludedir@%$oldincludedir%g
16523 s%@infodir@%$infodir%g
16524 s%@mandir@%$mandir%g
16525 s%@toplevel_srcdir@%$toplevel_srcdir%g
16526 s%@host@%$host%g
16527 s%@host_alias@%$host_alias%g
16528 s%@host_cpu@%$host_cpu%g
16529 s%@host_vendor@%$host_vendor%g
16530 s%@host_os@%$host_os%g
16531 s%@target@%$target%g
16532 s%@target_alias@%$target_alias%g
16533 s%@target_cpu@%$target_cpu%g
16534 s%@target_vendor@%$target_vendor%g
16535 s%@target_os@%$target_os%g
16536 s%@build@%$build%g
16537 s%@build_alias@%$build_alias%g
16538 s%@build_cpu@%$build_cpu%g
16539 s%@build_vendor@%$build_vendor%g
16540 s%@build_os@%$build_os%g
16541 s%@glibcpp_basedir@%$glibcpp_basedir%g
16542 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16543 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16544 s%@INSTALL_DATA@%$INSTALL_DATA%g
16545 s%@PACKAGE@%$PACKAGE%g
16546 s%@VERSION@%$VERSION%g
16547 s%@ACLOCAL@%$ACLOCAL%g
16548 s%@AUTOCONF@%$AUTOCONF%g
16549 s%@AUTOMAKE@%$AUTOMAKE%g
16550 s%@AUTOHEADER@%$AUTOHEADER%g
16551 s%@MAKEINFO@%$MAKEINFO%g
16552 s%@SET_MAKE@%$SET_MAKE%g
16553 s%@CC@%$CC%g
16554 s%@glibcpp_CXX@%$glibcpp_CXX%g
16555 s%@AS@%$AS%g
16556 s%@AR@%$AR%g
16557 s%@RANLIB@%$RANLIB%g
16558 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16559 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16560 s%@MAINT@%$MAINT%g
16561 s%@EXEEXT@%$EXEEXT%g
16562 s%@LN_S@%$LN_S%g
16563 s%@OBJEXT@%$OBJEXT%g
16564 s%@STRIP@%$STRIP%g
16565 s%@LIBTOOL@%$LIBTOOL%g
16566 s%@CXXCPP@%$CXXCPP%g
16567 s%@enable_shared@%$enable_shared%g
16568 s%@enable_static@%$enable_static%g
16569 s%@ifGNUmake@%$ifGNUmake%g
16570 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16571 s%@CPP@%$CPP%g
16572 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16573 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16574 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16575 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16576 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16577 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16578 s%@libio_la@%$libio_la%g
16579 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16580 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16581 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16582 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16583 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16584 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16585 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16586 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16587 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16588 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16589 s%@WERROR@%$WERROR%g
16590 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16591 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16592 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16593 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16594 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16595 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16596 s%@glibcpp_builddir@%$glibcpp_builddir%g
16597 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16598 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16599 s%@gxx_include_dir@%$gxx_include_dir%g
16600 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16601 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16602 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16603 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16604 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16605 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16606 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16607 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16608 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16609 s%@WARN_FLAGS@%$WARN_FLAGS%g
16610 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16611
16612 CEOF
16613 EOF
16614
16615 cat >> $CONFIG_STATUS <<\EOF
16616
16617 # Split the substitutions into bite-sized pieces for seds with
16618 # small command number limits, like on Digital OSF/1 and HP-UX.
16619 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16620 ac_file=1 # Number of current file.
16621 ac_beg=1 # First line for current file.
16622 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16623 ac_more_lines=:
16624 ac_sed_cmds=""
16625 while $ac_more_lines; do
16626   if test $ac_beg -gt 1; then
16627     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16628   else
16629     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16630   fi
16631   if test ! -s conftest.s$ac_file; then
16632     ac_more_lines=false
16633     rm -f conftest.s$ac_file
16634   else
16635     if test -z "$ac_sed_cmds"; then
16636       ac_sed_cmds="sed -f conftest.s$ac_file"
16637     else
16638       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16639     fi
16640     ac_file=`expr $ac_file + 1`
16641     ac_beg=$ac_end
16642     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16643   fi
16644 done
16645 if test -z "$ac_sed_cmds"; then
16646   ac_sed_cmds=cat
16647 fi
16648 EOF
16649
16650 cat >> $CONFIG_STATUS <<EOF
16651
16652 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16653 EOF
16654 cat >> $CONFIG_STATUS <<\EOF
16655 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16656   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16657   case "$ac_file" in
16658   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16659        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16660   *) ac_file_in="${ac_file}.in" ;;
16661   esac
16662
16663   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16664
16665   # Remove last slash and all that follows it.  Not all systems have dirname.
16666   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16667   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16668     # The file is in a subdirectory.
16669     test ! -d "$ac_dir" && mkdir "$ac_dir"
16670     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16671     # A "../" for each directory in $ac_dir_suffix.
16672     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16673   else
16674     ac_dir_suffix= ac_dots=
16675   fi
16676
16677   case "$ac_given_srcdir" in
16678   .)  srcdir=.
16679       if test -z "$ac_dots"; then top_srcdir=.
16680       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16681   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16682   *) # Relative path.
16683     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16684     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16685   esac
16686
16687   case "$ac_given_INSTALL" in
16688   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16689   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16690   esac
16691
16692   echo creating "$ac_file"
16693   rm -f "$ac_file"
16694   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16695   case "$ac_file" in
16696   *Makefile*) ac_comsub="1i\\
16697 # $configure_input" ;;
16698   *) ac_comsub= ;;
16699   esac
16700
16701   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16702   sed -e "$ac_comsub
16703 s%@configure_input@%$configure_input%g
16704 s%@srcdir@%$srcdir%g
16705 s%@top_srcdir@%$top_srcdir%g
16706 s%@INSTALL@%$INSTALL%g
16707 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16708 fi; done
16709 rm -f conftest.s*
16710
16711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16713 #
16714 # ac_d sets the value in "#define NAME VALUE" lines.
16715 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16716 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16717 ac_dC='\3'
16718 ac_dD='%g'
16719 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16720 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16721 ac_uB='\([      ]\)%\1#\2define\3'
16722 ac_uC=' '
16723 ac_uD='\4%g'
16724 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16725 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16726 ac_eB='$%\1#\2define\3'
16727 ac_eC=' '
16728 ac_eD='%g'
16729
16730 if test "${CONFIG_HEADERS+set}" != set; then
16731 EOF
16732 cat >> $CONFIG_STATUS <<EOF
16733   CONFIG_HEADERS="config.h"
16734 EOF
16735 cat >> $CONFIG_STATUS <<\EOF
16736 fi
16737 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16738   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16739   case "$ac_file" in
16740   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16741        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16742   *) ac_file_in="${ac_file}.in" ;;
16743   esac
16744
16745   echo creating $ac_file
16746
16747   rm -f conftest.frag conftest.in conftest.out
16748   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16749   cat $ac_file_inputs > conftest.in
16750
16751 EOF
16752
16753 # Transform confdefs.h into a sed script conftest.vals that substitutes
16754 # the proper values into config.h.in to produce config.h.  And first:
16755 # Protect against being on the right side of a sed subst in config.status.
16756 # Protect against being in an unquoted here document in config.status.
16757 rm -f conftest.vals
16758 cat > conftest.hdr <<\EOF
16759 s/[\\&%]/\\&/g
16760 s%[\\$`]%\\&%g
16761 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16762 s%ac_d%ac_u%gp
16763 s%ac_u%ac_e%gp
16764 EOF
16765 sed -n -f conftest.hdr confdefs.h > conftest.vals
16766 rm -f conftest.hdr
16767
16768 # This sed command replaces #undef with comments.  This is necessary, for
16769 # example, in the case of _POSIX_SOURCE, which is predefined and required
16770 # on some systems where configure will not decide to define it.
16771 cat >> conftest.vals <<\EOF
16772 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16773 EOF
16774
16775 # Break up conftest.vals because some shells have a limit on
16776 # the size of here documents, and old seds have small limits too.
16777
16778 rm -f conftest.tail
16779 while :
16780 do
16781   ac_lines=`grep -c . conftest.vals`
16782   # grep -c gives empty output for an empty file on some AIX systems.
16783   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16784   # Write a limited-size here document to conftest.frag.
16785   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16786   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16787   echo 'CEOF
16788   sed -f conftest.frag conftest.in > conftest.out
16789   rm -f conftest.in
16790   mv conftest.out conftest.in
16791 ' >> $CONFIG_STATUS
16792   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16793   rm -f conftest.vals
16794   mv conftest.tail conftest.vals
16795 done
16796 rm -f conftest.vals
16797
16798 cat >> $CONFIG_STATUS <<\EOF
16799   rm -f conftest.frag conftest.h
16800   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
16801   cat conftest.in >> conftest.h
16802   rm -f conftest.in
16803   if cmp -s $ac_file conftest.h 2>/dev/null; then
16804     echo "$ac_file is unchanged"
16805     rm -f conftest.h
16806   else
16807     # Remove last slash and all that follows it.  Not all systems have dirname.
16808       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16809       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16810       # The file is in a subdirectory.
16811       test ! -d "$ac_dir" && mkdir "$ac_dir"
16812     fi
16813     rm -f $ac_file
16814     mv conftest.h $ac_file
16815   fi
16816 fi; done
16817
16818 EOF
16819
16820 cat >> $CONFIG_STATUS <<EOF
16821 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC $toprel/gcc/gthr.h $toprel/gcc/gthr-single.h $toprel/gcc/gthr-$target_thread_file.h $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
16822 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/gthr.h-in include/bits/gthr-single.h-in include/bits/gthr-default.h-in \
16823 include/bits/ctype_base.h \
16824 include/bits/ctype_inline.h \
16825 include/bits/ctype_noninline.h include/bits/atomicity.h"
16826 EOF
16827
16828 cat >> $CONFIG_STATUS <<\EOF
16829 srcdir=$ac_given_srcdir
16830 while test -n "$ac_sources"; do
16831   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16832   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16833
16834   echo "linking $srcdir/$ac_source to $ac_dest"
16835
16836   if test ! -r $srcdir/$ac_source; then
16837     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16838   fi
16839   rm -f $ac_dest
16840
16841   # Make relative symlinks.
16842   # Remove last slash and all that follows it.  Not all systems have dirname.
16843   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16844   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16845     # The dest file is in a subdirectory.
16846     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16847     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16848     # A "../" for each directory in $ac_dest_dir_suffix.
16849     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16850   else
16851     ac_dest_dir_suffix= ac_dots=
16852   fi
16853
16854   case "$srcdir" in
16855   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16856   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16857   esac
16858
16859   # Make a symlink if possible; otherwise try a hard link.
16860   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16861     ln $srcdir/$ac_source $ac_dest; then :
16862   else
16863     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16864   fi
16865 done
16866 EOF
16867 cat >> $CONFIG_STATUS <<EOF
16868
16869
16870 srcdir=${srcdir}
16871 host=${host}
16872 target=${target}
16873 with_multisubdir=${with_multisubdir}
16874 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16875 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16876 glibcpp_basedir=${glibcpp_basedir}
16877 CC="${CC}"
16878 CXX="${CXX}"
16879
16880 EOF
16881 cat >> $CONFIG_STATUS <<\EOF
16882 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16883 d=include/bits
16884     rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
16885     sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h
16886     sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
16887       | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
16888     sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
16889       | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' \
16890       | sed 's/\([A-Z_]*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h
16891 if test -n "$CONFIG_FILES"; then
16892   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16893   grep '^MULTISUBDIR =' Makefile >> src/Makefile
16894   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16895 fi
16896 chmod +x mkcheck
16897 chmod +x testsuite_flags
16898
16899 exit 0
16900 EOF
16901 chmod +x $CONFIG_STATUS
16902 rm -fr confdefs* $ac_clean_files
16903 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16904
16905
16906
16907 # Generate bits/c++config.h
16908 # NB: This must be the first generated file as others include it. . .
16909 $srcdir/mkc++config $blddir $srcdir
16910
16911 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16912 if test ! -f stamp-limits; then
16913   $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16914   if test ! -f include/bits/std_limits.h; then
16915     echo "mknumeric_limits failed to execute properly: exiting"
16916     exit 1
16917   else
16918     touch stamp-limits 
16919   fi
16920 fi
16921
16922
16923 # Sanity checking & User-visible messages.
16924 # Checks down here, otherwise they get scrolled off before
16925 # the user will notice.
16926
16927 # Trying to get more people to read documentation.  Possibly remove
16928 # check and warn all the time. There is no "informational" AC_MSG_
16929 # macro, so these are going to be printed even when --quiet/--silent
16930 # is given.
16931 if test ! -f stamp-sanity-warned; then
16932   touch stamp-sanity-warned
16933   echo ""
16934   echo "Please make certain that you read the installation information here:"
16935   echo "  faster => ${srcdir}/docs/install.html"
16936   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16937   echo ""
16938   echo "and the configuration information here:"
16939   echo "  faster => ${srcdir}/docs/configopts.html"
16940   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16941   echo ""
16942   echo "before proceeding with ${_cv_gnu_make_command}."
16943   echo ""
16944 fi