OSDN Git Service

2002-02-26 Benjamin Kosnik <bkoz@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   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                            configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
63 ac_help="$ac_help
64   --with-gxx-include-dir  the installation directory for include files"
65 ac_help="$ac_help
66   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
67
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
71 build=NONE
72 cache_file=./config.cache
73 exec_prefix=NONE
74 host=NONE
75 no_create=
76 nonopt=NONE
77 no_recursion=
78 prefix=NONE
79 program_prefix=NONE
80 program_suffix=NONE
81 program_transform_name=s,x,x,
82 silent=
83 site=
84 srcdir=
85 target=NONE
86 verbose=
87 x_includes=NONE
88 x_libraries=NONE
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
101
102 # Initialize some other variables.
103 subdirs=
104 MFLAGS= MAKEFLAGS=
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
108
109 ac_prev=
110 for ac_option
111 do
112
113   # If the previous option needs an argument, assign it.
114   if test -n "$ac_prev"; then
115     eval "$ac_prev=\$ac_option"
116     ac_prev=
117     continue
118   fi
119
120   case "$ac_option" in
121   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122   *) ac_optarg= ;;
123   esac
124
125   # Accept the important Cygnus configure options, so we can diagnose typos.
126
127   case "$ac_option" in
128
129   -bindir | --bindir | --bindi | --bind | --bin | --bi)
130     ac_prev=bindir ;;
131   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132     bindir="$ac_optarg" ;;
133
134   -build | --build | --buil | --bui | --bu)
135     ac_prev=build ;;
136   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137     build="$ac_optarg" ;;
138
139   -cache-file | --cache-file | --cache-fil | --cache-fi \
140   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141     ac_prev=cache_file ;;
142   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144     cache_file="$ac_optarg" ;;
145
146   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147     ac_prev=datadir ;;
148   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149   | --da=*)
150     datadir="$ac_optarg" ;;
151
152   -disable-* | --disable-*)
153     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154     # Reject names that are not valid shell variable names.
155     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157     fi
158     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159     eval "enable_${ac_feature}=no" ;;
160
161   -enable-* | --enable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     case "$ac_option" in
169       *=*) ;;
170       *) ac_optarg=yes ;;
171     esac
172     eval "enable_${ac_feature}='$ac_optarg'" ;;
173
174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176   | --exec | --exe | --ex)
177     ac_prev=exec_prefix ;;
178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180   | --exec=* | --exe=* | --ex=*)
181     exec_prefix="$ac_optarg" ;;
182
183   -gas | --gas | --ga | --g)
184     # Obsolete; use --with-gas.
185     with_gas=yes ;;
186
187   -help | --help | --hel | --he)
188     # Omit some internal or obsolete options to make the list less imposing.
189     # This message is too long to be a string in the A/UX 3.1 sh.
190     cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194   --cache-file=FILE       cache test results in FILE
195   --help                  print this message
196   --no-create             do not create output files
197   --quiet, --silent       do not print \`checking...' messages
198   --version               print the version of autoconf that created configure
199 Directory and file names:
200   --prefix=PREFIX         install architecture-independent files in PREFIX
201                           [$ac_default_prefix]
202   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
203                           [same as prefix]
204   --bindir=DIR            user executables in DIR [EPREFIX/bin]
205   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
206   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
207   --datadir=DIR           read-only architecture-independent data in DIR
208                           [PREFIX/share]
209   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
210   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
211                           [PREFIX/com]
212   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
213   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
214   --includedir=DIR        C header files in DIR [PREFIX/include]
215   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
216   --infodir=DIR           info documentation in DIR [PREFIX/info]
217   --mandir=DIR            man documentation in DIR [PREFIX/man]
218   --srcdir=DIR            find the sources in DIR [configure dir or ..]
219   --program-prefix=PREFIX prepend PREFIX to installed program names
220   --program-suffix=SUFFIX append SUFFIX to installed program names
221   --program-transform-name=PROGRAM
222                           run sed PROGRAM on installed program names
223 EOF
224     cat << EOF
225 Host type:
226   --build=BUILD           configure for building on BUILD [BUILD=HOST]
227   --host=HOST             configure for HOST [guessed]
228   --target=TARGET         configure for TARGET [TARGET=HOST]
229 Features and packages:
230   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
231   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
232   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
233   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
234   --x-includes=DIR        X include files are in DIR
235   --x-libraries=DIR       X library files are in DIR
236 EOF
237     if test -n "$ac_help"; then
238       echo "--enable and --with options recognized:$ac_help"
239     fi
240     exit 0 ;;
241
242   -host | --host | --hos | --ho)
243     ac_prev=host ;;
244   -host=* | --host=* | --hos=* | --ho=*)
245     host="$ac_optarg" ;;
246
247   -includedir | --includedir | --includedi | --included | --include \
248   | --includ | --inclu | --incl | --inc)
249     ac_prev=includedir ;;
250   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251   | --includ=* | --inclu=* | --incl=* | --inc=*)
252     includedir="$ac_optarg" ;;
253
254   -infodir | --infodir | --infodi | --infod | --info | --inf)
255     ac_prev=infodir ;;
256   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257     infodir="$ac_optarg" ;;
258
259   -libdir | --libdir | --libdi | --libd)
260     ac_prev=libdir ;;
261   -libdir=* | --libdir=* | --libdi=* | --libd=*)
262     libdir="$ac_optarg" ;;
263
264   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265   | --libexe | --libex | --libe)
266     ac_prev=libexecdir ;;
267   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268   | --libexe=* | --libex=* | --libe=*)
269     libexecdir="$ac_optarg" ;;
270
271   -localstatedir | --localstatedir | --localstatedi | --localstated \
272   | --localstate | --localstat | --localsta | --localst \
273   | --locals | --local | --loca | --loc | --lo)
274     ac_prev=localstatedir ;;
275   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278     localstatedir="$ac_optarg" ;;
279
280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281     ac_prev=mandir ;;
282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283     mandir="$ac_optarg" ;;
284
285   -nfp | --nfp | --nf)
286     # Obsolete; use --without-fp.
287     with_fp=no ;;
288
289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290   | --no-cr | --no-c)
291     no_create=yes ;;
292
293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295     no_recursion=yes ;;
296
297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299   | --oldin | --oldi | --old | --ol | --o)
300     ac_prev=oldincludedir ;;
301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304     oldincludedir="$ac_optarg" ;;
305
306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307     ac_prev=prefix ;;
308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309     prefix="$ac_optarg" ;;
310
311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
312   | --program-pre | --program-pr | --program-p)
313     ac_prev=program_prefix ;;
314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316     program_prefix="$ac_optarg" ;;
317
318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
319   | --program-suf | --program-su | --program-s)
320     ac_prev=program_suffix ;;
321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323     program_suffix="$ac_optarg" ;;
324
325   -program-transform-name | --program-transform-name \
326   | --program-transform-nam | --program-transform-na \
327   | --program-transform-n | --program-transform- \
328   | --program-transform | --program-transfor \
329   | --program-transfo | --program-transf \
330   | --program-trans | --program-tran \
331   | --progr-tra | --program-tr | --program-t)
332     ac_prev=program_transform_name ;;
333   -program-transform-name=* | --program-transform-name=* \
334   | --program-transform-nam=* | --program-transform-na=* \
335   | --program-transform-n=* | --program-transform-=* \
336   | --program-transform=* | --program-transfor=* \
337   | --program-transfo=* | --program-transf=* \
338   | --program-trans=* | --program-tran=* \
339   | --progr-tra=* | --program-tr=* | --program-t=*)
340     program_transform_name="$ac_optarg" ;;
341
342   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343   | -silent | --silent | --silen | --sile | --sil)
344     silent=yes ;;
345
346   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347     ac_prev=sbindir ;;
348   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349   | --sbi=* | --sb=*)
350     sbindir="$ac_optarg" ;;
351
352   -sharedstatedir | --sharedstatedir | --sharedstatedi \
353   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354   | --sharedst | --shareds | --shared | --share | --shar \
355   | --sha | --sh)
356     ac_prev=sharedstatedir ;;
357   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360   | --sha=* | --sh=*)
361     sharedstatedir="$ac_optarg" ;;
362
363   -site | --site | --sit)
364     ac_prev=site ;;
365   -site=* | --site=* | --sit=*)
366     site="$ac_optarg" ;;
367
368   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369     ac_prev=srcdir ;;
370   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371     srcdir="$ac_optarg" ;;
372
373   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374   | --syscon | --sysco | --sysc | --sys | --sy)
375     ac_prev=sysconfdir ;;
376   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378     sysconfdir="$ac_optarg" ;;
379
380   -target | --target | --targe | --targ | --tar | --ta | --t)
381     ac_prev=target ;;
382   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383     target="$ac_optarg" ;;
384
385   -v | -verbose | --verbose | --verbos | --verbo | --verb)
386     verbose=yes ;;
387
388   -version | --version | --versio | --versi | --vers)
389     echo "configure generated by autoconf version 2.13"
390     exit 0 ;;
391
392   -with-* | --with-*)
393     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394     # Reject names that are not valid shell variable names.
395     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397     fi
398     ac_package=`echo $ac_package| sed 's/-/_/g'`
399     case "$ac_option" in
400       *=*) ;;
401       *) ac_optarg=yes ;;
402     esac
403     eval "with_${ac_package}='$ac_optarg'" ;;
404
405   -without-* | --without-*)
406     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     eval "with_${ac_package}=no" ;;
413
414   --x)
415     # Obsolete; use --with-x.
416     with_x=yes ;;
417
418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419   | --x-incl | --x-inc | --x-in | --x-i)
420     ac_prev=x_includes ;;
421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423     x_includes="$ac_optarg" ;;
424
425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427     ac_prev=x_libraries ;;
428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430     x_libraries="$ac_optarg" ;;
431
432   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433     ;;
434
435   *)
436     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437       echo "configure: warning: $ac_option: invalid host type" 1>&2
438     fi
439     if test "x$nonopt" != xNONE; then
440       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441     fi
442     nonopt="$ac_option"
443     ;;
444
445   esac
446 done
447
448 if test -n "$ac_prev"; then
449   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 fi
451
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453
454 # File descriptor usage:
455 # 0 standard input
456 # 1 file creation
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
463   exec 6>/dev/null
464 else
465   exec 6>&1
466 fi
467 exec 5>./config.log
468
469 echo "\
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
472 " 1>&5
473
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
476 ac_configure_args=
477 for ac_arg
478 do
479   case "$ac_arg" in
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c) ;;
482   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487   esac
488 done
489
490 # NLS nuisances.
491 # Only set these to C if already set.  These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
499
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 echo > confdefs.h
504
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=src/ios.cc
508
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511   ac_srcdir_defaulted=yes
512   # Try the directory containing this script, then its parent.
513   ac_prog=$0
514   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516   srcdir=$ac_confdir
517   if test ! -r $srcdir/$ac_unique_file; then
518     srcdir=..
519   fi
520 else
521   ac_srcdir_defaulted=no
522 fi
523 if test ! -r $srcdir/$ac_unique_file; then
524   if test "$ac_srcdir_defaulted" = yes; then
525     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526   else
527     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528   fi
529 fi
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534   if test "x$prefix" != xNONE; then
535     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536   else
537     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538   fi
539 fi
540 for ac_site_file in $CONFIG_SITE; do
541   if test -r "$ac_site_file"; then
542     echo "loading site script $ac_site_file"
543     . "$ac_site_file"
544   fi
545 done
546
547 if test -r "$cache_file"; then
548   echo "loading cache $cache_file"
549   . $cache_file
550 else
551   echo "creating cache $cache_file"
552   > $cache_file
553 fi
554
555 ac_ext=c
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
561
562 ac_exeext=
563 ac_objext=o
564 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
565   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
567     ac_n= ac_c='
568 ' ac_t='        '
569   else
570     ac_n=-n ac_c= ac_t=
571   fi
572 else
573   ac_n= ac_c='\c' ac_t=
574 fi
575
576
577
578 PACKAGE=libstdc++
579
580 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
581 release_VERSION=3.1.0
582
583 # For libtool versioning info, format is CURRENT:REVISION:AGE
584 libtool_VERSION=4:0:0
585
586
587 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
588 # AC 2.50 sets target_alias iff the user specified --target, but we use it
589 # everywhere, so we set it here just to be sure.
590 ac_aux_dir=
591 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
592   if test -f $ac_dir/install-sh; then
593     ac_aux_dir=$ac_dir
594     ac_install_sh="$ac_aux_dir/install-sh -c"
595     break
596   elif test -f $ac_dir/install.sh; then
597     ac_aux_dir=$ac_dir
598     ac_install_sh="$ac_aux_dir/install.sh -c"
599     break
600   fi
601 done
602 if test -z "$ac_aux_dir"; then
603   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
604 fi
605 ac_config_guess=$ac_aux_dir/config.guess
606 ac_config_sub=$ac_aux_dir/config.sub
607 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608
609
610 # Do some error checking and defaulting for the host and target type.
611 # The inputs are:
612 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
613 #
614 # The rules are:
615 # 1. You are not allowed to specify --host, --target, and nonopt at the
616 #    same time.
617 # 2. Host defaults to nonopt.
618 # 3. If nonopt is not specified, then host defaults to the current host,
619 #    as determined by config.guess.
620 # 4. Target and build default to nonopt.
621 # 5. If nonopt is not specified, then target and build default to host.
622
623 # The aliases save the names the user supplied, while $host etc.
624 # will get canonicalized.
625 case $host---$target---$nonopt in
626 NONE---*---* | *---NONE---* | *---*---NONE) ;;
627 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
628 esac
629
630
631 # Make sure we can run config.sub.
632 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
633 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
634 fi
635
636 echo $ac_n "checking host system type""... $ac_c" 1>&6
637 echo "configure:638: checking host system type" >&5
638
639 host_alias=$host
640 case "$host_alias" in
641 NONE)
642   case $nonopt in
643   NONE)
644     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
645     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
646     fi ;;
647   *) host_alias=$nonopt ;;
648   esac ;;
649 esac
650
651 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
652 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
655 echo "$ac_t""$host" 1>&6
656
657 echo $ac_n "checking target system type""... $ac_c" 1>&6
658 echo "configure:659: checking target system type" >&5
659
660 target_alias=$target
661 case "$target_alias" in
662 NONE)
663   case $nonopt in
664   NONE) target_alias=$host_alias ;;
665   *) target_alias=$nonopt ;;
666   esac ;;
667 esac
668
669 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
670 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$target" 1>&6
674
675 echo $ac_n "checking build system type""... $ac_c" 1>&6
676 echo "configure:677: checking build system type" >&5
677
678 build_alias=$build
679 case "$build_alias" in
680 NONE)
681   case $nonopt in
682   NONE) build_alias=$host_alias ;;
683   *) build_alias=$nonopt ;;
684   esac ;;
685 esac
686
687 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
688 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$build" 1>&6
692
693 test "$host_alias" != "$target_alias" &&
694   test "$program_prefix$program_suffix$program_transform_name" = \
695     NONENONEs,x,x, &&
696   program_prefix=${target_alias}-
697
698 target_alias=${target_alias-$target}
699
700
701 # Find a good install program.  We prefer a C program (faster),
702 # so one script is as good as another.  But avoid the broken or
703 # incompatible versions:
704 # SysV /etc/install, /usr/sbin/install
705 # SunOS /usr/etc/install
706 # IRIX /sbin/install
707 # AIX /bin/install
708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
711 # ./install, which can be erroneously created by make from ./install.sh.
712 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
713 echo "configure:714: checking for a BSD compatible install" >&5
714 if test -z "$INSTALL"; then
715 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
716   echo $ac_n "(cached) $ac_c" 1>&6
717 else
718     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
719   for ac_dir in $PATH; do
720     # Account for people who put trailing slashes in PATH elements.
721     case "$ac_dir/" in
722     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
723     *)
724       # OSF1 and SCO ODT 3.0 have their own names for install.
725       # Don't use installbsd from OSF since it installs stuff as root
726       # by default.
727       for ac_prog in ginstall scoinst install; do
728         if test -f $ac_dir/$ac_prog; then
729           if test $ac_prog = install &&
730             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
731             # AIX install.  It has an incompatible calling convention.
732             :
733           else
734             ac_cv_path_install="$ac_dir/$ac_prog -c"
735             break 2
736           fi
737         fi
738       done
739       ;;
740     esac
741   done
742   IFS="$ac_save_IFS"
743
744 fi
745   if test "${ac_cv_path_install+set}" = set; then
746     INSTALL="$ac_cv_path_install"
747   else
748     # As a last resort, use the slow shell script.  We don't cache a
749     # path for INSTALL within a source directory, because that will
750     # break other packages using the cache if that directory is
751     # removed, or if the path is relative.
752     INSTALL="$ac_install_sh"
753   fi
754 fi
755 echo "$ac_t""$INSTALL" 1>&6
756
757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
758 # It thinks the first close brace ends the variable substitution.
759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
760
761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
762
763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
764
765 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
766 echo "configure:767: checking whether build environment is sane" >&5
767 # Just in case
768 sleep 1
769 echo timestamp > conftestfile
770 # Do `set' in a subshell so we don't clobber the current shell's
771 # arguments.  Must try -L first in case configure is actually a
772 # symlink; some systems play weird games with the mod time of symlinks
773 # (eg FreeBSD returns the mod time of the symlink's containing
774 # directory).
775 if (
776    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
777    if test "$*" = "X"; then
778       # -L didn't work.
779       set X `ls -t $srcdir/configure conftestfile`
780    fi
781    if test "$*" != "X $srcdir/configure conftestfile" \
782       && test "$*" != "X conftestfile $srcdir/configure"; then
783
784       # If neither matched, then we have a broken ls.  This can happen
785       # if, for instance, CONFIG_SHELL is bash and it inherits a
786       # broken ls alias from the environment.  This has actually
787       # happened.  Such a system could not be considered "sane".
788       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
789 alias in your environment" 1>&2; exit 1; }
790    fi
791
792    test "$2" = conftestfile
793    )
794 then
795    # Ok.
796    :
797 else
798    { echo "configure: error: newly created file is older than distributed files!
799 Check your system clock" 1>&2; exit 1; }
800 fi
801 rm -f conftest*
802 echo "$ac_t""yes" 1>&6
803 if test "$program_transform_name" = s,x,x,; then
804   program_transform_name=
805 else
806   # Double any \ or $.  echo might interpret backslashes.
807   cat <<\EOF_SED > conftestsed
808 s,\\,\\\\,g; s,\$,$$,g
809 EOF_SED
810   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
811   rm -f conftestsed
812 fi
813 test "$program_prefix" != NONE &&
814   program_transform_name="s,^,${program_prefix},; $program_transform_name"
815 # Use a double $ so make ignores it.
816 test "$program_suffix" != NONE &&
817   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
818
819 # sed with no file args requires a program.
820 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
821
822 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${MAKE-make} sets \${MAKE}" >&5
824 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
825 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
826   echo $ac_n "(cached) $ac_c" 1>&6
827 else
828   cat > conftestmake <<\EOF
829 all:
830         @echo 'ac_maketemp="${MAKE}"'
831 EOF
832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
833 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
834 if test -n "$ac_maketemp"; then
835   eval ac_cv_prog_make_${ac_make}_set=yes
836 else
837   eval ac_cv_prog_make_${ac_make}_set=no
838 fi
839 rm -f conftestmake
840 fi
841 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
842   echo "$ac_t""yes" 1>&6
843   SET_MAKE=
844 else
845   echo "$ac_t""no" 1>&6
846   SET_MAKE="MAKE=${MAKE-make}"
847 fi
848
849
850 PACKAGE=$PACKAGE
851
852 VERSION=$release_VERSION
853
854 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
855   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
856 fi
857 cat >> confdefs.h <<EOF
858 #define PACKAGE "$PACKAGE"
859 EOF
860
861 cat >> confdefs.h <<EOF
862 #define VERSION "$VERSION"
863 EOF
864
865
866
867 missing_dir=`cd $ac_aux_dir && pwd`
868 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
869 echo "configure:870: checking for working aclocal" >&5
870 # Run test in a subshell; some versions of sh will print an error if
871 # an executable is not found, even if stderr is redirected.
872 # Redirect stdin to placate older versions of autoconf.  Sigh.
873 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
874    ACLOCAL=aclocal
875    echo "$ac_t""found" 1>&6
876 else
877    ACLOCAL="$missing_dir/missing aclocal"
878    echo "$ac_t""missing" 1>&6
879 fi
880
881 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
882 echo "configure:883: checking for working autoconf" >&5
883 # Run test in a subshell; some versions of sh will print an error if
884 # an executable is not found, even if stderr is redirected.
885 # Redirect stdin to placate older versions of autoconf.  Sigh.
886 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
887    AUTOCONF=autoconf
888    echo "$ac_t""found" 1>&6
889 else
890    AUTOCONF="$missing_dir/missing autoconf"
891    echo "$ac_t""missing" 1>&6
892 fi
893
894 echo $ac_n "checking for working automake""... $ac_c" 1>&6
895 echo "configure:896: checking for working automake" >&5
896 # Run test in a subshell; some versions of sh will print an error if
897 # an executable is not found, even if stderr is redirected.
898 # Redirect stdin to placate older versions of autoconf.  Sigh.
899 if (automake --version) < /dev/null > /dev/null 2>&1; then
900    AUTOMAKE=automake
901    echo "$ac_t""found" 1>&6
902 else
903    AUTOMAKE="$missing_dir/missing automake"
904    echo "$ac_t""missing" 1>&6
905 fi
906
907 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
908 echo "configure:909: checking for working autoheader" >&5
909 # Run test in a subshell; some versions of sh will print an error if
910 # an executable is not found, even if stderr is redirected.
911 # Redirect stdin to placate older versions of autoconf.  Sigh.
912 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
913    AUTOHEADER=autoheader
914    echo "$ac_t""found" 1>&6
915 else
916    AUTOHEADER="$missing_dir/missing autoheader"
917    echo "$ac_t""missing" 1>&6
918 fi
919
920 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
921 echo "configure:922: checking for working makeinfo" >&5
922 # Run test in a subshell; some versions of sh will print an error if
923 # an executable is not found, even if stderr is redirected.
924 # Redirect stdin to placate older versions of autoconf.  Sigh.
925 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
926    MAKEINFO=makeinfo
927    echo "$ac_t""found" 1>&6
928 else
929    MAKEINFO="$missing_dir/missing makeinfo"
930    echo "$ac_t""missing" 1>&6
931 fi
932
933
934
935
936
937
938 # Runs configure.host and configure.target, as well as finds CC, CXX
939 # and assorted other critical bits. Have to run this before the
940 # GLIBCPP_ENABLE_* macros below.
941 if test $host != $build; then
942   ac_tool_prefix=${host_alias}-
943 else
944   ac_tool_prefix=
945 fi
946
947 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
948 echo "configure:949: checking for Cygwin environment" >&5
949 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
950   echo $ac_n "(cached) $ac_c" 1>&6
951 else
952   cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
955
956 int main() {
957
958 #ifndef __CYGWIN__
959 #define __CYGWIN__ __CYGWIN32__
960 #endif
961 return __CYGWIN__;
962 ; return 0; }
963 EOF
964 if { (eval echo configure:965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
965   rm -rf conftest*
966   ac_cv_cygwin=yes
967 else
968   echo "configure: failed program was:" >&5
969   cat conftest.$ac_ext >&5
970   rm -rf conftest*
971   ac_cv_cygwin=no
972 fi
973 rm -f conftest*
974 rm -f conftest*
975 fi
976
977 echo "$ac_t""$ac_cv_cygwin" 1>&6
978 CYGWIN=
979 test "$ac_cv_cygwin" = yes && CYGWIN=yes
980 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
981 echo "configure:982: checking for mingw32 environment" >&5
982 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
983   echo $ac_n "(cached) $ac_c" 1>&6
984 else
985   cat > conftest.$ac_ext <<EOF
986 #line 987 "configure"
987 #include "confdefs.h"
988
989 int main() {
990 return __MINGW32__;
991 ; return 0; }
992 EOF
993 if { (eval echo configure:994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
994   rm -rf conftest*
995   ac_cv_mingw32=yes
996 else
997   echo "configure: failed program was:" >&5
998   cat conftest.$ac_ext >&5
999   rm -rf conftest*
1000   ac_cv_mingw32=no
1001 fi
1002 rm -f conftest*
1003 rm -f conftest*
1004 fi
1005
1006 echo "$ac_t""$ac_cv_mingw32" 1>&6
1007 MINGW32=
1008 test "$ac_cv_mingw32" = yes && MINGW32=yes
1009
1010     # Check whether --enable-multilib or --disable-multilib was given.
1011 if test "${enable_multilib+set}" = set; then
1012   enableval="$enable_multilib"
1013   case "${enableval}" in
1014     yes) multilib=yes ;;
1015     no)  multilib=no ;;
1016     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1017    esac
1018 else
1019   multilib=yes
1020 fi
1021
1022 # When building with srcdir == objdir, links to the source files will
1023 # be created in directories within the target_subdir.  We have to
1024 # adjust toplevel_srcdir accordingly, so that configure finds
1025 # install-sh and other auxiliary files that live in the top-level
1026 # source directory.
1027 if test "${srcdir}" = "."; then
1028   if test -z "${with_target_subdir}"; then
1029     toprel=".."
1030   else
1031     if test "${with_target_subdir}" != "."; then
1032       toprel="${with_multisrctop}../.."
1033     else
1034       toprel="${with_multisrctop}.."
1035     fi
1036   fi
1037 else
1038   toprel=".."
1039 fi
1040 ac_aux_dir=
1041 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1042   if test -f $ac_dir/install-sh; then
1043     ac_aux_dir=$ac_dir
1044     ac_install_sh="$ac_aux_dir/install-sh -c"
1045     break
1046   elif test -f $ac_dir/install.sh; then
1047     ac_aux_dir=$ac_dir
1048     ac_install_sh="$ac_aux_dir/install.sh -c"
1049     break
1050   fi
1051 done
1052 if test -z "$ac_aux_dir"; then
1053   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1054 fi
1055 ac_config_guess=$ac_aux_dir/config.guess
1056 ac_config_sub=$ac_aux_dir/config.sub
1057 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1058
1059 toplevel_srcdir=\${top_srcdir}/$toprel
1060
1061
1062 # Export build and source directories.
1063 # These need to be absolute paths, yet at the same time need to
1064 # canonicalize only relative paths, because then amd will not unmount
1065 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1066 glibcpp_builddir=`pwd`
1067 case $srcdir in
1068 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1069 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1070 esac
1071
1072
1073
1074
1075
1076 for ac_prog in gawk mawk nawk awk
1077 do
1078 # Extract the first word of "$ac_prog", so it can be a program name with args.
1079 set dummy $ac_prog; ac_word=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1083   echo $ac_n "(cached) $ac_c" 1>&6
1084 else
1085   if test -n "$AWK"; then
1086   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1087 else
1088   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1089   ac_dummy="$PATH"
1090   for ac_dir in $ac_dummy; do
1091     test -z "$ac_dir" && ac_dir=.
1092     if test -f $ac_dir/$ac_word; then
1093       ac_cv_prog_AWK="$ac_prog"
1094       break
1095     fi
1096   done
1097   IFS="$ac_save_ifs"
1098 fi
1099 fi
1100 AWK="$ac_cv_prog_AWK"
1101 if test -n "$AWK"; then
1102   echo "$ac_t""$AWK" 1>&6
1103 else
1104   echo "$ac_t""no" 1>&6
1105 fi
1106
1107 test -n "$AWK" && break
1108 done
1109
1110 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1111 # be 'cp -p' if linking isn't available.
1112 #ac_cv_prog_LN_S='cp -p'
1113 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether ln -s works" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   rm -f conftestdata
1119 if ln -s X conftestdata 2>/dev/null
1120 then
1121   rm -f conftestdata
1122   ac_cv_prog_LN_S="ln -s"
1123 else
1124   ac_cv_prog_LN_S=ln
1125 fi
1126 fi
1127 LN_S="$ac_cv_prog_LN_S"
1128 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1129   echo "$ac_t""yes" 1>&6
1130 else
1131   echo "$ac_t""no" 1>&6
1132 fi
1133
1134
1135 # We use these options to decide which functions to include.
1136 # Check whether --with-target-subdir or --without-target-subdir was given.
1137 if test "${with_target_subdir+set}" = set; then
1138   withval="$with_target_subdir"
1139   :
1140 fi
1141
1142 # Check whether --with-cross-host or --without-cross-host was given.
1143 if test "${with_cross_host+set}" = set; then
1144   withval="$with_cross_host"
1145   :
1146 fi
1147
1148
1149   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1150   
1151
1152   # Never versions of autoconf add an underscore to these functions.
1153   # Prevent future problems ...
1154   
1155   
1156   
1157   
1158
1159 #  AC_PROG_CC
1160
1161 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1162 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1163 # are probably using a cross compiler, which will not be able to fully
1164 # link an executable.  This should really be fixed in autoconf
1165 # itself.
1166
1167
1168
1169
1170 # Extract the first word of "gcc", so it can be a program name with args.
1171 set dummy gcc; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1175   echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177   if test -n "$CC"; then
1178   ac_cv_prog_CC="$CC" # Let the user override the test.
1179 else
1180   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1181   ac_dummy="$PATH"
1182   for ac_dir in $ac_dummy; do
1183     test -z "$ac_dir" && ac_dir=.
1184     if test -f $ac_dir/$ac_word; then
1185       ac_cv_prog_CC="gcc"
1186       break
1187     fi
1188   done
1189   IFS="$ac_save_ifs"
1190 fi
1191 fi
1192 CC="$ac_cv_prog_CC"
1193 if test -n "$CC"; then
1194   echo "$ac_t""$CC" 1>&6
1195 else
1196   echo "$ac_t""no" 1>&6
1197 fi
1198
1199 if test -z "$CC"; then
1200   # Extract the first word of "cc", so it can be a program name with args.
1201 set dummy cc; ac_word=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1205   echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207   if test -n "$CC"; then
1208   ac_cv_prog_CC="$CC" # Let the user override the test.
1209 else
1210   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1211   ac_prog_rejected=no
1212   ac_dummy="$PATH"
1213   for ac_dir in $ac_dummy; do
1214     test -z "$ac_dir" && ac_dir=.
1215     if test -f $ac_dir/$ac_word; then
1216       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1217         ac_prog_rejected=yes
1218         continue
1219       fi
1220       ac_cv_prog_CC="cc"
1221       break
1222     fi
1223   done
1224   IFS="$ac_save_ifs"
1225 if test $ac_prog_rejected = yes; then
1226   # We found a bogon in the path, so make sure we never use it.
1227   set dummy $ac_cv_prog_CC
1228   shift
1229   if test $# -gt 0; then
1230     # We chose a different compiler from the bogus one.
1231     # However, it has the same basename, so the bogon will be chosen
1232     # first if we set CC to just the basename; use the full file name.
1233     shift
1234     set dummy "$ac_dir/$ac_word" "$@"
1235     shift
1236     ac_cv_prog_CC="$@"
1237   fi
1238 fi
1239 fi
1240 fi
1241 CC="$ac_cv_prog_CC"
1242 if test -n "$CC"; then
1243   echo "$ac_t""$CC" 1>&6
1244 else
1245   echo "$ac_t""no" 1>&6
1246 fi
1247
1248   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1249 fi
1250
1251 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether we are using GNU C" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1254   echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256   cat > conftest.c <<EOF
1257 #ifdef __GNUC__
1258   yes;
1259 #endif
1260 EOF
1261 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1262   ac_cv_prog_gcc=yes
1263 else
1264   ac_cv_prog_gcc=no
1265 fi
1266 fi
1267
1268 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1269
1270 if test $ac_cv_prog_gcc = yes; then
1271   GCC=yes
1272   ac_test_CFLAGS="${CFLAGS+set}"
1273   ac_save_CFLAGS="$CFLAGS"
1274   CFLAGS=
1275   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether ${CC-cc} accepts -g" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1278   echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280   echo 'void f(){}' > conftest.c
1281 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1282   ac_cv_prog_cc_g=yes
1283 else
1284   ac_cv_prog_cc_g=no
1285 fi
1286 rm -f conftest*
1287
1288 fi
1289
1290 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1291   if test "$ac_test_CFLAGS" = set; then
1292     CFLAGS="$ac_save_CFLAGS"
1293   elif test $ac_cv_prog_cc_g = yes; then
1294     CFLAGS="-g -O2"
1295   else
1296     CFLAGS="-O2"
1297   fi
1298 else
1299   GCC=
1300   test "${CFLAGS+set}" = set || CFLAGS="-g"
1301 fi
1302
1303
1304 # Can't just call these here as g++ requires libstc++ to be built....
1305 #  AC_PROG_CXX
1306
1307 # Likewise for AC_PROG_CXX.
1308
1309
1310
1311 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1312 # flags that come in CXX while configuring libstdc++.  They're different
1313 # from those used for all other target libraries.  If CXX is set in
1314 # the environment, respect that here.
1315 glibcpp_CXX=$CXX
1316 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1317 do
1318 # Extract the first word of "$ac_prog", so it can be a program name with args.
1319 set dummy $ac_prog; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1323   echo $ac_n "(cached) $ac_c" 1>&6
1324 else
1325   if test -n "$glibcpp_CXX"; then
1326   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1327 else
1328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1329   ac_dummy="$PATH"
1330   for ac_dir in $ac_dummy; do
1331     test -z "$ac_dir" && ac_dir=.
1332     if test -f $ac_dir/$ac_word; then
1333       ac_cv_prog_glibcpp_CXX="$ac_prog"
1334       break
1335     fi
1336   done
1337   IFS="$ac_save_ifs"
1338 fi
1339 fi
1340 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1341 if test -n "$glibcpp_CXX"; then
1342   echo "$ac_t""$glibcpp_CXX" 1>&6
1343 else
1344   echo "$ac_t""no" 1>&6
1345 fi
1346
1347 test -n "$glibcpp_CXX" && break
1348 done
1349 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1350
1351
1352 CXX=$glibcpp_CXX
1353 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1354
1355 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether we are using GNU C++" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1358   echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360   cat > conftest.C <<EOF
1361 #ifdef __GNUC__
1362   yes;
1363 #endif
1364 EOF
1365 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1366   ac_cv_prog_gxx=yes
1367 else
1368   ac_cv_prog_gxx=no
1369 fi
1370 fi
1371
1372 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1373
1374 if test $ac_cv_prog_gxx = yes; then
1375   GXX=yes
1376   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1377   ac_save_CXXFLAGS="$CXXFLAGS"
1378   CXXFLAGS=
1379   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1380 echo "configure:1381: checking whether ${CXX-g++} accepts -g" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   echo 'void f(){}' > conftest.cc
1385 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1386   ac_cv_prog_cxx_g=yes
1387 else
1388   ac_cv_prog_cxx_g=no
1389 fi
1390 rm -f conftest*
1391
1392 fi
1393
1394 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1395   if test "$ac_test_CXXFLAGS" = set; then
1396     CXXFLAGS="$ac_save_CXXFLAGS"
1397   elif test $ac_cv_prog_cxx_g = yes; then
1398     CXXFLAGS="-g -O2"
1399   else
1400     CXXFLAGS="-O2"
1401   fi
1402 else
1403   GXX=
1404   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1405 fi
1406
1407
1408    # For some reason, gettext needs this.
1409    
1410         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1411 echo "configure:1412: checking for strerror in -lcposix" >&5
1412 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1414   echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416   ac_save_LIBS="$LIBS"
1417 LIBS="-lcposix  $LIBS"
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* Override any gcc2 internal prototype to avoid an error.  */
1422 /* We use char because int might match the return type of a gcc2
1423     builtin and then its argument prototype would still apply.  */
1424 char strerror();
1425
1426 int main() {
1427 strerror()
1428 ; return 0; }
1429 EOF
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1431   rm -rf conftest*
1432   eval "ac_cv_lib_$ac_lib_var=yes"
1433 else
1434   echo "configure: failed program was:" >&5
1435   cat conftest.$ac_ext >&5
1436   rm -rf conftest*
1437   eval "ac_cv_lib_$ac_lib_var=no"
1438 fi
1439 rm -f conftest*
1440 LIBS="$ac_save_LIBS"
1441
1442 fi
1443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1444   echo "$ac_t""yes" 1>&6
1445   LIBS="$LIBS -lcposix"
1446 else
1447   echo "$ac_t""no" 1>&6
1448 fi
1449
1450   
1451
1452
1453   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1454 set dummy ${ac_tool_prefix}as; ac_word=$2
1455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1456 echo "configure:1457: checking for $ac_word" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1458   echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460   if test -n "$AS"; then
1461   ac_cv_prog_AS="$AS" # Let the user override the test.
1462 else
1463   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1464   ac_dummy="$PATH"
1465   for ac_dir in $ac_dummy; do
1466     test -z "$ac_dir" && ac_dir=.
1467     if test -f $ac_dir/$ac_word; then
1468       ac_cv_prog_AS="${ac_tool_prefix}as"
1469       break
1470     fi
1471   done
1472   IFS="$ac_save_ifs"
1473   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1474 fi
1475 fi
1476 AS="$ac_cv_prog_AS"
1477 if test -n "$AS"; then
1478   echo "$ac_t""$AS" 1>&6
1479 else
1480   echo "$ac_t""no" 1>&6
1481 fi
1482
1483
1484
1485   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}ar; ac_word=$2
1487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $ac_word" >&5
1489 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1490   echo $ac_n "(cached) $ac_c" 1>&6
1491 else
1492   if test -n "$AR"; then
1493   ac_cv_prog_AR="$AR" # Let the user override the test.
1494 else
1495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1496   ac_dummy="$PATH"
1497   for ac_dir in $ac_dummy; do
1498     test -z "$ac_dir" && ac_dir=.
1499     if test -f $ac_dir/$ac_word; then
1500       ac_cv_prog_AR="${ac_tool_prefix}ar"
1501       break
1502     fi
1503   done
1504   IFS="$ac_save_ifs"
1505   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1506 fi
1507 fi
1508 AR="$ac_cv_prog_AR"
1509 if test -n "$AR"; then
1510   echo "$ac_t""$AR" 1>&6
1511 else
1512   echo "$ac_t""no" 1>&6
1513 fi
1514
1515
1516
1517   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1522   echo $ac_n "(cached) $ac_c" 1>&6
1523 else
1524   if test -n "$RANLIB"; then
1525   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1526 else
1527   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1528   ac_dummy="$PATH"
1529   for ac_dir in $ac_dummy; do
1530     test -z "$ac_dir" && ac_dir=.
1531     if test -f $ac_dir/$ac_word; then
1532       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1533       break
1534     fi
1535   done
1536   IFS="$ac_save_ifs"
1537 fi
1538 fi
1539 RANLIB="$ac_cv_prog_RANLIB"
1540 if test -n "$RANLIB"; then
1541   echo "$ac_t""$RANLIB" 1>&6
1542 else
1543   echo "$ac_t""no" 1>&6
1544 fi
1545
1546
1547 if test -z "$ac_cv_prog_RANLIB"; then
1548 if test -n "$ac_tool_prefix"; then
1549   # Extract the first word of "ranlib", so it can be a program name with args.
1550 set dummy ranlib; ac_word=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   if test -n "$RANLIB"; then
1557   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1558 else
1559   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1560   ac_dummy="$PATH"
1561   for ac_dir in $ac_dummy; do
1562     test -z "$ac_dir" && ac_dir=.
1563     if test -f $ac_dir/$ac_word; then
1564       ac_cv_prog_RANLIB="ranlib"
1565       break
1566     fi
1567   done
1568   IFS="$ac_save_ifs"
1569   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1570 fi
1571 fi
1572 RANLIB="$ac_cv_prog_RANLIB"
1573 if test -n "$RANLIB"; then
1574   echo "$ac_t""$RANLIB" 1>&6
1575 else
1576   echo "$ac_t""no" 1>&6
1577 fi
1578
1579 else
1580   RANLIB="ranlib-not-found-in-path-error"
1581 fi
1582 fi
1583
1584   # Find a good install program.  We prefer a C program (faster),
1585 # so one script is as good as another.  But avoid the broken or
1586 # incompatible versions:
1587 # SysV /etc/install, /usr/sbin/install
1588 # SunOS /usr/etc/install
1589 # IRIX /sbin/install
1590 # AIX /bin/install
1591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1594 # ./install, which can be erroneously created by make from ./install.sh.
1595 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1596 echo "configure:1597: checking for a BSD compatible install" >&5
1597 if test -z "$INSTALL"; then
1598 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1599   echo $ac_n "(cached) $ac_c" 1>&6
1600 else
1601     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1602   for ac_dir in $PATH; do
1603     # Account for people who put trailing slashes in PATH elements.
1604     case "$ac_dir/" in
1605     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1606     *)
1607       # OSF1 and SCO ODT 3.0 have their own names for install.
1608       # Don't use installbsd from OSF since it installs stuff as root
1609       # by default.
1610       for ac_prog in ginstall scoinst install; do
1611         if test -f $ac_dir/$ac_prog; then
1612           if test $ac_prog = install &&
1613             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1614             # AIX install.  It has an incompatible calling convention.
1615             :
1616           else
1617             ac_cv_path_install="$ac_dir/$ac_prog -c"
1618             break 2
1619           fi
1620         fi
1621       done
1622       ;;
1623     esac
1624   done
1625   IFS="$ac_save_IFS"
1626
1627 fi
1628   if test "${ac_cv_path_install+set}" = set; then
1629     INSTALL="$ac_cv_path_install"
1630   else
1631     # As a last resort, use the slow shell script.  We don't cache a
1632     # path for INSTALL within a source directory, because that will
1633     # break other packages using the cache if that directory is
1634     # removed, or if the path is relative.
1635     INSTALL="$ac_install_sh"
1636   fi
1637 fi
1638 echo "$ac_t""$INSTALL" 1>&6
1639
1640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641 # It thinks the first close brace ends the variable substitution.
1642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1643
1644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1645
1646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1647
1648
1649   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether to enable maintainer-specific portions of Makefiles" >&5
1651     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1652 if test "${enable_maintainer_mode+set}" = set; then
1653   enableval="$enable_maintainer_mode"
1654   USE_MAINTAINER_MODE=$enableval
1655 else
1656   USE_MAINTAINER_MODE=no
1657 fi
1658
1659   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1660   
1661
1662 if test $USE_MAINTAINER_MODE = yes; then
1663   MAINTAINER_MODE_TRUE=
1664   MAINTAINER_MODE_FALSE='#'
1665 else
1666   MAINTAINER_MODE_TRUE='#'
1667   MAINTAINER_MODE_FALSE=
1668 fi
1669   MAINT=$MAINTAINER_MODE_TRUE
1670   
1671
1672
1673   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1674   # at least currently, we never actually build a program, so we never
1675   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1676   # fails, because we are probably configuring with a cross compiler
1677   # which can't create executables.  So we include AC_EXEEXT to keep
1678   # automake happy, but we don't execute it, since we don't care about
1679   # the result.
1680   if false; then
1681     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1682     # to nothing, so nothing would remain between `then' and `fi' if it
1683     # were not for the `:' below.
1684     :
1685     
1686
1687 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1688 echo "configure:1689: checking for executable suffix" >&5
1689 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1690   echo $ac_n "(cached) $ac_c" 1>&6
1691 else
1692   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1693   ac_cv_exeext=.exe
1694 else
1695   rm -f conftest*
1696   echo 'int main () { return 0; }' > conftest.$ac_ext
1697   ac_cv_exeext=
1698   if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1699     for file in conftest.*; do
1700       case $file in
1701       *.c | *.o | *.obj) ;;
1702       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1703       esac
1704     done
1705   else
1706     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1707   fi
1708   rm -f conftest*
1709   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1710 fi
1711 fi
1712
1713 EXEEXT=""
1714 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1715 echo "$ac_t""${ac_cv_exeext}" 1>&6
1716 ac_exeext=$EXEEXT
1717
1718   fi
1719
1720   . ${glibcpp_basedir}/configure.host
1721
1722   case ${glibcpp_basedir} in
1723     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1724     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1725   esac
1726
1727   # This does for the target what configure.host does for the host.  In
1728   # addition to possibly modifying the same flags, it also sets up symlinks.
1729   
1730     . ${glibcpp_basedir}/configure.target
1731     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1732     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1733
1734
1735   # 
1736
1737
1738
1739 # Check whether --enable-shared or --disable-shared was given.
1740 if test "${enable_shared+set}" = set; then
1741   enableval="$enable_shared"
1742   p=${PACKAGE-default}
1743 case $enableval in
1744 yes) enable_shared=yes ;;
1745 no) enable_shared=no ;;
1746 *)
1747   enable_shared=no
1748   # Look at the argument we got.  We use all the common list separators.
1749   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1750   for pkg in $enableval; do
1751     if test "X$pkg" = "X$p"; then
1752       enable_shared=yes
1753     fi
1754   done
1755   IFS="$ac_save_ifs"
1756   ;;
1757 esac
1758 else
1759   enable_shared=yes
1760 fi
1761
1762 # Check whether --enable-static or --disable-static was given.
1763 if test "${enable_static+set}" = set; then
1764   enableval="$enable_static"
1765   p=${PACKAGE-default}
1766 case $enableval in
1767 yes) enable_static=yes ;;
1768 no) enable_static=no ;;
1769 *)
1770   enable_static=no
1771   # Look at the argument we got.  We use all the common list separators.
1772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1773   for pkg in $enableval; do
1774     if test "X$pkg" = "X$p"; then
1775       enable_static=yes
1776     fi
1777   done
1778   IFS="$ac_save_ifs"
1779   ;;
1780 esac
1781 else
1782   enable_static=yes
1783 fi
1784
1785 # Check whether --enable-fast-install or --disable-fast-install was given.
1786 if test "${enable_fast_install+set}" = set; then
1787   enableval="$enable_fast_install"
1788   p=${PACKAGE-default}
1789 case $enableval in
1790 yes) enable_fast_install=yes ;;
1791 no) enable_fast_install=no ;;
1792 *)
1793   enable_fast_install=no
1794   # Look at the argument we got.  We use all the common list separators.
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1796   for pkg in $enableval; do
1797     if test "X$pkg" = "X$p"; then
1798       enable_fast_install=yes
1799     fi
1800   done
1801   IFS="$ac_save_ifs"
1802   ;;
1803 esac
1804 else
1805   enable_fast_install=yes
1806 fi
1807
1808 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1809 if test "${with_gnu_ld+set}" = set; then
1810   withval="$with_gnu_ld"
1811   test "$withval" = no || with_gnu_ld=yes
1812 else
1813   with_gnu_ld=no
1814 fi
1815
1816 ac_prog=ld
1817 if test "$GCC" = yes; then
1818   # Check if gcc -print-prog-name=ld gives a path.
1819   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1820 echo "configure:1821: checking for ld used by GCC" >&5
1821   case $host in
1822   *-*-mingw*)
1823     # gcc leaves a trailing carriage return which upsets mingw
1824     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1825   *)
1826     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1827   esac
1828   case $ac_prog in
1829     # Accept absolute paths.
1830     [\\/]* | [A-Za-z]:[\\/]*)
1831       re_direlt='/[^/][^/]*/\.\./'
1832       # Canonicalize the path of ld
1833       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1834       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1835         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1836       done
1837       test -z "$LD" && LD="$ac_prog"
1838       ;;
1839   "")
1840     # If it fails, then pretend we aren't using GCC.
1841     ac_prog=ld
1842     ;;
1843   *)
1844     # If it is relative, then search for the first ld in PATH.
1845     with_gnu_ld=unknown
1846     ;;
1847   esac
1848 elif test "$with_gnu_ld" = yes; then
1849   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1850 echo "configure:1851: checking for GNU ld" >&5
1851 else
1852   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1853 echo "configure:1854: checking for non-GNU ld" >&5
1854 fi
1855 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1856   echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858   if test -z "$LD"; then
1859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1860   for ac_dir in $PATH; do
1861     test -z "$ac_dir" && ac_dir=.
1862     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1863       lt_cv_path_LD="$ac_dir/$ac_prog"
1864       # Check to see if the program is GNU ld.  I'd rather use --version,
1865       # but apparently some GNU ld's only accept -v.
1866       # Break only if it was the GNU/non-GNU ld that we prefer.
1867       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1868         test "$with_gnu_ld" != no && break
1869       else
1870         test "$with_gnu_ld" != yes && break
1871       fi
1872     fi
1873   done
1874   IFS="$ac_save_ifs"
1875 else
1876   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1877 fi
1878 fi
1879
1880 LD="$lt_cv_path_LD"
1881 if test -n "$LD"; then
1882   echo "$ac_t""$LD" 1>&6
1883 else
1884   echo "$ac_t""no" 1>&6
1885 fi
1886 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1887 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1888 echo "configure:1889: checking if the linker ($LD) is GNU ld" >&5
1889 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1890   echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1893 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1894   lt_cv_prog_gnu_ld=yes
1895 else
1896   lt_cv_prog_gnu_ld=no
1897 fi
1898 fi
1899
1900 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1901 with_gnu_ld=$lt_cv_prog_gnu_ld
1902
1903
1904 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $LD option to reload object files" >&5
1906 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   lt_cv_ld_reload_flag='-r'
1910 fi
1911
1912 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1913 reload_flag=$lt_cv_ld_reload_flag
1914 test -n "$reload_flag" && reload_flag=" $reload_flag"
1915
1916 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1917 echo "configure:1918: checking for BSD-compatible nm" >&5
1918 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1919   echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921   if test -n "$NM"; then
1922   # Let the user override the test.
1923   lt_cv_path_NM="$NM"
1924 else
1925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1926   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1927     test -z "$ac_dir" && ac_dir=.
1928     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1929     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1930       # Check to see if the nm accepts a BSD-compat flag.
1931       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1932       #   nm: unknown option "B" ignored
1933       # Tru64's nm complains that /dev/null is an invalid object file
1934       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1935         lt_cv_path_NM="$tmp_nm -B"
1936         break
1937       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1938         lt_cv_path_NM="$tmp_nm -p"
1939         break
1940       else
1941         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1942         continue # so that we can try to find one that supports BSD flags
1943       fi
1944     fi
1945   done
1946   IFS="$ac_save_ifs"
1947   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1948 fi
1949 fi
1950
1951 NM="$lt_cv_path_NM"
1952 echo "$ac_t""$NM" 1>&6
1953
1954 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1955 echo "configure:1956: checking how to recognise dependant libraries" >&5
1956 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1957   echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959   lt_cv_file_magic_cmd='$MAGIC_CMD'
1960 lt_cv_file_magic_test_file=
1961 lt_cv_deplibs_check_method='unknown'
1962 # Need to set the preceding variable on all platforms that support
1963 # interlibrary dependencies.
1964 # 'none' -- dependencies not supported.
1965 # `unknown' -- same as none, but documents that we really don't know.
1966 # 'pass_all' -- all dependencies passed with no checks.
1967 # 'test_compile' -- check by making test program.
1968 # 'file_magic [regex]' -- check by looking for files in library path
1969 # which responds to the $file_magic_cmd with a given egrep regex.
1970 # If you have `file' or equivalent on your system and you're not sure
1971 # whether `pass_all' will *always* work, you probably want this one.
1972
1973 case $host_os in
1974 aix*)
1975   lt_cv_deplibs_check_method=pass_all
1976   ;;
1977
1978 beos*)
1979   lt_cv_deplibs_check_method=pass_all
1980   ;;
1981
1982 bsdi4*)
1983   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1984   lt_cv_file_magic_cmd='/usr/bin/file -L'
1985   lt_cv_file_magic_test_file=/shlib/libc.so
1986   ;;
1987
1988 cygwin* | mingw* |pw32*)
1989   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1990   lt_cv_file_magic_cmd='$OBJDUMP -f'
1991   ;;
1992
1993 darwin* | rhapsody*)
1994   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1995   lt_cv_file_magic_cmd='/usr/bin/file -L'
1996   case "$host_os" in
1997   rhapsody* | darwin1.012)
1998     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1999     ;;
2000   *) # Darwin 1.3 on
2001     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2002     ;;
2003   esac
2004   ;;
2005
2006 freebsd* )
2007   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2008     case $host_cpu in
2009     i*86 )
2010       # Not sure whether the presence of OpenBSD here was a mistake.
2011       # Let's accept both of them until this is cleared up.
2012       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2013       lt_cv_file_magic_cmd=/usr/bin/file
2014       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2015       ;;
2016     esac
2017   else
2018     lt_cv_deplibs_check_method=pass_all
2019   fi
2020   ;;
2021
2022 gnu*)
2023   lt_cv_deplibs_check_method=pass_all
2024   ;;
2025
2026 hpux10.20*|hpux11*)
2027   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2028   lt_cv_file_magic_cmd=/usr/bin/file
2029   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2030   ;;
2031
2032 irix5* | irix6*)
2033   case $host_os in
2034   irix5*)
2035     # this will be overridden with pass_all, but let us keep it just in case
2036     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2037     ;;
2038   *)
2039     case $LD in
2040     *-32|*"-32 ") libmagic=32-bit;;
2041     *-n32|*"-n32 ") libmagic=N32;;
2042     *-64|*"-64 ") libmagic=64-bit;;
2043     *) libmagic=never-match;;
2044     esac
2045     # this will be overridden with pass_all, but let us keep it just in case
2046     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2047     ;;
2048   esac
2049   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2050   lt_cv_deplibs_check_method=pass_all
2051   ;;
2052
2053 # This must be Linux ELF.
2054 linux-gnu*)
2055   case $host_cpu in
2056   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2057     lt_cv_deplibs_check_method=pass_all ;;
2058   *)
2059     # glibc up to 2.1.1 does not perform some relocations on ARM
2060     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2061   esac
2062   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2063   ;;
2064
2065 netbsd*)
2066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2067     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2068   else
2069     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2070   fi
2071   ;;
2072
2073 newsos6)
2074   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2075   lt_cv_file_magic_cmd=/usr/bin/file
2076   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2077   ;;
2078
2079 osf3* | osf4* | osf5*)
2080   # this will be overridden with pass_all, but let us keep it just in case
2081   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2082   lt_cv_file_magic_test_file=/shlib/libc.so
2083   lt_cv_deplibs_check_method=pass_all
2084   ;;
2085
2086 sco3.2v5*)
2087   lt_cv_deplibs_check_method=pass_all
2088   ;;
2089
2090 solaris*)
2091   lt_cv_deplibs_check_method=pass_all
2092   lt_cv_file_magic_test_file=/lib/libc.so
2093   ;;
2094
2095 sysv5uw[78]* | sysv4*uw2*)
2096   lt_cv_deplibs_check_method=pass_all
2097   ;;
2098
2099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2100   case $host_vendor in
2101   ncr)
2102     lt_cv_deplibs_check_method=pass_all
2103     ;;
2104   motorola)
2105     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2106     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2107     ;;
2108   esac
2109   ;;
2110 esac
2111
2112 fi
2113
2114 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2115 file_magic_cmd=$lt_cv_file_magic_cmd
2116 deplibs_check_method=$lt_cv_deplibs_check_method
2117
2118 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2119 echo "configure:2120: checking for object suffix" >&5
2120 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2121   echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123   rm -f conftest*
2124 echo 'int i = 1;' > conftest.$ac_ext
2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2126   for ac_file in conftest.*; do
2127     case $ac_file in
2128     *.c) ;;
2129     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2130     esac
2131   done
2132 else
2133   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2134 fi
2135 rm -f conftest*
2136 fi
2137
2138 echo "$ac_t""$ac_cv_objext" 1>&6
2139 OBJEXT=$ac_cv_objext
2140 ac_objext=$ac_cv_objext
2141
2142 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2143
2144 # Only perform the check for file, if the check method requires it
2145 case $deplibs_check_method in
2146 file_magic*)
2147   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2148     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2149 echo "configure:2150: checking for ${ac_tool_prefix}file" >&5
2150 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2151   echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153   case $MAGIC_CMD in
2154   /*)
2155   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2156   ;;
2157   ?:/*)
2158   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2159   ;;
2160   *)
2161   ac_save_MAGIC_CMD="$MAGIC_CMD"
2162   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2163   ac_dummy="/usr/bin:$PATH"
2164   for ac_dir in $ac_dummy; do
2165     test -z "$ac_dir" && ac_dir=.
2166     if test -f $ac_dir/${ac_tool_prefix}file; then
2167       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2168       if test -n "$file_magic_test_file"; then
2169         case $deplibs_check_method in
2170         "file_magic "*)
2171           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2172           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2173           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2174             egrep "$file_magic_regex" > /dev/null; then
2175             :
2176           else
2177             cat <<EOF 1>&2
2178
2179 *** Warning: the command libtool uses to detect shared libraries,
2180 *** $file_magic_cmd, produces output that libtool cannot recognize.
2181 *** The result is that libtool may fail to recognize shared libraries
2182 *** as such.  This will affect the creation of libtool libraries that
2183 *** depend on shared libraries, but programs linked with such libtool
2184 *** libraries will work regardless of this problem.  Nevertheless, you
2185 *** may want to report the problem to your system manager and/or to
2186 *** bug-libtool@gnu.org
2187
2188 EOF
2189           fi ;;
2190         esac
2191       fi
2192       break
2193     fi
2194   done
2195   IFS="$ac_save_ifs"
2196   MAGIC_CMD="$ac_save_MAGIC_CMD"
2197   ;;
2198 esac
2199 fi
2200
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if test -n "$MAGIC_CMD"; then
2203   echo "$ac_t""$MAGIC_CMD" 1>&6
2204 else
2205   echo "$ac_t""no" 1>&6
2206 fi
2207
2208 if test -z "$lt_cv_path_MAGIC_CMD"; then
2209   if test -n "$ac_tool_prefix"; then
2210     echo $ac_n "checking for file""... $ac_c" 1>&6
2211 echo "configure:2212: checking for file" >&5
2212 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2213   echo $ac_n "(cached) $ac_c" 1>&6
2214 else
2215   case $MAGIC_CMD in
2216   /*)
2217   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2218   ;;
2219   ?:/*)
2220   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2221   ;;
2222   *)
2223   ac_save_MAGIC_CMD="$MAGIC_CMD"
2224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2225   ac_dummy="/usr/bin:$PATH"
2226   for ac_dir in $ac_dummy; do
2227     test -z "$ac_dir" && ac_dir=.
2228     if test -f $ac_dir/file; then
2229       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2230       if test -n "$file_magic_test_file"; then
2231         case $deplibs_check_method in
2232         "file_magic "*)
2233           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2236             egrep "$file_magic_regex" > /dev/null; then
2237             :
2238           else
2239             cat <<EOF 1>&2
2240
2241 *** Warning: the command libtool uses to detect shared libraries,
2242 *** $file_magic_cmd, produces output that libtool cannot recognize.
2243 *** The result is that libtool may fail to recognize shared libraries
2244 *** as such.  This will affect the creation of libtool libraries that
2245 *** depend on shared libraries, but programs linked with such libtool
2246 *** libraries will work regardless of this problem.  Nevertheless, you
2247 *** may want to report the problem to your system manager and/or to
2248 *** bug-libtool@gnu.org
2249
2250 EOF
2251           fi ;;
2252         esac
2253       fi
2254       break
2255     fi
2256   done
2257   IFS="$ac_save_ifs"
2258   MAGIC_CMD="$ac_save_MAGIC_CMD"
2259   ;;
2260 esac
2261 fi
2262
2263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2264 if test -n "$MAGIC_CMD"; then
2265   echo "$ac_t""$MAGIC_CMD" 1>&6
2266 else
2267   echo "$ac_t""no" 1>&6
2268 fi
2269
2270   else
2271     MAGIC_CMD=:
2272   fi
2273 fi
2274
2275   fi
2276   ;;
2277 esac
2278
2279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2284   echo $ac_n "(cached) $ac_c" 1>&6
2285 else
2286   if test -n "$RANLIB"; then
2287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2288 else
2289   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2290   ac_dummy="$PATH"
2291   for ac_dir in $ac_dummy; do
2292     test -z "$ac_dir" && ac_dir=.
2293     if test -f $ac_dir/$ac_word; then
2294       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2295       break
2296     fi
2297   done
2298   IFS="$ac_save_ifs"
2299 fi
2300 fi
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303   echo "$ac_t""$RANLIB" 1>&6
2304 else
2305   echo "$ac_t""no" 1>&6
2306 fi
2307
2308
2309 if test -z "$ac_cv_prog_RANLIB"; then
2310 if test -n "$ac_tool_prefix"; then
2311   # Extract the first word of "ranlib", so it can be a program name with args.
2312 set dummy ranlib; ac_word=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2316   echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318   if test -n "$RANLIB"; then
2319   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2320 else
2321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2322   ac_dummy="$PATH"
2323   for ac_dir in $ac_dummy; do
2324     test -z "$ac_dir" && ac_dir=.
2325     if test -f $ac_dir/$ac_word; then
2326       ac_cv_prog_RANLIB="ranlib"
2327       break
2328     fi
2329   done
2330   IFS="$ac_save_ifs"
2331   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2332 fi
2333 fi
2334 RANLIB="$ac_cv_prog_RANLIB"
2335 if test -n "$RANLIB"; then
2336   echo "$ac_t""$RANLIB" 1>&6
2337 else
2338   echo "$ac_t""no" 1>&6
2339 fi
2340
2341 else
2342   RANLIB=":"
2343 fi
2344 fi
2345
2346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}strip; ac_word=$2
2348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2349 echo "configure:2350: checking for $ac_word" >&5
2350 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   if test -n "$STRIP"; then
2354   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 else
2356   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2357   ac_dummy="$PATH"
2358   for ac_dir in $ac_dummy; do
2359     test -z "$ac_dir" && ac_dir=.
2360     if test -f $ac_dir/$ac_word; then
2361       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362       break
2363     fi
2364   done
2365   IFS="$ac_save_ifs"
2366 fi
2367 fi
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370   echo "$ac_t""$STRIP" 1>&6
2371 else
2372   echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 if test -z "$ac_cv_prog_STRIP"; then
2377 if test -n "$ac_tool_prefix"; then
2378   # Extract the first word of "strip", so it can be a program name with args.
2379 set dummy strip; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2383   echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385   if test -n "$STRIP"; then
2386   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387 else
2388   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2389   ac_dummy="$PATH"
2390   for ac_dir in $ac_dummy; do
2391     test -z "$ac_dir" && ac_dir=.
2392     if test -f $ac_dir/$ac_word; then
2393       ac_cv_prog_STRIP="strip"
2394       break
2395     fi
2396   done
2397   IFS="$ac_save_ifs"
2398   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2399 fi
2400 fi
2401 STRIP="$ac_cv_prog_STRIP"
2402 if test -n "$STRIP"; then
2403   echo "$ac_t""$STRIP" 1>&6
2404 else
2405   echo "$ac_t""no" 1>&6
2406 fi
2407
2408 else
2409   STRIP=":"
2410 fi
2411 fi
2412
2413
2414 # Check for any special flags to pass to ltconfig.
2415 libtool_flags="--cache-file=$cache_file"
2416 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2417 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2418 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2419 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2420 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2421 libtool_flags="$libtool_flags --enable-dlopen"
2422
2423 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2424 if test "${enable_libtool_lock+set}" = set; then
2425   enableval="$enable_libtool_lock"
2426   :
2427 fi
2428
2429 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2430 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2431
2432 # Check whether --with-pic or --without-pic was given.
2433 if test "${with_pic+set}" = set; then
2434   withval="$with_pic"
2435   pic_mode="$withval"
2436 else
2437   pic_mode=default
2438 fi
2439
2440 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2441 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2442
2443 # Some flags need to be propagated to the compiler or linker for good
2444 # libtool support.
2445 case $host in
2446 *-*-irix6*)
2447   # Find out which ABI we are using.
2448   echo '#line 2449 "configure"' > conftest.$ac_ext
2449   if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450     case `/usr/bin/file conftest.$ac_objext` in
2451     *32-bit*)
2452       LD="${LD-ld} -32"
2453       ;;
2454     *N32*)
2455       LD="${LD-ld} -n32"
2456       ;;
2457     *64-bit*)
2458       LD="${LD-ld} -64"
2459       ;;
2460     esac
2461   fi
2462   rm -rf conftest*
2463   ;;
2464
2465 *-*-sco3.2v5*)
2466   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2467   SAVE_CFLAGS="$CFLAGS"
2468   CFLAGS="$CFLAGS -belf"
2469   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether the C compiler needs -belf" >&5
2471 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2472   echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474   
2475      ac_ext=c
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling=$ac_cv_prog_cc_cross
2481
2482      cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485
2486 int main() {
2487
2488 ; return 0; }
2489 EOF
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491   rm -rf conftest*
2492   lt_cv_cc_needs_belf=yes
2493 else
2494   echo "configure: failed program was:" >&5
2495   cat conftest.$ac_ext >&5
2496   rm -rf conftest*
2497   lt_cv_cc_needs_belf=no
2498 fi
2499 rm -f conftest*
2500      ac_ext=c
2501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2505 cross_compiling=$ac_cv_prog_cc_cross
2506
2507 fi
2508
2509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2510   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2511     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2512     CFLAGS="$SAVE_CFLAGS"
2513   fi
2514   ;;
2515
2516
2517 esac
2518
2519 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2520 echo "configure:2521: checking how to run the C++ preprocessor" >&5
2521 if test -z "$CXXCPP"; then
2522 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2523   echo $ac_n "(cached) $ac_c" 1>&6
2524 else
2525   ac_ext=C
2526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp='$CXXCPP $CPPFLAGS'
2528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling=$ac_cv_prog_cxx_cross
2531   CXXCPP="${CXX-g++} -E"
2532   cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 #include <stdlib.h>
2536 EOF
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2541   :
2542 else
2543   echo "$ac_err" >&5
2544   echo "configure: failed program was:" >&5
2545   cat conftest.$ac_ext >&5
2546   rm -rf conftest*
2547   CXXCPP=/lib/cpp
2548 fi
2549 rm -f conftest*
2550   ac_cv_prog_CXXCPP="$CXXCPP"
2551 ac_ext=c
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cc_cross
2557 fi
2558 fi
2559 CXXCPP="$ac_cv_prog_CXXCPP"
2560 echo "$ac_t""$CXXCPP" 1>&6
2561
2562
2563 # Save cache, so that ltconfig can load it
2564 cat > confcache <<\EOF
2565 # This file is a shell script that caches the results of configure
2566 # tests run on this system so they can be shared between configure
2567 # scripts and configure runs.  It is not useful on other systems.
2568 # If it contains results you don't want to keep, you may remove or edit it.
2569 #
2570 # By default, configure uses ./config.cache as the cache file,
2571 # creating it if it does not exist already.  You can give configure
2572 # the --cache-file=FILE option to use a different cache file; that is
2573 # what configure does when it calls configure scripts in
2574 # subdirectories, so they share the cache.
2575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2576 # config.status only pays attention to the cache file if you give it the
2577 # --recheck option to rerun configure.
2578 #
2579 EOF
2580 # The following way of writing the cache mishandles newlines in values,
2581 # but we know of no workaround that is simple, portable, and efficient.
2582 # So, don't put newlines in cache variables' values.
2583 # Ultrix sh set writes to stderr and can't be redirected directly,
2584 # and sets the high bit in the cache file unless we assign to the vars.
2585 (set) 2>&1 |
2586   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2587   *ac_space=\ *)
2588     # `set' does not quote correctly, so add quotes (double-quote substitution
2589     # turns \\\\ into \\, and sed turns \\ into \).
2590     sed -n \
2591       -e "s/'/'\\\\''/g" \
2592       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2593     ;;
2594   *)
2595     # `set' quotes correctly as required by POSIX, so do not add quotes.
2596     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2597     ;;
2598   esac >> confcache
2599 if cmp -s $cache_file confcache; then
2600   :
2601 else
2602   if test -w $cache_file; then
2603     echo "updating cache $cache_file"
2604     cat confcache > $cache_file
2605   else
2606     echo "not updating unwritable cache $cache_file"
2607   fi
2608 fi
2609 rm -f confcache
2610
2611
2612 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2613 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2614 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2615 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2616 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2617 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2618 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2620 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2621 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2622
2623 # Reload cache, that may have been modified by ltconfig
2624 if test -r "$cache_file"; then
2625   echo "loading cache $cache_file"
2626   . $cache_file
2627 else
2628   echo "creating cache $cache_file"
2629   > $cache_file
2630 fi
2631
2632
2633 # This can be used to rebuild libtool when needed
2634 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2635
2636 # Always use our own libtool.
2637 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2638
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2642
2643
2644
2645 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2646 lt_save_CC="$CC"
2647 lt_save_CFLAGS="$CFLAGS"
2648 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2649 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2650 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2651 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2652 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2653 deplibs_check_method="$deplibs_check_method" \
2654 file_magic_cmd="$file_magic_cmd" \
2655 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2656 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2657 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2658 CC="$lt_save_CC"
2659 CFLAGS="$lt_save_CFLAGS"
2660
2661 # Redirect the config.log output again, so that the ltconfig log is not
2662 # clobbered by the next message.
2663 exec 5>>./config.log
2664
2665   
2666
2667   
2668          
2669          
2670
2671
2672
2673 # Check for c++ or library specific bits that don't require linking.
2674 #GLIBCPP_CHECK_COMPILER_VERSION
2675 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2676 echo "configure:2677: checking for GNU make" >&5
2677 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2678   echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680   _cv_gnu_make_command='' ;
2681           for a in "${MAKE-make}" make gmake gnumake ; do
2682                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2683                   then
2684                           _cv_gnu_make_command=$a ;
2685                           break;
2686                   fi
2687           done ;
2688   
2689 fi
2690
2691 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2692   if test  "x$_cv_gnu_make_command" != "x"  ; then
2693           ifGNUmake='' ;
2694   else
2695           ifGNUmake='#' ;
2696   fi
2697   
2698
2699
2700 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2701 # Check whether --enable-debug or --disable-debug was given.
2702 if test "${enable_debug+set}" = set; then
2703   enableval="$enable_debug"
2704   case "${enableval}" in
2705  yes) enable_debug=yes ;;
2706  no)  enable_debug=no ;;
2707  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2708  esac
2709 else
2710   enable_debug=no
2711 fi
2712
2713 case "${enable_debug}" in
2714     yes) 
2715         DEBUG_FLAGS='-O0 -ggdb3'                        
2716         ;; 
2717     no)   
2718         DEBUG_FLAGS='-g'
2719         ;;
2720 esac
2721
2722
2723 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2724 echo "configure:2725: checking how to run the C preprocessor" >&5
2725 # On Suns, sometimes $CPP names a directory.
2726 if test -n "$CPP" && test -d "$CPP"; then
2727   CPP=
2728 fi
2729 if test -z "$CPP"; then
2730 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2731   echo $ac_n "(cached) $ac_c" 1>&6
2732 else
2733     # This must be in double quotes, not single quotes, because CPP may get
2734   # substituted into the Makefile and "${CC-cc}" will confuse make.
2735   CPP="${CC-cc} -E"
2736   # On the NeXT, cc -E runs the code through the compiler's parser,
2737   # not just through cpp.
2738   cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <assert.h>
2742 Syntax Error
2743 EOF
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2748   :
2749 else
2750   echo "$ac_err" >&5
2751   echo "configure: failed program was:" >&5
2752   cat conftest.$ac_ext >&5
2753   rm -rf conftest*
2754   CPP="${CC-cc} -E -traditional-cpp"
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <assert.h>
2759 Syntax Error
2760 EOF
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765   :
2766 else
2767   echo "$ac_err" >&5
2768   echo "configure: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   rm -rf conftest*
2771   CPP="${CC-cc} -nologo -E"
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <assert.h>
2776 Syntax Error
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   :
2783 else
2784   echo "$ac_err" >&5
2785   echo "configure: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   rm -rf conftest*
2788   CPP=/lib/cpp
2789 fi
2790 rm -f conftest*
2791 fi
2792 rm -f conftest*
2793 fi
2794 rm -f conftest*
2795   ac_cv_prog_CPP="$CPP"
2796 fi
2797   CPP="$ac_cv_prog_CPP"
2798 else
2799   ac_cv_prog_CPP="$CPP"
2800 fi
2801 echo "$ac_t""$CPP" 1>&6
2802
2803
2804   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2805 echo "configure:2806: checking for cstdio to use" >&5
2806   # Check whether --enable-cstdio or --disable-cstdio was given.
2807 if test "${enable_cstdio+set}" = set; then
2808   enableval="$enable_cstdio"
2809   if test x$enable_cstdio = xno; then
2810      enable_cstdio=stdio
2811   fi
2812 else
2813   enable_cstdio=stdio
2814 fi
2815
2816
2817   enable_cstdio_flag=$enable_cstdio
2818
2819     case x${enable_cstdio_flag} in
2820     xlibio)
2821       CSTDIO_H=config/io/c_io_libio.h
2822       BASIC_FILE_H=config/io/basic_file_libio.h
2823       BASIC_FILE_CC=config/io/basic_file_libio.cc
2824       echo "$ac_t""libio" 1>&6
2825
2826       # see if we are on a system with libio native (ie, linux)
2827       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for libio.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831   echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833   cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <libio.h>
2837 EOF
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2842   rm -rf conftest*
2843   eval "ac_cv_header_$ac_safe=yes"
2844 else
2845   echo "$ac_err" >&5
2846   echo "configure: failed program was:" >&5
2847   cat conftest.$ac_ext >&5
2848   rm -rf conftest*
2849   eval "ac_cv_header_$ac_safe=no"
2850 fi
2851 rm -f conftest*
2852 fi
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854   echo "$ac_t""yes" 1>&6
2855   has_libio=yes
2856 else
2857   echo "$ac_t""no" 1>&6
2858 has_libio=no
2859 fi
2860
2861
2862       # Need to check and see what version of glibc is being used. If
2863       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2864       # compile most of libio for linux systems.
2865       if test x$has_libio = x"yes"; then
2866         case "$target" in
2867           *-*-linux*)
2868               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2869 echo "configure:2870: checking for glibc version >= 2.2" >&5
2870               cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873
2874             #include <features.h>
2875               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2876                     ok
2877               #endif
2878               
2879 EOF
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881   egrep "ok" >/dev/null 2>&1; then
2882   rm -rf conftest*
2883   glibc_satisfactory=yes
2884 else
2885   rm -rf conftest*
2886   glibc_satisfactory=no
2887 fi
2888 rm -f conftest*
2889
2890               echo "$ac_t""$glibc_satisfactory" 1>&6
2891             ;;
2892         esac
2893
2894         # XXX at the moment, admit defeat and force the recompilation
2895         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2896         glibc_satisfactory=no        
2897
2898         if test x$glibc_satisfactory = x"yes"; then
2899            need_libio=no
2900            need_wlibio=no        
2901         else
2902            need_libio=yes
2903            # bkoz XXX need to add checks to enable this
2904            # pme XXX here's a first pass at such a check
2905            if test x$enable_c_mbchar != xno; then
2906               need_wlibio=yes
2907            else
2908               need_wlibio=no
2909            fi
2910         fi
2911
2912       else
2913          # Using libio, but <libio.h> doesn't exist on the target system. . .
2914          need_libio=yes
2915          # bkoz XXX need to add checks to enable this
2916          # pme XXX here's a first pass at such a check
2917          if test x$enable_c_mbchar != xno; then
2918              need_wlibio=yes
2919          else
2920              need_wlibio=no
2921          fi
2922       fi
2923       ;;
2924     xstdio | x | xno | xnone | xyes)
2925       # default
2926       CSTDIO_H=config/io/c_io_stdio.h
2927       BASIC_FILE_H=config/io/basic_file_stdio.h
2928       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2929       echo "$ac_t""stdio" 1>&6
2930
2931       # We're not using stdio.
2932       need_libio=no
2933       need_wlibio=no
2934       ;;
2935     *)
2936       echo "$enable_cstdio is an unknown io package" 1>&2
2937       exit 1
2938       ;;
2939   esac
2940   
2941   
2942   
2943
2944   # 2000-08-04 bkoz hack
2945   CCODECVT_C=config/io/c_io_libio_codecvt.c
2946   
2947   # 2000-08-04 bkoz hack
2948
2949   
2950
2951 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2952   GLIBCPP_BUILD_LIBIO_TRUE=
2953   GLIBCPP_BUILD_LIBIO_FALSE='#'
2954 else
2955   GLIBCPP_BUILD_LIBIO_TRUE='#'
2956   GLIBCPP_BUILD_LIBIO_FALSE=
2957 fi
2958   
2959
2960 if test "$need_libio" = yes; then
2961   GLIBCPP_NEED_LIBIO_TRUE=
2962   GLIBCPP_NEED_LIBIO_FALSE='#'
2963 else
2964   GLIBCPP_NEED_LIBIO_TRUE='#'
2965   GLIBCPP_NEED_LIBIO_FALSE=
2966 fi
2967   
2968
2969 if test "$need_wlibio" = yes; then
2970   GLIBCPP_NEED_WLIBIO_TRUE=
2971   GLIBCPP_NEED_WLIBIO_FALSE='#'
2972 else
2973   GLIBCPP_NEED_WLIBIO_TRUE='#'
2974   GLIBCPP_NEED_WLIBIO_FALSE=
2975 fi
2976   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2977     libio_la=../libio/libio.la
2978   else
2979     libio_la=
2980   fi
2981   
2982
2983
2984   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2985 echo "configure:2986: checking for clocale to use" >&5
2986   # Check whether --enable-clocale or --disable-clocale was given.
2987 if test "${enable_clocale+set}" = set; then
2988   enableval="$enable_clocale"
2989   if test x$enable_clocale = xno; then
2990      enable_clocale=no
2991   fi
2992 else
2993   enable_clocale=no
2994 fi
2995
2996
2997   enable_clocale_flag=$enable_clocale
2998
2999       if test x$enable_clocale_flag = xno; then
3000     case x${target_os} in
3001       xlinux* | xgnu*)
3002         cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005
3006         #include <features.h>
3007         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3008           _GLIBCPP_ok
3009         #endif
3010         
3011 EOF
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3014   rm -rf conftest*
3015   enable_clocale_flag=gnu
3016 else
3017   rm -rf conftest*
3018   enable_clocale_flag=generic
3019 fi
3020 rm -f conftest*
3021
3022
3023         # Test for bugs early in glibc-2.2.x series
3024         if test x$enable_clocale_flag = xgnu; then
3025           if test "$cross_compiling" = yes; then
3026   enable_clocale_flag=generic
3027 else
3028   cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031
3032           #define _GNU_SOURCE 1
3033           #include <locale.h>
3034           int main()
3035           {
3036             const char __one[] = "Äuglein Augmen";
3037             const char __two[] = "Äuglein";
3038             int i;
3039             int j;
3040             __locale_t  loc;
3041             __locale_t  loc_dup;
3042             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3043             loc_dup = __duplocale(loc);
3044             i = __strcoll_l(__one, __two, loc);
3045             j = __strcoll_l(__one, __two, loc_dup);
3046             return 0;
3047           }
3048           
3049 EOF
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3051 then
3052   enable_clocale_flag=gnu
3053 else
3054   echo "configure: failed program was:" >&5
3055   cat conftest.$ac_ext >&5
3056   rm -fr conftest*
3057   enable_clocale_flag=generic
3058 fi
3059 rm -fr conftest*
3060 fi
3061
3062         fi
3063
3064         # ... at some point put __strxfrm_l tests in as well.
3065         ;;
3066       *)
3067         enable_clocale_flag=generic
3068         ;;
3069     esac
3070   fi
3071
3072     case x${enable_clocale_flag} in
3073     xgeneric)
3074       echo "$ac_t""generic" 1>&6
3075
3076       # Don't use gettext.
3077       USE_NLS=no
3078
3079       CLOCALE_H=config/locale/c_locale_generic.h
3080       CLOCALE_CC=config/locale/c_locale_generic.cc
3081       CCODECVT_H=config/locale/codecvt_specializations_generic.h
3082       CCOLLATE_CC=config/locale/collate_members_generic.cc
3083       CCTYPE_CC=config/locale/ctype_members_generic.cc
3084       CMESSAGES_H=config/locale/messages_members_generic.h
3085       CMESSAGES_CC=config/locale/messages_members_generic.cc
3086       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3087       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3088       CTIME_CC=config/locale/time_members_generic.cc
3089       ;;
3090     xgnu)
3091       echo "$ac_t""gnu" 1>&6
3092
3093       # Declare intention to use gettext, and add support for specific
3094       # languages.
3095       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3096       ALL_LINGUAS="de fr"
3097       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3098       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3099       USE_NLS=yes
3100
3101       # Export the build objects.
3102       for ling in $ALL_LINGUAS; do \
3103         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3104         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3105       done
3106       
3107       
3108
3109       CLOCALE_H=config/locale/c_locale_gnu.h
3110       CLOCALE_CC=config/locale/c_locale_gnu.cc
3111       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3112       CCOLLATE_CC=config/locale/collate_members_gnu.cc
3113       CCTYPE_CC=config/locale/ctype_members_gnu.cc
3114       CMESSAGES_H=config/locale/messages_members_gnu.h
3115       CMESSAGES_CC=config/locale/messages_members_gnu.cc
3116       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3117       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3118       CTIME_CC=config/locale/time_members_gnu.cc
3119       ;;
3120     xieee_1003.1)
3121       echo "$ac_t""generic" 1>&6
3122
3123       # Don't use gettext.
3124       USE_NLS=no
3125
3126       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3127       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3128       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3129       CCOLLATE_CC=config/locale/collate_members_generic.cc
3130       CCTYPE_CC=config/locale/ctype_members_generic.cc
3131       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3132       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3133       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3134       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3135       CTIME_CC=config/locale/time_members_generic.cc
3136       ;;
3137     *)
3138       echo "$enable_clocale is an unknown locale package" 1>&2
3139       exit 1
3140       ;;
3141   esac
3142
3143   # This is where the testsuite looks for locale catalogs, using the
3144   # -DLOCALEDIR define during testsuite compilation.
3145   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3146   
3147
3148   
3149   
3150   
3151   
3152   
3153   
3154   
3155   
3156   
3157   
3158   
3159
3160 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3161 if test "${enable_c_mbchar+set}" = set; then
3162   enableval="$enable_c_mbchar"
3163   case "$enableval" in
3164  yes) enable_c_mbchar=yes ;;
3165  no)  enable_c_mbchar=no ;;
3166  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3167  esac
3168 else
3169   enable_c_mbchar=yes
3170 fi
3171
3172   
3173   # Check whether --enable-c99 or --disable-c99 was given.
3174 if test "${enable_c99+set}" = set; then
3175   enableval="$enable_c99"
3176     case "$enableval" in
3177    yes) enable_c99=yes ;;
3178    no)  enable_c99=no ;;
3179    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3180    esac
3181 else
3182   enable_c99=yes
3183 fi
3184  
3185   
3186   ac_ext=C
3187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3188 ac_cpp='$CXXCPP $CPPFLAGS'
3189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3191 cross_compiling=$ac_cv_prog_cxx_cross
3192
3193
3194   # Check for the existence of <math.h> functions used if C99 is enabled.
3195   ac_c99_math=yes;
3196   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3197 echo "configure:3198: checking for ISO C99 support in <math.h>" >&5
3198   cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <math.h>
3202 int main() {
3203 fpclassify(0.0);
3204 ; return 0; }
3205 EOF
3206 if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3207   :
3208 else
3209   echo "configure: failed program was:" >&5
3210   cat conftest.$ac_ext >&5
3211   rm -rf conftest*
3212   ac_c99_math=no
3213 fi
3214 rm -f conftest*
3215   cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 #include <math.h>
3219 int main() {
3220 isfinite(0.0);
3221 ; return 0; }
3222 EOF
3223 if { (eval echo configure:3224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224   :
3225 else
3226   echo "configure: failed program was:" >&5
3227   cat conftest.$ac_ext >&5
3228   rm -rf conftest*
3229   ac_c99_math=no
3230 fi
3231 rm -f conftest*
3232   cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <math.h>
3236 int main() {
3237 isinf(0.0);
3238 ; return 0; }
3239 EOF
3240 if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241   :
3242 else
3243   echo "configure: failed program was:" >&5
3244   cat conftest.$ac_ext >&5
3245   rm -rf conftest*
3246   ac_c99_math=no
3247 fi
3248 rm -f conftest*
3249   cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 #include <math.h>
3253 int main() {
3254 isnan(0.0);
3255 ; return 0; }
3256 EOF
3257 if { (eval echo configure:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258   :
3259 else
3260   echo "configure: failed program was:" >&5
3261   cat conftest.$ac_ext >&5
3262   rm -rf conftest*
3263   ac_c99_math=no
3264 fi
3265 rm -f conftest*
3266   cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #include <math.h>
3270 int main() {
3271 isnormal(0.0);
3272 ; return 0; }
3273 EOF
3274 if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275   :
3276 else
3277   echo "configure: failed program was:" >&5
3278   cat conftest.$ac_ext >&5
3279   rm -rf conftest*
3280   ac_c99_math=no
3281 fi
3282 rm -f conftest*
3283   cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 #include <math.h>
3287 int main() {
3288 signbit(0.0);
3289 ; return 0; }
3290 EOF
3291 if { (eval echo configure:3292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292   :
3293 else
3294   echo "configure: failed program was:" >&5
3295   cat conftest.$ac_ext >&5
3296   rm -rf conftest*
3297   ac_c99_math=no
3298 fi
3299 rm -f conftest*
3300   cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <math.h>
3304 int main() {
3305 isgreater(0.0,0.0);
3306 ; return 0; }
3307 EOF
3308 if { (eval echo configure:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3309   :
3310 else
3311   echo "configure: failed program was:" >&5
3312   cat conftest.$ac_ext >&5
3313   rm -rf conftest*
3314   ac_c99_math=no
3315 fi
3316 rm -f conftest*
3317   cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 #include <math.h>
3321 int main() {
3322 isgreaterequal(0.0,0.0);
3323 ; return 0; }
3324 EOF
3325 if { (eval echo configure:3326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326   :
3327 else
3328   echo "configure: failed program was:" >&5
3329   cat conftest.$ac_ext >&5
3330   rm -rf conftest*
3331   ac_c99_math=no
3332 fi
3333 rm -f conftest*
3334   cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 #include <math.h>
3338 int main() {
3339 isless(0.0,0.0);
3340 ; return 0; }
3341 EOF
3342 if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343   :
3344 else
3345   echo "configure: failed program was:" >&5
3346   cat conftest.$ac_ext >&5
3347   rm -rf conftest*
3348   ac_c99_math=no
3349 fi
3350 rm -f conftest*
3351   cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 #include <math.h>
3355 int main() {
3356 islessequal(0.0,0.0);
3357 ; return 0; }
3358 EOF
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360   :
3361 else
3362   echo "configure: failed program was:" >&5
3363   cat conftest.$ac_ext >&5
3364   rm -rf conftest*
3365   ac_c99_math=no
3366 fi
3367 rm -f conftest*
3368   cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 #include <math.h>
3372 int main() {
3373 islessgreater(0.0,0.0);
3374 ; return 0; }
3375 EOF
3376 if { (eval echo configure:3377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377   :
3378 else
3379   echo "configure: failed program was:" >&5
3380   cat conftest.$ac_ext >&5
3381   rm -rf conftest*
3382   ac_c99_math=no
3383 fi
3384 rm -f conftest*
3385   cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 #include <math.h>
3389 int main() {
3390 isunordered(0.0,0.0);
3391 ; return 0; }
3392 EOF
3393 if { (eval echo configure:3394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394   :
3395 else
3396   echo "configure: failed program was:" >&5
3397   cat conftest.$ac_ext >&5
3398   rm -rf conftest*
3399   ac_c99_math=no
3400 fi
3401 rm -f conftest*
3402   echo "$ac_t""$ac_c99_math" 1>&6
3403
3404   # Check for the existence in <stdio.h> of vscanf, et. al.
3405   ac_c99_stdio=yes;
3406   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3407 echo "configure:3408: checking for ISO C99 support in <stdio.h>" >&5
3408   cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <stdio.h>
3412 int main() {
3413 snprintf("12", 0, "%i");
3414 ; return 0; }
3415 EOF
3416 if { (eval echo configure:3417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3417   :
3418 else
3419   echo "configure: failed program was:" >&5
3420   cat conftest.$ac_ext >&5
3421   rm -rf conftest*
3422   ac_c99_stdio=no
3423 fi
3424 rm -f conftest*
3425   cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 #include <stdio.h>
3429                   #include <stdarg.h>
3430                   void foo(char* fmt, ...)
3431                   {va_list args; va_start(args, fmt);
3432                   vfscanf(stderr, "%i", args);}
3433 int main() {
3434
3435 ; return 0; }
3436 EOF
3437 if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438   :
3439 else
3440   echo "configure: failed program was:" >&5
3441   cat conftest.$ac_ext >&5
3442   rm -rf conftest*
3443   ac_c99_stdio=no
3444 fi
3445 rm -f conftest*
3446   cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 #include <stdio.h>
3450                   #include <stdarg.h>
3451                   void foo(char* fmt, ...)
3452                   {va_list args; va_start(args, fmt);
3453                   vscanf("%i", args);}
3454 int main() {
3455
3456 ; return 0; }
3457 EOF
3458 if { (eval echo configure:3459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3459   :
3460 else
3461   echo "configure: failed program was:" >&5
3462   cat conftest.$ac_ext >&5
3463   rm -rf conftest*
3464   ac_c99_stdio=no
3465 fi
3466 rm -f conftest*
3467   cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <stdio.h>
3471                   #include <stdarg.h>
3472                   void foo(char* fmt, ...)
3473                   {va_list args; va_start(args, fmt);
3474                   vsnprintf(fmt, 0, "%i", args);}
3475 int main() {
3476
3477 ; return 0; }
3478 EOF
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480   :
3481 else
3482   echo "configure: failed program was:" >&5
3483   cat conftest.$ac_ext >&5
3484   rm -rf conftest*
3485   ac_c99_stdio=no
3486 fi
3487 rm -f conftest*
3488   cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <stdio.h>
3492                   #include <stdarg.h>
3493                   void foo(char* fmt, ...)
3494                   {va_list args; va_start(args, fmt);
3495                   vsscanf(fmt, "%i", args);}
3496 int main() {
3497
3498 ; return 0; }
3499 EOF
3500 if { (eval echo configure:3501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501   :
3502 else
3503   echo "configure: failed program was:" >&5
3504   cat conftest.$ac_ext >&5
3505   rm -rf conftest*
3506   ac_c99_stdio=no
3507 fi
3508 rm -f conftest*
3509   echo "$ac_t""$ac_c99_stdio" 1>&6
3510
3511   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3512   ac_c99_stdlib=yes;
3513   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3514 echo "configure:3515: checking for lldiv_t declaration" >&5
3515   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3516   echo $ac_n "(cached) $ac_c" 1>&6
3517 else
3518   
3519   cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <stdlib.h>
3523 int main() {
3524  lldiv_t mydivt;
3525 ; return 0; }
3526 EOF
3527 if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3528   rm -rf conftest*
3529   ac_c99_lldiv_t=yes
3530 else
3531   echo "configure: failed program was:" >&5
3532   cat conftest.$ac_ext >&5
3533   rm -rf conftest*
3534   ac_c99_lldiv_t=no
3535 fi
3536 rm -f conftest*
3537   
3538 fi
3539
3540   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3541
3542   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3543 echo "configure:3544: checking for ISO C99 support in <stdlib.h>" >&5
3544   cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <stdlib.h>
3548 int main() {
3549 char* tmp; strtof("gnu", &tmp);
3550 ; return 0; }
3551 EOF
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553   :
3554 else
3555   echo "configure: failed program was:" >&5
3556   cat conftest.$ac_ext >&5
3557   rm -rf conftest*
3558   ac_c99_stdlib=no
3559 fi
3560 rm -f conftest*
3561   cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #include <stdlib.h>
3565 int main() {
3566 char* tmp; strtold("gnu", &tmp);
3567 ; return 0; }
3568 EOF
3569 if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3570   :
3571 else
3572   echo "configure: failed program was:" >&5
3573   cat conftest.$ac_ext >&5
3574   rm -rf conftest*
3575   ac_c99_stdlib=no
3576 fi
3577 rm -f conftest*
3578   cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <stdlib.h>
3582 int main() {
3583 llabs(10);
3584 ; return 0; }
3585 EOF
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587   :
3588 else
3589   echo "configure: failed program was:" >&5
3590   cat conftest.$ac_ext >&5
3591   rm -rf conftest*
3592   ac_c99_stdlib=no
3593 fi
3594 rm -f conftest*
3595   cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 #include <stdlib.h>
3599 int main() {
3600 lldiv(10,1);
3601 ; return 0; }
3602 EOF
3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604   :
3605 else
3606   echo "configure: failed program was:" >&5
3607   cat conftest.$ac_ext >&5
3608   rm -rf conftest*
3609   ac_c99_stdlib=no
3610 fi
3611 rm -f conftest*
3612   cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <stdlib.h>
3616 int main() {
3617 atoll("10");
3618 ; return 0; }
3619 EOF
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3621   :
3622 else
3623   echo "configure: failed program was:" >&5
3624   cat conftest.$ac_ext >&5
3625   rm -rf conftest*
3626   ac_c99_stdlib=no
3627 fi
3628 rm -f conftest*
3629   cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <stdlib.h>
3633 int main() {
3634 _Exit(0);
3635 ; return 0; }
3636 EOF
3637 if { (eval echo configure:3638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638   :
3639 else
3640   echo "configure: failed program was:" >&5
3641   cat conftest.$ac_ext >&5
3642   rm -rf conftest*
3643   ac_c99_stdlib=no
3644 fi
3645 rm -f conftest*
3646   if test x"$ac_c99_lldiv_t" = x"no"; then
3647     ac_c99_stdlib=no; 
3648   fi; 
3649   echo "$ac_t""$ac_c99_stdlib" 1>&6
3650
3651   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3652   # XXX the wchar.h checks should be rolled into the general C99 bits.
3653   ac_c99_wchar=yes;
3654   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3655 echo "configure:3656: checking for additional ISO C99 support in <wchar.h>" >&5
3656   cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 #include <wchar.h>
3660 int main() {
3661 wcstold(L"10.0", NULL);
3662 ; return 0; }
3663 EOF
3664 if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665   :
3666 else
3667   echo "configure: failed program was:" >&5
3668   cat conftest.$ac_ext >&5
3669   rm -rf conftest*
3670   ac_c99_wchar=no
3671 fi
3672 rm -f conftest*
3673   cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <wchar.h>
3677 int main() {
3678 wcstoll(L"10", NULL, 10);
3679 ; return 0; }
3680 EOF
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682   :
3683 else
3684   echo "configure: failed program was:" >&5
3685   cat conftest.$ac_ext >&5
3686   rm -rf conftest*
3687   ac_c99_wchar=no
3688 fi
3689 rm -f conftest*
3690   cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <wchar.h>
3694 int main() {
3695 wcstoull(L"10", NULL, 10);
3696 ; return 0; }
3697 EOF
3698 if { (eval echo configure:3699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699   :
3700 else
3701   echo "configure: failed program was:" >&5
3702   cat conftest.$ac_ext >&5
3703   rm -rf conftest*
3704   ac_c99_wchar=no
3705 fi
3706 rm -f conftest*
3707   echo "$ac_t""$ac_c99_wchar" 1>&6
3708
3709   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3710 echo "configure:3711: checking for enabled ISO C99 support" >&5
3711   if test x"$ac_c99_math" = x"no" ||
3712      test x"$ac_c99_stdio" = x"no" ||
3713      test x"$ac_c99_stdlib" = x"no" ||
3714      test x"$ac_c99_wchar" = x"no"; then
3715     enable_c99=no; 
3716   fi; 
3717   echo "$ac_t""$enable_c99" 1>&6
3718
3719   # Option parsed, now set things appropriately
3720   if test x"$enable_c99" = x"yes"; then
3721     cat >> confdefs.h <<\EOF
3722 #define _GLIBCPP_USE_C99 1
3723 EOF
3724
3725   fi
3726
3727   ac_ext=c
3728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3732 cross_compiling=$ac_cv_prog_cc_cross
3733
3734
3735   
3736   # Check whether --enable-long-long or --disable-long-long was given.
3737 if test "${enable_long_long+set}" = set; then
3738   enableval="$enable_long_long"
3739     case "$enableval" in
3740    yes) enable_long_long=yes ;;
3741    no)  enable_long_long=no ;;
3742    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3743    esac
3744 else
3745   enable_long_long=yes
3746 fi
3747
3748   
3749   ac_ext=C
3750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3751 ac_cpp='$CXXCPP $CPPFLAGS'
3752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3754 cross_compiling=$ac_cv_prog_cxx_cross
3755
3756
3757   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3758 echo "configure:3759: checking for enabled long long I/O support" >&5
3759   # iostreams require strtoll, strtoull to compile
3760   cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <stdlib.h>
3764 int main() {
3765 char* tmp; strtoll("gnu", &tmp, 10);
3766 ; return 0; }
3767 EOF
3768 if { (eval echo configure:3769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769   :
3770 else
3771   echo "configure: failed program was:" >&5
3772   cat conftest.$ac_ext >&5
3773   rm -rf conftest*
3774   enable_long_long=no
3775 fi
3776 rm -f conftest*
3777   cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 #include <stdlib.h>
3781 int main() {
3782 char* tmp; strtoull("gnu", &tmp, 10);
3783 ; return 0; }
3784 EOF
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786   :
3787 else
3788   echo "configure: failed program was:" >&5
3789   cat conftest.$ac_ext >&5
3790   rm -rf conftest*
3791   enable_long_long=no
3792 fi
3793 rm -f conftest*
3794
3795   # Option parsed, now set things appropriately
3796   if test x"$enable_long_long" = xyes; then
3797     cat >> confdefs.h <<\EOF
3798 #define _GLIBCPP_USE_LONG_LONG 1
3799 EOF
3800
3801   fi
3802   echo "$ac_t""$enable_long_long" 1>&6
3803
3804   ac_ext=c
3805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3809 cross_compiling=$ac_cv_prog_cc_cross
3810
3811
3812 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3813 echo "configure:3814: checking for c header strategy to use" >&5
3814 # Check whether --enable-cheaders or --disable-cheaders was given.
3815 if test "${enable_cheaders+set}" = set; then
3816   enableval="$enable_cheaders"
3817   
3818   case "$enableval" in
3819    c) 
3820         enable_cheaders=c 
3821         ;;
3822    c_std)  
3823         enable_cheaders=c_std 
3824         ;;
3825    c_shadow)  
3826         enable_cheaders=c_shadow 
3827         ;;
3828    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3829         ;;
3830   esac
3831 else
3832   enable_cheaders=c_std
3833 fi
3834
3835   echo "$ac_t""$enable_cheaders" 1>&6
3836
3837     case "$enable_cheaders" in
3838     c_shadow) 
3839         CSHADOW_FLAGS="-fno-builtin"
3840         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3841         cat >> confdefs.h <<\EOF
3842 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3843 EOF
3844
3845         ;;
3846     c_std)   
3847         CSHADOW_FLAGS=""
3848         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3849         ;;
3850     c)   
3851         CSHADOW_FLAGS=""
3852         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3853         ;;
3854   esac
3855
3856   
3857   
3858   
3859
3860 if test "$enable_cheaders" = c_shadow; then
3861   GLIBCPP_USE_CSHADOW_TRUE=
3862   GLIBCPP_USE_CSHADOW_FALSE='#'
3863 else
3864   GLIBCPP_USE_CSHADOW_TRUE='#'
3865   GLIBCPP_USE_CSHADOW_FALSE=
3866 fi
3867
3868
3869   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3870 echo "configure:3871: checking for thread model used by GCC" >&5
3871   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3872   echo "$ac_t""$target_thread_file" 1>&6
3873
3874   if test $target_thread_file != single; then
3875     cat >> confdefs.h <<\EOF
3876 #define HAVE_GTHR_DEFAULT 1
3877 EOF
3878
3879     cat >> confdefs.h <<\EOF
3880 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3881 EOF
3882
3883   fi
3884
3885   glibcpp_thread_h=gthr-$target_thread_file.h
3886   
3887
3888 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3889 if test "${enable_cxx_flags+set}" = set; then
3890   enableval="$enable_cxx_flags"
3891   case "x$enableval" in
3892  xyes)   
3893         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3894  xno|x)  
3895         enable_cxx_flags='' ;;
3896  *)      
3897         enable_cxx_flags="$enableval" ;;
3898  esac
3899 else
3900   enable_cxx_flags='none'
3901 fi
3902
3903
3904 if test "$enable_cxx_flags" = "none"; then 
3905   enable_cxx_flags=''; 
3906 fi
3907
3908 if test -n "$enable_cxx_flags"; then
3909     for f in $enable_cxx_flags; do
3910         case "$f" in
3911             -fhonor-std)  ;;
3912             -*)  ;;
3913             *)   # and we're trying to pass /what/ exactly?
3914                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3915         esac
3916     done
3917 fi
3918 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3919
3920
3921
3922   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3923 echo "configure:3924: checking for exception model to use" >&5
3924   
3925   ac_ext=C
3926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3927 ac_cpp='$CXXCPP $CPPFLAGS'
3928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3930 cross_compiling=$ac_cv_prog_cxx_cross
3931
3932   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3933 if test "${enable_sjlj_exceptions+set}" = set; then
3934   enableval="$enable_sjlj_exceptions"
3935   :
3936 else
3937                        cat > conftest.$ac_ext << EOF
3938 #line 3939 "configure"
3939 struct S { ~S(); };
3940 void bar();
3941 void foo()
3942 {
3943   S s;
3944   bar();
3945 }
3946 EOF
3947    old_CXXFLAGS="$CXXFLAGS"  
3948    CXXFLAGS=-S
3949    if { (eval echo configure:3950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3950      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3951        enable_sjlj_exceptions=yes
3952      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3953        enable_sjlj_exceptions=no
3954      fi
3955    fi
3956    CXXFLAGS="$old_CXXFLAGS"
3957    rm -f conftest*
3958 fi
3959
3960    if test x$enable_sjlj_exceptions = xyes; then
3961      cat >> confdefs.h <<\EOF
3962 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3963 EOF
3964
3965      ac_exception_model_name=sjlj
3966    elif test x$enable_sjlj_exceptions = xno; then
3967      ac_exception_model_name="call frame"
3968    else
3969      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3970    fi
3971    ac_ext=c
3972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3976 cross_compiling=$ac_cv_prog_cc_cross
3977
3978    echo "$ac_t""$ac_exception_model_name" 1>&6
3979
3980 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3981 if test "${enable_concept_checks+set}" = set; then
3982   enableval="$enable_concept_checks"
3983   case "$enableval" in
3984  yes) enable_concept_checks=yes ;;
3985  no)  enable_concept_checks=no ;;
3986  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3987  esac
3988 else
3989   enable_concept_checks=no
3990 fi
3991 if test x"$enable_concept_checks" = xyes; then
3992   cat >> confdefs.h <<\EOF
3993 #define _GLIBCPP_CONCEPT_CHECKS 1
3994 EOF
3995
3996 fi
3997
3998
3999
4000 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4001
4002   # This lets us hard-code the functionality we know
4003   # we'll have in the cross target environment. "Let" is a
4004   # sugar-coated word placed on an especially dull and tedious hack, actually.
4005   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4006   # that involve linking can't be used:
4007   # "cannot open sim-crt0.o"
4008   # "cannot open crt0.o"
4009   # etc. All this is because there currently exists no unified,
4010   # consistent way for top level CC information to be passed down
4011   # to target directories: newlib includes, newlib linking info,
4012   # libgloss versus newlib crt0.o, etc. When all of this is done, all
4013   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
4014
4015   # We are being configured with some form of cross compiler.
4016   GLIBCPP_IS_CROSS_COMPILING=1
4017
4018   # If Canadian cross, then don't pick up tools from the build
4019   # directory.
4020   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4021     CANADIAN=yes
4022   else
4023     CANADIAN=no
4024   fi
4025
4026   # Construct crosses by hand, eliminating bits that need ld...
4027   # GLIBCPP_CHECK_COMPILER_FEATURES
4028   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4029   # GLIBCPP_CHECK_MATH_SUPPORT
4030
4031   case "$target_alias" in
4032     *-linux*)
4033       # Check for available headers.
4034       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4035         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4036         fp.h locale.h float.h inttypes.h
4037 do
4038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4040 echo "configure:4041: checking for $ac_hdr" >&5
4041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4042   echo $ac_n "(cached) $ac_c" 1>&6
4043 else
4044   cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <$ac_hdr>
4048 EOF
4049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4050 { (eval echo configure:4051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4052 if test -z "$ac_err"; then
4053   rm -rf conftest*
4054   eval "ac_cv_header_$ac_safe=yes"
4055 else
4056   echo "$ac_err" >&5
4057   echo "configure: failed program was:" >&5
4058   cat conftest.$ac_ext >&5
4059   rm -rf conftest*
4060   eval "ac_cv_header_$ac_safe=no"
4061 fi
4062 rm -f conftest*
4063 fi
4064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4065   echo "$ac_t""yes" 1>&6
4066     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4067   cat >> confdefs.h <<EOF
4068 #define $ac_tr_hdr 1
4069 EOF
4070  
4071 else
4072   echo "$ac_t""no" 1>&6
4073 fi
4074 done
4075
4076       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4077       
4078       
4079   # If we're not using GNU ld, then there's no point in even trying these
4080   # tests.  Check for that first.  We should have already tested for gld
4081   # by now (in libtool), but require it now just to be safe...
4082   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4083   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4084   
4085
4086   # The name set by libtool depends on the version of libtool.  Shame on us
4087   # for depending on an impl detail, but c'est la vie.  Older versions used
4088   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4089   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4090   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4091   # set (hence we're using an older libtool), then set it.
4092   if test x${with_gnu_ld+set} != xset; then
4093     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4094       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4095       with_gnu_ld=no
4096     else
4097       with_gnu_ld=$ac_cv_prog_gnu_ld
4098     fi
4099   fi
4100
4101   # Start by getting the version number.  I think the libtool test already
4102   # does some of this, but throws away the result.
4103   
4104   ldver=`$LD --version 2>/dev/null | head -1 | \
4105          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4106   
4107   glibcpp_gnu_ld_version=`echo $ldver | \
4108          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4109
4110   # Set --gc-sections.
4111   if test "$with_gnu_ld" = "notbroken"; then
4112     # GNU ld it is!  Joy and bunny rabbits!
4113
4114     # All these tests are for C++; save the language and the compiler flags.
4115     # Need to do this so that g++ won't try to link in libstdc++
4116     ac_test_CFLAGS="${CFLAGS+set}"
4117     ac_save_CFLAGS="$CFLAGS"
4118     CFLAGS='-x c++  -Wl,--gc-sections'
4119
4120     # Check for -Wl,--gc-sections
4121     # XXX This test is broken at the moment, as symbols required for
4122     # linking are now in libsupc++ (not built yet.....). In addition, 
4123     # this test has cored on solaris in the past. In addition,
4124     # --gc-sections doesn't really work at the moment (keeps on discarding
4125     # used sections, first .eh_frame and now some of the glibc sections for
4126     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4127     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4128 echo "configure:4129: checking for ld that supports -Wl,--gc-sections" >&5
4129     if test "$cross_compiling" = yes; then
4130   ac_sectionLDflags=yes
4131 else
4132   cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135
4136      int main(void) 
4137      {
4138        try { throw 1; }
4139        catch (...) { };
4140        return 0;
4141      }
4142     
4143 EOF
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4145 then
4146   ac_sectionLDflags=yes
4147 else
4148   echo "configure: failed program was:" >&5
4149   cat conftest.$ac_ext >&5
4150   rm -fr conftest*
4151   ac_sectionLDflags=no
4152 fi
4153 rm -fr conftest*
4154 fi
4155
4156     if test "$ac_test_CFLAGS" = set; then
4157       CFLAGS="$ac_save_CFLAGS"
4158     else
4159       # this is the suspicious part
4160       CFLAGS=''
4161     fi
4162     if test "$ac_sectionLDflags" = "yes"; then
4163       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4164     fi
4165     echo "$ac_t""$ac_sectionLDflags" 1>&6
4166   fi
4167
4168   # Set linker optimization flags.
4169   if test x"$with_gnu_ld" = x"yes" &&
4170      test x"$enable_debug" = x"no"; then
4171     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4172   fi
4173
4174   
4175   
4176
4177       
4178     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4179 echo "configure:4180: checking for main in -lm" >&5
4180 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4182   echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4184   ac_save_LIBS="$LIBS"
4185 LIBS="-lm  $LIBS"
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189
4190 int main() {
4191 main()
4192 ; return 0; }
4193 EOF
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195   rm -rf conftest*
4196   eval "ac_cv_lib_$ac_lib_var=yes"
4197 else
4198   echo "configure: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   rm -rf conftest*
4201   eval "ac_cv_lib_$ac_lib_var=no"
4202 fi
4203 rm -f conftest*
4204 LIBS="$ac_save_LIBS"
4205
4206 fi
4207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4208   echo "$ac_t""yes" 1>&6
4209     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4210     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4211   cat >> confdefs.h <<EOF
4212 #define $ac_tr_lib 1
4213 EOF
4214
4215   LIBS="-lm $LIBS"
4216
4217 else
4218   echo "$ac_t""no" 1>&6
4219 fi
4220
4221   for ac_func in nan copysignf
4222 do
4223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4224 echo "configure:4225: checking for $ac_func" >&5
4225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4226   echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228   cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* System header to define __stub macros and hopefully few prototypes,
4232     which can conflict with char $ac_func(); below.  */
4233 #include <assert.h>
4234 /* Override any gcc2 internal prototype to avoid an error.  */
4235 /* We use char because int might match the return type of a gcc2
4236     builtin and then its argument prototype would still apply.  */
4237 char $ac_func();
4238
4239 int main() {
4240
4241 /* The GNU C library defines this for functions which it implements
4242     to always fail with ENOSYS.  Some functions are actually named
4243     something starting with __ and the normal name is an alias.  */
4244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4245 choke me
4246 #else
4247 $ac_func();
4248 #endif
4249
4250 ; return 0; }
4251 EOF
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253   rm -rf conftest*
4254   eval "ac_cv_func_$ac_func=yes"
4255 else
4256   echo "configure: failed program was:" >&5
4257   cat conftest.$ac_ext >&5
4258   rm -rf conftest*
4259   eval "ac_cv_func_$ac_func=no"
4260 fi
4261 rm -f conftest*
4262 fi
4263
4264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4265   echo "$ac_t""yes" 1>&6
4266     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4267   cat >> confdefs.h <<EOF
4268 #define $ac_tr_func 1
4269 EOF
4270  
4271 else
4272   echo "$ac_t""no" 1>&6
4273 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4274 fi
4275 done
4276
4277
4278
4279           USE_COMPLEX_LONG_DOUBLE=no
4280   if test x$ac_cv_func_copysignl = x"yes"; then
4281     USE_COMPLEX_LONG_DOUBLE=yes
4282     for ac_func in signbitl
4283 do
4284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_func" >&5
4286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4287   echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4289   cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* System header to define __stub macros and hopefully few prototypes,
4293     which can conflict with char $ac_func(); below.  */
4294 #include <assert.h>
4295 /* Override any gcc2 internal prototype to avoid an error.  */
4296 /* We use char because int might match the return type of a gcc2
4297     builtin and then its argument prototype would still apply.  */
4298 char $ac_func();
4299
4300 int main() {
4301
4302 /* The GNU C library defines this for functions which it implements
4303     to always fail with ENOSYS.  Some functions are actually named
4304     something starting with __ and the normal name is an alias.  */
4305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4306 choke me
4307 #else
4308 $ac_func();
4309 #endif
4310
4311 ; return 0; }
4312 EOF
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4314   rm -rf conftest*
4315   eval "ac_cv_func_$ac_func=yes"
4316 else
4317   echo "configure: failed program was:" >&5
4318   cat conftest.$ac_ext >&5
4319   rm -rf conftest*
4320   eval "ac_cv_func_$ac_func=no"
4321 fi
4322 rm -f conftest*
4323 fi
4324
4325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4326   echo "$ac_t""yes" 1>&6
4327     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4328   cat >> confdefs.h <<EOF
4329 #define $ac_tr_func 1
4330 EOF
4331  
4332 else
4333   echo "$ac_t""no" 1>&6
4334 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4335 fi
4336 done
4337
4338
4339   fi
4340
4341   
4342
4343       
4344
4345       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4346 echo "configure:4347: checking for mbstate_t" >&5
4347   cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 #include <wchar.h>
4351 int main() {
4352 mbstate_t teststate;
4353 ; return 0; }
4354 EOF
4355 if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356   rm -rf conftest*
4357   have_mbstate_t=yes
4358 else
4359   echo "configure: failed program was:" >&5
4360   cat conftest.$ac_ext >&5
4361   rm -rf conftest*
4362   have_mbstate_t=no
4363 fi
4364 rm -f conftest*
4365   echo "$ac_t""$have_mbstate_t" 1>&6
4366   if test x"$have_mbstate_t" = xyes; then
4367     cat >> confdefs.h <<\EOF
4368 #define HAVE_MBSTATE_T 1
4369 EOF
4370
4371   fi
4372
4373     for ac_hdr in wchar.h
4374 do
4375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_hdr" >&5
4378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4379   echo $ac_n "(cached) $ac_c" 1>&6
4380 else
4381   cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 #include <$ac_hdr>
4385 EOF
4386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4387 { (eval echo configure:4388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4389 if test -z "$ac_err"; then
4390   rm -rf conftest*
4391   eval "ac_cv_header_$ac_safe=yes"
4392 else
4393   echo "$ac_err" >&5
4394   echo "configure: failed program was:" >&5
4395   cat conftest.$ac_ext >&5
4396   rm -rf conftest*
4397   eval "ac_cv_header_$ac_safe=no"
4398 fi
4399 rm -f conftest*
4400 fi
4401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4402   echo "$ac_t""yes" 1>&6
4403     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4404   cat >> confdefs.h <<EOF
4405 #define $ac_tr_hdr 1
4406 EOF
4407  ac_has_wchar_h=yes
4408 else
4409   echo "$ac_t""no" 1>&6
4410 ac_has_wchar_h=no
4411 fi
4412 done
4413
4414   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4415 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4416 echo "configure:4417: checking for wctype.h" >&5
4417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4418   echo $ac_n "(cached) $ac_c" 1>&6
4419 else
4420   cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 #include <wctype.h>
4424 EOF
4425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4426 { (eval echo configure:4427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4428 if test -z "$ac_err"; then
4429   rm -rf conftest*
4430   eval "ac_cv_header_$ac_safe=yes"
4431 else
4432   echo "$ac_err" >&5
4433   echo "configure: failed program was:" >&5
4434   cat conftest.$ac_ext >&5
4435   rm -rf conftest*
4436   eval "ac_cv_header_$ac_safe=no"
4437 fi
4438 rm -f conftest*
4439 fi
4440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4441   echo "$ac_t""yes" 1>&6
4442   ac_has_wctype_h=yes
4443 else
4444   echo "$ac_t""no" 1>&6
4445 ac_has_wctype_h=no
4446 fi
4447
4448   
4449     if test x"$ac_has_wchar_h" = xyes &&
4450      test x"$ac_has_wctype_h" = xyes &&
4451      test x"$enable_c_mbchar" != xno; then
4452       
4453             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4454 echo "configure:4455: checking for WCHAR_MIN and WCHAR_MAX" >&5
4455     cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 #include <wchar.h>
4459 int main() {
4460 int i = WCHAR_MIN; int j = WCHAR_MAX;
4461 ; return 0; }
4462 EOF
4463 if { (eval echo configure:4464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4464   rm -rf conftest*
4465   has_wchar_minmax=yes
4466 else
4467   echo "configure: failed program was:" >&5
4468   cat conftest.$ac_ext >&5
4469   rm -rf conftest*
4470   has_wchar_minmax=no
4471 fi
4472 rm -f conftest*
4473     echo "$ac_t""$has_wchar_minmax" 1>&6
4474     
4475             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4476 echo "configure:4477: checking for WEOF" >&5
4477     cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480
4481       #include <wchar.h>
4482       #include <stddef.h>
4483 int main() {
4484 wint_t i = WEOF;
4485 ; return 0; }
4486 EOF
4487 if { (eval echo configure:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4488   rm -rf conftest*
4489   has_weof=yes
4490 else
4491   echo "configure: failed program was:" >&5
4492   cat conftest.$ac_ext >&5
4493   rm -rf conftest*
4494   has_weof=no
4495 fi
4496 rm -f conftest*
4497     echo "$ac_t""$has_weof" 1>&6
4498   
4499         ac_wfuncs=yes
4500     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4501 do
4502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4503 echo "configure:4504: checking for $ac_func" >&5
4504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4505   echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507   cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 /* System header to define __stub macros and hopefully few prototypes,
4511     which can conflict with char $ac_func(); below.  */
4512 #include <assert.h>
4513 /* Override any gcc2 internal prototype to avoid an error.  */
4514 /* We use char because int might match the return type of a gcc2
4515     builtin and then its argument prototype would still apply.  */
4516 char $ac_func();
4517
4518 int main() {
4519
4520 /* The GNU C library defines this for functions which it implements
4521     to always fail with ENOSYS.  Some functions are actually named
4522     something starting with __ and the normal name is an alias.  */
4523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4524 choke me
4525 #else
4526 $ac_func();
4527 #endif
4528
4529 ; return 0; }
4530 EOF
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4532   rm -rf conftest*
4533   eval "ac_cv_func_$ac_func=yes"
4534 else
4535   echo "configure: failed program was:" >&5
4536   cat conftest.$ac_ext >&5
4537   rm -rf conftest*
4538   eval "ac_cv_func_$ac_func=no"
4539 fi
4540 rm -f conftest*
4541 fi
4542
4543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4544   echo "$ac_t""yes" 1>&6
4545     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4546   cat >> confdefs.h <<EOF
4547 #define $ac_tr_func 1
4548 EOF
4549  
4550 else
4551   echo "$ac_t""no" 1>&6
4552 \
4553     ac_wfuncs=no
4554 fi
4555 done
4556
4557   
4558         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4559     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4560     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4561     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4562     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4563     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4564 do
4565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_func" >&5
4567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4568   echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570   cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 /* System header to define __stub macros and hopefully few prototypes,
4574     which can conflict with char $ac_func(); below.  */
4575 #include <assert.h>
4576 /* Override any gcc2 internal prototype to avoid an error.  */
4577 /* We use char because int might match the return type of a gcc2
4578     builtin and then its argument prototype would still apply.  */
4579 char $ac_func();
4580
4581 int main() {
4582
4583 /* The GNU C library defines this for functions which it implements
4584     to always fail with ENOSYS.  Some functions are actually named
4585     something starting with __ and the normal name is an alias.  */
4586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4587 choke me
4588 #else
4589 $ac_func();
4590 #endif
4591
4592 ; return 0; }
4593 EOF
4594 if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595   rm -rf conftest*
4596   eval "ac_cv_func_$ac_func=yes"
4597 else
4598   echo "configure: failed program was:" >&5
4599   cat conftest.$ac_ext >&5
4600   rm -rf conftest*
4601   eval "ac_cv_func_$ac_func=no"
4602 fi
4603 rm -f conftest*
4604 fi
4605
4606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4607   echo "$ac_t""yes" 1>&6
4608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4609   cat >> confdefs.h <<EOF
4610 #define $ac_tr_func 1
4611 EOF
4612  
4613 else
4614   echo "$ac_t""no" 1>&6
4615 \
4616     ac_wfuncs=no
4617 fi
4618 done
4619
4620
4621     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4622 echo "configure:4623: checking for ISO C99 wchar_t support" >&5
4623     if test x"$has_weof" = xyes &&
4624        test x"$has_wchar_minmax" = xyes &&
4625        test x"$ac_wfuncs" = xyes; then
4626       ac_isoC99_wchar_t=yes
4627     else
4628       ac_isoC99_wchar_t=no
4629     fi
4630     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4631   
4632             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4633 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4634 echo "configure:4635: checking for iconv.h" >&5
4635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4636   echo $ac_n "(cached) $ac_c" 1>&6
4637 else
4638   cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 #include <iconv.h>
4642 EOF
4643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4644 { (eval echo configure:4645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4646 if test -z "$ac_err"; then
4647   rm -rf conftest*
4648   eval "ac_cv_header_$ac_safe=yes"
4649 else
4650   echo "$ac_err" >&5
4651   echo "configure: failed program was:" >&5
4652   cat conftest.$ac_ext >&5
4653   rm -rf conftest*
4654   eval "ac_cv_header_$ac_safe=no"
4655 fi
4656 rm -f conftest*
4657 fi
4658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4659   echo "$ac_t""yes" 1>&6
4660   ac_has_iconv_h=yes
4661 else
4662   echo "$ac_t""no" 1>&6
4663 ac_has_iconv_h=no
4664 fi
4665
4666     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4667 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4668 echo "configure:4669: checking for langinfo.h" >&5
4669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4670   echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672   cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <langinfo.h>
4676 EOF
4677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4678 { (eval echo configure:4679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4680 if test -z "$ac_err"; then
4681   rm -rf conftest*
4682   eval "ac_cv_header_$ac_safe=yes"
4683 else
4684   echo "$ac_err" >&5
4685   echo "configure: failed program was:" >&5
4686   cat conftest.$ac_ext >&5
4687   rm -rf conftest*
4688   eval "ac_cv_header_$ac_safe=no"
4689 fi
4690 rm -f conftest*
4691 fi
4692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4693   echo "$ac_t""yes" 1>&6
4694   ac_has_langinfo_h=yes
4695 else
4696   echo "$ac_t""no" 1>&6
4697 ac_has_langinfo_h=no
4698 fi
4699
4700
4701         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4702 echo "configure:4703: checking for iconv in -liconv" >&5
4703 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4705   echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707   ac_save_LIBS="$LIBS"
4708 LIBS="-liconv  $LIBS"
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* Override any gcc2 internal prototype to avoid an error.  */
4713 /* We use char because int might match the return type of a gcc2
4714     builtin and then its argument prototype would still apply.  */
4715 char iconv();
4716
4717 int main() {
4718 iconv()
4719 ; return 0; }
4720 EOF
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722   rm -rf conftest*
4723   eval "ac_cv_lib_$ac_lib_var=yes"
4724 else
4725   echo "configure: failed program was:" >&5
4726   cat conftest.$ac_ext >&5
4727   rm -rf conftest*
4728   eval "ac_cv_lib_$ac_lib_var=no"
4729 fi
4730 rm -f conftest*
4731 LIBS="$ac_save_LIBS"
4732
4733 fi
4734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4735   echo "$ac_t""yes" 1>&6
4736   libiconv="-liconv"
4737 else
4738   echo "$ac_t""no" 1>&6
4739 fi
4740
4741     ac_save_LIBS="$LIBS"
4742     LIBS="$LIBS $libiconv"
4743
4744     for ac_func in iconv_open iconv_close iconv nl_langinfo
4745 do
4746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_func" >&5
4748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4749   echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751   cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 /* System header to define __stub macros and hopefully few prototypes,
4755     which can conflict with char $ac_func(); below.  */
4756 #include <assert.h>
4757 /* Override any gcc2 internal prototype to avoid an error.  */
4758 /* We use char because int might match the return type of a gcc2
4759     builtin and then its argument prototype would still apply.  */
4760 char $ac_func();
4761
4762 int main() {
4763
4764 /* The GNU C library defines this for functions which it implements
4765     to always fail with ENOSYS.  Some functions are actually named
4766     something starting with __ and the normal name is an alias.  */
4767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4768 choke me
4769 #else
4770 $ac_func();
4771 #endif
4772
4773 ; return 0; }
4774 EOF
4775 if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4776   rm -rf conftest*
4777   eval "ac_cv_func_$ac_func=yes"
4778 else
4779   echo "configure: failed program was:" >&5
4780   cat conftest.$ac_ext >&5
4781   rm -rf conftest*
4782   eval "ac_cv_func_$ac_func=no"
4783 fi
4784 rm -f conftest*
4785 fi
4786
4787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4788   echo "$ac_t""yes" 1>&6
4789     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4790   cat >> confdefs.h <<EOF
4791 #define $ac_tr_func 1
4792 EOF
4793  \
4794     ac_XPG2funcs=yes
4795 else
4796   echo "$ac_t""no" 1>&6
4797 ac_XPG2funcs=no
4798 fi
4799 done
4800
4801   
4802     LIBS="$ac_save_LIBS"
4803
4804     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4805 echo "configure:4806: checking for XPG2 wchar_t support" >&5
4806     if test x"$ac_has_iconv_h" = xyes &&
4807        test x"$ac_has_langinfo_h" = xyes &&
4808        test x"$ac_XPG2funcs" = xyes; then
4809       ac_XPG2_wchar_t=yes
4810     else
4811       ac_XPG2_wchar_t=no
4812     fi
4813     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4814   
4815             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4816 echo "configure:4817: checking for enabled wchar_t specializations" >&5
4817     if test x"$ac_isoC99_wchar_t" = xyes &&
4818        test x"$ac_XPG2_wchar_t" = xyes; then
4819       cat >> confdefs.h <<\EOF
4820 #define _GLIBCPP_USE_WCHAR_T 1
4821 EOF
4822
4823       echo "$ac_t"""yes"" 1>&6
4824     else
4825       echo "$ac_t"""no"" 1>&6
4826     fi
4827   else
4828         echo "configure: warning: wchar_t support disabled." 1>&2
4829   fi
4830
4831       os_include_dir="config/os/gnu-linux"
4832       cat >> confdefs.h <<\EOF
4833 #define HAVE_COPYSIGN 1
4834 EOF
4835
4836       cat >> confdefs.h <<\EOF
4837 #define HAVE_COPYSIGNF 1
4838 EOF
4839
4840       cat >> confdefs.h <<\EOF
4841 #define HAVE_FINITEF 1
4842 EOF
4843
4844       cat >> confdefs.h <<\EOF
4845 #define HAVE_FREXPF 1
4846 EOF
4847
4848       cat >> confdefs.h <<\EOF
4849 #define HAVE_HYPOTF 1
4850 EOF
4851
4852       cat >> confdefs.h <<\EOF
4853 #define HAVE_SINCOS 1
4854 EOF
4855
4856       cat >> confdefs.h <<\EOF
4857 #define HAVE_SINCOSF 1
4858 EOF
4859
4860       if test x"long_double_math_on_this_cpu" = x"yes"; then
4861         cat >> confdefs.h <<\EOF
4862 #define HAVE_HYPOTL 1
4863 EOF
4864
4865       fi
4866       ;;
4867     *-hpux*)
4868       # Check for available headers.
4869       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4870         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4871         fp.h locale.h float.h inttypes.h
4872 do
4873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4875 echo "configure:4876: checking for $ac_hdr" >&5
4876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4877   echo $ac_n "(cached) $ac_c" 1>&6
4878 else
4879   cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 #include <$ac_hdr>
4883 EOF
4884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4885 { (eval echo configure:4886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4887 if test -z "$ac_err"; then
4888   rm -rf conftest*
4889   eval "ac_cv_header_$ac_safe=yes"
4890 else
4891   echo "$ac_err" >&5
4892   echo "configure: failed program was:" >&5
4893   cat conftest.$ac_ext >&5
4894   rm -rf conftest*
4895   eval "ac_cv_header_$ac_safe=no"
4896 fi
4897 rm -f conftest*
4898 fi
4899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4900   echo "$ac_t""yes" 1>&6
4901     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4902   cat >> confdefs.h <<EOF
4903 #define $ac_tr_hdr 1
4904 EOF
4905  
4906 else
4907   echo "$ac_t""no" 1>&6
4908 fi
4909 done
4910
4911       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4912       
4913       
4914   # If we're not using GNU ld, then there's no point in even trying these
4915   # tests.  Check for that first.  We should have already tested for gld
4916   # by now (in libtool), but require it now just to be safe...
4917   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4918   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4919   
4920
4921   # The name set by libtool depends on the version of libtool.  Shame on us
4922   # for depending on an impl detail, but c'est la vie.  Older versions used
4923   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4924   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4925   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4926   # set (hence we're using an older libtool), then set it.
4927   if test x${with_gnu_ld+set} != xset; then
4928     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4929       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4930       with_gnu_ld=no
4931     else
4932       with_gnu_ld=$ac_cv_prog_gnu_ld
4933     fi
4934   fi
4935
4936   # Start by getting the version number.  I think the libtool test already
4937   # does some of this, but throws away the result.
4938   
4939   ldver=`$LD --version 2>/dev/null | head -1 | \
4940          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4941   
4942   glibcpp_gnu_ld_version=`echo $ldver | \
4943          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4944
4945   # Set --gc-sections.
4946   if test "$with_gnu_ld" = "notbroken"; then
4947     # GNU ld it is!  Joy and bunny rabbits!
4948
4949     # All these tests are for C++; save the language and the compiler flags.
4950     # Need to do this so that g++ won't try to link in libstdc++
4951     ac_test_CFLAGS="${CFLAGS+set}"
4952     ac_save_CFLAGS="$CFLAGS"
4953     CFLAGS='-x c++  -Wl,--gc-sections'
4954
4955     # Check for -Wl,--gc-sections
4956     # XXX This test is broken at the moment, as symbols required for
4957     # linking are now in libsupc++ (not built yet.....). In addition, 
4958     # this test has cored on solaris in the past. In addition,
4959     # --gc-sections doesn't really work at the moment (keeps on discarding
4960     # used sections, first .eh_frame and now some of the glibc sections for
4961     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4962     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4963 echo "configure:4964: checking for ld that supports -Wl,--gc-sections" >&5
4964     if test "$cross_compiling" = yes; then
4965   ac_sectionLDflags=yes
4966 else
4967   cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970
4971      int main(void) 
4972      {
4973        try { throw 1; }
4974        catch (...) { };
4975        return 0;
4976      }
4977     
4978 EOF
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4980 then
4981   ac_sectionLDflags=yes
4982 else
4983   echo "configure: failed program was:" >&5
4984   cat conftest.$ac_ext >&5
4985   rm -fr conftest*
4986   ac_sectionLDflags=no
4987 fi
4988 rm -fr conftest*
4989 fi
4990
4991     if test "$ac_test_CFLAGS" = set; then
4992       CFLAGS="$ac_save_CFLAGS"
4993     else
4994       # this is the suspicious part
4995       CFLAGS=''
4996     fi
4997     if test "$ac_sectionLDflags" = "yes"; then
4998       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4999     fi
5000     echo "$ac_t""$ac_sectionLDflags" 1>&6
5001   fi
5002
5003   # Set linker optimization flags.
5004   if test x"$with_gnu_ld" = x"yes" &&
5005      test x"$enable_debug" = x"no"; then
5006     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5007   fi
5008
5009   
5010   
5011
5012       
5013     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5014 echo "configure:5015: checking for main in -lm" >&5
5015 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017   echo $ac_n "(cached) $ac_c" 1>&6
5018 else
5019   ac_save_LIBS="$LIBS"
5020 LIBS="-lm  $LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024
5025 int main() {
5026 main()
5027 ; return 0; }
5028 EOF
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030   rm -rf conftest*
5031   eval "ac_cv_lib_$ac_lib_var=yes"
5032 else
5033   echo "configure: failed program was:" >&5
5034   cat conftest.$ac_ext >&5
5035   rm -rf conftest*
5036   eval "ac_cv_lib_$ac_lib_var=no"
5037 fi
5038 rm -f conftest*
5039 LIBS="$ac_save_LIBS"
5040
5041 fi
5042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5043   echo "$ac_t""yes" 1>&6
5044     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5045     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5046   cat >> confdefs.h <<EOF
5047 #define $ac_tr_lib 1
5048 EOF
5049
5050   LIBS="-lm $LIBS"
5051
5052 else
5053   echo "$ac_t""no" 1>&6
5054 fi
5055
5056   for ac_func in nan copysignf
5057 do
5058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5059 echo "configure:5060: checking for $ac_func" >&5
5060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5061   echo $ac_n "(cached) $ac_c" 1>&6
5062 else
5063   cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5066 /* System header to define __stub macros and hopefully few prototypes,
5067     which can conflict with char $ac_func(); below.  */
5068 #include <assert.h>
5069 /* Override any gcc2 internal prototype to avoid an error.  */
5070 /* We use char because int might match the return type of a gcc2
5071     builtin and then its argument prototype would still apply.  */
5072 char $ac_func();
5073
5074 int main() {
5075
5076 /* The GNU C library defines this for functions which it implements
5077     to always fail with ENOSYS.  Some functions are actually named
5078     something starting with __ and the normal name is an alias.  */
5079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5080 choke me
5081 #else
5082 $ac_func();
5083 #endif
5084
5085 ; return 0; }
5086 EOF
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088   rm -rf conftest*
5089   eval "ac_cv_func_$ac_func=yes"
5090 else
5091   echo "configure: failed program was:" >&5
5092   cat conftest.$ac_ext >&5
5093   rm -rf conftest*
5094   eval "ac_cv_func_$ac_func=no"
5095 fi
5096 rm -f conftest*
5097 fi
5098
5099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5100   echo "$ac_t""yes" 1>&6
5101     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5102   cat >> confdefs.h <<EOF
5103 #define $ac_tr_func 1
5104 EOF
5105  
5106 else
5107   echo "$ac_t""no" 1>&6
5108 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5109 fi
5110 done
5111
5112
5113
5114           USE_COMPLEX_LONG_DOUBLE=no
5115   if test x$ac_cv_func_copysignl = x"yes"; then
5116     USE_COMPLEX_LONG_DOUBLE=yes
5117     for ac_func in signbitl
5118 do
5119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_func" >&5
5121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5122   echo $ac_n "(cached) $ac_c" 1>&6
5123 else
5124   cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128     which can conflict with char $ac_func(); below.  */
5129 #include <assert.h>
5130 /* Override any gcc2 internal prototype to avoid an error.  */
5131 /* We use char because int might match the return type of a gcc2
5132     builtin and then its argument prototype would still apply.  */
5133 char $ac_func();
5134
5135 int main() {
5136
5137 /* The GNU C library defines this for functions which it implements
5138     to always fail with ENOSYS.  Some functions are actually named
5139     something starting with __ and the normal name is an alias.  */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 choke me
5142 #else
5143 $ac_func();
5144 #endif
5145
5146 ; return 0; }
5147 EOF
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149   rm -rf conftest*
5150   eval "ac_cv_func_$ac_func=yes"
5151 else
5152   echo "configure: failed program was:" >&5
5153   cat conftest.$ac_ext >&5
5154   rm -rf conftest*
5155   eval "ac_cv_func_$ac_func=no"
5156 fi
5157 rm -f conftest*
5158 fi
5159
5160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5161   echo "$ac_t""yes" 1>&6
5162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5163   cat >> confdefs.h <<EOF
5164 #define $ac_tr_func 1
5165 EOF
5166  
5167 else
5168   echo "$ac_t""no" 1>&6
5169 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5170 fi
5171 done
5172
5173
5174   fi
5175
5176   
5177
5178       
5179
5180       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5181 echo "configure:5182: checking for mbstate_t" >&5
5182   cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 #include <wchar.h>
5186 int main() {
5187 mbstate_t teststate;
5188 ; return 0; }
5189 EOF
5190 if { (eval echo configure:5191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191   rm -rf conftest*
5192   have_mbstate_t=yes
5193 else
5194   echo "configure: failed program was:" >&5
5195   cat conftest.$ac_ext >&5
5196   rm -rf conftest*
5197   have_mbstate_t=no
5198 fi
5199 rm -f conftest*
5200   echo "$ac_t""$have_mbstate_t" 1>&6
5201   if test x"$have_mbstate_t" = xyes; then
5202     cat >> confdefs.h <<\EOF
5203 #define HAVE_MBSTATE_T 1
5204 EOF
5205
5206   fi
5207
5208     for ac_hdr in wchar.h
5209 do
5210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5212 echo "configure:5213: checking for $ac_hdr" >&5
5213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5214   echo $ac_n "(cached) $ac_c" 1>&6
5215 else
5216   cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 #include <$ac_hdr>
5220 EOF
5221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5222 { (eval echo configure:5223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5224 if test -z "$ac_err"; then
5225   rm -rf conftest*
5226   eval "ac_cv_header_$ac_safe=yes"
5227 else
5228   echo "$ac_err" >&5
5229   echo "configure: failed program was:" >&5
5230   cat conftest.$ac_ext >&5
5231   rm -rf conftest*
5232   eval "ac_cv_header_$ac_safe=no"
5233 fi
5234 rm -f conftest*
5235 fi
5236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5237   echo "$ac_t""yes" 1>&6
5238     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5239   cat >> confdefs.h <<EOF
5240 #define $ac_tr_hdr 1
5241 EOF
5242  ac_has_wchar_h=yes
5243 else
5244   echo "$ac_t""no" 1>&6
5245 ac_has_wchar_h=no
5246 fi
5247 done
5248
5249   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5250 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5251 echo "configure:5252: checking for wctype.h" >&5
5252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5253   echo $ac_n "(cached) $ac_c" 1>&6
5254 else
5255   cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5258 #include <wctype.h>
5259 EOF
5260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5261 { (eval echo configure:5262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5263 if test -z "$ac_err"; then
5264   rm -rf conftest*
5265   eval "ac_cv_header_$ac_safe=yes"
5266 else
5267   echo "$ac_err" >&5
5268   echo "configure: failed program was:" >&5
5269   cat conftest.$ac_ext >&5
5270   rm -rf conftest*
5271   eval "ac_cv_header_$ac_safe=no"
5272 fi
5273 rm -f conftest*
5274 fi
5275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5276   echo "$ac_t""yes" 1>&6
5277   ac_has_wctype_h=yes
5278 else
5279   echo "$ac_t""no" 1>&6
5280 ac_has_wctype_h=no
5281 fi
5282
5283   
5284     if test x"$ac_has_wchar_h" = xyes &&
5285      test x"$ac_has_wctype_h" = xyes &&
5286      test x"$enable_c_mbchar" != xno; then
5287       
5288             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5289 echo "configure:5290: checking for WCHAR_MIN and WCHAR_MAX" >&5
5290     cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5293 #include <wchar.h>
5294 int main() {
5295 int i = WCHAR_MIN; int j = WCHAR_MAX;
5296 ; return 0; }
5297 EOF
5298 if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299   rm -rf conftest*
5300   has_wchar_minmax=yes
5301 else
5302   echo "configure: failed program was:" >&5
5303   cat conftest.$ac_ext >&5
5304   rm -rf conftest*
5305   has_wchar_minmax=no
5306 fi
5307 rm -f conftest*
5308     echo "$ac_t""$has_wchar_minmax" 1>&6
5309     
5310             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5311 echo "configure:5312: checking for WEOF" >&5
5312     cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315
5316       #include <wchar.h>
5317       #include <stddef.h>
5318 int main() {
5319 wint_t i = WEOF;
5320 ; return 0; }
5321 EOF
5322 if { (eval echo configure:5323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5323   rm -rf conftest*
5324   has_weof=yes
5325 else
5326   echo "configure: failed program was:" >&5
5327   cat conftest.$ac_ext >&5
5328   rm -rf conftest*
5329   has_weof=no
5330 fi
5331 rm -f conftest*
5332     echo "$ac_t""$has_weof" 1>&6
5333   
5334         ac_wfuncs=yes
5335     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5336 do
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340   echo $ac_n "(cached) $ac_c" 1>&6
5341 else
5342   cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346     which can conflict with char $ac_func(); below.  */
5347 #include <assert.h>
5348 /* Override any gcc2 internal prototype to avoid an error.  */
5349 /* We use char because int might match the return type of a gcc2
5350     builtin and then its argument prototype would still apply.  */
5351 char $ac_func();
5352
5353 int main() {
5354
5355 /* The GNU C library defines this for functions which it implements
5356     to always fail with ENOSYS.  Some functions are actually named
5357     something starting with __ and the normal name is an alias.  */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5359 choke me
5360 #else
5361 $ac_func();
5362 #endif
5363
5364 ; return 0; }
5365 EOF
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367   rm -rf conftest*
5368   eval "ac_cv_func_$ac_func=yes"
5369 else
5370   echo "configure: failed program was:" >&5
5371   cat conftest.$ac_ext >&5
5372   rm -rf conftest*
5373   eval "ac_cv_func_$ac_func=no"
5374 fi
5375 rm -f conftest*
5376 fi
5377
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379   echo "$ac_t""yes" 1>&6
5380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381   cat >> confdefs.h <<EOF
5382 #define $ac_tr_func 1
5383 EOF
5384  
5385 else
5386   echo "$ac_t""no" 1>&6
5387 \
5388     ac_wfuncs=no
5389 fi
5390 done
5391
5392   
5393         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5394     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5395     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5396     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5397     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5398     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5399 do
5400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5401 echo "configure:5402: checking for $ac_func" >&5
5402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5403   echo $ac_n "(cached) $ac_c" 1>&6
5404 else
5405   cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 /* System header to define __stub macros and hopefully few prototypes,
5409     which can conflict with char $ac_func(); below.  */
5410 #include <assert.h>
5411 /* Override any gcc2 internal prototype to avoid an error.  */
5412 /* We use char because int might match the return type of a gcc2
5413     builtin and then its argument prototype would still apply.  */
5414 char $ac_func();
5415
5416 int main() {
5417
5418 /* The GNU C library defines this for functions which it implements
5419     to always fail with ENOSYS.  Some functions are actually named
5420     something starting with __ and the normal name is an alias.  */
5421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5422 choke me
5423 #else
5424 $ac_func();
5425 #endif
5426
5427 ; return 0; }
5428 EOF
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430   rm -rf conftest*
5431   eval "ac_cv_func_$ac_func=yes"
5432 else
5433   echo "configure: failed program was:" >&5
5434   cat conftest.$ac_ext >&5
5435   rm -rf conftest*
5436   eval "ac_cv_func_$ac_func=no"
5437 fi
5438 rm -f conftest*
5439 fi
5440
5441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5442   echo "$ac_t""yes" 1>&6
5443     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5444   cat >> confdefs.h <<EOF
5445 #define $ac_tr_func 1
5446 EOF
5447  
5448 else
5449   echo "$ac_t""no" 1>&6
5450 \
5451     ac_wfuncs=no
5452 fi
5453 done
5454
5455
5456     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5457 echo "configure:5458: checking for ISO C99 wchar_t support" >&5
5458     if test x"$has_weof" = xyes &&
5459        test x"$has_wchar_minmax" = xyes &&
5460        test x"$ac_wfuncs" = xyes; then
5461       ac_isoC99_wchar_t=yes
5462     else
5463       ac_isoC99_wchar_t=no
5464     fi
5465     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5466   
5467             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5468 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5469 echo "configure:5470: checking for iconv.h" >&5
5470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5471   echo $ac_n "(cached) $ac_c" 1>&6
5472 else
5473   cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 #include <iconv.h>
5477 EOF
5478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5479 { (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5481 if test -z "$ac_err"; then
5482   rm -rf conftest*
5483   eval "ac_cv_header_$ac_safe=yes"
5484 else
5485   echo "$ac_err" >&5
5486   echo "configure: failed program was:" >&5
5487   cat conftest.$ac_ext >&5
5488   rm -rf conftest*
5489   eval "ac_cv_header_$ac_safe=no"
5490 fi
5491 rm -f conftest*
5492 fi
5493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5494   echo "$ac_t""yes" 1>&6
5495   ac_has_iconv_h=yes
5496 else
5497   echo "$ac_t""no" 1>&6
5498 ac_has_iconv_h=no
5499 fi
5500
5501     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5502 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5503 echo "configure:5504: checking for langinfo.h" >&5
5504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5505   echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507   cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 #include <langinfo.h>
5511 EOF
5512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5513 { (eval echo configure:5514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5515 if test -z "$ac_err"; then
5516   rm -rf conftest*
5517   eval "ac_cv_header_$ac_safe=yes"
5518 else
5519   echo "$ac_err" >&5
5520   echo "configure: failed program was:" >&5
5521   cat conftest.$ac_ext >&5
5522   rm -rf conftest*
5523   eval "ac_cv_header_$ac_safe=no"
5524 fi
5525 rm -f conftest*
5526 fi
5527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5528   echo "$ac_t""yes" 1>&6
5529   ac_has_langinfo_h=yes
5530 else
5531   echo "$ac_t""no" 1>&6
5532 ac_has_langinfo_h=no
5533 fi
5534
5535
5536         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5537 echo "configure:5538: checking for iconv in -liconv" >&5
5538 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5540   echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5542   ac_save_LIBS="$LIBS"
5543 LIBS="-liconv  $LIBS"
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 /* Override any gcc2 internal prototype to avoid an error.  */
5548 /* We use char because int might match the return type of a gcc2
5549     builtin and then its argument prototype would still apply.  */
5550 char iconv();
5551
5552 int main() {
5553 iconv()
5554 ; return 0; }
5555 EOF
5556 if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557   rm -rf conftest*
5558   eval "ac_cv_lib_$ac_lib_var=yes"
5559 else
5560   echo "configure: failed program was:" >&5
5561   cat conftest.$ac_ext >&5
5562   rm -rf conftest*
5563   eval "ac_cv_lib_$ac_lib_var=no"
5564 fi
5565 rm -f conftest*
5566 LIBS="$ac_save_LIBS"
5567
5568 fi
5569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5570   echo "$ac_t""yes" 1>&6
5571   libiconv="-liconv"
5572 else
5573   echo "$ac_t""no" 1>&6
5574 fi
5575
5576     ac_save_LIBS="$LIBS"
5577     LIBS="$LIBS $libiconv"
5578
5579     for ac_func in iconv_open iconv_close iconv nl_langinfo
5580 do
5581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_func" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5584   echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586   cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes,
5590     which can conflict with char $ac_func(); below.  */
5591 #include <assert.h>
5592 /* Override any gcc2 internal prototype to avoid an error.  */
5593 /* We use char because int might match the return type of a gcc2
5594     builtin and then its argument prototype would still apply.  */
5595 char $ac_func();
5596
5597 int main() {
5598
5599 /* The GNU C library defines this for functions which it implements
5600     to always fail with ENOSYS.  Some functions are actually named
5601     something starting with __ and the normal name is an alias.  */
5602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5603 choke me
5604 #else
5605 $ac_func();
5606 #endif
5607
5608 ; return 0; }
5609 EOF
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611   rm -rf conftest*
5612   eval "ac_cv_func_$ac_func=yes"
5613 else
5614   echo "configure: failed program was:" >&5
5615   cat conftest.$ac_ext >&5
5616   rm -rf conftest*
5617   eval "ac_cv_func_$ac_func=no"
5618 fi
5619 rm -f conftest*
5620 fi
5621
5622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5623   echo "$ac_t""yes" 1>&6
5624     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5625   cat >> confdefs.h <<EOF
5626 #define $ac_tr_func 1
5627 EOF
5628  \
5629     ac_XPG2funcs=yes
5630 else
5631   echo "$ac_t""no" 1>&6
5632 ac_XPG2funcs=no
5633 fi
5634 done
5635
5636   
5637     LIBS="$ac_save_LIBS"
5638
5639     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5640 echo "configure:5641: checking for XPG2 wchar_t support" >&5
5641     if test x"$ac_has_iconv_h" = xyes &&
5642        test x"$ac_has_langinfo_h" = xyes &&
5643        test x"$ac_XPG2funcs" = xyes; then
5644       ac_XPG2_wchar_t=yes
5645     else
5646       ac_XPG2_wchar_t=no
5647     fi
5648     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5649   
5650             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5651 echo "configure:5652: checking for enabled wchar_t specializations" >&5
5652     if test x"$ac_isoC99_wchar_t" = xyes &&
5653        test x"$ac_XPG2_wchar_t" = xyes; then
5654       cat >> confdefs.h <<\EOF
5655 #define _GLIBCPP_USE_WCHAR_T 1
5656 EOF
5657
5658       echo "$ac_t"""yes"" 1>&6
5659     else
5660       echo "$ac_t"""no"" 1>&6
5661     fi
5662   else
5663         echo "configure: warning: wchar_t support disabled." 1>&2
5664   fi
5665
5666       os_include_dir="config/os/hpux"
5667       cat >> confdefs.h <<\EOF
5668 #define HAVE_COPYSIGN 1
5669 EOF
5670
5671       cat >> confdefs.h <<\EOF
5672 #define HAVE_COPYSIGNF 1
5673 EOF
5674
5675       cat >> confdefs.h <<\EOF
5676 #define HAVE_FINITEF 1
5677 EOF
5678
5679       cat >> confdefs.h <<\EOF
5680 #define HAVE_FREXPF 1
5681 EOF
5682
5683       cat >> confdefs.h <<\EOF
5684 #define HAVE_HYPOT 1
5685 EOF
5686
5687       cat >> confdefs.h <<\EOF
5688 #define HAVE_SINCOS 1
5689 EOF
5690
5691       cat >> confdefs.h <<\EOF
5692 #define HAVE_SINCOSF 1
5693 EOF
5694
5695       ;;
5696     *-netbsd*)
5697       # Check for available headers.
5698       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5699         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5700         fp.h locale.h float.h inttypes.h
5701 do
5702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5704 echo "configure:5705: checking for $ac_hdr" >&5
5705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5706   echo $ac_n "(cached) $ac_c" 1>&6
5707 else
5708   cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5711 #include <$ac_hdr>
5712 EOF
5713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5714 { (eval echo configure:5715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5716 if test -z "$ac_err"; then
5717   rm -rf conftest*
5718   eval "ac_cv_header_$ac_safe=yes"
5719 else
5720   echo "$ac_err" >&5
5721   echo "configure: failed program was:" >&5
5722   cat conftest.$ac_ext >&5
5723   rm -rf conftest*
5724   eval "ac_cv_header_$ac_safe=no"
5725 fi
5726 rm -f conftest*
5727 fi
5728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5729   echo "$ac_t""yes" 1>&6
5730     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5731   cat >> confdefs.h <<EOF
5732 #define $ac_tr_hdr 1
5733 EOF
5734  
5735 else
5736   echo "$ac_t""no" 1>&6
5737 fi
5738 done
5739
5740       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5741        
5742       
5743   # If we're not using GNU ld, then there's no point in even trying these
5744   # tests.  Check for that first.  We should have already tested for gld
5745   # by now (in libtool), but require it now just to be safe...
5746   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5747   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5748   
5749
5750   # The name set by libtool depends on the version of libtool.  Shame on us
5751   # for depending on an impl detail, but c'est la vie.  Older versions used
5752   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5753   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5754   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5755   # set (hence we're using an older libtool), then set it.
5756   if test x${with_gnu_ld+set} != xset; then
5757     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5758       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5759       with_gnu_ld=no
5760     else
5761       with_gnu_ld=$ac_cv_prog_gnu_ld
5762     fi
5763   fi
5764
5765   # Start by getting the version number.  I think the libtool test already
5766   # does some of this, but throws away the result.
5767   
5768   ldver=`$LD --version 2>/dev/null | head -1 | \
5769          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5770   
5771   glibcpp_gnu_ld_version=`echo $ldver | \
5772          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5773
5774   # Set --gc-sections.
5775   if test "$with_gnu_ld" = "notbroken"; then
5776     # GNU ld it is!  Joy and bunny rabbits!
5777
5778     # All these tests are for C++; save the language and the compiler flags.
5779     # Need to do this so that g++ won't try to link in libstdc++
5780     ac_test_CFLAGS="${CFLAGS+set}"
5781     ac_save_CFLAGS="$CFLAGS"
5782     CFLAGS='-x c++  -Wl,--gc-sections'
5783
5784     # Check for -Wl,--gc-sections
5785     # XXX This test is broken at the moment, as symbols required for
5786     # linking are now in libsupc++ (not built yet.....). In addition, 
5787     # this test has cored on solaris in the past. In addition,
5788     # --gc-sections doesn't really work at the moment (keeps on discarding
5789     # used sections, first .eh_frame and now some of the glibc sections for
5790     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5791     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5792 echo "configure:5793: checking for ld that supports -Wl,--gc-sections" >&5
5793     if test "$cross_compiling" = yes; then
5794   ac_sectionLDflags=yes
5795 else
5796   cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799
5800      int main(void) 
5801      {
5802        try { throw 1; }
5803        catch (...) { };
5804        return 0;
5805      }
5806     
5807 EOF
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5809 then
5810   ac_sectionLDflags=yes
5811 else
5812   echo "configure: failed program was:" >&5
5813   cat conftest.$ac_ext >&5
5814   rm -fr conftest*
5815   ac_sectionLDflags=no
5816 fi
5817 rm -fr conftest*
5818 fi
5819
5820     if test "$ac_test_CFLAGS" = set; then
5821       CFLAGS="$ac_save_CFLAGS"
5822     else
5823       # this is the suspicious part
5824       CFLAGS=''
5825     fi
5826     if test "$ac_sectionLDflags" = "yes"; then
5827       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5828     fi
5829     echo "$ac_t""$ac_sectionLDflags" 1>&6
5830   fi
5831
5832   # Set linker optimization flags.
5833   if test x"$with_gnu_ld" = x"yes" &&
5834      test x"$enable_debug" = x"no"; then
5835     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5836   fi
5837
5838   
5839   
5840
5841       
5842     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5843 echo "configure:5844: checking for main in -lm" >&5
5844 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5846   echo $ac_n "(cached) $ac_c" 1>&6
5847 else
5848   ac_save_LIBS="$LIBS"
5849 LIBS="-lm  $LIBS"
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5853
5854 int main() {
5855 main()
5856 ; return 0; }
5857 EOF
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5859   rm -rf conftest*
5860   eval "ac_cv_lib_$ac_lib_var=yes"
5861 else
5862   echo "configure: failed program was:" >&5
5863   cat conftest.$ac_ext >&5
5864   rm -rf conftest*
5865   eval "ac_cv_lib_$ac_lib_var=no"
5866 fi
5867 rm -f conftest*
5868 LIBS="$ac_save_LIBS"
5869
5870 fi
5871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5872   echo "$ac_t""yes" 1>&6
5873     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5874     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5875   cat >> confdefs.h <<EOF
5876 #define $ac_tr_lib 1
5877 EOF
5878
5879   LIBS="-lm $LIBS"
5880
5881 else
5882   echo "$ac_t""no" 1>&6
5883 fi
5884
5885   for ac_func in nan copysignf
5886 do
5887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5888 echo "configure:5889: checking for $ac_func" >&5
5889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5890   echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5892   cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896     which can conflict with char $ac_func(); below.  */
5897 #include <assert.h>
5898 /* Override any gcc2 internal prototype to avoid an error.  */
5899 /* We use char because int might match the return type of a gcc2
5900     builtin and then its argument prototype would still apply.  */
5901 char $ac_func();
5902
5903 int main() {
5904
5905 /* The GNU C library defines this for functions which it implements
5906     to always fail with ENOSYS.  Some functions are actually named
5907     something starting with __ and the normal name is an alias.  */
5908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5909 choke me
5910 #else
5911 $ac_func();
5912 #endif
5913
5914 ; return 0; }
5915 EOF
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917   rm -rf conftest*
5918   eval "ac_cv_func_$ac_func=yes"
5919 else
5920   echo "configure: failed program was:" >&5
5921   cat conftest.$ac_ext >&5
5922   rm -rf conftest*
5923   eval "ac_cv_func_$ac_func=no"
5924 fi
5925 rm -f conftest*
5926 fi
5927
5928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5929   echo "$ac_t""yes" 1>&6
5930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5931   cat >> confdefs.h <<EOF
5932 #define $ac_tr_func 1
5933 EOF
5934  
5935 else
5936   echo "$ac_t""no" 1>&6
5937 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5938 fi
5939 done
5940
5941
5942
5943           USE_COMPLEX_LONG_DOUBLE=no
5944   if test x$ac_cv_func_copysignl = x"yes"; then
5945     USE_COMPLEX_LONG_DOUBLE=yes
5946     for ac_func in signbitl
5947 do
5948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5949 echo "configure:5950: checking for $ac_func" >&5
5950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5951   echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953   cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 /* System header to define __stub macros and hopefully few prototypes,
5957     which can conflict with char $ac_func(); below.  */
5958 #include <assert.h>
5959 /* Override any gcc2 internal prototype to avoid an error.  */
5960 /* We use char because int might match the return type of a gcc2
5961     builtin and then its argument prototype would still apply.  */
5962 char $ac_func();
5963
5964 int main() {
5965
5966 /* The GNU C library defines this for functions which it implements
5967     to always fail with ENOSYS.  Some functions are actually named
5968     something starting with __ and the normal name is an alias.  */
5969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 choke me
5971 #else
5972 $ac_func();
5973 #endif
5974
5975 ; return 0; }
5976 EOF
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978   rm -rf conftest*
5979   eval "ac_cv_func_$ac_func=yes"
5980 else
5981   echo "configure: failed program was:" >&5
5982   cat conftest.$ac_ext >&5
5983   rm -rf conftest*
5984   eval "ac_cv_func_$ac_func=no"
5985 fi
5986 rm -f conftest*
5987 fi
5988
5989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5990   echo "$ac_t""yes" 1>&6
5991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5992   cat >> confdefs.h <<EOF
5993 #define $ac_tr_func 1
5994 EOF
5995  
5996 else
5997   echo "$ac_t""no" 1>&6
5998 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5999 fi
6000 done
6001
6002
6003   fi
6004
6005   
6006
6007       
6008
6009       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6010 echo "configure:6011: checking for mbstate_t" >&5
6011   cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 #include <wchar.h>
6015 int main() {
6016 mbstate_t teststate;
6017 ; return 0; }
6018 EOF
6019 if { (eval echo configure:6020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6020   rm -rf conftest*
6021   have_mbstate_t=yes
6022 else
6023   echo "configure: failed program was:" >&5
6024   cat conftest.$ac_ext >&5
6025   rm -rf conftest*
6026   have_mbstate_t=no
6027 fi
6028 rm -f conftest*
6029   echo "$ac_t""$have_mbstate_t" 1>&6
6030   if test x"$have_mbstate_t" = xyes; then
6031     cat >> confdefs.h <<\EOF
6032 #define HAVE_MBSTATE_T 1
6033 EOF
6034
6035   fi
6036
6037     for ac_hdr in wchar.h
6038 do
6039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6041 echo "configure:6042: checking for $ac_hdr" >&5
6042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6043   echo $ac_n "(cached) $ac_c" 1>&6
6044 else
6045   cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 #include <$ac_hdr>
6049 EOF
6050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6051 { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6053 if test -z "$ac_err"; then
6054   rm -rf conftest*
6055   eval "ac_cv_header_$ac_safe=yes"
6056 else
6057   echo "$ac_err" >&5
6058   echo "configure: failed program was:" >&5
6059   cat conftest.$ac_ext >&5
6060   rm -rf conftest*
6061   eval "ac_cv_header_$ac_safe=no"
6062 fi
6063 rm -f conftest*
6064 fi
6065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6066   echo "$ac_t""yes" 1>&6
6067     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6068   cat >> confdefs.h <<EOF
6069 #define $ac_tr_hdr 1
6070 EOF
6071  ac_has_wchar_h=yes
6072 else
6073   echo "$ac_t""no" 1>&6
6074 ac_has_wchar_h=no
6075 fi
6076 done
6077
6078   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
6079 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
6080 echo "configure:6081: checking for wctype.h" >&5
6081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6082   echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084   cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6087 #include <wctype.h>
6088 EOF
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092 if test -z "$ac_err"; then
6093   rm -rf conftest*
6094   eval "ac_cv_header_$ac_safe=yes"
6095 else
6096   echo "$ac_err" >&5
6097   echo "configure: failed program was:" >&5
6098   cat conftest.$ac_ext >&5
6099   rm -rf conftest*
6100   eval "ac_cv_header_$ac_safe=no"
6101 fi
6102 rm -f conftest*
6103 fi
6104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6105   echo "$ac_t""yes" 1>&6
6106   ac_has_wctype_h=yes
6107 else
6108   echo "$ac_t""no" 1>&6
6109 ac_has_wctype_h=no
6110 fi
6111
6112   
6113     if test x"$ac_has_wchar_h" = xyes &&
6114      test x"$ac_has_wctype_h" = xyes &&
6115      test x"$enable_c_mbchar" != xno; then
6116       
6117             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6118 echo "configure:6119: checking for WCHAR_MIN and WCHAR_MAX" >&5
6119     cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 #include <wchar.h>
6123 int main() {
6124 int i = WCHAR_MIN; int j = WCHAR_MAX;
6125 ; return 0; }
6126 EOF
6127 if { (eval echo configure:6128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6128   rm -rf conftest*
6129   has_wchar_minmax=yes
6130 else
6131   echo "configure: failed program was:" >&5
6132   cat conftest.$ac_ext >&5
6133   rm -rf conftest*
6134   has_wchar_minmax=no
6135 fi
6136 rm -f conftest*
6137     echo "$ac_t""$has_wchar_minmax" 1>&6
6138     
6139             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6140 echo "configure:6141: checking for WEOF" >&5
6141     cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144
6145       #include <wchar.h>
6146       #include <stddef.h>
6147 int main() {
6148 wint_t i = WEOF;
6149 ; return 0; }
6150 EOF
6151 if { (eval echo configure:6152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6152   rm -rf conftest*
6153   has_weof=yes
6154 else
6155   echo "configure: failed program was:" >&5
6156   cat conftest.$ac_ext >&5
6157   rm -rf conftest*
6158   has_weof=no
6159 fi
6160 rm -f conftest*
6161     echo "$ac_t""$has_weof" 1>&6
6162   
6163         ac_wfuncs=yes
6164     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6165 do
6166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6167 echo "configure:6168: checking for $ac_func" >&5
6168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6169   echo $ac_n "(cached) $ac_c" 1>&6
6170 else
6171   cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6174 /* System header to define __stub macros and hopefully few prototypes,
6175     which can conflict with char $ac_func(); below.  */
6176 #include <assert.h>
6177 /* Override any gcc2 internal prototype to avoid an error.  */
6178 /* We use char because int might match the return type of a gcc2
6179     builtin and then its argument prototype would still apply.  */
6180 char $ac_func();
6181
6182 int main() {
6183
6184 /* The GNU C library defines this for functions which it implements
6185     to always fail with ENOSYS.  Some functions are actually named
6186     something starting with __ and the normal name is an alias.  */
6187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6188 choke me
6189 #else
6190 $ac_func();
6191 #endif
6192
6193 ; return 0; }
6194 EOF
6195 if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196   rm -rf conftest*
6197   eval "ac_cv_func_$ac_func=yes"
6198 else
6199   echo "configure: failed program was:" >&5
6200   cat conftest.$ac_ext >&5
6201   rm -rf conftest*
6202   eval "ac_cv_func_$ac_func=no"
6203 fi
6204 rm -f conftest*
6205 fi
6206
6207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6208   echo "$ac_t""yes" 1>&6
6209     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6210   cat >> confdefs.h <<EOF
6211 #define $ac_tr_func 1
6212 EOF
6213  
6214 else
6215   echo "$ac_t""no" 1>&6
6216 \
6217     ac_wfuncs=no
6218 fi
6219 done
6220
6221   
6222         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6223     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6224     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6225     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6226     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6227     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6228 do
6229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_func" >&5
6231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6232   echo $ac_n "(cached) $ac_c" 1>&6
6233 else
6234   cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 /* System header to define __stub macros and hopefully few prototypes,
6238     which can conflict with char $ac_func(); below.  */
6239 #include <assert.h>
6240 /* Override any gcc2 internal prototype to avoid an error.  */
6241 /* We use char because int might match the return type of a gcc2
6242     builtin and then its argument prototype would still apply.  */
6243 char $ac_func();
6244
6245 int main() {
6246
6247 /* The GNU C library defines this for functions which it implements
6248     to always fail with ENOSYS.  Some functions are actually named
6249     something starting with __ and the normal name is an alias.  */
6250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6251 choke me
6252 #else
6253 $ac_func();
6254 #endif
6255
6256 ; return 0; }
6257 EOF
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6259   rm -rf conftest*
6260   eval "ac_cv_func_$ac_func=yes"
6261 else
6262   echo "configure: failed program was:" >&5
6263   cat conftest.$ac_ext >&5
6264   rm -rf conftest*
6265   eval "ac_cv_func_$ac_func=no"
6266 fi
6267 rm -f conftest*
6268 fi
6269
6270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6271   echo "$ac_t""yes" 1>&6
6272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6273   cat >> confdefs.h <<EOF
6274 #define $ac_tr_func 1
6275 EOF
6276  
6277 else
6278   echo "$ac_t""no" 1>&6
6279 \
6280     ac_wfuncs=no
6281 fi
6282 done
6283
6284
6285     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6286 echo "configure:6287: checking for ISO C99 wchar_t support" >&5
6287     if test x"$has_weof" = xyes &&
6288        test x"$has_wchar_minmax" = xyes &&
6289        test x"$ac_wfuncs" = xyes; then
6290       ac_isoC99_wchar_t=yes
6291     else
6292       ac_isoC99_wchar_t=no
6293     fi
6294     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6295   
6296             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6297 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6298 echo "configure:6299: checking for iconv.h" >&5
6299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6300   echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302   cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 #include <iconv.h>
6306 EOF
6307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6308 { (eval echo configure:6309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6310 if test -z "$ac_err"; then
6311   rm -rf conftest*
6312   eval "ac_cv_header_$ac_safe=yes"
6313 else
6314   echo "$ac_err" >&5
6315   echo "configure: failed program was:" >&5
6316   cat conftest.$ac_ext >&5
6317   rm -rf conftest*
6318   eval "ac_cv_header_$ac_safe=no"
6319 fi
6320 rm -f conftest*
6321 fi
6322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6323   echo "$ac_t""yes" 1>&6
6324   ac_has_iconv_h=yes
6325 else
6326   echo "$ac_t""no" 1>&6
6327 ac_has_iconv_h=no
6328 fi
6329
6330     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6331 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6332 echo "configure:6333: checking for langinfo.h" >&5
6333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6334   echo $ac_n "(cached) $ac_c" 1>&6
6335 else
6336   cat > conftest.$ac_ext <<EOF
6337 #line 6338 "configure"
6338 #include "confdefs.h"
6339 #include <langinfo.h>
6340 EOF
6341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6342 { (eval echo configure:6343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6344 if test -z "$ac_err"; then
6345   rm -rf conftest*
6346   eval "ac_cv_header_$ac_safe=yes"
6347 else
6348   echo "$ac_err" >&5
6349   echo "configure: failed program was:" >&5
6350   cat conftest.$ac_ext >&5
6351   rm -rf conftest*
6352   eval "ac_cv_header_$ac_safe=no"
6353 fi
6354 rm -f conftest*
6355 fi
6356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6357   echo "$ac_t""yes" 1>&6
6358   ac_has_langinfo_h=yes
6359 else
6360   echo "$ac_t""no" 1>&6
6361 ac_has_langinfo_h=no
6362 fi
6363
6364
6365         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6366 echo "configure:6367: checking for iconv in -liconv" >&5
6367 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6369   echo $ac_n "(cached) $ac_c" 1>&6
6370 else
6371   ac_save_LIBS="$LIBS"
6372 LIBS="-liconv  $LIBS"
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 /* Override any gcc2 internal prototype to avoid an error.  */
6377 /* We use char because int might match the return type of a gcc2
6378     builtin and then its argument prototype would still apply.  */
6379 char iconv();
6380
6381 int main() {
6382 iconv()
6383 ; return 0; }
6384 EOF
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386   rm -rf conftest*
6387   eval "ac_cv_lib_$ac_lib_var=yes"
6388 else
6389   echo "configure: failed program was:" >&5
6390   cat conftest.$ac_ext >&5
6391   rm -rf conftest*
6392   eval "ac_cv_lib_$ac_lib_var=no"
6393 fi
6394 rm -f conftest*
6395 LIBS="$ac_save_LIBS"
6396
6397 fi
6398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6399   echo "$ac_t""yes" 1>&6
6400   libiconv="-liconv"
6401 else
6402   echo "$ac_t""no" 1>&6
6403 fi
6404
6405     ac_save_LIBS="$LIBS"
6406     LIBS="$LIBS $libiconv"
6407
6408     for ac_func in iconv_open iconv_close iconv nl_langinfo
6409 do
6410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6411 echo "configure:6412: checking for $ac_func" >&5
6412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6413   echo $ac_n "(cached) $ac_c" 1>&6
6414 else
6415   cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419     which can conflict with char $ac_func(); below.  */
6420 #include <assert.h>
6421 /* Override any gcc2 internal prototype to avoid an error.  */
6422 /* We use char because int might match the return type of a gcc2
6423     builtin and then its argument prototype would still apply.  */
6424 char $ac_func();
6425
6426 int main() {
6427
6428 /* The GNU C library defines this for functions which it implements
6429     to always fail with ENOSYS.  Some functions are actually named
6430     something starting with __ and the normal name is an alias.  */
6431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6432 choke me
6433 #else
6434 $ac_func();
6435 #endif
6436
6437 ; return 0; }
6438 EOF
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6440   rm -rf conftest*
6441   eval "ac_cv_func_$ac_func=yes"
6442 else
6443   echo "configure: failed program was:" >&5
6444   cat conftest.$ac_ext >&5
6445   rm -rf conftest*
6446   eval "ac_cv_func_$ac_func=no"
6447 fi
6448 rm -f conftest*
6449 fi
6450
6451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6452   echo "$ac_t""yes" 1>&6
6453     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6454   cat >> confdefs.h <<EOF
6455 #define $ac_tr_func 1
6456 EOF
6457  \
6458     ac_XPG2funcs=yes
6459 else
6460   echo "$ac_t""no" 1>&6
6461 ac_XPG2funcs=no
6462 fi
6463 done
6464
6465   
6466     LIBS="$ac_save_LIBS"
6467
6468     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6469 echo "configure:6470: checking for XPG2 wchar_t support" >&5
6470     if test x"$ac_has_iconv_h" = xyes &&
6471        test x"$ac_has_langinfo_h" = xyes &&
6472        test x"$ac_XPG2funcs" = xyes; then
6473       ac_XPG2_wchar_t=yes
6474     else
6475       ac_XPG2_wchar_t=no
6476     fi
6477     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6478   
6479             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6480 echo "configure:6481: checking for enabled wchar_t specializations" >&5
6481     if test x"$ac_isoC99_wchar_t" = xyes &&
6482        test x"$ac_XPG2_wchar_t" = xyes; then
6483       cat >> confdefs.h <<\EOF
6484 #define _GLIBCPP_USE_WCHAR_T 1
6485 EOF
6486
6487       echo "$ac_t"""yes"" 1>&6
6488     else
6489       echo "$ac_t"""no"" 1>&6
6490     fi
6491   else
6492         echo "configure: warning: wchar_t support disabled." 1>&2
6493   fi
6494
6495       os_include_dir="config/os/bsd/netbsd"
6496       cat >> confdefs.h <<\EOF
6497 #define HAVE_COPYSIGN 1
6498 EOF
6499
6500       cat >> confdefs.h <<\EOF
6501 #define HAVE_COPYSIGNF 1
6502 EOF
6503
6504       cat >> confdefs.h <<\EOF
6505 #define HAVE_FINITEF 1
6506 EOF
6507
6508       cat >> confdefs.h <<\EOF
6509 #define HAVE_FREXPF 1
6510 EOF
6511
6512       cat >> confdefs.h <<\EOF
6513 #define HAVE_HYPOTF 1
6514 EOF
6515
6516       ;;
6517     *)
6518       os_include_dir="config/os/newlib"
6519       cat >> confdefs.h <<\EOF
6520 #define HAVE_HYPOT 1
6521 EOF
6522
6523       ;;
6524   esac
6525
6526   # GLIBCPP_CHECK_STDLIB_SUPPORT
6527   cat >> confdefs.h <<\EOF
6528 #define HAVE_STRTOF 1
6529 EOF
6530         
6531   cat >> confdefs.h <<\EOF
6532 #define HAVE_STRTOLD 1
6533 EOF
6534         
6535   # AC_FUNC_MMAP
6536   cat >> confdefs.h <<\EOF
6537 #define HAVE_MMAP 1
6538 EOF
6539
6540
6541   cat >> confdefs.h <<\EOF
6542 #define HAVE_ACOSF 1
6543 EOF
6544
6545   cat >> confdefs.h <<\EOF
6546 #define HAVE_ASINF 1
6547 EOF
6548
6549   cat >> confdefs.h <<\EOF
6550 #define HAVE_ATAN2F 1
6551 EOF
6552
6553   cat >> confdefs.h <<\EOF
6554 #define HAVE_ATANF 1
6555 EOF
6556
6557   cat >> confdefs.h <<\EOF
6558 #define HAVE_CEILF 1
6559 EOF
6560
6561   cat >> confdefs.h <<\EOF
6562 #define HAVE_COPYSIGN 1
6563 EOF
6564
6565   cat >> confdefs.h <<\EOF
6566 #define HAVE_COPYSIGNF 1
6567 EOF
6568
6569   cat >> confdefs.h <<\EOF
6570 #define HAVE_COSF 1
6571 EOF
6572
6573   cat >> confdefs.h <<\EOF
6574 #define HAVE_COSHF 1
6575 EOF
6576
6577   cat >> confdefs.h <<\EOF
6578 #define HAVE_EXPF 1
6579 EOF
6580
6581   cat >> confdefs.h <<\EOF
6582 #define HAVE_FABSF 1
6583 EOF
6584
6585   cat >> confdefs.h <<\EOF
6586 #define HAVE_FINITE 1
6587 EOF
6588
6589   cat >> confdefs.h <<\EOF
6590 #define HAVE_FINITEF 1
6591 EOF
6592
6593   cat >> confdefs.h <<\EOF
6594 #define HAVE_FLOORF 1
6595 EOF
6596
6597   cat >> confdefs.h <<\EOF
6598 #define HAVE_FMODF 1
6599 EOF
6600
6601   cat >> confdefs.h <<\EOF
6602 #define HAVE_FREXPF 1
6603 EOF
6604
6605   cat >> confdefs.h <<\EOF
6606 #define HAVE_ISINF 1
6607 EOF
6608
6609   cat >> confdefs.h <<\EOF
6610 #define HAVE_ISINFF 1
6611 EOF
6612
6613   cat >> confdefs.h <<\EOF
6614 #define HAVE_ISNAN 1
6615 EOF
6616
6617   cat >> confdefs.h <<\EOF
6618 #define HAVE_ISNANF 1
6619 EOF
6620
6621   cat >> confdefs.h <<\EOF
6622 #define HAVE_LDEXPF 1
6623 EOF
6624
6625   cat >> confdefs.h <<\EOF
6626 #define HAVE_LOG10F 1
6627 EOF
6628
6629   cat >> confdefs.h <<\EOF
6630 #define HAVE_LOGF 1
6631 EOF
6632
6633   cat >> confdefs.h <<\EOF
6634 #define HAVE_MODFF 1
6635 EOF
6636
6637   cat >> confdefs.h <<\EOF
6638 #define HAVE_POWF 1
6639 EOF
6640
6641   cat >> confdefs.h <<\EOF
6642 #define HAVE_SINF 1
6643 EOF
6644
6645   cat >> confdefs.h <<\EOF
6646 #define HAVE_SINHF 1
6647 EOF
6648
6649   cat >> confdefs.h <<\EOF
6650 #define HAVE_SQRTF 1
6651 EOF
6652
6653   cat >> confdefs.h <<\EOF
6654 #define HAVE_TANF 1
6655 EOF
6656
6657   cat >> confdefs.h <<\EOF
6658 #define HAVE_TANHF 1
6659 EOF
6660
6661
6662   # At some point, we should differentiate between architectures
6663   # like x86, which have long double versions, and alpha/powerpc/etc.,
6664   # which don't. For the time being, punt.
6665   if test x"long_double_math_on_this_cpu" = x"yes"; then
6666     cat >> confdefs.h <<\EOF
6667 #define HAVE_ACOSL 1
6668 EOF
6669
6670     cat >> confdefs.h <<\EOF
6671 #define HAVE_ASINL 1
6672 EOF
6673
6674     cat >> confdefs.h <<\EOF
6675 #define HAVE_ATAN2L 1
6676 EOF
6677
6678     cat >> confdefs.h <<\EOF
6679 #define HAVE_ATANL 1
6680 EOF
6681
6682     cat >> confdefs.h <<\EOF
6683 #define HAVE_CEILL 1
6684 EOF
6685
6686     cat >> confdefs.h <<\EOF
6687 #define HAVE_COPYSIGNL 1
6688 EOF
6689
6690     cat >> confdefs.h <<\EOF
6691 #define HAVE_COSL 1
6692 EOF
6693
6694     cat >> confdefs.h <<\EOF
6695 #define HAVE_COSHL 1
6696 EOF
6697
6698     cat >> confdefs.h <<\EOF
6699 #define HAVE_EXPL 1
6700 EOF
6701
6702     cat >> confdefs.h <<\EOF
6703 #define HAVE_FABSL 1
6704 EOF
6705
6706     cat >> confdefs.h <<\EOF
6707 #define HAVE_FINITEL 1
6708 EOF
6709
6710     cat >> confdefs.h <<\EOF
6711 #define HAVE_FLOORL 1
6712 EOF
6713
6714     cat >> confdefs.h <<\EOF
6715 #define HAVE_FMODL 1
6716 EOF
6717
6718     cat >> confdefs.h <<\EOF
6719 #define HAVE_FREXPL 1
6720 EOF
6721
6722     cat >> confdefs.h <<\EOF
6723 #define HAVE_ISINFL 1
6724 EOF
6725
6726     cat >> confdefs.h <<\EOF
6727 #define HAVE_ISNANL 1
6728 EOF
6729
6730     cat >> confdefs.h <<\EOF
6731 #define HAVE_LDEXPL 1
6732 EOF
6733
6734     cat >> confdefs.h <<\EOF
6735 #define HAVE_LOG10L 1
6736 EOF
6737
6738     cat >> confdefs.h <<\EOF
6739 #define HAVE_LOGL 1
6740 EOF
6741
6742     cat >> confdefs.h <<\EOF
6743 #define HAVE_MODFL 1
6744 EOF
6745
6746     cat >> confdefs.h <<\EOF
6747 #define HAVE_POWL 1
6748 EOF
6749
6750     cat >> confdefs.h <<\EOF
6751 #define HAVE_SINCOSL 1
6752 EOF
6753
6754     cat >> confdefs.h <<\EOF
6755 #define HAVE_SINL 1
6756 EOF
6757
6758     cat >> confdefs.h <<\EOF
6759 #define HAVE_SINHL 1
6760 EOF
6761
6762     cat >> confdefs.h <<\EOF
6763 #define HAVE_SQRTL 1
6764 EOF
6765
6766     cat >> confdefs.h <<\EOF
6767 #define HAVE_TANL 1
6768 EOF
6769
6770     cat >> confdefs.h <<\EOF
6771 #define HAVE_TANHL 1
6772 EOF
6773
6774   fi
6775 else
6776
6777   # We are being configured natively. We can do more elaborate tests
6778   # that include AC_TRY_COMPILE now, as the linker is assumed to be
6779   # working.
6780   GLIBCPP_IS_CROSS_COMPILING=0
6781   CANADIAN=no
6782
6783   # Check for available headers.
6784   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
6785   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
6786 do
6787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6789 echo "configure:6790: checking for $ac_hdr" >&5
6790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6791   echo $ac_n "(cached) $ac_c" 1>&6
6792 else
6793   cat > conftest.$ac_ext <<EOF
6794 #line 6795 "configure"
6795 #include "confdefs.h"
6796 #include <$ac_hdr>
6797 EOF
6798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6799 { (eval echo configure:6800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6801 if test -z "$ac_err"; then
6802   rm -rf conftest*
6803   eval "ac_cv_header_$ac_safe=yes"
6804 else
6805   echo "$ac_err" >&5
6806   echo "configure: failed program was:" >&5
6807   cat conftest.$ac_ext >&5
6808   rm -rf conftest*
6809   eval "ac_cv_header_$ac_safe=no"
6810 fi
6811 rm -f conftest*
6812 fi
6813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6814   echo "$ac_t""yes" 1>&6
6815     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6816   cat >> confdefs.h <<EOF
6817 #define $ac_tr_hdr 1
6818 EOF
6819  
6820 else
6821   echo "$ac_t""no" 1>&6
6822 fi
6823 done
6824
6825
6826   
6827   # All these tests are for C++; save the language and the compiler flags.
6828   # The CXXFLAGS thing is suspicious, but based on similar bits previously
6829   # found in GLIBCPP_CONFIGURE.
6830   
6831   ac_ext=C
6832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6833 ac_cpp='$CXXCPP $CPPFLAGS'
6834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6836 cross_compiling=$ac_cv_prog_cxx_cross
6837
6838   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6839   ac_save_CXXFLAGS="$CXXFLAGS"
6840
6841   # Check for maintainer-mode bits.
6842   if test x"$USE_MAINTAINER_MODE" = xno; then
6843     WERROR=''
6844   else
6845     WERROR='-Werror'
6846   fi
6847
6848   # Check for -ffunction-sections -fdata-sections
6849   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
6850 echo "configure:6851: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
6851   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
6852   cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855
6856 int main() {
6857 int foo;
6858   
6859 ; return 0; }
6860 EOF
6861 if { (eval echo configure:6862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6862   rm -rf conftest*
6863   ac_fdsections=yes
6864 else
6865   echo "configure: failed program was:" >&5
6866   cat conftest.$ac_ext >&5
6867   rm -rf conftest*
6868   ac_fdsections=no
6869 fi
6870 rm -f conftest*
6871   if test "$ac_test_CXXFLAGS" = set; then
6872     CXXFLAGS="$ac_save_CXXFLAGS"
6873   else
6874     # this is the suspicious part
6875     CXXFLAGS=''
6876   fi
6877   if test x"$ac_fdsections" = x"yes" &&
6878      test x"$enable_debug" = x"no"; then
6879     SECTION_FLAGS='-ffunction-sections -fdata-sections'
6880   fi
6881   echo "$ac_t""$ac_fdsections" 1>&6
6882
6883   ac_ext=c
6884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6888 cross_compiling=$ac_cv_prog_cc_cross
6889
6890   
6891   
6892
6893   
6894   # If we're not using GNU ld, then there's no point in even trying these
6895   # tests.  Check for that first.  We should have already tested for gld
6896   # by now (in libtool), but require it now just to be safe...
6897   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6898   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6899   
6900
6901   # The name set by libtool depends on the version of libtool.  Shame on us
6902   # for depending on an impl detail, but c'est la vie.  Older versions used
6903   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6904   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6905   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6906   # set (hence we're using an older libtool), then set it.
6907   if test x${with_gnu_ld+set} != xset; then
6908     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6909       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6910       with_gnu_ld=no
6911     else
6912       with_gnu_ld=$ac_cv_prog_gnu_ld
6913     fi
6914   fi
6915
6916   # Start by getting the version number.  I think the libtool test already
6917   # does some of this, but throws away the result.
6918   
6919   ldver=`$LD --version 2>/dev/null | head -1 | \
6920          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6921   
6922   glibcpp_gnu_ld_version=`echo $ldver | \
6923          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6924
6925   # Set --gc-sections.
6926   if test "$with_gnu_ld" = "notbroken"; then
6927     # GNU ld it is!  Joy and bunny rabbits!
6928
6929     # All these tests are for C++; save the language and the compiler flags.
6930     # Need to do this so that g++ won't try to link in libstdc++
6931     ac_test_CFLAGS="${CFLAGS+set}"
6932     ac_save_CFLAGS="$CFLAGS"
6933     CFLAGS='-x c++  -Wl,--gc-sections'
6934
6935     # Check for -Wl,--gc-sections
6936     # XXX This test is broken at the moment, as symbols required for
6937     # linking are now in libsupc++ (not built yet.....). In addition, 
6938     # this test has cored on solaris in the past. In addition,
6939     # --gc-sections doesn't really work at the moment (keeps on discarding
6940     # used sections, first .eh_frame and now some of the glibc sections for
6941     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6942     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6943 echo "configure:6944: checking for ld that supports -Wl,--gc-sections" >&5
6944     if test "$cross_compiling" = yes; then
6945   ac_sectionLDflags=yes
6946 else
6947   cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950
6951      int main(void) 
6952      {
6953        try { throw 1; }
6954        catch (...) { };
6955        return 0;
6956      }
6957     
6958 EOF
6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6960 then
6961   ac_sectionLDflags=yes
6962 else
6963   echo "configure: failed program was:" >&5
6964   cat conftest.$ac_ext >&5
6965   rm -fr conftest*
6966   ac_sectionLDflags=no
6967 fi
6968 rm -fr conftest*
6969 fi
6970
6971     if test "$ac_test_CFLAGS" = set; then
6972       CFLAGS="$ac_save_CFLAGS"
6973     else
6974       # this is the suspicious part
6975       CFLAGS=''
6976     fi
6977     if test "$ac_sectionLDflags" = "yes"; then
6978       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6979     fi
6980     echo "$ac_t""$ac_sectionLDflags" 1>&6
6981   fi
6982
6983   # Set linker optimization flags.
6984   if test x"$with_gnu_ld" = x"yes" &&
6985      test x"$enable_debug" = x"no"; then
6986     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6987   fi
6988
6989   
6990   
6991
6992   
6993       
6994   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6995 echo "configure:6996: checking for __builtin_abs declaration" >&5
6996   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6997     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6998   echo $ac_n "(cached) $ac_c" 1>&6
6999 else
7000   
7001       
7002       ac_ext=C
7003 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7004 ac_cpp='$CXXCPP $CPPFLAGS'
7005 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7006 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7007 cross_compiling=$ac_cv_prog_cxx_cross
7008
7009       cat > conftest.$ac_ext <<EOF
7010 #line 7011 "configure"
7011 #include "confdefs.h"
7012 #include <math.h>
7013 int main() {
7014  __builtin_abs(0);
7015 ; return 0; }
7016 EOF
7017 if { (eval echo configure:7018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7018   rm -rf conftest*
7019   glibcpp_cv_func___builtin_abs_use=yes
7020 else
7021   echo "configure: failed program was:" >&5
7022   cat conftest.$ac_ext >&5
7023   rm -rf conftest*
7024   glibcpp_cv_func___builtin_abs_use=no
7025 fi
7026 rm -f conftest*
7027       ac_ext=c
7028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7029 ac_cpp='$CPP $CPPFLAGS'
7030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7032 cross_compiling=$ac_cv_prog_cc_cross
7033
7034     
7035 fi
7036
7037   fi
7038   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
7039   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
7040     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
7041 echo "configure:7042: checking for __builtin_abs linkage" >&5
7042     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
7043       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
7044   echo $ac_n "(cached) $ac_c" 1>&6
7045 else
7046   
7047         cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 #include <math.h>
7051 int main() {
7052  __builtin_abs(0);
7053 ; return 0; }
7054 EOF
7055 if { (eval echo configure:7056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7056   rm -rf conftest*
7057   glibcpp_cv_func___builtin_abs_link=yes
7058 else
7059   echo "configure: failed program was:" >&5
7060   cat conftest.$ac_ext >&5
7061   rm -rf conftest*
7062   glibcpp_cv_func___builtin_abs_link=no
7063 fi
7064 rm -f conftest*
7065       
7066 fi
7067
7068     fi
7069     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
7070     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
7071       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7072       cat >> confdefs.h <<EOF
7073 #define ${ac_tr_func} 1
7074 EOF
7075
7076     fi
7077   fi
7078
7079   
7080   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
7081 echo "configure:7082: checking for __builtin_fabsf declaration" >&5
7082   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
7083     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
7084   echo $ac_n "(cached) $ac_c" 1>&6
7085 else
7086   
7087       
7088       ac_ext=C
7089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7090 ac_cpp='$CXXCPP $CPPFLAGS'
7091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7093 cross_compiling=$ac_cv_prog_cxx_cross
7094
7095       cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7098 #include <math.h>
7099 int main() {
7100  __builtin_fabsf(0);
7101 ; return 0; }
7102 EOF
7103 if { (eval echo configure:7104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7104   rm -rf conftest*
7105   glibcpp_cv_func___builtin_fabsf_use=yes
7106 else
7107   echo "configure: failed program was:" >&5
7108   cat conftest.$ac_ext >&5
7109   rm -rf conftest*
7110   glibcpp_cv_func___builtin_fabsf_use=no
7111 fi
7112 rm -f conftest*
7113       ac_ext=c
7114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7118 cross_compiling=$ac_cv_prog_cc_cross
7119
7120     
7121 fi
7122
7123   fi
7124   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
7125   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
7126     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
7127 echo "configure:7128: checking for __builtin_fabsf linkage" >&5
7128     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
7129       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
7130   echo $ac_n "(cached) $ac_c" 1>&6
7131 else
7132   
7133         cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7136 #include <math.h>
7137 int main() {
7138  __builtin_fabsf(0);
7139 ; return 0; }
7140 EOF
7141 if { (eval echo configure:7142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7142   rm -rf conftest*
7143   glibcpp_cv_func___builtin_fabsf_link=yes
7144 else
7145   echo "configure: failed program was:" >&5
7146   cat conftest.$ac_ext >&5
7147   rm -rf conftest*
7148   glibcpp_cv_func___builtin_fabsf_link=no
7149 fi
7150 rm -f conftest*
7151       
7152 fi
7153
7154     fi
7155     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7156     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7157       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7158       cat >> confdefs.h <<EOF
7159 #define ${ac_tr_func} 1
7160 EOF
7161
7162     fi
7163   fi
7164
7165   
7166   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7167 echo "configure:7168: checking for __builtin_fabs declaration" >&5
7168   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7169     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7170   echo $ac_n "(cached) $ac_c" 1>&6
7171 else
7172   
7173       
7174       ac_ext=C
7175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7176 ac_cpp='$CXXCPP $CPPFLAGS'
7177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7179 cross_compiling=$ac_cv_prog_cxx_cross
7180
7181       cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 #include <math.h>
7185 int main() {
7186  __builtin_fabs(0);
7187 ; return 0; }
7188 EOF
7189 if { (eval echo configure:7190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7190   rm -rf conftest*
7191   glibcpp_cv_func___builtin_fabs_use=yes
7192 else
7193   echo "configure: failed program was:" >&5
7194   cat conftest.$ac_ext >&5
7195   rm -rf conftest*
7196   glibcpp_cv_func___builtin_fabs_use=no
7197 fi
7198 rm -f conftest*
7199       ac_ext=c
7200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7201 ac_cpp='$CPP $CPPFLAGS'
7202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7204 cross_compiling=$ac_cv_prog_cc_cross
7205
7206     
7207 fi
7208
7209   fi
7210   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
7211   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
7212     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
7213 echo "configure:7214: checking for __builtin_fabs linkage" >&5
7214     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
7215       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
7216   echo $ac_n "(cached) $ac_c" 1>&6
7217 else
7218   
7219         cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 #include <math.h>
7223 int main() {
7224  __builtin_fabs(0);
7225 ; return 0; }
7226 EOF
7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7228   rm -rf conftest*
7229   glibcpp_cv_func___builtin_fabs_link=yes
7230 else
7231   echo "configure: failed program was:" >&5
7232   cat conftest.$ac_ext >&5
7233   rm -rf conftest*
7234   glibcpp_cv_func___builtin_fabs_link=no
7235 fi
7236 rm -f conftest*
7237       
7238 fi
7239
7240     fi
7241     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
7242     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
7243       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7244       cat >> confdefs.h <<EOF
7245 #define ${ac_tr_func} 1
7246 EOF
7247
7248     fi
7249   fi
7250
7251   
7252   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
7253 echo "configure:7254: checking for __builtin_fabsl declaration" >&5
7254   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
7255     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
7256   echo $ac_n "(cached) $ac_c" 1>&6
7257 else
7258   
7259       
7260       ac_ext=C
7261 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7262 ac_cpp='$CXXCPP $CPPFLAGS'
7263 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7264 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7265 cross_compiling=$ac_cv_prog_cxx_cross
7266
7267       cat > conftest.$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 #include <math.h>
7271 int main() {
7272  __builtin_fabsl(0);
7273 ; return 0; }
7274 EOF
7275 if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7276   rm -rf conftest*
7277   glibcpp_cv_func___builtin_fabsl_use=yes
7278 else
7279   echo "configure: failed program was:" >&5
7280   cat conftest.$ac_ext >&5
7281   rm -rf conftest*
7282   glibcpp_cv_func___builtin_fabsl_use=no
7283 fi
7284 rm -f conftest*
7285       ac_ext=c
7286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7287 ac_cpp='$CPP $CPPFLAGS'
7288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7290 cross_compiling=$ac_cv_prog_cc_cross
7291
7292     
7293 fi
7294
7295   fi
7296   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
7297   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
7298     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
7299 echo "configure:7300: checking for __builtin_fabsl linkage" >&5
7300     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
7301       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
7302   echo $ac_n "(cached) $ac_c" 1>&6
7303 else
7304   
7305         cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 #include <math.h>
7309 int main() {
7310  __builtin_fabsl(0);
7311 ; return 0; }
7312 EOF
7313 if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7314   rm -rf conftest*
7315   glibcpp_cv_func___builtin_fabsl_link=yes
7316 else
7317   echo "configure: failed program was:" >&5
7318   cat conftest.$ac_ext >&5
7319   rm -rf conftest*
7320   glibcpp_cv_func___builtin_fabsl_link=no
7321 fi
7322 rm -f conftest*
7323       
7324 fi
7325
7326     fi
7327     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
7328     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
7329       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7330       cat >> confdefs.h <<EOF
7331 #define ${ac_tr_func} 1
7332 EOF
7333
7334     fi
7335   fi
7336
7337   
7338   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
7339 echo "configure:7340: checking for __builtin_labs declaration" >&5
7340   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
7341     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
7342   echo $ac_n "(cached) $ac_c" 1>&6
7343 else
7344   
7345       
7346       ac_ext=C
7347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7348 ac_cpp='$CXXCPP $CPPFLAGS'
7349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7351 cross_compiling=$ac_cv_prog_cxx_cross
7352
7353       cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7356 #include <math.h>
7357 int main() {
7358  __builtin_labs(0);
7359 ; return 0; }
7360 EOF
7361 if { (eval echo configure:7362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7362   rm -rf conftest*
7363   glibcpp_cv_func___builtin_labs_use=yes
7364 else
7365   echo "configure: failed program was:" >&5
7366   cat conftest.$ac_ext >&5
7367   rm -rf conftest*
7368   glibcpp_cv_func___builtin_labs_use=no
7369 fi
7370 rm -f conftest*
7371       ac_ext=c
7372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7373 ac_cpp='$CPP $CPPFLAGS'
7374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7376 cross_compiling=$ac_cv_prog_cc_cross
7377
7378     
7379 fi
7380
7381   fi
7382   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
7383   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
7384     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
7385 echo "configure:7386: checking for __builtin_labs linkage" >&5
7386     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
7387       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
7388   echo $ac_n "(cached) $ac_c" 1>&6
7389 else
7390   
7391         cat > conftest.$ac_ext <<EOF
7392 #line 7393 "configure"
7393 #include "confdefs.h"
7394 #include <math.h>
7395 int main() {
7396  __builtin_labs(0);
7397 ; return 0; }
7398 EOF
7399 if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7400   rm -rf conftest*
7401   glibcpp_cv_func___builtin_labs_link=yes
7402 else
7403   echo "configure: failed program was:" >&5
7404   cat conftest.$ac_ext >&5
7405   rm -rf conftest*
7406   glibcpp_cv_func___builtin_labs_link=no
7407 fi
7408 rm -f conftest*
7409       
7410 fi
7411
7412     fi
7413     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
7414     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
7415       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7416       cat >> confdefs.h <<EOF
7417 #define ${ac_tr_func} 1
7418 EOF
7419
7420     fi
7421   fi
7422
7423
7424   
7425   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
7426 echo "configure:7427: checking for __builtin_sqrtf declaration" >&5
7427   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
7428     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
7429   echo $ac_n "(cached) $ac_c" 1>&6
7430 else
7431   
7432       
7433       ac_ext=C
7434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7435 ac_cpp='$CXXCPP $CPPFLAGS'
7436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7438 cross_compiling=$ac_cv_prog_cxx_cross
7439
7440       cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 #include <math.h>
7444 int main() {
7445  __builtin_sqrtf(0);
7446 ; return 0; }
7447 EOF
7448 if { (eval echo configure:7449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7449   rm -rf conftest*
7450   glibcpp_cv_func___builtin_sqrtf_use=yes
7451 else
7452   echo "configure: failed program was:" >&5
7453   cat conftest.$ac_ext >&5
7454   rm -rf conftest*
7455   glibcpp_cv_func___builtin_sqrtf_use=no
7456 fi
7457 rm -f conftest*
7458       ac_ext=c
7459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7460 ac_cpp='$CPP $CPPFLAGS'
7461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7463 cross_compiling=$ac_cv_prog_cc_cross
7464
7465     
7466 fi
7467
7468   fi
7469   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
7470   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
7471     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
7472 echo "configure:7473: checking for __builtin_sqrtf linkage" >&5
7473     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
7474       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
7475   echo $ac_n "(cached) $ac_c" 1>&6
7476 else
7477   
7478         cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 #include <math.h>
7482 int main() {
7483  __builtin_sqrtf(0);
7484 ; return 0; }
7485 EOF
7486 if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7487   rm -rf conftest*
7488   glibcpp_cv_func___builtin_sqrtf_link=yes
7489 else
7490   echo "configure: failed program was:" >&5
7491   cat conftest.$ac_ext >&5
7492   rm -rf conftest*
7493   glibcpp_cv_func___builtin_sqrtf_link=no
7494 fi
7495 rm -f conftest*
7496       
7497 fi
7498
7499     fi
7500     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
7501     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
7502       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7503       cat >> confdefs.h <<EOF
7504 #define ${ac_tr_func} 1
7505 EOF
7506
7507     fi
7508   fi
7509
7510   
7511   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
7512 echo "configure:7513: checking for __builtin_sqrt declaration" >&5
7513   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
7514     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
7515   echo $ac_n "(cached) $ac_c" 1>&6
7516 else
7517   
7518       
7519       ac_ext=C
7520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7521 ac_cpp='$CXXCPP $CPPFLAGS'
7522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7524 cross_compiling=$ac_cv_prog_cxx_cross
7525
7526       cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 #include <math.h>
7530 int main() {
7531  __builtin_sqrt(0);
7532 ; return 0; }
7533 EOF
7534 if { (eval echo configure:7535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7535   rm -rf conftest*
7536   glibcpp_cv_func___builtin_sqrt_use=yes
7537 else
7538   echo "configure: failed program was:" >&5
7539   cat conftest.$ac_ext >&5
7540   rm -rf conftest*
7541   glibcpp_cv_func___builtin_sqrt_use=no
7542 fi
7543 rm -f conftest*
7544       ac_ext=c
7545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7546 ac_cpp='$CPP $CPPFLAGS'
7547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7549 cross_compiling=$ac_cv_prog_cc_cross
7550
7551     
7552 fi
7553
7554   fi
7555   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
7556   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
7557     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
7558 echo "configure:7559: checking for __builtin_sqrt linkage" >&5
7559     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
7560       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
7561   echo $ac_n "(cached) $ac_c" 1>&6
7562 else
7563   
7564         cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7567 #include <math.h>
7568 int main() {
7569  __builtin_sqrt(0);
7570 ; return 0; }
7571 EOF
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7573   rm -rf conftest*
7574   glibcpp_cv_func___builtin_sqrt_link=yes
7575 else
7576   echo "configure: failed program was:" >&5
7577   cat conftest.$ac_ext >&5
7578   rm -rf conftest*
7579   glibcpp_cv_func___builtin_sqrt_link=no
7580 fi
7581 rm -f conftest*
7582       
7583 fi
7584
7585     fi
7586     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
7587     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
7588       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7589       cat >> confdefs.h <<EOF
7590 #define ${ac_tr_func} 1
7591 EOF
7592
7593     fi
7594   fi
7595
7596   
7597   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
7598 echo "configure:7599: checking for __builtin_sqrtl declaration" >&5
7599   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
7600     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
7601   echo $ac_n "(cached) $ac_c" 1>&6
7602 else
7603   
7604       
7605       ac_ext=C
7606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7607 ac_cpp='$CXXCPP $CPPFLAGS'
7608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7610 cross_compiling=$ac_cv_prog_cxx_cross
7611
7612       cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 #include <math.h>
7616 int main() {
7617  __builtin_sqrtl(0);
7618 ; return 0; }
7619 EOF
7620 if { (eval echo configure:7621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7621   rm -rf conftest*
7622   glibcpp_cv_func___builtin_sqrtl_use=yes
7623 else
7624   echo "configure: failed program was:" >&5
7625   cat conftest.$ac_ext >&5
7626   rm -rf conftest*
7627   glibcpp_cv_func___builtin_sqrtl_use=no
7628 fi
7629 rm -f conftest*
7630       ac_ext=c
7631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7632 ac_cpp='$CPP $CPPFLAGS'
7633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7635 cross_compiling=$ac_cv_prog_cc_cross
7636
7637     
7638 fi
7639
7640   fi
7641   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
7642   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
7643     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
7644 echo "configure:7645: checking for __builtin_sqrtl linkage" >&5
7645     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
7646       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
7647   echo $ac_n "(cached) $ac_c" 1>&6
7648 else
7649   
7650         cat > conftest.$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7653 #include <math.h>
7654 int main() {
7655  __builtin_sqrtl(0);
7656 ; return 0; }
7657 EOF
7658 if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7659   rm -rf conftest*
7660   glibcpp_cv_func___builtin_sqrtl_link=yes
7661 else
7662   echo "configure: failed program was:" >&5
7663   cat conftest.$ac_ext >&5
7664   rm -rf conftest*
7665   glibcpp_cv_func___builtin_sqrtl_link=no
7666 fi
7667 rm -f conftest*
7668       
7669 fi
7670
7671     fi
7672     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
7673     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
7674       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7675       cat >> confdefs.h <<EOF
7676 #define ${ac_tr_func} 1
7677 EOF
7678
7679     fi
7680   fi
7681
7682
7683   
7684   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
7685 echo "configure:7686: checking for __builtin_sinf declaration" >&5
7686   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
7687     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
7688   echo $ac_n "(cached) $ac_c" 1>&6
7689 else
7690   
7691       
7692       ac_ext=C
7693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7694 ac_cpp='$CXXCPP $CPPFLAGS'
7695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7697 cross_compiling=$ac_cv_prog_cxx_cross
7698
7699       cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 #include <math.h>
7703 int main() {
7704  __builtin_sinf(0);
7705 ; return 0; }
7706 EOF
7707 if { (eval echo configure:7708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7708   rm -rf conftest*
7709   glibcpp_cv_func___builtin_sinf_use=yes
7710 else
7711   echo "configure: failed program was:" >&5
7712   cat conftest.$ac_ext >&5
7713   rm -rf conftest*
7714   glibcpp_cv_func___builtin_sinf_use=no
7715 fi
7716 rm -f conftest*
7717       ac_ext=c
7718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7719 ac_cpp='$CPP $CPPFLAGS'
7720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7722 cross_compiling=$ac_cv_prog_cc_cross
7723
7724     
7725 fi
7726
7727   fi
7728   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
7729   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
7730     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
7731 echo "configure:7732: checking for __builtin_sinf linkage" >&5
7732     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
7733       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
7734   echo $ac_n "(cached) $ac_c" 1>&6
7735 else
7736   
7737         cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 #include <math.h>
7741 int main() {
7742  __builtin_sinf(0);
7743 ; return 0; }
7744 EOF
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7746   rm -rf conftest*
7747   glibcpp_cv_func___builtin_sinf_link=yes
7748 else
7749   echo "configure: failed program was:" >&5
7750   cat conftest.$ac_ext >&5
7751   rm -rf conftest*
7752   glibcpp_cv_func___builtin_sinf_link=no
7753 fi
7754 rm -f conftest*
7755       
7756 fi
7757
7758     fi
7759     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
7760     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
7761       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7762       cat >> confdefs.h <<EOF
7763 #define ${ac_tr_func} 1
7764 EOF
7765
7766     fi
7767   fi
7768
7769   
7770   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
7771 echo "configure:7772: checking for __builtin_sin declaration" >&5
7772   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
7773     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
7774   echo $ac_n "(cached) $ac_c" 1>&6
7775 else
7776   
7777       
7778       ac_ext=C
7779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7780 ac_cpp='$CXXCPP $CPPFLAGS'
7781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7783 cross_compiling=$ac_cv_prog_cxx_cross
7784
7785       cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7788 #include <math.h>
7789 int main() {
7790  __builtin_sin(0);
7791 ; return 0; }
7792 EOF
7793 if { (eval echo configure:7794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7794   rm -rf conftest*
7795   glibcpp_cv_func___builtin_sin_use=yes
7796 else
7797   echo "configure: failed program was:" >&5
7798   cat conftest.$ac_ext >&5
7799   rm -rf conftest*
7800   glibcpp_cv_func___builtin_sin_use=no
7801 fi
7802 rm -f conftest*
7803       ac_ext=c
7804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7805 ac_cpp='$CPP $CPPFLAGS'
7806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7808 cross_compiling=$ac_cv_prog_cc_cross
7809
7810     
7811 fi
7812
7813   fi
7814   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
7815   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
7816     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
7817 echo "configure:7818: checking for __builtin_sin linkage" >&5
7818     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
7819       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
7820   echo $ac_n "(cached) $ac_c" 1>&6
7821 else
7822   
7823         cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 #include <math.h>
7827 int main() {
7828  __builtin_sin(0);
7829 ; return 0; }
7830 EOF
7831 if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7832   rm -rf conftest*
7833   glibcpp_cv_func___builtin_sin_link=yes
7834 else
7835   echo "configure: failed program was:" >&5
7836   cat conftest.$ac_ext >&5
7837   rm -rf conftest*
7838   glibcpp_cv_func___builtin_sin_link=no
7839 fi
7840 rm -f conftest*
7841       
7842 fi
7843
7844     fi
7845     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
7846     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
7847       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7848       cat >> confdefs.h <<EOF
7849 #define ${ac_tr_func} 1
7850 EOF
7851
7852     fi
7853   fi
7854
7855   
7856   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
7857 echo "configure:7858: checking for __builtin_sinl declaration" >&5
7858   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
7859     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
7860   echo $ac_n "(cached) $ac_c" 1>&6
7861 else
7862   
7863       
7864       ac_ext=C
7865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7866 ac_cpp='$CXXCPP $CPPFLAGS'
7867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7869 cross_compiling=$ac_cv_prog_cxx_cross
7870
7871       cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <math.h>
7875 int main() {
7876  __builtin_sinl(0);
7877 ; return 0; }
7878 EOF
7879 if { (eval echo configure:7880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7880   rm -rf conftest*
7881   glibcpp_cv_func___builtin_sinl_use=yes
7882 else
7883   echo "configure: failed program was:" >&5
7884   cat conftest.$ac_ext >&5
7885   rm -rf conftest*
7886   glibcpp_cv_func___builtin_sinl_use=no
7887 fi
7888 rm -f conftest*
7889       ac_ext=c
7890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7894 cross_compiling=$ac_cv_prog_cc_cross
7895
7896     
7897 fi
7898
7899   fi
7900   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
7901   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
7902     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
7903 echo "configure:7904: checking for __builtin_sinl linkage" >&5
7904     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
7905       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
7906   echo $ac_n "(cached) $ac_c" 1>&6
7907 else
7908   
7909         cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 #include <math.h>
7913 int main() {
7914  __builtin_sinl(0);
7915 ; return 0; }
7916 EOF
7917 if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7918   rm -rf conftest*
7919   glibcpp_cv_func___builtin_sinl_link=yes
7920 else
7921   echo "configure: failed program was:" >&5
7922   cat conftest.$ac_ext >&5
7923   rm -rf conftest*
7924   glibcpp_cv_func___builtin_sinl_link=no
7925 fi
7926 rm -f conftest*
7927       
7928 fi
7929
7930     fi
7931     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
7932     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
7933       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7934       cat >> confdefs.h <<EOF
7935 #define ${ac_tr_func} 1
7936 EOF
7937
7938     fi
7939   fi
7940
7941
7942   
7943   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
7944 echo "configure:7945: checking for __builtin_cosf declaration" >&5
7945   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
7946     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
7947   echo $ac_n "(cached) $ac_c" 1>&6
7948 else
7949   
7950       
7951       ac_ext=C
7952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7953 ac_cpp='$CXXCPP $CPPFLAGS'
7954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7956 cross_compiling=$ac_cv_prog_cxx_cross
7957
7958       cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 #include <math.h>
7962 int main() {
7963  __builtin_cosf(0);
7964 ; return 0; }
7965 EOF
7966 if { (eval echo configure:7967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7967   rm -rf conftest*
7968   glibcpp_cv_func___builtin_cosf_use=yes
7969 else
7970   echo "configure: failed program was:" >&5
7971   cat conftest.$ac_ext >&5
7972   rm -rf conftest*
7973   glibcpp_cv_func___builtin_cosf_use=no
7974 fi
7975 rm -f conftest*
7976       ac_ext=c
7977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7978 ac_cpp='$CPP $CPPFLAGS'
7979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7981 cross_compiling=$ac_cv_prog_cc_cross
7982
7983     
7984 fi
7985
7986   fi
7987   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7988   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7989     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7990 echo "configure:7991: checking for __builtin_cosf linkage" >&5
7991     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7992       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7993   echo $ac_n "(cached) $ac_c" 1>&6
7994 else
7995   
7996         cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 #include <math.h>
8000 int main() {
8001  __builtin_cosf(0);
8002 ; return 0; }
8003 EOF
8004 if { (eval echo configure:8005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8005   rm -rf conftest*
8006   glibcpp_cv_func___builtin_cosf_link=yes
8007 else
8008   echo "configure: failed program was:" >&5
8009   cat conftest.$ac_ext >&5
8010   rm -rf conftest*
8011   glibcpp_cv_func___builtin_cosf_link=no
8012 fi
8013 rm -f conftest*
8014       
8015 fi
8016
8017     fi
8018     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
8019     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
8020       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8021       cat >> confdefs.h <<EOF
8022 #define ${ac_tr_func} 1
8023 EOF
8024
8025     fi
8026   fi
8027
8028   
8029   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
8030 echo "configure:8031: checking for __builtin_cos declaration" >&5
8031   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
8032     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
8033   echo $ac_n "(cached) $ac_c" 1>&6
8034 else
8035   
8036       
8037       ac_ext=C
8038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8039 ac_cpp='$CXXCPP $CPPFLAGS'
8040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8042 cross_compiling=$ac_cv_prog_cxx_cross
8043
8044       cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 #include <math.h>
8048 int main() {
8049  __builtin_cos(0);
8050 ; return 0; }
8051 EOF
8052 if { (eval echo configure:8053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8053   rm -rf conftest*
8054   glibcpp_cv_func___builtin_cos_use=yes
8055 else
8056   echo "configure: failed program was:" >&5
8057   cat conftest.$ac_ext >&5
8058   rm -rf conftest*
8059   glibcpp_cv_func___builtin_cos_use=no
8060 fi
8061 rm -f conftest*
8062       ac_ext=c
8063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8067 cross_compiling=$ac_cv_prog_cc_cross
8068
8069     
8070 fi
8071
8072   fi
8073   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
8074   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
8075     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
8076 echo "configure:8077: checking for __builtin_cos linkage" >&5
8077     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
8078       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
8079   echo $ac_n "(cached) $ac_c" 1>&6
8080 else
8081   
8082         cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 #include <math.h>
8086 int main() {
8087  __builtin_cos(0);
8088 ; return 0; }
8089 EOF
8090 if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091   rm -rf conftest*
8092   glibcpp_cv_func___builtin_cos_link=yes
8093 else
8094   echo "configure: failed program was:" >&5
8095   cat conftest.$ac_ext >&5
8096   rm -rf conftest*
8097   glibcpp_cv_func___builtin_cos_link=no
8098 fi
8099 rm -f conftest*
8100       
8101 fi
8102
8103     fi
8104     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
8105     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
8106       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8107       cat >> confdefs.h <<EOF
8108 #define ${ac_tr_func} 1
8109 EOF
8110
8111     fi
8112   fi
8113
8114   
8115   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
8116 echo "configure:8117: checking for __builtin_cosl declaration" >&5
8117   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
8118     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
8119   echo $ac_n "(cached) $ac_c" 1>&6
8120 else
8121   
8122       
8123       ac_ext=C
8124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8125 ac_cpp='$CXXCPP $CPPFLAGS'
8126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8128 cross_compiling=$ac_cv_prog_cxx_cross
8129
8130       cat > conftest.$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8133 #include <math.h>
8134 int main() {
8135  __builtin_cosl(0);
8136 ; return 0; }
8137 EOF
8138 if { (eval echo configure:8139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8139   rm -rf conftest*
8140   glibcpp_cv_func___builtin_cosl_use=yes
8141 else
8142   echo "configure: failed program was:" >&5
8143   cat conftest.$ac_ext >&5
8144   rm -rf conftest*
8145   glibcpp_cv_func___builtin_cosl_use=no
8146 fi
8147 rm -f conftest*
8148       ac_ext=c
8149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8150 ac_cpp='$CPP $CPPFLAGS'
8151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8153 cross_compiling=$ac_cv_prog_cc_cross
8154
8155     
8156 fi
8157
8158   fi
8159   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8160   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8161     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8162 echo "configure:8163: checking for __builtin_cosl linkage" >&5
8163     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8164       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8165   echo $ac_n "(cached) $ac_c" 1>&6
8166 else
8167   
8168         cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8171 #include <math.h>
8172 int main() {
8173  __builtin_cosl(0);
8174 ; return 0; }
8175 EOF
8176 if { (eval echo configure:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8177   rm -rf conftest*
8178   glibcpp_cv_func___builtin_cosl_link=yes
8179 else
8180   echo "configure: failed program was:" >&5
8181   cat conftest.$ac_ext >&5
8182   rm -rf conftest*
8183   glibcpp_cv_func___builtin_cosl_link=no
8184 fi
8185 rm -f conftest*
8186       
8187 fi
8188
8189     fi
8190     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
8191     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
8192       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8193       cat >> confdefs.h <<EOF
8194 #define ${ac_tr_func} 1
8195 EOF
8196
8197     fi
8198   fi
8199
8200
8201               dummyvar=no
8202   if test x$dummyvar = x"yes"; then
8203     cat >> confdefs.h <<\EOF
8204 #define HAVE___BUILTIN_ABS 1
8205 EOF
8206
8207     cat >> confdefs.h <<\EOF
8208 #define HAVE___BUILTIN_LABS 1
8209 EOF
8210
8211     cat >> confdefs.h <<\EOF
8212 #define HAVE___BUILTIN_COS 1
8213 EOF
8214
8215     cat >> confdefs.h <<\EOF
8216 #define HAVE___BUILTIN_COSF 1
8217 EOF
8218
8219     cat >> confdefs.h <<\EOF
8220 #define HAVE___BUILTIN_COSL 1
8221 EOF
8222
8223     cat >> confdefs.h <<\EOF
8224 #define HAVE___BUILTIN_FABS 1
8225 EOF
8226
8227     cat >> confdefs.h <<\EOF
8228 #define HAVE___BUILTIN_FABSF 1
8229 EOF
8230
8231     cat >> confdefs.h <<\EOF
8232 #define HAVE___BUILTIN_FABSL 1
8233 EOF
8234
8235     cat >> confdefs.h <<\EOF
8236 #define HAVE___BUILTIN_SIN 1
8237 EOF
8238
8239     cat >> confdefs.h <<\EOF
8240 #define HAVE___BUILTIN_SINF 1
8241 EOF
8242
8243     cat >> confdefs.h <<\EOF
8244 #define HAVE___BUILTIN_SINL 1
8245 EOF
8246
8247     cat >> confdefs.h <<\EOF
8248 #define HAVE___BUILTIN_SQRT 1
8249 EOF
8250
8251     cat >> confdefs.h <<\EOF
8252 #define HAVE___BUILTIN_SQRTF 1
8253 EOF
8254
8255     cat >> confdefs.h <<\EOF
8256 #define HAVE___BUILTIN_SQRTL 1
8257 EOF
8258
8259   fi
8260
8261   
8262   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8263   ac_save_CXXFLAGS="$CXXFLAGS"
8264   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
8265
8266     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
8267 echo "configure:8268: checking for sin in -lm" >&5
8268 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
8269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8270   echo $ac_n "(cached) $ac_c" 1>&6
8271 else
8272   ac_save_LIBS="$LIBS"
8273 LIBS="-lm  $LIBS"
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 /* Override any gcc2 internal prototype to avoid an error.  */
8278 /* We use char because int might match the return type of a gcc2
8279     builtin and then its argument prototype would still apply.  */
8280 char sin();
8281
8282 int main() {
8283 sin()
8284 ; return 0; }
8285 EOF
8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8287   rm -rf conftest*
8288   eval "ac_cv_lib_$ac_lib_var=yes"
8289 else
8290   echo "configure: failed program was:" >&5
8291   cat conftest.$ac_ext >&5
8292   rm -rf conftest*
8293   eval "ac_cv_lib_$ac_lib_var=no"
8294 fi
8295 rm -f conftest*
8296 LIBS="$ac_save_LIBS"
8297
8298 fi
8299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8300   echo "$ac_t""yes" 1>&6
8301   libm="-lm"
8302 else
8303   echo "$ac_t""no" 1>&6
8304 fi
8305
8306   ac_save_LIBS="$LIBS"
8307   LIBS="$LIBS $libm"
8308
8309     
8310   
8311   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
8312 echo "configure:8313: checking for isinf declaration" >&5
8313   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
8314     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
8315   echo $ac_n "(cached) $ac_c" 1>&6
8316 else
8317   
8318       
8319       ac_ext=C
8320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8321 ac_cpp='$CXXCPP $CPPFLAGS'
8322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8324 cross_compiling=$ac_cv_prog_cxx_cross
8325
8326       cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8329 #include <math.h>
8330                       #ifdef HAVE_IEEEFP_H
8331                       #include <ieeefp.h>
8332                       #endif
8333                      
8334 int main() {
8335  isinf(0);
8336 ; return 0; }
8337 EOF
8338 if { (eval echo configure:8339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8339   rm -rf conftest*
8340   glibcpp_cv_func_isinf_use=yes
8341 else
8342   echo "configure: failed program was:" >&5
8343   cat conftest.$ac_ext >&5
8344   rm -rf conftest*
8345   glibcpp_cv_func_isinf_use=no
8346 fi
8347 rm -f conftest*
8348       ac_ext=c
8349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8350 ac_cpp='$CPP $CPPFLAGS'
8351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8353 cross_compiling=$ac_cv_prog_cc_cross
8354
8355     
8356 fi
8357
8358   fi
8359   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
8360
8361   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
8362     for ac_func in isinf
8363 do
8364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8365 echo "configure:8366: checking for $ac_func" >&5
8366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8367   echo $ac_n "(cached) $ac_c" 1>&6
8368 else
8369   cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* System header to define __stub macros and hopefully few prototypes,
8373     which can conflict with char $ac_func(); below.  */
8374 #include <assert.h>
8375 /* Override any gcc2 internal prototype to avoid an error.  */
8376 /* We use char because int might match the return type of a gcc2
8377     builtin and then its argument prototype would still apply.  */
8378 char $ac_func();
8379
8380 int main() {
8381
8382 /* The GNU C library defines this for functions which it implements
8383     to always fail with ENOSYS.  Some functions are actually named
8384     something starting with __ and the normal name is an alias.  */
8385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8386 choke me
8387 #else
8388 $ac_func();
8389 #endif
8390
8391 ; return 0; }
8392 EOF
8393 if { (eval echo configure:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8394   rm -rf conftest*
8395   eval "ac_cv_func_$ac_func=yes"
8396 else
8397   echo "configure: failed program was:" >&5
8398   cat conftest.$ac_ext >&5
8399   rm -rf conftest*
8400   eval "ac_cv_func_$ac_func=no"
8401 fi
8402 rm -f conftest*
8403 fi
8404
8405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8406   echo "$ac_t""yes" 1>&6
8407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8408   cat >> confdefs.h <<EOF
8409 #define $ac_tr_func 1
8410 EOF
8411  
8412 else
8413   echo "$ac_t""no" 1>&6
8414 fi
8415 done
8416     
8417   else
8418     
8419   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
8420 echo "configure:8421: checking for _isinf declaration" >&5
8421   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
8422     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
8423   echo $ac_n "(cached) $ac_c" 1>&6
8424 else
8425   
8426       
8427       ac_ext=C
8428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8429 ac_cpp='$CXXCPP $CPPFLAGS'
8430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8432 cross_compiling=$ac_cv_prog_cxx_cross
8433
8434       cat > conftest.$ac_ext <<EOF
8435 #line 8436 "configure"
8436 #include "confdefs.h"
8437 #include <math.h>
8438                       #ifdef HAVE_IEEEFP_H
8439                       #include <ieeefp.h>
8440                       #endif
8441                      
8442 int main() {
8443  _isinf(0);
8444 ; return 0; }
8445 EOF
8446 if { (eval echo configure:8447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8447   rm -rf conftest*
8448   glibcpp_cv_func__isinf_use=yes
8449 else
8450   echo "configure: failed program was:" >&5
8451   cat conftest.$ac_ext >&5
8452   rm -rf conftest*
8453   glibcpp_cv_func__isinf_use=no
8454 fi
8455 rm -f conftest*
8456       ac_ext=c
8457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8458 ac_cpp='$CPP $CPPFLAGS'
8459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8461 cross_compiling=$ac_cv_prog_cc_cross
8462
8463     
8464 fi
8465
8466   fi
8467   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
8468
8469     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
8470       for ac_func in _isinf
8471 do
8472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8473 echo "configure:8474: checking for $ac_func" >&5
8474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8475   echo $ac_n "(cached) $ac_c" 1>&6
8476 else
8477   cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 /* System header to define __stub macros and hopefully few prototypes,
8481     which can conflict with char $ac_func(); below.  */
8482 #include <assert.h>
8483 /* Override any gcc2 internal prototype to avoid an error.  */
8484 /* We use char because int might match the return type of a gcc2
8485     builtin and then its argument prototype would still apply.  */
8486 char $ac_func();
8487
8488 int main() {
8489
8490 /* The GNU C library defines this for functions which it implements
8491     to always fail with ENOSYS.  Some functions are actually named
8492     something starting with __ and the normal name is an alias.  */
8493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8494 choke me
8495 #else
8496 $ac_func();
8497 #endif
8498
8499 ; return 0; }
8500 EOF
8501 if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8502   rm -rf conftest*
8503   eval "ac_cv_func_$ac_func=yes"
8504 else
8505   echo "configure: failed program was:" >&5
8506   cat conftest.$ac_ext >&5
8507   rm -rf conftest*
8508   eval "ac_cv_func_$ac_func=no"
8509 fi
8510 rm -f conftest*
8511 fi
8512
8513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8514   echo "$ac_t""yes" 1>&6
8515     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8516   cat >> confdefs.h <<EOF
8517 #define $ac_tr_func 1
8518 EOF
8519  
8520 else
8521   echo "$ac_t""no" 1>&6
8522 fi
8523 done
8524     
8525     fi
8526   fi
8527
8528   
8529   
8530   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
8531 echo "configure:8532: checking for isnan declaration" >&5
8532   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
8533     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
8534   echo $ac_n "(cached) $ac_c" 1>&6
8535 else
8536   
8537       
8538       ac_ext=C
8539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8540 ac_cpp='$CXXCPP $CPPFLAGS'
8541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8543 cross_compiling=$ac_cv_prog_cxx_cross
8544
8545       cat > conftest.$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8548 #include <math.h>
8549                       #ifdef HAVE_IEEEFP_H
8550                       #include <ieeefp.h>
8551                       #endif
8552                      
8553 int main() {
8554  isnan(0);
8555 ; return 0; }
8556 EOF
8557 if { (eval echo configure:8558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8558   rm -rf conftest*
8559   glibcpp_cv_func_isnan_use=yes
8560 else
8561   echo "configure: failed program was:" >&5
8562   cat conftest.$ac_ext >&5
8563   rm -rf conftest*
8564   glibcpp_cv_func_isnan_use=no
8565 fi
8566 rm -f conftest*
8567       ac_ext=c
8568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8569 ac_cpp='$CPP $CPPFLAGS'
8570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8572 cross_compiling=$ac_cv_prog_cc_cross
8573
8574     
8575 fi
8576
8577   fi
8578   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
8579
8580   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
8581     for ac_func in isnan
8582 do
8583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8584 echo "configure:8585: checking for $ac_func" >&5
8585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8586   echo $ac_n "(cached) $ac_c" 1>&6
8587 else
8588   cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8591 /* System header to define __stub macros and hopefully few prototypes,
8592     which can conflict with char $ac_func(); below.  */
8593 #include <assert.h>
8594 /* Override any gcc2 internal prototype to avoid an error.  */
8595 /* We use char because int might match the return type of a gcc2
8596     builtin and then its argument prototype would still apply.  */
8597 char $ac_func();
8598
8599 int main() {
8600
8601 /* The GNU C library defines this for functions which it implements
8602     to always fail with ENOSYS.  Some functions are actually named
8603     something starting with __ and the normal name is an alias.  */
8604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8605 choke me
8606 #else
8607 $ac_func();
8608 #endif
8609
8610 ; return 0; }
8611 EOF
8612 if { (eval echo configure:8613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8613   rm -rf conftest*
8614   eval "ac_cv_func_$ac_func=yes"
8615 else
8616   echo "configure: failed program was:" >&5
8617   cat conftest.$ac_ext >&5
8618   rm -rf conftest*
8619   eval "ac_cv_func_$ac_func=no"
8620 fi
8621 rm -f conftest*
8622 fi
8623
8624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8625   echo "$ac_t""yes" 1>&6
8626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8627   cat >> confdefs.h <<EOF
8628 #define $ac_tr_func 1
8629 EOF
8630  
8631 else
8632   echo "$ac_t""no" 1>&6
8633 fi
8634 done
8635     
8636   else
8637     
8638   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
8639 echo "configure:8640: checking for _isnan declaration" >&5
8640   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
8641     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
8642   echo $ac_n "(cached) $ac_c" 1>&6
8643 else
8644   
8645       
8646       ac_ext=C
8647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8648 ac_cpp='$CXXCPP $CPPFLAGS'
8649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8651 cross_compiling=$ac_cv_prog_cxx_cross
8652
8653       cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 #include <math.h>
8657                       #ifdef HAVE_IEEEFP_H
8658                       #include <ieeefp.h>
8659                       #endif
8660                      
8661 int main() {
8662  _isnan(0);
8663 ; return 0; }
8664 EOF
8665 if { (eval echo configure:8666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8666   rm -rf conftest*
8667   glibcpp_cv_func__isnan_use=yes
8668 else
8669   echo "configure: failed program was:" >&5
8670   cat conftest.$ac_ext >&5
8671   rm -rf conftest*
8672   glibcpp_cv_func__isnan_use=no
8673 fi
8674 rm -f conftest*
8675       ac_ext=c
8676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8677 ac_cpp='$CPP $CPPFLAGS'
8678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8680 cross_compiling=$ac_cv_prog_cc_cross
8681
8682     
8683 fi
8684
8685   fi
8686   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
8687
8688     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
8689       for ac_func in _isnan
8690 do
8691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8692 echo "configure:8693: checking for $ac_func" >&5
8693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8694   echo $ac_n "(cached) $ac_c" 1>&6
8695 else
8696   cat > conftest.$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699 /* System header to define __stub macros and hopefully few prototypes,
8700     which can conflict with char $ac_func(); below.  */
8701 #include <assert.h>
8702 /* Override any gcc2 internal prototype to avoid an error.  */
8703 /* We use char because int might match the return type of a gcc2
8704     builtin and then its argument prototype would still apply.  */
8705 char $ac_func();
8706
8707 int main() {
8708
8709 /* The GNU C library defines this for functions which it implements
8710     to always fail with ENOSYS.  Some functions are actually named
8711     something starting with __ and the normal name is an alias.  */
8712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8713 choke me
8714 #else
8715 $ac_func();
8716 #endif
8717
8718 ; return 0; }
8719 EOF
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721   rm -rf conftest*
8722   eval "ac_cv_func_$ac_func=yes"
8723 else
8724   echo "configure: failed program was:" >&5
8725   cat conftest.$ac_ext >&5
8726   rm -rf conftest*
8727   eval "ac_cv_func_$ac_func=no"
8728 fi
8729 rm -f conftest*
8730 fi
8731
8732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8733   echo "$ac_t""yes" 1>&6
8734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8735   cat >> confdefs.h <<EOF
8736 #define $ac_tr_func 1
8737 EOF
8738  
8739 else
8740   echo "$ac_t""no" 1>&6
8741 fi
8742 done
8743     
8744     fi
8745   fi
8746
8747   
8748   
8749   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
8750 echo "configure:8751: checking for finite declaration" >&5
8751   if test x${glibcpp_cv_func_finite_use+set} != xset; then
8752     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
8753   echo $ac_n "(cached) $ac_c" 1>&6
8754 else
8755   
8756       
8757       ac_ext=C
8758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8759 ac_cpp='$CXXCPP $CPPFLAGS'
8760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8762 cross_compiling=$ac_cv_prog_cxx_cross
8763
8764       cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8767 #include <math.h>
8768                       #ifdef HAVE_IEEEFP_H
8769                       #include <ieeefp.h>
8770                       #endif
8771                      
8772 int main() {
8773  finite(0);
8774 ; return 0; }
8775 EOF
8776 if { (eval echo configure:8777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8777   rm -rf conftest*
8778   glibcpp_cv_func_finite_use=yes
8779 else
8780   echo "configure: failed program was:" >&5
8781   cat conftest.$ac_ext >&5
8782   rm -rf conftest*
8783   glibcpp_cv_func_finite_use=no
8784 fi
8785 rm -f conftest*
8786       ac_ext=c
8787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8788 ac_cpp='$CPP $CPPFLAGS'
8789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8791 cross_compiling=$ac_cv_prog_cc_cross
8792
8793     
8794 fi
8795
8796   fi
8797   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
8798
8799   if test x$glibcpp_cv_func_finite_use = x"yes"; then
8800     for ac_func in finite
8801 do
8802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8803 echo "configure:8804: checking for $ac_func" >&5
8804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8805   echo $ac_n "(cached) $ac_c" 1>&6
8806 else
8807   cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8810 /* System header to define __stub macros and hopefully few prototypes,
8811     which can conflict with char $ac_func(); below.  */
8812 #include <assert.h>
8813 /* Override any gcc2 internal prototype to avoid an error.  */
8814 /* We use char because int might match the return type of a gcc2
8815     builtin and then its argument prototype would still apply.  */
8816 char $ac_func();
8817
8818 int main() {
8819
8820 /* The GNU C library defines this for functions which it implements
8821     to always fail with ENOSYS.  Some functions are actually named
8822     something starting with __ and the normal name is an alias.  */
8823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8824 choke me
8825 #else
8826 $ac_func();
8827 #endif
8828
8829 ; return 0; }
8830 EOF
8831 if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8832   rm -rf conftest*
8833   eval "ac_cv_func_$ac_func=yes"
8834 else
8835   echo "configure: failed program was:" >&5
8836   cat conftest.$ac_ext >&5
8837   rm -rf conftest*
8838   eval "ac_cv_func_$ac_func=no"
8839 fi
8840 rm -f conftest*
8841 fi
8842
8843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8844   echo "$ac_t""yes" 1>&6
8845     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8846   cat >> confdefs.h <<EOF
8847 #define $ac_tr_func 1
8848 EOF
8849  
8850 else
8851   echo "$ac_t""no" 1>&6
8852 fi
8853 done
8854     
8855   else
8856     
8857   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
8858 echo "configure:8859: checking for _finite declaration" >&5
8859   if test x${glibcpp_cv_func__finite_use+set} != xset; then
8860     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
8861   echo $ac_n "(cached) $ac_c" 1>&6
8862 else
8863   
8864       
8865       ac_ext=C
8866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8867 ac_cpp='$CXXCPP $CPPFLAGS'
8868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8870 cross_compiling=$ac_cv_prog_cxx_cross
8871
8872       cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 #include <math.h>
8876                       #ifdef HAVE_IEEEFP_H
8877                       #include <ieeefp.h>
8878                       #endif
8879                      
8880 int main() {
8881  _finite(0);
8882 ; return 0; }
8883 EOF
8884 if { (eval echo configure:8885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8885   rm -rf conftest*
8886   glibcpp_cv_func__finite_use=yes
8887 else
8888   echo "configure: failed program was:" >&5
8889   cat conftest.$ac_ext >&5
8890   rm -rf conftest*
8891   glibcpp_cv_func__finite_use=no
8892 fi
8893 rm -f conftest*
8894       ac_ext=c
8895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8896 ac_cpp='$CPP $CPPFLAGS'
8897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8899 cross_compiling=$ac_cv_prog_cc_cross
8900
8901     
8902 fi
8903
8904   fi
8905   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
8906
8907     if test x$glibcpp_cv_func__finite_use = x"yes"; then
8908       for ac_func in _finite
8909 do
8910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8911 echo "configure:8912: checking for $ac_func" >&5
8912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8913   echo $ac_n "(cached) $ac_c" 1>&6
8914 else
8915   cat > conftest.$ac_ext <<EOF
8916 #line 8917 "configure"
8917 #include "confdefs.h"
8918 /* System header to define __stub macros and hopefully few prototypes,
8919     which can conflict with char $ac_func(); below.  */
8920 #include <assert.h>
8921 /* Override any gcc2 internal prototype to avoid an error.  */
8922 /* We use char because int might match the return type of a gcc2
8923     builtin and then its argument prototype would still apply.  */
8924 char $ac_func();
8925
8926 int main() {
8927
8928 /* The GNU C library defines this for functions which it implements
8929     to always fail with ENOSYS.  Some functions are actually named
8930     something starting with __ and the normal name is an alias.  */
8931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8932 choke me
8933 #else
8934 $ac_func();
8935 #endif
8936
8937 ; return 0; }
8938 EOF
8939 if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940   rm -rf conftest*
8941   eval "ac_cv_func_$ac_func=yes"
8942 else
8943   echo "configure: failed program was:" >&5
8944   cat conftest.$ac_ext >&5
8945   rm -rf conftest*
8946   eval "ac_cv_func_$ac_func=no"
8947 fi
8948 rm -f conftest*
8949 fi
8950
8951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8952   echo "$ac_t""yes" 1>&6
8953     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8954   cat >> confdefs.h <<EOF
8955 #define $ac_tr_func 1
8956 EOF
8957  
8958 else
8959   echo "$ac_t""no" 1>&6
8960 fi
8961 done
8962     
8963     fi
8964   fi
8965
8966   
8967   
8968   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
8969 echo "configure:8970: checking for copysign declaration" >&5
8970   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
8971     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8972   echo $ac_n "(cached) $ac_c" 1>&6
8973 else
8974   
8975       
8976       ac_ext=C
8977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8978 ac_cpp='$CXXCPP $CPPFLAGS'
8979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8981 cross_compiling=$ac_cv_prog_cxx_cross
8982
8983       cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 #include <math.h>
8987 int main() {
8988  copysign(0, 0);
8989 ; return 0; }
8990 EOF
8991 if { (eval echo configure:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8992   rm -rf conftest*
8993   glibcpp_cv_func_copysign_use=yes
8994 else
8995   echo "configure: failed program was:" >&5
8996   cat conftest.$ac_ext >&5
8997   rm -rf conftest*
8998   glibcpp_cv_func_copysign_use=no
8999 fi
9000 rm -f conftest*
9001       ac_ext=c
9002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9003 ac_cpp='$CPP $CPPFLAGS'
9004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9006 cross_compiling=$ac_cv_prog_cc_cross
9007
9008     
9009 fi
9010
9011   fi
9012   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
9013
9014   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
9015     for ac_func in copysign
9016 do
9017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9018 echo "configure:9019: checking for $ac_func" >&5
9019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9020   echo $ac_n "(cached) $ac_c" 1>&6
9021 else
9022   cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9025 /* System header to define __stub macros and hopefully few prototypes,
9026     which can conflict with char $ac_func(); below.  */
9027 #include <assert.h>
9028 /* Override any gcc2 internal prototype to avoid an error.  */
9029 /* We use char because int might match the return type of a gcc2
9030     builtin and then its argument prototype would still apply.  */
9031 char $ac_func();
9032
9033 int main() {
9034
9035 /* The GNU C library defines this for functions which it implements
9036     to always fail with ENOSYS.  Some functions are actually named
9037     something starting with __ and the normal name is an alias.  */
9038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9039 choke me
9040 #else
9041 $ac_func();
9042 #endif
9043
9044 ; return 0; }
9045 EOF
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9047   rm -rf conftest*
9048   eval "ac_cv_func_$ac_func=yes"
9049 else
9050   echo "configure: failed program was:" >&5
9051   cat conftest.$ac_ext >&5
9052   rm -rf conftest*
9053   eval "ac_cv_func_$ac_func=no"
9054 fi
9055 rm -f conftest*
9056 fi
9057
9058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9059   echo "$ac_t""yes" 1>&6
9060     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9061   cat >> confdefs.h <<EOF
9062 #define $ac_tr_func 1
9063 EOF
9064  
9065 else
9066   echo "$ac_t""no" 1>&6
9067 fi
9068 done
9069     
9070   else
9071     
9072   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
9073 echo "configure:9074: checking for _copysign declaration" >&5
9074   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
9075     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
9076   echo $ac_n "(cached) $ac_c" 1>&6
9077 else
9078   
9079       
9080       ac_ext=C
9081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9082 ac_cpp='$CXXCPP $CPPFLAGS'
9083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9085 cross_compiling=$ac_cv_prog_cxx_cross
9086
9087       cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9090 #include <math.h>
9091 int main() {
9092  _copysign(0, 0);
9093 ; return 0; }
9094 EOF
9095 if { (eval echo configure:9096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9096   rm -rf conftest*
9097   glibcpp_cv_func__copysign_use=yes
9098 else
9099   echo "configure: failed program was:" >&5
9100   cat conftest.$ac_ext >&5
9101   rm -rf conftest*
9102   glibcpp_cv_func__copysign_use=no
9103 fi
9104 rm -f conftest*
9105       ac_ext=c
9106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9110 cross_compiling=$ac_cv_prog_cc_cross
9111
9112     
9113 fi
9114
9115   fi
9116   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
9117
9118     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
9119       for ac_func in _copysign
9120 do
9121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9122 echo "configure:9123: checking for $ac_func" >&5
9123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9124   echo $ac_n "(cached) $ac_c" 1>&6
9125 else
9126   cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 /* System header to define __stub macros and hopefully few prototypes,
9130     which can conflict with char $ac_func(); below.  */
9131 #include <assert.h>
9132 /* Override any gcc2 internal prototype to avoid an error.  */
9133 /* We use char because int might match the return type of a gcc2
9134     builtin and then its argument prototype would still apply.  */
9135 char $ac_func();
9136
9137 int main() {
9138
9139 /* The GNU C library defines this for functions which it implements
9140     to always fail with ENOSYS.  Some functions are actually named
9141     something starting with __ and the normal name is an alias.  */
9142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9143 choke me
9144 #else
9145 $ac_func();
9146 #endif
9147
9148 ; return 0; }
9149 EOF
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9151   rm -rf conftest*
9152   eval "ac_cv_func_$ac_func=yes"
9153 else
9154   echo "configure: failed program was:" >&5
9155   cat conftest.$ac_ext >&5
9156   rm -rf conftest*
9157   eval "ac_cv_func_$ac_func=no"
9158 fi
9159 rm -f conftest*
9160 fi
9161
9162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9163   echo "$ac_t""yes" 1>&6
9164     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9165   cat >> confdefs.h <<EOF
9166 #define $ac_tr_func 1
9167 EOF
9168  
9169 else
9170   echo "$ac_t""no" 1>&6
9171 fi
9172 done
9173     
9174     fi
9175   fi
9176
9177   
9178   
9179   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
9180 echo "configure:9181: checking for sincos declaration" >&5
9181   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
9182     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
9183   echo $ac_n "(cached) $ac_c" 1>&6
9184 else
9185   
9186       
9187       ac_ext=C
9188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9189 ac_cpp='$CXXCPP $CPPFLAGS'
9190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9192 cross_compiling=$ac_cv_prog_cxx_cross
9193
9194       cat > conftest.$ac_ext <<EOF
9195 #line 9196 "configure"
9196 #include "confdefs.h"
9197 #include <math.h>
9198 int main() {
9199  sincos(0, 0, 0);
9200 ; return 0; }
9201 EOF
9202 if { (eval echo configure:9203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9203   rm -rf conftest*
9204   glibcpp_cv_func_sincos_use=yes
9205 else
9206   echo "configure: failed program was:" >&5
9207   cat conftest.$ac_ext >&5
9208   rm -rf conftest*
9209   glibcpp_cv_func_sincos_use=no
9210 fi
9211 rm -f conftest*
9212       ac_ext=c
9213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9214 ac_cpp='$CPP $CPPFLAGS'
9215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9217 cross_compiling=$ac_cv_prog_cc_cross
9218
9219     
9220 fi
9221
9222   fi
9223   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
9224
9225   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
9226     for ac_func in sincos
9227 do
9228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9229 echo "configure:9230: checking for $ac_func" >&5
9230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9231   echo $ac_n "(cached) $ac_c" 1>&6
9232 else
9233   cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 /* System header to define __stub macros and hopefully few prototypes,
9237     which can conflict with char $ac_func(); below.  */
9238 #include <assert.h>
9239 /* Override any gcc2 internal prototype to avoid an error.  */
9240 /* We use char because int might match the return type of a gcc2
9241     builtin and then its argument prototype would still apply.  */
9242 char $ac_func();
9243
9244 int main() {
9245
9246 /* The GNU C library defines this for functions which it implements
9247     to always fail with ENOSYS.  Some functions are actually named
9248     something starting with __ and the normal name is an alias.  */
9249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9250 choke me
9251 #else
9252 $ac_func();
9253 #endif
9254
9255 ; return 0; }
9256 EOF
9257 if { (eval echo configure:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9258   rm -rf conftest*
9259   eval "ac_cv_func_$ac_func=yes"
9260 else
9261   echo "configure: failed program was:" >&5
9262   cat conftest.$ac_ext >&5
9263   rm -rf conftest*
9264   eval "ac_cv_func_$ac_func=no"
9265 fi
9266 rm -f conftest*
9267 fi
9268
9269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9270   echo "$ac_t""yes" 1>&6
9271     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9272   cat >> confdefs.h <<EOF
9273 #define $ac_tr_func 1
9274 EOF
9275  
9276 else
9277   echo "$ac_t""no" 1>&6
9278 fi
9279 done
9280     
9281   else
9282     
9283   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
9284 echo "configure:9285: checking for _sincos declaration" >&5
9285   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
9286     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
9287   echo $ac_n "(cached) $ac_c" 1>&6
9288 else
9289   
9290       
9291       ac_ext=C
9292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9293 ac_cpp='$CXXCPP $CPPFLAGS'
9294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9296 cross_compiling=$ac_cv_prog_cxx_cross
9297
9298       cat > conftest.$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9301 #include <math.h>
9302 int main() {
9303  _sincos(0, 0, 0);
9304 ; return 0; }
9305 EOF
9306 if { (eval echo configure:9307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9307   rm -rf conftest*
9308   glibcpp_cv_func__sincos_use=yes
9309 else
9310   echo "configure: failed program was:" >&5
9311   cat conftest.$ac_ext >&5
9312   rm -rf conftest*
9313   glibcpp_cv_func__sincos_use=no
9314 fi
9315 rm -f conftest*
9316       ac_ext=c
9317 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9318 ac_cpp='$CPP $CPPFLAGS'
9319 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9320 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9321 cross_compiling=$ac_cv_prog_cc_cross
9322
9323     
9324 fi
9325
9326   fi
9327   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
9328
9329     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
9330       for ac_func in _sincos
9331 do
9332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9333 echo "configure:9334: checking for $ac_func" >&5
9334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9335   echo $ac_n "(cached) $ac_c" 1>&6
9336 else
9337   cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9340 /* System header to define __stub macros and hopefully few prototypes,
9341     which can conflict with char $ac_func(); below.  */
9342 #include <assert.h>
9343 /* Override any gcc2 internal prototype to avoid an error.  */
9344 /* We use char because int might match the return type of a gcc2
9345     builtin and then its argument prototype would still apply.  */
9346 char $ac_func();
9347
9348 int main() {
9349
9350 /* The GNU C library defines this for functions which it implements
9351     to always fail with ENOSYS.  Some functions are actually named
9352     something starting with __ and the normal name is an alias.  */
9353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9354 choke me
9355 #else
9356 $ac_func();
9357 #endif
9358
9359 ; return 0; }
9360 EOF
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9362   rm -rf conftest*
9363   eval "ac_cv_func_$ac_func=yes"
9364 else
9365   echo "configure: failed program was:" >&5
9366   cat conftest.$ac_ext >&5
9367   rm -rf conftest*
9368   eval "ac_cv_func_$ac_func=no"
9369 fi
9370 rm -f conftest*
9371 fi
9372
9373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9374   echo "$ac_t""yes" 1>&6
9375     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9376   cat >> confdefs.h <<EOF
9377 #define $ac_tr_func 1
9378 EOF
9379  
9380 else
9381   echo "$ac_t""no" 1>&6
9382 fi
9383 done
9384     
9385     fi
9386   fi
9387
9388   
9389   
9390   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
9391 echo "configure:9392: checking for fpclass declaration" >&5
9392   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
9393     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
9394   echo $ac_n "(cached) $ac_c" 1>&6
9395 else
9396   
9397       
9398       ac_ext=C
9399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9400 ac_cpp='$CXXCPP $CPPFLAGS'
9401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9403 cross_compiling=$ac_cv_prog_cxx_cross
9404
9405       cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 #include <math.h>
9409                       #ifdef HAVE_IEEEFP_H
9410                       #include <ieeefp.h>
9411                       #endif
9412                      
9413 int main() {
9414  fpclass(0);
9415 ; return 0; }
9416 EOF
9417 if { (eval echo configure:9418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9418   rm -rf conftest*
9419   glibcpp_cv_func_fpclass_use=yes
9420 else
9421   echo "configure: failed program was:" >&5
9422   cat conftest.$ac_ext >&5
9423   rm -rf conftest*
9424   glibcpp_cv_func_fpclass_use=no
9425 fi
9426 rm -f conftest*
9427       ac_ext=c
9428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9429 ac_cpp='$CPP $CPPFLAGS'
9430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9432 cross_compiling=$ac_cv_prog_cc_cross
9433
9434     
9435 fi
9436
9437   fi
9438   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
9439
9440   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
9441     for ac_func in fpclass
9442 do
9443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9444 echo "configure:9445: checking for $ac_func" >&5
9445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9446   echo $ac_n "(cached) $ac_c" 1>&6
9447 else
9448   cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9451 /* System header to define __stub macros and hopefully few prototypes,
9452     which can conflict with char $ac_func(); below.  */
9453 #include <assert.h>
9454 /* Override any gcc2 internal prototype to avoid an error.  */
9455 /* We use char because int might match the return type of a gcc2
9456     builtin and then its argument prototype would still apply.  */
9457 char $ac_func();
9458
9459 int main() {
9460
9461 /* The GNU C library defines this for functions which it implements
9462     to always fail with ENOSYS.  Some functions are actually named
9463     something starting with __ and the normal name is an alias.  */
9464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9465 choke me
9466 #else
9467 $ac_func();
9468 #endif
9469
9470 ; return 0; }
9471 EOF
9472 if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9473   rm -rf conftest*
9474   eval "ac_cv_func_$ac_func=yes"
9475 else
9476   echo "configure: failed program was:" >&5
9477   cat conftest.$ac_ext >&5
9478   rm -rf conftest*
9479   eval "ac_cv_func_$ac_func=no"
9480 fi
9481 rm -f conftest*
9482 fi
9483
9484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9485   echo "$ac_t""yes" 1>&6
9486     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9487   cat >> confdefs.h <<EOF
9488 #define $ac_tr_func 1
9489 EOF
9490  
9491 else
9492   echo "$ac_t""no" 1>&6
9493 fi
9494 done
9495     
9496   else
9497     
9498   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
9499 echo "configure:9500: checking for _fpclass declaration" >&5
9500   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
9501     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
9502   echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9504   
9505       
9506       ac_ext=C
9507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9508 ac_cpp='$CXXCPP $CPPFLAGS'
9509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9511 cross_compiling=$ac_cv_prog_cxx_cross
9512
9513       cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 #include <math.h>
9517                       #ifdef HAVE_IEEEFP_H
9518                       #include <ieeefp.h>
9519                       #endif
9520                      
9521 int main() {
9522  _fpclass(0);
9523 ; return 0; }
9524 EOF
9525 if { (eval echo configure:9526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9526   rm -rf conftest*
9527   glibcpp_cv_func__fpclass_use=yes
9528 else
9529   echo "configure: failed program was:" >&5
9530   cat conftest.$ac_ext >&5
9531   rm -rf conftest*
9532   glibcpp_cv_func__fpclass_use=no
9533 fi
9534 rm -f conftest*
9535       ac_ext=c
9536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9537 ac_cpp='$CPP $CPPFLAGS'
9538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9540 cross_compiling=$ac_cv_prog_cc_cross
9541
9542     
9543 fi
9544
9545   fi
9546   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
9547
9548     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
9549       for ac_func in _fpclass
9550 do
9551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9552 echo "configure:9553: checking for $ac_func" >&5
9553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9554   echo $ac_n "(cached) $ac_c" 1>&6
9555 else
9556   cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 /* System header to define __stub macros and hopefully few prototypes,
9560     which can conflict with char $ac_func(); below.  */
9561 #include <assert.h>
9562 /* Override any gcc2 internal prototype to avoid an error.  */
9563 /* We use char because int might match the return type of a gcc2
9564     builtin and then its argument prototype would still apply.  */
9565 char $ac_func();
9566
9567 int main() {
9568
9569 /* The GNU C library defines this for functions which it implements
9570     to always fail with ENOSYS.  Some functions are actually named
9571     something starting with __ and the normal name is an alias.  */
9572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9573 choke me
9574 #else
9575 $ac_func();
9576 #endif
9577
9578 ; return 0; }
9579 EOF
9580 if { (eval echo configure:9581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9581   rm -rf conftest*
9582   eval "ac_cv_func_$ac_func=yes"
9583 else
9584   echo "configure: failed program was:" >&5
9585   cat conftest.$ac_ext >&5
9586   rm -rf conftest*
9587   eval "ac_cv_func_$ac_func=no"
9588 fi
9589 rm -f conftest*
9590 fi
9591
9592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9593   echo "$ac_t""yes" 1>&6
9594     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9595   cat >> confdefs.h <<EOF
9596 #define $ac_tr_func 1
9597 EOF
9598  
9599 else
9600   echo "$ac_t""no" 1>&6
9601 fi
9602 done
9603     
9604     fi
9605   fi
9606
9607   
9608   
9609   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
9610 echo "configure:9611: checking for qfpclass declaration" >&5
9611   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
9612     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
9613   echo $ac_n "(cached) $ac_c" 1>&6
9614 else
9615   
9616       
9617       ac_ext=C
9618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9619 ac_cpp='$CXXCPP $CPPFLAGS'
9620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9622 cross_compiling=$ac_cv_prog_cxx_cross
9623
9624       cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 #include <math.h>
9628                       #ifdef HAVE_IEEEFP_H
9629                       #include <ieeefp.h>
9630                       #endif
9631                      
9632 int main() {
9633  qfpclass(0);
9634 ; return 0; }
9635 EOF
9636 if { (eval echo configure:9637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9637   rm -rf conftest*
9638   glibcpp_cv_func_qfpclass_use=yes
9639 else
9640   echo "configure: failed program was:" >&5
9641   cat conftest.$ac_ext >&5
9642   rm -rf conftest*
9643   glibcpp_cv_func_qfpclass_use=no
9644 fi
9645 rm -f conftest*
9646       ac_ext=c
9647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9648 ac_cpp='$CPP $CPPFLAGS'
9649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9651 cross_compiling=$ac_cv_prog_cc_cross
9652
9653     
9654 fi
9655
9656   fi
9657   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
9658
9659   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
9660     for ac_func in qfpclass
9661 do
9662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9663 echo "configure:9664: checking for $ac_func" >&5
9664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9665   echo $ac_n "(cached) $ac_c" 1>&6
9666 else
9667   cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 /* System header to define __stub macros and hopefully few prototypes,
9671     which can conflict with char $ac_func(); below.  */
9672 #include <assert.h>
9673 /* Override any gcc2 internal prototype to avoid an error.  */
9674 /* We use char because int might match the return type of a gcc2
9675     builtin and then its argument prototype would still apply.  */
9676 char $ac_func();
9677
9678 int main() {
9679
9680 /* The GNU C library defines this for functions which it implements
9681     to always fail with ENOSYS.  Some functions are actually named
9682     something starting with __ and the normal name is an alias.  */
9683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9684 choke me
9685 #else
9686 $ac_func();
9687 #endif
9688
9689 ; return 0; }
9690 EOF
9691 if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9692   rm -rf conftest*
9693   eval "ac_cv_func_$ac_func=yes"
9694 else
9695   echo "configure: failed program was:" >&5
9696   cat conftest.$ac_ext >&5
9697   rm -rf conftest*
9698   eval "ac_cv_func_$ac_func=no"
9699 fi
9700 rm -f conftest*
9701 fi
9702
9703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9704   echo "$ac_t""yes" 1>&6
9705     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9706   cat >> confdefs.h <<EOF
9707 #define $ac_tr_func 1
9708 EOF
9709  
9710 else
9711   echo "$ac_t""no" 1>&6
9712 fi
9713 done
9714     
9715   else
9716     
9717   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
9718 echo "configure:9719: checking for _qfpclass declaration" >&5
9719   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
9720     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
9721   echo $ac_n "(cached) $ac_c" 1>&6
9722 else
9723   
9724       
9725       ac_ext=C
9726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9727 ac_cpp='$CXXCPP $CPPFLAGS'
9728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9730 cross_compiling=$ac_cv_prog_cxx_cross
9731
9732       cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 #include <math.h>
9736                       #ifdef HAVE_IEEEFP_H
9737                       #include <ieeefp.h>
9738                       #endif
9739                      
9740 int main() {
9741  _qfpclass(0);
9742 ; return 0; }
9743 EOF
9744 if { (eval echo configure:9745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9745   rm -rf conftest*
9746   glibcpp_cv_func__qfpclass_use=yes
9747 else
9748   echo "configure: failed program was:" >&5
9749   cat conftest.$ac_ext >&5
9750   rm -rf conftest*
9751   glibcpp_cv_func__qfpclass_use=no
9752 fi
9753 rm -f conftest*
9754       ac_ext=c
9755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9756 ac_cpp='$CPP $CPPFLAGS'
9757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9759 cross_compiling=$ac_cv_prog_cc_cross
9760
9761     
9762 fi
9763
9764   fi
9765   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
9766
9767     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
9768       for ac_func in _qfpclass
9769 do
9770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9771 echo "configure:9772: checking for $ac_func" >&5
9772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9773   echo $ac_n "(cached) $ac_c" 1>&6
9774 else
9775   cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 /* System header to define __stub macros and hopefully few prototypes,
9779     which can conflict with char $ac_func(); below.  */
9780 #include <assert.h>
9781 /* Override any gcc2 internal prototype to avoid an error.  */
9782 /* We use char because int might match the return type of a gcc2
9783     builtin and then its argument prototype would still apply.  */
9784 char $ac_func();
9785
9786 int main() {
9787
9788 /* The GNU C library defines this for functions which it implements
9789     to always fail with ENOSYS.  Some functions are actually named
9790     something starting with __ and the normal name is an alias.  */
9791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9792 choke me
9793 #else
9794 $ac_func();
9795 #endif
9796
9797 ; return 0; }
9798 EOF
9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9800   rm -rf conftest*
9801   eval "ac_cv_func_$ac_func=yes"
9802 else
9803   echo "configure: failed program was:" >&5
9804   cat conftest.$ac_ext >&5
9805   rm -rf conftest*
9806   eval "ac_cv_func_$ac_func=no"
9807 fi
9808 rm -f conftest*
9809 fi
9810
9811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9812   echo "$ac_t""yes" 1>&6
9813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9814   cat >> confdefs.h <<EOF
9815 #define $ac_tr_func 1
9816 EOF
9817  
9818 else
9819   echo "$ac_t""no" 1>&6
9820 fi
9821 done
9822     
9823     fi
9824   fi
9825
9826   
9827   
9828   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
9829 echo "configure:9830: checking for hypot declaration" >&5
9830   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
9831     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
9832   echo $ac_n "(cached) $ac_c" 1>&6
9833 else
9834   
9835       
9836       ac_ext=C
9837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9838 ac_cpp='$CXXCPP $CPPFLAGS'
9839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9841 cross_compiling=$ac_cv_prog_cxx_cross
9842
9843       cat > conftest.$ac_ext <<EOF
9844 #line 9845 "configure"
9845 #include "confdefs.h"
9846 #include <math.h>
9847 int main() {
9848  hypot(0, 0);
9849 ; return 0; }
9850 EOF
9851 if { (eval echo configure:9852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9852   rm -rf conftest*
9853   glibcpp_cv_func_hypot_use=yes
9854 else
9855   echo "configure: failed program was:" >&5
9856   cat conftest.$ac_ext >&5
9857   rm -rf conftest*
9858   glibcpp_cv_func_hypot_use=no
9859 fi
9860 rm -f conftest*
9861       ac_ext=c
9862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9863 ac_cpp='$CPP $CPPFLAGS'
9864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9866 cross_compiling=$ac_cv_prog_cc_cross
9867
9868     
9869 fi
9870
9871   fi
9872   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
9873
9874   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
9875     for ac_func in hypot
9876 do
9877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9878 echo "configure:9879: checking for $ac_func" >&5
9879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9880   echo $ac_n "(cached) $ac_c" 1>&6
9881 else
9882   cat > conftest.$ac_ext <<EOF
9883 #line 9884 "configure"
9884 #include "confdefs.h"
9885 /* System header to define __stub macros and hopefully few prototypes,
9886     which can conflict with char $ac_func(); below.  */
9887 #include <assert.h>
9888 /* Override any gcc2 internal prototype to avoid an error.  */
9889 /* We use char because int might match the return type of a gcc2
9890     builtin and then its argument prototype would still apply.  */
9891 char $ac_func();
9892
9893 int main() {
9894
9895 /* The GNU C library defines this for functions which it implements
9896     to always fail with ENOSYS.  Some functions are actually named
9897     something starting with __ and the normal name is an alias.  */
9898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9899 choke me
9900 #else
9901 $ac_func();
9902 #endif
9903
9904 ; return 0; }
9905 EOF
9906 if { (eval echo configure:9907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9907   rm -rf conftest*
9908   eval "ac_cv_func_$ac_func=yes"
9909 else
9910   echo "configure: failed program was:" >&5
9911   cat conftest.$ac_ext >&5
9912   rm -rf conftest*
9913   eval "ac_cv_func_$ac_func=no"
9914 fi
9915 rm -f conftest*
9916 fi
9917
9918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9919   echo "$ac_t""yes" 1>&6
9920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9921   cat >> confdefs.h <<EOF
9922 #define $ac_tr_func 1
9923 EOF
9924  
9925 else
9926   echo "$ac_t""no" 1>&6
9927 fi
9928 done
9929     
9930   else
9931     
9932   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
9933 echo "configure:9934: checking for _hypot declaration" >&5
9934   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
9935     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
9936   echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9938   
9939       
9940       ac_ext=C
9941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9942 ac_cpp='$CXXCPP $CPPFLAGS'
9943 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9944 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9945 cross_compiling=$ac_cv_prog_cxx_cross
9946
9947       cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9950 #include <math.h>
9951 int main() {
9952  _hypot(0, 0);
9953 ; return 0; }
9954 EOF
9955 if { (eval echo configure:9956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9956   rm -rf conftest*
9957   glibcpp_cv_func__hypot_use=yes
9958 else
9959   echo "configure: failed program was:" >&5
9960   cat conftest.$ac_ext >&5
9961   rm -rf conftest*
9962   glibcpp_cv_func__hypot_use=no
9963 fi
9964 rm -f conftest*
9965       ac_ext=c
9966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9967 ac_cpp='$CPP $CPPFLAGS'
9968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9970 cross_compiling=$ac_cv_prog_cc_cross
9971
9972     
9973 fi
9974
9975   fi
9976   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9977
9978     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9979       for ac_func in _hypot
9980 do
9981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9982 echo "configure:9983: checking for $ac_func" >&5
9983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9984   echo $ac_n "(cached) $ac_c" 1>&6
9985 else
9986   cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989 /* System header to define __stub macros and hopefully few prototypes,
9990     which can conflict with char $ac_func(); below.  */
9991 #include <assert.h>
9992 /* Override any gcc2 internal prototype to avoid an error.  */
9993 /* We use char because int might match the return type of a gcc2
9994     builtin and then its argument prototype would still apply.  */
9995 char $ac_func();
9996
9997 int main() {
9998
9999 /* The GNU C library defines this for functions which it implements
10000     to always fail with ENOSYS.  Some functions are actually named
10001     something starting with __ and the normal name is an alias.  */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003 choke me
10004 #else
10005 $ac_func();
10006 #endif
10007
10008 ; return 0; }
10009 EOF
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10011   rm -rf conftest*
10012   eval "ac_cv_func_$ac_func=yes"
10013 else
10014   echo "configure: failed program was:" >&5
10015   cat conftest.$ac_ext >&5
10016   rm -rf conftest*
10017   eval "ac_cv_func_$ac_func=no"
10018 fi
10019 rm -f conftest*
10020 fi
10021
10022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10023   echo "$ac_t""yes" 1>&6
10024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10025   cat >> confdefs.h <<EOF
10026 #define $ac_tr_func 1
10027 EOF
10028  
10029 else
10030   echo "$ac_t""no" 1>&6
10031 fi
10032 done
10033     
10034     fi
10035   fi
10036
10037
10038     
10039   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
10040 echo "configure:10041: checking for float trig functions" >&5
10041   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
10042   echo $ac_n "(cached) $ac_c" 1>&6
10043 else
10044   
10045     
10046     ac_ext=C
10047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10048 ac_cpp='$CXXCPP $CPPFLAGS'
10049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10051 cross_compiling=$ac_cv_prog_cxx_cross
10052
10053     cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10056 #include <math.h>
10057 int main() {
10058  `for x in acosf asinf atanf \
10059                                           cosf sinf tanf \
10060                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
10061 ; return 0; }
10062 EOF
10063 if { (eval echo configure:10064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10064   rm -rf conftest*
10065   glibcpp_cv_func_float_trig_use=yes
10066 else
10067   echo "configure: failed program was:" >&5
10068   cat conftest.$ac_ext >&5
10069   rm -rf conftest*
10070   glibcpp_cv_func_float_trig_use=no
10071 fi
10072 rm -f conftest*
10073     ac_ext=c
10074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10075 ac_cpp='$CPP $CPPFLAGS'
10076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10078 cross_compiling=$ac_cv_prog_cc_cross
10079
10080 fi
10081
10082   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
10083   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
10084     for ac_func in acosf asinf atanf \
10085                                           cosf sinf tanf \
10086                                           coshf sinhf tanhf
10087 do
10088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10089 echo "configure:10090: checking for $ac_func" >&5
10090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10091   echo $ac_n "(cached) $ac_c" 1>&6
10092 else
10093   cat > conftest.$ac_ext <<EOF
10094 #line 10095 "configure"
10095 #include "confdefs.h"
10096 /* System header to define __stub macros and hopefully few prototypes,
10097     which can conflict with char $ac_func(); below.  */
10098 #include <assert.h>
10099 /* Override any gcc2 internal prototype to avoid an error.  */
10100 /* We use char because int might match the return type of a gcc2
10101     builtin and then its argument prototype would still apply.  */
10102 char $ac_func();
10103
10104 int main() {
10105
10106 /* The GNU C library defines this for functions which it implements
10107     to always fail with ENOSYS.  Some functions are actually named
10108     something starting with __ and the normal name is an alias.  */
10109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10110 choke me
10111 #else
10112 $ac_func();
10113 #endif
10114
10115 ; return 0; }
10116 EOF
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10118   rm -rf conftest*
10119   eval "ac_cv_func_$ac_func=yes"
10120 else
10121   echo "configure: failed program was:" >&5
10122   cat conftest.$ac_ext >&5
10123   rm -rf conftest*
10124   eval "ac_cv_func_$ac_func=no"
10125 fi
10126 rm -f conftest*
10127 fi
10128
10129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10130   echo "$ac_t""yes" 1>&6
10131     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10132   cat >> confdefs.h <<EOF
10133 #define $ac_tr_func 1
10134 EOF
10135  
10136 else
10137   echo "$ac_t""no" 1>&6
10138 fi
10139 done
10140
10141   fi
10142
10143   
10144   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10145 echo "configure:10146: checking for float round functions" >&5
10146   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10147   echo $ac_n "(cached) $ac_c" 1>&6
10148 else
10149   
10150     
10151     ac_ext=C
10152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10153 ac_cpp='$CXXCPP $CPPFLAGS'
10154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10156 cross_compiling=$ac_cv_prog_cxx_cross
10157
10158     cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 #include <math.h>
10162 int main() {
10163  `for x in ceilf floorf; do echo "$x (0);"; done` 
10164 ; return 0; }
10165 EOF
10166 if { (eval echo configure:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10167   rm -rf conftest*
10168   glibcpp_cv_func_float_round_use=yes
10169 else
10170   echo "configure: failed program was:" >&5
10171   cat conftest.$ac_ext >&5
10172   rm -rf conftest*
10173   glibcpp_cv_func_float_round_use=no
10174 fi
10175 rm -f conftest*
10176     ac_ext=c
10177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10178 ac_cpp='$CPP $CPPFLAGS'
10179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10181 cross_compiling=$ac_cv_prog_cc_cross
10182
10183 fi
10184
10185   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
10186   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
10187     for ac_func in ceilf floorf
10188 do
10189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10190 echo "configure:10191: checking for $ac_func" >&5
10191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10192   echo $ac_n "(cached) $ac_c" 1>&6
10193 else
10194   cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 /* System header to define __stub macros and hopefully few prototypes,
10198     which can conflict with char $ac_func(); below.  */
10199 #include <assert.h>
10200 /* Override any gcc2 internal prototype to avoid an error.  */
10201 /* We use char because int might match the return type of a gcc2
10202     builtin and then its argument prototype would still apply.  */
10203 char $ac_func();
10204
10205 int main() {
10206
10207 /* The GNU C library defines this for functions which it implements
10208     to always fail with ENOSYS.  Some functions are actually named
10209     something starting with __ and the normal name is an alias.  */
10210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211 choke me
10212 #else
10213 $ac_func();
10214 #endif
10215
10216 ; return 0; }
10217 EOF
10218 if { (eval echo configure:10219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10219   rm -rf conftest*
10220   eval "ac_cv_func_$ac_func=yes"
10221 else
10222   echo "configure: failed program was:" >&5
10223   cat conftest.$ac_ext >&5
10224   rm -rf conftest*
10225   eval "ac_cv_func_$ac_func=no"
10226 fi
10227 rm -f conftest*
10228 fi
10229
10230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10231   echo "$ac_t""yes" 1>&6
10232     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10233   cat >> confdefs.h <<EOF
10234 #define $ac_tr_func 1
10235 EOF
10236  
10237 else
10238   echo "$ac_t""no" 1>&6
10239 fi
10240 done
10241
10242   fi
10243
10244   
10245   
10246   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
10247 echo "configure:10248: checking for isnanf declaration" >&5
10248   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
10249     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
10250   echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252   
10253       
10254       ac_ext=C
10255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10256 ac_cpp='$CXXCPP $CPPFLAGS'
10257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10259 cross_compiling=$ac_cv_prog_cxx_cross
10260
10261       cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 #include <math.h>
10265                       #ifdef HAVE_IEEEFP_H
10266                       #include <ieeefp.h>
10267                       #endif
10268                      
10269 int main() {
10270  isnanf(0);
10271 ; return 0; }
10272 EOF
10273 if { (eval echo configure:10274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10274   rm -rf conftest*
10275   glibcpp_cv_func_isnanf_use=yes
10276 else
10277   echo "configure: failed program was:" >&5
10278   cat conftest.$ac_ext >&5
10279   rm -rf conftest*
10280   glibcpp_cv_func_isnanf_use=no
10281 fi
10282 rm -f conftest*
10283       ac_ext=c
10284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10285 ac_cpp='$CPP $CPPFLAGS'
10286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10288 cross_compiling=$ac_cv_prog_cc_cross
10289
10290     
10291 fi
10292
10293   fi
10294   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
10295
10296   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
10297     for ac_func in isnanf
10298 do
10299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10300 echo "configure:10301: checking for $ac_func" >&5
10301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10302   echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10304   cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 /* System header to define __stub macros and hopefully few prototypes,
10308     which can conflict with char $ac_func(); below.  */
10309 #include <assert.h>
10310 /* Override any gcc2 internal prototype to avoid an error.  */
10311 /* We use char because int might match the return type of a gcc2
10312     builtin and then its argument prototype would still apply.  */
10313 char $ac_func();
10314
10315 int main() {
10316
10317 /* The GNU C library defines this for functions which it implements
10318     to always fail with ENOSYS.  Some functions are actually named
10319     something starting with __ and the normal name is an alias.  */
10320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10321 choke me
10322 #else
10323 $ac_func();
10324 #endif
10325
10326 ; return 0; }
10327 EOF
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10329   rm -rf conftest*
10330   eval "ac_cv_func_$ac_func=yes"
10331 else
10332   echo "configure: failed program was:" >&5
10333   cat conftest.$ac_ext >&5
10334   rm -rf conftest*
10335   eval "ac_cv_func_$ac_func=no"
10336 fi
10337 rm -f conftest*
10338 fi
10339
10340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10341   echo "$ac_t""yes" 1>&6
10342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10343   cat >> confdefs.h <<EOF
10344 #define $ac_tr_func 1
10345 EOF
10346  
10347 else
10348   echo "$ac_t""no" 1>&6
10349 fi
10350 done
10351     
10352   else
10353     
10354   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
10355 echo "configure:10356: checking for _isnanf declaration" >&5
10356   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
10357     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
10358   echo $ac_n "(cached) $ac_c" 1>&6
10359 else
10360   
10361       
10362       ac_ext=C
10363 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10364 ac_cpp='$CXXCPP $CPPFLAGS'
10365 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10366 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10367 cross_compiling=$ac_cv_prog_cxx_cross
10368
10369       cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 #include <math.h>
10373                       #ifdef HAVE_IEEEFP_H
10374                       #include <ieeefp.h>
10375                       #endif
10376                      
10377 int main() {
10378  _isnanf(0);
10379 ; return 0; }
10380 EOF
10381 if { (eval echo configure:10382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10382   rm -rf conftest*
10383   glibcpp_cv_func__isnanf_use=yes
10384 else
10385   echo "configure: failed program was:" >&5
10386   cat conftest.$ac_ext >&5
10387   rm -rf conftest*
10388   glibcpp_cv_func__isnanf_use=no
10389 fi
10390 rm -f conftest*
10391       ac_ext=c
10392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10393 ac_cpp='$CPP $CPPFLAGS'
10394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10396 cross_compiling=$ac_cv_prog_cc_cross
10397
10398     
10399 fi
10400
10401   fi
10402   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
10403
10404     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
10405       for ac_func in _isnanf
10406 do
10407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10408 echo "configure:10409: checking for $ac_func" >&5
10409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10410   echo $ac_n "(cached) $ac_c" 1>&6
10411 else
10412   cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10415 /* System header to define __stub macros and hopefully few prototypes,
10416     which can conflict with char $ac_func(); below.  */
10417 #include <assert.h>
10418 /* Override any gcc2 internal prototype to avoid an error.  */
10419 /* We use char because int might match the return type of a gcc2
10420     builtin and then its argument prototype would still apply.  */
10421 char $ac_func();
10422
10423 int main() {
10424
10425 /* The GNU C library defines this for functions which it implements
10426     to always fail with ENOSYS.  Some functions are actually named
10427     something starting with __ and the normal name is an alias.  */
10428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10429 choke me
10430 #else
10431 $ac_func();
10432 #endif
10433
10434 ; return 0; }
10435 EOF
10436 if { (eval echo configure:10437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10437   rm -rf conftest*
10438   eval "ac_cv_func_$ac_func=yes"
10439 else
10440   echo "configure: failed program was:" >&5
10441   cat conftest.$ac_ext >&5
10442   rm -rf conftest*
10443   eval "ac_cv_func_$ac_func=no"
10444 fi
10445 rm -f conftest*
10446 fi
10447
10448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10449   echo "$ac_t""yes" 1>&6
10450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10451   cat >> confdefs.h <<EOF
10452 #define $ac_tr_func 1
10453 EOF
10454  
10455 else
10456   echo "$ac_t""no" 1>&6
10457 fi
10458 done
10459     
10460     fi
10461   fi
10462
10463   
10464   
10465   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
10466 echo "configure:10467: checking for isinff declaration" >&5
10467   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
10468     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
10469   echo $ac_n "(cached) $ac_c" 1>&6
10470 else
10471   
10472       
10473       ac_ext=C
10474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10475 ac_cpp='$CXXCPP $CPPFLAGS'
10476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10478 cross_compiling=$ac_cv_prog_cxx_cross
10479
10480       cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10483 #include <math.h>
10484                       #ifdef HAVE_IEEEFP_H
10485                       #include <ieeefp.h>
10486                       #endif
10487                      
10488 int main() {
10489  isinff(0);
10490 ; return 0; }
10491 EOF
10492 if { (eval echo configure:10493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10493   rm -rf conftest*
10494   glibcpp_cv_func_isinff_use=yes
10495 else
10496   echo "configure: failed program was:" >&5
10497   cat conftest.$ac_ext >&5
10498   rm -rf conftest*
10499   glibcpp_cv_func_isinff_use=no
10500 fi
10501 rm -f conftest*
10502       ac_ext=c
10503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10504 ac_cpp='$CPP $CPPFLAGS'
10505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10507 cross_compiling=$ac_cv_prog_cc_cross
10508
10509     
10510 fi
10511
10512   fi
10513   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
10514
10515   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
10516     for ac_func in isinff
10517 do
10518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10519 echo "configure:10520: checking for $ac_func" >&5
10520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10521   echo $ac_n "(cached) $ac_c" 1>&6
10522 else
10523   cat > conftest.$ac_ext <<EOF
10524 #line 10525 "configure"
10525 #include "confdefs.h"
10526 /* System header to define __stub macros and hopefully few prototypes,
10527     which can conflict with char $ac_func(); below.  */
10528 #include <assert.h>
10529 /* Override any gcc2 internal prototype to avoid an error.  */
10530 /* We use char because int might match the return type of a gcc2
10531     builtin and then its argument prototype would still apply.  */
10532 char $ac_func();
10533
10534 int main() {
10535
10536 /* The GNU C library defines this for functions which it implements
10537     to always fail with ENOSYS.  Some functions are actually named
10538     something starting with __ and the normal name is an alias.  */
10539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10540 choke me
10541 #else
10542 $ac_func();
10543 #endif
10544
10545 ; return 0; }
10546 EOF
10547 if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10548   rm -rf conftest*
10549   eval "ac_cv_func_$ac_func=yes"
10550 else
10551   echo "configure: failed program was:" >&5
10552   cat conftest.$ac_ext >&5
10553   rm -rf conftest*
10554   eval "ac_cv_func_$ac_func=no"
10555 fi
10556 rm -f conftest*
10557 fi
10558
10559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10560   echo "$ac_t""yes" 1>&6
10561     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10562   cat >> confdefs.h <<EOF
10563 #define $ac_tr_func 1
10564 EOF
10565  
10566 else
10567   echo "$ac_t""no" 1>&6
10568 fi
10569 done
10570     
10571   else
10572     
10573   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
10574 echo "configure:10575: checking for _isinff declaration" >&5
10575   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
10576     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
10577   echo $ac_n "(cached) $ac_c" 1>&6
10578 else
10579   
10580       
10581       ac_ext=C
10582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10583 ac_cpp='$CXXCPP $CPPFLAGS'
10584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10586 cross_compiling=$ac_cv_prog_cxx_cross
10587
10588       cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10591 #include <math.h>
10592                       #ifdef HAVE_IEEEFP_H
10593                       #include <ieeefp.h>
10594                       #endif
10595                      
10596 int main() {
10597  _isinff(0);
10598 ; return 0; }
10599 EOF
10600 if { (eval echo configure:10601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10601   rm -rf conftest*
10602   glibcpp_cv_func__isinff_use=yes
10603 else
10604   echo "configure: failed program was:" >&5
10605   cat conftest.$ac_ext >&5
10606   rm -rf conftest*
10607   glibcpp_cv_func__isinff_use=no
10608 fi
10609 rm -f conftest*
10610       ac_ext=c
10611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10612 ac_cpp='$CPP $CPPFLAGS'
10613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10615 cross_compiling=$ac_cv_prog_cc_cross
10616
10617     
10618 fi
10619
10620   fi
10621   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
10622
10623     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
10624       for ac_func in _isinff
10625 do
10626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10627 echo "configure:10628: checking for $ac_func" >&5
10628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10629   echo $ac_n "(cached) $ac_c" 1>&6
10630 else
10631   cat > conftest.$ac_ext <<EOF
10632 #line 10633 "configure"
10633 #include "confdefs.h"
10634 /* System header to define __stub macros and hopefully few prototypes,
10635     which can conflict with char $ac_func(); below.  */
10636 #include <assert.h>
10637 /* Override any gcc2 internal prototype to avoid an error.  */
10638 /* We use char because int might match the return type of a gcc2
10639     builtin and then its argument prototype would still apply.  */
10640 char $ac_func();
10641
10642 int main() {
10643
10644 /* The GNU C library defines this for functions which it implements
10645     to always fail with ENOSYS.  Some functions are actually named
10646     something starting with __ and the normal name is an alias.  */
10647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10648 choke me
10649 #else
10650 $ac_func();
10651 #endif
10652
10653 ; return 0; }
10654 EOF
10655 if { (eval echo configure:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10656   rm -rf conftest*
10657   eval "ac_cv_func_$ac_func=yes"
10658 else
10659   echo "configure: failed program was:" >&5
10660   cat conftest.$ac_ext >&5
10661   rm -rf conftest*
10662   eval "ac_cv_func_$ac_func=no"
10663 fi
10664 rm -f conftest*
10665 fi
10666
10667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10668   echo "$ac_t""yes" 1>&6
10669     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10670   cat >> confdefs.h <<EOF
10671 #define $ac_tr_func 1
10672 EOF
10673  
10674 else
10675   echo "$ac_t""no" 1>&6
10676 fi
10677 done
10678     
10679     fi
10680   fi
10681
10682   
10683   
10684   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
10685 echo "configure:10686: checking for atan2f declaration" >&5
10686   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
10687     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
10688   echo $ac_n "(cached) $ac_c" 1>&6
10689 else
10690   
10691       
10692       ac_ext=C
10693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10694 ac_cpp='$CXXCPP $CPPFLAGS'
10695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10697 cross_compiling=$ac_cv_prog_cxx_cross
10698
10699       cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 #include <math.h>
10703 int main() {
10704  atan2f(0, 0);
10705 ; return 0; }
10706 EOF
10707 if { (eval echo configure:10708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10708   rm -rf conftest*
10709   glibcpp_cv_func_atan2f_use=yes
10710 else
10711   echo "configure: failed program was:" >&5
10712   cat conftest.$ac_ext >&5
10713   rm -rf conftest*
10714   glibcpp_cv_func_atan2f_use=no
10715 fi
10716 rm -f conftest*
10717       ac_ext=c
10718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10719 ac_cpp='$CPP $CPPFLAGS'
10720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10722 cross_compiling=$ac_cv_prog_cc_cross
10723
10724     
10725 fi
10726
10727   fi
10728   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
10729
10730   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
10731     for ac_func in atan2f
10732 do
10733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10734 echo "configure:10735: checking for $ac_func" >&5
10735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10736   echo $ac_n "(cached) $ac_c" 1>&6
10737 else
10738   cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10741 /* System header to define __stub macros and hopefully few prototypes,
10742     which can conflict with char $ac_func(); below.  */
10743 #include <assert.h>
10744 /* Override any gcc2 internal prototype to avoid an error.  */
10745 /* We use char because int might match the return type of a gcc2
10746     builtin and then its argument prototype would still apply.  */
10747 char $ac_func();
10748
10749 int main() {
10750
10751 /* The GNU C library defines this for functions which it implements
10752     to always fail with ENOSYS.  Some functions are actually named
10753     something starting with __ and the normal name is an alias.  */
10754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10755 choke me
10756 #else
10757 $ac_func();
10758 #endif
10759
10760 ; return 0; }
10761 EOF
10762 if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10763   rm -rf conftest*
10764   eval "ac_cv_func_$ac_func=yes"
10765 else
10766   echo "configure: failed program was:" >&5
10767   cat conftest.$ac_ext >&5
10768   rm -rf conftest*
10769   eval "ac_cv_func_$ac_func=no"
10770 fi
10771 rm -f conftest*
10772 fi
10773
10774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10775   echo "$ac_t""yes" 1>&6
10776     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10777   cat >> confdefs.h <<EOF
10778 #define $ac_tr_func 1
10779 EOF
10780  
10781 else
10782   echo "$ac_t""no" 1>&6
10783 fi
10784 done
10785     
10786   else
10787     
10788   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
10789 echo "configure:10790: checking for _atan2f declaration" >&5
10790   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
10791     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
10792   echo $ac_n "(cached) $ac_c" 1>&6
10793 else
10794   
10795       
10796       ac_ext=C
10797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10798 ac_cpp='$CXXCPP $CPPFLAGS'
10799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10801 cross_compiling=$ac_cv_prog_cxx_cross
10802
10803       cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10806 #include <math.h>
10807 int main() {
10808  _atan2f(0, 0);
10809 ; return 0; }
10810 EOF
10811 if { (eval echo configure:10812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10812   rm -rf conftest*
10813   glibcpp_cv_func__atan2f_use=yes
10814 else
10815   echo "configure: failed program was:" >&5
10816   cat conftest.$ac_ext >&5
10817   rm -rf conftest*
10818   glibcpp_cv_func__atan2f_use=no
10819 fi
10820 rm -f conftest*
10821       ac_ext=c
10822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10823 ac_cpp='$CPP $CPPFLAGS'
10824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10826 cross_compiling=$ac_cv_prog_cc_cross
10827
10828     
10829 fi
10830
10831   fi
10832   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
10833
10834     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
10835       for ac_func in _atan2f
10836 do
10837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10838 echo "configure:10839: checking for $ac_func" >&5
10839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10840   echo $ac_n "(cached) $ac_c" 1>&6
10841 else
10842   cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10845 /* System header to define __stub macros and hopefully few prototypes,
10846     which can conflict with char $ac_func(); below.  */
10847 #include <assert.h>
10848 /* Override any gcc2 internal prototype to avoid an error.  */
10849 /* We use char because int might match the return type of a gcc2
10850     builtin and then its argument prototype would still apply.  */
10851 char $ac_func();
10852
10853 int main() {
10854
10855 /* The GNU C library defines this for functions which it implements
10856     to always fail with ENOSYS.  Some functions are actually named
10857     something starting with __ and the normal name is an alias.  */
10858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10859 choke me
10860 #else
10861 $ac_func();
10862 #endif
10863
10864 ; return 0; }
10865 EOF
10866 if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10867   rm -rf conftest*
10868   eval "ac_cv_func_$ac_func=yes"
10869 else
10870   echo "configure: failed program was:" >&5
10871   cat conftest.$ac_ext >&5
10872   rm -rf conftest*
10873   eval "ac_cv_func_$ac_func=no"
10874 fi
10875 rm -f conftest*
10876 fi
10877
10878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10879   echo "$ac_t""yes" 1>&6
10880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10881   cat >> confdefs.h <<EOF
10882 #define $ac_tr_func 1
10883 EOF
10884  
10885 else
10886   echo "$ac_t""no" 1>&6
10887 fi
10888 done
10889     
10890     fi
10891   fi
10892
10893   
10894   
10895   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
10896 echo "configure:10897: checking for fabsf declaration" >&5
10897   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
10898     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
10899   echo $ac_n "(cached) $ac_c" 1>&6
10900 else
10901   
10902       
10903       ac_ext=C
10904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10905 ac_cpp='$CXXCPP $CPPFLAGS'
10906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10908 cross_compiling=$ac_cv_prog_cxx_cross
10909
10910       cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10913 #include <math.h>
10914                       #ifdef HAVE_IEEEFP_H
10915                       #include <ieeefp.h>
10916                       #endif
10917                      
10918 int main() {
10919  fabsf(0);
10920 ; return 0; }
10921 EOF
10922 if { (eval echo configure:10923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10923   rm -rf conftest*
10924   glibcpp_cv_func_fabsf_use=yes
10925 else
10926   echo "configure: failed program was:" >&5
10927   cat conftest.$ac_ext >&5
10928   rm -rf conftest*
10929   glibcpp_cv_func_fabsf_use=no
10930 fi
10931 rm -f conftest*
10932       ac_ext=c
10933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10937 cross_compiling=$ac_cv_prog_cc_cross
10938
10939     
10940 fi
10941
10942   fi
10943   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
10944
10945   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
10946     for ac_func in fabsf
10947 do
10948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10949 echo "configure:10950: checking for $ac_func" >&5
10950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10951   echo $ac_n "(cached) $ac_c" 1>&6
10952 else
10953   cat > conftest.$ac_ext <<EOF
10954 #line 10955 "configure"
10955 #include "confdefs.h"
10956 /* System header to define __stub macros and hopefully few prototypes,
10957     which can conflict with char $ac_func(); below.  */
10958 #include <assert.h>
10959 /* Override any gcc2 internal prototype to avoid an error.  */
10960 /* We use char because int might match the return type of a gcc2
10961     builtin and then its argument prototype would still apply.  */
10962 char $ac_func();
10963
10964 int main() {
10965
10966 /* The GNU C library defines this for functions which it implements
10967     to always fail with ENOSYS.  Some functions are actually named
10968     something starting with __ and the normal name is an alias.  */
10969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10970 choke me
10971 #else
10972 $ac_func();
10973 #endif
10974
10975 ; return 0; }
10976 EOF
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10978   rm -rf conftest*
10979   eval "ac_cv_func_$ac_func=yes"
10980 else
10981   echo "configure: failed program was:" >&5
10982   cat conftest.$ac_ext >&5
10983   rm -rf conftest*
10984   eval "ac_cv_func_$ac_func=no"
10985 fi
10986 rm -f conftest*
10987 fi
10988
10989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10990   echo "$ac_t""yes" 1>&6
10991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10992   cat >> confdefs.h <<EOF
10993 #define $ac_tr_func 1
10994 EOF
10995  
10996 else
10997   echo "$ac_t""no" 1>&6
10998 fi
10999 done
11000     
11001   else
11002     
11003   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
11004 echo "configure:11005: checking for _fabsf declaration" >&5
11005   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
11006     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
11007   echo $ac_n "(cached) $ac_c" 1>&6
11008 else
11009   
11010       
11011       ac_ext=C
11012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11013 ac_cpp='$CXXCPP $CPPFLAGS'
11014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11016 cross_compiling=$ac_cv_prog_cxx_cross
11017
11018       cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11021 #include <math.h>
11022                       #ifdef HAVE_IEEEFP_H
11023                       #include <ieeefp.h>
11024                       #endif
11025                      
11026 int main() {
11027  _fabsf(0);
11028 ; return 0; }
11029 EOF
11030 if { (eval echo configure:11031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11031   rm -rf conftest*
11032   glibcpp_cv_func__fabsf_use=yes
11033 else
11034   echo "configure: failed program was:" >&5
11035   cat conftest.$ac_ext >&5
11036   rm -rf conftest*
11037   glibcpp_cv_func__fabsf_use=no
11038 fi
11039 rm -f conftest*
11040       ac_ext=c
11041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11042 ac_cpp='$CPP $CPPFLAGS'
11043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11045 cross_compiling=$ac_cv_prog_cc_cross
11046
11047     
11048 fi
11049
11050   fi
11051   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
11052
11053     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
11054       for ac_func in _fabsf
11055 do
11056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11057 echo "configure:11058: checking for $ac_func" >&5
11058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11059   echo $ac_n "(cached) $ac_c" 1>&6
11060 else
11061   cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11064 /* System header to define __stub macros and hopefully few prototypes,
11065     which can conflict with char $ac_func(); below.  */
11066 #include <assert.h>
11067 /* Override any gcc2 internal prototype to avoid an error.  */
11068 /* We use char because int might match the return type of a gcc2
11069     builtin and then its argument prototype would still apply.  */
11070 char $ac_func();
11071
11072 int main() {
11073
11074 /* The GNU C library defines this for functions which it implements
11075     to always fail with ENOSYS.  Some functions are actually named
11076     something starting with __ and the normal name is an alias.  */
11077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11078 choke me
11079 #else
11080 $ac_func();
11081 #endif
11082
11083 ; return 0; }
11084 EOF
11085 if { (eval echo configure:11086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11086   rm -rf conftest*
11087   eval "ac_cv_func_$ac_func=yes"
11088 else
11089   echo "configure: failed program was:" >&5
11090   cat conftest.$ac_ext >&5
11091   rm -rf conftest*
11092   eval "ac_cv_func_$ac_func=no"
11093 fi
11094 rm -f conftest*
11095 fi
11096
11097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11098   echo "$ac_t""yes" 1>&6
11099     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11100   cat >> confdefs.h <<EOF
11101 #define $ac_tr_func 1
11102 EOF
11103  
11104 else
11105   echo "$ac_t""no" 1>&6
11106 fi
11107 done
11108     
11109     fi
11110   fi
11111
11112   
11113   
11114   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
11115 echo "configure:11116: checking for fmodf declaration" >&5
11116   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
11117     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
11118   echo $ac_n "(cached) $ac_c" 1>&6
11119 else
11120   
11121       
11122       ac_ext=C
11123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11124 ac_cpp='$CXXCPP $CPPFLAGS'
11125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11127 cross_compiling=$ac_cv_prog_cxx_cross
11128
11129       cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 #include <math.h>
11133 int main() {
11134  fmodf(0, 0);
11135 ; return 0; }
11136 EOF
11137 if { (eval echo configure:11138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11138   rm -rf conftest*
11139   glibcpp_cv_func_fmodf_use=yes
11140 else
11141   echo "configure: failed program was:" >&5
11142   cat conftest.$ac_ext >&5
11143   rm -rf conftest*
11144   glibcpp_cv_func_fmodf_use=no
11145 fi
11146 rm -f conftest*
11147       ac_ext=c
11148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11149 ac_cpp='$CPP $CPPFLAGS'
11150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11152 cross_compiling=$ac_cv_prog_cc_cross
11153
11154     
11155 fi
11156
11157   fi
11158   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11159
11160   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11161     for ac_func in fmodf
11162 do
11163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11164 echo "configure:11165: checking for $ac_func" >&5
11165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11166   echo $ac_n "(cached) $ac_c" 1>&6
11167 else
11168   cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11171 /* System header to define __stub macros and hopefully few prototypes,
11172     which can conflict with char $ac_func(); below.  */
11173 #include <assert.h>
11174 /* Override any gcc2 internal prototype to avoid an error.  */
11175 /* We use char because int might match the return type of a gcc2
11176     builtin and then its argument prototype would still apply.  */
11177 char $ac_func();
11178
11179 int main() {
11180
11181 /* The GNU C library defines this for functions which it implements
11182     to always fail with ENOSYS.  Some functions are actually named
11183     something starting with __ and the normal name is an alias.  */
11184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11185 choke me
11186 #else
11187 $ac_func();
11188 #endif
11189
11190 ; return 0; }
11191 EOF
11192 if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11193   rm -rf conftest*
11194   eval "ac_cv_func_$ac_func=yes"
11195 else
11196   echo "configure: failed program was:" >&5
11197   cat conftest.$ac_ext >&5
11198   rm -rf conftest*
11199   eval "ac_cv_func_$ac_func=no"
11200 fi
11201 rm -f conftest*
11202 fi
11203
11204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11205   echo "$ac_t""yes" 1>&6
11206     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11207   cat >> confdefs.h <<EOF
11208 #define $ac_tr_func 1
11209 EOF
11210  
11211 else
11212   echo "$ac_t""no" 1>&6
11213 fi
11214 done
11215     
11216   else
11217     
11218   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
11219 echo "configure:11220: checking for _fmodf declaration" >&5
11220   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
11221     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
11222   echo $ac_n "(cached) $ac_c" 1>&6
11223 else
11224   
11225       
11226       ac_ext=C
11227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11228 ac_cpp='$CXXCPP $CPPFLAGS'
11229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11231 cross_compiling=$ac_cv_prog_cxx_cross
11232
11233       cat > conftest.$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11236 #include <math.h>
11237 int main() {
11238  _fmodf(0, 0);
11239 ; return 0; }
11240 EOF
11241 if { (eval echo configure:11242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11242   rm -rf conftest*
11243   glibcpp_cv_func__fmodf_use=yes
11244 else
11245   echo "configure: failed program was:" >&5
11246   cat conftest.$ac_ext >&5
11247   rm -rf conftest*
11248   glibcpp_cv_func__fmodf_use=no
11249 fi
11250 rm -f conftest*
11251       ac_ext=c
11252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11253 ac_cpp='$CPP $CPPFLAGS'
11254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11256 cross_compiling=$ac_cv_prog_cc_cross
11257
11258     
11259 fi
11260
11261   fi
11262   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
11263
11264     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
11265       for ac_func in _fmodf
11266 do
11267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11268 echo "configure:11269: checking for $ac_func" >&5
11269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11270   echo $ac_n "(cached) $ac_c" 1>&6
11271 else
11272   cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11275 /* System header to define __stub macros and hopefully few prototypes,
11276     which can conflict with char $ac_func(); below.  */
11277 #include <assert.h>
11278 /* Override any gcc2 internal prototype to avoid an error.  */
11279 /* We use char because int might match the return type of a gcc2
11280     builtin and then its argument prototype would still apply.  */
11281 char $ac_func();
11282
11283 int main() {
11284
11285 /* The GNU C library defines this for functions which it implements
11286     to always fail with ENOSYS.  Some functions are actually named
11287     something starting with __ and the normal name is an alias.  */
11288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11289 choke me
11290 #else
11291 $ac_func();
11292 #endif
11293
11294 ; return 0; }
11295 EOF
11296 if { (eval echo configure:11297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11297   rm -rf conftest*
11298   eval "ac_cv_func_$ac_func=yes"
11299 else
11300   echo "configure: failed program was:" >&5
11301   cat conftest.$ac_ext >&5
11302   rm -rf conftest*
11303   eval "ac_cv_func_$ac_func=no"
11304 fi
11305 rm -f conftest*
11306 fi
11307
11308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11309   echo "$ac_t""yes" 1>&6
11310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11311   cat >> confdefs.h <<EOF
11312 #define $ac_tr_func 1
11313 EOF
11314  
11315 else
11316   echo "$ac_t""no" 1>&6
11317 fi
11318 done
11319     
11320     fi
11321   fi
11322
11323   
11324   
11325   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
11326 echo "configure:11327: checking for frexpf declaration" >&5
11327   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
11328     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
11329   echo $ac_n "(cached) $ac_c" 1>&6
11330 else
11331   
11332       
11333       ac_ext=C
11334 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11335 ac_cpp='$CXXCPP $CPPFLAGS'
11336 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11337 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11338 cross_compiling=$ac_cv_prog_cxx_cross
11339
11340       cat > conftest.$ac_ext <<EOF
11341 #line 11342 "configure"
11342 #include "confdefs.h"
11343 #include <math.h>
11344 int main() {
11345  frexpf(0, 0);
11346 ; return 0; }
11347 EOF
11348 if { (eval echo configure:11349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11349   rm -rf conftest*
11350   glibcpp_cv_func_frexpf_use=yes
11351 else
11352   echo "configure: failed program was:" >&5
11353   cat conftest.$ac_ext >&5
11354   rm -rf conftest*
11355   glibcpp_cv_func_frexpf_use=no
11356 fi
11357 rm -f conftest*
11358       ac_ext=c
11359 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11360 ac_cpp='$CPP $CPPFLAGS'
11361 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11362 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11363 cross_compiling=$ac_cv_prog_cc_cross
11364
11365     
11366 fi
11367
11368   fi
11369   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
11370
11371   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
11372     for ac_func in frexpf
11373 do
11374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11375 echo "configure:11376: checking for $ac_func" >&5
11376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11377   echo $ac_n "(cached) $ac_c" 1>&6
11378 else
11379   cat > conftest.$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11382 /* System header to define __stub macros and hopefully few prototypes,
11383     which can conflict with char $ac_func(); below.  */
11384 #include <assert.h>
11385 /* Override any gcc2 internal prototype to avoid an error.  */
11386 /* We use char because int might match the return type of a gcc2
11387     builtin and then its argument prototype would still apply.  */
11388 char $ac_func();
11389
11390 int main() {
11391
11392 /* The GNU C library defines this for functions which it implements
11393     to always fail with ENOSYS.  Some functions are actually named
11394     something starting with __ and the normal name is an alias.  */
11395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11396 choke me
11397 #else
11398 $ac_func();
11399 #endif
11400
11401 ; return 0; }
11402 EOF
11403 if { (eval echo configure:11404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11404   rm -rf conftest*
11405   eval "ac_cv_func_$ac_func=yes"
11406 else
11407   echo "configure: failed program was:" >&5
11408   cat conftest.$ac_ext >&5
11409   rm -rf conftest*
11410   eval "ac_cv_func_$ac_func=no"
11411 fi
11412 rm -f conftest*
11413 fi
11414
11415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11416   echo "$ac_t""yes" 1>&6
11417     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11418   cat >> confdefs.h <<EOF
11419 #define $ac_tr_func 1
11420 EOF
11421  
11422 else
11423   echo "$ac_t""no" 1>&6
11424 fi
11425 done
11426     
11427   else
11428     
11429   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
11430 echo "configure:11431: checking for _frexpf declaration" >&5
11431   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
11432     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
11433   echo $ac_n "(cached) $ac_c" 1>&6
11434 else
11435   
11436       
11437       ac_ext=C
11438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11439 ac_cpp='$CXXCPP $CPPFLAGS'
11440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11442 cross_compiling=$ac_cv_prog_cxx_cross
11443
11444       cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 #include <math.h>
11448 int main() {
11449  _frexpf(0, 0);
11450 ; return 0; }
11451 EOF
11452 if { (eval echo configure:11453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11453   rm -rf conftest*
11454   glibcpp_cv_func__frexpf_use=yes
11455 else
11456   echo "configure: failed program was:" >&5
11457   cat conftest.$ac_ext >&5
11458   rm -rf conftest*
11459   glibcpp_cv_func__frexpf_use=no
11460 fi
11461 rm -f conftest*
11462       ac_ext=c
11463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11464 ac_cpp='$CPP $CPPFLAGS'
11465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11467 cross_compiling=$ac_cv_prog_cc_cross
11468
11469     
11470 fi
11471
11472   fi
11473   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
11474
11475     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
11476       for ac_func in _frexpf
11477 do
11478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11479 echo "configure:11480: checking for $ac_func" >&5
11480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11481   echo $ac_n "(cached) $ac_c" 1>&6
11482 else
11483   cat > conftest.$ac_ext <<EOF
11484 #line 11485 "configure"
11485 #include "confdefs.h"
11486 /* System header to define __stub macros and hopefully few prototypes,
11487     which can conflict with char $ac_func(); below.  */
11488 #include <assert.h>
11489 /* Override any gcc2 internal prototype to avoid an error.  */
11490 /* We use char because int might match the return type of a gcc2
11491     builtin and then its argument prototype would still apply.  */
11492 char $ac_func();
11493
11494 int main() {
11495
11496 /* The GNU C library defines this for functions which it implements
11497     to always fail with ENOSYS.  Some functions are actually named
11498     something starting with __ and the normal name is an alias.  */
11499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11500 choke me
11501 #else
11502 $ac_func();
11503 #endif
11504
11505 ; return 0; }
11506 EOF
11507 if { (eval echo configure:11508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11508   rm -rf conftest*
11509   eval "ac_cv_func_$ac_func=yes"
11510 else
11511   echo "configure: failed program was:" >&5
11512   cat conftest.$ac_ext >&5
11513   rm -rf conftest*
11514   eval "ac_cv_func_$ac_func=no"
11515 fi
11516 rm -f conftest*
11517 fi
11518
11519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11520   echo "$ac_t""yes" 1>&6
11521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11522   cat >> confdefs.h <<EOF
11523 #define $ac_tr_func 1
11524 EOF
11525  
11526 else
11527   echo "$ac_t""no" 1>&6
11528 fi
11529 done
11530     
11531     fi
11532   fi
11533
11534   
11535   
11536   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
11537 echo "configure:11538: checking for hypotf declaration" >&5
11538   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
11539     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
11540   echo $ac_n "(cached) $ac_c" 1>&6
11541 else
11542   
11543       
11544       ac_ext=C
11545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11546 ac_cpp='$CXXCPP $CPPFLAGS'
11547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11549 cross_compiling=$ac_cv_prog_cxx_cross
11550
11551       cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 #include <math.h>
11555 int main() {
11556  hypotf(0, 0);
11557 ; return 0; }
11558 EOF
11559 if { (eval echo configure:11560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11560   rm -rf conftest*
11561   glibcpp_cv_func_hypotf_use=yes
11562 else
11563   echo "configure: failed program was:" >&5
11564   cat conftest.$ac_ext >&5
11565   rm -rf conftest*
11566   glibcpp_cv_func_hypotf_use=no
11567 fi
11568 rm -f conftest*
11569       ac_ext=c
11570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11571 ac_cpp='$CPP $CPPFLAGS'
11572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11574 cross_compiling=$ac_cv_prog_cc_cross
11575
11576     
11577 fi
11578
11579   fi
11580   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
11581
11582   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
11583     for ac_func in hypotf
11584 do
11585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11586 echo "configure:11587: checking for $ac_func" >&5
11587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11588   echo $ac_n "(cached) $ac_c" 1>&6
11589 else
11590   cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593 /* System header to define __stub macros and hopefully few prototypes,
11594     which can conflict with char $ac_func(); below.  */
11595 #include <assert.h>
11596 /* Override any gcc2 internal prototype to avoid an error.  */
11597 /* We use char because int might match the return type of a gcc2
11598     builtin and then its argument prototype would still apply.  */
11599 char $ac_func();
11600
11601 int main() {
11602
11603 /* The GNU C library defines this for functions which it implements
11604     to always fail with ENOSYS.  Some functions are actually named
11605     something starting with __ and the normal name is an alias.  */
11606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11607 choke me
11608 #else
11609 $ac_func();
11610 #endif
11611
11612 ; return 0; }
11613 EOF
11614 if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11615   rm -rf conftest*
11616   eval "ac_cv_func_$ac_func=yes"
11617 else
11618   echo "configure: failed program was:" >&5
11619   cat conftest.$ac_ext >&5
11620   rm -rf conftest*
11621   eval "ac_cv_func_$ac_func=no"
11622 fi
11623 rm -f conftest*
11624 fi
11625
11626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11627   echo "$ac_t""yes" 1>&6
11628     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11629   cat >> confdefs.h <<EOF
11630 #define $ac_tr_func 1
11631 EOF
11632  
11633 else
11634   echo "$ac_t""no" 1>&6
11635 fi
11636 done
11637     
11638   else
11639     
11640   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
11641 echo "configure:11642: checking for _hypotf declaration" >&5
11642   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
11643     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
11644   echo $ac_n "(cached) $ac_c" 1>&6
11645 else
11646   
11647       
11648       ac_ext=C
11649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11650 ac_cpp='$CXXCPP $CPPFLAGS'
11651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11653 cross_compiling=$ac_cv_prog_cxx_cross
11654
11655       cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure"
11657 #include "confdefs.h"
11658 #include <math.h>
11659 int main() {
11660  _hypotf(0, 0);
11661 ; return 0; }
11662 EOF
11663 if { (eval echo configure:11664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11664   rm -rf conftest*
11665   glibcpp_cv_func__hypotf_use=yes
11666 else
11667   echo "configure: failed program was:" >&5
11668   cat conftest.$ac_ext >&5
11669   rm -rf conftest*
11670   glibcpp_cv_func__hypotf_use=no
11671 fi
11672 rm -f conftest*
11673       ac_ext=c
11674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11675 ac_cpp='$CPP $CPPFLAGS'
11676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11678 cross_compiling=$ac_cv_prog_cc_cross
11679
11680     
11681 fi
11682
11683   fi
11684   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
11685
11686     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
11687       for ac_func in _hypotf
11688 do
11689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11690 echo "configure:11691: checking for $ac_func" >&5
11691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11692   echo $ac_n "(cached) $ac_c" 1>&6
11693 else
11694   cat > conftest.$ac_ext <<EOF
11695 #line 11696 "configure"
11696 #include "confdefs.h"
11697 /* System header to define __stub macros and hopefully few prototypes,
11698     which can conflict with char $ac_func(); below.  */
11699 #include <assert.h>
11700 /* Override any gcc2 internal prototype to avoid an error.  */
11701 /* We use char because int might match the return type of a gcc2
11702     builtin and then its argument prototype would still apply.  */
11703 char $ac_func();
11704
11705 int main() {
11706
11707 /* The GNU C library defines this for functions which it implements
11708     to always fail with ENOSYS.  Some functions are actually named
11709     something starting with __ and the normal name is an alias.  */
11710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11711 choke me
11712 #else
11713 $ac_func();
11714 #endif
11715
11716 ; return 0; }
11717 EOF
11718 if { (eval echo configure:11719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11719   rm -rf conftest*
11720   eval "ac_cv_func_$ac_func=yes"
11721 else
11722   echo "configure: failed program was:" >&5
11723   cat conftest.$ac_ext >&5
11724   rm -rf conftest*
11725   eval "ac_cv_func_$ac_func=no"
11726 fi
11727 rm -f conftest*
11728 fi
11729
11730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11731   echo "$ac_t""yes" 1>&6
11732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11733   cat >> confdefs.h <<EOF
11734 #define $ac_tr_func 1
11735 EOF
11736  
11737 else
11738   echo "$ac_t""no" 1>&6
11739 fi
11740 done
11741     
11742     fi
11743   fi
11744
11745   
11746   
11747   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
11748 echo "configure:11749: checking for ldexpf declaration" >&5
11749   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
11750     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
11751   echo $ac_n "(cached) $ac_c" 1>&6
11752 else
11753   
11754       
11755       ac_ext=C
11756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11757 ac_cpp='$CXXCPP $CPPFLAGS'
11758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11760 cross_compiling=$ac_cv_prog_cxx_cross
11761
11762       cat > conftest.$ac_ext <<EOF
11763 #line 11764 "configure"
11764 #include "confdefs.h"
11765 #include <math.h>
11766 int main() {
11767  ldexpf(0, 0);
11768 ; return 0; }
11769 EOF
11770 if { (eval echo configure:11771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11771   rm -rf conftest*
11772   glibcpp_cv_func_ldexpf_use=yes
11773 else
11774   echo "configure: failed program was:" >&5
11775   cat conftest.$ac_ext >&5
11776   rm -rf conftest*
11777   glibcpp_cv_func_ldexpf_use=no
11778 fi
11779 rm -f conftest*
11780       ac_ext=c
11781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11782 ac_cpp='$CPP $CPPFLAGS'
11783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11785 cross_compiling=$ac_cv_prog_cc_cross
11786
11787     
11788 fi
11789
11790   fi
11791   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
11792
11793   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
11794     for ac_func in ldexpf
11795 do
11796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11797 echo "configure:11798: checking for $ac_func" >&5
11798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11799   echo $ac_n "(cached) $ac_c" 1>&6
11800 else
11801   cat > conftest.$ac_ext <<EOF
11802 #line 11803 "configure"
11803 #include "confdefs.h"
11804 /* System header to define __stub macros and hopefully few prototypes,
11805     which can conflict with char $ac_func(); below.  */
11806 #include <assert.h>
11807 /* Override any gcc2 internal prototype to avoid an error.  */
11808 /* We use char because int might match the return type of a gcc2
11809     builtin and then its argument prototype would still apply.  */
11810 char $ac_func();
11811
11812 int main() {
11813
11814 /* The GNU C library defines this for functions which it implements
11815     to always fail with ENOSYS.  Some functions are actually named
11816     something starting with __ and the normal name is an alias.  */
11817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11818 choke me
11819 #else
11820 $ac_func();
11821 #endif
11822
11823 ; return 0; }
11824 EOF
11825 if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11826   rm -rf conftest*
11827   eval "ac_cv_func_$ac_func=yes"
11828 else
11829   echo "configure: failed program was:" >&5
11830   cat conftest.$ac_ext >&5
11831   rm -rf conftest*
11832   eval "ac_cv_func_$ac_func=no"
11833 fi
11834 rm -f conftest*
11835 fi
11836
11837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11838   echo "$ac_t""yes" 1>&6
11839     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11840   cat >> confdefs.h <<EOF
11841 #define $ac_tr_func 1
11842 EOF
11843  
11844 else
11845   echo "$ac_t""no" 1>&6
11846 fi
11847 done
11848     
11849   else
11850     
11851   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
11852 echo "configure:11853: checking for _ldexpf declaration" >&5
11853   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
11854     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
11855   echo $ac_n "(cached) $ac_c" 1>&6
11856 else
11857   
11858       
11859       ac_ext=C
11860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11861 ac_cpp='$CXXCPP $CPPFLAGS'
11862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11864 cross_compiling=$ac_cv_prog_cxx_cross
11865
11866       cat > conftest.$ac_ext <<EOF
11867 #line 11868 "configure"
11868 #include "confdefs.h"
11869 #include <math.h>
11870 int main() {
11871  _ldexpf(0, 0);
11872 ; return 0; }
11873 EOF
11874 if { (eval echo configure:11875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11875   rm -rf conftest*
11876   glibcpp_cv_func__ldexpf_use=yes
11877 else
11878   echo "configure: failed program was:" >&5
11879   cat conftest.$ac_ext >&5
11880   rm -rf conftest*
11881   glibcpp_cv_func__ldexpf_use=no
11882 fi
11883 rm -f conftest*
11884       ac_ext=c
11885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11886 ac_cpp='$CPP $CPPFLAGS'
11887 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11888 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11889 cross_compiling=$ac_cv_prog_cc_cross
11890
11891     
11892 fi
11893
11894   fi
11895   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
11896
11897     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
11898       for ac_func in _ldexpf
11899 do
11900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11901 echo "configure:11902: checking for $ac_func" >&5
11902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11903   echo $ac_n "(cached) $ac_c" 1>&6
11904 else
11905   cat > conftest.$ac_ext <<EOF
11906 #line 11907 "configure"
11907 #include "confdefs.h"
11908 /* System header to define __stub macros and hopefully few prototypes,
11909     which can conflict with char $ac_func(); below.  */
11910 #include <assert.h>
11911 /* Override any gcc2 internal prototype to avoid an error.  */
11912 /* We use char because int might match the return type of a gcc2
11913     builtin and then its argument prototype would still apply.  */
11914 char $ac_func();
11915
11916 int main() {
11917
11918 /* The GNU C library defines this for functions which it implements
11919     to always fail with ENOSYS.  Some functions are actually named
11920     something starting with __ and the normal name is an alias.  */
11921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11922 choke me
11923 #else
11924 $ac_func();
11925 #endif
11926
11927 ; return 0; }
11928 EOF
11929 if { (eval echo configure:11930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11930   rm -rf conftest*
11931   eval "ac_cv_func_$ac_func=yes"
11932 else
11933   echo "configure: failed program was:" >&5
11934   cat conftest.$ac_ext >&5
11935   rm -rf conftest*
11936   eval "ac_cv_func_$ac_func=no"
11937 fi
11938 rm -f conftest*
11939 fi
11940
11941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11942   echo "$ac_t""yes" 1>&6
11943     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11944   cat >> confdefs.h <<EOF
11945 #define $ac_tr_func 1
11946 EOF
11947  
11948 else
11949   echo "$ac_t""no" 1>&6
11950 fi
11951 done
11952     
11953     fi
11954   fi
11955
11956   
11957   
11958   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
11959 echo "configure:11960: checking for logf declaration" >&5
11960   if test x${glibcpp_cv_func_logf_use+set} != xset; then
11961     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
11962   echo $ac_n "(cached) $ac_c" 1>&6
11963 else
11964   
11965       
11966       ac_ext=C
11967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11968 ac_cpp='$CXXCPP $CPPFLAGS'
11969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11971 cross_compiling=$ac_cv_prog_cxx_cross
11972
11973       cat > conftest.$ac_ext <<EOF
11974 #line 11975 "configure"
11975 #include "confdefs.h"
11976 #include <math.h>
11977                       #ifdef HAVE_IEEEFP_H
11978                       #include <ieeefp.h>
11979                       #endif
11980                      
11981 int main() {
11982  logf(0);
11983 ; return 0; }
11984 EOF
11985 if { (eval echo configure:11986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11986   rm -rf conftest*
11987   glibcpp_cv_func_logf_use=yes
11988 else
11989   echo "configure: failed program was:" >&5
11990   cat conftest.$ac_ext >&5
11991   rm -rf conftest*
11992   glibcpp_cv_func_logf_use=no
11993 fi
11994 rm -f conftest*
11995       ac_ext=c
11996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11997 ac_cpp='$CPP $CPPFLAGS'
11998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12000 cross_compiling=$ac_cv_prog_cc_cross
12001
12002     
12003 fi
12004
12005   fi
12006   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
12007
12008   if test x$glibcpp_cv_func_logf_use = x"yes"; then
12009     for ac_func in logf
12010 do
12011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12012 echo "configure:12013: checking for $ac_func" >&5
12013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12014   echo $ac_n "(cached) $ac_c" 1>&6
12015 else
12016   cat > conftest.$ac_ext <<EOF
12017 #line 12018 "configure"
12018 #include "confdefs.h"
12019 /* System header to define __stub macros and hopefully few prototypes,
12020     which can conflict with char $ac_func(); below.  */
12021 #include <assert.h>
12022 /* Override any gcc2 internal prototype to avoid an error.  */
12023 /* We use char because int might match the return type of a gcc2
12024     builtin and then its argument prototype would still apply.  */
12025 char $ac_func();
12026
12027 int main() {
12028
12029 /* The GNU C library defines this for functions which it implements
12030     to always fail with ENOSYS.  Some functions are actually named
12031     something starting with __ and the normal name is an alias.  */
12032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12033 choke me
12034 #else
12035 $ac_func();
12036 #endif
12037
12038 ; return 0; }
12039 EOF
12040 if { (eval echo configure:12041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12041   rm -rf conftest*
12042   eval "ac_cv_func_$ac_func=yes"
12043 else
12044   echo "configure: failed program was:" >&5
12045   cat conftest.$ac_ext >&5
12046   rm -rf conftest*
12047   eval "ac_cv_func_$ac_func=no"
12048 fi
12049 rm -f conftest*
12050 fi
12051
12052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12053   echo "$ac_t""yes" 1>&6
12054     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12055   cat >> confdefs.h <<EOF
12056 #define $ac_tr_func 1
12057 EOF
12058  
12059 else
12060   echo "$ac_t""no" 1>&6
12061 fi
12062 done
12063     
12064   else
12065     
12066   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
12067 echo "configure:12068: checking for _logf declaration" >&5
12068   if test x${glibcpp_cv_func__logf_use+set} != xset; then
12069     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
12070   echo $ac_n "(cached) $ac_c" 1>&6
12071 else
12072   
12073       
12074       ac_ext=C
12075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12076 ac_cpp='$CXXCPP $CPPFLAGS'
12077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12079 cross_compiling=$ac_cv_prog_cxx_cross
12080
12081       cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure"
12083 #include "confdefs.h"
12084 #include <math.h>
12085                       #ifdef HAVE_IEEEFP_H
12086                       #include <ieeefp.h>
12087                       #endif
12088                      
12089 int main() {
12090  _logf(0);
12091 ; return 0; }
12092 EOF
12093 if { (eval echo configure:12094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12094   rm -rf conftest*
12095   glibcpp_cv_func__logf_use=yes
12096 else
12097   echo "configure: failed program was:" >&5
12098   cat conftest.$ac_ext >&5
12099   rm -rf conftest*
12100   glibcpp_cv_func__logf_use=no
12101 fi
12102 rm -f conftest*
12103       ac_ext=c
12104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12105 ac_cpp='$CPP $CPPFLAGS'
12106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12108 cross_compiling=$ac_cv_prog_cc_cross
12109
12110     
12111 fi
12112
12113   fi
12114   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
12115
12116     if test x$glibcpp_cv_func__logf_use = x"yes"; then
12117       for ac_func in _logf
12118 do
12119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12120 echo "configure:12121: checking for $ac_func" >&5
12121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12122   echo $ac_n "(cached) $ac_c" 1>&6
12123 else
12124   cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 /* System header to define __stub macros and hopefully few prototypes,
12128     which can conflict with char $ac_func(); below.  */
12129 #include <assert.h>
12130 /* Override any gcc2 internal prototype to avoid an error.  */
12131 /* We use char because int might match the return type of a gcc2
12132     builtin and then its argument prototype would still apply.  */
12133 char $ac_func();
12134
12135 int main() {
12136
12137 /* The GNU C library defines this for functions which it implements
12138     to always fail with ENOSYS.  Some functions are actually named
12139     something starting with __ and the normal name is an alias.  */
12140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12141 choke me
12142 #else
12143 $ac_func();
12144 #endif
12145
12146 ; return 0; }
12147 EOF
12148 if { (eval echo configure:12149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12149   rm -rf conftest*
12150   eval "ac_cv_func_$ac_func=yes"
12151 else
12152   echo "configure: failed program was:" >&5
12153   cat conftest.$ac_ext >&5
12154   rm -rf conftest*
12155   eval "ac_cv_func_$ac_func=no"
12156 fi
12157 rm -f conftest*
12158 fi
12159
12160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12161   echo "$ac_t""yes" 1>&6
12162     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12163   cat >> confdefs.h <<EOF
12164 #define $ac_tr_func 1
12165 EOF
12166  
12167 else
12168   echo "$ac_t""no" 1>&6
12169 fi
12170 done
12171     
12172     fi
12173   fi
12174
12175   
12176   
12177   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
12178 echo "configure:12179: checking for log10f declaration" >&5
12179   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
12180     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
12181   echo $ac_n "(cached) $ac_c" 1>&6
12182 else
12183   
12184       
12185       ac_ext=C
12186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12187 ac_cpp='$CXXCPP $CPPFLAGS'
12188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12190 cross_compiling=$ac_cv_prog_cxx_cross
12191
12192       cat > conftest.$ac_ext <<EOF
12193 #line 12194 "configure"
12194 #include "confdefs.h"
12195 #include <math.h>
12196                       #ifdef HAVE_IEEEFP_H
12197                       #include <ieeefp.h>
12198                       #endif
12199                      
12200 int main() {
12201  log10f(0);
12202 ; return 0; }
12203 EOF
12204 if { (eval echo configure:12205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12205   rm -rf conftest*
12206   glibcpp_cv_func_log10f_use=yes
12207 else
12208   echo "configure: failed program was:" >&5
12209   cat conftest.$ac_ext >&5
12210   rm -rf conftest*
12211   glibcpp_cv_func_log10f_use=no
12212 fi
12213 rm -f conftest*
12214       ac_ext=c
12215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12216 ac_cpp='$CPP $CPPFLAGS'
12217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12219 cross_compiling=$ac_cv_prog_cc_cross
12220
12221     
12222 fi
12223
12224   fi
12225   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
12226
12227   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
12228     for ac_func in log10f
12229 do
12230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12231 echo "configure:12232: checking for $ac_func" >&5
12232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12233   echo $ac_n "(cached) $ac_c" 1>&6
12234 else
12235   cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure"
12237 #include "confdefs.h"
12238 /* System header to define __stub macros and hopefully few prototypes,
12239     which can conflict with char $ac_func(); below.  */
12240 #include <assert.h>
12241 /* Override any gcc2 internal prototype to avoid an error.  */
12242 /* We use char because int might match the return type of a gcc2
12243     builtin and then its argument prototype would still apply.  */
12244 char $ac_func();
12245
12246 int main() {
12247
12248 /* The GNU C library defines this for functions which it implements
12249     to always fail with ENOSYS.  Some functions are actually named
12250     something starting with __ and the normal name is an alias.  */
12251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12252 choke me
12253 #else
12254 $ac_func();
12255 #endif
12256
12257 ; return 0; }
12258 EOF
12259 if { (eval echo configure:12260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12260   rm -rf conftest*
12261   eval "ac_cv_func_$ac_func=yes"
12262 else
12263   echo "configure: failed program was:" >&5
12264   cat conftest.$ac_ext >&5
12265   rm -rf conftest*
12266   eval "ac_cv_func_$ac_func=no"
12267 fi
12268 rm -f conftest*
12269 fi
12270
12271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12272   echo "$ac_t""yes" 1>&6
12273     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12274   cat >> confdefs.h <<EOF
12275 #define $ac_tr_func 1
12276 EOF
12277  
12278 else
12279   echo "$ac_t""no" 1>&6
12280 fi
12281 done
12282     
12283   else
12284     
12285   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
12286 echo "configure:12287: checking for _log10f declaration" >&5
12287   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
12288     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
12289   echo $ac_n "(cached) $ac_c" 1>&6
12290 else
12291   
12292       
12293       ac_ext=C
12294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12295 ac_cpp='$CXXCPP $CPPFLAGS'
12296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12298 cross_compiling=$ac_cv_prog_cxx_cross
12299
12300       cat > conftest.$ac_ext <<EOF
12301 #line 12302 "configure"
12302 #include "confdefs.h"
12303 #include <math.h>
12304                       #ifdef HAVE_IEEEFP_H
12305                       #include <ieeefp.h>
12306                       #endif
12307                      
12308 int main() {
12309  _log10f(0);
12310 ; return 0; }
12311 EOF
12312 if { (eval echo configure:12313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12313   rm -rf conftest*
12314   glibcpp_cv_func__log10f_use=yes
12315 else
12316   echo "configure: failed program was:" >&5
12317   cat conftest.$ac_ext >&5
12318   rm -rf conftest*
12319   glibcpp_cv_func__log10f_use=no
12320 fi
12321 rm -f conftest*
12322       ac_ext=c
12323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12324 ac_cpp='$CPP $CPPFLAGS'
12325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12327 cross_compiling=$ac_cv_prog_cc_cross
12328
12329     
12330 fi
12331
12332   fi
12333   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
12334
12335     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
12336       for ac_func in _log10f
12337 do
12338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12339 echo "configure:12340: checking for $ac_func" >&5
12340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12341   echo $ac_n "(cached) $ac_c" 1>&6
12342 else
12343   cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 /* System header to define __stub macros and hopefully few prototypes,
12347     which can conflict with char $ac_func(); below.  */
12348 #include <assert.h>
12349 /* Override any gcc2 internal prototype to avoid an error.  */
12350 /* We use char because int might match the return type of a gcc2
12351     builtin and then its argument prototype would still apply.  */
12352 char $ac_func();
12353
12354 int main() {
12355
12356 /* The GNU C library defines this for functions which it implements
12357     to always fail with ENOSYS.  Some functions are actually named
12358     something starting with __ and the normal name is an alias.  */
12359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12360 choke me
12361 #else
12362 $ac_func();
12363 #endif
12364
12365 ; return 0; }
12366 EOF
12367 if { (eval echo configure:12368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12368   rm -rf conftest*
12369   eval "ac_cv_func_$ac_func=yes"
12370 else
12371   echo "configure: failed program was:" >&5
12372   cat conftest.$ac_ext >&5
12373   rm -rf conftest*
12374   eval "ac_cv_func_$ac_func=no"
12375 fi
12376 rm -f conftest*
12377 fi
12378
12379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12380   echo "$ac_t""yes" 1>&6
12381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12382   cat >> confdefs.h <<EOF
12383 #define $ac_tr_func 1
12384 EOF
12385  
12386 else
12387   echo "$ac_t""no" 1>&6
12388 fi
12389 done
12390     
12391     fi
12392   fi
12393
12394   
12395   
12396   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
12397 echo "configure:12398: checking for modff declaration" >&5
12398   if test x${glibcpp_cv_func_modff_use+set} != xset; then
12399     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
12400   echo $ac_n "(cached) $ac_c" 1>&6
12401 else
12402   
12403       
12404       ac_ext=C
12405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12406 ac_cpp='$CXXCPP $CPPFLAGS'
12407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12409 cross_compiling=$ac_cv_prog_cxx_cross
12410
12411       cat > conftest.$ac_ext <<EOF
12412 #line 12413 "configure"
12413 #include "confdefs.h"
12414 #include <math.h>
12415 int main() {
12416  modff(0, 0);
12417 ; return 0; }
12418 EOF
12419 if { (eval echo configure:12420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12420   rm -rf conftest*
12421   glibcpp_cv_func_modff_use=yes
12422 else
12423   echo "configure: failed program was:" >&5
12424   cat conftest.$ac_ext >&5
12425   rm -rf conftest*
12426   glibcpp_cv_func_modff_use=no
12427 fi
12428 rm -f conftest*
12429       ac_ext=c
12430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12431 ac_cpp='$CPP $CPPFLAGS'
12432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12434 cross_compiling=$ac_cv_prog_cc_cross
12435
12436     
12437 fi
12438
12439   fi
12440   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
12441
12442   if test x$glibcpp_cv_func_modff_use = x"yes"; then
12443     for ac_func in modff
12444 do
12445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12446 echo "configure:12447: checking for $ac_func" >&5
12447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12448   echo $ac_n "(cached) $ac_c" 1>&6
12449 else
12450   cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 /* System header to define __stub macros and hopefully few prototypes,
12454     which can conflict with char $ac_func(); below.  */
12455 #include <assert.h>
12456 /* Override any gcc2 internal prototype to avoid an error.  */
12457 /* We use char because int might match the return type of a gcc2
12458     builtin and then its argument prototype would still apply.  */
12459 char $ac_func();
12460
12461 int main() {
12462
12463 /* The GNU C library defines this for functions which it implements
12464     to always fail with ENOSYS.  Some functions are actually named
12465     something starting with __ and the normal name is an alias.  */
12466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12467 choke me
12468 #else
12469 $ac_func();
12470 #endif
12471
12472 ; return 0; }
12473 EOF
12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12475   rm -rf conftest*
12476   eval "ac_cv_func_$ac_func=yes"
12477 else
12478   echo "configure: failed program was:" >&5
12479   cat conftest.$ac_ext >&5
12480   rm -rf conftest*
12481   eval "ac_cv_func_$ac_func=no"
12482 fi
12483 rm -f conftest*
12484 fi
12485
12486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12487   echo "$ac_t""yes" 1>&6
12488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12489   cat >> confdefs.h <<EOF
12490 #define $ac_tr_func 1
12491 EOF
12492  
12493 else
12494   echo "$ac_t""no" 1>&6
12495 fi
12496 done
12497     
12498   else
12499     
12500   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
12501 echo "configure:12502: checking for _modff declaration" >&5
12502   if test x${glibcpp_cv_func__modff_use+set} != xset; then
12503     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
12504   echo $ac_n "(cached) $ac_c" 1>&6
12505 else
12506   
12507       
12508       ac_ext=C
12509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12510 ac_cpp='$CXXCPP $CPPFLAGS'
12511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12513 cross_compiling=$ac_cv_prog_cxx_cross
12514
12515       cat > conftest.$ac_ext <<EOF
12516 #line 12517 "configure"
12517 #include "confdefs.h"
12518 #include <math.h>
12519 int main() {
12520  _modff(0, 0);
12521 ; return 0; }
12522 EOF
12523 if { (eval echo configure:12524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12524   rm -rf conftest*
12525   glibcpp_cv_func__modff_use=yes
12526 else
12527   echo "configure: failed program was:" >&5
12528   cat conftest.$ac_ext >&5
12529   rm -rf conftest*
12530   glibcpp_cv_func__modff_use=no
12531 fi
12532 rm -f conftest*
12533       ac_ext=c
12534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12535 ac_cpp='$CPP $CPPFLAGS'
12536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12538 cross_compiling=$ac_cv_prog_cc_cross
12539
12540     
12541 fi
12542
12543   fi
12544   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
12545
12546     if test x$glibcpp_cv_func__modff_use = x"yes"; then
12547       for ac_func in _modff
12548 do
12549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12550 echo "configure:12551: checking for $ac_func" >&5
12551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12552   echo $ac_n "(cached) $ac_c" 1>&6
12553 else
12554   cat > conftest.$ac_ext <<EOF
12555 #line 12556 "configure"
12556 #include "confdefs.h"
12557 /* System header to define __stub macros and hopefully few prototypes,
12558     which can conflict with char $ac_func(); below.  */
12559 #include <assert.h>
12560 /* Override any gcc2 internal prototype to avoid an error.  */
12561 /* We use char because int might match the return type of a gcc2
12562     builtin and then its argument prototype would still apply.  */
12563 char $ac_func();
12564
12565 int main() {
12566
12567 /* The GNU C library defines this for functions which it implements
12568     to always fail with ENOSYS.  Some functions are actually named
12569     something starting with __ and the normal name is an alias.  */
12570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12571 choke me
12572 #else
12573 $ac_func();
12574 #endif
12575
12576 ; return 0; }
12577 EOF
12578 if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12579   rm -rf conftest*
12580   eval "ac_cv_func_$ac_func=yes"
12581 else
12582   echo "configure: failed program was:" >&5
12583   cat conftest.$ac_ext >&5
12584   rm -rf conftest*
12585   eval "ac_cv_func_$ac_func=no"
12586 fi
12587 rm -f conftest*
12588 fi
12589
12590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12591   echo "$ac_t""yes" 1>&6
12592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12593   cat >> confdefs.h <<EOF
12594 #define $ac_tr_func 1
12595 EOF
12596  
12597 else
12598   echo "$ac_t""no" 1>&6
12599 fi
12600 done
12601     
12602     fi
12603   fi
12604
12605   
12606   
12607   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
12608 echo "configure:12609: checking for powf declaration" >&5
12609   if test x${glibcpp_cv_func_powf_use+set} != xset; then
12610     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
12611   echo $ac_n "(cached) $ac_c" 1>&6
12612 else
12613   
12614       
12615       ac_ext=C
12616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12617 ac_cpp='$CXXCPP $CPPFLAGS'
12618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12620 cross_compiling=$ac_cv_prog_cxx_cross
12621
12622       cat > conftest.$ac_ext <<EOF
12623 #line 12624 "configure"
12624 #include "confdefs.h"
12625 #include <math.h>
12626 int main() {
12627  powf(0, 0);
12628 ; return 0; }
12629 EOF
12630 if { (eval echo configure:12631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12631   rm -rf conftest*
12632   glibcpp_cv_func_powf_use=yes
12633 else
12634   echo "configure: failed program was:" >&5
12635   cat conftest.$ac_ext >&5
12636   rm -rf conftest*
12637   glibcpp_cv_func_powf_use=no
12638 fi
12639 rm -f conftest*
12640       ac_ext=c
12641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12642 ac_cpp='$CPP $CPPFLAGS'
12643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12645 cross_compiling=$ac_cv_prog_cc_cross
12646
12647     
12648 fi
12649
12650   fi
12651   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
12652
12653   if test x$glibcpp_cv_func_powf_use = x"yes"; then
12654     for ac_func in powf
12655 do
12656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12657 echo "configure:12658: checking for $ac_func" >&5
12658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12659   echo $ac_n "(cached) $ac_c" 1>&6
12660 else
12661   cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 /* System header to define __stub macros and hopefully few prototypes,
12665     which can conflict with char $ac_func(); below.  */
12666 #include <assert.h>
12667 /* Override any gcc2 internal prototype to avoid an error.  */
12668 /* We use char because int might match the return type of a gcc2
12669     builtin and then its argument prototype would still apply.  */
12670 char $ac_func();
12671
12672 int main() {
12673
12674 /* The GNU C library defines this for functions which it implements
12675     to always fail with ENOSYS.  Some functions are actually named
12676     something starting with __ and the normal name is an alias.  */
12677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12678 choke me
12679 #else
12680 $ac_func();
12681 #endif
12682
12683 ; return 0; }
12684 EOF
12685 if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12686   rm -rf conftest*
12687   eval "ac_cv_func_$ac_func=yes"
12688 else
12689   echo "configure: failed program was:" >&5
12690   cat conftest.$ac_ext >&5
12691   rm -rf conftest*
12692   eval "ac_cv_func_$ac_func=no"
12693 fi
12694 rm -f conftest*
12695 fi
12696
12697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12698   echo "$ac_t""yes" 1>&6
12699     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12700   cat >> confdefs.h <<EOF
12701 #define $ac_tr_func 1
12702 EOF
12703  
12704 else
12705   echo "$ac_t""no" 1>&6
12706 fi
12707 done
12708     
12709   else
12710     
12711   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
12712 echo "configure:12713: checking for _powf declaration" >&5
12713   if test x${glibcpp_cv_func__powf_use+set} != xset; then
12714     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
12715   echo $ac_n "(cached) $ac_c" 1>&6
12716 else
12717   
12718       
12719       ac_ext=C
12720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12721 ac_cpp='$CXXCPP $CPPFLAGS'
12722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12724 cross_compiling=$ac_cv_prog_cxx_cross
12725
12726       cat > conftest.$ac_ext <<EOF
12727 #line 12728 "configure"
12728 #include "confdefs.h"
12729 #include <math.h>
12730 int main() {
12731  _powf(0, 0);
12732 ; return 0; }
12733 EOF
12734 if { (eval echo configure:12735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12735   rm -rf conftest*
12736   glibcpp_cv_func__powf_use=yes
12737 else
12738   echo "configure: failed program was:" >&5
12739   cat conftest.$ac_ext >&5
12740   rm -rf conftest*
12741   glibcpp_cv_func__powf_use=no
12742 fi
12743 rm -f conftest*
12744       ac_ext=c
12745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12749 cross_compiling=$ac_cv_prog_cc_cross
12750
12751     
12752 fi
12753
12754   fi
12755   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
12756
12757     if test x$glibcpp_cv_func__powf_use = x"yes"; then
12758       for ac_func in _powf
12759 do
12760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12761 echo "configure:12762: checking for $ac_func" >&5
12762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12763   echo $ac_n "(cached) $ac_c" 1>&6
12764 else
12765   cat > conftest.$ac_ext <<EOF
12766 #line 12767 "configure"
12767 #include "confdefs.h"
12768 /* System header to define __stub macros and hopefully few prototypes,
12769     which can conflict with char $ac_func(); below.  */
12770 #include <assert.h>
12771 /* Override any gcc2 internal prototype to avoid an error.  */
12772 /* We use char because int might match the return type of a gcc2
12773     builtin and then its argument prototype would still apply.  */
12774 char $ac_func();
12775
12776 int main() {
12777
12778 /* The GNU C library defines this for functions which it implements
12779     to always fail with ENOSYS.  Some functions are actually named
12780     something starting with __ and the normal name is an alias.  */
12781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12782 choke me
12783 #else
12784 $ac_func();
12785 #endif
12786
12787 ; return 0; }
12788 EOF
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12790   rm -rf conftest*
12791   eval "ac_cv_func_$ac_func=yes"
12792 else
12793   echo "configure: failed program was:" >&5
12794   cat conftest.$ac_ext >&5
12795   rm -rf conftest*
12796   eval "ac_cv_func_$ac_func=no"
12797 fi
12798 rm -f conftest*
12799 fi
12800
12801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12802   echo "$ac_t""yes" 1>&6
12803     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12804   cat >> confdefs.h <<EOF
12805 #define $ac_tr_func 1
12806 EOF
12807  
12808 else
12809   echo "$ac_t""no" 1>&6
12810 fi
12811 done
12812     
12813     fi
12814   fi
12815
12816   
12817   
12818   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
12819 echo "configure:12820: checking for sqrtf declaration" >&5
12820   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
12821     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
12822   echo $ac_n "(cached) $ac_c" 1>&6
12823 else
12824   
12825       
12826       ac_ext=C
12827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12828 ac_cpp='$CXXCPP $CPPFLAGS'
12829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12831 cross_compiling=$ac_cv_prog_cxx_cross
12832
12833       cat > conftest.$ac_ext <<EOF
12834 #line 12835 "configure"
12835 #include "confdefs.h"
12836 #include <math.h>
12837                       #ifdef HAVE_IEEEFP_H
12838                       #include <ieeefp.h>
12839                       #endif
12840                      
12841 int main() {
12842  sqrtf(0);
12843 ; return 0; }
12844 EOF
12845 if { (eval echo configure:12846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12846   rm -rf conftest*
12847   glibcpp_cv_func_sqrtf_use=yes
12848 else
12849   echo "configure: failed program was:" >&5
12850   cat conftest.$ac_ext >&5
12851   rm -rf conftest*
12852   glibcpp_cv_func_sqrtf_use=no
12853 fi
12854 rm -f conftest*
12855       ac_ext=c
12856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12857 ac_cpp='$CPP $CPPFLAGS'
12858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12860 cross_compiling=$ac_cv_prog_cc_cross
12861
12862     
12863 fi
12864
12865   fi
12866   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
12867
12868   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
12869     for ac_func in sqrtf
12870 do
12871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12872 echo "configure:12873: checking for $ac_func" >&5
12873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12874   echo $ac_n "(cached) $ac_c" 1>&6
12875 else
12876   cat > conftest.$ac_ext <<EOF
12877 #line 12878 "configure"
12878 #include "confdefs.h"
12879 /* System header to define __stub macros and hopefully few prototypes,
12880     which can conflict with char $ac_func(); below.  */
12881 #include <assert.h>
12882 /* Override any gcc2 internal prototype to avoid an error.  */
12883 /* We use char because int might match the return type of a gcc2
12884     builtin and then its argument prototype would still apply.  */
12885 char $ac_func();
12886
12887 int main() {
12888
12889 /* The GNU C library defines this for functions which it implements
12890     to always fail with ENOSYS.  Some functions are actually named
12891     something starting with __ and the normal name is an alias.  */
12892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12893 choke me
12894 #else
12895 $ac_func();
12896 #endif
12897
12898 ; return 0; }
12899 EOF
12900 if { (eval echo configure:12901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12901   rm -rf conftest*
12902   eval "ac_cv_func_$ac_func=yes"
12903 else
12904   echo "configure: failed program was:" >&5
12905   cat conftest.$ac_ext >&5
12906   rm -rf conftest*
12907   eval "ac_cv_func_$ac_func=no"
12908 fi
12909 rm -f conftest*
12910 fi
12911
12912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12913   echo "$ac_t""yes" 1>&6
12914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12915   cat >> confdefs.h <<EOF
12916 #define $ac_tr_func 1
12917 EOF
12918  
12919 else
12920   echo "$ac_t""no" 1>&6
12921 fi
12922 done
12923     
12924   else
12925     
12926   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
12927 echo "configure:12928: checking for _sqrtf declaration" >&5
12928   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
12929     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
12930   echo $ac_n "(cached) $ac_c" 1>&6
12931 else
12932   
12933       
12934       ac_ext=C
12935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12939 cross_compiling=$ac_cv_prog_cxx_cross
12940
12941       cat > conftest.$ac_ext <<EOF
12942 #line 12943 "configure"
12943 #include "confdefs.h"
12944 #include <math.h>
12945                       #ifdef HAVE_IEEEFP_H
12946                       #include <ieeefp.h>
12947                       #endif
12948                      
12949 int main() {
12950  _sqrtf(0);
12951 ; return 0; }
12952 EOF
12953 if { (eval echo configure:12954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12954   rm -rf conftest*
12955   glibcpp_cv_func__sqrtf_use=yes
12956 else
12957   echo "configure: failed program was:" >&5
12958   cat conftest.$ac_ext >&5
12959   rm -rf conftest*
12960   glibcpp_cv_func__sqrtf_use=no
12961 fi
12962 rm -f conftest*
12963       ac_ext=c
12964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12965 ac_cpp='$CPP $CPPFLAGS'
12966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12968 cross_compiling=$ac_cv_prog_cc_cross
12969
12970     
12971 fi
12972
12973   fi
12974   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12975
12976     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12977       for ac_func in _sqrtf
12978 do
12979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12980 echo "configure:12981: checking for $ac_func" >&5
12981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12982   echo $ac_n "(cached) $ac_c" 1>&6
12983 else
12984   cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12987 /* System header to define __stub macros and hopefully few prototypes,
12988     which can conflict with char $ac_func(); below.  */
12989 #include <assert.h>
12990 /* Override any gcc2 internal prototype to avoid an error.  */
12991 /* We use char because int might match the return type of a gcc2
12992     builtin and then its argument prototype would still apply.  */
12993 char $ac_func();
12994
12995 int main() {
12996
12997 /* The GNU C library defines this for functions which it implements
12998     to always fail with ENOSYS.  Some functions are actually named
12999     something starting with __ and the normal name is an alias.  */
13000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13001 choke me
13002 #else
13003 $ac_func();
13004 #endif
13005
13006 ; return 0; }
13007 EOF
13008 if { (eval echo configure:13009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13009   rm -rf conftest*
13010   eval "ac_cv_func_$ac_func=yes"
13011 else
13012   echo "configure: failed program was:" >&5
13013   cat conftest.$ac_ext >&5
13014   rm -rf conftest*
13015   eval "ac_cv_func_$ac_func=no"
13016 fi
13017 rm -f conftest*
13018 fi
13019
13020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13021   echo "$ac_t""yes" 1>&6
13022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13023   cat >> confdefs.h <<EOF
13024 #define $ac_tr_func 1
13025 EOF
13026  
13027 else
13028   echo "$ac_t""no" 1>&6
13029 fi
13030 done
13031     
13032     fi
13033   fi
13034
13035   
13036   
13037   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
13038 echo "configure:13039: checking for sincosf declaration" >&5
13039   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
13040     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
13041   echo $ac_n "(cached) $ac_c" 1>&6
13042 else
13043   
13044       
13045       ac_ext=C
13046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13047 ac_cpp='$CXXCPP $CPPFLAGS'
13048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13050 cross_compiling=$ac_cv_prog_cxx_cross
13051
13052       cat > conftest.$ac_ext <<EOF
13053 #line 13054 "configure"
13054 #include "confdefs.h"
13055 #include <math.h>
13056 int main() {
13057  sincosf(0, 0, 0);
13058 ; return 0; }
13059 EOF
13060 if { (eval echo configure:13061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13061   rm -rf conftest*
13062   glibcpp_cv_func_sincosf_use=yes
13063 else
13064   echo "configure: failed program was:" >&5
13065   cat conftest.$ac_ext >&5
13066   rm -rf conftest*
13067   glibcpp_cv_func_sincosf_use=no
13068 fi
13069 rm -f conftest*
13070       ac_ext=c
13071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13072 ac_cpp='$CPP $CPPFLAGS'
13073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13075 cross_compiling=$ac_cv_prog_cc_cross
13076
13077     
13078 fi
13079
13080   fi
13081   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
13082
13083   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
13084     for ac_func in sincosf
13085 do
13086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13087 echo "configure:13088: checking for $ac_func" >&5
13088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13089   echo $ac_n "(cached) $ac_c" 1>&6
13090 else
13091   cat > conftest.$ac_ext <<EOF
13092 #line 13093 "configure"
13093 #include "confdefs.h"
13094 /* System header to define __stub macros and hopefully few prototypes,
13095     which can conflict with char $ac_func(); below.  */
13096 #include <assert.h>
13097 /* Override any gcc2 internal prototype to avoid an error.  */
13098 /* We use char because int might match the return type of a gcc2
13099     builtin and then its argument prototype would still apply.  */
13100 char $ac_func();
13101
13102 int main() {
13103
13104 /* The GNU C library defines this for functions which it implements
13105     to always fail with ENOSYS.  Some functions are actually named
13106     something starting with __ and the normal name is an alias.  */
13107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13108 choke me
13109 #else
13110 $ac_func();
13111 #endif
13112
13113 ; return 0; }
13114 EOF
13115 if { (eval echo configure:13116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13116   rm -rf conftest*
13117   eval "ac_cv_func_$ac_func=yes"
13118 else
13119   echo "configure: failed program was:" >&5
13120   cat conftest.$ac_ext >&5
13121   rm -rf conftest*
13122   eval "ac_cv_func_$ac_func=no"
13123 fi
13124 rm -f conftest*
13125 fi
13126
13127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13128   echo "$ac_t""yes" 1>&6
13129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13130   cat >> confdefs.h <<EOF
13131 #define $ac_tr_func 1
13132 EOF
13133  
13134 else
13135   echo "$ac_t""no" 1>&6
13136 fi
13137 done
13138     
13139   else
13140     
13141   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13142 echo "configure:13143: checking for _sincosf declaration" >&5
13143   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13144     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13145   echo $ac_n "(cached) $ac_c" 1>&6
13146 else
13147   
13148       
13149       ac_ext=C
13150 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13151 ac_cpp='$CXXCPP $CPPFLAGS'
13152 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13153 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13154 cross_compiling=$ac_cv_prog_cxx_cross
13155
13156       cat > conftest.$ac_ext <<EOF
13157 #line 13158 "configure"
13158 #include "confdefs.h"
13159 #include <math.h>
13160 int main() {
13161  _sincosf(0, 0, 0);
13162 ; return 0; }
13163 EOF
13164 if { (eval echo configure:13165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13165   rm -rf conftest*
13166   glibcpp_cv_func__sincosf_use=yes
13167 else
13168   echo "configure: failed program was:" >&5
13169   cat conftest.$ac_ext >&5
13170   rm -rf conftest*
13171   glibcpp_cv_func__sincosf_use=no
13172 fi
13173 rm -f conftest*
13174       ac_ext=c
13175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13176 ac_cpp='$CPP $CPPFLAGS'
13177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13179 cross_compiling=$ac_cv_prog_cc_cross
13180
13181     
13182 fi
13183
13184   fi
13185   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13186
13187     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
13188       for ac_func in _sincosf
13189 do
13190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13191 echo "configure:13192: checking for $ac_func" >&5
13192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13193   echo $ac_n "(cached) $ac_c" 1>&6
13194 else
13195   cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13198 /* System header to define __stub macros and hopefully few prototypes,
13199     which can conflict with char $ac_func(); below.  */
13200 #include <assert.h>
13201 /* Override any gcc2 internal prototype to avoid an error.  */
13202 /* We use char because int might match the return type of a gcc2
13203     builtin and then its argument prototype would still apply.  */
13204 char $ac_func();
13205
13206 int main() {
13207
13208 /* The GNU C library defines this for functions which it implements
13209     to always fail with ENOSYS.  Some functions are actually named
13210     something starting with __ and the normal name is an alias.  */
13211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13212 choke me
13213 #else
13214 $ac_func();
13215 #endif
13216
13217 ; return 0; }
13218 EOF
13219 if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220   rm -rf conftest*
13221   eval "ac_cv_func_$ac_func=yes"
13222 else
13223   echo "configure: failed program was:" >&5
13224   cat conftest.$ac_ext >&5
13225   rm -rf conftest*
13226   eval "ac_cv_func_$ac_func=no"
13227 fi
13228 rm -f conftest*
13229 fi
13230
13231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13232   echo "$ac_t""yes" 1>&6
13233     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13234   cat >> confdefs.h <<EOF
13235 #define $ac_tr_func 1
13236 EOF
13237  
13238 else
13239   echo "$ac_t""no" 1>&6
13240 fi
13241 done
13242     
13243     fi
13244   fi
13245
13246   
13247   
13248   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
13249 echo "configure:13250: checking for finitef declaration" >&5
13250   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
13251     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
13252   echo $ac_n "(cached) $ac_c" 1>&6
13253 else
13254   
13255       
13256       ac_ext=C
13257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13258 ac_cpp='$CXXCPP $CPPFLAGS'
13259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13261 cross_compiling=$ac_cv_prog_cxx_cross
13262
13263       cat > conftest.$ac_ext <<EOF
13264 #line 13265 "configure"
13265 #include "confdefs.h"
13266 #include <math.h>
13267                       #ifdef HAVE_IEEEFP_H
13268                       #include <ieeefp.h>
13269                       #endif
13270                      
13271 int main() {
13272  finitef(0);
13273 ; return 0; }
13274 EOF
13275 if { (eval echo configure:13276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13276   rm -rf conftest*
13277   glibcpp_cv_func_finitef_use=yes
13278 else
13279   echo "configure: failed program was:" >&5
13280   cat conftest.$ac_ext >&5
13281   rm -rf conftest*
13282   glibcpp_cv_func_finitef_use=no
13283 fi
13284 rm -f conftest*
13285       ac_ext=c
13286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13287 ac_cpp='$CPP $CPPFLAGS'
13288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13290 cross_compiling=$ac_cv_prog_cc_cross
13291
13292     
13293 fi
13294
13295   fi
13296   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
13297
13298   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
13299     for ac_func in finitef
13300 do
13301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13302 echo "configure:13303: checking for $ac_func" >&5
13303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13304   echo $ac_n "(cached) $ac_c" 1>&6
13305 else
13306   cat > conftest.$ac_ext <<EOF
13307 #line 13308 "configure"
13308 #include "confdefs.h"
13309 /* System header to define __stub macros and hopefully few prototypes,
13310     which can conflict with char $ac_func(); below.  */
13311 #include <assert.h>
13312 /* Override any gcc2 internal prototype to avoid an error.  */
13313 /* We use char because int might match the return type of a gcc2
13314     builtin and then its argument prototype would still apply.  */
13315 char $ac_func();
13316
13317 int main() {
13318
13319 /* The GNU C library defines this for functions which it implements
13320     to always fail with ENOSYS.  Some functions are actually named
13321     something starting with __ and the normal name is an alias.  */
13322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13323 choke me
13324 #else
13325 $ac_func();
13326 #endif
13327
13328 ; return 0; }
13329 EOF
13330 if { (eval echo configure:13331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13331   rm -rf conftest*
13332   eval "ac_cv_func_$ac_func=yes"
13333 else
13334   echo "configure: failed program was:" >&5
13335   cat conftest.$ac_ext >&5
13336   rm -rf conftest*
13337   eval "ac_cv_func_$ac_func=no"
13338 fi
13339 rm -f conftest*
13340 fi
13341
13342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13343   echo "$ac_t""yes" 1>&6
13344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13345   cat >> confdefs.h <<EOF
13346 #define $ac_tr_func 1
13347 EOF
13348  
13349 else
13350   echo "$ac_t""no" 1>&6
13351 fi
13352 done
13353     
13354   else
13355     
13356   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
13357 echo "configure:13358: checking for _finitef declaration" >&5
13358   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
13359     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
13360   echo $ac_n "(cached) $ac_c" 1>&6
13361 else
13362   
13363       
13364       ac_ext=C
13365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13366 ac_cpp='$CXXCPP $CPPFLAGS'
13367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13369 cross_compiling=$ac_cv_prog_cxx_cross
13370
13371       cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 #include <math.h>
13375                       #ifdef HAVE_IEEEFP_H
13376                       #include <ieeefp.h>
13377                       #endif
13378                      
13379 int main() {
13380  _finitef(0);
13381 ; return 0; }
13382 EOF
13383 if { (eval echo configure:13384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13384   rm -rf conftest*
13385   glibcpp_cv_func__finitef_use=yes
13386 else
13387   echo "configure: failed program was:" >&5
13388   cat conftest.$ac_ext >&5
13389   rm -rf conftest*
13390   glibcpp_cv_func__finitef_use=no
13391 fi
13392 rm -f conftest*
13393       ac_ext=c
13394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13395 ac_cpp='$CPP $CPPFLAGS'
13396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13398 cross_compiling=$ac_cv_prog_cc_cross
13399
13400     
13401 fi
13402
13403   fi
13404   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
13405
13406     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
13407       for ac_func in _finitef
13408 do
13409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13410 echo "configure:13411: checking for $ac_func" >&5
13411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13412   echo $ac_n "(cached) $ac_c" 1>&6
13413 else
13414   cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13417 /* System header to define __stub macros and hopefully few prototypes,
13418     which can conflict with char $ac_func(); below.  */
13419 #include <assert.h>
13420 /* Override any gcc2 internal prototype to avoid an error.  */
13421 /* We use char because int might match the return type of a gcc2
13422     builtin and then its argument prototype would still apply.  */
13423 char $ac_func();
13424
13425 int main() {
13426
13427 /* The GNU C library defines this for functions which it implements
13428     to always fail with ENOSYS.  Some functions are actually named
13429     something starting with __ and the normal name is an alias.  */
13430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13431 choke me
13432 #else
13433 $ac_func();
13434 #endif
13435
13436 ; return 0; }
13437 EOF
13438 if { (eval echo configure:13439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13439   rm -rf conftest*
13440   eval "ac_cv_func_$ac_func=yes"
13441 else
13442   echo "configure: failed program was:" >&5
13443   cat conftest.$ac_ext >&5
13444   rm -rf conftest*
13445   eval "ac_cv_func_$ac_func=no"
13446 fi
13447 rm -f conftest*
13448 fi
13449
13450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13451   echo "$ac_t""yes" 1>&6
13452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13453   cat >> confdefs.h <<EOF
13454 #define $ac_tr_func 1
13455 EOF
13456  
13457 else
13458   echo "$ac_t""no" 1>&6
13459 fi
13460 done
13461     
13462     fi
13463   fi
13464
13465
13466     
13467   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
13468 echo "configure:13469: checking for long double trig functions" >&5
13469   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
13470   echo $ac_n "(cached) $ac_c" 1>&6
13471 else
13472   
13473     
13474     ac_ext=C
13475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13476 ac_cpp='$CXXCPP $CPPFLAGS'
13477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13479 cross_compiling=$ac_cv_prog_cxx_cross
13480
13481     cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 #include <math.h>
13485 int main() {
13486  `for x in acosl asinl atanl \
13487                                           cosl sinl tanl \
13488                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
13489 ; return 0; }
13490 EOF
13491 if { (eval echo configure:13492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13492   rm -rf conftest*
13493   glibcpp_cv_func_long_double_trig_use=yes
13494 else
13495   echo "configure: failed program was:" >&5
13496   cat conftest.$ac_ext >&5
13497   rm -rf conftest*
13498   glibcpp_cv_func_long_double_trig_use=no
13499 fi
13500 rm -f conftest*
13501     ac_ext=c
13502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13503 ac_cpp='$CPP $CPPFLAGS'
13504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13506 cross_compiling=$ac_cv_prog_cc_cross
13507
13508 fi
13509
13510   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
13511   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
13512     for ac_func in acosl asinl atanl \
13513                                           cosl sinl tanl \
13514                                           coshl sinhl tanhl
13515 do
13516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13517 echo "configure:13518: checking for $ac_func" >&5
13518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13519   echo $ac_n "(cached) $ac_c" 1>&6
13520 else
13521   cat > conftest.$ac_ext <<EOF
13522 #line 13523 "configure"
13523 #include "confdefs.h"
13524 /* System header to define __stub macros and hopefully few prototypes,
13525     which can conflict with char $ac_func(); below.  */
13526 #include <assert.h>
13527 /* Override any gcc2 internal prototype to avoid an error.  */
13528 /* We use char because int might match the return type of a gcc2
13529     builtin and then its argument prototype would still apply.  */
13530 char $ac_func();
13531
13532 int main() {
13533
13534 /* The GNU C library defines this for functions which it implements
13535     to always fail with ENOSYS.  Some functions are actually named
13536     something starting with __ and the normal name is an alias.  */
13537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13538 choke me
13539 #else
13540 $ac_func();
13541 #endif
13542
13543 ; return 0; }
13544 EOF
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13546   rm -rf conftest*
13547   eval "ac_cv_func_$ac_func=yes"
13548 else
13549   echo "configure: failed program was:" >&5
13550   cat conftest.$ac_ext >&5
13551   rm -rf conftest*
13552   eval "ac_cv_func_$ac_func=no"
13553 fi
13554 rm -f conftest*
13555 fi
13556
13557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13558   echo "$ac_t""yes" 1>&6
13559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13560   cat >> confdefs.h <<EOF
13561 #define $ac_tr_func 1
13562 EOF
13563  
13564 else
13565   echo "$ac_t""no" 1>&6
13566 fi
13567 done
13568
13569   fi
13570
13571   
13572   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
13573 echo "configure:13574: checking for long double round functions" >&5
13574   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
13575   echo $ac_n "(cached) $ac_c" 1>&6
13576 else
13577   
13578     
13579     ac_ext=C
13580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13581 ac_cpp='$CXXCPP $CPPFLAGS'
13582 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13583 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13584 cross_compiling=$ac_cv_prog_cxx_cross
13585
13586     cat > conftest.$ac_ext <<EOF
13587 #line 13588 "configure"
13588 #include "confdefs.h"
13589 #include <math.h>
13590 int main() {
13591  `for x in ceill floorl; do echo "$x (0);"; done` 
13592 ; return 0; }
13593 EOF
13594 if { (eval echo configure:13595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13595   rm -rf conftest*
13596   glibcpp_cv_func_long_double_round_use=yes
13597 else
13598   echo "configure: failed program was:" >&5
13599   cat conftest.$ac_ext >&5
13600   rm -rf conftest*
13601   glibcpp_cv_func_long_double_round_use=no
13602 fi
13603 rm -f conftest*
13604     ac_ext=c
13605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13606 ac_cpp='$CPP $CPPFLAGS'
13607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13609 cross_compiling=$ac_cv_prog_cc_cross
13610
13611 fi
13612
13613   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
13614   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
13615     for ac_func in ceill floorl
13616 do
13617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13618 echo "configure:13619: checking for $ac_func" >&5
13619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13620   echo $ac_n "(cached) $ac_c" 1>&6
13621 else
13622   cat > conftest.$ac_ext <<EOF
13623 #line 13624 "configure"
13624 #include "confdefs.h"
13625 /* System header to define __stub macros and hopefully few prototypes,
13626     which can conflict with char $ac_func(); below.  */
13627 #include <assert.h>
13628 /* Override any gcc2 internal prototype to avoid an error.  */
13629 /* We use char because int might match the return type of a gcc2
13630     builtin and then its argument prototype would still apply.  */
13631 char $ac_func();
13632
13633 int main() {
13634
13635 /* The GNU C library defines this for functions which it implements
13636     to always fail with ENOSYS.  Some functions are actually named
13637     something starting with __ and the normal name is an alias.  */
13638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13639 choke me
13640 #else
13641 $ac_func();
13642 #endif
13643
13644 ; return 0; }
13645 EOF
13646 if { (eval echo configure:13647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13647   rm -rf conftest*
13648   eval "ac_cv_func_$ac_func=yes"
13649 else
13650   echo "configure: failed program was:" >&5
13651   cat conftest.$ac_ext >&5
13652   rm -rf conftest*
13653   eval "ac_cv_func_$ac_func=no"
13654 fi
13655 rm -f conftest*
13656 fi
13657
13658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13659   echo "$ac_t""yes" 1>&6
13660     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13661   cat >> confdefs.h <<EOF
13662 #define $ac_tr_func 1
13663 EOF
13664  
13665 else
13666   echo "$ac_t""no" 1>&6
13667 fi
13668 done
13669
13670   fi
13671
13672   
13673   
13674   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
13675 echo "configure:13676: checking for isnanl declaration" >&5
13676   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
13677     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
13678   echo $ac_n "(cached) $ac_c" 1>&6
13679 else
13680   
13681       
13682       ac_ext=C
13683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13684 ac_cpp='$CXXCPP $CPPFLAGS'
13685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13687 cross_compiling=$ac_cv_prog_cxx_cross
13688
13689       cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 #include <math.h>
13693                       #ifdef HAVE_IEEEFP_H
13694                       #include <ieeefp.h>
13695                       #endif
13696                      
13697 int main() {
13698  isnanl(0);
13699 ; return 0; }
13700 EOF
13701 if { (eval echo configure:13702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13702   rm -rf conftest*
13703   glibcpp_cv_func_isnanl_use=yes
13704 else
13705   echo "configure: failed program was:" >&5
13706   cat conftest.$ac_ext >&5
13707   rm -rf conftest*
13708   glibcpp_cv_func_isnanl_use=no
13709 fi
13710 rm -f conftest*
13711       ac_ext=c
13712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13713 ac_cpp='$CPP $CPPFLAGS'
13714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13716 cross_compiling=$ac_cv_prog_cc_cross
13717
13718     
13719 fi
13720
13721   fi
13722   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
13723
13724   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
13725     for ac_func in isnanl
13726 do
13727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13728 echo "configure:13729: checking for $ac_func" >&5
13729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13730   echo $ac_n "(cached) $ac_c" 1>&6
13731 else
13732   cat > conftest.$ac_ext <<EOF
13733 #line 13734 "configure"
13734 #include "confdefs.h"
13735 /* System header to define __stub macros and hopefully few prototypes,
13736     which can conflict with char $ac_func(); below.  */
13737 #include <assert.h>
13738 /* Override any gcc2 internal prototype to avoid an error.  */
13739 /* We use char because int might match the return type of a gcc2
13740     builtin and then its argument prototype would still apply.  */
13741 char $ac_func();
13742
13743 int main() {
13744
13745 /* The GNU C library defines this for functions which it implements
13746     to always fail with ENOSYS.  Some functions are actually named
13747     something starting with __ and the normal name is an alias.  */
13748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13749 choke me
13750 #else
13751 $ac_func();
13752 #endif
13753
13754 ; return 0; }
13755 EOF
13756 if { (eval echo configure:13757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13757   rm -rf conftest*
13758   eval "ac_cv_func_$ac_func=yes"
13759 else
13760   echo "configure: failed program was:" >&5
13761   cat conftest.$ac_ext >&5
13762   rm -rf conftest*
13763   eval "ac_cv_func_$ac_func=no"
13764 fi
13765 rm -f conftest*
13766 fi
13767
13768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13769   echo "$ac_t""yes" 1>&6
13770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13771   cat >> confdefs.h <<EOF
13772 #define $ac_tr_func 1
13773 EOF
13774  
13775 else
13776   echo "$ac_t""no" 1>&6
13777 fi
13778 done
13779     
13780   else
13781     
13782   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
13783 echo "configure:13784: checking for _isnanl declaration" >&5
13784   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
13785     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
13786   echo $ac_n "(cached) $ac_c" 1>&6
13787 else
13788   
13789       
13790       ac_ext=C
13791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13792 ac_cpp='$CXXCPP $CPPFLAGS'
13793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13795 cross_compiling=$ac_cv_prog_cxx_cross
13796
13797       cat > conftest.$ac_ext <<EOF
13798 #line 13799 "configure"
13799 #include "confdefs.h"
13800 #include <math.h>
13801                       #ifdef HAVE_IEEEFP_H
13802                       #include <ieeefp.h>
13803                       #endif
13804                      
13805 int main() {
13806  _isnanl(0);
13807 ; return 0; }
13808 EOF
13809 if { (eval echo configure:13810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13810   rm -rf conftest*
13811   glibcpp_cv_func__isnanl_use=yes
13812 else
13813   echo "configure: failed program was:" >&5
13814   cat conftest.$ac_ext >&5
13815   rm -rf conftest*
13816   glibcpp_cv_func__isnanl_use=no
13817 fi
13818 rm -f conftest*
13819       ac_ext=c
13820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13821 ac_cpp='$CPP $CPPFLAGS'
13822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13824 cross_compiling=$ac_cv_prog_cc_cross
13825
13826     
13827 fi
13828
13829   fi
13830   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
13831
13832     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
13833       for ac_func in _isnanl
13834 do
13835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13836 echo "configure:13837: checking for $ac_func" >&5
13837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13838   echo $ac_n "(cached) $ac_c" 1>&6
13839 else
13840   cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13843 /* System header to define __stub macros and hopefully few prototypes,
13844     which can conflict with char $ac_func(); below.  */
13845 #include <assert.h>
13846 /* Override any gcc2 internal prototype to avoid an error.  */
13847 /* We use char because int might match the return type of a gcc2
13848     builtin and then its argument prototype would still apply.  */
13849 char $ac_func();
13850
13851 int main() {
13852
13853 /* The GNU C library defines this for functions which it implements
13854     to always fail with ENOSYS.  Some functions are actually named
13855     something starting with __ and the normal name is an alias.  */
13856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13857 choke me
13858 #else
13859 $ac_func();
13860 #endif
13861
13862 ; return 0; }
13863 EOF
13864 if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13865   rm -rf conftest*
13866   eval "ac_cv_func_$ac_func=yes"
13867 else
13868   echo "configure: failed program was:" >&5
13869   cat conftest.$ac_ext >&5
13870   rm -rf conftest*
13871   eval "ac_cv_func_$ac_func=no"
13872 fi
13873 rm -f conftest*
13874 fi
13875
13876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13877   echo "$ac_t""yes" 1>&6
13878     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13879   cat >> confdefs.h <<EOF
13880 #define $ac_tr_func 1
13881 EOF
13882  
13883 else
13884   echo "$ac_t""no" 1>&6
13885 fi
13886 done
13887     
13888     fi
13889   fi
13890
13891   
13892   
13893   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
13894 echo "configure:13895: checking for isinfl declaration" >&5
13895   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
13896     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
13897   echo $ac_n "(cached) $ac_c" 1>&6
13898 else
13899   
13900       
13901       ac_ext=C
13902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13903 ac_cpp='$CXXCPP $CPPFLAGS'
13904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13906 cross_compiling=$ac_cv_prog_cxx_cross
13907
13908       cat > conftest.$ac_ext <<EOF
13909 #line 13910 "configure"
13910 #include "confdefs.h"
13911 #include <math.h>
13912                       #ifdef HAVE_IEEEFP_H
13913                       #include <ieeefp.h>
13914                       #endif
13915                      
13916 int main() {
13917  isinfl(0);
13918 ; return 0; }
13919 EOF
13920 if { (eval echo configure:13921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13921   rm -rf conftest*
13922   glibcpp_cv_func_isinfl_use=yes
13923 else
13924   echo "configure: failed program was:" >&5
13925   cat conftest.$ac_ext >&5
13926   rm -rf conftest*
13927   glibcpp_cv_func_isinfl_use=no
13928 fi
13929 rm -f conftest*
13930       ac_ext=c
13931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13932 ac_cpp='$CPP $CPPFLAGS'
13933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13935 cross_compiling=$ac_cv_prog_cc_cross
13936
13937     
13938 fi
13939
13940   fi
13941   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
13942
13943   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
13944     for ac_func in isinfl
13945 do
13946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13947 echo "configure:13948: checking for $ac_func" >&5
13948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13949   echo $ac_n "(cached) $ac_c" 1>&6
13950 else
13951   cat > conftest.$ac_ext <<EOF
13952 #line 13953 "configure"
13953 #include "confdefs.h"
13954 /* System header to define __stub macros and hopefully few prototypes,
13955     which can conflict with char $ac_func(); below.  */
13956 #include <assert.h>
13957 /* Override any gcc2 internal prototype to avoid an error.  */
13958 /* We use char because int might match the return type of a gcc2
13959     builtin and then its argument prototype would still apply.  */
13960 char $ac_func();
13961
13962 int main() {
13963
13964 /* The GNU C library defines this for functions which it implements
13965     to always fail with ENOSYS.  Some functions are actually named
13966     something starting with __ and the normal name is an alias.  */
13967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13968 choke me
13969 #else
13970 $ac_func();
13971 #endif
13972
13973 ; return 0; }
13974 EOF
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13976   rm -rf conftest*
13977   eval "ac_cv_func_$ac_func=yes"
13978 else
13979   echo "configure: failed program was:" >&5
13980   cat conftest.$ac_ext >&5
13981   rm -rf conftest*
13982   eval "ac_cv_func_$ac_func=no"
13983 fi
13984 rm -f conftest*
13985 fi
13986
13987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13988   echo "$ac_t""yes" 1>&6
13989     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13990   cat >> confdefs.h <<EOF
13991 #define $ac_tr_func 1
13992 EOF
13993  
13994 else
13995   echo "$ac_t""no" 1>&6
13996 fi
13997 done
13998     
13999   else
14000     
14001   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
14002 echo "configure:14003: checking for _isinfl declaration" >&5
14003   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
14004     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
14005   echo $ac_n "(cached) $ac_c" 1>&6
14006 else
14007   
14008       
14009       ac_ext=C
14010 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14011 ac_cpp='$CXXCPP $CPPFLAGS'
14012 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14013 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14014 cross_compiling=$ac_cv_prog_cxx_cross
14015
14016       cat > conftest.$ac_ext <<EOF
14017 #line 14018 "configure"
14018 #include "confdefs.h"
14019 #include <math.h>
14020                       #ifdef HAVE_IEEEFP_H
14021                       #include <ieeefp.h>
14022                       #endif
14023                      
14024 int main() {
14025  _isinfl(0);
14026 ; return 0; }
14027 EOF
14028 if { (eval echo configure:14029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14029   rm -rf conftest*
14030   glibcpp_cv_func__isinfl_use=yes
14031 else
14032   echo "configure: failed program was:" >&5
14033   cat conftest.$ac_ext >&5
14034   rm -rf conftest*
14035   glibcpp_cv_func__isinfl_use=no
14036 fi
14037 rm -f conftest*
14038       ac_ext=c
14039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14040 ac_cpp='$CPP $CPPFLAGS'
14041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14043 cross_compiling=$ac_cv_prog_cc_cross
14044
14045     
14046 fi
14047
14048   fi
14049   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
14050
14051     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
14052       for ac_func in _isinfl
14053 do
14054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14055 echo "configure:14056: checking for $ac_func" >&5
14056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14057   echo $ac_n "(cached) $ac_c" 1>&6
14058 else
14059   cat > conftest.$ac_ext <<EOF
14060 #line 14061 "configure"
14061 #include "confdefs.h"
14062 /* System header to define __stub macros and hopefully few prototypes,
14063     which can conflict with char $ac_func(); below.  */
14064 #include <assert.h>
14065 /* Override any gcc2 internal prototype to avoid an error.  */
14066 /* We use char because int might match the return type of a gcc2
14067     builtin and then its argument prototype would still apply.  */
14068 char $ac_func();
14069
14070 int main() {
14071
14072 /* The GNU C library defines this for functions which it implements
14073     to always fail with ENOSYS.  Some functions are actually named
14074     something starting with __ and the normal name is an alias.  */
14075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14076 choke me
14077 #else
14078 $ac_func();
14079 #endif
14080
14081 ; return 0; }
14082 EOF
14083 if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14084   rm -rf conftest*
14085   eval "ac_cv_func_$ac_func=yes"
14086 else
14087   echo "configure: failed program was:" >&5
14088   cat conftest.$ac_ext >&5
14089   rm -rf conftest*
14090   eval "ac_cv_func_$ac_func=no"
14091 fi
14092 rm -f conftest*
14093 fi
14094
14095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14096   echo "$ac_t""yes" 1>&6
14097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14098   cat >> confdefs.h <<EOF
14099 #define $ac_tr_func 1
14100 EOF
14101  
14102 else
14103   echo "$ac_t""no" 1>&6
14104 fi
14105 done
14106     
14107     fi
14108   fi
14109
14110   
14111   
14112   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
14113 echo "configure:14114: checking for copysignl declaration" >&5
14114   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
14115     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
14116   echo $ac_n "(cached) $ac_c" 1>&6
14117 else
14118   
14119       
14120       ac_ext=C
14121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14122 ac_cpp='$CXXCPP $CPPFLAGS'
14123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14125 cross_compiling=$ac_cv_prog_cxx_cross
14126
14127       cat > conftest.$ac_ext <<EOF
14128 #line 14129 "configure"
14129 #include "confdefs.h"
14130 #include <math.h>
14131 int main() {
14132  copysignl(0, 0);
14133 ; return 0; }
14134 EOF
14135 if { (eval echo configure:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14136   rm -rf conftest*
14137   glibcpp_cv_func_copysignl_use=yes
14138 else
14139   echo "configure: failed program was:" >&5
14140   cat conftest.$ac_ext >&5
14141   rm -rf conftest*
14142   glibcpp_cv_func_copysignl_use=no
14143 fi
14144 rm -f conftest*
14145       ac_ext=c
14146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14147 ac_cpp='$CPP $CPPFLAGS'
14148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14150 cross_compiling=$ac_cv_prog_cc_cross
14151
14152     
14153 fi
14154
14155   fi
14156   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14157
14158   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14159     for ac_func in copysignl
14160 do
14161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14162 echo "configure:14163: checking for $ac_func" >&5
14163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14164   echo $ac_n "(cached) $ac_c" 1>&6
14165 else
14166   cat > conftest.$ac_ext <<EOF
14167 #line 14168 "configure"
14168 #include "confdefs.h"
14169 /* System header to define __stub macros and hopefully few prototypes,
14170     which can conflict with char $ac_func(); below.  */
14171 #include <assert.h>
14172 /* Override any gcc2 internal prototype to avoid an error.  */
14173 /* We use char because int might match the return type of a gcc2
14174     builtin and then its argument prototype would still apply.  */
14175 char $ac_func();
14176
14177 int main() {
14178
14179 /* The GNU C library defines this for functions which it implements
14180     to always fail with ENOSYS.  Some functions are actually named
14181     something starting with __ and the normal name is an alias.  */
14182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14183 choke me
14184 #else
14185 $ac_func();
14186 #endif
14187
14188 ; return 0; }
14189 EOF
14190 if { (eval echo configure:14191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14191   rm -rf conftest*
14192   eval "ac_cv_func_$ac_func=yes"
14193 else
14194   echo "configure: failed program was:" >&5
14195   cat conftest.$ac_ext >&5
14196   rm -rf conftest*
14197   eval "ac_cv_func_$ac_func=no"
14198 fi
14199 rm -f conftest*
14200 fi
14201
14202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14203   echo "$ac_t""yes" 1>&6
14204     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14205   cat >> confdefs.h <<EOF
14206 #define $ac_tr_func 1
14207 EOF
14208  
14209 else
14210   echo "$ac_t""no" 1>&6
14211 fi
14212 done
14213     
14214   else
14215     
14216   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
14217 echo "configure:14218: checking for _copysignl declaration" >&5
14218   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
14219     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
14220   echo $ac_n "(cached) $ac_c" 1>&6
14221 else
14222   
14223       
14224       ac_ext=C
14225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14226 ac_cpp='$CXXCPP $CPPFLAGS'
14227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14229 cross_compiling=$ac_cv_prog_cxx_cross
14230
14231       cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 #include <math.h>
14235 int main() {
14236  _copysignl(0, 0);
14237 ; return 0; }
14238 EOF
14239 if { (eval echo configure:14240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14240   rm -rf conftest*
14241   glibcpp_cv_func__copysignl_use=yes
14242 else
14243   echo "configure: failed program was:" >&5
14244   cat conftest.$ac_ext >&5
14245   rm -rf conftest*
14246   glibcpp_cv_func__copysignl_use=no
14247 fi
14248 rm -f conftest*
14249       ac_ext=c
14250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14251 ac_cpp='$CPP $CPPFLAGS'
14252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14254 cross_compiling=$ac_cv_prog_cc_cross
14255
14256     
14257 fi
14258
14259   fi
14260   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
14261
14262     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
14263       for ac_func in _copysignl
14264 do
14265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14266 echo "configure:14267: checking for $ac_func" >&5
14267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14268   echo $ac_n "(cached) $ac_c" 1>&6
14269 else
14270   cat > conftest.$ac_ext <<EOF
14271 #line 14272 "configure"
14272 #include "confdefs.h"
14273 /* System header to define __stub macros and hopefully few prototypes,
14274     which can conflict with char $ac_func(); below.  */
14275 #include <assert.h>
14276 /* Override any gcc2 internal prototype to avoid an error.  */
14277 /* We use char because int might match the return type of a gcc2
14278     builtin and then its argument prototype would still apply.  */
14279 char $ac_func();
14280
14281 int main() {
14282
14283 /* The GNU C library defines this for functions which it implements
14284     to always fail with ENOSYS.  Some functions are actually named
14285     something starting with __ and the normal name is an alias.  */
14286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14287 choke me
14288 #else
14289 $ac_func();
14290 #endif
14291
14292 ; return 0; }
14293 EOF
14294 if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14295   rm -rf conftest*
14296   eval "ac_cv_func_$ac_func=yes"
14297 else
14298   echo "configure: failed program was:" >&5
14299   cat conftest.$ac_ext >&5
14300   rm -rf conftest*
14301   eval "ac_cv_func_$ac_func=no"
14302 fi
14303 rm -f conftest*
14304 fi
14305
14306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14307   echo "$ac_t""yes" 1>&6
14308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14309   cat >> confdefs.h <<EOF
14310 #define $ac_tr_func 1
14311 EOF
14312  
14313 else
14314   echo "$ac_t""no" 1>&6
14315 fi
14316 done
14317     
14318     fi
14319   fi
14320
14321   
14322   
14323   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
14324 echo "configure:14325: checking for atan2l declaration" >&5
14325   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
14326     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
14327   echo $ac_n "(cached) $ac_c" 1>&6
14328 else
14329   
14330       
14331       ac_ext=C
14332 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14333 ac_cpp='$CXXCPP $CPPFLAGS'
14334 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14335 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14336 cross_compiling=$ac_cv_prog_cxx_cross
14337
14338       cat > conftest.$ac_ext <<EOF
14339 #line 14340 "configure"
14340 #include "confdefs.h"
14341 #include <math.h>
14342 int main() {
14343  atan2l(0, 0);
14344 ; return 0; }
14345 EOF
14346 if { (eval echo configure:14347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14347   rm -rf conftest*
14348   glibcpp_cv_func_atan2l_use=yes
14349 else
14350   echo "configure: failed program was:" >&5
14351   cat conftest.$ac_ext >&5
14352   rm -rf conftest*
14353   glibcpp_cv_func_atan2l_use=no
14354 fi
14355 rm -f conftest*
14356       ac_ext=c
14357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14358 ac_cpp='$CPP $CPPFLAGS'
14359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14361 cross_compiling=$ac_cv_prog_cc_cross
14362
14363     
14364 fi
14365
14366   fi
14367   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
14368
14369   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
14370     for ac_func in atan2l
14371 do
14372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14373 echo "configure:14374: checking for $ac_func" >&5
14374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14375   echo $ac_n "(cached) $ac_c" 1>&6
14376 else
14377   cat > conftest.$ac_ext <<EOF
14378 #line 14379 "configure"
14379 #include "confdefs.h"
14380 /* System header to define __stub macros and hopefully few prototypes,
14381     which can conflict with char $ac_func(); below.  */
14382 #include <assert.h>
14383 /* Override any gcc2 internal prototype to avoid an error.  */
14384 /* We use char because int might match the return type of a gcc2
14385     builtin and then its argument prototype would still apply.  */
14386 char $ac_func();
14387
14388 int main() {
14389
14390 /* The GNU C library defines this for functions which it implements
14391     to always fail with ENOSYS.  Some functions are actually named
14392     something starting with __ and the normal name is an alias.  */
14393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14394 choke me
14395 #else
14396 $ac_func();
14397 #endif
14398
14399 ; return 0; }
14400 EOF
14401 if { (eval echo configure:14402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14402   rm -rf conftest*
14403   eval "ac_cv_func_$ac_func=yes"
14404 else
14405   echo "configure: failed program was:" >&5
14406   cat conftest.$ac_ext >&5
14407   rm -rf conftest*
14408   eval "ac_cv_func_$ac_func=no"
14409 fi
14410 rm -f conftest*
14411 fi
14412
14413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14414   echo "$ac_t""yes" 1>&6
14415     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14416   cat >> confdefs.h <<EOF
14417 #define $ac_tr_func 1
14418 EOF
14419  
14420 else
14421   echo "$ac_t""no" 1>&6
14422 fi
14423 done
14424     
14425   else
14426     
14427   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
14428 echo "configure:14429: checking for _atan2l declaration" >&5
14429   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
14430     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
14431   echo $ac_n "(cached) $ac_c" 1>&6
14432 else
14433   
14434       
14435       ac_ext=C
14436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14437 ac_cpp='$CXXCPP $CPPFLAGS'
14438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14440 cross_compiling=$ac_cv_prog_cxx_cross
14441
14442       cat > conftest.$ac_ext <<EOF
14443 #line 14444 "configure"
14444 #include "confdefs.h"
14445 #include <math.h>
14446 int main() {
14447  _atan2l(0, 0);
14448 ; return 0; }
14449 EOF
14450 if { (eval echo configure:14451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14451   rm -rf conftest*
14452   glibcpp_cv_func__atan2l_use=yes
14453 else
14454   echo "configure: failed program was:" >&5
14455   cat conftest.$ac_ext >&5
14456   rm -rf conftest*
14457   glibcpp_cv_func__atan2l_use=no
14458 fi
14459 rm -f conftest*
14460       ac_ext=c
14461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14462 ac_cpp='$CPP $CPPFLAGS'
14463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14465 cross_compiling=$ac_cv_prog_cc_cross
14466
14467     
14468 fi
14469
14470   fi
14471   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
14472
14473     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
14474       for ac_func in _atan2l
14475 do
14476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14477 echo "configure:14478: checking for $ac_func" >&5
14478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14479   echo $ac_n "(cached) $ac_c" 1>&6
14480 else
14481   cat > conftest.$ac_ext <<EOF
14482 #line 14483 "configure"
14483 #include "confdefs.h"
14484 /* System header to define __stub macros and hopefully few prototypes,
14485     which can conflict with char $ac_func(); below.  */
14486 #include <assert.h>
14487 /* Override any gcc2 internal prototype to avoid an error.  */
14488 /* We use char because int might match the return type of a gcc2
14489     builtin and then its argument prototype would still apply.  */
14490 char $ac_func();
14491
14492 int main() {
14493
14494 /* The GNU C library defines this for functions which it implements
14495     to always fail with ENOSYS.  Some functions are actually named
14496     something starting with __ and the normal name is an alias.  */
14497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14498 choke me
14499 #else
14500 $ac_func();
14501 #endif
14502
14503 ; return 0; }
14504 EOF
14505 if { (eval echo configure:14506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14506   rm -rf conftest*
14507   eval "ac_cv_func_$ac_func=yes"
14508 else
14509   echo "configure: failed program was:" >&5
14510   cat conftest.$ac_ext >&5
14511   rm -rf conftest*
14512   eval "ac_cv_func_$ac_func=no"
14513 fi
14514 rm -f conftest*
14515 fi
14516
14517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14518   echo "$ac_t""yes" 1>&6
14519     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14520   cat >> confdefs.h <<EOF
14521 #define $ac_tr_func 1
14522 EOF
14523  
14524 else
14525   echo "$ac_t""no" 1>&6
14526 fi
14527 done
14528     
14529     fi
14530   fi
14531
14532   
14533   
14534   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
14535 echo "configure:14536: checking for expl declaration" >&5
14536   if test x${glibcpp_cv_func_expl_use+set} != xset; then
14537     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
14538   echo $ac_n "(cached) $ac_c" 1>&6
14539 else
14540   
14541       
14542       ac_ext=C
14543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14544 ac_cpp='$CXXCPP $CPPFLAGS'
14545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14547 cross_compiling=$ac_cv_prog_cxx_cross
14548
14549       cat > conftest.$ac_ext <<EOF
14550 #line 14551 "configure"
14551 #include "confdefs.h"
14552 #include <math.h>
14553                       #ifdef HAVE_IEEEFP_H
14554                       #include <ieeefp.h>
14555                       #endif
14556                      
14557 int main() {
14558  expl(0);
14559 ; return 0; }
14560 EOF
14561 if { (eval echo configure:14562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14562   rm -rf conftest*
14563   glibcpp_cv_func_expl_use=yes
14564 else
14565   echo "configure: failed program was:" >&5
14566   cat conftest.$ac_ext >&5
14567   rm -rf conftest*
14568   glibcpp_cv_func_expl_use=no
14569 fi
14570 rm -f conftest*
14571       ac_ext=c
14572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14573 ac_cpp='$CPP $CPPFLAGS'
14574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14576 cross_compiling=$ac_cv_prog_cc_cross
14577
14578     
14579 fi
14580
14581   fi
14582   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
14583
14584   if test x$glibcpp_cv_func_expl_use = x"yes"; then
14585     for ac_func in expl
14586 do
14587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14588 echo "configure:14589: checking for $ac_func" >&5
14589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14590   echo $ac_n "(cached) $ac_c" 1>&6
14591 else
14592   cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure"
14594 #include "confdefs.h"
14595 /* System header to define __stub macros and hopefully few prototypes,
14596     which can conflict with char $ac_func(); below.  */
14597 #include <assert.h>
14598 /* Override any gcc2 internal prototype to avoid an error.  */
14599 /* We use char because int might match the return type of a gcc2
14600     builtin and then its argument prototype would still apply.  */
14601 char $ac_func();
14602
14603 int main() {
14604
14605 /* The GNU C library defines this for functions which it implements
14606     to always fail with ENOSYS.  Some functions are actually named
14607     something starting with __ and the normal name is an alias.  */
14608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14609 choke me
14610 #else
14611 $ac_func();
14612 #endif
14613
14614 ; return 0; }
14615 EOF
14616 if { (eval echo configure:14617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14617   rm -rf conftest*
14618   eval "ac_cv_func_$ac_func=yes"
14619 else
14620   echo "configure: failed program was:" >&5
14621   cat conftest.$ac_ext >&5
14622   rm -rf conftest*
14623   eval "ac_cv_func_$ac_func=no"
14624 fi
14625 rm -f conftest*
14626 fi
14627
14628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14629   echo "$ac_t""yes" 1>&6
14630     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14631   cat >> confdefs.h <<EOF
14632 #define $ac_tr_func 1
14633 EOF
14634  
14635 else
14636   echo "$ac_t""no" 1>&6
14637 fi
14638 done
14639     
14640   else
14641     
14642   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
14643 echo "configure:14644: checking for _expl declaration" >&5
14644   if test x${glibcpp_cv_func__expl_use+set} != xset; then
14645     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
14646   echo $ac_n "(cached) $ac_c" 1>&6
14647 else
14648   
14649       
14650       ac_ext=C
14651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14652 ac_cpp='$CXXCPP $CPPFLAGS'
14653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14655 cross_compiling=$ac_cv_prog_cxx_cross
14656
14657       cat > conftest.$ac_ext <<EOF
14658 #line 14659 "configure"
14659 #include "confdefs.h"
14660 #include <math.h>
14661                       #ifdef HAVE_IEEEFP_H
14662                       #include <ieeefp.h>
14663                       #endif
14664                      
14665 int main() {
14666  _expl(0);
14667 ; return 0; }
14668 EOF
14669 if { (eval echo configure:14670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14670   rm -rf conftest*
14671   glibcpp_cv_func__expl_use=yes
14672 else
14673   echo "configure: failed program was:" >&5
14674   cat conftest.$ac_ext >&5
14675   rm -rf conftest*
14676   glibcpp_cv_func__expl_use=no
14677 fi
14678 rm -f conftest*
14679       ac_ext=c
14680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14681 ac_cpp='$CPP $CPPFLAGS'
14682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14684 cross_compiling=$ac_cv_prog_cc_cross
14685
14686     
14687 fi
14688
14689   fi
14690   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
14691
14692     if test x$glibcpp_cv_func__expl_use = x"yes"; then
14693       for ac_func in _expl
14694 do
14695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14696 echo "configure:14697: checking for $ac_func" >&5
14697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14698   echo $ac_n "(cached) $ac_c" 1>&6
14699 else
14700   cat > conftest.$ac_ext <<EOF
14701 #line 14702 "configure"
14702 #include "confdefs.h"
14703 /* System header to define __stub macros and hopefully few prototypes,
14704     which can conflict with char $ac_func(); below.  */
14705 #include <assert.h>
14706 /* Override any gcc2 internal prototype to avoid an error.  */
14707 /* We use char because int might match the return type of a gcc2
14708     builtin and then its argument prototype would still apply.  */
14709 char $ac_func();
14710
14711 int main() {
14712
14713 /* The GNU C library defines this for functions which it implements
14714     to always fail with ENOSYS.  Some functions are actually named
14715     something starting with __ and the normal name is an alias.  */
14716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14717 choke me
14718 #else
14719 $ac_func();
14720 #endif
14721
14722 ; return 0; }
14723 EOF
14724 if { (eval echo configure:14725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14725   rm -rf conftest*
14726   eval "ac_cv_func_$ac_func=yes"
14727 else
14728   echo "configure: failed program was:" >&5
14729   cat conftest.$ac_ext >&5
14730   rm -rf conftest*
14731   eval "ac_cv_func_$ac_func=no"
14732 fi
14733 rm -f conftest*
14734 fi
14735
14736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14737   echo "$ac_t""yes" 1>&6
14738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14739   cat >> confdefs.h <<EOF
14740 #define $ac_tr_func 1
14741 EOF
14742  
14743 else
14744   echo "$ac_t""no" 1>&6
14745 fi
14746 done
14747     
14748     fi
14749   fi
14750
14751   
14752   
14753   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
14754 echo "configure:14755: checking for fabsl declaration" >&5
14755   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
14756     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
14757   echo $ac_n "(cached) $ac_c" 1>&6
14758 else
14759   
14760       
14761       ac_ext=C
14762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14763 ac_cpp='$CXXCPP $CPPFLAGS'
14764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14766 cross_compiling=$ac_cv_prog_cxx_cross
14767
14768       cat > conftest.$ac_ext <<EOF
14769 #line 14770 "configure"
14770 #include "confdefs.h"
14771 #include <math.h>
14772                       #ifdef HAVE_IEEEFP_H
14773                       #include <ieeefp.h>
14774                       #endif
14775                      
14776 int main() {
14777  fabsl(0);
14778 ; return 0; }
14779 EOF
14780 if { (eval echo configure:14781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14781   rm -rf conftest*
14782   glibcpp_cv_func_fabsl_use=yes
14783 else
14784   echo "configure: failed program was:" >&5
14785   cat conftest.$ac_ext >&5
14786   rm -rf conftest*
14787   glibcpp_cv_func_fabsl_use=no
14788 fi
14789 rm -f conftest*
14790       ac_ext=c
14791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14792 ac_cpp='$CPP $CPPFLAGS'
14793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14795 cross_compiling=$ac_cv_prog_cc_cross
14796
14797     
14798 fi
14799
14800   fi
14801   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
14802
14803   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
14804     for ac_func in fabsl
14805 do
14806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14807 echo "configure:14808: checking for $ac_func" >&5
14808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14809   echo $ac_n "(cached) $ac_c" 1>&6
14810 else
14811   cat > conftest.$ac_ext <<EOF
14812 #line 14813 "configure"
14813 #include "confdefs.h"
14814 /* System header to define __stub macros and hopefully few prototypes,
14815     which can conflict with char $ac_func(); below.  */
14816 #include <assert.h>
14817 /* Override any gcc2 internal prototype to avoid an error.  */
14818 /* We use char because int might match the return type of a gcc2
14819     builtin and then its argument prototype would still apply.  */
14820 char $ac_func();
14821
14822 int main() {
14823
14824 /* The GNU C library defines this for functions which it implements
14825     to always fail with ENOSYS.  Some functions are actually named
14826     something starting with __ and the normal name is an alias.  */
14827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14828 choke me
14829 #else
14830 $ac_func();
14831 #endif
14832
14833 ; return 0; }
14834 EOF
14835 if { (eval echo configure:14836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14836   rm -rf conftest*
14837   eval "ac_cv_func_$ac_func=yes"
14838 else
14839   echo "configure: failed program was:" >&5
14840   cat conftest.$ac_ext >&5
14841   rm -rf conftest*
14842   eval "ac_cv_func_$ac_func=no"
14843 fi
14844 rm -f conftest*
14845 fi
14846
14847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14848   echo "$ac_t""yes" 1>&6
14849     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14850   cat >> confdefs.h <<EOF
14851 #define $ac_tr_func 1
14852 EOF
14853  
14854 else
14855   echo "$ac_t""no" 1>&6
14856 fi
14857 done
14858     
14859   else
14860     
14861   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
14862 echo "configure:14863: checking for _fabsl declaration" >&5
14863   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
14864     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
14865   echo $ac_n "(cached) $ac_c" 1>&6
14866 else
14867   
14868       
14869       ac_ext=C
14870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14871 ac_cpp='$CXXCPP $CPPFLAGS'
14872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14874 cross_compiling=$ac_cv_prog_cxx_cross
14875
14876       cat > conftest.$ac_ext <<EOF
14877 #line 14878 "configure"
14878 #include "confdefs.h"
14879 #include <math.h>
14880                       #ifdef HAVE_IEEEFP_H
14881                       #include <ieeefp.h>
14882                       #endif
14883                      
14884 int main() {
14885  _fabsl(0);
14886 ; return 0; }
14887 EOF
14888 if { (eval echo configure:14889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14889   rm -rf conftest*
14890   glibcpp_cv_func__fabsl_use=yes
14891 else
14892   echo "configure: failed program was:" >&5
14893   cat conftest.$ac_ext >&5
14894   rm -rf conftest*
14895   glibcpp_cv_func__fabsl_use=no
14896 fi
14897 rm -f conftest*
14898       ac_ext=c
14899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14900 ac_cpp='$CPP $CPPFLAGS'
14901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14903 cross_compiling=$ac_cv_prog_cc_cross
14904
14905     
14906 fi
14907
14908   fi
14909   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
14910
14911     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
14912       for ac_func in _fabsl
14913 do
14914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14915 echo "configure:14916: checking for $ac_func" >&5
14916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14917   echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14919   cat > conftest.$ac_ext <<EOF
14920 #line 14921 "configure"
14921 #include "confdefs.h"
14922 /* System header to define __stub macros and hopefully few prototypes,
14923     which can conflict with char $ac_func(); below.  */
14924 #include <assert.h>
14925 /* Override any gcc2 internal prototype to avoid an error.  */
14926 /* We use char because int might match the return type of a gcc2
14927     builtin and then its argument prototype would still apply.  */
14928 char $ac_func();
14929
14930 int main() {
14931
14932 /* The GNU C library defines this for functions which it implements
14933     to always fail with ENOSYS.  Some functions are actually named
14934     something starting with __ and the normal name is an alias.  */
14935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14936 choke me
14937 #else
14938 $ac_func();
14939 #endif
14940
14941 ; return 0; }
14942 EOF
14943 if { (eval echo configure:14944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14944   rm -rf conftest*
14945   eval "ac_cv_func_$ac_func=yes"
14946 else
14947   echo "configure: failed program was:" >&5
14948   cat conftest.$ac_ext >&5
14949   rm -rf conftest*
14950   eval "ac_cv_func_$ac_func=no"
14951 fi
14952 rm -f conftest*
14953 fi
14954
14955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14956   echo "$ac_t""yes" 1>&6
14957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14958   cat >> confdefs.h <<EOF
14959 #define $ac_tr_func 1
14960 EOF
14961  
14962 else
14963   echo "$ac_t""no" 1>&6
14964 fi
14965 done
14966     
14967     fi
14968   fi
14969
14970   
14971   
14972   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14973 echo "configure:14974: checking for fmodl declaration" >&5
14974   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14975     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14976   echo $ac_n "(cached) $ac_c" 1>&6
14977 else
14978   
14979       
14980       ac_ext=C
14981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14982 ac_cpp='$CXXCPP $CPPFLAGS'
14983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14985 cross_compiling=$ac_cv_prog_cxx_cross
14986
14987       cat > conftest.$ac_ext <<EOF
14988 #line 14989 "configure"
14989 #include "confdefs.h"
14990 #include <math.h>
14991 int main() {
14992  fmodl(0, 0);
14993 ; return 0; }
14994 EOF
14995 if { (eval echo configure:14996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14996   rm -rf conftest*
14997   glibcpp_cv_func_fmodl_use=yes
14998 else
14999   echo "configure: failed program was:" >&5
15000   cat conftest.$ac_ext >&5
15001   rm -rf conftest*
15002   glibcpp_cv_func_fmodl_use=no
15003 fi
15004 rm -f conftest*
15005       ac_ext=c
15006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15007 ac_cpp='$CPP $CPPFLAGS'
15008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15010 cross_compiling=$ac_cv_prog_cc_cross
15011
15012     
15013 fi
15014
15015   fi
15016   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
15017
15018   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
15019     for ac_func in fmodl
15020 do
15021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15022 echo "configure:15023: checking for $ac_func" >&5
15023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15024   echo $ac_n "(cached) $ac_c" 1>&6
15025 else
15026   cat > conftest.$ac_ext <<EOF
15027 #line 15028 "configure"
15028 #include "confdefs.h"
15029 /* System header to define __stub macros and hopefully few prototypes,
15030     which can conflict with char $ac_func(); below.  */
15031 #include <assert.h>
15032 /* Override any gcc2 internal prototype to avoid an error.  */
15033 /* We use char because int might match the return type of a gcc2
15034     builtin and then its argument prototype would still apply.  */
15035 char $ac_func();
15036
15037 int main() {
15038
15039 /* The GNU C library defines this for functions which it implements
15040     to always fail with ENOSYS.  Some functions are actually named
15041     something starting with __ and the normal name is an alias.  */
15042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15043 choke me
15044 #else
15045 $ac_func();
15046 #endif
15047
15048 ; return 0; }
15049 EOF
15050 if { (eval echo configure:15051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15051   rm -rf conftest*
15052   eval "ac_cv_func_$ac_func=yes"
15053 else
15054   echo "configure: failed program was:" >&5
15055   cat conftest.$ac_ext >&5
15056   rm -rf conftest*
15057   eval "ac_cv_func_$ac_func=no"
15058 fi
15059 rm -f conftest*
15060 fi
15061
15062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15063   echo "$ac_t""yes" 1>&6
15064     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15065   cat >> confdefs.h <<EOF
15066 #define $ac_tr_func 1
15067 EOF
15068  
15069 else
15070   echo "$ac_t""no" 1>&6
15071 fi
15072 done
15073     
15074   else
15075     
15076   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
15077 echo "configure:15078: checking for _fmodl declaration" >&5
15078   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
15079     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
15080   echo $ac_n "(cached) $ac_c" 1>&6
15081 else
15082   
15083       
15084       ac_ext=C
15085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15086 ac_cpp='$CXXCPP $CPPFLAGS'
15087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15089 cross_compiling=$ac_cv_prog_cxx_cross
15090
15091       cat > conftest.$ac_ext <<EOF
15092 #line 15093 "configure"
15093 #include "confdefs.h"
15094 #include <math.h>
15095 int main() {
15096  _fmodl(0, 0);
15097 ; return 0; }
15098 EOF
15099 if { (eval echo configure:15100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15100   rm -rf conftest*
15101   glibcpp_cv_func__fmodl_use=yes
15102 else
15103   echo "configure: failed program was:" >&5
15104   cat conftest.$ac_ext >&5
15105   rm -rf conftest*
15106   glibcpp_cv_func__fmodl_use=no
15107 fi
15108 rm -f conftest*
15109       ac_ext=c
15110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15111 ac_cpp='$CPP $CPPFLAGS'
15112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15114 cross_compiling=$ac_cv_prog_cc_cross
15115
15116     
15117 fi
15118
15119   fi
15120   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
15121
15122     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
15123       for ac_func in _fmodl
15124 do
15125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15126 echo "configure:15127: checking for $ac_func" >&5
15127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15128   echo $ac_n "(cached) $ac_c" 1>&6
15129 else
15130   cat > conftest.$ac_ext <<EOF
15131 #line 15132 "configure"
15132 #include "confdefs.h"
15133 /* System header to define __stub macros and hopefully few prototypes,
15134     which can conflict with char $ac_func(); below.  */
15135 #include <assert.h>
15136 /* Override any gcc2 internal prototype to avoid an error.  */
15137 /* We use char because int might match the return type of a gcc2
15138     builtin and then its argument prototype would still apply.  */
15139 char $ac_func();
15140
15141 int main() {
15142
15143 /* The GNU C library defines this for functions which it implements
15144     to always fail with ENOSYS.  Some functions are actually named
15145     something starting with __ and the normal name is an alias.  */
15146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15147 choke me
15148 #else
15149 $ac_func();
15150 #endif
15151
15152 ; return 0; }
15153 EOF
15154 if { (eval echo configure:15155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15155   rm -rf conftest*
15156   eval "ac_cv_func_$ac_func=yes"
15157 else
15158   echo "configure: failed program was:" >&5
15159   cat conftest.$ac_ext >&5
15160   rm -rf conftest*
15161   eval "ac_cv_func_$ac_func=no"
15162 fi
15163 rm -f conftest*
15164 fi
15165
15166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15167   echo "$ac_t""yes" 1>&6
15168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15169   cat >> confdefs.h <<EOF
15170 #define $ac_tr_func 1
15171 EOF
15172  
15173 else
15174   echo "$ac_t""no" 1>&6
15175 fi
15176 done
15177     
15178     fi
15179   fi
15180
15181   
15182   
15183   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
15184 echo "configure:15185: checking for frexpl declaration" >&5
15185   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
15186     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
15187   echo $ac_n "(cached) $ac_c" 1>&6
15188 else
15189   
15190       
15191       ac_ext=C
15192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15193 ac_cpp='$CXXCPP $CPPFLAGS'
15194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15196 cross_compiling=$ac_cv_prog_cxx_cross
15197
15198       cat > conftest.$ac_ext <<EOF
15199 #line 15200 "configure"
15200 #include "confdefs.h"
15201 #include <math.h>
15202 int main() {
15203  frexpl(0, 0);
15204 ; return 0; }
15205 EOF
15206 if { (eval echo configure:15207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15207   rm -rf conftest*
15208   glibcpp_cv_func_frexpl_use=yes
15209 else
15210   echo "configure: failed program was:" >&5
15211   cat conftest.$ac_ext >&5
15212   rm -rf conftest*
15213   glibcpp_cv_func_frexpl_use=no
15214 fi
15215 rm -f conftest*
15216       ac_ext=c
15217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15218 ac_cpp='$CPP $CPPFLAGS'
15219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15221 cross_compiling=$ac_cv_prog_cc_cross
15222
15223     
15224 fi
15225
15226   fi
15227   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
15228
15229   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
15230     for ac_func in frexpl
15231 do
15232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15233 echo "configure:15234: checking for $ac_func" >&5
15234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15235   echo $ac_n "(cached) $ac_c" 1>&6
15236 else
15237   cat > conftest.$ac_ext <<EOF
15238 #line 15239 "configure"
15239 #include "confdefs.h"
15240 /* System header to define __stub macros and hopefully few prototypes,
15241     which can conflict with char $ac_func(); below.  */
15242 #include <assert.h>
15243 /* Override any gcc2 internal prototype to avoid an error.  */
15244 /* We use char because int might match the return type of a gcc2
15245     builtin and then its argument prototype would still apply.  */
15246 char $ac_func();
15247
15248 int main() {
15249
15250 /* The GNU C library defines this for functions which it implements
15251     to always fail with ENOSYS.  Some functions are actually named
15252     something starting with __ and the normal name is an alias.  */
15253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15254 choke me
15255 #else
15256 $ac_func();
15257 #endif
15258
15259 ; return 0; }
15260 EOF
15261 if { (eval echo configure:15262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15262   rm -rf conftest*
15263   eval "ac_cv_func_$ac_func=yes"
15264 else
15265   echo "configure: failed program was:" >&5
15266   cat conftest.$ac_ext >&5
15267   rm -rf conftest*
15268   eval "ac_cv_func_$ac_func=no"
15269 fi
15270 rm -f conftest*
15271 fi
15272
15273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15274   echo "$ac_t""yes" 1>&6
15275     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15276   cat >> confdefs.h <<EOF
15277 #define $ac_tr_func 1
15278 EOF
15279  
15280 else
15281   echo "$ac_t""no" 1>&6
15282 fi
15283 done
15284     
15285   else
15286     
15287   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
15288 echo "configure:15289: checking for _frexpl declaration" >&5
15289   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
15290     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
15291   echo $ac_n "(cached) $ac_c" 1>&6
15292 else
15293   
15294       
15295       ac_ext=C
15296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15297 ac_cpp='$CXXCPP $CPPFLAGS'
15298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15300 cross_compiling=$ac_cv_prog_cxx_cross
15301
15302       cat > conftest.$ac_ext <<EOF
15303 #line 15304 "configure"
15304 #include "confdefs.h"
15305 #include <math.h>
15306 int main() {
15307  _frexpl(0, 0);
15308 ; return 0; }
15309 EOF
15310 if { (eval echo configure:15311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15311   rm -rf conftest*
15312   glibcpp_cv_func__frexpl_use=yes
15313 else
15314   echo "configure: failed program was:" >&5
15315   cat conftest.$ac_ext >&5
15316   rm -rf conftest*
15317   glibcpp_cv_func__frexpl_use=no
15318 fi
15319 rm -f conftest*
15320       ac_ext=c
15321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15322 ac_cpp='$CPP $CPPFLAGS'
15323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15325 cross_compiling=$ac_cv_prog_cc_cross
15326
15327     
15328 fi
15329
15330   fi
15331   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
15332
15333     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
15334       for ac_func in _frexpl
15335 do
15336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15337 echo "configure:15338: checking for $ac_func" >&5
15338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15339   echo $ac_n "(cached) $ac_c" 1>&6
15340 else
15341   cat > conftest.$ac_ext <<EOF
15342 #line 15343 "configure"
15343 #include "confdefs.h"
15344 /* System header to define __stub macros and hopefully few prototypes,
15345     which can conflict with char $ac_func(); below.  */
15346 #include <assert.h>
15347 /* Override any gcc2 internal prototype to avoid an error.  */
15348 /* We use char because int might match the return type of a gcc2
15349     builtin and then its argument prototype would still apply.  */
15350 char $ac_func();
15351
15352 int main() {
15353
15354 /* The GNU C library defines this for functions which it implements
15355     to always fail with ENOSYS.  Some functions are actually named
15356     something starting with __ and the normal name is an alias.  */
15357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15358 choke me
15359 #else
15360 $ac_func();
15361 #endif
15362
15363 ; return 0; }
15364 EOF
15365 if { (eval echo configure:15366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15366   rm -rf conftest*
15367   eval "ac_cv_func_$ac_func=yes"
15368 else
15369   echo "configure: failed program was:" >&5
15370   cat conftest.$ac_ext >&5
15371   rm -rf conftest*
15372   eval "ac_cv_func_$ac_func=no"
15373 fi
15374 rm -f conftest*
15375 fi
15376
15377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15378   echo "$ac_t""yes" 1>&6
15379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15380   cat >> confdefs.h <<EOF
15381 #define $ac_tr_func 1
15382 EOF
15383  
15384 else
15385   echo "$ac_t""no" 1>&6
15386 fi
15387 done
15388     
15389     fi
15390   fi
15391
15392   
15393   
15394   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
15395 echo "configure:15396: checking for hypotl declaration" >&5
15396   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
15397     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
15398   echo $ac_n "(cached) $ac_c" 1>&6
15399 else
15400   
15401       
15402       ac_ext=C
15403 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15404 ac_cpp='$CXXCPP $CPPFLAGS'
15405 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15406 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15407 cross_compiling=$ac_cv_prog_cxx_cross
15408
15409       cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15412 #include <math.h>
15413 int main() {
15414  hypotl(0, 0);
15415 ; return 0; }
15416 EOF
15417 if { (eval echo configure:15418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15418   rm -rf conftest*
15419   glibcpp_cv_func_hypotl_use=yes
15420 else
15421   echo "configure: failed program was:" >&5
15422   cat conftest.$ac_ext >&5
15423   rm -rf conftest*
15424   glibcpp_cv_func_hypotl_use=no
15425 fi
15426 rm -f conftest*
15427       ac_ext=c
15428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15429 ac_cpp='$CPP $CPPFLAGS'
15430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15432 cross_compiling=$ac_cv_prog_cc_cross
15433
15434     
15435 fi
15436
15437   fi
15438   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
15439
15440   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
15441     for ac_func in hypotl
15442 do
15443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15444 echo "configure:15445: checking for $ac_func" >&5
15445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15446   echo $ac_n "(cached) $ac_c" 1>&6
15447 else
15448   cat > conftest.$ac_ext <<EOF
15449 #line 15450 "configure"
15450 #include "confdefs.h"
15451 /* System header to define __stub macros and hopefully few prototypes,
15452     which can conflict with char $ac_func(); below.  */
15453 #include <assert.h>
15454 /* Override any gcc2 internal prototype to avoid an error.  */
15455 /* We use char because int might match the return type of a gcc2
15456     builtin and then its argument prototype would still apply.  */
15457 char $ac_func();
15458
15459 int main() {
15460
15461 /* The GNU C library defines this for functions which it implements
15462     to always fail with ENOSYS.  Some functions are actually named
15463     something starting with __ and the normal name is an alias.  */
15464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15465 choke me
15466 #else
15467 $ac_func();
15468 #endif
15469
15470 ; return 0; }
15471 EOF
15472 if { (eval echo configure:15473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15473   rm -rf conftest*
15474   eval "ac_cv_func_$ac_func=yes"
15475 else
15476   echo "configure: failed program was:" >&5
15477   cat conftest.$ac_ext >&5
15478   rm -rf conftest*
15479   eval "ac_cv_func_$ac_func=no"
15480 fi
15481 rm -f conftest*
15482 fi
15483
15484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15485   echo "$ac_t""yes" 1>&6
15486     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15487   cat >> confdefs.h <<EOF
15488 #define $ac_tr_func 1
15489 EOF
15490  
15491 else
15492   echo "$ac_t""no" 1>&6
15493 fi
15494 done
15495     
15496   else
15497     
15498   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
15499 echo "configure:15500: checking for _hypotl declaration" >&5
15500   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
15501     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
15502   echo $ac_n "(cached) $ac_c" 1>&6
15503 else
15504   
15505       
15506       ac_ext=C
15507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15508 ac_cpp='$CXXCPP $CPPFLAGS'
15509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15511 cross_compiling=$ac_cv_prog_cxx_cross
15512
15513       cat > conftest.$ac_ext <<EOF
15514 #line 15515 "configure"
15515 #include "confdefs.h"
15516 #include <math.h>
15517 int main() {
15518  _hypotl(0, 0);
15519 ; return 0; }
15520 EOF
15521 if { (eval echo configure:15522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15522   rm -rf conftest*
15523   glibcpp_cv_func__hypotl_use=yes
15524 else
15525   echo "configure: failed program was:" >&5
15526   cat conftest.$ac_ext >&5
15527   rm -rf conftest*
15528   glibcpp_cv_func__hypotl_use=no
15529 fi
15530 rm -f conftest*
15531       ac_ext=c
15532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15533 ac_cpp='$CPP $CPPFLAGS'
15534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15536 cross_compiling=$ac_cv_prog_cc_cross
15537
15538     
15539 fi
15540
15541   fi
15542   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
15543
15544     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
15545       for ac_func in _hypotl
15546 do
15547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15548 echo "configure:15549: checking for $ac_func" >&5
15549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15550   echo $ac_n "(cached) $ac_c" 1>&6
15551 else
15552   cat > conftest.$ac_ext <<EOF
15553 #line 15554 "configure"
15554 #include "confdefs.h"
15555 /* System header to define __stub macros and hopefully few prototypes,
15556     which can conflict with char $ac_func(); below.  */
15557 #include <assert.h>
15558 /* Override any gcc2 internal prototype to avoid an error.  */
15559 /* We use char because int might match the return type of a gcc2
15560     builtin and then its argument prototype would still apply.  */
15561 char $ac_func();
15562
15563 int main() {
15564
15565 /* The GNU C library defines this for functions which it implements
15566     to always fail with ENOSYS.  Some functions are actually named
15567     something starting with __ and the normal name is an alias.  */
15568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15569 choke me
15570 #else
15571 $ac_func();
15572 #endif
15573
15574 ; return 0; }
15575 EOF
15576 if { (eval echo configure:15577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15577   rm -rf conftest*
15578   eval "ac_cv_func_$ac_func=yes"
15579 else
15580   echo "configure: failed program was:" >&5
15581   cat conftest.$ac_ext >&5
15582   rm -rf conftest*
15583   eval "ac_cv_func_$ac_func=no"
15584 fi
15585 rm -f conftest*
15586 fi
15587
15588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15589   echo "$ac_t""yes" 1>&6
15590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15591   cat >> confdefs.h <<EOF
15592 #define $ac_tr_func 1
15593 EOF
15594  
15595 else
15596   echo "$ac_t""no" 1>&6
15597 fi
15598 done
15599     
15600     fi
15601   fi
15602
15603   
15604   
15605   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
15606 echo "configure:15607: checking for ldexpl declaration" >&5
15607   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
15608     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
15609   echo $ac_n "(cached) $ac_c" 1>&6
15610 else
15611   
15612       
15613       ac_ext=C
15614 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15615 ac_cpp='$CXXCPP $CPPFLAGS'
15616 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15617 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15618 cross_compiling=$ac_cv_prog_cxx_cross
15619
15620       cat > conftest.$ac_ext <<EOF
15621 #line 15622 "configure"
15622 #include "confdefs.h"
15623 #include <math.h>
15624 int main() {
15625  ldexpl(0, 0);
15626 ; return 0; }
15627 EOF
15628 if { (eval echo configure:15629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15629   rm -rf conftest*
15630   glibcpp_cv_func_ldexpl_use=yes
15631 else
15632   echo "configure: failed program was:" >&5
15633   cat conftest.$ac_ext >&5
15634   rm -rf conftest*
15635   glibcpp_cv_func_ldexpl_use=no
15636 fi
15637 rm -f conftest*
15638       ac_ext=c
15639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15640 ac_cpp='$CPP $CPPFLAGS'
15641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15643 cross_compiling=$ac_cv_prog_cc_cross
15644
15645     
15646 fi
15647
15648   fi
15649   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
15650
15651   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
15652     for ac_func in ldexpl
15653 do
15654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15655 echo "configure:15656: checking for $ac_func" >&5
15656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15657   echo $ac_n "(cached) $ac_c" 1>&6
15658 else
15659   cat > conftest.$ac_ext <<EOF
15660 #line 15661 "configure"
15661 #include "confdefs.h"
15662 /* System header to define __stub macros and hopefully few prototypes,
15663     which can conflict with char $ac_func(); below.  */
15664 #include <assert.h>
15665 /* Override any gcc2 internal prototype to avoid an error.  */
15666 /* We use char because int might match the return type of a gcc2
15667     builtin and then its argument prototype would still apply.  */
15668 char $ac_func();
15669
15670 int main() {
15671
15672 /* The GNU C library defines this for functions which it implements
15673     to always fail with ENOSYS.  Some functions are actually named
15674     something starting with __ and the normal name is an alias.  */
15675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15676 choke me
15677 #else
15678 $ac_func();
15679 #endif
15680
15681 ; return 0; }
15682 EOF
15683 if { (eval echo configure:15684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15684   rm -rf conftest*
15685   eval "ac_cv_func_$ac_func=yes"
15686 else
15687   echo "configure: failed program was:" >&5
15688   cat conftest.$ac_ext >&5
15689   rm -rf conftest*
15690   eval "ac_cv_func_$ac_func=no"
15691 fi
15692 rm -f conftest*
15693 fi
15694
15695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15696   echo "$ac_t""yes" 1>&6
15697     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15698   cat >> confdefs.h <<EOF
15699 #define $ac_tr_func 1
15700 EOF
15701  
15702 else
15703   echo "$ac_t""no" 1>&6
15704 fi
15705 done
15706     
15707   else
15708     
15709   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
15710 echo "configure:15711: checking for _ldexpl declaration" >&5
15711   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
15712     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
15713   echo $ac_n "(cached) $ac_c" 1>&6
15714 else
15715   
15716       
15717       ac_ext=C
15718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15719 ac_cpp='$CXXCPP $CPPFLAGS'
15720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15722 cross_compiling=$ac_cv_prog_cxx_cross
15723
15724       cat > conftest.$ac_ext <<EOF
15725 #line 15726 "configure"
15726 #include "confdefs.h"
15727 #include <math.h>
15728 int main() {
15729  _ldexpl(0, 0);
15730 ; return 0; }
15731 EOF
15732 if { (eval echo configure:15733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15733   rm -rf conftest*
15734   glibcpp_cv_func__ldexpl_use=yes
15735 else
15736   echo "configure: failed program was:" >&5
15737   cat conftest.$ac_ext >&5
15738   rm -rf conftest*
15739   glibcpp_cv_func__ldexpl_use=no
15740 fi
15741 rm -f conftest*
15742       ac_ext=c
15743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15744 ac_cpp='$CPP $CPPFLAGS'
15745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15747 cross_compiling=$ac_cv_prog_cc_cross
15748
15749     
15750 fi
15751
15752   fi
15753   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
15754
15755     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
15756       for ac_func in _ldexpl
15757 do
15758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15759 echo "configure:15760: checking for $ac_func" >&5
15760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15761   echo $ac_n "(cached) $ac_c" 1>&6
15762 else
15763   cat > conftest.$ac_ext <<EOF
15764 #line 15765 "configure"
15765 #include "confdefs.h"
15766 /* System header to define __stub macros and hopefully few prototypes,
15767     which can conflict with char $ac_func(); below.  */
15768 #include <assert.h>
15769 /* Override any gcc2 internal prototype to avoid an error.  */
15770 /* We use char because int might match the return type of a gcc2
15771     builtin and then its argument prototype would still apply.  */
15772 char $ac_func();
15773
15774 int main() {
15775
15776 /* The GNU C library defines this for functions which it implements
15777     to always fail with ENOSYS.  Some functions are actually named
15778     something starting with __ and the normal name is an alias.  */
15779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15780 choke me
15781 #else
15782 $ac_func();
15783 #endif
15784
15785 ; return 0; }
15786 EOF
15787 if { (eval echo configure:15788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15788   rm -rf conftest*
15789   eval "ac_cv_func_$ac_func=yes"
15790 else
15791   echo "configure: failed program was:" >&5
15792   cat conftest.$ac_ext >&5
15793   rm -rf conftest*
15794   eval "ac_cv_func_$ac_func=no"
15795 fi
15796 rm -f conftest*
15797 fi
15798
15799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15800   echo "$ac_t""yes" 1>&6
15801     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15802   cat >> confdefs.h <<EOF
15803 #define $ac_tr_func 1
15804 EOF
15805  
15806 else
15807   echo "$ac_t""no" 1>&6
15808 fi
15809 done
15810     
15811     fi
15812   fi
15813
15814   
15815   
15816   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
15817 echo "configure:15818: checking for logl declaration" >&5
15818   if test x${glibcpp_cv_func_logl_use+set} != xset; then
15819     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
15820   echo $ac_n "(cached) $ac_c" 1>&6
15821 else
15822   
15823       
15824       ac_ext=C
15825 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15826 ac_cpp='$CXXCPP $CPPFLAGS'
15827 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15828 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15829 cross_compiling=$ac_cv_prog_cxx_cross
15830
15831       cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 #include <math.h>
15835                       #ifdef HAVE_IEEEFP_H
15836                       #include <ieeefp.h>
15837                       #endif
15838                      
15839 int main() {
15840  logl(0);
15841 ; return 0; }
15842 EOF
15843 if { (eval echo configure:15844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15844   rm -rf conftest*
15845   glibcpp_cv_func_logl_use=yes
15846 else
15847   echo "configure: failed program was:" >&5
15848   cat conftest.$ac_ext >&5
15849   rm -rf conftest*
15850   glibcpp_cv_func_logl_use=no
15851 fi
15852 rm -f conftest*
15853       ac_ext=c
15854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15855 ac_cpp='$CPP $CPPFLAGS'
15856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15858 cross_compiling=$ac_cv_prog_cc_cross
15859
15860     
15861 fi
15862
15863   fi
15864   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
15865
15866   if test x$glibcpp_cv_func_logl_use = x"yes"; then
15867     for ac_func in logl
15868 do
15869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15870 echo "configure:15871: checking for $ac_func" >&5
15871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15872   echo $ac_n "(cached) $ac_c" 1>&6
15873 else
15874   cat > conftest.$ac_ext <<EOF
15875 #line 15876 "configure"
15876 #include "confdefs.h"
15877 /* System header to define __stub macros and hopefully few prototypes,
15878     which can conflict with char $ac_func(); below.  */
15879 #include <assert.h>
15880 /* Override any gcc2 internal prototype to avoid an error.  */
15881 /* We use char because int might match the return type of a gcc2
15882     builtin and then its argument prototype would still apply.  */
15883 char $ac_func();
15884
15885 int main() {
15886
15887 /* The GNU C library defines this for functions which it implements
15888     to always fail with ENOSYS.  Some functions are actually named
15889     something starting with __ and the normal name is an alias.  */
15890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15891 choke me
15892 #else
15893 $ac_func();
15894 #endif
15895
15896 ; return 0; }
15897 EOF
15898 if { (eval echo configure:15899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15899   rm -rf conftest*
15900   eval "ac_cv_func_$ac_func=yes"
15901 else
15902   echo "configure: failed program was:" >&5
15903   cat conftest.$ac_ext >&5
15904   rm -rf conftest*
15905   eval "ac_cv_func_$ac_func=no"
15906 fi
15907 rm -f conftest*
15908 fi
15909
15910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15911   echo "$ac_t""yes" 1>&6
15912     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15913   cat >> confdefs.h <<EOF
15914 #define $ac_tr_func 1
15915 EOF
15916  
15917 else
15918   echo "$ac_t""no" 1>&6
15919 fi
15920 done
15921     
15922   else
15923     
15924   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
15925 echo "configure:15926: checking for _logl declaration" >&5
15926   if test x${glibcpp_cv_func__logl_use+set} != xset; then
15927     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
15928   echo $ac_n "(cached) $ac_c" 1>&6
15929 else
15930   
15931       
15932       ac_ext=C
15933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15934 ac_cpp='$CXXCPP $CPPFLAGS'
15935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15937 cross_compiling=$ac_cv_prog_cxx_cross
15938
15939       cat > conftest.$ac_ext <<EOF
15940 #line 15941 "configure"
15941 #include "confdefs.h"
15942 #include <math.h>
15943                       #ifdef HAVE_IEEEFP_H
15944                       #include <ieeefp.h>
15945                       #endif
15946                      
15947 int main() {
15948  _logl(0);
15949 ; return 0; }
15950 EOF
15951 if { (eval echo configure:15952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15952   rm -rf conftest*
15953   glibcpp_cv_func__logl_use=yes
15954 else
15955   echo "configure: failed program was:" >&5
15956   cat conftest.$ac_ext >&5
15957   rm -rf conftest*
15958   glibcpp_cv_func__logl_use=no
15959 fi
15960 rm -f conftest*
15961       ac_ext=c
15962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15963 ac_cpp='$CPP $CPPFLAGS'
15964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15966 cross_compiling=$ac_cv_prog_cc_cross
15967
15968     
15969 fi
15970
15971   fi
15972   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15973
15974     if test x$glibcpp_cv_func__logl_use = x"yes"; then
15975       for ac_func in _logl
15976 do
15977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15978 echo "configure:15979: checking for $ac_func" >&5
15979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15980   echo $ac_n "(cached) $ac_c" 1>&6
15981 else
15982   cat > conftest.$ac_ext <<EOF
15983 #line 15984 "configure"
15984 #include "confdefs.h"
15985 /* System header to define __stub macros and hopefully few prototypes,
15986     which can conflict with char $ac_func(); below.  */
15987 #include <assert.h>
15988 /* Override any gcc2 internal prototype to avoid an error.  */
15989 /* We use char because int might match the return type of a gcc2
15990     builtin and then its argument prototype would still apply.  */
15991 char $ac_func();
15992
15993 int main() {
15994
15995 /* The GNU C library defines this for functions which it implements
15996     to always fail with ENOSYS.  Some functions are actually named
15997     something starting with __ and the normal name is an alias.  */
15998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15999 choke me
16000 #else
16001 $ac_func();
16002 #endif
16003
16004 ; return 0; }
16005 EOF
16006 if { (eval echo configure:16007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16007   rm -rf conftest*
16008   eval "ac_cv_func_$ac_func=yes"
16009 else
16010   echo "configure: failed program was:" >&5
16011   cat conftest.$ac_ext >&5
16012   rm -rf conftest*
16013   eval "ac_cv_func_$ac_func=no"
16014 fi
16015 rm -f conftest*
16016 fi
16017
16018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16019   echo "$ac_t""yes" 1>&6
16020     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16021   cat >> confdefs.h <<EOF
16022 #define $ac_tr_func 1
16023 EOF
16024  
16025 else
16026   echo "$ac_t""no" 1>&6
16027 fi
16028 done
16029     
16030     fi
16031   fi
16032
16033   
16034   
16035   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
16036 echo "configure:16037: checking for log10l declaration" >&5
16037   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
16038     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
16039   echo $ac_n "(cached) $ac_c" 1>&6
16040 else
16041   
16042       
16043       ac_ext=C
16044 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16045 ac_cpp='$CXXCPP $CPPFLAGS'
16046 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16047 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16048 cross_compiling=$ac_cv_prog_cxx_cross
16049
16050       cat > conftest.$ac_ext <<EOF
16051 #line 16052 "configure"
16052 #include "confdefs.h"
16053 #include <math.h>
16054                       #ifdef HAVE_IEEEFP_H
16055                       #include <ieeefp.h>
16056                       #endif
16057                      
16058 int main() {
16059  log10l(0);
16060 ; return 0; }
16061 EOF
16062 if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16063   rm -rf conftest*
16064   glibcpp_cv_func_log10l_use=yes
16065 else
16066   echo "configure: failed program was:" >&5
16067   cat conftest.$ac_ext >&5
16068   rm -rf conftest*
16069   glibcpp_cv_func_log10l_use=no
16070 fi
16071 rm -f conftest*
16072       ac_ext=c
16073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16074 ac_cpp='$CPP $CPPFLAGS'
16075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16077 cross_compiling=$ac_cv_prog_cc_cross
16078
16079     
16080 fi
16081
16082   fi
16083   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
16084
16085   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
16086     for ac_func in log10l
16087 do
16088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16089 echo "configure:16090: checking for $ac_func" >&5
16090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16091   echo $ac_n "(cached) $ac_c" 1>&6
16092 else
16093   cat > conftest.$ac_ext <<EOF
16094 #line 16095 "configure"
16095 #include "confdefs.h"
16096 /* System header to define __stub macros and hopefully few prototypes,
16097     which can conflict with char $ac_func(); below.  */
16098 #include <assert.h>
16099 /* Override any gcc2 internal prototype to avoid an error.  */
16100 /* We use char because int might match the return type of a gcc2
16101     builtin and then its argument prototype would still apply.  */
16102 char $ac_func();
16103
16104 int main() {
16105
16106 /* The GNU C library defines this for functions which it implements
16107     to always fail with ENOSYS.  Some functions are actually named
16108     something starting with __ and the normal name is an alias.  */
16109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16110 choke me
16111 #else
16112 $ac_func();
16113 #endif
16114
16115 ; return 0; }
16116 EOF
16117 if { (eval echo configure:16118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16118   rm -rf conftest*
16119   eval "ac_cv_func_$ac_func=yes"
16120 else
16121   echo "configure: failed program was:" >&5
16122   cat conftest.$ac_ext >&5
16123   rm -rf conftest*
16124   eval "ac_cv_func_$ac_func=no"
16125 fi
16126 rm -f conftest*
16127 fi
16128
16129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16130   echo "$ac_t""yes" 1>&6
16131     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16132   cat >> confdefs.h <<EOF
16133 #define $ac_tr_func 1
16134 EOF
16135  
16136 else
16137   echo "$ac_t""no" 1>&6
16138 fi
16139 done
16140     
16141   else
16142     
16143   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16144 echo "configure:16145: checking for _log10l declaration" >&5
16145   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16146     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16147   echo $ac_n "(cached) $ac_c" 1>&6
16148 else
16149   
16150       
16151       ac_ext=C
16152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16153 ac_cpp='$CXXCPP $CPPFLAGS'
16154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16156 cross_compiling=$ac_cv_prog_cxx_cross
16157
16158       cat > conftest.$ac_ext <<EOF
16159 #line 16160 "configure"
16160 #include "confdefs.h"
16161 #include <math.h>
16162                       #ifdef HAVE_IEEEFP_H
16163                       #include <ieeefp.h>
16164                       #endif
16165                      
16166 int main() {
16167  _log10l(0);
16168 ; return 0; }
16169 EOF
16170 if { (eval echo configure:16171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16171   rm -rf conftest*
16172   glibcpp_cv_func__log10l_use=yes
16173 else
16174   echo "configure: failed program was:" >&5
16175   cat conftest.$ac_ext >&5
16176   rm -rf conftest*
16177   glibcpp_cv_func__log10l_use=no
16178 fi
16179 rm -f conftest*
16180       ac_ext=c
16181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16182 ac_cpp='$CPP $CPPFLAGS'
16183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16185 cross_compiling=$ac_cv_prog_cc_cross
16186
16187     
16188 fi
16189
16190   fi
16191   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
16192
16193     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
16194       for ac_func in _log10l
16195 do
16196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16197 echo "configure:16198: checking for $ac_func" >&5
16198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16199   echo $ac_n "(cached) $ac_c" 1>&6
16200 else
16201   cat > conftest.$ac_ext <<EOF
16202 #line 16203 "configure"
16203 #include "confdefs.h"
16204 /* System header to define __stub macros and hopefully few prototypes,
16205     which can conflict with char $ac_func(); below.  */
16206 #include <assert.h>
16207 /* Override any gcc2 internal prototype to avoid an error.  */
16208 /* We use char because int might match the return type of a gcc2
16209     builtin and then its argument prototype would still apply.  */
16210 char $ac_func();
16211
16212 int main() {
16213
16214 /* The GNU C library defines this for functions which it implements
16215     to always fail with ENOSYS.  Some functions are actually named
16216     something starting with __ and the normal name is an alias.  */
16217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16218 choke me
16219 #else
16220 $ac_func();
16221 #endif
16222
16223 ; return 0; }
16224 EOF
16225 if { (eval echo configure:16226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16226   rm -rf conftest*
16227   eval "ac_cv_func_$ac_func=yes"
16228 else
16229   echo "configure: failed program was:" >&5
16230   cat conftest.$ac_ext >&5
16231   rm -rf conftest*
16232   eval "ac_cv_func_$ac_func=no"
16233 fi
16234 rm -f conftest*
16235 fi
16236
16237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16238   echo "$ac_t""yes" 1>&6
16239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16240   cat >> confdefs.h <<EOF
16241 #define $ac_tr_func 1
16242 EOF
16243  
16244 else
16245   echo "$ac_t""no" 1>&6
16246 fi
16247 done
16248     
16249     fi
16250   fi
16251
16252   
16253   
16254   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
16255 echo "configure:16256: checking for modfl declaration" >&5
16256   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
16257     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
16258   echo $ac_n "(cached) $ac_c" 1>&6
16259 else
16260   
16261       
16262       ac_ext=C
16263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16264 ac_cpp='$CXXCPP $CPPFLAGS'
16265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16267 cross_compiling=$ac_cv_prog_cxx_cross
16268
16269       cat > conftest.$ac_ext <<EOF
16270 #line 16271 "configure"
16271 #include "confdefs.h"
16272 #include <math.h>
16273 int main() {
16274  modfl(0, 0);
16275 ; return 0; }
16276 EOF
16277 if { (eval echo configure:16278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16278   rm -rf conftest*
16279   glibcpp_cv_func_modfl_use=yes
16280 else
16281   echo "configure: failed program was:" >&5
16282   cat conftest.$ac_ext >&5
16283   rm -rf conftest*
16284   glibcpp_cv_func_modfl_use=no
16285 fi
16286 rm -f conftest*
16287       ac_ext=c
16288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16289 ac_cpp='$CPP $CPPFLAGS'
16290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16292 cross_compiling=$ac_cv_prog_cc_cross
16293
16294     
16295 fi
16296
16297   fi
16298   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
16299
16300   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
16301     for ac_func in modfl
16302 do
16303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16304 echo "configure:16305: checking for $ac_func" >&5
16305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16306   echo $ac_n "(cached) $ac_c" 1>&6
16307 else
16308   cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 /* System header to define __stub macros and hopefully few prototypes,
16312     which can conflict with char $ac_func(); below.  */
16313 #include <assert.h>
16314 /* Override any gcc2 internal prototype to avoid an error.  */
16315 /* We use char because int might match the return type of a gcc2
16316     builtin and then its argument prototype would still apply.  */
16317 char $ac_func();
16318
16319 int main() {
16320
16321 /* The GNU C library defines this for functions which it implements
16322     to always fail with ENOSYS.  Some functions are actually named
16323     something starting with __ and the normal name is an alias.  */
16324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16325 choke me
16326 #else
16327 $ac_func();
16328 #endif
16329
16330 ; return 0; }
16331 EOF
16332 if { (eval echo configure:16333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16333   rm -rf conftest*
16334   eval "ac_cv_func_$ac_func=yes"
16335 else
16336   echo "configure: failed program was:" >&5
16337   cat conftest.$ac_ext >&5
16338   rm -rf conftest*
16339   eval "ac_cv_func_$ac_func=no"
16340 fi
16341 rm -f conftest*
16342 fi
16343
16344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16345   echo "$ac_t""yes" 1>&6
16346     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16347   cat >> confdefs.h <<EOF
16348 #define $ac_tr_func 1
16349 EOF
16350  
16351 else
16352   echo "$ac_t""no" 1>&6
16353 fi
16354 done
16355     
16356   else
16357     
16358   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
16359 echo "configure:16360: checking for _modfl declaration" >&5
16360   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
16361     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
16362   echo $ac_n "(cached) $ac_c" 1>&6
16363 else
16364   
16365       
16366       ac_ext=C
16367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16368 ac_cpp='$CXXCPP $CPPFLAGS'
16369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16371 cross_compiling=$ac_cv_prog_cxx_cross
16372
16373       cat > conftest.$ac_ext <<EOF
16374 #line 16375 "configure"
16375 #include "confdefs.h"
16376 #include <math.h>
16377 int main() {
16378  _modfl(0, 0);
16379 ; return 0; }
16380 EOF
16381 if { (eval echo configure:16382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16382   rm -rf conftest*
16383   glibcpp_cv_func__modfl_use=yes
16384 else
16385   echo "configure: failed program was:" >&5
16386   cat conftest.$ac_ext >&5
16387   rm -rf conftest*
16388   glibcpp_cv_func__modfl_use=no
16389 fi
16390 rm -f conftest*
16391       ac_ext=c
16392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16393 ac_cpp='$CPP $CPPFLAGS'
16394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16396 cross_compiling=$ac_cv_prog_cc_cross
16397
16398     
16399 fi
16400
16401   fi
16402   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
16403
16404     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
16405       for ac_func in _modfl
16406 do
16407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16408 echo "configure:16409: checking for $ac_func" >&5
16409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16410   echo $ac_n "(cached) $ac_c" 1>&6
16411 else
16412   cat > conftest.$ac_ext <<EOF
16413 #line 16414 "configure"
16414 #include "confdefs.h"
16415 /* System header to define __stub macros and hopefully few prototypes,
16416     which can conflict with char $ac_func(); below.  */
16417 #include <assert.h>
16418 /* Override any gcc2 internal prototype to avoid an error.  */
16419 /* We use char because int might match the return type of a gcc2
16420     builtin and then its argument prototype would still apply.  */
16421 char $ac_func();
16422
16423 int main() {
16424
16425 /* The GNU C library defines this for functions which it implements
16426     to always fail with ENOSYS.  Some functions are actually named
16427     something starting with __ and the normal name is an alias.  */
16428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16429 choke me
16430 #else
16431 $ac_func();
16432 #endif
16433
16434 ; return 0; }
16435 EOF
16436 if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16437   rm -rf conftest*
16438   eval "ac_cv_func_$ac_func=yes"
16439 else
16440   echo "configure: failed program was:" >&5
16441   cat conftest.$ac_ext >&5
16442   rm -rf conftest*
16443   eval "ac_cv_func_$ac_func=no"
16444 fi
16445 rm -f conftest*
16446 fi
16447
16448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16449   echo "$ac_t""yes" 1>&6
16450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16451   cat >> confdefs.h <<EOF
16452 #define $ac_tr_func 1
16453 EOF
16454  
16455 else
16456   echo "$ac_t""no" 1>&6
16457 fi
16458 done
16459     
16460     fi
16461   fi
16462
16463   
16464   
16465   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
16466 echo "configure:16467: checking for powl declaration" >&5
16467   if test x${glibcpp_cv_func_powl_use+set} != xset; then
16468     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
16469   echo $ac_n "(cached) $ac_c" 1>&6
16470 else
16471   
16472       
16473       ac_ext=C
16474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16475 ac_cpp='$CXXCPP $CPPFLAGS'
16476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16478 cross_compiling=$ac_cv_prog_cxx_cross
16479
16480       cat > conftest.$ac_ext <<EOF
16481 #line 16482 "configure"
16482 #include "confdefs.h"
16483 #include <math.h>
16484 int main() {
16485  powl(0, 0);
16486 ; return 0; }
16487 EOF
16488 if { (eval echo configure:16489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16489   rm -rf conftest*
16490   glibcpp_cv_func_powl_use=yes
16491 else
16492   echo "configure: failed program was:" >&5
16493   cat conftest.$ac_ext >&5
16494   rm -rf conftest*
16495   glibcpp_cv_func_powl_use=no
16496 fi
16497 rm -f conftest*
16498       ac_ext=c
16499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16500 ac_cpp='$CPP $CPPFLAGS'
16501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16503 cross_compiling=$ac_cv_prog_cc_cross
16504
16505     
16506 fi
16507
16508   fi
16509   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
16510
16511   if test x$glibcpp_cv_func_powl_use = x"yes"; then
16512     for ac_func in powl
16513 do
16514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16515 echo "configure:16516: checking for $ac_func" >&5
16516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16517   echo $ac_n "(cached) $ac_c" 1>&6
16518 else
16519   cat > conftest.$ac_ext <<EOF
16520 #line 16521 "configure"
16521 #include "confdefs.h"
16522 /* System header to define __stub macros and hopefully few prototypes,
16523     which can conflict with char $ac_func(); below.  */
16524 #include <assert.h>
16525 /* Override any gcc2 internal prototype to avoid an error.  */
16526 /* We use char because int might match the return type of a gcc2
16527     builtin and then its argument prototype would still apply.  */
16528 char $ac_func();
16529
16530 int main() {
16531
16532 /* The GNU C library defines this for functions which it implements
16533     to always fail with ENOSYS.  Some functions are actually named
16534     something starting with __ and the normal name is an alias.  */
16535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16536 choke me
16537 #else
16538 $ac_func();
16539 #endif
16540
16541 ; return 0; }
16542 EOF
16543 if { (eval echo configure:16544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16544   rm -rf conftest*
16545   eval "ac_cv_func_$ac_func=yes"
16546 else
16547   echo "configure: failed program was:" >&5
16548   cat conftest.$ac_ext >&5
16549   rm -rf conftest*
16550   eval "ac_cv_func_$ac_func=no"
16551 fi
16552 rm -f conftest*
16553 fi
16554
16555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16556   echo "$ac_t""yes" 1>&6
16557     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16558   cat >> confdefs.h <<EOF
16559 #define $ac_tr_func 1
16560 EOF
16561  
16562 else
16563   echo "$ac_t""no" 1>&6
16564 fi
16565 done
16566     
16567   else
16568     
16569   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
16570 echo "configure:16571: checking for _powl declaration" >&5
16571   if test x${glibcpp_cv_func__powl_use+set} != xset; then
16572     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
16573   echo $ac_n "(cached) $ac_c" 1>&6
16574 else
16575   
16576       
16577       ac_ext=C
16578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16579 ac_cpp='$CXXCPP $CPPFLAGS'
16580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16582 cross_compiling=$ac_cv_prog_cxx_cross
16583
16584       cat > conftest.$ac_ext <<EOF
16585 #line 16586 "configure"
16586 #include "confdefs.h"
16587 #include <math.h>
16588 int main() {
16589  _powl(0, 0);
16590 ; return 0; }
16591 EOF
16592 if { (eval echo configure:16593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16593   rm -rf conftest*
16594   glibcpp_cv_func__powl_use=yes
16595 else
16596   echo "configure: failed program was:" >&5
16597   cat conftest.$ac_ext >&5
16598   rm -rf conftest*
16599   glibcpp_cv_func__powl_use=no
16600 fi
16601 rm -f conftest*
16602       ac_ext=c
16603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16604 ac_cpp='$CPP $CPPFLAGS'
16605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16607 cross_compiling=$ac_cv_prog_cc_cross
16608
16609     
16610 fi
16611
16612   fi
16613   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
16614
16615     if test x$glibcpp_cv_func__powl_use = x"yes"; then
16616       for ac_func in _powl
16617 do
16618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16619 echo "configure:16620: checking for $ac_func" >&5
16620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16621   echo $ac_n "(cached) $ac_c" 1>&6
16622 else
16623   cat > conftest.$ac_ext <<EOF
16624 #line 16625 "configure"
16625 #include "confdefs.h"
16626 /* System header to define __stub macros and hopefully few prototypes,
16627     which can conflict with char $ac_func(); below.  */
16628 #include <assert.h>
16629 /* Override any gcc2 internal prototype to avoid an error.  */
16630 /* We use char because int might match the return type of a gcc2
16631     builtin and then its argument prototype would still apply.  */
16632 char $ac_func();
16633
16634 int main() {
16635
16636 /* The GNU C library defines this for functions which it implements
16637     to always fail with ENOSYS.  Some functions are actually named
16638     something starting with __ and the normal name is an alias.  */
16639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16640 choke me
16641 #else
16642 $ac_func();
16643 #endif
16644
16645 ; return 0; }
16646 EOF
16647 if { (eval echo configure:16648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16648   rm -rf conftest*
16649   eval "ac_cv_func_$ac_func=yes"
16650 else
16651   echo "configure: failed program was:" >&5
16652   cat conftest.$ac_ext >&5
16653   rm -rf conftest*
16654   eval "ac_cv_func_$ac_func=no"
16655 fi
16656 rm -f conftest*
16657 fi
16658
16659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16660   echo "$ac_t""yes" 1>&6
16661     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16662   cat >> confdefs.h <<EOF
16663 #define $ac_tr_func 1
16664 EOF
16665  
16666 else
16667   echo "$ac_t""no" 1>&6
16668 fi
16669 done
16670     
16671     fi
16672   fi
16673
16674   
16675   
16676   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
16677 echo "configure:16678: checking for sqrtl declaration" >&5
16678   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
16679     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
16680   echo $ac_n "(cached) $ac_c" 1>&6
16681 else
16682   
16683       
16684       ac_ext=C
16685 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16686 ac_cpp='$CXXCPP $CPPFLAGS'
16687 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16688 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16689 cross_compiling=$ac_cv_prog_cxx_cross
16690
16691       cat > conftest.$ac_ext <<EOF
16692 #line 16693 "configure"
16693 #include "confdefs.h"
16694 #include <math.h>
16695                       #ifdef HAVE_IEEEFP_H
16696                       #include <ieeefp.h>
16697                       #endif
16698                      
16699 int main() {
16700  sqrtl(0);
16701 ; return 0; }
16702 EOF
16703 if { (eval echo configure:16704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16704   rm -rf conftest*
16705   glibcpp_cv_func_sqrtl_use=yes
16706 else
16707   echo "configure: failed program was:" >&5
16708   cat conftest.$ac_ext >&5
16709   rm -rf conftest*
16710   glibcpp_cv_func_sqrtl_use=no
16711 fi
16712 rm -f conftest*
16713       ac_ext=c
16714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16715 ac_cpp='$CPP $CPPFLAGS'
16716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16718 cross_compiling=$ac_cv_prog_cc_cross
16719
16720     
16721 fi
16722
16723   fi
16724   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
16725
16726   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
16727     for ac_func in sqrtl
16728 do
16729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16730 echo "configure:16731: checking for $ac_func" >&5
16731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16732   echo $ac_n "(cached) $ac_c" 1>&6
16733 else
16734   cat > conftest.$ac_ext <<EOF
16735 #line 16736 "configure"
16736 #include "confdefs.h"
16737 /* System header to define __stub macros and hopefully few prototypes,
16738     which can conflict with char $ac_func(); below.  */
16739 #include <assert.h>
16740 /* Override any gcc2 internal prototype to avoid an error.  */
16741 /* We use char because int might match the return type of a gcc2
16742     builtin and then its argument prototype would still apply.  */
16743 char $ac_func();
16744
16745 int main() {
16746
16747 /* The GNU C library defines this for functions which it implements
16748     to always fail with ENOSYS.  Some functions are actually named
16749     something starting with __ and the normal name is an alias.  */
16750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16751 choke me
16752 #else
16753 $ac_func();
16754 #endif
16755
16756 ; return 0; }
16757 EOF
16758 if { (eval echo configure:16759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16759   rm -rf conftest*
16760   eval "ac_cv_func_$ac_func=yes"
16761 else
16762   echo "configure: failed program was:" >&5
16763   cat conftest.$ac_ext >&5
16764   rm -rf conftest*
16765   eval "ac_cv_func_$ac_func=no"
16766 fi
16767 rm -f conftest*
16768 fi
16769
16770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16771   echo "$ac_t""yes" 1>&6
16772     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16773   cat >> confdefs.h <<EOF
16774 #define $ac_tr_func 1
16775 EOF
16776  
16777 else
16778   echo "$ac_t""no" 1>&6
16779 fi
16780 done
16781     
16782   else
16783     
16784   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
16785 echo "configure:16786: checking for _sqrtl declaration" >&5
16786   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
16787     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
16788   echo $ac_n "(cached) $ac_c" 1>&6
16789 else
16790   
16791       
16792       ac_ext=C
16793 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16794 ac_cpp='$CXXCPP $CPPFLAGS'
16795 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16796 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16797 cross_compiling=$ac_cv_prog_cxx_cross
16798
16799       cat > conftest.$ac_ext <<EOF
16800 #line 16801 "configure"
16801 #include "confdefs.h"
16802 #include <math.h>
16803                       #ifdef HAVE_IEEEFP_H
16804                       #include <ieeefp.h>
16805                       #endif
16806                      
16807 int main() {
16808  _sqrtl(0);
16809 ; return 0; }
16810 EOF
16811 if { (eval echo configure:16812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16812   rm -rf conftest*
16813   glibcpp_cv_func__sqrtl_use=yes
16814 else
16815   echo "configure: failed program was:" >&5
16816   cat conftest.$ac_ext >&5
16817   rm -rf conftest*
16818   glibcpp_cv_func__sqrtl_use=no
16819 fi
16820 rm -f conftest*
16821       ac_ext=c
16822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16823 ac_cpp='$CPP $CPPFLAGS'
16824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16826 cross_compiling=$ac_cv_prog_cc_cross
16827
16828     
16829 fi
16830
16831   fi
16832   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
16833
16834     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
16835       for ac_func in _sqrtl
16836 do
16837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16838 echo "configure:16839: checking for $ac_func" >&5
16839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16840   echo $ac_n "(cached) $ac_c" 1>&6
16841 else
16842   cat > conftest.$ac_ext <<EOF
16843 #line 16844 "configure"
16844 #include "confdefs.h"
16845 /* System header to define __stub macros and hopefully few prototypes,
16846     which can conflict with char $ac_func(); below.  */
16847 #include <assert.h>
16848 /* Override any gcc2 internal prototype to avoid an error.  */
16849 /* We use char because int might match the return type of a gcc2
16850     builtin and then its argument prototype would still apply.  */
16851 char $ac_func();
16852
16853 int main() {
16854
16855 /* The GNU C library defines this for functions which it implements
16856     to always fail with ENOSYS.  Some functions are actually named
16857     something starting with __ and the normal name is an alias.  */
16858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16859 choke me
16860 #else
16861 $ac_func();
16862 #endif
16863
16864 ; return 0; }
16865 EOF
16866 if { (eval echo configure:16867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16867   rm -rf conftest*
16868   eval "ac_cv_func_$ac_func=yes"
16869 else
16870   echo "configure: failed program was:" >&5
16871   cat conftest.$ac_ext >&5
16872   rm -rf conftest*
16873   eval "ac_cv_func_$ac_func=no"
16874 fi
16875 rm -f conftest*
16876 fi
16877
16878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16879   echo "$ac_t""yes" 1>&6
16880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16881   cat >> confdefs.h <<EOF
16882 #define $ac_tr_func 1
16883 EOF
16884  
16885 else
16886   echo "$ac_t""no" 1>&6
16887 fi
16888 done
16889     
16890     fi
16891   fi
16892
16893   
16894   
16895   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
16896 echo "configure:16897: checking for sincosl declaration" >&5
16897   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
16898     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
16899   echo $ac_n "(cached) $ac_c" 1>&6
16900 else
16901   
16902       
16903       ac_ext=C
16904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16905 ac_cpp='$CXXCPP $CPPFLAGS'
16906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16908 cross_compiling=$ac_cv_prog_cxx_cross
16909
16910       cat > conftest.$ac_ext <<EOF
16911 #line 16912 "configure"
16912 #include "confdefs.h"
16913 #include <math.h>
16914 int main() {
16915  sincosl(0, 0, 0);
16916 ; return 0; }
16917 EOF
16918 if { (eval echo configure:16919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16919   rm -rf conftest*
16920   glibcpp_cv_func_sincosl_use=yes
16921 else
16922   echo "configure: failed program was:" >&5
16923   cat conftest.$ac_ext >&5
16924   rm -rf conftest*
16925   glibcpp_cv_func_sincosl_use=no
16926 fi
16927 rm -f conftest*
16928       ac_ext=c
16929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16930 ac_cpp='$CPP $CPPFLAGS'
16931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16933 cross_compiling=$ac_cv_prog_cc_cross
16934
16935     
16936 fi
16937
16938   fi
16939   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
16940
16941   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
16942     for ac_func in sincosl
16943 do
16944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16945 echo "configure:16946: checking for $ac_func" >&5
16946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16947   echo $ac_n "(cached) $ac_c" 1>&6
16948 else
16949   cat > conftest.$ac_ext <<EOF
16950 #line 16951 "configure"
16951 #include "confdefs.h"
16952 /* System header to define __stub macros and hopefully few prototypes,
16953     which can conflict with char $ac_func(); below.  */
16954 #include <assert.h>
16955 /* Override any gcc2 internal prototype to avoid an error.  */
16956 /* We use char because int might match the return type of a gcc2
16957     builtin and then its argument prototype would still apply.  */
16958 char $ac_func();
16959
16960 int main() {
16961
16962 /* The GNU C library defines this for functions which it implements
16963     to always fail with ENOSYS.  Some functions are actually named
16964     something starting with __ and the normal name is an alias.  */
16965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16966 choke me
16967 #else
16968 $ac_func();
16969 #endif
16970
16971 ; return 0; }
16972 EOF
16973 if { (eval echo configure:16974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16974   rm -rf conftest*
16975   eval "ac_cv_func_$ac_func=yes"
16976 else
16977   echo "configure: failed program was:" >&5
16978   cat conftest.$ac_ext >&5
16979   rm -rf conftest*
16980   eval "ac_cv_func_$ac_func=no"
16981 fi
16982 rm -f conftest*
16983 fi
16984
16985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16986   echo "$ac_t""yes" 1>&6
16987     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16988   cat >> confdefs.h <<EOF
16989 #define $ac_tr_func 1
16990 EOF
16991  
16992 else
16993   echo "$ac_t""no" 1>&6
16994 fi
16995 done
16996     
16997   else
16998     
16999   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
17000 echo "configure:17001: checking for _sincosl declaration" >&5
17001   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
17002     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
17003   echo $ac_n "(cached) $ac_c" 1>&6
17004 else
17005   
17006       
17007       ac_ext=C
17008 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17009 ac_cpp='$CXXCPP $CPPFLAGS'
17010 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17011 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17012 cross_compiling=$ac_cv_prog_cxx_cross
17013
17014       cat > conftest.$ac_ext <<EOF
17015 #line 17016 "configure"
17016 #include "confdefs.h"
17017 #include <math.h>
17018 int main() {
17019  _sincosl(0, 0, 0);
17020 ; return 0; }
17021 EOF
17022 if { (eval echo configure:17023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17023   rm -rf conftest*
17024   glibcpp_cv_func__sincosl_use=yes
17025 else
17026   echo "configure: failed program was:" >&5
17027   cat conftest.$ac_ext >&5
17028   rm -rf conftest*
17029   glibcpp_cv_func__sincosl_use=no
17030 fi
17031 rm -f conftest*
17032       ac_ext=c
17033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17034 ac_cpp='$CPP $CPPFLAGS'
17035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17037 cross_compiling=$ac_cv_prog_cc_cross
17038
17039     
17040 fi
17041
17042   fi
17043   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
17044
17045     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
17046       for ac_func in _sincosl
17047 do
17048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17049 echo "configure:17050: checking for $ac_func" >&5
17050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17051   echo $ac_n "(cached) $ac_c" 1>&6
17052 else
17053   cat > conftest.$ac_ext <<EOF
17054 #line 17055 "configure"
17055 #include "confdefs.h"
17056 /* System header to define __stub macros and hopefully few prototypes,
17057     which can conflict with char $ac_func(); below.  */
17058 #include <assert.h>
17059 /* Override any gcc2 internal prototype to avoid an error.  */
17060 /* We use char because int might match the return type of a gcc2
17061     builtin and then its argument prototype would still apply.  */
17062 char $ac_func();
17063
17064 int main() {
17065
17066 /* The GNU C library defines this for functions which it implements
17067     to always fail with ENOSYS.  Some functions are actually named
17068     something starting with __ and the normal name is an alias.  */
17069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17070 choke me
17071 #else
17072 $ac_func();
17073 #endif
17074
17075 ; return 0; }
17076 EOF
17077 if { (eval echo configure:17078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17078   rm -rf conftest*
17079   eval "ac_cv_func_$ac_func=yes"
17080 else
17081   echo "configure: failed program was:" >&5
17082   cat conftest.$ac_ext >&5
17083   rm -rf conftest*
17084   eval "ac_cv_func_$ac_func=no"
17085 fi
17086 rm -f conftest*
17087 fi
17088
17089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17090   echo "$ac_t""yes" 1>&6
17091     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17092   cat >> confdefs.h <<EOF
17093 #define $ac_tr_func 1
17094 EOF
17095  
17096 else
17097   echo "$ac_t""no" 1>&6
17098 fi
17099 done
17100     
17101     fi
17102   fi
17103
17104   
17105   
17106   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
17107 echo "configure:17108: checking for finitel declaration" >&5
17108   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
17109     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
17110   echo $ac_n "(cached) $ac_c" 1>&6
17111 else
17112   
17113       
17114       ac_ext=C
17115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17116 ac_cpp='$CXXCPP $CPPFLAGS'
17117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17119 cross_compiling=$ac_cv_prog_cxx_cross
17120
17121       cat > conftest.$ac_ext <<EOF
17122 #line 17123 "configure"
17123 #include "confdefs.h"
17124 #include <math.h>
17125                       #ifdef HAVE_IEEEFP_H
17126                       #include <ieeefp.h>
17127                       #endif
17128                      
17129 int main() {
17130  finitel(0);
17131 ; return 0; }
17132 EOF
17133 if { (eval echo configure:17134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17134   rm -rf conftest*
17135   glibcpp_cv_func_finitel_use=yes
17136 else
17137   echo "configure: failed program was:" >&5
17138   cat conftest.$ac_ext >&5
17139   rm -rf conftest*
17140   glibcpp_cv_func_finitel_use=no
17141 fi
17142 rm -f conftest*
17143       ac_ext=c
17144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17145 ac_cpp='$CPP $CPPFLAGS'
17146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17148 cross_compiling=$ac_cv_prog_cc_cross
17149
17150     
17151 fi
17152
17153   fi
17154   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17155
17156   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17157     for ac_func in finitel
17158 do
17159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17160 echo "configure:17161: checking for $ac_func" >&5
17161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17162   echo $ac_n "(cached) $ac_c" 1>&6
17163 else
17164   cat > conftest.$ac_ext <<EOF
17165 #line 17166 "configure"
17166 #include "confdefs.h"
17167 /* System header to define __stub macros and hopefully few prototypes,
17168     which can conflict with char $ac_func(); below.  */
17169 #include <assert.h>
17170 /* Override any gcc2 internal prototype to avoid an error.  */
17171 /* We use char because int might match the return type of a gcc2
17172     builtin and then its argument prototype would still apply.  */
17173 char $ac_func();
17174
17175 int main() {
17176
17177 /* The GNU C library defines this for functions which it implements
17178     to always fail with ENOSYS.  Some functions are actually named
17179     something starting with __ and the normal name is an alias.  */
17180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17181 choke me
17182 #else
17183 $ac_func();
17184 #endif
17185
17186 ; return 0; }
17187 EOF
17188 if { (eval echo configure:17189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17189   rm -rf conftest*
17190   eval "ac_cv_func_$ac_func=yes"
17191 else
17192   echo "configure: failed program was:" >&5
17193   cat conftest.$ac_ext >&5
17194   rm -rf conftest*
17195   eval "ac_cv_func_$ac_func=no"
17196 fi
17197 rm -f conftest*
17198 fi
17199
17200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17201   echo "$ac_t""yes" 1>&6
17202     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17203   cat >> confdefs.h <<EOF
17204 #define $ac_tr_func 1
17205 EOF
17206  
17207 else
17208   echo "$ac_t""no" 1>&6
17209 fi
17210 done
17211     
17212   else
17213     
17214   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
17215 echo "configure:17216: checking for _finitel declaration" >&5
17216   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
17217     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
17218   echo $ac_n "(cached) $ac_c" 1>&6
17219 else
17220   
17221       
17222       ac_ext=C
17223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17224 ac_cpp='$CXXCPP $CPPFLAGS'
17225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17227 cross_compiling=$ac_cv_prog_cxx_cross
17228
17229       cat > conftest.$ac_ext <<EOF
17230 #line 17231 "configure"
17231 #include "confdefs.h"
17232 #include <math.h>
17233                       #ifdef HAVE_IEEEFP_H
17234                       #include <ieeefp.h>
17235                       #endif
17236                      
17237 int main() {
17238  _finitel(0);
17239 ; return 0; }
17240 EOF
17241 if { (eval echo configure:17242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17242   rm -rf conftest*
17243   glibcpp_cv_func__finitel_use=yes
17244 else
17245   echo "configure: failed program was:" >&5
17246   cat conftest.$ac_ext >&5
17247   rm -rf conftest*
17248   glibcpp_cv_func__finitel_use=no
17249 fi
17250 rm -f conftest*
17251       ac_ext=c
17252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17253 ac_cpp='$CPP $CPPFLAGS'
17254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17256 cross_compiling=$ac_cv_prog_cc_cross
17257
17258     
17259 fi
17260
17261   fi
17262   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
17263
17264     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
17265       for ac_func in _finitel
17266 do
17267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17268 echo "configure:17269: checking for $ac_func" >&5
17269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17270   echo $ac_n "(cached) $ac_c" 1>&6
17271 else
17272   cat > conftest.$ac_ext <<EOF
17273 #line 17274 "configure"
17274 #include "confdefs.h"
17275 /* System header to define __stub macros and hopefully few prototypes,
17276     which can conflict with char $ac_func(); below.  */
17277 #include <assert.h>
17278 /* Override any gcc2 internal prototype to avoid an error.  */
17279 /* We use char because int might match the return type of a gcc2
17280     builtin and then its argument prototype would still apply.  */
17281 char $ac_func();
17282
17283 int main() {
17284
17285 /* The GNU C library defines this for functions which it implements
17286     to always fail with ENOSYS.  Some functions are actually named
17287     something starting with __ and the normal name is an alias.  */
17288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17289 choke me
17290 #else
17291 $ac_func();
17292 #endif
17293
17294 ; return 0; }
17295 EOF
17296 if { (eval echo configure:17297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17297   rm -rf conftest*
17298   eval "ac_cv_func_$ac_func=yes"
17299 else
17300   echo "configure: failed program was:" >&5
17301   cat conftest.$ac_ext >&5
17302   rm -rf conftest*
17303   eval "ac_cv_func_$ac_func=no"
17304 fi
17305 rm -f conftest*
17306 fi
17307
17308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17309   echo "$ac_t""yes" 1>&6
17310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17311   cat >> confdefs.h <<EOF
17312 #define $ac_tr_func 1
17313 EOF
17314  
17315 else
17316   echo "$ac_t""no" 1>&6
17317 fi
17318 done
17319     
17320     fi
17321   fi
17322
17323
17324         
17325     
17326   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
17327 echo "configure:17328: checking for _float trig functions" >&5
17328   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
17329   echo $ac_n "(cached) $ac_c" 1>&6
17330 else
17331   
17332     
17333     ac_ext=C
17334 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17335 ac_cpp='$CXXCPP $CPPFLAGS'
17336 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17337 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17338 cross_compiling=$ac_cv_prog_cxx_cross
17339
17340     cat > conftest.$ac_ext <<EOF
17341 #line 17342 "configure"
17342 #include "confdefs.h"
17343 #include <math.h>
17344 int main() {
17345  `for x in _acosf _asinf _atanf \
17346                                           _cosf _sinf _tanf \
17347                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
17348 ; return 0; }
17349 EOF
17350 if { (eval echo configure:17351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17351   rm -rf conftest*
17352   glibcpp_cv_func__float_trig_use=yes
17353 else
17354   echo "configure: failed program was:" >&5
17355   cat conftest.$ac_ext >&5
17356   rm -rf conftest*
17357   glibcpp_cv_func__float_trig_use=no
17358 fi
17359 rm -f conftest*
17360     ac_ext=c
17361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17362 ac_cpp='$CPP $CPPFLAGS'
17363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17365 cross_compiling=$ac_cv_prog_cc_cross
17366
17367 fi
17368
17369   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
17370   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
17371     for ac_func in _acosf _asinf _atanf \
17372                                           _cosf _sinf _tanf \
17373                                           _coshf _sinhf _tanhf
17374 do
17375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17376 echo "configure:17377: checking for $ac_func" >&5
17377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17378   echo $ac_n "(cached) $ac_c" 1>&6
17379 else
17380   cat > conftest.$ac_ext <<EOF
17381 #line 17382 "configure"
17382 #include "confdefs.h"
17383 /* System header to define __stub macros and hopefully few prototypes,
17384     which can conflict with char $ac_func(); below.  */
17385 #include <assert.h>
17386 /* Override any gcc2 internal prototype to avoid an error.  */
17387 /* We use char because int might match the return type of a gcc2
17388     builtin and then its argument prototype would still apply.  */
17389 char $ac_func();
17390
17391 int main() {
17392
17393 /* The GNU C library defines this for functions which it implements
17394     to always fail with ENOSYS.  Some functions are actually named
17395     something starting with __ and the normal name is an alias.  */
17396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17397 choke me
17398 #else
17399 $ac_func();
17400 #endif
17401
17402 ; return 0; }
17403 EOF
17404 if { (eval echo configure:17405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17405   rm -rf conftest*
17406   eval "ac_cv_func_$ac_func=yes"
17407 else
17408   echo "configure: failed program was:" >&5
17409   cat conftest.$ac_ext >&5
17410   rm -rf conftest*
17411   eval "ac_cv_func_$ac_func=no"
17412 fi
17413 rm -f conftest*
17414 fi
17415
17416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17417   echo "$ac_t""yes" 1>&6
17418     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17419   cat >> confdefs.h <<EOF
17420 #define $ac_tr_func 1
17421 EOF
17422  
17423 else
17424   echo "$ac_t""no" 1>&6
17425 fi
17426 done
17427
17428   fi
17429
17430   
17431   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
17432 echo "configure:17433: checking for _float round functions" >&5
17433   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
17434   echo $ac_n "(cached) $ac_c" 1>&6
17435 else
17436   
17437     
17438     ac_ext=C
17439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17440 ac_cpp='$CXXCPP $CPPFLAGS'
17441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17443 cross_compiling=$ac_cv_prog_cxx_cross
17444
17445     cat > conftest.$ac_ext <<EOF
17446 #line 17447 "configure"
17447 #include "confdefs.h"
17448 #include <math.h>
17449 int main() {
17450  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
17451 ; return 0; }
17452 EOF
17453 if { (eval echo configure:17454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17454   rm -rf conftest*
17455   glibcpp_cv_func__float_round_use=yes
17456 else
17457   echo "configure: failed program was:" >&5
17458   cat conftest.$ac_ext >&5
17459   rm -rf conftest*
17460   glibcpp_cv_func__float_round_use=no
17461 fi
17462 rm -f conftest*
17463     ac_ext=c
17464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17465 ac_cpp='$CPP $CPPFLAGS'
17466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17468 cross_compiling=$ac_cv_prog_cc_cross
17469
17470 fi
17471
17472   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
17473   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
17474     for ac_func in _ceilf _floorf
17475 do
17476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17477 echo "configure:17478: checking for $ac_func" >&5
17478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17479   echo $ac_n "(cached) $ac_c" 1>&6
17480 else
17481   cat > conftest.$ac_ext <<EOF
17482 #line 17483 "configure"
17483 #include "confdefs.h"
17484 /* System header to define __stub macros and hopefully few prototypes,
17485     which can conflict with char $ac_func(); below.  */
17486 #include <assert.h>
17487 /* Override any gcc2 internal prototype to avoid an error.  */
17488 /* We use char because int might match the return type of a gcc2
17489     builtin and then its argument prototype would still apply.  */
17490 char $ac_func();
17491
17492 int main() {
17493
17494 /* The GNU C library defines this for functions which it implements
17495     to always fail with ENOSYS.  Some functions are actually named
17496     something starting with __ and the normal name is an alias.  */
17497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17498 choke me
17499 #else
17500 $ac_func();
17501 #endif
17502
17503 ; return 0; }
17504 EOF
17505 if { (eval echo configure:17506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17506   rm -rf conftest*
17507   eval "ac_cv_func_$ac_func=yes"
17508 else
17509   echo "configure: failed program was:" >&5
17510   cat conftest.$ac_ext >&5
17511   rm -rf conftest*
17512   eval "ac_cv_func_$ac_func=no"
17513 fi
17514 rm -f conftest*
17515 fi
17516
17517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17518   echo "$ac_t""yes" 1>&6
17519     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17520   cat >> confdefs.h <<EOF
17521 #define $ac_tr_func 1
17522 EOF
17523  
17524 else
17525   echo "$ac_t""no" 1>&6
17526 fi
17527 done
17528
17529   fi
17530
17531
17532     
17533   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
17534 echo "configure:17535: checking for _long double trig functions" >&5
17535   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
17536   echo $ac_n "(cached) $ac_c" 1>&6
17537 else
17538   
17539     
17540     ac_ext=C
17541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17542 ac_cpp='$CXXCPP $CPPFLAGS'
17543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17545 cross_compiling=$ac_cv_prog_cxx_cross
17546
17547     cat > conftest.$ac_ext <<EOF
17548 #line 17549 "configure"
17549 #include "confdefs.h"
17550 #include <math.h>
17551 int main() {
17552  `for x in _acosl _asinl _atanl \
17553                                           _cosl _sinl _tanl \
17554                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
17555 ; return 0; }
17556 EOF
17557 if { (eval echo configure:17558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17558   rm -rf conftest*
17559   glibcpp_cv_func__long_double_trig_use=yes
17560 else
17561   echo "configure: failed program was:" >&5
17562   cat conftest.$ac_ext >&5
17563   rm -rf conftest*
17564   glibcpp_cv_func__long_double_trig_use=no
17565 fi
17566 rm -f conftest*
17567     ac_ext=c
17568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17569 ac_cpp='$CPP $CPPFLAGS'
17570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17572 cross_compiling=$ac_cv_prog_cc_cross
17573
17574 fi
17575
17576   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
17577   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
17578     for ac_func in _acosl _asinl _atanl \
17579                                           _cosl _sinl _tanl \
17580                                           _coshl _sinhl _tanhl
17581 do
17582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17583 echo "configure:17584: checking for $ac_func" >&5
17584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17585   echo $ac_n "(cached) $ac_c" 1>&6
17586 else
17587   cat > conftest.$ac_ext <<EOF
17588 #line 17589 "configure"
17589 #include "confdefs.h"
17590 /* System header to define __stub macros and hopefully few prototypes,
17591     which can conflict with char $ac_func(); below.  */
17592 #include <assert.h>
17593 /* Override any gcc2 internal prototype to avoid an error.  */
17594 /* We use char because int might match the return type of a gcc2
17595     builtin and then its argument prototype would still apply.  */
17596 char $ac_func();
17597
17598 int main() {
17599
17600 /* The GNU C library defines this for functions which it implements
17601     to always fail with ENOSYS.  Some functions are actually named
17602     something starting with __ and the normal name is an alias.  */
17603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17604 choke me
17605 #else
17606 $ac_func();
17607 #endif
17608
17609 ; return 0; }
17610 EOF
17611 if { (eval echo configure:17612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17612   rm -rf conftest*
17613   eval "ac_cv_func_$ac_func=yes"
17614 else
17615   echo "configure: failed program was:" >&5
17616   cat conftest.$ac_ext >&5
17617   rm -rf conftest*
17618   eval "ac_cv_func_$ac_func=no"
17619 fi
17620 rm -f conftest*
17621 fi
17622
17623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17624   echo "$ac_t""yes" 1>&6
17625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17626   cat >> confdefs.h <<EOF
17627 #define $ac_tr_func 1
17628 EOF
17629  
17630 else
17631   echo "$ac_t""no" 1>&6
17632 fi
17633 done
17634
17635   fi
17636
17637   
17638   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
17639 echo "configure:17640: checking for _long double round functions" >&5
17640   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
17641   echo $ac_n "(cached) $ac_c" 1>&6
17642 else
17643   
17644     
17645     ac_ext=C
17646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17647 ac_cpp='$CXXCPP $CPPFLAGS'
17648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17650 cross_compiling=$ac_cv_prog_cxx_cross
17651
17652     cat > conftest.$ac_ext <<EOF
17653 #line 17654 "configure"
17654 #include "confdefs.h"
17655 #include <math.h>
17656 int main() {
17657  `for x in _ceill _floorl; do echo "$x (0);"; done` 
17658 ; return 0; }
17659 EOF
17660 if { (eval echo configure:17661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17661   rm -rf conftest*
17662   glibcpp_cv_func__long_double_round_use=yes
17663 else
17664   echo "configure: failed program was:" >&5
17665   cat conftest.$ac_ext >&5
17666   rm -rf conftest*
17667   glibcpp_cv_func__long_double_round_use=no
17668 fi
17669 rm -f conftest*
17670     ac_ext=c
17671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17672 ac_cpp='$CPP $CPPFLAGS'
17673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17674 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17675 cross_compiling=$ac_cv_prog_cc_cross
17676
17677 fi
17678
17679   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
17680   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
17681     for ac_func in _ceill _floorl
17682 do
17683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17684 echo "configure:17685: checking for $ac_func" >&5
17685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17686   echo $ac_n "(cached) $ac_c" 1>&6
17687 else
17688   cat > conftest.$ac_ext <<EOF
17689 #line 17690 "configure"
17690 #include "confdefs.h"
17691 /* System header to define __stub macros and hopefully few prototypes,
17692     which can conflict with char $ac_func(); below.  */
17693 #include <assert.h>
17694 /* Override any gcc2 internal prototype to avoid an error.  */
17695 /* We use char because int might match the return type of a gcc2
17696     builtin and then its argument prototype would still apply.  */
17697 char $ac_func();
17698
17699 int main() {
17700
17701 /* The GNU C library defines this for functions which it implements
17702     to always fail with ENOSYS.  Some functions are actually named
17703     something starting with __ and the normal name is an alias.  */
17704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17705 choke me
17706 #else
17707 $ac_func();
17708 #endif
17709
17710 ; return 0; }
17711 EOF
17712 if { (eval echo configure:17713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17713   rm -rf conftest*
17714   eval "ac_cv_func_$ac_func=yes"
17715 else
17716   echo "configure: failed program was:" >&5
17717   cat conftest.$ac_ext >&5
17718   rm -rf conftest*
17719   eval "ac_cv_func_$ac_func=no"
17720 fi
17721 rm -f conftest*
17722 fi
17723
17724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17725   echo "$ac_t""yes" 1>&6
17726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17727   cat >> confdefs.h <<EOF
17728 #define $ac_tr_func 1
17729 EOF
17730  
17731 else
17732   echo "$ac_t""no" 1>&6
17733 fi
17734 done
17735
17736   fi
17737
17738
17739   LIBS="$ac_save_LIBS"
17740   CXXFLAGS="$ac_save_CXXFLAGS"
17741
17742   
17743     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
17744 echo "configure:17745: checking for main in -lm" >&5
17745 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
17746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17747   echo $ac_n "(cached) $ac_c" 1>&6
17748 else
17749   ac_save_LIBS="$LIBS"
17750 LIBS="-lm  $LIBS"
17751 cat > conftest.$ac_ext <<EOF
17752 #line 17753 "configure"
17753 #include "confdefs.h"
17754
17755 int main() {
17756 main()
17757 ; return 0; }
17758 EOF
17759 if { (eval echo configure:17760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17760   rm -rf conftest*
17761   eval "ac_cv_lib_$ac_lib_var=yes"
17762 else
17763   echo "configure: failed program was:" >&5
17764   cat conftest.$ac_ext >&5
17765   rm -rf conftest*
17766   eval "ac_cv_lib_$ac_lib_var=no"
17767 fi
17768 rm -f conftest*
17769 LIBS="$ac_save_LIBS"
17770
17771 fi
17772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17773   echo "$ac_t""yes" 1>&6
17774     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
17775     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17776   cat >> confdefs.h <<EOF
17777 #define $ac_tr_lib 1
17778 EOF
17779
17780   LIBS="-lm $LIBS"
17781
17782 else
17783   echo "$ac_t""no" 1>&6
17784 fi
17785
17786   for ac_func in nan copysignf
17787 do
17788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17789 echo "configure:17790: checking for $ac_func" >&5
17790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17791   echo $ac_n "(cached) $ac_c" 1>&6
17792 else
17793   cat > conftest.$ac_ext <<EOF
17794 #line 17795 "configure"
17795 #include "confdefs.h"
17796 /* System header to define __stub macros and hopefully few prototypes,
17797     which can conflict with char $ac_func(); below.  */
17798 #include <assert.h>
17799 /* Override any gcc2 internal prototype to avoid an error.  */
17800 /* We use char because int might match the return type of a gcc2
17801     builtin and then its argument prototype would still apply.  */
17802 char $ac_func();
17803
17804 int main() {
17805
17806 /* The GNU C library defines this for functions which it implements
17807     to always fail with ENOSYS.  Some functions are actually named
17808     something starting with __ and the normal name is an alias.  */
17809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17810 choke me
17811 #else
17812 $ac_func();
17813 #endif
17814
17815 ; return 0; }
17816 EOF
17817 if { (eval echo configure:17818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17818   rm -rf conftest*
17819   eval "ac_cv_func_$ac_func=yes"
17820 else
17821   echo "configure: failed program was:" >&5
17822   cat conftest.$ac_ext >&5
17823   rm -rf conftest*
17824   eval "ac_cv_func_$ac_func=no"
17825 fi
17826 rm -f conftest*
17827 fi
17828
17829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17830   echo "$ac_t""yes" 1>&6
17831     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17832   cat >> confdefs.h <<EOF
17833 #define $ac_tr_func 1
17834 EOF
17835  
17836 else
17837   echo "$ac_t""no" 1>&6
17838 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17839 fi
17840 done
17841
17842
17843
17844           USE_COMPLEX_LONG_DOUBLE=no
17845   if test x$ac_cv_func_copysignl = x"yes"; then
17846     USE_COMPLEX_LONG_DOUBLE=yes
17847     for ac_func in signbitl
17848 do
17849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17850 echo "configure:17851: checking for $ac_func" >&5
17851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17852   echo $ac_n "(cached) $ac_c" 1>&6
17853 else
17854   cat > conftest.$ac_ext <<EOF
17855 #line 17856 "configure"
17856 #include "confdefs.h"
17857 /* System header to define __stub macros and hopefully few prototypes,
17858     which can conflict with char $ac_func(); below.  */
17859 #include <assert.h>
17860 /* Override any gcc2 internal prototype to avoid an error.  */
17861 /* We use char because int might match the return type of a gcc2
17862     builtin and then its argument prototype would still apply.  */
17863 char $ac_func();
17864
17865 int main() {
17866
17867 /* The GNU C library defines this for functions which it implements
17868     to always fail with ENOSYS.  Some functions are actually named
17869     something starting with __ and the normal name is an alias.  */
17870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17871 choke me
17872 #else
17873 $ac_func();
17874 #endif
17875
17876 ; return 0; }
17877 EOF
17878 if { (eval echo configure:17879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17879   rm -rf conftest*
17880   eval "ac_cv_func_$ac_func=yes"
17881 else
17882   echo "configure: failed program was:" >&5
17883   cat conftest.$ac_ext >&5
17884   rm -rf conftest*
17885   eval "ac_cv_func_$ac_func=no"
17886 fi
17887 rm -f conftest*
17888 fi
17889
17890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17891   echo "$ac_t""yes" 1>&6
17892     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17893   cat >> confdefs.h <<EOF
17894 #define $ac_tr_func 1
17895 EOF
17896  
17897 else
17898   echo "$ac_t""no" 1>&6
17899 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17900 fi
17901 done
17902
17903
17904   fi
17905
17906   
17907
17908   
17909
17910       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
17911 echo "configure:17912: checking for mbstate_t" >&5
17912   cat > conftest.$ac_ext <<EOF
17913 #line 17914 "configure"
17914 #include "confdefs.h"
17915 #include <wchar.h>
17916 int main() {
17917 mbstate_t teststate;
17918 ; return 0; }
17919 EOF
17920 if { (eval echo configure:17921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17921   rm -rf conftest*
17922   have_mbstate_t=yes
17923 else
17924   echo "configure: failed program was:" >&5
17925   cat conftest.$ac_ext >&5
17926   rm -rf conftest*
17927   have_mbstate_t=no
17928 fi
17929 rm -f conftest*
17930   echo "$ac_t""$have_mbstate_t" 1>&6
17931   if test x"$have_mbstate_t" = xyes; then
17932     cat >> confdefs.h <<\EOF
17933 #define HAVE_MBSTATE_T 1
17934 EOF
17935
17936   fi
17937
17938     for ac_hdr in wchar.h
17939 do
17940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17942 echo "configure:17943: checking for $ac_hdr" >&5
17943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17944   echo $ac_n "(cached) $ac_c" 1>&6
17945 else
17946   cat > conftest.$ac_ext <<EOF
17947 #line 17948 "configure"
17948 #include "confdefs.h"
17949 #include <$ac_hdr>
17950 EOF
17951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17952 { (eval echo configure:17953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17954 if test -z "$ac_err"; then
17955   rm -rf conftest*
17956   eval "ac_cv_header_$ac_safe=yes"
17957 else
17958   echo "$ac_err" >&5
17959   echo "configure: failed program was:" >&5
17960   cat conftest.$ac_ext >&5
17961   rm -rf conftest*
17962   eval "ac_cv_header_$ac_safe=no"
17963 fi
17964 rm -f conftest*
17965 fi
17966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17967   echo "$ac_t""yes" 1>&6
17968     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17969   cat >> confdefs.h <<EOF
17970 #define $ac_tr_hdr 1
17971 EOF
17972  ac_has_wchar_h=yes
17973 else
17974   echo "$ac_t""no" 1>&6
17975 ac_has_wchar_h=no
17976 fi
17977 done
17978
17979   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17980 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17981 echo "configure:17982: checking for wctype.h" >&5
17982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17983   echo $ac_n "(cached) $ac_c" 1>&6
17984 else
17985   cat > conftest.$ac_ext <<EOF
17986 #line 17987 "configure"
17987 #include "confdefs.h"
17988 #include <wctype.h>
17989 EOF
17990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17991 { (eval echo configure:17992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17993 if test -z "$ac_err"; then
17994   rm -rf conftest*
17995   eval "ac_cv_header_$ac_safe=yes"
17996 else
17997   echo "$ac_err" >&5
17998   echo "configure: failed program was:" >&5
17999   cat conftest.$ac_ext >&5
18000   rm -rf conftest*
18001   eval "ac_cv_header_$ac_safe=no"
18002 fi
18003 rm -f conftest*
18004 fi
18005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18006   echo "$ac_t""yes" 1>&6
18007   ac_has_wctype_h=yes
18008 else
18009   echo "$ac_t""no" 1>&6
18010 ac_has_wctype_h=no
18011 fi
18012
18013   
18014     if test x"$ac_has_wchar_h" = xyes &&
18015      test x"$ac_has_wctype_h" = xyes &&
18016      test x"$enable_c_mbchar" != xno; then
18017       
18018             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
18019 echo "configure:18020: checking for WCHAR_MIN and WCHAR_MAX" >&5
18020     cat > conftest.$ac_ext <<EOF
18021 #line 18022 "configure"
18022 #include "confdefs.h"
18023 #include <wchar.h>
18024 int main() {
18025 int i = WCHAR_MIN; int j = WCHAR_MAX;
18026 ; return 0; }
18027 EOF
18028 if { (eval echo configure:18029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18029   rm -rf conftest*
18030   has_wchar_minmax=yes
18031 else
18032   echo "configure: failed program was:" >&5
18033   cat conftest.$ac_ext >&5
18034   rm -rf conftest*
18035   has_wchar_minmax=no
18036 fi
18037 rm -f conftest*
18038     echo "$ac_t""$has_wchar_minmax" 1>&6
18039     
18040             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
18041 echo "configure:18042: checking for WEOF" >&5
18042     cat > conftest.$ac_ext <<EOF
18043 #line 18044 "configure"
18044 #include "confdefs.h"
18045
18046       #include <wchar.h>
18047       #include <stddef.h>
18048 int main() {
18049 wint_t i = WEOF;
18050 ; return 0; }
18051 EOF
18052 if { (eval echo configure:18053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18053   rm -rf conftest*
18054   has_weof=yes
18055 else
18056   echo "configure: failed program was:" >&5
18057   cat conftest.$ac_ext >&5
18058   rm -rf conftest*
18059   has_weof=no
18060 fi
18061 rm -f conftest*
18062     echo "$ac_t""$has_weof" 1>&6
18063   
18064         ac_wfuncs=yes
18065     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
18066 do
18067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18068 echo "configure:18069: checking for $ac_func" >&5
18069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18070   echo $ac_n "(cached) $ac_c" 1>&6
18071 else
18072   cat > conftest.$ac_ext <<EOF
18073 #line 18074 "configure"
18074 #include "confdefs.h"
18075 /* System header to define __stub macros and hopefully few prototypes,
18076     which can conflict with char $ac_func(); below.  */
18077 #include <assert.h>
18078 /* Override any gcc2 internal prototype to avoid an error.  */
18079 /* We use char because int might match the return type of a gcc2
18080     builtin and then its argument prototype would still apply.  */
18081 char $ac_func();
18082
18083 int main() {
18084
18085 /* The GNU C library defines this for functions which it implements
18086     to always fail with ENOSYS.  Some functions are actually named
18087     something starting with __ and the normal name is an alias.  */
18088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18089 choke me
18090 #else
18091 $ac_func();
18092 #endif
18093
18094 ; return 0; }
18095 EOF
18096 if { (eval echo configure:18097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18097   rm -rf conftest*
18098   eval "ac_cv_func_$ac_func=yes"
18099 else
18100   echo "configure: failed program was:" >&5
18101   cat conftest.$ac_ext >&5
18102   rm -rf conftest*
18103   eval "ac_cv_func_$ac_func=no"
18104 fi
18105 rm -f conftest*
18106 fi
18107
18108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18109   echo "$ac_t""yes" 1>&6
18110     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18111   cat >> confdefs.h <<EOF
18112 #define $ac_tr_func 1
18113 EOF
18114  
18115 else
18116   echo "$ac_t""no" 1>&6
18117 \
18118     ac_wfuncs=no
18119 fi
18120 done
18121
18122   
18123         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
18124     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
18125     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
18126     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
18127     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
18128     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
18129 do
18130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18131 echo "configure:18132: checking for $ac_func" >&5
18132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18133   echo $ac_n "(cached) $ac_c" 1>&6
18134 else
18135   cat > conftest.$ac_ext <<EOF
18136 #line 18137 "configure"
18137 #include "confdefs.h"
18138 /* System header to define __stub macros and hopefully few prototypes,
18139     which can conflict with char $ac_func(); below.  */
18140 #include <assert.h>
18141 /* Override any gcc2 internal prototype to avoid an error.  */
18142 /* We use char because int might match the return type of a gcc2
18143     builtin and then its argument prototype would still apply.  */
18144 char $ac_func();
18145
18146 int main() {
18147
18148 /* The GNU C library defines this for functions which it implements
18149     to always fail with ENOSYS.  Some functions are actually named
18150     something starting with __ and the normal name is an alias.  */
18151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18152 choke me
18153 #else
18154 $ac_func();
18155 #endif
18156
18157 ; return 0; }
18158 EOF
18159 if { (eval echo configure:18160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18160   rm -rf conftest*
18161   eval "ac_cv_func_$ac_func=yes"
18162 else
18163   echo "configure: failed program was:" >&5
18164   cat conftest.$ac_ext >&5
18165   rm -rf conftest*
18166   eval "ac_cv_func_$ac_func=no"
18167 fi
18168 rm -f conftest*
18169 fi
18170
18171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18172   echo "$ac_t""yes" 1>&6
18173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18174   cat >> confdefs.h <<EOF
18175 #define $ac_tr_func 1
18176 EOF
18177  
18178 else
18179   echo "$ac_t""no" 1>&6
18180 \
18181     ac_wfuncs=no
18182 fi
18183 done
18184
18185
18186     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
18187 echo "configure:18188: checking for ISO C99 wchar_t support" >&5
18188     if test x"$has_weof" = xyes &&
18189        test x"$has_wchar_minmax" = xyes &&
18190        test x"$ac_wfuncs" = xyes; then
18191       ac_isoC99_wchar_t=yes
18192     else
18193       ac_isoC99_wchar_t=no
18194     fi
18195     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
18196   
18197             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
18198 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
18199 echo "configure:18200: checking for iconv.h" >&5
18200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18201   echo $ac_n "(cached) $ac_c" 1>&6
18202 else
18203   cat > conftest.$ac_ext <<EOF
18204 #line 18205 "configure"
18205 #include "confdefs.h"
18206 #include <iconv.h>
18207 EOF
18208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18209 { (eval echo configure:18210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18211 if test -z "$ac_err"; then
18212   rm -rf conftest*
18213   eval "ac_cv_header_$ac_safe=yes"
18214 else
18215   echo "$ac_err" >&5
18216   echo "configure: failed program was:" >&5
18217   cat conftest.$ac_ext >&5
18218   rm -rf conftest*
18219   eval "ac_cv_header_$ac_safe=no"
18220 fi
18221 rm -f conftest*
18222 fi
18223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18224   echo "$ac_t""yes" 1>&6
18225   ac_has_iconv_h=yes
18226 else
18227   echo "$ac_t""no" 1>&6
18228 ac_has_iconv_h=no
18229 fi
18230
18231     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
18232 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
18233 echo "configure:18234: checking for langinfo.h" >&5
18234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18235   echo $ac_n "(cached) $ac_c" 1>&6
18236 else
18237   cat > conftest.$ac_ext <<EOF
18238 #line 18239 "configure"
18239 #include "confdefs.h"
18240 #include <langinfo.h>
18241 EOF
18242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18243 { (eval echo configure:18244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18245 if test -z "$ac_err"; then
18246   rm -rf conftest*
18247   eval "ac_cv_header_$ac_safe=yes"
18248 else
18249   echo "$ac_err" >&5
18250   echo "configure: failed program was:" >&5
18251   cat conftest.$ac_ext >&5
18252   rm -rf conftest*
18253   eval "ac_cv_header_$ac_safe=no"
18254 fi
18255 rm -f conftest*
18256 fi
18257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18258   echo "$ac_t""yes" 1>&6
18259   ac_has_langinfo_h=yes
18260 else
18261   echo "$ac_t""no" 1>&6
18262 ac_has_langinfo_h=no
18263 fi
18264
18265
18266         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
18267 echo "configure:18268: checking for iconv in -liconv" >&5
18268 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
18269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18270   echo $ac_n "(cached) $ac_c" 1>&6
18271 else
18272   ac_save_LIBS="$LIBS"
18273 LIBS="-liconv  $LIBS"
18274 cat > conftest.$ac_ext <<EOF
18275 #line 18276 "configure"
18276 #include "confdefs.h"
18277 /* Override any gcc2 internal prototype to avoid an error.  */
18278 /* We use char because int might match the return type of a gcc2
18279     builtin and then its argument prototype would still apply.  */
18280 char iconv();
18281
18282 int main() {
18283 iconv()
18284 ; return 0; }
18285 EOF
18286 if { (eval echo configure:18287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18287   rm -rf conftest*
18288   eval "ac_cv_lib_$ac_lib_var=yes"
18289 else
18290   echo "configure: failed program was:" >&5
18291   cat conftest.$ac_ext >&5
18292   rm -rf conftest*
18293   eval "ac_cv_lib_$ac_lib_var=no"
18294 fi
18295 rm -f conftest*
18296 LIBS="$ac_save_LIBS"
18297
18298 fi
18299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18300   echo "$ac_t""yes" 1>&6
18301   libiconv="-liconv"
18302 else
18303   echo "$ac_t""no" 1>&6
18304 fi
18305
18306     ac_save_LIBS="$LIBS"
18307     LIBS="$LIBS $libiconv"
18308
18309     for ac_func in iconv_open iconv_close iconv nl_langinfo
18310 do
18311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18312 echo "configure:18313: checking for $ac_func" >&5
18313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18314   echo $ac_n "(cached) $ac_c" 1>&6
18315 else
18316   cat > conftest.$ac_ext <<EOF
18317 #line 18318 "configure"
18318 #include "confdefs.h"
18319 /* System header to define __stub macros and hopefully few prototypes,
18320     which can conflict with char $ac_func(); below.  */
18321 #include <assert.h>
18322 /* Override any gcc2 internal prototype to avoid an error.  */
18323 /* We use char because int might match the return type of a gcc2
18324     builtin and then its argument prototype would still apply.  */
18325 char $ac_func();
18326
18327 int main() {
18328
18329 /* The GNU C library defines this for functions which it implements
18330     to always fail with ENOSYS.  Some functions are actually named
18331     something starting with __ and the normal name is an alias.  */
18332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18333 choke me
18334 #else
18335 $ac_func();
18336 #endif
18337
18338 ; return 0; }
18339 EOF
18340 if { (eval echo configure:18341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18341   rm -rf conftest*
18342   eval "ac_cv_func_$ac_func=yes"
18343 else
18344   echo "configure: failed program was:" >&5
18345   cat conftest.$ac_ext >&5
18346   rm -rf conftest*
18347   eval "ac_cv_func_$ac_func=no"
18348 fi
18349 rm -f conftest*
18350 fi
18351
18352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18353   echo "$ac_t""yes" 1>&6
18354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18355   cat >> confdefs.h <<EOF
18356 #define $ac_tr_func 1
18357 EOF
18358  \
18359     ac_XPG2funcs=yes
18360 else
18361   echo "$ac_t""no" 1>&6
18362 ac_XPG2funcs=no
18363 fi
18364 done
18365
18366   
18367     LIBS="$ac_save_LIBS"
18368
18369     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
18370 echo "configure:18371: checking for XPG2 wchar_t support" >&5
18371     if test x"$ac_has_iconv_h" = xyes &&
18372        test x"$ac_has_langinfo_h" = xyes &&
18373        test x"$ac_XPG2funcs" = xyes; then
18374       ac_XPG2_wchar_t=yes
18375     else
18376       ac_XPG2_wchar_t=no
18377     fi
18378     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
18379   
18380             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
18381 echo "configure:18382: checking for enabled wchar_t specializations" >&5
18382     if test x"$ac_isoC99_wchar_t" = xyes &&
18383        test x"$ac_XPG2_wchar_t" = xyes; then
18384       cat >> confdefs.h <<\EOF
18385 #define _GLIBCPP_USE_WCHAR_T 1
18386 EOF
18387
18388       echo "$ac_t"""yes"" 1>&6
18389     else
18390       echo "$ac_t"""no"" 1>&6
18391     fi
18392   else
18393         echo "configure: warning: wchar_t support disabled." 1>&2
18394   fi
18395
18396   
18397   ac_test_CXXFLAGS="${CXXFLAGS+set}"
18398   ac_save_CXXFLAGS="$CXXFLAGS"
18399   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
18400
18401   
18402   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
18403 echo "configure:18404: checking for strtold declaration" >&5
18404   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
18405     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
18406   echo $ac_n "(cached) $ac_c" 1>&6
18407 else
18408   
18409       
18410       ac_ext=C
18411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18412 ac_cpp='$CXXCPP $CPPFLAGS'
18413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18415 cross_compiling=$ac_cv_prog_cxx_cross
18416
18417       cat > conftest.$ac_ext <<EOF
18418 #line 18419 "configure"
18419 #include "confdefs.h"
18420 #include <stdlib.h>
18421 int main() {
18422  strtold(0, 0);
18423 ; return 0; }
18424 EOF
18425 if { (eval echo configure:18426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18426   rm -rf conftest*
18427   glibcpp_cv_func_strtold_use=yes
18428 else
18429   echo "configure: failed program was:" >&5
18430   cat conftest.$ac_ext >&5
18431   rm -rf conftest*
18432   glibcpp_cv_func_strtold_use=no
18433 fi
18434 rm -f conftest*
18435       ac_ext=c
18436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18437 ac_cpp='$CPP $CPPFLAGS'
18438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18440 cross_compiling=$ac_cv_prog_cc_cross
18441
18442     
18443 fi
18444
18445   fi
18446   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
18447   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
18448     for ac_func in strtold
18449 do
18450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18451 echo "configure:18452: checking for $ac_func" >&5
18452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18453   echo $ac_n "(cached) $ac_c" 1>&6
18454 else
18455   cat > conftest.$ac_ext <<EOF
18456 #line 18457 "configure"
18457 #include "confdefs.h"
18458 /* System header to define __stub macros and hopefully few prototypes,
18459     which can conflict with char $ac_func(); below.  */
18460 #include <assert.h>
18461 /* Override any gcc2 internal prototype to avoid an error.  */
18462 /* We use char because int might match the return type of a gcc2
18463     builtin and then its argument prototype would still apply.  */
18464 char $ac_func();
18465
18466 int main() {
18467
18468 /* The GNU C library defines this for functions which it implements
18469     to always fail with ENOSYS.  Some functions are actually named
18470     something starting with __ and the normal name is an alias.  */
18471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18472 choke me
18473 #else
18474 $ac_func();
18475 #endif
18476
18477 ; return 0; }
18478 EOF
18479 if { (eval echo configure:18480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18480   rm -rf conftest*
18481   eval "ac_cv_func_$ac_func=yes"
18482 else
18483   echo "configure: failed program was:" >&5
18484   cat conftest.$ac_ext >&5
18485   rm -rf conftest*
18486   eval "ac_cv_func_$ac_func=no"
18487 fi
18488 rm -f conftest*
18489 fi
18490
18491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18492   echo "$ac_t""yes" 1>&6
18493     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18494   cat >> confdefs.h <<EOF
18495 #define $ac_tr_func 1
18496 EOF
18497  
18498 else
18499   echo "$ac_t""no" 1>&6
18500 fi
18501 done
18502     
18503   fi
18504
18505   
18506   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
18507 echo "configure:18508: checking for strtof declaration" >&5
18508   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
18509     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
18510   echo $ac_n "(cached) $ac_c" 1>&6
18511 else
18512   
18513       
18514       ac_ext=C
18515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18516 ac_cpp='$CXXCPP $CPPFLAGS'
18517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18519 cross_compiling=$ac_cv_prog_cxx_cross
18520
18521       cat > conftest.$ac_ext <<EOF
18522 #line 18523 "configure"
18523 #include "confdefs.h"
18524 #include <stdlib.h>
18525 int main() {
18526  strtof(0, 0);
18527 ; return 0; }
18528 EOF
18529 if { (eval echo configure:18530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18530   rm -rf conftest*
18531   glibcpp_cv_func_strtof_use=yes
18532 else
18533   echo "configure: failed program was:" >&5
18534   cat conftest.$ac_ext >&5
18535   rm -rf conftest*
18536   glibcpp_cv_func_strtof_use=no
18537 fi
18538 rm -f conftest*
18539       ac_ext=c
18540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18541 ac_cpp='$CPP $CPPFLAGS'
18542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18544 cross_compiling=$ac_cv_prog_cc_cross
18545
18546     
18547 fi
18548
18549   fi
18550   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
18551   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
18552     for ac_func in strtof
18553 do
18554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18555 echo "configure:18556: checking for $ac_func" >&5
18556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18557   echo $ac_n "(cached) $ac_c" 1>&6
18558 else
18559   cat > conftest.$ac_ext <<EOF
18560 #line 18561 "configure"
18561 #include "confdefs.h"
18562 /* System header to define __stub macros and hopefully few prototypes,
18563     which can conflict with char $ac_func(); below.  */
18564 #include <assert.h>
18565 /* Override any gcc2 internal prototype to avoid an error.  */
18566 /* We use char because int might match the return type of a gcc2
18567     builtin and then its argument prototype would still apply.  */
18568 char $ac_func();
18569
18570 int main() {
18571
18572 /* The GNU C library defines this for functions which it implements
18573     to always fail with ENOSYS.  Some functions are actually named
18574     something starting with __ and the normal name is an alias.  */
18575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18576 choke me
18577 #else
18578 $ac_func();
18579 #endif
18580
18581 ; return 0; }
18582 EOF
18583 if { (eval echo configure:18584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18584   rm -rf conftest*
18585   eval "ac_cv_func_$ac_func=yes"
18586 else
18587   echo "configure: failed program was:" >&5
18588   cat conftest.$ac_ext >&5
18589   rm -rf conftest*
18590   eval "ac_cv_func_$ac_func=no"
18591 fi
18592 rm -f conftest*
18593 fi
18594
18595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18596   echo "$ac_t""yes" 1>&6
18597     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18598   cat >> confdefs.h <<EOF
18599 #define $ac_tr_func 1
18600 EOF
18601  
18602 else
18603   echo "$ac_t""no" 1>&6
18604 fi
18605 done
18606     
18607   fi
18608
18609   for ac_func in drand48
18610 do
18611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18612 echo "configure:18613: checking for $ac_func" >&5
18613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18614   echo $ac_n "(cached) $ac_c" 1>&6
18615 else
18616   cat > conftest.$ac_ext <<EOF
18617 #line 18618 "configure"
18618 #include "confdefs.h"
18619 /* System header to define __stub macros and hopefully few prototypes,
18620     which can conflict with char $ac_func(); below.  */
18621 #include <assert.h>
18622 /* Override any gcc2 internal prototype to avoid an error.  */
18623 /* We use char because int might match the return type of a gcc2
18624     builtin and then its argument prototype would still apply.  */
18625 char $ac_func();
18626
18627 int main() {
18628
18629 /* The GNU C library defines this for functions which it implements
18630     to always fail with ENOSYS.  Some functions are actually named
18631     something starting with __ and the normal name is an alias.  */
18632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18633 choke me
18634 #else
18635 $ac_func();
18636 #endif
18637
18638 ; return 0; }
18639 EOF
18640 if { (eval echo configure:18641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18641   rm -rf conftest*
18642   eval "ac_cv_func_$ac_func=yes"
18643 else
18644   echo "configure: failed program was:" >&5
18645   cat conftest.$ac_ext >&5
18646   rm -rf conftest*
18647   eval "ac_cv_func_$ac_func=no"
18648 fi
18649 rm -f conftest*
18650 fi
18651
18652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18653   echo "$ac_t""yes" 1>&6
18654     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18655   cat >> confdefs.h <<EOF
18656 #define $ac_tr_func 1
18657 EOF
18658  
18659 else
18660   echo "$ac_t""no" 1>&6
18661 fi
18662 done
18663
18664
18665   CXXFLAGS="$ac_save_CXXFLAGS"
18666
18667   
18668   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
18669 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
18670 echo "configure:18671: checking for locale.h" >&5
18671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18672   echo $ac_n "(cached) $ac_c" 1>&6
18673 else
18674   cat > conftest.$ac_ext <<EOF
18675 #line 18676 "configure"
18676 #include "confdefs.h"
18677 #include <locale.h>
18678 EOF
18679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18680 { (eval echo configure:18681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18682 if test -z "$ac_err"; then
18683   rm -rf conftest*
18684   eval "ac_cv_header_$ac_safe=yes"
18685 else
18686   echo "$ac_err" >&5
18687   echo "configure: failed program was:" >&5
18688   cat conftest.$ac_ext >&5
18689   rm -rf conftest*
18690   eval "ac_cv_header_$ac_safe=no"
18691 fi
18692 rm -f conftest*
18693 fi
18694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18695   echo "$ac_t""yes" 1>&6
18696   
18697     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
18698 echo "configure:18699: checking for LC_MESSAGES" >&5
18699 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
18700   echo $ac_n "(cached) $ac_c" 1>&6
18701 else
18702   cat > conftest.$ac_ext <<EOF
18703 #line 18704 "configure"
18704 #include "confdefs.h"
18705 #include <locale.h>
18706 int main() {
18707 return LC_MESSAGES
18708 ; return 0; }
18709 EOF
18710 if { (eval echo configure:18711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18711   rm -rf conftest*
18712   ac_cv_val_LC_MESSAGES=yes
18713 else
18714   echo "configure: failed program was:" >&5
18715   cat conftest.$ac_ext >&5
18716   rm -rf conftest*
18717   ac_cv_val_LC_MESSAGES=no
18718 fi
18719 rm -f conftest*
18720 fi
18721
18722 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
18723     if test $ac_cv_val_LC_MESSAGES = yes; then
18724       cat >> confdefs.h <<\EOF
18725 #define HAVE_LC_MESSAGES 1
18726 EOF
18727
18728     fi
18729   
18730 else
18731   echo "$ac_t""no" 1>&6
18732 fi
18733
18734
18735
18736   cat > conftest.$ac_ext <<EOF
18737 #line 18738 "configure"
18738 #include "confdefs.h"
18739
18740   #include <setjmp.h>
18741   
18742 int main() {
18743 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18744 ; return 0; }
18745 EOF
18746 if { (eval echo configure:18747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18747   rm -rf conftest*
18748   cat >> confdefs.h <<\EOF
18749 #define HAVE_SIGSETJMP 1
18750 EOF
18751
18752   
18753 else
18754   echo "configure: failed program was:" >&5
18755   cat conftest.$ac_ext >&5
18756 fi
18757 rm -f conftest*
18758
18759   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
18760 do
18761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18763 echo "configure:18764: checking for $ac_hdr" >&5
18764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18765   echo $ac_n "(cached) $ac_c" 1>&6
18766 else
18767   cat > conftest.$ac_ext <<EOF
18768 #line 18769 "configure"
18769 #include "confdefs.h"
18770 #include <$ac_hdr>
18771 EOF
18772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18773 { (eval echo configure:18774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18775 if test -z "$ac_err"; then
18776   rm -rf conftest*
18777   eval "ac_cv_header_$ac_safe=yes"
18778 else
18779   echo "$ac_err" >&5
18780   echo "configure: failed program was:" >&5
18781   cat conftest.$ac_ext >&5
18782   rm -rf conftest*
18783   eval "ac_cv_header_$ac_safe=no"
18784 fi
18785 rm -f conftest*
18786 fi
18787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18788   echo "$ac_t""yes" 1>&6
18789     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18790   cat >> confdefs.h <<EOF
18791 #define $ac_tr_hdr 1
18792 EOF
18793  
18794 else
18795   echo "$ac_t""no" 1>&6
18796 fi
18797 done
18798
18799 for ac_func in getpagesize
18800 do
18801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18802 echo "configure:18803: checking for $ac_func" >&5
18803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18804   echo $ac_n "(cached) $ac_c" 1>&6
18805 else
18806   cat > conftest.$ac_ext <<EOF
18807 #line 18808 "configure"
18808 #include "confdefs.h"
18809 /* System header to define __stub macros and hopefully few prototypes,
18810     which can conflict with char $ac_func(); below.  */
18811 #include <assert.h>
18812 /* Override any gcc2 internal prototype to avoid an error.  */
18813 /* We use char because int might match the return type of a gcc2
18814     builtin and then its argument prototype would still apply.  */
18815 char $ac_func();
18816
18817 int main() {
18818
18819 /* The GNU C library defines this for functions which it implements
18820     to always fail with ENOSYS.  Some functions are actually named
18821     something starting with __ and the normal name is an alias.  */
18822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18823 choke me
18824 #else
18825 $ac_func();
18826 #endif
18827
18828 ; return 0; }
18829 EOF
18830 if { (eval echo configure:18831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18831   rm -rf conftest*
18832   eval "ac_cv_func_$ac_func=yes"
18833 else
18834   echo "configure: failed program was:" >&5
18835   cat conftest.$ac_ext >&5
18836   rm -rf conftest*
18837   eval "ac_cv_func_$ac_func=no"
18838 fi
18839 rm -f conftest*
18840 fi
18841
18842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18843   echo "$ac_t""yes" 1>&6
18844     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18845   cat >> confdefs.h <<EOF
18846 #define $ac_tr_func 1
18847 EOF
18848  
18849 else
18850   echo "$ac_t""no" 1>&6
18851 fi
18852 done
18853
18854 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
18855 echo "configure:18856: checking for working mmap" >&5
18856 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
18857   echo $ac_n "(cached) $ac_c" 1>&6
18858 else
18859   if test "$cross_compiling" = yes; then
18860   ac_cv_func_mmap_fixed_mapped=no
18861 else
18862   cat > conftest.$ac_ext <<EOF
18863 #line 18864 "configure"
18864 #include "confdefs.h"
18865
18866 /* Thanks to Mike Haertel and Jim Avera for this test.
18867    Here is a matrix of mmap possibilities:
18868         mmap private not fixed
18869         mmap private fixed at somewhere currently unmapped
18870         mmap private fixed at somewhere already mapped
18871         mmap shared not fixed
18872         mmap shared fixed at somewhere currently unmapped
18873         mmap shared fixed at somewhere already mapped
18874    For private mappings, we should verify that changes cannot be read()
18875    back from the file, nor mmap's back from the file at a different
18876    address.  (There have been systems where private was not correctly
18877    implemented like the infamous i386 svr4.0, and systems where the
18878    VM page cache was not coherent with the filesystem buffer cache
18879    like early versions of FreeBSD and possibly contemporary NetBSD.)
18880    For shared mappings, we should conversely verify that changes get
18881    propogated back to all the places they're supposed to be.
18882
18883    Grep wants private fixed already mapped.
18884    The main things grep needs to know about mmap are:
18885    * does it exist and is it safe to write into the mmap'd area
18886    * how to use it (BSD variants)  */
18887 #include <sys/types.h>
18888 #include <fcntl.h>
18889 #include <sys/mman.h>
18890
18891 #if HAVE_SYS_TYPES_H
18892 # include <sys/types.h>
18893 #endif
18894
18895 #if HAVE_STDLIB_H
18896 # include <stdlib.h>
18897 #endif
18898
18899 #if HAVE_SYS_STAT_H
18900 # include <sys/stat.h>
18901 #endif
18902
18903 #if HAVE_UNISTD_H
18904 # include <unistd.h>
18905 #endif
18906
18907 /* This mess was copied from the GNU getpagesize.h.  */
18908 #ifndef HAVE_GETPAGESIZE
18909
18910 /* Assume that all systems that can run configure have sys/param.h.  */
18911 # ifndef HAVE_SYS_PARAM_H
18912 #  define HAVE_SYS_PARAM_H 1
18913 # endif
18914
18915 # ifdef _SC_PAGESIZE
18916 #  define getpagesize() sysconf(_SC_PAGESIZE)
18917 # else /* no _SC_PAGESIZE */
18918 #  ifdef HAVE_SYS_PARAM_H
18919 #   include <sys/param.h>
18920 #   ifdef EXEC_PAGESIZE
18921 #    define getpagesize() EXEC_PAGESIZE
18922 #   else /* no EXEC_PAGESIZE */
18923 #    ifdef NBPG
18924 #     define getpagesize() NBPG * CLSIZE
18925 #     ifndef CLSIZE
18926 #      define CLSIZE 1
18927 #     endif /* no CLSIZE */
18928 #    else /* no NBPG */
18929 #     ifdef NBPC
18930 #      define getpagesize() NBPC
18931 #     else /* no NBPC */
18932 #      ifdef PAGESIZE
18933 #       define getpagesize() PAGESIZE
18934 #      endif /* PAGESIZE */
18935 #     endif /* no NBPC */
18936 #    endif /* no NBPG */
18937 #   endif /* no EXEC_PAGESIZE */
18938 #  else /* no HAVE_SYS_PARAM_H */
18939 #   define getpagesize() 8192   /* punt totally */
18940 #  endif /* no HAVE_SYS_PARAM_H */
18941 # endif /* no _SC_PAGESIZE */
18942
18943 #endif /* no HAVE_GETPAGESIZE */
18944
18945 #ifdef __cplusplus
18946 extern "C" { void *malloc(unsigned); }
18947 #else
18948 char *malloc();
18949 #endif
18950
18951 int
18952 main()
18953 {
18954         char *data, *data2, *data3;
18955         int i, pagesize;
18956         int fd;
18957
18958         pagesize = getpagesize();
18959
18960         /*
18961          * First, make a file with some known garbage in it.
18962          */
18963         data = malloc(pagesize);
18964         if (!data)
18965                 exit(1);
18966         for (i = 0; i < pagesize; ++i)
18967                 *(data + i) = rand();
18968         umask(0);
18969         fd = creat("conftestmmap", 0600);
18970         if (fd < 0)
18971                 exit(1);
18972         if (write(fd, data, pagesize) != pagesize)
18973                 exit(1);
18974         close(fd);
18975
18976         /*
18977          * Next, try to mmap the file at a fixed address which
18978          * already has something else allocated at it.  If we can,
18979          * also make sure that we see the same garbage.
18980          */
18981         fd = open("conftestmmap", O_RDWR);
18982         if (fd < 0)
18983                 exit(1);
18984         data2 = malloc(2 * pagesize);
18985         if (!data2)
18986                 exit(1);
18987         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
18988         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
18989             MAP_PRIVATE | MAP_FIXED, fd, 0L))
18990                 exit(1);
18991         for (i = 0; i < pagesize; ++i)
18992                 if (*(data + i) != *(data2 + i))
18993                         exit(1);
18994
18995         /*
18996          * Finally, make sure that changes to the mapped area
18997          * do not percolate back to the file as seen by read().
18998          * (This is a bug on some variants of i386 svr4.0.)
18999          */
19000         for (i = 0; i < pagesize; ++i)
19001                 *(data2 + i) = *(data2 + i) + 1;
19002         data3 = malloc(pagesize);
19003         if (!data3)
19004                 exit(1);
19005         if (read(fd, data3, pagesize) != pagesize)
19006                 exit(1);
19007         for (i = 0; i < pagesize; ++i)
19008                 if (*(data + i) != *(data3 + i))
19009                         exit(1);
19010         close(fd);
19011         unlink("conftestmmap");
19012         exit(0);
19013 }
19014
19015 EOF
19016 if { (eval echo configure:19017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19017 then
19018   ac_cv_func_mmap_fixed_mapped=yes
19019 else
19020   echo "configure: failed program was:" >&5
19021   cat conftest.$ac_ext >&5
19022   rm -fr conftest*
19023   ac_cv_func_mmap_fixed_mapped=no
19024 fi
19025 rm -fr conftest*
19026 fi
19027
19028 fi
19029
19030 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
19031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19032   cat >> confdefs.h <<\EOF
19033 #define HAVE_MMAP 1
19034 EOF
19035
19036 fi
19037
19038
19039   # Establish limits on memory usage during 'make check'
19040   
19041   
19042   setrlimit_have_headers=yes
19043   for ac_hdr in sys/resource.h unistd.h
19044 do
19045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19047 echo "configure:19048: checking for $ac_hdr" >&5
19048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19049   echo $ac_n "(cached) $ac_c" 1>&6
19050 else
19051   cat > conftest.$ac_ext <<EOF
19052 #line 19053 "configure"
19053 #include "confdefs.h"
19054 #include <$ac_hdr>
19055 EOF
19056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19057 { (eval echo configure:19058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19059 if test -z "$ac_err"; then
19060   rm -rf conftest*
19061   eval "ac_cv_header_$ac_safe=yes"
19062 else
19063   echo "$ac_err" >&5
19064   echo "configure: failed program was:" >&5
19065   cat conftest.$ac_ext >&5
19066   rm -rf conftest*
19067   eval "ac_cv_header_$ac_safe=no"
19068 fi
19069 rm -f conftest*
19070 fi
19071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19072   echo "$ac_t""yes" 1>&6
19073     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19074   cat >> confdefs.h <<EOF
19075 #define $ac_tr_hdr 1
19076 EOF
19077  
19078 else
19079   echo "$ac_t""no" 1>&6
19080 setrlimit_have_headers=no
19081 fi
19082 done
19083
19084   # If don't have the headers, then we can't run the tests now, and we
19085   # won't be seeing any of these during testsuite compilation.
19086   if test $setrlimit_have_headers = yes; then
19087     # Can't do these in a loop, else the resulting syntax is wrong.
19088     
19089   cat > conftest.$ac_ext <<EOF
19090 #line 19091 "configure"
19091 #include "confdefs.h"
19092 #include <sys/resource.h>
19093                   #include <unistd.h>
19094                  
19095 int main() {
19096  int f = RLIMIT_DATA ; 
19097 ; return 0; }
19098 EOF
19099 if { (eval echo configure:19100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19100   rm -rf conftest*
19101   glibcpp_mresult=1
19102 else
19103   echo "configure: failed program was:" >&5
19104   cat conftest.$ac_ext >&5
19105   rm -rf conftest*
19106   glibcpp_mresult=0
19107 fi
19108 rm -f conftest*
19109   cat >> confdefs.h <<EOF
19110 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
19111 EOF
19112
19113
19114     
19115   cat > conftest.$ac_ext <<EOF
19116 #line 19117 "configure"
19117 #include "confdefs.h"
19118 #include <sys/resource.h>
19119                   #include <unistd.h>
19120                  
19121 int main() {
19122  int f = RLIMIT_RSS ; 
19123 ; return 0; }
19124 EOF
19125 if { (eval echo configure:19126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19126   rm -rf conftest*
19127   glibcpp_mresult=1
19128 else
19129   echo "configure: failed program was:" >&5
19130   cat conftest.$ac_ext >&5
19131   rm -rf conftest*
19132   glibcpp_mresult=0
19133 fi
19134 rm -f conftest*
19135   cat >> confdefs.h <<EOF
19136 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
19137 EOF
19138
19139
19140     
19141   cat > conftest.$ac_ext <<EOF
19142 #line 19143 "configure"
19143 #include "confdefs.h"
19144 #include <sys/resource.h>
19145                   #include <unistd.h>
19146                  
19147 int main() {
19148  int f = RLIMIT_VMEM ; 
19149 ; return 0; }
19150 EOF
19151 if { (eval echo configure:19152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19152   rm -rf conftest*
19153   glibcpp_mresult=1
19154 else
19155   echo "configure: failed program was:" >&5
19156   cat conftest.$ac_ext >&5
19157   rm -rf conftest*
19158   glibcpp_mresult=0
19159 fi
19160 rm -f conftest*
19161   cat >> confdefs.h <<EOF
19162 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
19163 EOF
19164
19165
19166     
19167   cat > conftest.$ac_ext <<EOF
19168 #line 19169 "configure"
19169 #include "confdefs.h"
19170 #include <sys/resource.h>
19171                   #include <unistd.h>
19172                  
19173 int main() {
19174  int f = RLIMIT_AS ; 
19175 ; return 0; }
19176 EOF
19177 if { (eval echo configure:19178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19178   rm -rf conftest*
19179   glibcpp_mresult=1
19180 else
19181   echo "configure: failed program was:" >&5
19182   cat conftest.$ac_ext >&5
19183   rm -rf conftest*
19184   glibcpp_mresult=0
19185 fi
19186 rm -f conftest*
19187   cat >> confdefs.h <<EOF
19188 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
19189 EOF
19190
19191
19192
19193     # Check for rlimit, setrlimit.
19194     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
19195   echo $ac_n "(cached) $ac_c" 1>&6
19196 else
19197   
19198       cat > conftest.$ac_ext <<EOF
19199 #line 19200 "configure"
19200 #include "confdefs.h"
19201 #include <sys/resource.h>
19202                       #include <unistd.h>
19203                      
19204 int main() {
19205  struct rlimit r; setrlimit(0, &r);
19206 ; return 0; }
19207 EOF
19208 if { (eval echo configure:19209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19209   rm -rf conftest*
19210   ac_setrlimit=yes
19211 else
19212   echo "configure: failed program was:" >&5
19213   cat conftest.$ac_ext >&5
19214   rm -rf conftest*
19215   ac_setrlimit=no
19216 fi
19217 rm -f conftest*
19218     
19219 fi
19220
19221   fi
19222
19223   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
19224 echo "configure:19225: checking for testsuite memory limit support" >&5
19225   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
19226     ac_mem_limits=yes
19227     cat >> confdefs.h <<\EOF
19228 #define _GLIBCPP_MEM_LIMITS 1
19229 EOF
19230
19231   else
19232     ac_mem_limits=no
19233   fi
19234   echo "$ac_t""$ac_mem_limits" 1>&6
19235
19236
19237   # Look for setenv, so that extended locale tests can be performed.
19238   for ac_func in setenv
19239 do
19240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19241 echo "configure:19242: checking for $ac_func" >&5
19242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19243   echo $ac_n "(cached) $ac_c" 1>&6
19244 else
19245   cat > conftest.$ac_ext <<EOF
19246 #line 19247 "configure"
19247 #include "confdefs.h"
19248 /* System header to define __stub macros and hopefully few prototypes,
19249     which can conflict with char $ac_func(); below.  */
19250 #include <assert.h>
19251 /* Override any gcc2 internal prototype to avoid an error.  */
19252 /* We use char because int might match the return type of a gcc2
19253     builtin and then its argument prototype would still apply.  */
19254 char $ac_func();
19255
19256 int main() {
19257
19258 /* The GNU C library defines this for functions which it implements
19259     to always fail with ENOSYS.  Some functions are actually named
19260     something starting with __ and the normal name is an alias.  */
19261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19262 choke me
19263 #else
19264 $ac_func();
19265 #endif
19266
19267 ; return 0; }
19268 EOF
19269 if { (eval echo configure:19270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19270   rm -rf conftest*
19271   eval "ac_cv_func_$ac_func=yes"
19272 else
19273   echo "configure: failed program was:" >&5
19274   cat conftest.$ac_ext >&5
19275   rm -rf conftest*
19276   eval "ac_cv_func_$ac_func=no"
19277 fi
19278 rm -f conftest*
19279 fi
19280
19281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19282   echo "$ac_t""yes" 1>&6
19283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19284   cat >> confdefs.h <<EOF
19285 #define $ac_tr_func 1
19286 EOF
19287  
19288 else
19289   echo "$ac_t""no" 1>&6
19290 fi
19291 done
19292
19293
19294 fi
19295
19296 # This depends on the possibly-skipped linker test above.
19297 # Check whether --enable-symvers or --disable-symvers was given.
19298 if test "${enable_symvers+set}" = set; then
19299   enableval="$enable_symvers"
19300   case "$enableval" in
19301  yes) enable_symvers=yes ;;
19302  no)  enable_symvers=no ;;
19303  # other names here, just as sanity checks
19304  #gnu|sun|etcetera) enable_symvers=$enableval ;;
19305  gnu) enable_symvers=$enableval ;;
19306  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
19307  esac
19308 else
19309   enable_symvers=yes
19310 fi
19311
19312 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
19313 # don't know enough about $LD to do tricks... 
19314 if test $enable_shared = no || test x$LD = x ; then
19315   enable_symvers=no
19316 fi
19317
19318 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
19319 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
19320 echo "configure:19321: checking for shared libgcc" >&5
19321 ac_save_CFLAGS="$CFLAGS"
19322 CFLAGS=' -lgcc_s'
19323 cat > conftest.$ac_ext <<EOF
19324 #line 19325 "configure"
19325 #include "confdefs.h"
19326
19327 int main() {
19328 return 0
19329 ; return 0; }
19330 EOF
19331 if { (eval echo configure:19332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19332   rm -rf conftest*
19333   glibcpp_shared_libgcc=yes
19334 else
19335   echo "configure: failed program was:" >&5
19336   cat conftest.$ac_ext >&5
19337   rm -rf conftest*
19338   glibcpp_shared_libgcc=no
19339 fi
19340 rm -f conftest*
19341 CFLAGS="$ac_save_CFLAGS"
19342 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
19343
19344 # For GNU ld, we need at least this version.  It's 2.12 in the same format
19345 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
19346 glibcpp_min_gnu_ld_version=21200
19347
19348 # Check to see if unspecified "yes" value can win, given results
19349 # above.  
19350 if test $enable_symvers = yes ; then
19351   if test $with_gnu_ld = yes &&
19352     test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version &&
19353     test $glibcpp_shared_libgcc = yes ;
19354   then
19355     enable_symvers=gnu
19356   else
19357     # just fail for now
19358     enable_symvers=no
19359   fi
19360 fi
19361
19362 case $enable_symvers in
19363   no)
19364       LINKER_MAP=config/linker-map.dummy
19365       ;;
19366   gnu)
19367       LINKER_MAP=config/linker-map.gnu
19368       ;;
19369 esac
19370
19371
19372
19373
19374 if test $enable_symvers != no; then
19375   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
19376   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
19377 else
19378   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
19379   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
19380 fi
19381 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
19382 echo "configure:19383: checking versioning on shared library symbols" >&5
19383 echo "$ac_t""$enable_symvers" 1>&6
19384
19385
19386 # Propagate the target-specific source directories through the build chain.
19387 OS_INC_SRCDIR=$os_include_dir/bits
19388 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
19389 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
19390
19391
19392
19393
19394 # Set up cross-compile flags
19395
19396
19397
19398 if test "$CANADIAN" = yes; then
19399   CANADIAN_TRUE=
19400   CANADIAN_FALSE='#'
19401 else
19402   CANADIAN_TRUE='#'
19403   CANADIAN_FALSE=
19404 fi
19405  
19406 cat > confcache <<\EOF
19407 # This file is a shell script that caches the results of configure
19408 # tests run on this system so they can be shared between configure
19409 # scripts and configure runs.  It is not useful on other systems.
19410 # If it contains results you don't want to keep, you may remove or edit it.
19411 #
19412 # By default, configure uses ./config.cache as the cache file,
19413 # creating it if it does not exist already.  You can give configure
19414 # the --cache-file=FILE option to use a different cache file; that is
19415 # what configure does when it calls configure scripts in
19416 # subdirectories, so they share the cache.
19417 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19418 # config.status only pays attention to the cache file if you give it the
19419 # --recheck option to rerun configure.
19420 #
19421 EOF
19422 # The following way of writing the cache mishandles newlines in values,
19423 # but we know of no workaround that is simple, portable, and efficient.
19424 # So, don't put newlines in cache variables' values.
19425 # Ultrix sh set writes to stderr and can't be redirected directly,
19426 # and sets the high bit in the cache file unless we assign to the vars.
19427 (set) 2>&1 |
19428   case `(ac_space=' '; set | grep ac_space) 2>&1` in
19429   *ac_space=\ *)
19430     # `set' does not quote correctly, so add quotes (double-quote substitution
19431     # turns \\\\ into \\, and sed turns \\ into \).
19432     sed -n \
19433       -e "s/'/'\\\\''/g" \
19434       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19435     ;;
19436   *)
19437     # `set' quotes correctly as required by POSIX, so do not add quotes.
19438     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19439     ;;
19440   esac >> confcache
19441 if cmp -s $cache_file confcache; then
19442   :
19443 else
19444   if test -w $cache_file; then
19445     echo "updating cache $cache_file"
19446     cat confcache > $cache_file
19447   else
19448     echo "not updating unwritable cache $cache_file"
19449   fi
19450 fi
19451 rm -f confcache
19452
19453
19454 if test "${multilib}" = "yes"; then
19455   multilib_arg="--enable-multilib"
19456 else
19457   multilib_arg=
19458 fi
19459
19460 # Needed so that g++ can find the correct include subdir automatically.
19461 INTERFACE=v3
19462
19463 # Export all the install information
19464
19465 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
19466 # exported correctly in GLIBCPP_CONFIGURE.
19467 glibcpp_toolexecdir=no
19468 glibcpp_toolexeclibdir=no
19469 glibcpp_prefixdir=${prefix}
19470
19471 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
19472 echo "configure:19473: checking for interface version number" >&5
19473 libstdcxx_interface=$INTERFACE
19474 echo "$ac_t""$libstdcxx_interface" 1>&6
19475
19476 # Process the option --with-gxx-include-dir=<path to include-files directory>
19477 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
19478 echo "configure:19479: checking for --with-gxx-include-dir" >&5
19479 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
19480 if test "${with_gxx_include_dir+set}" = set; then
19481   withval="$with_gxx_include_dir"
19482   case "${withval}" in
19483   yes)
19484     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
19485     gxx_include_dir=no
19486     ;;
19487   no)
19488     gxx_include_dir=no
19489     ;;
19490   *)
19491     gxx_include_dir=${withval}
19492     ;;
19493 esac
19494 else
19495   gxx_include_dir=no
19496 fi
19497
19498 echo "$ac_t""$gxx_include_dir" 1>&6
19499
19500 # Process the option "--enable-version-specific-runtime-libs"
19501 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
19502 echo "configure:19503: checking for --enable-version-specific-runtime-libs" >&5
19503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
19504 if test "${enable_version_specific_runtime_libs+set}" = set; then
19505   enableval="$enable_version_specific_runtime_libs"
19506   case "$enableval" in
19507  yes) version_specific_libs=yes ;;
19508  no)  version_specific_libs=no ;;
19509  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
19510  esac
19511 else
19512   version_specific_libs=no
19513 fi
19514 # Option set, now we can test it.
19515 echo "$ac_t""$version_specific_libs" 1>&6
19516
19517 if test $version_specific_libs = yes; then
19518   # Need the gcc compiler version to know where to install libraries
19519   # and header files if --enable-version-specific-runtime-libs option
19520   # is selected.
19521     gcc_version_trigger=${srcdir}/../gcc/version.c
19522   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
19523   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
19524   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
19525   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19526   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
19527   fi
19528
19529 # Default case for install directory for include files.
19530 if test $version_specific_libs = no &&
19531    test $gxx_include_dir = no; then
19532   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
19533 fi
19534
19535 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
19536 # Install a library built with a cross compiler in tooldir, not libdir.
19537 if test x"$glibcpp_toolexecdir" = x"no"; then 
19538   if test -n "$with_cross_host" &&
19539      test x"$with_cross_host" != x"no"; then
19540     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
19541     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
19542   else
19543     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19544     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
19545   fi
19546 fi
19547
19548 echo $ac_n "checking for install location""... $ac_c" 1>&6
19549 echo "configure:19550: checking for install location" >&5
19550 echo "$ac_t""$gxx_include_dir" 1>&6
19551
19552
19553
19554
19555
19556
19557
19558 # Export all the include and flag information to makefiles.
19559
19560   # Root level of the build directory include sources.
19561   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
19562
19563   # Passed down for canadian crosses.
19564   if test x"$CANADIAN" = xyes; then
19565     TOPLEVEL_INCLUDES='-I$(includedir)'
19566   fi
19567
19568   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
19569
19570   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
19571
19572   if test x"$need_libio" = xyes; then
19573     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
19574     
19575   fi
19576
19577   # Now, export this to all the little Makefiles....
19578   
19579   
19580   
19581   
19582
19583
19584   # Optimization flags that are probably a good idea for thrill-seekers. Just
19585   # uncomment the lines below and make, everything else is ready to go... 
19586   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
19587   OPTIMIZE_CXXFLAGS=
19588   
19589
19590   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
19591   
19592
19593
19594 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
19595    grep "enable shared" > /dev/null; then
19596   LIBSUPCXX_PICFLAGS=-prefer-pic
19597 else
19598   LIBSUPCXX_PICFLAGS=
19599 fi
19600
19601
19602 # Generate the various Makefiles, include files, and scripts.
19603 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
19604 # and libsupc++/Makefile.am so that multilib installs will end up
19605 # installed in the correct place. To work around this not being passed
19606 # down from config-ml.in -> top_srcdir/Makefile.am ->
19607 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
19608 trap '' 1 2 15
19609 cat > confcache <<\EOF
19610 # This file is a shell script that caches the results of configure
19611 # tests run on this system so they can be shared between configure
19612 # scripts and configure runs.  It is not useful on other systems.
19613 # If it contains results you don't want to keep, you may remove or edit it.
19614 #
19615 # By default, configure uses ./config.cache as the cache file,
19616 # creating it if it does not exist already.  You can give configure
19617 # the --cache-file=FILE option to use a different cache file; that is
19618 # what configure does when it calls configure scripts in
19619 # subdirectories, so they share the cache.
19620 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19621 # config.status only pays attention to the cache file if you give it the
19622 # --recheck option to rerun configure.
19623 #
19624 EOF
19625 # The following way of writing the cache mishandles newlines in values,
19626 # but we know of no workaround that is simple, portable, and efficient.
19627 # So, don't put newlines in cache variables' values.
19628 # Ultrix sh set writes to stderr and can't be redirected directly,
19629 # and sets the high bit in the cache file unless we assign to the vars.
19630 (set) 2>&1 |
19631   case `(ac_space=' '; set | grep ac_space) 2>&1` in
19632   *ac_space=\ *)
19633     # `set' does not quote correctly, so add quotes (double-quote substitution
19634     # turns \\\\ into \\, and sed turns \\ into \).
19635     sed -n \
19636       -e "s/'/'\\\\''/g" \
19637       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19638     ;;
19639   *)
19640     # `set' quotes correctly as required by POSIX, so do not add quotes.
19641     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19642     ;;
19643   esac >> confcache
19644 if cmp -s $cache_file confcache; then
19645   :
19646 else
19647   if test -w $cache_file; then
19648     echo "updating cache $cache_file"
19649     cat confcache > $cache_file
19650   else
19651     echo "not updating unwritable cache $cache_file"
19652   fi
19653 fi
19654 rm -f confcache
19655
19656 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19657
19658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19659 # Let make expand exec_prefix.
19660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19661
19662 # Any assignment to VPATH causes Sun make to only execute
19663 # the first set of double-colon rules, so remove it if not needed.
19664 # If there is a colon in the path, we need to keep it.
19665 if test "x$srcdir" = x.; then
19666   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
19667 fi
19668
19669 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19670
19671 DEFS=-DHAVE_CONFIG_H
19672
19673 # Without the "./", some shells look in PATH for config.status.
19674 : ${CONFIG_STATUS=./config.status}
19675
19676 echo creating $CONFIG_STATUS
19677 rm -f $CONFIG_STATUS
19678 cat > $CONFIG_STATUS <<EOF
19679 #! /bin/sh
19680 # Generated automatically by configure.
19681 # Run this file to recreate the current configuration.
19682 # This directory was configured as follows,
19683 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19684 #
19685 # $0 $ac_configure_args
19686 #
19687 # Compiler output produced by configure, useful for debugging
19688 # configure, is in ./config.log if it exists.
19689
19690 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19691 for ac_option
19692 do
19693   case "\$ac_option" in
19694   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19695     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19696     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19697   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19698     echo "$CONFIG_STATUS generated by autoconf version 2.13"
19699     exit 0 ;;
19700   -help | --help | --hel | --he | --h)
19701     echo "\$ac_cs_usage"; exit 0 ;;
19702   *) echo "\$ac_cs_usage"; exit 1 ;;
19703   esac
19704 done
19705
19706 ac_given_srcdir=$srcdir
19707 ac_given_INSTALL="$INSTALL"
19708
19709 trap 'rm -fr `echo "Makefile \
19710     include/Makefile src/Makefile \
19711     libmath/Makefile libio/Makefile libsupc++/Makefile \
19712     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19713 EOF
19714 cat >> $CONFIG_STATUS <<EOF
19715
19716 # Protect against being on the right side of a sed subst in config.status.
19717 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19718  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19719 $ac_vpsub
19720 $extrasub
19721 s%@SHELL@%$SHELL%g
19722 s%@CFLAGS@%$CFLAGS%g
19723 s%@CPPFLAGS@%$CPPFLAGS%g
19724 s%@CXXFLAGS@%$CXXFLAGS%g
19725 s%@FFLAGS@%$FFLAGS%g
19726 s%@DEFS@%$DEFS%g
19727 s%@LDFLAGS@%$LDFLAGS%g
19728 s%@LIBS@%$LIBS%g
19729 s%@exec_prefix@%$exec_prefix%g
19730 s%@prefix@%$prefix%g
19731 s%@program_transform_name@%$program_transform_name%g
19732 s%@bindir@%$bindir%g
19733 s%@sbindir@%$sbindir%g
19734 s%@libexecdir@%$libexecdir%g
19735 s%@datadir@%$datadir%g
19736 s%@sysconfdir@%$sysconfdir%g
19737 s%@sharedstatedir@%$sharedstatedir%g
19738 s%@localstatedir@%$localstatedir%g
19739 s%@libdir@%$libdir%g
19740 s%@includedir@%$includedir%g
19741 s%@oldincludedir@%$oldincludedir%g
19742 s%@infodir@%$infodir%g
19743 s%@mandir@%$mandir%g
19744 s%@PACKAGE@%$PACKAGE%g
19745 s%@release_VERSION@%$release_VERSION%g
19746 s%@libtool_VERSION@%$libtool_VERSION%g
19747 s%@host@%$host%g
19748 s%@host_alias@%$host_alias%g
19749 s%@host_cpu@%$host_cpu%g
19750 s%@host_vendor@%$host_vendor%g
19751 s%@host_os@%$host_os%g
19752 s%@target@%$target%g
19753 s%@target_alias@%$target_alias%g
19754 s%@target_cpu@%$target_cpu%g
19755 s%@target_vendor@%$target_vendor%g
19756 s%@target_os@%$target_os%g
19757 s%@build@%$build%g
19758 s%@build_alias@%$build_alias%g
19759 s%@build_cpu@%$build_cpu%g
19760 s%@build_vendor@%$build_vendor%g
19761 s%@build_os@%$build_os%g
19762 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19763 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19764 s%@INSTALL_DATA@%$INSTALL_DATA%g
19765 s%@VERSION@%$VERSION%g
19766 s%@ACLOCAL@%$ACLOCAL%g
19767 s%@AUTOCONF@%$AUTOCONF%g
19768 s%@AUTOMAKE@%$AUTOMAKE%g
19769 s%@AUTOHEADER@%$AUTOHEADER%g
19770 s%@MAKEINFO@%$MAKEINFO%g
19771 s%@SET_MAKE@%$SET_MAKE%g
19772 s%@toplevel_srcdir@%$toplevel_srcdir%g
19773 s%@glibcpp_builddir@%$glibcpp_builddir%g
19774 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
19775 s%@AWK@%$AWK%g
19776 s%@LN_S@%$LN_S%g
19777 s%@glibcpp_basedir@%$glibcpp_basedir%g
19778 s%@CC@%$CC%g
19779 s%@glibcpp_CXX@%$glibcpp_CXX%g
19780 s%@AS@%$AS%g
19781 s%@AR@%$AR%g
19782 s%@RANLIB@%$RANLIB%g
19783 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
19784 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
19785 s%@MAINT@%$MAINT%g
19786 s%@EXEEXT@%$EXEEXT%g
19787 s%@OBJEXT@%$OBJEXT%g
19788 s%@STRIP@%$STRIP%g
19789 s%@LIBTOOL@%$LIBTOOL%g
19790 s%@CXXCPP@%$CXXCPP%g
19791 s%@enable_shared@%$enable_shared%g
19792 s%@enable_static@%$enable_static%g
19793 s%@ifGNUmake@%$ifGNUmake%g
19794 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
19795 s%@CPP@%$CPP%g
19796 s%@CSTDIO_H@%$CSTDIO_H%g
19797 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
19798 s%@CCODECVT_C@%$CCODECVT_C%g
19799 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
19800 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
19801 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
19802 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
19803 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
19804 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
19805 s%@libio_la@%$libio_la%g
19806 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
19807 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
19808 s%@glibcpp_localedir@%$glibcpp_localedir%g
19809 s%@USE_NLS@%$USE_NLS%g
19810 s%@CLOCALE_H@%$CLOCALE_H%g
19811 s%@CCODECVT_H@%$CCODECVT_H%g
19812 s%@CMESSAGES_H@%$CMESSAGES_H%g
19813 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
19814 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
19815 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
19816 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
19817 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
19818 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
19819 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
19820 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
19821 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
19822 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
19823 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
19824 s%@WERROR@%$WERROR%g
19825 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
19826 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
19827 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
19828 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
19829 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
19830 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
19831 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
19832 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
19833 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
19834 s%@gxx_include_dir@%$gxx_include_dir%g
19835 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
19836 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
19837 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
19838 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
19839 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
19840 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
19841 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
19842 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
19843 s%@WARN_FLAGS@%$WARN_FLAGS%g
19844 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
19845
19846 CEOF
19847 EOF
19848
19849 cat >> $CONFIG_STATUS <<\EOF
19850
19851 # Split the substitutions into bite-sized pieces for seds with
19852 # small command number limits, like on Digital OSF/1 and HP-UX.
19853 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19854 ac_file=1 # Number of current file.
19855 ac_beg=1 # First line for current file.
19856 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19857 ac_more_lines=:
19858 ac_sed_cmds=""
19859 while $ac_more_lines; do
19860   if test $ac_beg -gt 1; then
19861     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19862   else
19863     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19864   fi
19865   if test ! -s conftest.s$ac_file; then
19866     ac_more_lines=false
19867     rm -f conftest.s$ac_file
19868   else
19869     if test -z "$ac_sed_cmds"; then
19870       ac_sed_cmds="sed -f conftest.s$ac_file"
19871     else
19872       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19873     fi
19874     ac_file=`expr $ac_file + 1`
19875     ac_beg=$ac_end
19876     ac_end=`expr $ac_end + $ac_max_sed_cmds`
19877   fi
19878 done
19879 if test -z "$ac_sed_cmds"; then
19880   ac_sed_cmds=cat
19881 fi
19882 EOF
19883
19884 cat >> $CONFIG_STATUS <<EOF
19885
19886 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
19887     include/Makefile src/Makefile \
19888     libmath/Makefile libio/Makefile libsupc++/Makefile \
19889     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
19890 EOF
19891 cat >> $CONFIG_STATUS <<\EOF
19892 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19893   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19894   case "$ac_file" in
19895   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19896        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19897   *) ac_file_in="${ac_file}.in" ;;
19898   esac
19899
19900   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19901
19902   # Remove last slash and all that follows it.  Not all systems have dirname.
19903   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19904   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19905     # The file is in a subdirectory.
19906     test ! -d "$ac_dir" && mkdir "$ac_dir"
19907     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19908     # A "../" for each directory in $ac_dir_suffix.
19909     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19910   else
19911     ac_dir_suffix= ac_dots=
19912   fi
19913
19914   case "$ac_given_srcdir" in
19915   .)  srcdir=.
19916       if test -z "$ac_dots"; then top_srcdir=.
19917       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19918   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19919   *) # Relative path.
19920     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19921     top_srcdir="$ac_dots$ac_given_srcdir" ;;
19922   esac
19923
19924   case "$ac_given_INSTALL" in
19925   [/$]*) INSTALL="$ac_given_INSTALL" ;;
19926   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19927   esac
19928
19929   echo creating "$ac_file"
19930   rm -f "$ac_file"
19931   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19932   case "$ac_file" in
19933   *Makefile*) ac_comsub="1i\\
19934 # $configure_input" ;;
19935   *) ac_comsub= ;;
19936   esac
19937
19938   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19939   sed -e "$ac_comsub
19940 s%@configure_input@%$configure_input%g
19941 s%@srcdir@%$srcdir%g
19942 s%@top_srcdir@%$top_srcdir%g
19943 s%@INSTALL@%$INSTALL%g
19944 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19945 fi; done
19946 rm -f conftest.s*
19947
19948 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19949 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19950 #
19951 # ac_d sets the value in "#define NAME VALUE" lines.
19952 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19953 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
19954 ac_dC='\3'
19955 ac_dD='%g'
19956 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19957 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19958 ac_uB='\([      ]\)%\1#\2define\3'
19959 ac_uC=' '
19960 ac_uD='\4%g'
19961 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19962 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19963 ac_eB='$%\1#\2define\3'
19964 ac_eC=' '
19965 ac_eD='%g'
19966
19967 if test "${CONFIG_HEADERS+set}" != set; then
19968 EOF
19969 cat >> $CONFIG_STATUS <<EOF
19970   CONFIG_HEADERS="config.h"
19971 EOF
19972 cat >> $CONFIG_STATUS <<\EOF
19973 fi
19974 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19975   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19976   case "$ac_file" in
19977   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19978        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19979   *) ac_file_in="${ac_file}.in" ;;
19980   esac
19981
19982   echo creating $ac_file
19983
19984   rm -f conftest.frag conftest.in conftest.out
19985   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19986   cat $ac_file_inputs > conftest.in
19987
19988 EOF
19989
19990 # Transform confdefs.h into a sed script conftest.vals that substitutes
19991 # the proper values into config.h.in to produce config.h.  And first:
19992 # Protect against being on the right side of a sed subst in config.status.
19993 # Protect against being in an unquoted here document in config.status.
19994 rm -f conftest.vals
19995 cat > conftest.hdr <<\EOF
19996 s/[\\&%]/\\&/g
19997 s%[\\$`]%\\&%g
19998 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19999 s%ac_d%ac_u%gp
20000 s%ac_u%ac_e%gp
20001 EOF
20002 sed -n -f conftest.hdr confdefs.h > conftest.vals
20003 rm -f conftest.hdr
20004
20005 # This sed command replaces #undef with comments.  This is necessary, for
20006 # example, in the case of _POSIX_SOURCE, which is predefined and required
20007 # on some systems where configure will not decide to define it.
20008 cat >> conftest.vals <<\EOF
20009 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20010 EOF
20011
20012 # Break up conftest.vals because some shells have a limit on
20013 # the size of here documents, and old seds have small limits too.
20014
20015 rm -f conftest.tail
20016 while :
20017 do
20018   ac_lines=`grep -c . conftest.vals`
20019   # grep -c gives empty output for an empty file on some AIX systems.
20020   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20021   # Write a limited-size here document to conftest.frag.
20022   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20023   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20024   echo 'CEOF
20025   sed -f conftest.frag conftest.in > conftest.out
20026   rm -f conftest.in
20027   mv conftest.out conftest.in
20028 ' >> $CONFIG_STATUS
20029   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20030   rm -f conftest.vals
20031   mv conftest.tail conftest.vals
20032 done
20033 rm -f conftest.vals
20034
20035 cat >> $CONFIG_STATUS <<\EOF
20036   rm -f conftest.frag conftest.h
20037   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
20038   cat conftest.in >> conftest.h
20039   rm -f conftest.in
20040   if cmp -s $ac_file conftest.h 2>/dev/null; then
20041     echo "$ac_file is unchanged"
20042     rm -f conftest.h
20043   else
20044     # Remove last slash and all that follows it.  Not all systems have dirname.
20045       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20046       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20047       # The file is in a subdirectory.
20048       test ! -d "$ac_dir" && mkdir "$ac_dir"
20049     fi
20050     rm -f $ac_file
20051     mv conftest.h $ac_file
20052   fi
20053 fi; done
20054
20055 EOF
20056
20057 cat >> $CONFIG_STATUS <<EOF
20058 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
20059 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc src/linker.map"
20060 EOF
20061
20062 cat >> $CONFIG_STATUS <<\EOF
20063 srcdir=$ac_given_srcdir
20064 while test -n "$ac_sources"; do
20065   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20066   set $ac_sources; ac_source=$1; shift; ac_sources=$*
20067
20068   echo "linking $srcdir/$ac_source to $ac_dest"
20069
20070   if test ! -r $srcdir/$ac_source; then
20071     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
20072   fi
20073   rm -f $ac_dest
20074
20075   # Make relative symlinks.
20076   # Remove last slash and all that follows it.  Not all systems have dirname.
20077   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
20078   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
20079     # The dest file is in a subdirectory.
20080     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
20081     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
20082     # A "../" for each directory in $ac_dest_dir_suffix.
20083     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
20084   else
20085     ac_dest_dir_suffix= ac_dots=
20086   fi
20087
20088   case "$srcdir" in
20089   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
20090   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
20091   esac
20092
20093   # Make a symlink if possible; otherwise try a hard link.
20094   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20095     ln $srcdir/$ac_source $ac_dest; then :
20096   else
20097     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
20098   fi
20099 done
20100 EOF
20101 cat >> $CONFIG_STATUS <<EOF
20102
20103 srcdir=${srcdir}
20104 host=${host}
20105 target=${target}
20106 with_multisubdir=${with_multisubdir}
20107 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20108 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20109 glibcpp_basedir=${glibcpp_basedir}
20110 CC="${CC}"
20111 CXX="${CXX}"
20112
20113 EOF
20114 cat >> $CONFIG_STATUS <<\EOF
20115 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
20116 if test -n "$CONFIG_FILES"; then
20117   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
20118   grep '^MULTISUBDIR =' Makefile >> src/Makefile
20119   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
20120 fi
20121 chmod +x mkcheck
20122 chmod +x testsuite_flags
20123
20124 exit 0
20125 EOF
20126 chmod +x $CONFIG_STATUS
20127 rm -fr confdefs* $ac_clean_files
20128 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20129
20130
20131
20132 # Sanity checking & User-visible messages.
20133 # Checks down here, otherwise they get scrolled off before
20134 # the user will notice.
20135
20136 # Trying to get more people to read documentation.  Possibly remove
20137 # check and warn all the time. There is no "informational" AC_MSG_
20138 # macro, so these are going to be printed even when --quiet/--silent
20139 # is given.
20140 if test ! -f stamp-sanity-warned; then
20141   touch stamp-sanity-warned
20142   echo ""
20143   echo "Please make certain that you read the installation information here:"
20144   echo "  faster => ${srcdir}/docs/install.html"
20145   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
20146   echo ""
20147   echo "and the configuration information here:"
20148   echo "  faster => ${srcdir}/docs/configopts.html"
20149   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
20150   echo ""
20151   echo "before proceeding with ${_cv_gnu_make_command}."
20152   echo ""
20153 fi